xgo/compiler/ast/node.go

14 lines
377 B
Go
Raw Normal View History

2019-01-09 10:17:42 +03:00
package ast
2019-01-11 13:27:28 +03:00
import "github.com/d5/tengo/compiler/source"
2019-01-09 10:17:42 +03:00
// Node represents a node in the AST.
2019-01-09 10:17:42 +03:00
type Node interface {
// Pos returns the position of first character belonging to the node.
Pos() source.Pos
// End returns the position of first character immediately after the node.
End() source.Pos
// String returns a string representation of the node.
2019-01-09 10:17:42 +03:00
String() string
}