MCPcopy Create free account
hub / github.com/expr-lang/expr / PointerNode

Method PointerNode

compiler/compiler.go:1228–1239  ·  view source on GitHub ↗
(node *ast.PointerNode)

Source from the content-addressed store, hash-verified

1226}
1227
1228func (c *compiler) PointerNode(node *ast.PointerNode) {
1229 switch node.Name {
1230 case "index":
1231 c.emit(OpGetIndex)
1232 case "acc":
1233 c.emit(OpGetAcc)
1234 case "":
1235 c.emit(OpPointer)
1236 default:
1237 panic(fmt.Sprintf("unknown pointer %v", node.Name))
1238 }
1239}
1240
1241func (c *compiler) VariableDeclaratorNode(node *ast.VariableDeclaratorNode) {
1242 c.compile(node.Value)

Callers 1

compileMethod · 0.95

Calls 2

emitMethod · 0.95
SprintfMethod · 0.80

Tested by

no test coverage detected