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

Method astSwitch

gapil/bapi/decode.go:1850–1858  ·  view source on GitHub ↗
(astSwitchID uint64)

Source from the content-addressed store, hash-verified

1848}
1849
1850func (d *decoder) astSwitch(astSwitchID uint64) (out *ast.Switch) {
1851 d.build(d.content.Instances.AstSwitch, &d.inst.ASTSwitch, astSwitchID, &out,
1852 func(p *ASTSwitch, s *ast.Switch) {
1853 s.Value = d.astNode(p.Value)
1854 foreach(p.Cases, d.astCase, &s.Cases)
1855 s.Default = d.astDefault(p.Default)
1856 })
1857 return
1858}
1859
1860func (d *decoder) astUnaryOp(astUnaryOpID uint64) (out *ast.UnaryOp) {
1861 d.build(d.content.Instances.AstUnaryOp, &d.inst.ASTUnaryOp, astUnaryOpID, &out,

Callers 3

select_Method · 0.95
switch_Method · 0.95
astNodeMethod · 0.95

Calls 4

buildMethod · 0.95
astNodeMethod · 0.95
astDefaultMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected