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

Method select_

gapil/bapi/encode.go:1288–1300  ·  view source on GitHub ↗
(n *semantic.Select)

Source from the content-addressed store, hash-verified

1286}
1287
1288func (e *encoder) select_(n *semantic.Select) (outID uint64) {
1289 e.build(&e.instances.Select, e.maps.Select, n, &outID, func() *Select {
1290 p := &Select{
1291 Ast: e.astSwitch(n.AST),
1292 Type: e.ty(n.Type),
1293 Value: e.expr(n.Value),
1294 Default: e.expr(n.Default),
1295 }
1296 foreach(n.Choices, e.choice, &p.Choices)
1297 return p
1298 })
1299 return
1300}
1301
1302func (e *encoder) signature(n *semantic.Signature) (outID uint64) {
1303 e.build(&e.instances.Signature, e.maps.Signature, n, &outID, func() *Signature {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 5

buildMethod · 0.95
astSwitchMethod · 0.95
tyMethod · 0.95
exprMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected