walker

package
v0.0.0-...-2e6bc3e Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallGraphWalker

type CallGraphWalker struct {
	visitor.Null

	VariableStatus map[string]bool
	CallOut        []data.PHPClassMethod
}

func NewCallGraphWalker

func NewCallGraphWalker() *CallGraphWalker

func (*CallGraphWalker) ExprAssign

func (w *CallGraphWalker) ExprAssign(n *ast.ExprAssign)

func (*CallGraphWalker) ExprFunctionCall

func (w *CallGraphWalker) ExprFunctionCall(n *ast.ExprFunctionCall)

func (*CallGraphWalker) ExprMethodCall

func (w *CallGraphWalker) ExprMethodCall(n *ast.ExprMethodCall)

处理 $this->aaa->bbb(ccc)

func (*CallGraphWalker) GetTargetMethods

func (w *CallGraphWalker) GetTargetMethods(targetName string) []data.PHPClassMethod

func (*CallGraphWalker) StmtClassMethod

func (w *CallGraphWalker) StmtClassMethod(n *ast.StmtClassMethod)

type ClassInfoWalker

type ClassInfoWalker struct {
	visitor.Null

	PHPClasses []data.PHPClass
}

func NewClassInfoWalker

func NewClassInfoWalker() *ClassInfoWalker

func (*ClassInfoWalker) StmtClass

func (w *ClassInfoWalker) StmtClass(n *ast.StmtClass)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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