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

Method arrayIndex

gapil/bapi/decode.go:327–336  ·  view source on GitHub ↗
(arrayIndexID uint64)

Source from the content-addressed store, hash-verified

325}
326
327func (d *decoder) arrayIndex(arrayIndexID uint64) (out *semantic.ArrayIndex) {
328 d.build(d.content.Instances.ArrayIndex, &d.inst.ArrayIndex, arrayIndexID, &out,
329 func(p *ArrayIndex, s *semantic.ArrayIndex) {
330 s.AST = d.astIndex(p.Ast)
331 s.Type = d.array(p.Type)
332 s.Array = d.expr(p.Array)
333 s.Index = d.expr(p.Index)
334 })
335 return
336}
337
338func (d *decoder) binaryOp(binaryOpID uint64) (out *semantic.BinaryOp) {
339 d.build(d.content.Instances.BinaryOp, &d.inst.BinaryOp, binaryOpID, &out,

Callers 2

exprMethod · 0.95
nodeMethod · 0.95

Calls 4

buildMethod · 0.95
astIndexMethod · 0.95
arrayMethod · 0.95
exprMethod · 0.95

Tested by

no test coverage detected