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

Method sliceIndex

gapil/bapi/encode.go:1338–1348  ·  view source on GitHub ↗
(n *semantic.SliceIndex)

Source from the content-addressed store, hash-verified

1336}
1337
1338func (e *encoder) sliceIndex(n *semantic.SliceIndex) (outID uint64) {
1339 e.build(&e.instances.SliceIndex, e.maps.SliceIndex, n, &outID, func() *SliceIndex {
1340 return &SliceIndex{
1341 Ast: e.astIndex(n.AST),
1342 Type: e.slice(n.Type),
1343 Slice: e.expr(n.Slice),
1344 Index: e.expr(n.Index),
1345 }
1346 })
1347 return
1348}
1349
1350func (e *encoder) sliceRange(n *semantic.SliceRange) (outID uint64) {
1351 e.build(&e.instances.SliceRange, e.maps.SliceRange, n, &outID, func() *SliceRange {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 4

buildMethod · 0.95
astIndexMethod · 0.95
sliceMethod · 0.95
exprMethod · 0.95

Tested by

no test coverage detected