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

Method stat

gapil/bapi/decode.go:1124–1171  ·  view source on GitHub ↗
(statID uint64)

Source from the content-addressed store, hash-verified

1122}
1123
1124func (d *decoder) stat(statID uint64) semantic.Statement {
1125 if statID == 0 {
1126 return nil
1127 }
1128 statIdx := statID - 1
1129 switch p := protoutil.OneOf(d.content.Instances.Statement[statIdx]).(type) {
1130 case *Statement_Abort:
1131 return d.abort(p.Abort)
1132 case *Statement_Assert:
1133 return d.assert(p.Assert)
1134 case *Statement_ArrayAssign:
1135 return d.arrayAssign(p.ArrayAssign)
1136 case *Statement_Assign:
1137 return d.assign(p.Assign)
1138 case *Statement_Branch:
1139 return d.branch(p.Branch)
1140 case *Statement_Call:
1141 return d.call(p.Call)
1142 case *Statement_Copy:
1143 return d.copy(p.Copy)
1144 case *Statement_DeclareLocal:
1145 return d.declareLocal(p.DeclareLocal)
1146 case *Statement_Fence:
1147 return d.fence(p.Fence)
1148 case *Statement_Iteration:
1149 return d.iteration(p.Iteration)
1150 case *Statement_MapAssign:
1151 return d.mapAssign(p.MapAssign)
1152 case *Statement_MapIteration:
1153 return d.mapIteration(p.MapIteration)
1154 case *Statement_MapRemove:
1155 return d.mapRemove(p.MapRemove)
1156 case *Statement_MapClear:
1157 return d.mapClear(p.MapClear)
1158 case *Statement_Read:
1159 return d.read(p.Read)
1160 case *Statement_Return:
1161 return d.return_(p.Return)
1162 case *Statement_SliceAssign:
1163 return d.sliceAssign(p.SliceAssign)
1164 case *Statement_Switch:
1165 return d.switch_(p.Switch)
1166 case *Statement_Write:
1167 return d.write(p.Write)
1168 default:
1169 panic(fmt.Errorf("Unhandled statement type %T", p))
1170 }
1171}
1172
1173func (d *decoder) stringValue(stringValueID uint64) semantic.StringValue {
1174 return semantic.StringValue(d.str(d.content.Instances.StringValue[stringValueID-1].Value))

Callers 4

abortMethod · 0.95
fenceMethod · 0.95
localMethod · 0.95
nodeMethod · 0.95

Calls 15

abortMethod · 0.95
assertMethod · 0.95
arrayAssignMethod · 0.95
assignMethod · 0.95
branchMethod · 0.95
callMethod · 0.95
copyMethod · 0.95
declareLocalMethod · 0.95
fenceMethod · 0.95
iterationMethod · 0.95
mapAssignMethod · 0.95
mapIterationMethod · 0.95

Tested by

no test coverage detected