-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/ast: add Filter func test on AST #26023
go/ast: add Filter func test on AST #26023
Conversation
The existing implementation of Filter should behave as if it removes (filter out) comments from parsed AST (by providing filter Node argument) leaving the rest untouched. The TestFilter - checks for length differences of both filtered and unfiltered as general and then for excluded from ASTree.
The existing implementation of Filter should behave as if it removes (filter out) comments from parsed AST (by providing filter Node argument) leaving the rest untouched. The TestFilter - checks for length differences of both filtered and unfiltered as general and then for excluded from ASTree. Add FilterTest golang#26022
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/120675. |
Message from Robert Griesemer: Patch Set 1: Code-Review-1 (11 comments) This code needs some work. Please don’t reply on this GitHub thread. Visit golang.org/cl/120675. |
Fixed issues with fragile implementation for TestFilter applying additional check on x var, added new comments source, changed some obscure comments, added new lines before comments Fix FilterTest golang#26022
Message from Gerrit Bot: Uploaded patch set 3: New patch set was added with same tree, parent, and commit message as Patch Set 2. Please don’t reply on this GitHub thread. Visit golang.org/cl/120675. |
4016de0
to
d2f663c
Compare
e3f15e3
to
d286d4b
Compare
9092511
to
95c3348
Compare
0090c13
to
8fbbf63
Compare
53bd915
to
6139019
Compare
4a7ed1f
to
0f992b9
Compare
Message from Gerrit User 5976: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/120675. |
Message from Gerrit User 5210: Patch Set 1: Code-Review-1 (11 comments) This code needs some work. Please don’t reply on this GitHub thread. Visit golang.org/cl/120675. |
# Conflicts: # src/go/ast/commentmap_test.go
This PR (HEAD: 250fccb) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/120675 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/120675. |
The existing implementation of Filter should behave as if it removes (filter out) comments from parsed AST (by providing filter Node argument) leaving the rest untouched.
The TestFilter - checks for length differences of both filtered and unfiltered as general and then for excluded from ASTree.
Add FilterTest #26022