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

Function lastNode

php5/parser.go:85–90  ·  view source on GitHub ↗

helpers

(nn []node.Node)

Source from the content-addressed store, hash-verified

83// helpers
84
85func lastNode(nn []node.Node) node.Node {
86 if len(nn) == 0 {
87 return nil
88 }
89 return nn[len(nn)-1]
90}
91
92func firstNode(nn []node.Node) node.Node {
93 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…