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

Method astIndex

gapil/bapi/encode.go:1822–1830  ·  view source on GitHub ↗
(n *ast.Index)

Source from the content-addressed store, hash-verified

1820}
1821
1822func (e *encoder) astIndex(n *ast.Index) (outID uint64) {
1823 e.build(&e.instances.AstIndex, e.maps.ASTIndex, n, &outID, func() *ASTIndex {
1824 return &ASTIndex{
1825 Object: e.astNode(n.Object),
1826 Index: e.astNode(n.Index),
1827 }
1828 })
1829 return
1830}
1831
1832func (e *encoder) astIndexedType(n *ast.IndexedType) (outID uint64) {
1833 e.build(&e.instances.AstIndexedType, e.maps.ASTIndexedType, n, &outID, func() *ASTIndexedType {

Callers 6

arrayIndexMethod · 0.95
mapIndexMethod · 0.95
pointerRangeMethod · 0.95
sliceIndexMethod · 0.95
sliceRangeMethod · 0.95
astNodeMethod · 0.95

Calls 2

buildMethod · 0.95
astNodeMethod · 0.95

Tested by

no test coverage detected