mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-25 20:52:37 +01:00
25 lines
510 B
Go
25 lines
510 B
Go
|
package ast
|
||
|
|
||
|
import "github.com/d5/tengo/compiler/source"
|
||
|
|
||
|
// ExprStmt represents an expression statement.
|
||
|
type ExprStmt struct {
|
||
|
Expr Expr
|
||
|
}
|
||
|
|
||
|
func (s *ExprStmt) stmtNode() {}
|
||
|
|
||
|
// Pos returns the position of first character belonging to the node.
|
||
|
func (s *ExprStmt) Pos() source.Pos {
|
||
|
return s.Expr.Pos()
|
||
|
}
|
||
|
|
||
|
// End returns the position of first character immediately after the node.
|
||
|
func (s *ExprStmt) End() source.Pos {
|
||
|
return s.Expr.End()
|
||
|
}
|
||
|
|
||
|
func (s *ExprStmt) String() string {
|
||
|
return s.Expr.String()
|
||
|
}
|