mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Update tree-sitter-ruby to pick up improvements to calls
This commit is contained in:
@@ -270,18 +270,25 @@ module Generated {
|
||||
class Call extends @call, AstNode {
|
||||
override string getAPrimaryQlClass() { result = "Call" }
|
||||
|
||||
override Location getLocation() { call_def(this, _, _, _, _, result) }
|
||||
override Location getLocation() { call_def(this, _, _, _, result) }
|
||||
|
||||
AstNode getMethod() { call_def(this, _, _, result, _, _) }
|
||||
ArgumentList getArguments() { call_arguments(this, result) }
|
||||
|
||||
AstNode getReceiver() { call_def(this, _, _, _, result, _) }
|
||||
AstNode getBlock() { call_block(this, result) }
|
||||
|
||||
override AstNode getParent() { call_def(this, result, _, _, _, _) }
|
||||
AstNode getMethod() { call_def(this, _, _, result, _) }
|
||||
|
||||
override int getParentIndex() { call_def(this, _, result, _, _, _) }
|
||||
AstNode getReceiver() { call_receiver(this, result) }
|
||||
|
||||
override AstNode getParent() { call_def(this, result, _, _, _) }
|
||||
|
||||
override int getParentIndex() { call_def(this, _, result, _, _) }
|
||||
|
||||
override AstNode getAFieldOrChild() {
|
||||
call_def(this, _, _, result, _, _) or call_def(this, _, _, _, result, _)
|
||||
call_arguments(this, result) or
|
||||
call_block(this, result) or
|
||||
call_def(this, _, _, result, _) or
|
||||
call_receiver(this, result)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -819,28 +826,6 @@ module Generated {
|
||||
}
|
||||
}
|
||||
|
||||
class MethodCall extends @method_call, AstNode {
|
||||
override string getAPrimaryQlClass() { result = "MethodCall" }
|
||||
|
||||
override Location getLocation() { method_call_def(this, _, _, _, result) }
|
||||
|
||||
ArgumentList getArguments() { method_call_arguments(this, result) }
|
||||
|
||||
AstNode getBlock() { method_call_block(this, result) }
|
||||
|
||||
AstNode getMethod() { method_call_def(this, _, _, result, _) }
|
||||
|
||||
override AstNode getParent() { method_call_def(this, result, _, _, _) }
|
||||
|
||||
override int getParentIndex() { method_call_def(this, _, result, _, _) }
|
||||
|
||||
override AstNode getAFieldOrChild() {
|
||||
method_call_arguments(this, result) or
|
||||
method_call_block(this, result) or
|
||||
method_call_def(this, _, _, result, _)
|
||||
}
|
||||
}
|
||||
|
||||
class MethodParameters extends @method_parameters, AstNode {
|
||||
override string getAPrimaryQlClass() { result = "MethodParameters" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user