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

Method astImport

gapil/bapi/encode.go:1812–1820  ·  view source on GitHub ↗
(n *ast.Import)

Source from the content-addressed store, hash-verified

1810}
1811
1812func (e *encoder) astImport(n *ast.Import) (outID uint64) {
1813 e.build(&e.instances.AstImport, e.maps.ASTImport, n, &outID, func() *ASTImport {
1814 return &ASTImport{
1815 Annotations: e.astAnnotations(n.Annotations),
1816 Path: e.astString(n.Path),
1817 }
1818 })
1819 return
1820}
1821
1822func (e *encoder) astIndex(n *ast.Index) (outID uint64) {
1823 e.build(&e.instances.AstIndex, e.maps.ASTIndex, n, &outID, func() *ASTIndex {

Callers 1

astNodeMethod · 0.95

Calls 3

buildMethod · 0.95
astAnnotationsMethod · 0.95
astStringMethod · 0.95

Tested by

no test coverage detected