Merge pull request #7875 from github/nickrolfe/locations_column

Ruby: put AST node locations in a single table
This commit is contained in:
Nick Rolfe
2022-02-07 17:43:33 +00:00
committed by GitHub
122 changed files with 10345 additions and 9471 deletions

View File

@@ -0,0 +1,11 @@
class AstNode extends @erb_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where erb_comment_directive_def(id, child) and erb_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @erb_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where erb_directive_def(id, child) and erb_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @erb_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where erb_graphql_directive_def(id, child) and erb_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @erb_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where erb_output_directive_def(id, child) and erb_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @erb_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where erb_template_def(id) and erb_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @erb_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, int kind, string value, Location loc
where erb_tokeninfo(id, kind, value) and erb_ast_node_info(id, _, _, loc)
select id, kind, value, loc

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode alias, AstNode name, Location loc
where ruby_alias_def(id, alias, name) and ruby_ast_node_info(id, _, _, loc)
select id, alias, name, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_alternative_pattern_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_argument_list_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_array_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_array_pattern_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, AstNode value, Location loc
where ruby_as_pattern_def(id, name, value) and ruby_ast_node_info(id, _, _, loc)
select id, name, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode left, AstNode right, Location loc
where ruby_assignment_def(id, left, right) and ruby_ast_node_info(id, _, _, loc)
select id, left, right, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_bare_string_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_bare_symbol_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_begin_block_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_begin_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode left, int operator, AstNode right, Location loc
where ruby_binary_def(id, left, operator, right) and ruby_ast_node_info(id, _, _, loc)
select id, left, operator, right, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_block_argument_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_block_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_block_parameter_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_block_parameters_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_break_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode method, Location loc
where ruby_call_def(id, method) and ruby_ast_node_info(id, _, _, loc)
select id, method, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_case_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode value, Location loc
where ruby_case_match_def(id, value) and ruby_ast_node_info(id, _, _, loc)
select id, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_chained_string_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, Location loc
where ruby_class_def(id, name) and ruby_ast_node_info(id, _, _, loc)
select id, name, loc

View File

@@ -0,0 +1,13 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode alternative, AstNode condition, AstNode consequence, Location loc
where
ruby_conditional_def(id, alternative, condition, consequence) and
ruby_ast_node_info(id, _, _, loc)
select id, alternative, condition, consequence, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_delimited_symbol_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_destructured_left_assignment_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_destructured_parameter_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_do_block_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_do_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode object, Location loc
where ruby_element_reference_def(id, object) and ruby_ast_node_info(id, _, _, loc)
select id, object, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_else_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode condition, Location loc
where ruby_elsif_def(id, condition) and ruby_ast_node_info(id, _, _, loc)
select id, condition, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_end_block_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_ensure_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_exception_variable_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_exceptions_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode value, Location loc
where ruby_expression_reference_pattern_def(id, value) and ruby_ast_node_info(id, _, _, loc)
select id, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_find_pattern_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode body, AstNode pattern, AstNode value, Location loc
where ruby_for_def(id, body, pattern, value) and ruby_ast_node_info(id, _, _, loc)
select id, body, pattern, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_hash_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_hash_pattern_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_hash_splat_argument_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_hash_splat_parameter_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_heredoc_body_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode condition, Location loc
where ruby_if_def(id, condition) and ruby_ast_node_info(id, _, _, loc)
select id, condition, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode condition, Location loc
where ruby_if_guard_def(id, condition) and ruby_ast_node_info(id, _, _, loc)
select id, condition, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode body, AstNode condition, Location loc
where ruby_if_modifier_def(id, body, condition) and ruby_ast_node_info(id, _, _, loc)
select id, body, condition, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode pattern, Location loc
where ruby_in_clause_def(id, pattern) and ruby_ast_node_info(id, _, _, loc)
select id, pattern, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_in_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_interpolation_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, Location loc
where ruby_keyword_parameter_def(id, name) and ruby_ast_node_info(id, _, _, loc)
select id, name, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode key__, Location loc
where ruby_keyword_pattern_def(id, key__) and ruby_ast_node_info(id, _, _, loc)
select id, key__, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode body, Location loc
where ruby_lambda_def(id, body) and ruby_ast_node_info(id, _, _, loc)
select id, body, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_lambda_parameters_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_left_assignment_list_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, Location loc
where ruby_method_def(id, name) and ruby_ast_node_info(id, _, _, loc)
select id, name, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_method_parameters_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, Location loc
where ruby_module_def(id, name) and ruby_ast_node_info(id, _, _, loc)
select id, name, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_next_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode left, int operator, AstNode right, Location loc
where ruby_operator_assignment_def(id, left, operator, right) and ruby_ast_node_info(id, _, _, loc)
select id, left, operator, right, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, AstNode value, Location loc
where ruby_optional_parameter_def(id, name, value) and ruby_ast_node_info(id, _, _, loc)
select id, name, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode key__, Location loc
where ruby_pair_def(id, key__) and ruby_ast_node_info(id, _, _, loc)
select id, key__, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_parenthesized_pattern_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_parenthesized_statements_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_pattern_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_program_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, int operator, Location loc
where ruby_range_def(id, operator) and ruby_ast_node_info(id, _, _, loc)
select id, operator, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_rational_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_redo_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_regex_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_rescue_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode body, AstNode handler, Location loc
where ruby_rescue_modifier_def(id, body, handler) and ruby_ast_node_info(id, _, _, loc)
select id, body, handler, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_rest_assignment_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_retry_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_return_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_right_assignment_list_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, Location loc
where ruby_scope_resolution_def(id, name) and ruby_ast_node_info(id, _, _, loc)
select id, name, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, Location loc
where ruby_setter_def(id, name) and ruby_ast_node_info(id, _, _, loc)
select id, name, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode value, Location loc
where ruby_singleton_class_def(id, value) and ruby_ast_node_info(id, _, _, loc)
select id, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode name, AstNode object, Location loc
where ruby_singleton_method_def(id, name, object) and ruby_ast_node_info(id, _, _, loc)
select id, name, object, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_splat_argument_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_splat_parameter_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_string_array_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_string_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_subshell_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode child, Location loc
where ruby_superclass_def(id, child) and ruby_ast_node_info(id, _, _, loc)
select id, child, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_symbol_array_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_then_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, int kind, string value, Location loc
where ruby_tokeninfo(id, kind, value) and ruby_ast_node_info(id, _, _, loc)
select id, kind, value, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode operand, int operator, Location loc
where ruby_unary_def(id, operand, operator) and ruby_ast_node_info(id, _, _, loc)
select id, operand, operator, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, Location loc
where ruby_undef_def(id) and ruby_ast_node_info(id, _, _, loc)
select id, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode condition, Location loc
where ruby_unless_def(id, condition) and ruby_ast_node_info(id, _, _, loc)
select id, condition, loc

View File

@@ -0,0 +1,11 @@
class AstNode extends @ruby_ast_node {
string toString() { none() }
}
class Location extends @location {
string toString() { none() }
}
from AstNode id, AstNode condition, Location loc
where ruby_unless_guard_def(id, condition) and ruby_ast_node_info(id, _, _, loc)
select id, condition, loc

Some files were not shown because too many files have changed in this diff Show More