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

Method arrayInit

gapil/bapi/encode.go:467–477  ·  view source on GitHub ↗
(n *semantic.ArrayInitializer)

Source from the content-addressed store, hash-verified

465}
466
467func (e *encoder) arrayInit(n *semantic.ArrayInitializer) (outID uint64) {
468 e.build(&e.instances.ArrayInit, e.maps.ArrayInit, n, &outID, func() *ArrayInitializer {
469 p := &ArrayInitializer{
470 Ast: e.astCall(n.AST),
471 Array: e.ty(n.Array),
472 }
473 foreach(n.Values, e.expr, &p.Values)
474 return p
475 })
476 return
477}
478
479func (e *encoder) assert(n *semantic.Assert) (outID uint64) {
480 e.build(&e.instances.Assert, e.maps.Assert, n, &outID, func() *Assert {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 4

buildMethod · 0.95
astCallMethod · 0.95
tyMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected