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

Function NewArray

node/expr/n_array.go:18–23  ·  view source on GitHub ↗

NewArray node constructor

(Items []node.Node)

Source from the content-addressed store, hash-verified

16
17// NewArray node constructor
18func NewArray(Items []node.Node) *Array {
19 return &Array{
20 FreeFloating: nil,
21 Items: Items,
22 }
23}
24
25// SetPosition sets node position
26func (n *Array) 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…