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

Method array

gapil/bapi/decode.go:281–293  ·  view source on GitHub ↗
(arrayID uint64)

Source from the content-addressed store, hash-verified

279}
280
281func (d *decoder) array(arrayID uint64) (out *semantic.StaticArray) {
282 d.build(d.content.Instances.StaticArray, &d.inst.StaticArray, arrayID, &out,
283 func(p *StaticArray, s *semantic.StaticArray) {
284 s.Named = semantic.Named(d.str(p.Name))
285 s.ValueType = d.ty(p.ValueType)
286 s.Size = uint32(p.Size)
287 s.SizeExpr = d.expr(p.SizeExpr)
288 if owner := d.node(p.Owner); owner != nil {
289 semantic.Add(owner.(semantic.Owner), s)
290 }
291 })
292 return
293}
294
295func (d *decoder) arrayAssign(arrayAssignID uint64) (out *semantic.ArrayAssign) {
296 d.build(d.content.Instances.ArrayAssign, &d.inst.ArrayAssign, arrayAssignID, &out,

Callers 3

arrayIndexMethod · 0.95
nodeMethod · 0.95
tyMethod · 0.95

Calls 6

buildMethod · 0.95
strMethod · 0.95
tyMethod · 0.95
exprMethod · 0.95
nodeMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected