-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Ruby: pattern matching #7154
Ruby: pattern matching #7154
Conversation
2e9b57a
to
b602549
Compare
93ce829
to
157877e
Compare
5bd7bde
to
5ca8fe7
Compare
5ca8fe7
to
cec34a5
Compare
cec34a5
to
c3112c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't reviewed the tests yet, but looks very sensible so far. I found an issue in the upgrade script, plus some comment suggestions.
ruby/ql/lib/upgrades/f36dd8a35ce55a3b93a178e38a79b8e8cbea7463/ruby_tokeninfo.ql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very solid to me!
As for the CFG inconsistencies: that is expected, so for now we should simply commit library-tests/ast/CONSISTENCY/CfgConsistency.expected
and library-tests/ast/control/CONSISTENCY/CfgConsistency.ql
. Then once we actually implement the CFG logic, those inconsistencies should disappear.
96562cd
to
2086927
Compare
ruby/ql/lib/upgrades/f36dd8a35ce55a3b93a178e38a79b8e8cbea7463/ruby_tokeninfo.ql
Outdated
Show resolved
Hide resolved
e8d78e2
to
de6f5d6
Compare
de6f5d6
to
53011f6
Compare
53011f6
to
f836b47
Compare
f836b47
to
8b0bc67
Compare
b1c80fd
to
ea25dd9
Compare
ruby/ql/lib/codeql/ruby/controlflow/internal/ControlFlowGraphImpl.qll
Outdated
Show resolved
Hide resolved
ea25dd9
to
830908b
Compare
This pull request updates the Ruby grammar to tree-sitter/tree-sitter-ruby#193