mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-22 19:22:38 +01:00
14 lines
377 B
Go
14 lines
377 B
Go
|
package ast
|
||
|
|
||
|
import "github.com/d5/tengo/compiler/source"
|
||
|
|
||
|
// Node represents a node in the AST.
|
||
|
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.
|
||
|
String() string
|
||
|
}
|