Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/z7zmey/php-parser
/ functions
Functions
2,599 in github.com/z7zmey/php-parser
⨍
Functions
2,599
◇
Types & classes
222
↓ 697 callers
Method
setFreeFloating
(dst node.Node, p freefloating.Position, strings []freefloating.String)
php5/parser.go:113
↓ 618 callers
Method
printFreeFloating
(n node.Node, pos freefloating.Position)
printer/printer.go:72
↓ 606 callers
Method
SetPosition
Attributes returns node attributes as map
node/node.go:13
↓ 578 callers
Method
setFreeFloating
(dst node.Node, p freefloating.Position, strings []freefloating.String)
php7/parser.go:112
↓ 553 callers
Method
Parse
Parse the php7 Parser entrypoint
php7/parser.go:61
↓ 550 callers
Method
GetRootNode
GetRootNode returns root node
php7/parser.go:73
↓ 510 callers
Method
returnTokenToPool
(yyDollar []yySymType, yyVAL *yySymType)
php5/parser.go:218
↓ 423 callers
Method
Print
(n node.Node)
printer/pretty_printer.go:32
↓ 421 callers
Method
Print
(n node.Node)
printer/printer.go:43
↓ 413 callers
Method
String
()
scanner/token.go:18
↓ 407 callers
Method
returnTokenToPool
(yyDollar []yySymType, yyVAL *yySymType)
php7/parser.go:217
↓ 405 callers
Method
String
()
position/position.go:25
↓ 316 callers
Method
Walk
(v Visitor)
walker/walker.go:8
↓ 306 callers
Method
GetFreeFloating
()
node/node.go:15
↓ 294 callers
Function
NewParser
NewParser creates and returns new Parser
php7/parser.go:27
↓ 265 callers
Function
NewParser
NewParser creates and returns new Parser
php5/parser.go:27
↓ 226 callers
Method
EnterChildNode
(key string, w Walkable)
walker/walker.go:16
↓ 226 callers
Method
LeaveChildNode
(key string, w Walkable)
walker/walker.go:17
↓ 225 callers
Method
NewTokenPosition
NewTokenPosition returns new Position
positionbuilder/position_builder.go:101
↓ 208 callers
Method
setTokenPosition
(token *Token)
scanner/lexer.go:80
↓ 196 callers
Function
NewPrinter
NewPrinter - Constructor for Printer
printer/printer.go:33
↓ 192 callers
Function
NewPrettyPrinter
NewPrettyPrinter - Constructor for PrettyPrinter
printer/pretty_printer.go:24
↓ 169 callers
Method
EnterNode
(w Walkable)
walker/walker.go:13
↓ 169 callers
Method
LeaveNode
(w Walkable)
walker/walker.go:14
↓ 166 callers
Method
NewNodesPosition
NewNodesPosition returns new Position
positionbuilder/position_builder.go:141
↓ 162 callers
Method
Append
(p int)
scanner/newline.go:7
↓ 157 callers
Method
NewTokensPosition
NewTokensPosition returns new Position
positionbuilder/position_builder.go:111
↓ 152 callers
Method
SetPosition
SetPosition sets node position
node/n_identifier.go:25
↓ 147 callers
Method
MoveFreeFloating
(src node.Node, dst node.Node)
php5/parser.go:100
↓ 140 callers
Function
NewIdentifier
NewIdentifier node constructor
node/n_identifier.go:17
↓ 131 callers
Method
NewTokenNodePosition
NewTokenNodePosition returns new Position
positionbuilder/position_builder.go:121
↓ 124 callers
Method
IsEmpty
()
freefloating/string.go:106
↓ 120 callers
Method
GetFreeFloatingToken
(t *scanner.Token)
php5/parser.go:130
↓ 96 callers
Function
parse
(src string)
printer/printer_parsed_php7_test.go:63
↓ 96 callers
Function
print
(n node.Node)
printer/printer_parsed_php7_test.go:71
↓ 95 callers
Method
GetFreeFloatingToken
(t *scanner.Token)
php7/parser.go:129
↓ 94 callers
Method
MoveFreeFloating
(src node.Node, dst node.Node)
php7/parser.go:99
↓ 90 callers
Method
isNotStringVar
()
scanner/lexer.go:106
↓ 90 callers
Function
parsePhp5
(src string)
printer/printer_parsed_php5_test.go:12
↓ 90 callers
Function
printPhp5
(n node.Node)
printer/printer_parsed_php5_test.go:20
↓ 60 callers
Method
EnterChildList
(key string, w Walkable)
walker/walker.go:19
↓ 60 callers
Method
LeaveChildList
(key string, w Walkable)
walker/walker.go:20
↓ 60 callers
Method
isNotStringEnd
(s byte)
scanner/lexer.go:127
↓ 56 callers
Method
NewNodeListPosition
NewNodeListPosition returns new Position
positionbuilder/position_builder.go:81
↓ 52 callers
Function
NewPosition
NewPosition Position constructor
position/position.go:16
↓ 50 callers
Function
NewVariable
NewVariable node constructor
node/expr/n_variable.go:18
↓ 50 callers
Method
isNotHeredocEnd
(p int)
scanner/lexer.go:201
↓ 49 callers
Method
Lex
(lval Lval)
scanner/scanner.go:59
↓ 43 callers
Method
NewNodeTokenPosition
NewNodeTokenPosition returns new Position
positionbuilder/position_builder.go:131
↓ 39 callers
Method
joinPrint
(glue string, nn []node.Node)
printer/printer.go:56
↓ 38 callers
Method
joinPrint
(glue string, nn []node.Node)
printer/pretty_printer.go:36
↓ 37 callers
Method
printIndent
()
printer/pretty_printer.go:59
↓ 36 callers
Method
NewNodePosition
NewNodePosition returns new Position
positionbuilder/position_builder.go:91
↓ 34 callers
Method
SetPosition
SetPosition sets node position
node/expr/n_variable.go:26
↓ 34 callers
Function
lastNode
helpers
php5/parser.go:85
↓ 33 callers
Function
NewLexer
line scanner/scanner.rl:17
scanner/scanner.go:36
↓ 33 callers
Method
ungetCnt
(n int)
scanner/lexer.go:253
↓ 32 callers
Method
NewTokenNodeListPosition
NewTokenNodeListPosition returns new Position
positionbuilder/position_builder.go:161
↓ 28 callers
Function
NewNamespaceResolver
NewNamespaceResolver NamespaceResolver type constructor
visitor/namespace_resolver.go:23
↓ 26 callers
Function
NewArrayItem
NewArrayItem node constructor
node/expr/n_array_item.go:20
↓ 26 callers
Method
addFreeFloating
(t freefloating.StringType, ps, pe int)
scanner/lexer.go:87
↓ 26 callers
Function
printIndent
(w io.Writer, d int)
visitor/go_dumper.go:22
↓ 25 callers
Method
GetPosition
()
node/node.go:14
↓ 25 callers
Method
printNodes
(nn []node.Node)
printer/printer.go:66
↓ 25 callers
Method
printNodes
(nn []node.Node)
printer/pretty_printer.go:46
↓ 24 callers
Function
NewArrayDimFetch
NewArrayDimFetch node constructor
node/expr/n_array_dim_fetch.go:19
↓ 23 callers
Method
printIndent
(w io.Writer)
visitor/pretty_json_dumper.go:32
↓ 22 callers
Method
addDollarToken
(v node.Node)
php5/parser.go:138
↓ 21 callers
Method
Walk
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
node/stmt/n_stmt_list.go:46
↓ 21 callers
Function
lastNode
helpers
php7/parser.go:84
↓ 18 callers
Function
NewStmtList
NewStmtList node constructor
node/stmt/n_stmt_list.go:18
↓ 17 callers
Function
NewMagicConstant
NewMagicConstant node constructor
node/scalar/node_magic_constant.go:17
↓ 16 callers
Method
ResolveName
ResolveName adds a resolved fully qualified name by node
visitor/namespace_resolver.go:245
↓ 14 callers
Method
NewNodeListTokenPosition
NewNodeListTokenPosition returns new Position
positionbuilder/position_builder.go:151
↓ 14 callers
Function
NewUse
NewUse node constructor
node/stmt/n_use.go:20
↓ 14 callers
Method
SetPosition
SetPosition sets node position
node/stmt/n_stmt_list.go:26
↓ 14 callers
Method
addDollarToken
(v node.Node)
php7/parser.go:137
↓ 14 callers
Method
call
(state int, fnext int)
scanner/lexer.go:227
↓ 13 callers
Method
Attributes
()
node/node.go:12
↓ 12 callers
Method
SetPosition
SetPosition sets node position
node/expr/n_array_item.go:30
↓ 11 callers
Function
NewReference
NewReference node constructor
node/expr/n_reference.go:18
↓ 10 callers
Method
GetWithFreeFloating
()
scanner/lexer.go:19
↓ 10 callers
Method
isNotNewLine
()
scanner/lexer.go:219
↓ 10 callers
Method
isNotPhpCloseToken
()
scanner/lexer.go:211
↓ 9 callers
Method
getNodeEndPos
(n node.Node)
positionbuilder/position_builder.go:63
↓ 9 callers
Method
getNodeStartPos
(n node.Node)
positionbuilder/position_builder.go:34
↓ 8 callers
Function
NewCaseList
NewCaseList node constructor
node/stmt/n_case_list.go:18
↓ 8 callers
Function
NewConstant
NewConstant node constructor
node/stmt/n_constant.go:20
↓ 8 callers
Function
NewEncapsedStringPart
NewEncapsedStringPart node constructor
node/scalar/node_encapsed_string_part.go:17
↓ 8 callers
Function
NewString
NewString node constructor
node/scalar/node_string.go:17
↓ 8 callers
Function
NewYield
NewYield node constructor
node/expr/n_yield.go:19
↓ 8 callers
Method
SetPosition
SetPosition sets node position
node/expr/n_reference.go:26
↓ 8 callers
Method
SetPosition
SetPosition sets node position
node/stmt/n_case_list.go:26
↓ 8 callers
Method
SetPosition
SetPosition sets node position
node/scalar/node_encapsed_string_part.go:25
↓ 8 callers
Method
WithFreeFloating
()
php7/parser.go:56
↓ 8 callers
Function
concatNameParts
(parts ...[]node.Node)
visitor/namespace_resolver.go:383
↓ 8 callers
Method
getListStartPos
(l []node.Node)
positionbuilder/position_builder.go:22
↓ 7 callers
Function
NewArgument
NewArgument node constructor
node/n_argument.go:19
↓ 7 callers
Function
NewClass
NewClass node constructor
node/stmt/n_class.go:24
↓ 7 callers
Function
NewClassConstFetch
NewClassConstFetch node constructor
node/expr/n_class_const_fetch.go:19
next →
1–100 of 2,599, ranked by callers