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

Method global

gapil/bapi/decode.go:766–779  ·  view source on GitHub ↗
(globalID uint64)

Source from the content-addressed store, hash-verified

764}
765
766func (d *decoder) global(globalID uint64) (out *semantic.Global) {
767 d.build(d.content.Instances.Global, &d.inst.Global, globalID, &out,
768 func(p *Global, s *semantic.Global) {
769 s.AST = d.astField(p.Ast)
770 s.Annotations = d.annotations(p.Annotations)
771 s.Named = semantic.Named(d.str(p.Name))
772 s.Type = d.ty(p.Type)
773 s.Default = d.expr(p.Default)
774 if owner := d.node(p.Owner); owner != nil {
775 semantic.Add(owner.(semantic.Owner), s)
776 }
777 })
778 return
779}
780
781func (d *decoder) ignore(ignoreID uint64) (out *semantic.Ignore) {
782 d.build(d.content.Instances.Ignore, &d.inst.Ignore, ignoreID, &out,

Callers 2

exprMethod · 0.95
nodeMethod · 0.95

Calls 8

buildMethod · 0.95
astFieldMethod · 0.95
annotationsMethod · 0.95
strMethod · 0.95
tyMethod · 0.95
exprMethod · 0.95
nodeMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected