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

Method switch_

gapil/bapi/decode.go:1184–1193  ·  view source on GitHub ↗
(switchID uint64)

Source from the content-addressed store, hash-verified

1182}
1183
1184func (d *decoder) switch_(switchID uint64) (out *semantic.Switch) {
1185 d.build(d.content.Instances.Switch, &d.inst.Switch, switchID, &out,
1186 func(p *Switch, s *semantic.Switch) {
1187 s.AST = d.astSwitch(p.Ast)
1188 s.Value = d.expr(p.Value)
1189 s.Default = d.block(p.Default)
1190 foreach(p.Cases, d.case_, &s.Cases)
1191 })
1192 return
1193}
1194
1195func (d *decoder) write(writeID uint64) (out *semantic.Write) {
1196 d.build(d.content.Instances.Write, &d.inst.Write, writeID, &out,

Callers 1

statMethod · 0.95

Calls 5

buildMethod · 0.95
astSwitchMethod · 0.95
exprMethod · 0.95
blockMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected