traverser

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckEntrance

type CheckEntrance interface {
	EnterNode(ast.Vertex) bool
}

type NotifyLeave

type NotifyLeave interface {
	LeaveNode(ast.Vertex)
}

type Traverser

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

func NewTraverser

func NewTraverser(v ast.Visitor) *Traverser

func (*Traverser) Argument

func (t *Traverser) Argument(n *ast.Argument)

func (*Traverser) Attribute

func (t *Traverser) Attribute(n *ast.Attribute)

func (*Traverser) AttributeGroup

func (t *Traverser) AttributeGroup(n *ast.AttributeGroup)

func (*Traverser) EnumCase

func (t *Traverser) EnumCase(n *ast.EnumCase)

func (*Traverser) ExprArray

func (t *Traverser) ExprArray(n *ast.ExprArray)

func (*Traverser) ExprArrayDimFetch

func (t *Traverser) ExprArrayDimFetch(n *ast.ExprArrayDimFetch)

func (*Traverser) ExprArrayItem

func (t *Traverser) ExprArrayItem(n *ast.ExprArrayItem)

func (*Traverser) ExprArrowFunction

func (t *Traverser) ExprArrowFunction(n *ast.ExprArrowFunction)

func (*Traverser) ExprAssign

func (t *Traverser) ExprAssign(n *ast.ExprAssign)

func (*Traverser) ExprAssignBitwiseAnd

func (t *Traverser) ExprAssignBitwiseAnd(n *ast.ExprAssignBitwiseAnd)

func (*Traverser) ExprAssignBitwiseOr

func (t *Traverser) ExprAssignBitwiseOr(n *ast.ExprAssignBitwiseOr)

func (*Traverser) ExprAssignBitwiseXor

func (t *Traverser) ExprAssignBitwiseXor(n *ast.ExprAssignBitwiseXor)

func (*Traverser) ExprAssignCoalesce

func (t *Traverser) ExprAssignCoalesce(n *ast.ExprAssignCoalesce)

func (*Traverser) ExprAssignConcat

func (t *Traverser) ExprAssignConcat(n *ast.ExprAssignConcat)

func (*Traverser) ExprAssignDiv

func (t *Traverser) ExprAssignDiv(n *ast.ExprAssignDiv)

func (*Traverser) ExprAssignMinus

func (t *Traverser) ExprAssignMinus(n *ast.ExprAssignMinus)

func (*Traverser) ExprAssignMod

func (t *Traverser) ExprAssignMod(n *ast.ExprAssignMod)

func (*Traverser) ExprAssignMul

func (t *Traverser) ExprAssignMul(n *ast.ExprAssignMul)

func (*Traverser) ExprAssignPlus

func (t *Traverser) ExprAssignPlus(n *ast.ExprAssignPlus)

func (*Traverser) ExprAssignPow

func (t *Traverser) ExprAssignPow(n *ast.ExprAssignPow)

func (*Traverser) ExprAssignReference

func (t *Traverser) ExprAssignReference(n *ast.ExprAssignReference)

func (*Traverser) ExprAssignShiftLeft

func (t *Traverser) ExprAssignShiftLeft(n *ast.ExprAssignShiftLeft)

func (*Traverser) ExprAssignShiftRight

func (t *Traverser) ExprAssignShiftRight(n *ast.ExprAssignShiftRight)

func (*Traverser) ExprBinaryBitwiseAnd

func (t *Traverser) ExprBinaryBitwiseAnd(n *ast.ExprBinaryBitwiseAnd)

func (*Traverser) ExprBinaryBitwiseOr

func (t *Traverser) ExprBinaryBitwiseOr(n *ast.ExprBinaryBitwiseOr)

func (*Traverser) ExprBinaryBitwiseXor

func (t *Traverser) ExprBinaryBitwiseXor(n *ast.ExprBinaryBitwiseXor)

func (*Traverser) ExprBinaryBooleanAnd

func (t *Traverser) ExprBinaryBooleanAnd(n *ast.ExprBinaryBooleanAnd)

func (*Traverser) ExprBinaryBooleanOr

func (t *Traverser) ExprBinaryBooleanOr(n *ast.ExprBinaryBooleanOr)

func (*Traverser) ExprBinaryCoalesce

func (t *Traverser) ExprBinaryCoalesce(n *ast.ExprBinaryCoalesce)

func (*Traverser) ExprBinaryConcat

func (t *Traverser) ExprBinaryConcat(n *ast.ExprBinaryConcat)

func (*Traverser) ExprBinaryDiv

func (t *Traverser) ExprBinaryDiv(n *ast.ExprBinaryDiv)

func (*Traverser) ExprBinaryEqual

func (t *Traverser) ExprBinaryEqual(n *ast.ExprBinaryEqual)

func (*Traverser) ExprBinaryGreater

func (t *Traverser) ExprBinaryGreater(n *ast.ExprBinaryGreater)

func (*Traverser) ExprBinaryGreaterOrEqual

func (t *Traverser) ExprBinaryGreaterOrEqual(n *ast.ExprBinaryGreaterOrEqual)

func (*Traverser) ExprBinaryIdentical

func (t *Traverser) ExprBinaryIdentical(n *ast.ExprBinaryIdentical)

func (*Traverser) ExprBinaryLogicalAnd

func (t *Traverser) ExprBinaryLogicalAnd(n *ast.ExprBinaryLogicalAnd)

func (*Traverser) ExprBinaryLogicalOr

func (t *Traverser) ExprBinaryLogicalOr(n *ast.ExprBinaryLogicalOr)

func (*Traverser) ExprBinaryLogicalXor

func (t *Traverser) ExprBinaryLogicalXor(n *ast.ExprBinaryLogicalXor)

func (*Traverser) ExprBinaryMinus

func (t *Traverser) ExprBinaryMinus(n *ast.ExprBinaryMinus)

func (*Traverser) ExprBinaryMod

func (t *Traverser) ExprBinaryMod(n *ast.ExprBinaryMod)

func (*Traverser) ExprBinaryMul

func (t *Traverser) ExprBinaryMul(n *ast.ExprBinaryMul)

func (*Traverser) ExprBinaryNotEqual

func (t *Traverser) ExprBinaryNotEqual(n *ast.ExprBinaryNotEqual)

func (*Traverser) ExprBinaryNotIdentical

func (t *Traverser) ExprBinaryNotIdentical(n *ast.ExprBinaryNotIdentical)

func (*Traverser) ExprBinaryPlus

func (t *Traverser) ExprBinaryPlus(n *ast.ExprBinaryPlus)

func (*Traverser) ExprBinaryPow

func (t *Traverser) ExprBinaryPow(n *ast.ExprBinaryPow)

func (*Traverser) ExprBinaryShiftLeft

func (t *Traverser) ExprBinaryShiftLeft(n *ast.ExprBinaryShiftLeft)

func (*Traverser) ExprBinaryShiftRight

func (t *Traverser) ExprBinaryShiftRight(n *ast.ExprBinaryShiftRight)

func (*Traverser) ExprBinarySmaller

func (t *Traverser) ExprBinarySmaller(n *ast.ExprBinarySmaller)

func (*Traverser) ExprBinarySmallerOrEqual

func (t *Traverser) ExprBinarySmallerOrEqual(n *ast.ExprBinarySmallerOrEqual)

func (*Traverser) ExprBinarySpaceship

func (t *Traverser) ExprBinarySpaceship(n *ast.ExprBinarySpaceship)

func (*Traverser) ExprBitwiseNot

func (t *Traverser) ExprBitwiseNot(n *ast.ExprBitwiseNot)

func (*Traverser) ExprBooleanNot

func (t *Traverser) ExprBooleanNot(n *ast.ExprBooleanNot)

func (*Traverser) ExprBrackets

func (t *Traverser) ExprBrackets(n *ast.ExprBrackets)

func (*Traverser) ExprCastArray

func (t *Traverser) ExprCastArray(n *ast.ExprCastArray)

func (*Traverser) ExprCastBool

func (t *Traverser) ExprCastBool(n *ast.ExprCastBool)

func (*Traverser) ExprCastDouble

func (t *Traverser) ExprCastDouble(n *ast.ExprCastDouble)

func (*Traverser) ExprCastInt

func (t *Traverser) ExprCastInt(n *ast.ExprCastInt)

func (*Traverser) ExprCastObject

func (t *Traverser) ExprCastObject(n *ast.ExprCastObject)

func (*Traverser) ExprCastString

func (t *Traverser) ExprCastString(n *ast.ExprCastString)

func (*Traverser) ExprCastUnset

func (t *Traverser) ExprCastUnset(n *ast.ExprCastUnset)

func (*Traverser) ExprClassConstFetch

func (t *Traverser) ExprClassConstFetch(n *ast.ExprClassConstFetch)

func (*Traverser) ExprClone

func (t *Traverser) ExprClone(n *ast.ExprClone)

func (*Traverser) ExprClosure

func (t *Traverser) ExprClosure(n *ast.ExprClosure)

func (*Traverser) ExprClosureUse

func (t *Traverser) ExprClosureUse(n *ast.ExprClosureUse)

func (*Traverser) ExprConstFetch

func (t *Traverser) ExprConstFetch(n *ast.ExprConstFetch)

func (*Traverser) ExprEmpty

func (t *Traverser) ExprEmpty(n *ast.ExprEmpty)

func (*Traverser) ExprErrorSuppress

func (t *Traverser) ExprErrorSuppress(n *ast.ExprErrorSuppress)

func (*Traverser) ExprEval

func (t *Traverser) ExprEval(n *ast.ExprEval)

func (*Traverser) ExprExit

func (t *Traverser) ExprExit(n *ast.ExprExit)

func (*Traverser) ExprFunctionCall

func (t *Traverser) ExprFunctionCall(n *ast.ExprFunctionCall)

func (*Traverser) ExprInclude

func (t *Traverser) ExprInclude(n *ast.ExprInclude)

func (*Traverser) ExprIncludeOnce

func (t *Traverser) ExprIncludeOnce(n *ast.ExprIncludeOnce)

func (*Traverser) ExprInstanceOf

func (t *Traverser) ExprInstanceOf(n *ast.ExprInstanceOf)

func (*Traverser) ExprIsset

func (t *Traverser) ExprIsset(n *ast.ExprIsset)

func (*Traverser) ExprList

func (t *Traverser) ExprList(n *ast.ExprList)

func (*Traverser) ExprMatch

func (t *Traverser) ExprMatch(n *ast.ExprMatch)

func (*Traverser) ExprMethodCall

func (t *Traverser) ExprMethodCall(n *ast.ExprMethodCall)

func (*Traverser) ExprNew

func (t *Traverser) ExprNew(n *ast.ExprNew)

func (*Traverser) ExprNullsafeMethodCall

func (t *Traverser) ExprNullsafeMethodCall(n *ast.ExprNullsafeMethodCall)

func (*Traverser) ExprNullsafePropertyFetch

func (t *Traverser) ExprNullsafePropertyFetch(n *ast.ExprNullsafePropertyFetch)

func (*Traverser) ExprPostDec

func (t *Traverser) ExprPostDec(n *ast.ExprPostDec)

func (*Traverser) ExprPostInc

func (t *Traverser) ExprPostInc(n *ast.ExprPostInc)

func (*Traverser) ExprPreDec

func (t *Traverser) ExprPreDec(n *ast.ExprPreDec)

func (*Traverser) ExprPreInc

func (t *Traverser) ExprPreInc(n *ast.ExprPreInc)

func (*Traverser) ExprPrint

func (t *Traverser) ExprPrint(n *ast.ExprPrint)

func (*Traverser) ExprPropertyFetch

func (t *Traverser) ExprPropertyFetch(n *ast.ExprPropertyFetch)

func (*Traverser) ExprRequire

func (t *Traverser) ExprRequire(n *ast.ExprRequire)

func (*Traverser) ExprRequireOnce

func (t *Traverser) ExprRequireOnce(n *ast.ExprRequireOnce)

func (*Traverser) ExprShellExec

func (t *Traverser) ExprShellExec(n *ast.ExprShellExec)

func (*Traverser) ExprStaticCall

func (t *Traverser) ExprStaticCall(n *ast.ExprStaticCall)

func (*Traverser) ExprStaticPropertyFetch

func (t *Traverser) ExprStaticPropertyFetch(n *ast.ExprStaticPropertyFetch)

func (*Traverser) ExprTernary

func (t *Traverser) ExprTernary(n *ast.ExprTernary)

func (*Traverser) ExprThrow

func (t *Traverser) ExprThrow(n *ast.ExprThrow)

func (*Traverser) ExprUnaryMinus

