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

Method astClass

gapil/bapi/encode.go:1704–1714  ·  view source on GitHub ↗
(n *ast.Class)

Source from the content-addressed store, hash-verified

1702}
1703
1704func (e *encoder) astClass(n *ast.Class) (outID uint64) {
1705 e.build(&e.instances.AstClass, e.maps.ASTClass, n, &outID, func() *ASTClass {
1706 p := &ASTClass{
1707 Annotations: e.astAnnotations(n.Annotations),
1708 Name: e.astIdentifier(n.Name),
1709 }
1710 foreach(n.Fields, e.astField, &p.Fields)
1711 return p
1712 })
1713 return
1714}
1715
1716func (e *encoder) astDefinition(n *ast.Definition) (outID uint64) {
1717 e.build(&e.instances.AstDefinition, e.maps.ASTDefinition, n, &outID, func() *ASTDefinition {

Callers 3

classMethod · 0.95
messageValueMethod · 0.95
astNodeMethod · 0.95

Calls 4

buildMethod · 0.95
astAnnotationsMethod · 0.95
astIdentifierMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected