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

Method annotation

gapil/bapi/decode.go:226–236  ·  view source on GitHub ↗
(annotationID uint64)

Source from the content-addressed store, hash-verified

224}
225
226func (d *decoder) annotation(annotationID uint64) (out *semantic.Annotation) {
227 d.build(d.content.Instances.Annotation, &d.inst.Annotation, annotationID, &out,
228 func(p *Annotation, s *semantic.Annotation) {
229 s.AST = d.astAnnotation(p.Ast)
230 s.Named = semantic.Named(d.str(p.Name))
231 if len(p.Arguments) > 0 {
232 foreach(p.Arguments, d.expr, &out.Arguments)
233 }
234 })
235 return
236}
237
238func (d *decoder) annotations(p *Annotations) semantic.Annotations {
239 if p == nil || len(p.Annotations) == 0 {

Callers 1

nodeMethod · 0.95

Calls 4

buildMethod · 0.95
astAnnotationMethod · 0.95
strMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected