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

Method astAssign

gapil/bapi/encode.go:1592–1601  ·  view source on GitHub ↗
(n *ast.Assign)

Source from the content-addressed store, hash-verified

1590}
1591
1592func (e *encoder) astAssign(n *ast.Assign) (outID uint64) {
1593 e.build(&e.instances.AstAssign, e.maps.ASTAssign, n, &outID, func() *ASTAssign {
1594 return &ASTAssign{
1595 Lhs: e.astNode(n.LHS),
1596 Operator: e.str(n.Operator),
1597 Rhs: e.astNode(n.RHS),
1598 }
1599 })
1600 return
1601}
1602
1603func (e *encoder) astBinaryOp(n *ast.BinaryOp) (outID uint64) {
1604 e.build(&e.instances.AstBinaryOp, e.maps.ASTBinaryOp, n, &outID, func() *ASTBinaryOp {

Callers 5

arrayAssignMethod · 0.95
assignMethod · 0.95
mapAssignMethod · 0.95
sliceAssignMethod · 0.95
astNodeMethod · 0.95

Calls 3

buildMethod · 0.95
astNodeMethod · 0.95
strMethod · 0.95

Tested by

no test coverage detected