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

Method astDefinition

gapil/bapi/encode.go:1716–1726  ·  view source on GitHub ↗
(n *ast.Definition)

Source from the content-addressed store, hash-verified

1714}
1715
1716func (e *encoder) astDefinition(n *ast.Definition) (outID uint64) {
1717 e.build(&e.instances.AstDefinition, e.maps.ASTDefinition, n, &outID, func() *ASTDefinition {
1718 p := &ASTDefinition{
1719 Annotations: e.astAnnotations(n.Annotations),
1720 Name: e.astIdentifier(n.Name),
1721 Expression: e.astNode(n.Expression),
1722 }
1723 return p
1724 })
1725 return
1726}
1727
1728func (e *encoder) astEnum(n *ast.Enum) (outID uint64) {
1729 e.build(&e.instances.AstEnum, e.maps.ASTEnum, n, &outID, func() *ASTEnum {

Callers 2

definitionMethod · 0.95
astNodeMethod · 0.95

Calls 4

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

Tested by

no test coverage detected