func (t *Traverser) ExprUnaryMinus(n *ast.ExprUnaryMinus)

func (*Traverser) ExprUnaryPlus

func (t *Traverser) ExprUnaryPlus(n *ast.ExprUnaryPlus)

func (*Traverser) ExprVariable

func (t *Traverser) ExprVariable(n *ast.ExprVariable)

func (*Traverser) ExprYield

func (t *Traverser) ExprYield(n *ast.ExprYield)

func (*Traverser) ExprYieldFrom

func (t *Traverser) ExprYieldFrom(n *ast.ExprYieldFrom)

func (*Traverser) Identifier

func (t *Traverser) Identifier(n *ast.Identifier)

func (*Traverser) Intersection

func (t *Traverser) Intersection(n *ast.Intersection)

func (*Traverser) MatchArm

func (t *Traverser) MatchArm(n *ast.MatchArm)

func (*Traverser) NameFullyQualified

func (t *Traverser) NameFullyQualified(n *ast.NameFullyQualified)

func (*Traverser) NameName

func (t *Traverser) NameName(n *ast.Name)

func (*Traverser) NameNamePart

func (t *Traverser) NameNamePart(n *ast.NamePart)

func (*Traverser) NameRelative

func (t *Traverser) NameRelative(n *ast.NameRelative)

func (*Traverser) Nullable

func (t *Traverser) Nullable(n *ast.Nullable)

func (*Traverser) Parameter

func (t *Traverser) Parameter(n *ast.Parameter)

func (*Traverser) Root

func (t *Traverser) Root(n *ast.Root)

func (*Traverser) ScalarDnumber

func (t *Traverser) ScalarDnumber(n *ast.ScalarDnumber)

func (*Traverser) ScalarEncapsed

func (t *Traverser) ScalarEncapsed(n *ast.ScalarEncapsed)

func (*Traverser) ScalarEncapsedStringBrackets

func (t *Traverser) ScalarEncapsedStringBrackets(n *ast.ScalarEncapsedStringBrackets)

func (*Traverser) ScalarEncapsedStringPart

func (t *Traverser) ScalarEncapsedStringPart(n *ast.ScalarEncapsedStringPart)

func (*Traverser) ScalarEncapsedStringVar

func (t *Traverser) ScalarEncapsedStringVar(n *ast.ScalarEncapsedStringVar)

func (*Traverser) ScalarHeredoc

func (t *Traverser) ScalarHeredoc(n *ast.ScalarHeredoc)

func (*Traverser) ScalarLnumber

func (t *Traverser) ScalarLnumber(n *ast.ScalarLnumber)

func (*Traverser) ScalarMagicConstant

func (t *Traverser) ScalarMagicConstant(n *ast.ScalarMagicConstant)

func (*Traverser) ScalarString

func (t *Traverser) ScalarString(n *ast.ScalarString)

func (*Traverser) StmtBreak

func (t *Traverser) StmtBreak(n *ast.StmtBreak)

func (*Traverser) StmtCase

func (t *Traverser) StmtCase(n *ast.StmtCase)

func (*Traverser) StmtCatch

func (t *Traverser) StmtCatch(n *ast.StmtCatch)

func (*Traverser) StmtClass

func (t *Traverser) StmtClass(n *ast.StmtClass)

func (*Traverser) StmtClassConstList

func (t *Traverser) StmtClassConstList(n *ast.StmtClassConstList)

func (*Traverser) StmtClassMethod

func (t *Traverser) StmtClassMethod(n *ast.StmtClassMethod)

func (*Traverser) StmtConstList

func (t *Traverser) StmtConstList(n *ast.StmtConstList)

func (*Traverser) StmtConstant

func (t *Traverser) StmtConstant(n *ast.StmtConstant)

func (*Traverser) StmtContinue

func (t *Traverser) StmtContinue(n *ast.StmtContinue)

func (*Traverser) StmtDeclare

func (t *Traverser) StmtDeclare(n *ast.StmtDeclare)

func (*Traverser) StmtDefault

func (t *Traverser) StmtDefault(n *ast.StmtDefault)

func (*Traverser) StmtDo

func (t *Traverser) StmtDo(n *ast.StmtDo)

func (*Traverser) StmtEcho

func (t *Traverser) StmtEcho(n *ast.StmtEcho)

