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

Method field

gapil/bapi/decode.go:709–723  ·  view source on GitHub ↗
(fieldID uint64)

Source from the content-addressed store, hash-verified

707}
708
709func (d *decoder) field(fieldID uint64) (out *semantic.Field) {
710 d.build(d.content.Instances.Field, &d.inst.Field, fieldID, &out,
711 func(p *Field, s *semantic.Field) {
712 s.AST = d.astField(p.Ast)
713 s.Annotations = d.annotations(p.Annotations)
714 s.Named = semantic.Named(d.str(p.Name))
715 s.Docs = d.docs(p.Docs)
716 s.Type = d.ty(p.Type)
717 s.Default = d.expr(p.Default)
718 if owner := d.node(p.Owner); owner != nil {
719 semantic.Add(owner.(semantic.Owner), s)
720 }
721 })
722 return
723}
724
725func (d *decoder) fieldInit(fieldInitID uint64) (out *semantic.FieldInitializer) {
726 d.build(d.content.Instances.FieldInit, &d.inst.FieldInit, fieldInitID, &out,

Callers 4

exprMethod · 0.95
fieldInitMethod · 0.95
memberMethod · 0.95
nodeMethod · 0.95

Calls 9

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

Tested by

no test coverage detected