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

Method astAnnotation

gapil/bapi/encode.go:1548–1557  ·  view source on GitHub ↗
(n *ast.Annotation)

Source from the content-addressed store, hash-verified

1546}
1547
1548func (e *encoder) astAnnotation(n *ast.Annotation) (outID uint64) {
1549 e.build(&e.instances.AstAnnotation, e.maps.ASTAnnotation, n, &outID, func() *ASTAnnotation {
1550 out := &ASTAnnotation{
1551 Name: e.astIdentifier(n.Name),
1552 }
1553 foreach(n.Arguments, e.astNode, &out.Arguments)
1554 return out
1555 })
1556 return
1557}
1558
1559func (e *encoder) astAnnotations(n ast.Annotations) *ASTAnnotations {
1560 out := &ASTAnnotations{}

Callers 2

annotationMethod · 0.95
astNodeMethod · 0.95

Calls 3

buildMethod · 0.95
astIdentifierMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected