php8

package
v0.0.0-...-3d2a9e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

line internal/php8/php8.y:2

ragel_subtype=go

Index

Constants

View Source
const T_ABSTRACT = 57442
View Source
const T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG = 57492
View Source
const T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG = 57493
View Source
const T_AND_EQUAL = 57467
View Source
const T_ARRAY = 57403
View Source
const T_ARRAY_CAST = 57453
View Source
const T_AS = 57371
View Source
const T_ATTRIBUTE = 57486
View Source
const T_BAD_CHARACTER = 57358
View Source
const T_BOOLEAN_AND = 57474
View Source
const T_BOOLEAN_OR = 57473
View Source
const T_BOOL_CAST = 57455
View Source
const T_BREAK = 57376
View Source
const T_CALLABLE = 57404
View Source
const T_CASE = 57374
View Source
const T_CATCH = 57384
View Source
const T_CHARACTER = 57357
View Source
const T_CLASS = 57395
View Source
const T_CLASS_C = 57405
View Source
const T_CLONE = 57435
View Source
const T_CLOSE_TAG = 57415
View Source
const T_COALESCE = 57457
View Source
const T_COALESCE_EQUAL = 57472
View Source
const T_COMMENT = 57411
View Source
const T_CONCAT_EQUAL = 57465
View Source
const T_CONST = 57381
View Source
const T_CONSTANT_ENCAPSED_STRING = 57360
View Source
const T_CONTINUE = 57377
View Source
const T_CURLY_OPEN = 57420
View Source
const T_DEC = 57448
View Source
const T_DECLARE = 57369
View Source
const T_DEFAULT = 57375
View Source
const T_DIR = 57424
View Source
const T_DIV_EQUAL = 57464
View Source
const T_DNUMBER = 57351
View Source
const T_DO = 57362
View Source
const T_DOC_COMMENT = 57412
View Source
const T_DOLLAR_OPEN_CURLY_BRACES = 57419
View Source
const T_DOUBLE_ARROW = 57401
View Source
const T_DOUBLE_CAST = 57451
View Source
const T_ECHO = 57361
View Source
const T_ELLIPSIS = 57426
View Source
const T_ELSE = 57437
View Source
const T_ELSEIF = 57436
View Source
const T_EMPTY = 57393
View Source
const T_ENCAPSED_AND_WHITESPACE = 57359
View Source
const T_ENDDECLARE = 57370
View Source
const T_ENDFOR = 57366
View Source
const T_ENDFOREACH = 57368
View Source
const T_ENDIF = 57438
View Source
const T_ENDSWITCH = 57373
View Source
const T_ENDWHILE = 57364
View Source
const T_END_HEREDOC = 57418
View Source
const T_ENUM = 57491
View Source
const T_EVAL = 57427
View Source
const T_EXIT = 57348
View Source
const T_EXTENDS = 57398
View Source
const T_FILE = 57410
View Source
const T_FINAL = 57443
View Source
const T_FINALLY = 57385
View Source
const T_FN = 57380
View Source
const T_FOR = 57365
View Source
const T_FOREACH = 57367
View Source
const T_FUNCTION = 57379
View Source
const T_FUNC_C = 57408
View Source
const T_GLOBAL = 57389
View Source
const T_GOTO = 57378
View Source
const T_HALT_COMPILER = 57394
View Source
const T_IF = 57349
View Source
const T_IMPLEMENTS = 57399
View Source
const T_INC = 57447
View Source
const T_INCLUDE = 57346
View Source
const T_INCLUDE_ONCE = 57347
View Source
const T_INLINE_HTML = 57356
View Source
const T_INSTANCEOF = 57433
View Source
const T_INSTEADOF = 57388
View Source
const T_INTERFACE = 57397
View Source
const T_INT_CAST = 57450
View Source
const T_ISSET = 57392
View Source
const T_IS_EQUAL = 57480
View Source
const T_IS_GREATER_OR_EQUAL = 57483
View Source
const T_IS_IDENTICAL = 57478
View Source
const T_IS_NOT_EQUAL = 57481
View Source
const T_IS_NOT_IDENTICAL = 57479
View Source
const T_IS_SMALLER_OR_EQUAL = 57482
View Source
const T_LINE = 57409
View Source
const T_LIST = 57402
View Source
const T_LNUMBER = 57350
View Source
const T_LOGICAL_AND = 57432
View Source
const T_LOGICAL_OR = 57430
View Source
const T_LOGICAL_XOR = 57431
View Source
const T_MATCH = 57485
View Source
const T_METHOD_C = 57407
View Source
const T_MINUS_EQUAL = 57461
View Source
const T_MOD_EQUAL = 57466
View Source
const T_MUL_EQUAL = 57462
View Source
const T_NAMESPACE = 57422
View Source
const T_NAME_FULLY_QUALIFIED = 57489
View Source
const T_NAME_QUALIFIED = 57488
View Source
const T_NAME_RELATIVE = 57487
View Source
const T_NEW = 57434
View Source
const T_NOELSE = 57459
View Source
const T_NS_C = 57423
View Source
const T_NS_SEPARATOR = 57425
View Source
const T_NULLSAFE_OBJECT_OPERATOR = 57484
View Source
const T_NUM_STRING = 57355
View Source
const T_OBJECT_CAST = 57454
View Source
const T_OBJECT_OPERATOR = 57400
View Source
const T_OPEN_TAG = 57413
View Source
const T_OPEN_TAG_WITH_ECHO = 57414
View Source
const T_OR_EQUAL = 57468
View Source
const T_PAAMAYIM_NEKUDOTAYIM = 57421
View Source
const T_PLUS_EQUAL = 57460
View Source
const T_POW = 57475
View Source
const T_POW_EQUAL = 57463
View Source
const T_PRINT = 57439
View Source
const T_PRIVATE = 57444
View Source
const T_PROTECTED = 57445
View Source
const T_PUBLIC = 57446
View Source
const T_READONLY = 57490
View Source
const T_REQUIRE = 57428
View Source
const T_REQUIRE_ONCE = 57429
View Source
const T_RETURN = 57382
View Source
const T_SL = 57476
View Source
const T_SL_EQUAL = 57470
View Source
const T_SPACESHIP = 57458
View Source
const T_SR = 57477
View Source
const T_SR_EQUAL = 57471
View Source
const T_START_HEREDOC = 57417
View Source
const T_STATIC = 57441
View Source
const T_STRING = 57352
View Source
const T_STRING_CAST = 57452
View Source
const T_STRING_VARNAME = 57353
View Source
const T_SWITCH = 57372
View Source
const T_THROW = 57386
View Source
const T_TRAIT = 57396
View Source
const T_TRAIT_C = 57406
View Source
const T_TRY = 57383
View Source
const T_UNSET = 57391
View Source
const T_UNSET_CAST = 57456
View Source
const T_USE = 57387
View Source
const T_VAR = 57390
View Source
const T_VARIABLE = 57354
View Source
const T_WHILE = 57363
View Source
const T_WHITESPACE = 57416
View Source
const T_XOR_EQUAL = 57469
View Source
const T_YIELD = 57440
View Source
const T_YIELD_FROM = 57449

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentList

type ArgumentList struct {
	Position            *position.Position
	OpenParenthesisTkn  *token.Token
	Arguments           []ast.Vertex
	SeparatorTkns       []*token.Token
	EllipsisTkn         *token.Token
	CloseParenthesisTkn *token.Token
}

ArgumentList node

func (*ArgumentList) Accept

func (n *ArgumentList) Accept(v ast.Visitor)

func (*ArgumentList) GetPosition

func (n *ArgumentList) GetPosition() *position.Position

func (*ArgumentList) GetType

func (n *ArgumentList) GetType() ast.Type

type Builder

type Builder struct {
	Pos    *position.Builder
	Parser *Parser
}

Builder is responsible for creating nodes inside grammar rules. Creating nodes directly in grammar rules is inconvenient, since there is no autocompletion and you cannot put breakpoints inside.

func NewBuilder

func NewBuilder(pos *position.Builder, parser *Parser) *Builder

NewBuilder creates a new Builder.

func (*Builder) AppendToSeparatedList

func (b *Builder) AppendToSeparatedList(list ast.Vertex, tkn *token.Token, node ast.Vertex) *ParserSeparatedList

AppendToSeparatedList inserts a new node and/or token into the list.

func (*Builder) NewAnonClass

func (b *Builder) NewAnonClass(
	AttrGroups []ast.Vertex,
	ClassTkn *token.Token,

	ArgList ast.Vertex,

	ExtendsFrom ast.Vertex,
	ImplementsList ast.Vertex,

	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtClass

func (*Builder) NewArgument

func (b *Builder) NewArgument(
	Expr ast.Vertex,
) *ast.Argument

func (*Builder) NewArgumentList

func (b *Builder) NewArgumentList(
	OpenParenthesisTkn *token.Token,

	ArgList ast.Vertex,
	CommaTkn *token.Token,

	EllipsisTkn *token.Token,

	CloseParenthesisTkn *token.Token,
) *ArgumentList

func (*Builder) NewAttribute

func (b *Builder) NewAttribute(
	Name ast.Vertex,
	ArgList ast.Vertex,
) *ast.Attribute

func (*Builder) NewAttributeGroup

func (b *Builder) NewAttributeGroup(
	OpenAttributeTkn *token.Token,
	AttrsList ast.Vertex,
	OptionalCommaTkn *token.Token,
	CloseAttributeTkn *token.Token,
) *ast.AttributeGroup

func (*Builder) NewBracket

func (b *Builder) NewBracket(
	OpenParenthesisTkn *token.Token,
	Expr ast.Vertex,
	CloseParenthesisTkn *token.Token,
) *ast.ExprBrackets

func (*Builder) NewCatch

func (b *Builder) NewCatch(
	CatchTkn *token.Token,
	OpenParenthesisTkn *token.Token,
	CatchNameList ast.Vertex,
	Variable *token.Token,
	CloseParenthesisTkn *token.Token,
	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtCatch

func (*Builder) NewClass

func (b *Builder) NewClass(
	AttrGroups []ast.Vertex,
	Modifiers []ast.Vertex,
	ClassTkn *token.Token,
	Name *token.Token,

	ExtendsFrom ast.Vertex,
	ImplementsList ast.Vertex,

	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtClass

func (*Builder) NewClassConstList

func (b *Builder) NewClassConstList(
	AttrGroups []ast.Vertex,
	Modifiers []ast.Vertex,
	ConstTkn *token.Token,
	ConstList ast.Vertex,
	SemiColonTkn *token.Token,
) *ast.StmtClassConstList

func (*Builder) NewClassMethod

func (b *Builder) NewClassMethod(
	AttrGroups []ast.Vertex,
	Modifiers []ast.Vertex,
	FunctionTkn *token.Token,
	AmpersandTkn *token.Token,
	Name *token.Token,

	OpenParenthesisTkn *token.Token,
	Params ast.Vertex,
	CloseParenthesisTkn *token.Token,

	RetType ast.Vertex,

	Stmt ast.Vertex,
) *ast.StmtClassMethod

func (*Builder) NewConstFetch

func (b *Builder) NewConstFetch(
	Name ast.Vertex,
) *ast.ExprConstFetch

func (*Builder) NewEmptySeparatedList

func (b *Builder) NewEmptySeparatedList() *ParserSeparatedList

NewEmptySeparatedList creates a new empty list. Used for places where a delimited list is used.

func (*Builder) NewEnum

func (b *Builder) NewEnum(
	AttrGroups []ast.Vertex,
	EnumTkn *token.Token,
	Name *token.Token,

	EnumScalarType ast.Vertex,

	ImplementsList ast.Vertex,

	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtEnum

func (*Builder) NewEnumCase

func (b *Builder) NewEnumCase(
	AttrGroups []ast.Vertex,
	CaseTkn *token.Token,
	Name *token.Token,
	Expr ast.Vertex,
	SemiColonTkn *token.Token,
) *ast.EnumCase

func (*Builder) NewEnumExpr

func (b *Builder) NewEnumExpr(
	AssignTkn *token.Token,
	Expr ast.Vertex,
) *EnumCaseExpr

func (*Builder) NewEnumType

func (b *Builder) NewEnumType(
	ColonTkn *token.Token,
	Type ast.Vertex,
) *ReturnType

func (*Builder) NewExpressionStmt

func (b *Builder) NewExpressionStmt(
	Expr ast.Vertex,
	SemiColonTkn *token.Token,
) ast.Vertex

func (*Builder) NewFunction

func (b *Builder) NewFunction(
	AttrGroups []ast.Vertex,
	FunctionTkn *token.Token,
	AmpersandTkn *token.Token,
	Name *token.Token,
	OpenParenthesisTkn *token.Token,
	Params ast.Vertex,
	CloseParenthesisTkn *token.Token,
	RetType ast.Vertex,
	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtFunction

func (*Builder) NewGroupUseList

func (b *Builder) NewGroupUseList(
	UseTkn *token.Token,
	Type *token.Token,

	Prefix ast.Vertex,

	NsSeparatorTkn *token.Token,

	OpenCurlyBracketTkn *token.Token,

	UsesList ast.Vertex,

	CloseCurlyBracketTkn *token.Token,
	SemiColonTkn *token.Token,
) *ast.StmtGroupUseList

func (*Builder) NewIdentifier

func (b *Builder) NewIdentifier(
	IdentifierTkn *token.Token,
) ast.Vertex

func (*Builder) NewInterface

func (b *Builder) NewInterface(
	AttrGroups []ast.Vertex,
	InterfaceTkn *token.Token,
	Name *token.Token,
	ExtendsFrom ast.Vertex,
	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtInterface

func (*Builder) NewIntersectionType

func (b *Builder) NewIntersectionType(
	Types ast.Vertex,
) *ast.Intersection

func (*Builder) NewMatch

func (b *Builder) NewMatch(
	MatchTkn *token.Token,
	OpenParenthesisTkn *token.Token,
	Expr ast.Vertex,
	CloseParenthesisTkn *token.Token,
	OpenCurlyBracketTkn *token.Token,
	Cases ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.ExprMatch

func (*Builder) NewMatchArm

func (b *Builder) NewMatchArm(
	DefaultTkn *token.Token,
	DefaultCommaTkn *token.Token,
	Exprs ast.Vertex,
	DoubleArrowTkn *token.Token,
	ReturnExpr ast.Vertex,
) *ast.MatchArm

func (*Builder) NewMethodCall

func (b *Builder) NewMethodCall(
	Expr ast.Vertex,
	ObjectOperatorTkn *token.Token,
	PropertyName ast.Vertex,
	ArgList ast.Vertex,
) *ast.ExprMethodCall

func (*Builder) NewName

func (b *Builder) NewName(
	NameTkn *token.Token,
) *ast.Name

func (*Builder) NewNameFullyQualified

func (b *Builder) NewNameFullyQualified(
	NameTkn *token.Token,
) *ast.NameFullyQualified

func (*Builder) NewNamePart

func (b *Builder) NewNamePart(
	NameTkn *token.Token,
) *ast.NamePart

func (*Builder) NewNameQualified

func (b *Builder) NewNameQualified(
	NameTkn *token.Token,
) *ast.Name

func (*Builder) NewNameRelative

func (b *Builder) NewNameRelative(
	NameTkn *token.Token,
) *ast.NameRelative

func (*Builder) NewNameType

func (b *Builder) NewNameType(
	IdentifierTkn *token.Token,
) *ast.Identifier

func (*Builder) NewNamedArgument

func (b *Builder) NewNamedArgument(
	Name *token.Token,
	ColonTkn *token.Token,
	Expr ast.Vertex,
) *ast.Argument

func (*Builder) NewNamespace

func (b *Builder) NewNamespace(
	NsTkn *token.Token,
	Name ast.Vertex,
	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
	SemiColonTkn *token.Token,
) *ast.StmtNamespace

func (*Builder) NewNonEmptySeparatedList

func (b *Builder) NewNonEmptySeparatedList(nodes []ast.Vertex, tkns []*token.Token) *ParserSeparatedList

func (*Builder) NewNullableType

func (b *Builder) NewNullableType(
	QuestionTkn *token.Token,
	Expr ast.Vertex,
) *ast.Nullable

func (*Builder) NewNullsafeMethodCall

func (b *Builder) NewNullsafeMethodCall(
	Expr ast.Vertex,
	ObjectOperatorTkn *token.Token,
	PropertyName ast.Vertex,
	ArgList ast.Vertex,
) *ast.ExprNullsafeMethodCall

func (*Builder) NewNullsafePropertyFetch

func (b *Builder) NewNullsafePropertyFetch(
	Expr ast.Vertex,
	ObjectOperatorTkn *token.Token,
	PropertyName ast.Vertex,
) *ast.ExprNullsafePropertyFetch

func (*Builder) NewNullsafePropertyFetchFromTokens

func (b *Builder) NewNullsafePropertyFetchFromTokens(
	VariableTkn *token.Token,
	ObjectOperatorTkn *token.Token,
	StringTkn *token.Token,
) *ast.ExprNullsafePropertyFetch

func (*Builder) NewParameter

func (b *Builder) NewParameter(
	AttrGroups []ast.Vertex,
	Modifiers []ast.Vertex,
	Type ast.Vertex,
	AmpersandTkn *token.Token,
	VariadicTkn *token.Token,
	VarTkn *token.Token,
	EqualTkn *token.Token,
	DefaultValue ast.Vertex,
	WithDefault bool,
) *ast.Parameter

func (*Builder) NewPropertyFetch

func (b *Builder) NewPropertyFetch(
	Expr ast.Vertex,
	ObjectOperatorTkn *token.Token,
	PropertyName ast.Vertex,
) *ast.ExprPropertyFetch

func (*Builder) NewPropertyFetchFromTokens

func (b *Builder) NewPropertyFetchFromTokens(
	VariableTkn *token.Token,
	ObjectOperatorTkn *token.Token,
	StringTkn *token.Token,
) *ast.ExprPropertyFetch

func (*Builder) NewPropertyList

func (b *Builder) NewPropertyList(
	AttrGroups []ast.Vertex,
	Modifiers []ast.Vertex,
	Type ast.Vertex,
	PropsList ast.Vertex,
	SemiColonTkn *token.Token,
) *ast.StmtPropertyList

func (*Builder) NewReturnType

func (b *Builder) NewReturnType(
	ColonTkn *token.Token,
	Type ast.Vertex,
) *ReturnType

func (*Builder) NewScalarMagicConstant

func (b *Builder) NewScalarMagicConstant(
	MagicConstantTkn *token.Token,
) *ast.ScalarMagicConstant

func (*Builder) NewSeparatedList

func (b *Builder) NewSeparatedList(node ast.Vertex) *ParserSeparatedList

NewSeparatedList creates a new single-element list. Used for places where a delimited list is used.

func (*Builder) NewSeparatedListWithTwoElements

func (b *Builder) NewSeparatedListWithTwoElements(node1 ast.Vertex, tkn *token.Token, node2 ast.Vertex) *ParserSeparatedList

NewSeparatedListWithTwoElements creates a new two-element list. Used for places where a delimited list is used.

func (*Builder) NewThrowExpr

func (b *Builder) NewThrowExpr(
	ThrowTkn *token.Token,
	Expr ast.Vertex,
) *ast.ExprThrow

func (*Builder) NewThrowStmt

func (b *Builder) NewThrowStmt(
	ThrowTkn *token.Token,
	Expr ast.Vertex,
) *ast.StmtThrow

func (*Builder) NewTrait

func (b *Builder) NewTrait(
	AttrGroups []ast.Vertex,
	TraitTkn *token.Token,
	Name *token.Token,
	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
) *ast.StmtTrait

func (*Builder) NewTry

func (b *Builder) NewTry(
	TryTkn *token.Token,
	OpenCurlyBracketTkn *token.Token,
	Stmts []ast.Vertex,
	CloseCurlyBracketTkn *token.Token,
	Catches ast.Vertex,
	Finally ast.Vertex,
) *ast.StmtTry

func (*Builder) NewUnionType

func (b *Builder) NewUnionType(
	Types ast.Vertex,
) *ast.Union

func (*Builder) NewUse

func (b *Builder) NewUse(
	Type ast.Vertex,

	UseName ast.Vertex,

	AsTkn *token.Token,
	Alias *token.Token,
) *ast.StmtUse

func (*Builder) NewUseList

func (b *Builder) NewUseList(
	UseTkn *token.Token,
	Type *token.Token,
	UsesList ast.Vertex,
	SemiColonTkn *token.Token,
) *ast.StmtUseList

func (*Builder) NewVariadicArgument

func (b *Builder) NewVariadicArgument(
	VariadicTkn *token.Token,
	Expr ast.Vertex,
) *ast.Argument

func (*Builder) SeparatedListItems

func (b *Builder) SeparatedListItems(list ast.Vertex) (items []ast.Vertex, sepTkns []*token.Token)

type EnumCaseExpr

type EnumCaseExpr struct {
	Position  *position.Position
	AssignTkn *token.Token
	Expr      ast.Vertex
}

func (*EnumCaseExpr) Accept

func (n *EnumCaseExpr) Accept(v ast.Visitor)

func (*EnumCaseExpr) GetPosition

func (n *EnumCaseExpr) GetPosition() *position.Position

func (*EnumCaseExpr) GetType

func (n *EnumCaseExpr) GetType() ast.Type

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

func NewLexer

func NewLexer(data []byte, config conf.Config) *Lexer

func (*Lexer) Lex

func (lex *Lexer) Lex() *token.Token

type Parser

type Parser struct {
	Lexer *Lexer
	// contains filtered or unexported fields
}

Parser structure

func NewParser

func NewParser(lexer *Lexer, config conf.Config) *Parser

NewParser creates and returns new Parser

func (*Parser) Error

func (p *Parser) Error(msg string)

func (*Parser) GetRootNode

func (p *Parser) GetRootNode() ast.Vertex

GetRootNode returns root node

func (*Parser) Lex

func (p *Parser) Lex(lval *yySymType) int

func (*Parser) Parse

func (p *Parser) Parse() int

Parse the php7 Parser entrypoint

type ParserBrackets

type ParserBrackets struct {
	Position        *position.Position
	OpenBracketTkn  *token.Token
	Child           ast.Vertex
	CloseBracketTkn *token.Token
}

func (*ParserBrackets) Accept

func (n *ParserBrackets) Accept(v ast.Visitor)

func (*ParserBrackets) GetPosition

func (n *ParserBrackets) GetPosition() *position.Position

func (*ParserBrackets) GetType

func (n *ParserBrackets) GetType() ast.Type

type ParserSeparatedList

type ParserSeparatedList struct {
	Position      *position.Position
	Items         []ast.Vertex
	SeparatorTkns []*token.Token
}

func (*ParserSeparatedList) Accept

func (n *ParserSeparatedList) Accept(v ast.Visitor)

func (*ParserSeparatedList) GetPosition

func (n *ParserSeparatedList) GetPosition() *position.Position

func (*ParserSeparatedList) GetType

func (n *ParserSeparatedList) GetType() ast.Type

type ReturnType

type ReturnType struct {
	Position *position.Position
	ColonTkn *token.Token
	Type     ast.Vertex
}

func (*ReturnType) Accept

func (n *ReturnType) Accept(v ast.Visitor)

func (*ReturnType) GetPosition

func (n *ReturnType) GetPosition() *position.Position

func (*ReturnType) GetType

func (n *ReturnType) GetType() ast.Type

type TraitAdaptationList

type TraitAdaptationList struct {
	Position             *position.Position
	OpenCurlyBracketTkn  *token.Token
	Adaptations          []ast.Vertex
	CloseCurlyBracketTkn *token.Token
}

TraitAdaptationList node

func (*TraitAdaptationList) Accept

func (n *TraitAdaptationList) Accept(v ast.Visitor)

func (*TraitAdaptationList) GetPosition

func (n *TraitAdaptationList) GetPosition() *position.Position

func (*TraitAdaptationList) GetType

func (n *TraitAdaptationList) GetType() ast.Type

type TraitMethodRef

type TraitMethodRef struct {
	Position       *position.Position
	Trait          ast.Vertex
	DoubleColonTkn *token.Token
	Method         ast.Vertex
}

TraitMethodRef node

func (*TraitMethodRef) Accept

func (n *TraitMethodRef) Accept(v ast.Visitor)

func (*TraitMethodRef) GetPosition

func (n *TraitMethodRef) GetPosition() *position.Position

func (*TraitMethodRef) GetType

func (n *TraitMethodRef) GetType() ast.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL