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

Method Attributes

node/expr/n_arrow_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 *ArrowFunction) Attributes() map[string]interface{} {
51 return map[string]interface{}{
52 "ReturnsRef": n.ReturnsRef,
53 "Static": n.Static,
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