MCPcopy Create free account
hub / github.com/z7zmey/php-parser / GetRootNode

Method GetRootNode

php7/parser.go:73–75  ·  view source on GitHub ↗

GetRootNode returns root node

()

Source from the content-addressed store, hash-verified

71
72// GetRootNode returns root node
73func (l *Parser) GetRootNode() node.Node {
74 return l.rootNode
75}
76
77// GetErrors returns errors list
78func (l *Parser) GetErrors() []*errors.Error {

Callers 15

parsePhp5Function · 0.95
ExamplePrinterFunction · 0.95
parseFunction · 0.95
TestPhp7Function · 0.95
TestPhp5StringsFunction · 0.95
TestPhp5HeredocFunction · 0.95
ExamplePrettyJsonDumperFunction · 0.95
ExampleGoDumperFunction · 0.95
ExampleJsonDumperFunction · 0.95
ExampleDumperFunction · 0.95
TestIdentifierFunction · 0.95
TestPhp7ArgumentNodeFunction · 0.95

Implementers 2

Parserphp7/parser.go
Parserphp5/parser.go

Calls

no outgoing calls

Tested by 15

parsePhp5Function · 0.76
ExamplePrinterFunction · 0.76
parseFunction · 0.76
TestPhp7Function · 0.76
TestPhp5StringsFunction · 0.76
TestPhp5HeredocFunction · 0.76
ExamplePrettyJsonDumperFunction · 0.76
ExampleGoDumperFunction · 0.76
ExampleJsonDumperFunction · 0.76
ExampleDumperFunction · 0.76
TestIdentifierFunction · 0.76
TestPhp7ArgumentNodeFunction · 0.76