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

Method mapIndex

gapil/bapi/encode.go:1110–1120  ·  view source on GitHub ↗
(n *semantic.MapIndex)

Source from the content-addressed store, hash-verified

1108}
1109
1110func (e *encoder) mapIndex(n *semantic.MapIndex) (outID uint64) {
1111 e.build(&e.instances.MapIndex, e.maps.MapIndex, n, &outID, func() *MapIndex {
1112 return &MapIndex{
1113 Ast: e.astIndex(n.AST),
1114 Type: e.map_(n.Type),
1115 Map: e.expr(n.Map),
1116 Index: e.expr(n.Index),
1117 }
1118 })
1119 return
1120}
1121
1122func (e *encoder) mapIteration(n *semantic.MapIteration) (outID uint64) {
1123 e.build(&e.instances.MapIteration, e.maps.MapIteration, n, &outID, func() *MapIteration {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 4

buildMethod · 0.95
astIndexMethod · 0.95
map_Method · 0.95
exprMethod · 0.95

Tested by

no test coverage detected