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

Function lastNode

php7/parser.go:84–89  ·  view source on GitHub ↗

helpers

(nn []node.Node)

Source from the content-addressed store, hash-verified

82// helpers
83
84func lastNode(nn []node.Node) node.Node {
85 if len(nn) == 0 {
86 return nil
87 }
88 return nn[len(nn)-1]
89}
90
91func firstNode(nn []node.Node) node.Node {
92 return nn[0]

Callers 1

ParseMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…