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

Method Add

gapil/ast/mappings.go:35–39  ·  view source on GitHub ↗

Add creates an association between the AST and CST nodes.

(a Node, c cst.Node)

Source from the content-addressed store, hash-verified

33
34// Add creates an association between the AST and CST nodes.
35func (m *Mappings) Add(a Node, c cst.Node) {
36 m.init()
37 m.ASTToCST[a] = c
38 m.CSTToAST[c] = a
39}
40
41// CST returns the CST node for the given AST node.
42func (m *Mappings) CST(ast Node) cst.Node {

Callers 2

translateMappingFunction · 0.95
mappingsMethod · 0.95

Calls 1

initMethod · 0.95

Tested by 1

translateMappingFunction · 0.76