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

Method fieldInit

gapil/bapi/decode.go:725–733  ·  view source on GitHub ↗
(fieldInitID uint64)

Source from the content-addressed store, hash-verified

723}
724
725func (d *decoder) fieldInit(fieldInitID uint64) (out *semantic.FieldInitializer) {
726 d.build(d.content.Instances.FieldInit, &d.inst.FieldInit, fieldInitID, &out,
727 func(p *FieldInitializer, s *semantic.FieldInitializer) {
728 s.AST = d.astNode(p.Ast)
729 s.Field = d.field(p.Field)
730 s.Value = d.expr(p.Value)
731 })
732 return
733}
734
735func (d *decoder) function(funcID uint64) (out *semantic.Function) {
736 d.build(d.content.Instances.Function, &d.inst.Function, funcID, &out,

Callers 1

nodeMethod · 0.95

Calls 4

buildMethod · 0.95
astNodeMethod · 0.95
fieldMethod · 0.95
exprMethod · 0.95

Tested by

no test coverage detected