summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/compiler/ast/node.go
blob: 44677b4788f7591a45b119f621d7e4ff6f6fa53f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}