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

Method Attributes

node/stmt/n_function.go:50–56  ·  view source on GitHub ↗

Attributes returns node attributes as map

()

Source from the content-addressed store, hash-verified

48
49// Attributes returns node attributes as map
50func (n *Function) Attributes() map[string]interface{} {
51 // return n.attributes
52 return map[string]interface{}{
53 "ReturnsRef": n.ReturnsRef,
54 "PhpDocComment": n.PhpDocComment,
55 }
56}
57
58// Walk traverses nodes
59// Walk is invoked recursively until v.EnterNode returns true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected