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

Function NewArrayItem

node/expr/n_array_item.go:20–27  ·  view source on GitHub ↗

NewArrayItem node constructor

(Key node.Node, Val node.Node, Unpack bool)

Source from the content-addressed store, hash-verified

18
19// NewArrayItem node constructor
20func NewArrayItem(Key node.Node, Val node.Node, Unpack bool) *ArrayItem {
21 return &ArrayItem{
22 FreeFloating: nil,
23 Key: Key,
24 Val: Val,
25 Unpack: Unpack,
26 }
27}
28
29// SetPosition sets node position
30func (n *ArrayItem) SetPosition(p *position.Position) {

Callers 2

ParseMethod · 0.92
ParseMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…