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

Method annotation

gapil/bapi/encode.go:398–408  ·  view source on GitHub ↗
(n *semantic.Annotation)

Source from the content-addressed store, hash-verified

396}
397
398func (e *encoder) annotation(n *semantic.Annotation) (outID uint64) {
399 e.build(&e.instances.Annotation, e.maps.Annotation, n, &outID, func() *Annotation {
400 p := &Annotation{
401 Ast: e.astAnnotation(n.AST),
402 Name: e.str(n.Name()),
403 }
404 foreach(n.Arguments, e.expr, &p.Arguments)
405 return p
406 })
407 return
408}
409
410func (e *encoder) annotations(n semantic.Annotations) *Annotations {
411 p := &Annotations{}

Callers 1

nodeMethod · 0.95

Calls 5

buildMethod · 0.95
astAnnotationMethod · 0.95
strMethod · 0.95
foreachFunction · 0.85
NameMethod · 0.65

Tested by

no test coverage detected