We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d9b3d commit f974b88Copy full SHA for f974b88
expr_test.go
@@ -504,20 +504,6 @@ func (p *patcher) Visit(node *ast.Node) {
504
}
505
506
func ExamplePatch() {
507
- /*
508
- type patcher struct{}
509
-
510
- func (p *patcher) Visit(node *ast.Node) {
511
- switch n := (*node).(type) {
512
- case *ast.MemberNode:
513
- ast.Patch(node, &ast.CallNode{
514
- Callee: &ast.IdentifierNode{Value: "get"},
515
- Arguments: []ast.Node{n.Node, n.Property},
516
- })
517
- }
518
519
- */
520
521
program, err := expr.Compile(
522
`greet.you.world + "!"`,
523
expr.Patch(&patcher{}),
0 commit comments