2020-03-12 22:20:48 +00:00
|
|
|
package ast
|
|
|
|
|
|
|
|
import (
|
2020-05-10 05:53:17 +00:00
|
|
|
"github.com/z7zmey/php-parser/pkg/position"
|
2020-05-10 05:47:13 +00:00
|
|
|
"github.com/z7zmey/php-parser/pkg/token"
|
2020-03-12 22:20:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Root node
|
|
|
|
type Root struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Stmts []Vertex
|
|
|
|
EndTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *Root) Accept(v NodeVisitor) {
|
|
|
|
v.Root(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *Root) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// Nullable node
|
|
|
|
type Nullable struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 20:07:58 +00:00
|
|
|
QuestionTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *Nullable) Accept(v NodeVisitor) {
|
|
|
|
v.Nullable(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *Nullable) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// Parameter node
|
|
|
|
type Parameter struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-03-12 22:20:48 +00:00
|
|
|
Type Vertex
|
2020-12-04 09:36:12 +00:00
|
|
|
AmpersandTkn *token.Token
|
|
|
|
VariadicTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
Var Vertex
|
2020-11-20 20:25:37 +00:00
|
|
|
EqualTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
DefaultValue Vertex
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *Parameter) Accept(v NodeVisitor) {
|
|
|
|
v.Parameter(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *Parameter) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// Identifier node
|
|
|
|
type Identifier struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 20:02:36 +00:00
|
|
|
IdentifierTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *Identifier) Accept(v NodeVisitor) {
|
|
|
|
v.Identifier(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *Identifier) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// Argument node
|
|
|
|
type Argument struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 20:57:27 +00:00
|
|
|
VariadicTkn *token.Token
|
|
|
|
AmpersandTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *Argument) Accept(v NodeVisitor) {
|
|
|
|
v.Argument(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *Argument) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarDnumber node
|
|
|
|
type ScalarDnumber struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:08:30 +00:00
|
|
|
NumberTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarDnumber) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarDnumber(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarDnumber) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarEncapsed node
|
|
|
|
type ScalarEncapsed struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:36:45 +00:00
|
|
|
OpenQoteTkn *token.Token
|
|
|
|
Parts []Vertex
|
|
|
|
CloseQoteTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarEncapsed) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarEncapsed(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarEncapsed) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarEncapsedStringPart node
|
|
|
|
type ScalarEncapsedStringPart struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:36:45 +00:00
|
|
|
EncapsedStrTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarEncapsedStringPart) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarEncapsedStringPart(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarEncapsedStringPart) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarHeredoc node
|
|
|
|
type ScalarHeredoc struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:36:45 +00:00
|
|
|
OpenHeredocTkn *token.Token
|
|
|
|
Parts []Vertex
|
|
|
|
CloseHeredocTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarHeredoc) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarHeredoc(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarHeredoc) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarLnumber node
|
|
|
|
type ScalarLnumber struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:08:30 +00:00
|
|
|
NumberTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarLnumber) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarLnumber(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarLnumber) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarMagicConstant node
|
|
|
|
type ScalarMagicConstant struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:53:58 +00:00
|
|
|
MagicConstTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarMagicConstant) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarMagicConstant(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarMagicConstant) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ScalarString node
|
|
|
|
type ScalarString struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-20 21:53:58 +00:00
|
|
|
MinusTkn *token.Token
|
|
|
|
StringTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ScalarString) Accept(v NodeVisitor) {
|
|
|
|
v.ScalarString(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ScalarString) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtBreak node
|
|
|
|
type StmtBreak struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-06 10:02:13 +00:00
|
|
|
BreakTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtBreak) Accept(v NodeVisitor) {
|
|
|
|
v.StmtBreak(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtBreak) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtCase node
|
|
|
|
type StmtCase struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-06 09:45:08 +00:00
|
|
|
CaseTkn *token.Token
|
|
|
|
Cond Vertex
|
|
|
|
CaseSeparatorTkn *token.Token
|
|
|
|
Stmts []Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtCase) Accept(v NodeVisitor) {
|
|
|
|
v.StmtCase(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtCase) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtCatch node
|
|
|
|
type StmtCatch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 17:15:50 +00:00
|
|
|
CatchTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Types []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
Var Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtCatch) Accept(v NodeVisitor) {
|
|
|
|
v.StmtCatch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtCatch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtClass node
|
|
|
|
type StmtClass struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 09:02:38 +00:00
|
|
|
Modifiers []Vertex
|
|
|
|
ClassTkn *token.Token
|
|
|
|
ClassName Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Arguments []Vertex
|
2020-12-04 09:36:12 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-12-04 09:02:38 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
Extends Vertex
|
|
|
|
Implements Vertex
|
|
|
|
OpenCurlyBracket *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracket *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtClass) Accept(v NodeVisitor) {
|
|
|
|
v.StmtClass(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtClass) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtClassConstList node
|
|
|
|
type StmtClassConstList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 12:38:47 +00:00
|
|
|
Modifiers []Vertex
|
|
|
|
ConstTkn *token.Token
|
|
|
|
Consts []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtClassConstList) Accept(v NodeVisitor) {
|
|
|
|
v.StmtClassConstList(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtClassConstList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtClassExtends node
|
|
|
|
type StmtClassExtends struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 11:02:36 +00:00
|
|
|
ExtendTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
ClassName Vertex
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtClassExtends) Accept(v NodeVisitor) {
|
|
|
|
v.StmtClassExtends(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtClassExtends) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtClassImplements node
|
|
|
|
type StmtClassImplements struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 11:02:36 +00:00
|
|
|
ImplementsTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
InterfaceNames []Vertex
|
2020-11-22 11:02:36 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtClassImplements) Accept(v NodeVisitor) {
|
|
|
|
v.StmtClassImplements(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtClassImplements) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtClassMethod node
|
|
|
|
type StmtClassMethod struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 12:26:24 +00:00
|
|
|
Modifiers []Vertex
|
|
|
|
FunctionTkn *token.Token
|
|
|
|
AmpersandTkn *token.Token
|
|
|
|
MethodName Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Params []Vertex
|
2020-12-04 10:22:06 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-11-22 12:26:24 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
ReturnType Vertex
|
|
|
|
Stmt Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtClassMethod) Accept(v NodeVisitor) {
|
|
|
|
v.StmtClassMethod(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtClassMethod) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtConstList node
|
|
|
|
type StmtConstList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 16:25:38 +00:00
|
|
|
ConstTkn *token.Token
|
|
|
|
Consts []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtConstList) Accept(v NodeVisitor) {
|
|
|
|
v.StmtConstList(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtConstList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtConstant node
|
|
|
|
type StmtConstant struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-08-24 20:28:44 +00:00
|
|
|
Name Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtConstant) Accept(v NodeVisitor) {
|
|
|
|
v.StmtConstant(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtConstant) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtContinue node
|
|
|
|
type StmtContinue struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-06 10:02:13 +00:00
|
|
|
ContinueTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtContinue) Accept(v NodeVisitor) {
|
|
|
|
v.StmtContinue(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtContinue) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtDeclare node
|
|
|
|
type StmtDeclare struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 16:25:38 +00:00
|
|
|
Alt bool
|
|
|
|
DeclareTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Consts []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
|
|
|
EndDeclareTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtDeclare) Accept(v NodeVisitor) {
|
|
|
|
v.StmtDeclare(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtDeclare) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtDefault node
|
|
|
|
type StmtDefault struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-06 09:45:08 +00:00
|
|
|
DefaultTkn *token.Token
|
|
|
|
CaseSeparatorTkn *token.Token
|
|
|
|
Stmts []Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtDefault) Accept(v NodeVisitor) {
|
|
|
|
v.StmtDefault(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtDefault) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtDo node
|
|
|
|
type StmtDo struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-04 07:53:07 +00:00
|
|
|
DoTkn *token.Token
|
|
|
|
Stmt Vertex
|
|
|
|
WhileTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Cond Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtDo) Accept(v NodeVisitor) {
|
|
|
|
v.StmtDo(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtDo) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtEcho node
|
|
|
|
type StmtEcho struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-10 20:11:08 +00:00
|
|
|
EchoTkn *token.Token
|
|
|
|
Exprs []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtEcho) Accept(v NodeVisitor) {
|
|
|
|
v.StmtEcho(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtEcho) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtElse node
|
|
|
|
type StmtElse struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-03 19:18:06 +00:00
|
|
|
Alt bool
|
|
|
|
ElseTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtElse) Accept(v NodeVisitor) {
|
|
|
|
v.StmtElse(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtElse) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtElseIf node
|
|
|
|
type StmtElseIf struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-03 19:18:06 +00:00
|
|
|
Alt bool
|
|
|
|
ElseIfTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Cond Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtElseIf) Accept(v NodeVisitor) {
|
|
|
|
v.StmtElseIf(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtElseIf) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtExpression node
|
|
|
|
type StmtExpression struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 16:54:13 +00:00
|
|
|
Expr Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtExpression) Accept(v NodeVisitor) {
|
|
|
|
v.StmtExpression(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtExpression) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtFinally node
|
|
|
|
type StmtFinally struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 17:15:50 +00:00
|
|
|
FinallyTkn *token.Token
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtFinally) Accept(v NodeVisitor) {
|
|
|
|
v.StmtFinally(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtFinally) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtFor node
|
|
|
|
type StmtFor struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-04 08:37:17 +00:00
|
|
|
Alt bool
|
|
|
|
ForTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Init []Vertex
|
2020-12-04 10:49:13 +00:00
|
|
|
InitSeparatorTkns []*token.Token
|
2020-09-04 08:37:17 +00:00
|
|
|
InitSemiColonTkn *token.Token
|
|
|
|
Cond []Vertex
|
2020-12-04 10:49:13 +00:00
|
|
|
CondSeparatorTkns []*token.Token
|
2020-09-04 08:37:17 +00:00
|
|
|
CondSemiColonTkn *token.Token
|
|
|
|
Loop []Vertex
|
2020-12-04 10:49:13 +00:00
|
|
|
LoopSeparatorTkns []*token.Token
|
2020-09-04 08:37:17 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
|
|
|
EndForTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtFor) Accept(v NodeVisitor) {
|
|
|
|
v.StmtFor(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtFor) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtForeach node
|
|
|
|
type StmtForeach struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 15:36:55 +00:00
|
|
|
Alt bool
|
|
|
|
ForeachTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
AsTkn *token.Token
|
|
|
|
Key Vertex
|
|
|
|
DoubleArrowTkn *token.Token
|
|
|
|
Var Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
|
|
|
EndForeachTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtForeach) Accept(v NodeVisitor) {
|
|
|
|
v.StmtForeach(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtForeach) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtFunction node
|
|
|
|
type StmtFunction struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 12:26:24 +00:00
|
|
|
FunctionTkn *token.Token
|
|
|
|
AmpersandTkn *token.Token
|
|
|
|
FunctionName Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Params []Vertex
|
2020-12-04 10:22:06 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-11-22 12:26:24 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
ReturnType Vertex
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtFunction) Accept(v NodeVisitor) {
|
|
|
|
v.StmtFunction(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtFunction) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtGlobal node
|
|
|
|
type StmtGlobal struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-09 19:53:51 +00:00
|
|
|
GlobalTkn *token.Token
|
|
|
|
Vars []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtGlobal) Accept(v NodeVisitor) {
|
|
|
|
v.StmtGlobal(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtGlobal) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtGoto node
|
|
|
|
type StmtGoto struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-17 13:49:54 +00:00
|
|
|
GotoTkn *token.Token
|
|
|
|
Label Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtGoto) Accept(v NodeVisitor) {
|
|
|
|
v.StmtGoto(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtGoto) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtHaltCompiler node
|
|
|
|
type StmtHaltCompiler struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-08-24 18:41:06 +00:00
|
|
|
HaltCompilerTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtHaltCompiler) Accept(v NodeVisitor) {
|
|
|
|
v.StmtHaltCompiler(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtHaltCompiler) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtIf node
|
|
|
|
type StmtIf struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-03 19:18:06 +00:00
|
|
|
Alt bool
|
|
|
|
IfTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Cond Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
|
|
|
ElseIf []Vertex
|
|
|
|
Else Vertex
|
|
|
|
EndIfTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtIf) Accept(v NodeVisitor) {
|
|
|
|
v.StmtIf(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtIf) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtInlineHtml node
|
|
|
|
type StmtInlineHtml struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 13:36:01 +00:00
|
|
|
InlineHtmlTkn *token.Token
|
|
|
|
Value []byte
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtInlineHtml) Accept(v NodeVisitor) {
|
|
|
|
v.StmtInlineHtml(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtInlineHtml) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtInterface node
|
|
|
|
type StmtInterface struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 16:54:13 +00:00
|
|
|
InterfaceTkn *token.Token
|
|
|
|
InterfaceName Vertex
|
|
|
|
Extends Vertex
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtInterface) Accept(v NodeVisitor) {
|
|
|
|
v.StmtInterface(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtInterface) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtInterfaceExtends node
|
|
|
|
type StmtInterfaceExtends struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 11:02:36 +00:00
|
|
|
ExtendsTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
InterfaceNames []Vertex
|
2020-11-22 11:02:36 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtInterfaceExtends) Accept(v NodeVisitor) {
|
|
|
|
v.StmtInterfaceExtends(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtInterfaceExtends) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtLabel node
|
|
|
|
type StmtLabel struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-03-12 22:20:48 +00:00
|
|
|
LabelName Vertex
|
2020-09-17 13:49:54 +00:00
|
|
|
ColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtLabel) Accept(v NodeVisitor) {
|
|
|
|
v.StmtLabel(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtLabel) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtNamespace node
|
|
|
|
type StmtNamespace struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-08-24 11:20:20 +00:00
|
|
|
NsTkn *token.Token
|
|
|
|
Name Vertex
|
|
|
|
OpenCurlyBracket *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracket *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtNamespace) Accept(v NodeVisitor) {
|
|
|
|
v.StmtNamespace(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtNamespace) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtNop node
|
|
|
|
type StmtNop struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 16:34:02 +00:00
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtNop) Accept(v NodeVisitor) {
|
|
|
|
v.StmtNop(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtNop) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtProperty node
|
|
|
|
type StmtProperty struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 16:54:13 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtProperty) Accept(v NodeVisitor) {
|
|
|
|
v.StmtProperty(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtProperty) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtPropertyList node
|
|
|
|
type StmtPropertyList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-29 19:50:33 +00:00
|
|
|
Modifiers []Vertex
|
|
|
|
Type Vertex
|
|
|
|
Properties []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtPropertyList) Accept(v NodeVisitor) {
|
|
|
|
v.StmtPropertyList(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtPropertyList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtReturn node
|
|
|
|
type StmtReturn struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-06 10:09:00 +00:00
|
|
|
ReturnTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtReturn) Accept(v NodeVisitor) {
|
|
|
|
v.StmtReturn(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtReturn) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtStatic node
|
|
|
|
type StmtStatic struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-09 19:53:51 +00:00
|
|
|
StaticTkn *token.Token
|
|
|
|
Vars []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtStatic) Accept(v NodeVisitor) {
|
|
|
|
v.StmtStatic(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtStatic) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtStaticVar node
|
|
|
|
type StmtStaticVar struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-09 19:53:51 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtStaticVar) Accept(v NodeVisitor) {
|
|
|
|
v.StmtStaticVar(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtStaticVar) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtStmtList node
|
|
|
|
type StmtStmtList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-02 19:58:19 +00:00
|
|
|
OpenCurlyBracket *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracket *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtStmtList) Accept(v NodeVisitor) {
|
|
|
|
v.StmtStmtList(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtStmtList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtSwitch node
|
|
|
|
type StmtSwitch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-06 09:45:08 +00:00
|
|
|
Alt bool
|
|
|
|
SwitchTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Cond Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
CaseSeparatorTkn *token.Token
|
|
|
|
CaseList []Vertex
|
|
|
|
CloseCurlyBracketTkn *token.Token
|
|
|
|
EndSwitchTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtSwitch) Accept(v NodeVisitor) {
|
|
|
|
v.StmtSwitch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtSwitch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtThrow node
|
|
|
|
type StmtThrow struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-17 13:37:34 +00:00
|
|
|
ThrowTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtThrow) Accept(v NodeVisitor) {
|
|
|
|
v.StmtThrow(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtThrow) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTrait node
|
|
|
|
type StmtTrait struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 00:03:39 +00:00
|
|
|
TraitTkn *token.Token
|
|
|
|
TraitName Vertex
|
2020-11-22 11:02:36 +00:00
|
|
|
Extends Vertex
|
|
|
|
Implements Vertex
|
2020-11-22 00:03:39 +00:00
|
|
|
OpenCurlyBracket *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracket *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTrait) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTrait(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTrait) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTraitAdaptationList node
|
|
|
|
type StmtTraitAdaptationList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-29 19:50:33 +00:00
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Adaptations []Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTraitAdaptationList) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTraitAdaptationList(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTraitAdaptationList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTraitMethodRef node
|
|
|
|
type StmtTraitMethodRef struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-29 19:50:33 +00:00
|
|
|
Trait Vertex
|
|
|
|
DoubleColonTkn *token.Token
|
|
|
|
Method Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTraitMethodRef) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTraitMethodRef(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTraitMethodRef) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTraitUse node
|
|
|
|
type StmtTraitUse struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 11:02:36 +00:00
|
|
|
UseTkn *token.Token
|
|
|
|
Traits []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
Adaptations Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTraitUse) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTraitUse(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTraitUse) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTraitUseAlias node
|
|
|
|
type StmtTraitUseAlias struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 10:49:13 +00:00
|
|
|
Ref Vertex
|
|
|
|
AsTkn *token.Token
|
|
|
|
Modifier Vertex
|
|
|
|
Alias Vertex
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTraitUseAlias) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTraitUseAlias(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTraitUseAlias) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTraitUsePrecedence node
|
|
|
|
type StmtTraitUsePrecedence struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 11:02:36 +00:00
|
|
|
Ref Vertex
|
|
|
|
InsteadofTkn *token.Token
|
|
|
|
Insteadof []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
2020-12-04 10:49:13 +00:00
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTraitUsePrecedence) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTraitUsePrecedence(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTraitUsePrecedence) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtTry node
|
|
|
|
type StmtTry struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 17:15:50 +00:00
|
|
|
TryTkn *token.Token
|
|
|
|
OpenCurlyBracket *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracket *token.Token
|
|
|
|
Catches []Vertex
|
|
|
|
Finally Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtTry) Accept(v NodeVisitor) {
|
|
|
|
v.StmtTry(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtTry) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtUnset node
|
|
|
|
type StmtUnset struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 14:19:17 +00:00
|
|
|
UnsetTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Vars []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtUnset) Accept(v NodeVisitor) {
|
|
|
|
v.StmtUnset(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtUnset) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtUse node
|
|
|
|
type StmtUse struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-08-22 13:59:26 +00:00
|
|
|
UseTkn *token.Token
|
|
|
|
Type Vertex
|
|
|
|
UseDeclarations []Vertex
|
2020-12-04 12:38:47 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-08-22 13:59:26 +00:00
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtUse) Accept(v NodeVisitor) {
|
|
|
|
v.StmtUse(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtUse) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-08-22 13:59:26 +00:00
|
|
|
// StmtGroupUse node
|
|
|
|
type StmtGroupUse struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-08-22 13:59:26 +00:00
|
|
|
UseTkn *token.Token
|
|
|
|
Type Vertex
|
|
|
|
LeadingNsSeparatorTkn *token.Token
|
|
|
|
Prefix Vertex
|
|
|
|
NsSeparatorTkn *token.Token
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
UseDeclarations []Vertex
|
2020-12-04 12:38:47 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-08-22 13:59:26 +00:00
|
|
|
CloseCurlyBracketTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
2020-08-22 13:59:26 +00:00
|
|
|
func (n *StmtGroupUse) Accept(v NodeVisitor) {
|
|
|
|
v.StmtGroupUse(n)
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtGroupUse) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-08-03 19:22:53 +00:00
|
|
|
// StmtUseDeclaration node
|
|
|
|
type StmtUseDeclaration struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-08-22 13:59:26 +00:00
|
|
|
Type Vertex
|
|
|
|
NsSeparatorTkn *token.Token
|
|
|
|
Use Vertex
|
|
|
|
AsTkn *token.Token
|
|
|
|
Alias Vertex
|
2020-08-03 19:22:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtUseDeclaration) Accept(v NodeVisitor) {
|
|
|
|
v.StmtUseDeclaration(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtUseDeclaration) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// StmtWhile node
|
|
|
|
type StmtWhile struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-04 07:33:47 +00:00
|
|
|
Alt bool
|
|
|
|
WhileTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Cond Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
Stmt Vertex
|
|
|
|
EndWhileTkn *token.Token
|
|
|
|
SemiColonTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *StmtWhile) Accept(v NodeVisitor) {
|
|
|
|
v.StmtWhile(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *StmtWhile) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprArray node
|
|
|
|
type ExprArray struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-30 21:42:56 +00:00
|
|
|
ArrayTkn *token.Token
|
|
|
|
OpenBracketTkn *token.Token
|
|
|
|
Items []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprArray) Accept(v NodeVisitor) {
|
|
|
|
v.ExprArray(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprArray) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprArrayDimFetch node
|
|
|
|
type ExprArrayDimFetch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 22:13:28 +00:00
|
|
|
Var Vertex
|
|
|
|
OpenBracketTkn *token.Token
|
|
|
|
Dim Vertex
|
|
|
|
CloseBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprArrayDimFetch) Accept(v NodeVisitor) {
|
|
|
|
v.ExprArrayDimFetch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprArrayDimFetch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprArrayItem node
|
|
|
|
type ExprArrayItem struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-30 22:42:45 +00:00
|
|
|
EllipsisTkn *token.Token
|
|
|
|
Key Vertex
|
|
|
|
DoubleArrowTkn *token.Token
|
|
|
|
Val Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprArrayItem) Accept(v NodeVisitor) {
|
|
|
|
v.ExprArrayItem(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprArrayItem) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprArrowFunction node
|
|
|
|
type ExprArrowFunction struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 12:26:24 +00:00
|
|
|
StaticTkn *token.Token
|
|
|
|
FnTkn *token.Token
|
|
|
|
AmpersandTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Params []Vertex
|
2020-12-04 10:22:06 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-11-22 12:26:24 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
ColonTkn *token.Token
|
|
|
|
ReturnType Vertex
|
|
|
|
DoubleArrowTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprArrowFunction) Accept(v NodeVisitor) {
|
|
|
|
v.ExprArrowFunction(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprArrowFunction) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBitwiseNot node
|
|
|
|
type ExprBitwiseNot struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 07:51:47 +00:00
|
|
|
TildaTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBitwiseNot) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBitwiseNot(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBitwiseNot) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBooleanNot node
|
|
|
|
type ExprBooleanNot struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 07:51:47 +00:00
|
|
|
ExclamationTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBooleanNot) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBooleanNot(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBooleanNot) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprClassConstFetch node
|
|
|
|
type ExprClassConstFetch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 07:51:47 +00:00
|
|
|
Class Vertex
|
|
|
|
DoubleColonTkn *token.Token
|
|
|
|
ConstantName Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprClassConstFetch) Accept(v NodeVisitor) {
|
|
|
|
v.ExprClassConstFetch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprClassConstFetch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprClone node
|
|
|
|
type ExprClone struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 07:51:47 +00:00
|
|
|
CloneTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprClone) Accept(v NodeVisitor) {
|
|
|
|
v.ExprClone(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprClone) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprClosure node
|
|
|
|
type ExprClosure struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 12:26:24 +00:00
|
|
|
StaticTkn *token.Token
|
|
|
|
FunctionTkn *token.Token
|
|
|
|
AmpersandTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Params []Vertex
|
2020-12-04 10:22:06 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-11-22 12:26:24 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
2020-12-04 12:38:47 +00:00
|
|
|
ClosureUse Vertex
|
2020-11-22 12:26:24 +00:00
|
|
|
ColonTkn *token.Token
|
|
|
|
ReturnType Vertex
|
|
|
|
OpenCurlyBracketTkn *token.Token
|
|
|
|
Stmts []Vertex
|
|
|
|
CloseCurlyBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprClosure) Accept(v NodeVisitor) {
|
|
|
|
v.ExprClosure(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprClosure) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprClosureUse node
|
|
|
|
type ExprClosureUse struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:12:56 +00:00
|
|
|
UseTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Uses []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprClosureUse) Accept(v NodeVisitor) {
|
|
|
|
v.ExprClosureUse(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprClosureUse) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprConstFetch node
|
|
|
|
type ExprConstFetch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Const Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprConstFetch) Accept(v NodeVisitor) {
|
|
|
|
v.ExprConstFetch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprConstFetch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprEmpty node
|
|
|
|
type ExprEmpty struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:12:56 +00:00
|
|
|
EmptyTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprEmpty) Accept(v NodeVisitor) {
|
|
|
|
v.ExprEmpty(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprEmpty) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprErrorSuppress node
|
|
|
|
type ExprErrorSuppress struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
AtTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprErrorSuppress) Accept(v NodeVisitor) {
|
|
|
|
v.ExprErrorSuppress(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprErrorSuppress) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprEval node
|
|
|
|
type ExprEval struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:58:09 +00:00
|
|
|
EvalTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprEval) Accept(v NodeVisitor) {
|
|
|
|
v.ExprEval(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprEval) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprExit node
|
|
|
|
type ExprExit struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:58:09 +00:00
|
|
|
DieTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Expr Vertex
|
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprExit) Accept(v NodeVisitor) {
|
|
|
|
v.ExprExit(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprExit) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprFunctionCall node
|
|
|
|
type ExprFunctionCall struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:58:09 +00:00
|
|
|
Function Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Arguments []Vertex
|
2020-12-04 09:36:12 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-12-01 09:58:09 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprFunctionCall) Accept(v NodeVisitor) {
|
|
|
|
v.ExprFunctionCall(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprFunctionCall) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprInclude node
|
|
|
|
type ExprInclude struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:58:09 +00:00
|
|
|
IncludeTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprInclude) Accept(v NodeVisitor) {
|
|
|
|
v.ExprInclude(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprInclude) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprIncludeOnce node
|
|
|
|
type ExprIncludeOnce struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 09:58:09 +00:00
|
|
|
IncludeTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprIncludeOnce) Accept(v NodeVisitor) {
|
|
|
|
v.ExprIncludeOnce(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprIncludeOnce) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprInstanceOf node
|
|
|
|
type ExprInstanceOf struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 10:16:46 +00:00
|
|
|
Expr Vertex
|
|
|
|
InstanceOfTkn *token.Token
|
|
|
|
Class Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprInstanceOf) Accept(v NodeVisitor) {
|
|
|
|
v.ExprInstanceOf(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprInstanceOf) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprIsset node
|
|
|
|
type ExprIsset struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-01 10:16:46 +00:00
|
|
|
IssetTkn *token.Token
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Vars []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprIsset) Accept(v NodeVisitor) {
|
|
|
|
v.ExprIsset(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprIsset) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprList node
|
|
|
|
type ExprList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-30 21:42:56 +00:00
|
|
|
ListTkn *token.Token
|
|
|
|
OpenBracketTkn *token.Token
|
|
|
|
Items []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseBracketTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprList) Accept(v NodeVisitor) {
|
|
|
|
v.ExprList(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprMethodCall node
|
|
|
|
type ExprMethodCall struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 19:42:16 +00:00
|
|
|
Var Vertex
|
|
|
|
ObjectOperatorTkn *token.Token
|
|
|
|
Method Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Arguments []Vertex
|
2020-12-04 09:36:12 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-12-03 19:42:16 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprMethodCall) Accept(v NodeVisitor) {
|
|
|
|
v.ExprMethodCall(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprMethodCall) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprNew node
|
|
|
|
type ExprNew struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:04:59 +00:00
|
|
|
NewTkn *token.Token
|
|
|
|
Class Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Arguments []Vertex
|
2020-12-04 09:36:12 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-12-03 20:04:59 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprNew) Accept(v NodeVisitor) {
|
|
|
|
v.ExprNew(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprNew) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprPostDec node
|
|
|
|
type ExprPostDec struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Var Vertex
|
|
|
|
DecTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprPostDec) Accept(v NodeVisitor) {
|
|
|
|
v.ExprPostDec(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprPostDec) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprPostInc node
|
|
|
|
type ExprPostInc struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Var Vertex
|
|
|
|
IncTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprPostInc) Accept(v NodeVisitor) {
|
|
|
|
v.ExprPostInc(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprPostInc) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprPreDec node
|
|
|
|
type ExprPreDec struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
DecTkn *token.Token
|
|
|
|
Var Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprPreDec) Accept(v NodeVisitor) {
|
|
|
|
v.ExprPreDec(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprPreDec) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprPreInc node
|
|
|
|
type ExprPreInc struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
IncTkn *token.Token
|
|
|
|
Var Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprPreInc) Accept(v NodeVisitor) {
|
|
|
|
v.ExprPreInc(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprPreInc) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprPrint node
|
|
|
|
type ExprPrint struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:20:50 +00:00
|
|
|
PrintTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprPrint) Accept(v NodeVisitor) {
|
|
|
|
v.ExprPrint(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprPrint) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprPropertyFetch node
|
|
|
|
type ExprPropertyFetch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 19:42:16 +00:00
|
|
|
Var Vertex
|
|
|
|
ObjectOperatorTkn *token.Token
|
|
|
|
Property Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprPropertyFetch) Accept(v NodeVisitor) {
|
|
|
|
v.ExprPropertyFetch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprPropertyFetch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprReference node
|
|
|
|
type ExprReference struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:20:50 +00:00
|
|
|
AmpersandTkn *token.Token
|
|
|
|
Var Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprReference) Accept(v NodeVisitor) {
|
|
|
|
v.ExprReference(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprReference) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprRequire node
|
|
|
|
type ExprRequire struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:20:50 +00:00
|
|
|
RequireTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprRequire) Accept(v NodeVisitor) {
|
|
|
|
v.ExprRequire(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprRequire) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprRequireOnce node
|
|
|
|
type ExprRequireOnce struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:20:50 +00:00
|
|
|
RequireOnceTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprRequireOnce) Accept(v NodeVisitor) {
|
|
|
|
v.ExprRequireOnce(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprRequireOnce) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprShellExec node
|
|
|
|
type ExprShellExec struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:41:08 +00:00
|
|
|
OpenBacktickTkn *token.Token
|
|
|
|
Parts []Vertex
|
|
|
|
CloseBacktickTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprShellExec) Accept(v NodeVisitor) {
|
|
|
|
v.ExprShellExec(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprShellExec) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprStaticCall node
|
|
|
|
type ExprStaticCall struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:41:08 +00:00
|
|
|
Class Vertex
|
|
|
|
DoubleColonTkn *token.Token
|
|
|
|
Call Vertex
|
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Arguments []Vertex
|
2020-12-04 09:36:12 +00:00
|
|
|
SeparatorTkns []*token.Token
|
2020-12-03 20:41:08 +00:00
|
|
|
CloseParenthesisTkn *token.Token
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprStaticCall) Accept(v NodeVisitor) {
|
|
|
|
v.ExprStaticCall(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprStaticCall) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprStaticPropertyFetch node
|
|
|
|
type ExprStaticPropertyFetch struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:41:08 +00:00
|
|
|
Class Vertex
|
|
|
|
DoubleColonTkn *token.Token
|
|
|
|
Property Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprStaticPropertyFetch) Accept(v NodeVisitor) {
|
|
|
|
v.ExprStaticPropertyFetch(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprStaticPropertyFetch) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprTernary node
|
|
|
|
type ExprTernary struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 20:41:08 +00:00
|
|
|
Condition Vertex
|
|
|
|
QuestionTkn *token.Token
|
|
|
|
IfTrue Vertex
|
|
|
|
ColonTkn *token.Token
|
|
|
|
IfFalse Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprTernary) Accept(v NodeVisitor) {
|
|
|
|
v.ExprTernary(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprTernary) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprUnaryMinus node
|
|
|
|
type ExprUnaryMinus struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 22:13:28 +00:00
|
|
|
MinusTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprUnaryMinus) Accept(v NodeVisitor) {
|
|
|
|
v.ExprUnaryMinus(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprUnaryMinus) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprUnaryPlus node
|
|
|
|
type ExprUnaryPlus struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
PlusTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprUnaryPlus) Accept(v NodeVisitor) {
|
|
|
|
v.ExprUnaryPlus(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprUnaryPlus) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprVariable node
|
|
|
|
type ExprVariable struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-03 22:13:28 +00:00
|
|
|
DollarTkn *token.Token
|
|
|
|
VarName Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprVariable) Accept(v NodeVisitor) {
|
|
|
|
v.ExprVariable(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprVariable) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprYield node
|
|
|
|
type ExprYield struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 07:42:45 +00:00
|
|
|
YieldTkn *token.Token
|
|
|
|
Key Vertex
|
|
|
|
DoubleArrowTkn *token.Token
|
|
|
|
Value Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprYield) Accept(v NodeVisitor) {
|
|
|
|
v.ExprYield(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprYield) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprYieldFrom node
|
|
|
|
type ExprYieldFrom struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 07:42:45 +00:00
|
|
|
YieldFromTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprYieldFrom) Accept(v NodeVisitor) {
|
|
|
|
v.ExprYieldFrom(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprYieldFrom) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastArray node
|
|
|
|
type ExprCastArray struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastArray) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastArray(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastArray) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastBool node
|
|
|
|
type ExprCastBool struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastBool) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastBool(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastBool) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastDouble node
|
|
|
|
type ExprCastDouble struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastDouble) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastDouble(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastDouble) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastInt node
|
|
|
|
type ExprCastInt struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastInt) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastInt(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastInt) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastObject node
|
|
|
|
type ExprCastObject struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastObject) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastObject(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastObject) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastString node
|
|
|
|
type ExprCastString struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastString) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastString(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastString) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprCastUnset node
|
|
|
|
type ExprCastUnset struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
CastTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprCastUnset) Accept(v NodeVisitor) {
|
|
|
|
v.ExprCastUnset(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprCastUnset) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssign node
|
|
|
|
type ExprAssign struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssign) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssign(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssign) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignReference node
|
|
|
|
type ExprAssignReference struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
AmpersandTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignReference) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignReference(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignReference) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignBitwiseAnd node
|
|
|
|
type ExprAssignBitwiseAnd struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignBitwiseAnd) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignBitwiseAnd(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignBitwiseAnd) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignBitwiseOr node
|
|
|
|
type ExprAssignBitwiseOr struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignBitwiseOr) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignBitwiseOr(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignBitwiseOr) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignBitwiseXor node
|
|
|
|
type ExprAssignBitwiseXor struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignBitwiseXor) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignBitwiseXor(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignBitwiseXor) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignCoalesce node
|
|
|
|
type ExprAssignCoalesce struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignCoalesce) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignCoalesce(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignCoalesce) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignConcat node
|
|
|
|
type ExprAssignConcat struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignConcat) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignConcat(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignConcat) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignDiv node
|
|
|
|
type ExprAssignDiv struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignDiv) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignDiv(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignDiv) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignMinus node
|
|
|
|
type ExprAssignMinus struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignMinus) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignMinus(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignMinus) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignMod node
|
|
|
|
type ExprAssignMod struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignMod) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignMod(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignMod) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignMul node
|
|
|
|
type ExprAssignMul struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignMul) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignMul(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignMul) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignPlus node
|
|
|
|
type ExprAssignPlus struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignPlus) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignPlus(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignPlus) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignPow node
|
|
|
|
type ExprAssignPow struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignPow) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignPow(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignPow) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignShiftLeft node
|
|
|
|
type ExprAssignShiftLeft struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignShiftLeft) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignShiftLeft(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignShiftLeft) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprAssignShiftRight node
|
|
|
|
type ExprAssignShiftRight struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 08:40:48 +00:00
|
|
|
Var Vertex
|
|
|
|
EqualTkn *token.Token
|
|
|
|
Expr Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprAssignShiftRight) Accept(v NodeVisitor) {
|
|
|
|
v.ExprAssignShiftRight(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprAssignShiftRight) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryBitwiseAnd node
|
|
|
|
type ExprBinaryBitwiseAnd struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryBitwiseAnd) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryBitwiseAnd(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryBitwiseAnd) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryBitwiseOr node
|
|
|
|
type ExprBinaryBitwiseOr struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryBitwiseOr) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryBitwiseOr(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryBitwiseOr) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryBitwiseXor node
|
|
|
|
type ExprBinaryBitwiseXor struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryBitwiseXor) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryBitwiseXor(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryBitwiseXor) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryBooleanAnd node
|
|
|
|
type ExprBinaryBooleanAnd struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryBooleanAnd) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryBooleanAnd(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryBooleanAnd) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryBooleanOr node
|
|
|
|
type ExprBinaryBooleanOr struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryBooleanOr) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryBooleanOr(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryBooleanOr) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryCoalesce node
|
|
|
|
type ExprBinaryCoalesce struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryCoalesce) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryCoalesce(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryCoalesce) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryConcat node
|
|
|
|
type ExprBinaryConcat struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryConcat) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryConcat(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryConcat) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryDiv node
|
|
|
|
type ExprBinaryDiv struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryDiv) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryDiv(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryDiv) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryEqual node
|
|
|
|
type ExprBinaryEqual struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryEqual) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryEqual(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryEqual) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryGreater node
|
|
|
|
type ExprBinaryGreater struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryGreater) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryGreater(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryGreater) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryGreaterOrEqual node
|
|
|
|
type ExprBinaryGreaterOrEqual struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryGreaterOrEqual) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryGreaterOrEqual(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryGreaterOrEqual) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryIdentical node
|
|
|
|
type ExprBinaryIdentical struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryIdentical) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryIdentical(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryIdentical) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryLogicalAnd node
|
|
|
|
type ExprBinaryLogicalAnd struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryLogicalAnd) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryLogicalAnd(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryLogicalAnd) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryLogicalOr node
|
|
|
|
type ExprBinaryLogicalOr struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryLogicalOr) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryLogicalOr(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryLogicalOr) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryLogicalXor node
|
|
|
|
type ExprBinaryLogicalXor struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryLogicalXor) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryLogicalXor(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryLogicalXor) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryMinus node
|
|
|
|
type ExprBinaryMinus struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryMinus) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryMinus(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryMinus) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryMod node
|
|
|
|
type ExprBinaryMod struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryMod) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryMod(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryMod) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryMul node
|
|
|
|
type ExprBinaryMul struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryMul) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryMul(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryMul) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryNotEqual node
|
|
|
|
type ExprBinaryNotEqual struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryNotEqual) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryNotEqual(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryNotEqual) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryNotIdentical node
|
|
|
|
type ExprBinaryNotIdentical struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryNotIdentical) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryNotIdentical(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryNotIdentical) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryPlus node
|
|
|
|
type ExprBinaryPlus struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryPlus) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryPlus(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryPlus) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryPow node
|
|
|
|
type ExprBinaryPow struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryPow) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryPow(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryPow) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryShiftLeft node
|
|
|
|
type ExprBinaryShiftLeft struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryShiftLeft) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryShiftLeft(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryShiftLeft) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinaryShiftRight node
|
|
|
|
type ExprBinaryShiftRight struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinaryShiftRight) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinaryShiftRight(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinaryShiftRight) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinarySmaller node
|
|
|
|
type ExprBinarySmaller struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinarySmaller) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinarySmaller(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinarySmaller) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinarySmallerOrEqual node
|
|
|
|
type ExprBinarySmallerOrEqual struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinarySmallerOrEqual) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinarySmallerOrEqual(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinarySmallerOrEqual) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-03-12 22:20:48 +00:00
|
|
|
// ExprBinarySpaceship node
|
|
|
|
type ExprBinarySpaceship struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
|
|
|
Left Vertex
|
|
|
|
OpTkn *token.Token
|
|
|
|
Right Vertex
|
2020-03-12 22:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ExprBinarySpaceship) Accept(v NodeVisitor) {
|
|
|
|
v.ExprBinarySpaceship(n)
|
|
|
|
}
|
2020-05-12 21:16:36 +00:00
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ExprBinarySpaceship) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-05-12 21:16:36 +00:00
|
|
|
type NameName struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 12:38:47 +00:00
|
|
|
Parts []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
2020-05-12 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *NameName) Accept(v NodeVisitor) {
|
|
|
|
v.NameName(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *NameName) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-05-12 21:16:36 +00:00
|
|
|
type NameFullyQualified struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 12:38:47 +00:00
|
|
|
NsSeparatorTkn *token.Token
|
|
|
|
Parts []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
2020-05-12 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *NameFullyQualified) Accept(v NodeVisitor) {
|
|
|
|
v.NameFullyQualified(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *NameFullyQualified) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-05-12 21:16:36 +00:00
|
|
|
type NameRelative struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 12:38:47 +00:00
|
|
|
NsTkn *token.Token
|
|
|
|
NsSeparatorTkn *token.Token
|
|
|
|
Parts []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
2020-05-12 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *NameRelative) Accept(v NodeVisitor) {
|
|
|
|
v.NameRelative(n)
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *NameRelative) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-05-12 21:16:36 +00:00
|
|
|
type NameNamePart struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 12:38:47 +00:00
|
|
|
StringTkn *token.Token
|
|
|
|
Value []byte
|
2020-05-12 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *NameNamePart) Accept(v NodeVisitor) {
|
|
|
|
v.NameNamePart(n)
|
|
|
|
}
|
2020-08-08 22:56:21 +00:00
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *NameNamePart) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-11-22 12:26:24 +00:00
|
|
|
// TODO: move to private section
|
|
|
|
|
2020-08-08 22:56:21 +00:00
|
|
|
type ParserBrackets struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-03 19:18:06 +00:00
|
|
|
OpenBracketTkn *token.Token
|
|
|
|
Child Vertex
|
|
|
|
CloseBracketTkn *token.Token
|
2020-08-08 22:56:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ParserBrackets) Accept(v NodeVisitor) {
|
|
|
|
v.ParserBrackets(n)
|
|
|
|
}
|
2020-09-14 16:25:38 +00:00
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ParserBrackets) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-09-14 16:25:38 +00:00
|
|
|
type ParserSeparatedList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-09-14 16:25:38 +00:00
|
|
|
Items []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ParserSeparatedList) Accept(v NodeVisitor) {
|
|
|
|
v.ParserSeparatedList(n)
|
|
|
|
}
|
2020-11-22 12:26:24 +00:00
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ParserSeparatedList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-12-04 09:02:38 +00:00
|
|
|
// ArgumentList node
|
|
|
|
type ArgumentList struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-12-04 09:02:38 +00:00
|
|
|
OpenParenthesisTkn *token.Token
|
|
|
|
Arguments []Vertex
|
|
|
|
SeparatorTkns []*token.Token
|
|
|
|
CloseParenthesisTkn *token.Token
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ArgumentList) Accept(v NodeVisitor) {
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
2020-12-07 22:04:12 +00:00
|
|
|
func (n *ArgumentList) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|
|
|
|
|
2020-11-22 12:26:24 +00:00
|
|
|
type ReturnType struct {
|
2020-12-07 22:04:12 +00:00
|
|
|
Position *position.Position
|
2020-11-22 12:26:24 +00:00
|
|
|
ColonTkn *token.Token
|
|
|
|
Type Vertex
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *ReturnType) Accept(v NodeVisitor) {
|
|
|
|
// do nothing
|
|
|
|
}
|
2020-12-07 22:04:12 +00:00
|
|
|
|
|
|
|
func (n *ReturnType) GetPosition() *position.Position {
|
|
|
|
return n.Position
|
|
|
|
}
|