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

Method astAnnotation

gapil/bapi/decode.go:1390–1399  ·  view source on GitHub ↗
(astAnnotationID uint64)

Source from the content-addressed store, hash-verified

1388}
1389
1390func (d *decoder) astAnnotation(astAnnotationID uint64) (out *ast.Annotation) {
1391 d.build(d.content.Instances.AstAnnotation, &d.inst.ASTAnnotation, astAnnotationID, &out,
1392 func(p *ASTAnnotation, s *ast.Annotation) {
1393 s.Name = d.astIdentifier(p.Name)
1394 if len(p.Arguments) > 0 {
1395 foreach(p.Arguments, d.astNode, &s.Arguments)
1396 }
1397 })
1398 return
1399}
1400
1401func (d *decoder) astAnnotations(p *ASTAnnotations) ast.Annotations {
1402 if p == nil || len(p.Annotations) == 0 {

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