MCPcopy Create free account
hub / github.com/google/gapid / arrayInit

Method arrayInit

gapil/bapi/decode.go:317–325  ·  view source on GitHub ↗
(arrayInitID uint64)

Source from the content-addressed store, hash-verified

315}
316
317func (d *decoder) arrayInit(arrayInitID uint64) (out *semantic.ArrayInitializer) {
318 d.build(d.content.Instances.ArrayInit, &d.inst.ArrayInit, arrayInitID, &out,
319 func(p *ArrayInitializer, s *semantic.ArrayInitializer) {
320 s.AST = d.astCall(p.Ast)
321 s.Array = d.ty(p.Array)
322 foreach(p.Values, d.expr, &s.Values)
323 })
324 return
325}
326
327func (d *decoder) arrayIndex(arrayIndexID uint64) (out *semantic.ArrayIndex) {
328 d.build(d.content.Instances.ArrayIndex, &d.inst.ArrayIndex, arrayIndexID, &out,

Callers 2

exprMethod · 0.95
nodeMethod · 0.95

Calls 4

buildMethod · 0.95
astCallMethod · 0.95
tyMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected