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

Method astField

gapil/bapi/encode.go:1760–1770  ·  view source on GitHub ↗
(n *ast.Field)

Source from the content-addressed store, hash-verified

1758}
1759
1760func (e *encoder) astField(n *ast.Field) (outID uint64) {
1761 e.build(&e.instances.AstField, e.maps.ASTField, n, &outID, func() *ASTField {
1762 return &ASTField{
1763 Annotations: e.astAnnotations(n.Annotations),
1764 Type: e.astNode(n.Type),
1765 Name: e.astIdentifier(n.Name),
1766 Default: e.astNode(n.Default),
1767 }
1768 })
1769 return
1770}
1771
1772func (e *encoder) astFunction(n *ast.Function) (outID uint64) {
1773 e.build(&e.instances.AstFunction, e.maps.ASTFunction, n, &outID, func() *ASTFunction {

Callers 3

fieldMethod · 0.95
globalMethod · 0.95
astNodeMethod · 0.95

Calls 4

buildMethod · 0.95
astAnnotationsMethod · 0.95
astNodeMethod · 0.95
astIdentifierMethod · 0.95

Tested by

no test coverage detected