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

Method classInit

gapil/bapi/encode.go:677–687  ·  view source on GitHub ↗
(n *semantic.ClassInitializer)

Source from the content-addressed store, hash-verified

675}
676
677func (e *encoder) classInit(n *semantic.ClassInitializer) (outID uint64) {
678 e.build(&e.instances.ClassInit, e.maps.ClassInit, n, &outID, func() *ClassInitializer {
679 p := &ClassInitializer{
680 Ast: e.astCall(n.AST),
681 Class: e.class(n.Class),
682 }
683 foreach(n.Fields, e.fieldInit, &p.Fields)
684 return p
685 })
686 return
687}
688
689func (e *encoder) clone(n *semantic.Clone) (outID uint64) {
690 e.build(&e.instances.Clone, e.maps.Clone, n, &outID, func() *Clone {

Callers 3

nodeMethod · 0.95
createMethod · 0.95
exprMethod · 0.95

Calls 4

buildMethod · 0.95
astCallMethod · 0.95
classMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected