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

Method mappings

gapil/bapi/decode.go:198–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198func (d *decoder) mappings() *semantic.Mappings {
199 out := semantic.Mappings{}
200
201 for _, semToAST := range d.content.Mappings.SemToAst {
202 ast := d.astNode(semToAST.Ast)
203 sem := d.node(semToAST.Sem)
204 out.Add(ast, sem)
205 }
206
207 for _, astToCST := range d.content.Mappings.AstToCst {
208 ast := d.astNode(astToCST.Ast)
209 cst := d.cstNode(astToCST.Cst)
210 out.AST.Add(ast, cst)
211 }
212
213 return &out
214}
215
216func (d *decoder) abort(abortID uint64) (out *semantic.Abort) {
217 d.build(d.content.Instances.Abort, &d.inst.Abort, abortID, &out,

Callers 1

DecodeFunction · 0.95

Calls 5

astNodeMethod · 0.95
nodeMethod · 0.95
AddMethod · 0.95
cstNodeMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected