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

Method arrayIndex

gapil/bapi/encode.go:455–465  ·  view source on GitHub ↗
(n *semantic.ArrayIndex)

Source from the content-addressed store, hash-verified

453}
454
455func (e *encoder) arrayIndex(n *semantic.ArrayIndex) (outID uint64) {
456 e.build(&e.instances.ArrayIndex, e.maps.ArrayIndex, n, &outID, func() *ArrayIndex {
457 return &ArrayIndex{
458 Ast: e.astIndex(n.AST),
459 Type: e.staticArray(n.Type),
460 Array: e.expr(n.Array),
461 Index: e.expr(n.Index),
462 }
463 })
464 return
465}
466
467func (e *encoder) arrayInit(n *semantic.ArrayInitializer) (outID uint64) {
468 e.build(&e.instances.ArrayInit, e.maps.ArrayInit, n, &outID, func() *ArrayInitializer {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 4

buildMethod · 0.95
astIndexMethod · 0.95
staticArrayMethod · 0.95
exprMethod · 0.95

Tested by

no test coverage detected