func (*Traverser) StmtElse

func (t *Traverser) StmtElse(n *ast.StmtElse)

func (*Traverser) StmtElseIf

func (t *Traverser) StmtElseIf(n *ast.StmtElseIf)

func (*Traverser) StmtEnum

func (t *Traverser) StmtEnum(n *ast.StmtEnum)

func (*Traverser) StmtExpression

func (t *Traverser) StmtExpression(n *ast.StmtExpression)

func (*Traverser) StmtFinally

func (t *Traverser) StmtFinally(n *ast.StmtFinally)

func (*Traverser) StmtFor

func (t *Traverser) StmtFor(n *ast.StmtFor)

func (*Traverser) StmtForeach

func (t *Traverser) StmtForeach(n *ast.StmtForeach)

func (*Traverser) StmtFunction

func (t *Traverser) StmtFunction(n *ast.StmtFunction)

func (*Traverser) StmtGlobal

func (t *Traverser) StmtGlobal(n *ast.StmtGlobal)

func (*Traverser) StmtGoto

func (t *Traverser) StmtGoto(n *ast.StmtGoto)

func (*Traverser) StmtGroupUse

func (t *Traverser) StmtGroupUse(n *ast.StmtGroupUseList)

func (*Traverser) StmtHaltCompiler

func (t *Traverser) StmtHaltCompiler(n *ast.StmtHaltCompiler)

func (*Traverser) StmtIf

func (t *Traverser) StmtIf(n *ast.StmtIf)

func (*Traverser) StmtInlineHtml

func (t *Traverser) StmtInlineHtml(n *ast.StmtInlineHtml)

func (*Traverser) StmtInterface

func (t *Traverser) StmtInterface(n *ast.StmtInterface)

func (*Traverser) StmtLabel

func (t *Traverser) StmtLabel(n *ast.StmtLabel)

func (*Traverser) StmtNamespace

func (t *Traverser) StmtNamespace(n *ast.StmtNamespace)

func (*Traverser) StmtNop

func (t *Traverser) StmtNop(n *ast.StmtNop)

func (*Traverser) StmtProperty

func (t *Traverser) StmtProperty(n *ast.StmtProperty)

func (*Traverser) StmtPropertyList

func (t *Traverser) StmtPropertyList(n *ast.StmtPropertyList)

func (*Traverser) StmtReturn

func (t *Traverser) StmtReturn(n *ast.StmtReturn)

func (*Traverser) StmtStatic

func (t *Traverser) StmtStatic(n *ast.StmtStatic)

func (*Traverser) StmtStaticVar

func (t *Traverser) StmtStaticVar(n *ast.StmtStaticVar)

func (*Traverser) StmtStmtList

func (t *Traverser) StmtStmtList(n *ast.StmtStmtList)

func (*Traverser) StmtSwitch

func (t *Traverser) StmtSwitch(n *ast.StmtSwitch)

func (*Traverser) StmtThrow

func (t *Traverser) StmtThrow(n *ast.StmtThrow)

func (*Traverser) StmtTrait

func (t *Traverser) StmtTrait(n *ast.StmtTrait)

func (*Traverser) StmtTraitUse

func (t *Traverser) StmtTraitUse(n *ast.StmtTraitUse)

func (*Traverser) StmtTraitUseAlias

func (t *Traverser) StmtTraitUseAlias(n *ast.StmtTraitUseAlias)

func (*Traverser) StmtTraitUsePrecedence

func (t *Traverser) StmtTraitUsePrecedence(n *ast.StmtTraitUsePrecedence)

func (*Traverser) StmtTry

func (t *Traverser) StmtTry(n *ast.StmtTry)

func (*Traverser) StmtUnset

func (t *Traverser) StmtUnset(n *ast.StmtUnset)

func (*Traverser) StmtUse

func (t *Traverser) StmtUse(n *ast.StmtUseList)

func (*Traverser) StmtUseDeclaration

func (t *Traverser) StmtUseDeclaration(n *ast.StmtUse)

func (*Traverser) StmtWhile

func (t *Traverser) StmtWhile(n *ast.StmtWhile)

func (*Traverser) Traverse

func (t *Traverser) Traverse(n ast.Vertex)

func (*Traverser) Union

func (t *Traverser) Union(n *ast.Union)

Jump to

Keyboard shortcuts

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