You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
The command gogrep -x '$x.$y{$*_}' will print something like this:
main.go:24:10: mypkg.MyStruct{}
This is great, but when exploring various patterns, I find it would be very useful to know the exact ast nodes of the entire pattern and each of the $X sub matches.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How about having a
-d
(or -v) argument to print the AST type information of the matched node and the$x
patterns?Currently, when a pattern match occurs, gogrep prints the value of the AST node: https://github.com/mvdan/gogrep/blob/master/main.go#L326
For example, given the following code:
The command
gogrep -x '$x.$y{$*_}'
will print something like this:This is great, but when exploring various patterns, I find it would be very useful to know the exact ast nodes of the entire pattern and each of the $X sub matches.
The text was updated successfully, but these errors were encountered: