mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Re-generate library and dbscheme
This commit is contained in:
@@ -53,12 +53,26 @@ module Ruby {
|
||||
|
||||
class UnderscoreArg extends @ruby_underscore_arg, AstNode { }
|
||||
|
||||
class UnderscoreExpression extends @ruby_underscore_expression, AstNode { }
|
||||
|
||||
class UnderscoreLhs extends @ruby_underscore_lhs, AstNode { }
|
||||
|
||||
class UnderscoreMethodName extends @ruby_underscore_method_name, AstNode { }
|
||||
|
||||
class UnderscorePatternConstant extends @ruby_underscore_pattern_constant, AstNode { }
|
||||
|
||||
class UnderscorePatternExpr extends @ruby_underscore_pattern_expr, AstNode { }
|
||||
|
||||
class UnderscorePatternExprBasic extends @ruby_underscore_pattern_expr_basic, AstNode { }
|
||||
|
||||
class UnderscorePatternPrimitive extends @ruby_underscore_pattern_primitive, AstNode { }
|
||||
|
||||
class UnderscorePatternTopExprBody extends @ruby_underscore_pattern_top_expr_body, AstNode { }
|
||||
|
||||
class UnderscorePrimary extends @ruby_underscore_primary, AstNode { }
|
||||
|
||||
class UnderscoreSimpleNumeric extends @ruby_underscore_simple_numeric, AstNode { }
|
||||
|
||||
class UnderscoreStatement extends @ruby_underscore_statement, AstNode { }
|
||||
|
||||
class UnderscoreVariable extends @ruby_underscore_variable, AstNode { }
|
||||
@@ -83,6 +97,23 @@ module Ruby {
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `alternative_pattern` nodes. */
|
||||
class AlternativePattern extends @ruby_alternative_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "AlternativePattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_alternative_pattern_def(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `alternatives`. */
|
||||
UnderscorePatternExprBasic getAlternatives(int i) {
|
||||
ruby_alternative_pattern_alternatives(this, i, result)
|
||||
}
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() { ruby_alternative_pattern_alternatives(this, _, result) }
|
||||
}
|
||||
|
||||
/** A class representing `argument_list` nodes. */
|
||||
class ArgumentList extends @ruby_argument_list, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -113,6 +144,46 @@ module Ruby {
|
||||
override AstNode getAFieldOrChild() { ruby_array_child(this, _, result) }
|
||||
}
|
||||
|
||||
/** A class representing `array_pattern` nodes. */
|
||||
class ArrayPattern extends @ruby_array_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "ArrayPattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_array_pattern_def(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `class`. */
|
||||
UnderscorePatternConstant getClass() { ruby_array_pattern_class(this, result) }
|
||||
|
||||
/** Gets the `i`th child of this node. */
|
||||
AstNode getChild(int i) { ruby_array_pattern_child(this, i, result) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_array_pattern_class(this, result) or ruby_array_pattern_child(this, _, result)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `as_pattern` nodes. */
|
||||
class AsPattern extends @ruby_as_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "AsPattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_as_pattern_def(this, _, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `name`. */
|
||||
Identifier getName() { ruby_as_pattern_def(this, result, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `value`. */
|
||||
UnderscorePatternExpr getValue() { ruby_as_pattern_def(this, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_as_pattern_def(this, result, _, _) or ruby_as_pattern_def(this, _, result, _)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `assignment` nodes. */
|
||||
class Assignment extends @ruby_assignment, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -202,7 +273,7 @@ module Ruby {
|
||||
override L::Location getLocation() { ruby_binary_def(this, _, _, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `left`. */
|
||||
AstNode getLeft() { ruby_binary_def(this, result, _, _, _) }
|
||||
UnderscoreExpression getLeft() { ruby_binary_def(this, result, _, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `operator`. */
|
||||
string getOperator() {
|
||||
@@ -260,7 +331,7 @@ module Ruby {
|
||||
}
|
||||
|
||||
/** Gets the node corresponding to the field `right`. */
|
||||
AstNode getRight() { ruby_binary_def(this, _, _, result, _) }
|
||||
UnderscoreExpression getRight() { ruby_binary_def(this, _, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -397,6 +468,31 @@ module Ruby {
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `case_match` nodes. */
|
||||
class CaseMatch extends @ruby_case_match, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "CaseMatch" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_case_match_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `clauses`. */
|
||||
InClause getClauses(int i) { ruby_case_match_clauses(this, i, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `else`. */
|
||||
Else getElse() { ruby_case_match_else(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `value`. */
|
||||
UnderscoreStatement getValue() { ruby_case_match_def(this, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_case_match_clauses(this, _, result) or
|
||||
ruby_case_match_else(this, result) or
|
||||
ruby_case_match_def(this, result, _)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `chained_string` nodes. */
|
||||
class ChainedString extends @ruby_chained_string, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -638,6 +734,12 @@ module Ruby {
|
||||
override string getAPrimaryQlClass() { result = "EmptyStatement" }
|
||||
}
|
||||
|
||||
/** A class representing `encoding` tokens. */
|
||||
class Encoding extends @ruby_token_encoding, Token {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "Encoding" }
|
||||
}
|
||||
|
||||
/** A class representing `end_block` nodes. */
|
||||
class EndBlock extends @ruby_end_block, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -710,6 +812,32 @@ module Ruby {
|
||||
override string getAPrimaryQlClass() { result = "False" }
|
||||
}
|
||||
|
||||
/** A class representing `file` tokens. */
|
||||
class File extends @ruby_token_file, Token {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "File" }
|
||||
}
|
||||
|
||||
/** A class representing `find_pattern` nodes. */
|
||||
class FindPattern extends @ruby_find_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "FindPattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_find_pattern_def(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `class`. */
|
||||
UnderscorePatternConstant getClass() { ruby_find_pattern_class(this, result) }
|
||||
|
||||
/** Gets the `i`th child of this node. */
|
||||
AstNode getChild(int i) { ruby_find_pattern_child(this, i, result) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_find_pattern_class(this, result) or ruby_find_pattern_child(this, _, result)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `float` tokens. */
|
||||
class Float extends @ruby_token_float, Token {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -780,6 +908,26 @@ module Ruby {
|
||||
override string getAPrimaryQlClass() { result = "HashKeySymbol" }
|
||||
}
|
||||
|
||||
/** A class representing `hash_pattern` nodes. */
|
||||
class HashPattern extends @ruby_hash_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "HashPattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_hash_pattern_def(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `class`. */
|
||||
UnderscorePatternConstant getClass() { ruby_hash_pattern_class(this, result) }
|
||||
|
||||
/** Gets the `i`th child of this node. */
|
||||
AstNode getChild(int i) { ruby_hash_pattern_child(this, i, result) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_hash_pattern_class(this, result) or ruby_hash_pattern_child(this, _, result)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `hash_splat_argument` nodes. */
|
||||
class HashSplatArgument extends @ruby_hash_splat_argument, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -795,6 +943,12 @@ module Ruby {
|
||||
override AstNode getAFieldOrChild() { ruby_hash_splat_argument_def(this, result, _) }
|
||||
}
|
||||
|
||||
/** A class representing `hash_splat_nil` tokens. */
|
||||
class HashSplatNil extends @ruby_token_hash_splat_nil, Token {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "HashSplatNil" }
|
||||
}
|
||||
|
||||
/** A class representing `hash_splat_parameter` nodes. */
|
||||
class HashSplatParameter extends @ruby_hash_splat_parameter, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -874,6 +1028,21 @@ module Ruby {
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `if_guard` nodes. */
|
||||
class IfGuard extends @ruby_if_guard, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "IfGuard" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_if_guard_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `condition`. */
|
||||
UnderscoreExpression getCondition() { ruby_if_guard_def(this, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() { ruby_if_guard_def(this, result, _) }
|
||||
}
|
||||
|
||||
/** A class representing `if_modifier` nodes. */
|
||||
class IfModifier extends @ruby_if_modifier, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -886,7 +1055,7 @@ module Ruby {
|
||||
UnderscoreStatement getBody() { ruby_if_modifier_def(this, result, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `condition`. */
|
||||
AstNode getCondition() { ruby_if_modifier_def(this, _, result, _) }
|
||||
UnderscoreExpression getCondition() { ruby_if_modifier_def(this, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -909,6 +1078,31 @@ module Ruby {
|
||||
override AstNode getAFieldOrChild() { ruby_in_def(this, result, _) }
|
||||
}
|
||||
|
||||
/** A class representing `in_clause` nodes. */
|
||||
class InClause extends @ruby_in_clause, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "InClause" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_in_clause_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `body`. */
|
||||
Then getBody() { ruby_in_clause_body(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `guard`. */
|
||||
AstNode getGuard() { ruby_in_clause_guard(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `pattern`. */
|
||||
UnderscorePatternTopExprBody getPattern() { ruby_in_clause_def(this, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_in_clause_body(this, result) or
|
||||
ruby_in_clause_guard(this, result) or
|
||||
ruby_in_clause_def(this, result, _)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `instance_variable` tokens. */
|
||||
class InstanceVariable extends @ruby_token_instance_variable, Token {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -956,6 +1150,26 @@ module Ruby {
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `keyword_pattern` nodes. */
|
||||
class KeywordPattern extends @ruby_keyword_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "KeywordPattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_keyword_pattern_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `key`. */
|
||||
AstNode getKey() { ruby_keyword_pattern_def(this, result, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `value`. */
|
||||
UnderscorePatternExpr getValue() { ruby_keyword_pattern_value(this, result) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
ruby_keyword_pattern_def(this, result, _) or ruby_keyword_pattern_value(this, result)
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `lambda` nodes. */
|
||||
class Lambda extends @ruby_lambda, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -1006,6 +1220,12 @@ module Ruby {
|
||||
override AstNode getAFieldOrChild() { ruby_left_assignment_list_child(this, _, result) }
|
||||
}
|
||||
|
||||
/** A class representing `line` tokens. */
|
||||
class Line extends @ruby_token_line, Token {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "Line" }
|
||||
}
|
||||
|
||||
/** A class representing `method` nodes. */
|
||||
class Method extends @ruby_method, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -1136,7 +1356,7 @@ module Ruby {
|
||||
}
|
||||
|
||||
/** Gets the node corresponding to the field `right`. */
|
||||
AstNode getRight() { ruby_operator_assignment_def(this, _, _, result, _) }
|
||||
UnderscoreExpression getRight() { ruby_operator_assignment_def(this, _, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -1240,10 +1460,10 @@ module Ruby {
|
||||
override L::Location getLocation() { ruby_range_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `begin`. */
|
||||
UnderscoreArg getBegin() { ruby_range_begin(this, result) }
|
||||
AstNode getBegin() { ruby_range_begin(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `end`. */
|
||||
UnderscoreArg getEnd() { ruby_range_end(this, result) }
|
||||
AstNode getEnd() { ruby_range_end(this, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `operator`. */
|
||||
string getOperator() {
|
||||
@@ -1339,10 +1559,10 @@ module Ruby {
|
||||
override L::Location getLocation() { ruby_rescue_modifier_def(this, _, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `body`. */
|
||||
UnderscoreStatement getBody() { ruby_rescue_modifier_def(this, result, _, _) }
|
||||
AstNode getBody() { ruby_rescue_modifier_def(this, result, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `handler`. */
|
||||
AstNode getHandler() { ruby_rescue_modifier_def(this, _, result, _) }
|
||||
UnderscoreExpression getHandler() { ruby_rescue_modifier_def(this, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -1422,7 +1642,7 @@ module Ruby {
|
||||
AstNode getName() { ruby_scope_resolution_def(this, result, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `scope`. */
|
||||
UnderscorePrimary getScope() { ruby_scope_resolution_scope(this, result) }
|
||||
AstNode getScope() { ruby_scope_resolution_scope(this, result) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -1602,7 +1822,7 @@ module Ruby {
|
||||
override L::Location getLocation() { ruby_superclass_def(this, _, result) }
|
||||
|
||||
/** Gets the child of this node. */
|
||||
AstNode getChild() { ruby_superclass_def(this, result, _) }
|
||||
UnderscoreExpression getChild() { ruby_superclass_def(this, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() { ruby_superclass_def(this, result, _) }
|
||||
@@ -1722,6 +1942,21 @@ module Ruby {
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `unless_guard` nodes. */
|
||||
class UnlessGuard extends @ruby_unless_guard, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "UnlessGuard" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_unless_guard_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `condition`. */
|
||||
UnderscoreExpression getCondition() { ruby_unless_guard_def(this, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() { ruby_unless_guard_def(this, result, _) }
|
||||
}
|
||||
|
||||
/** A class representing `unless_modifier` nodes. */
|
||||
class UnlessModifier extends @ruby_unless_modifier, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -1734,7 +1969,7 @@ module Ruby {
|
||||
UnderscoreStatement getBody() { ruby_unless_modifier_def(this, result, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `condition`. */
|
||||
AstNode getCondition() { ruby_unless_modifier_def(this, _, result, _) }
|
||||
UnderscoreExpression getCondition() { ruby_unless_modifier_def(this, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -1774,7 +2009,7 @@ module Ruby {
|
||||
UnderscoreStatement getBody() { ruby_until_modifier_def(this, result, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `condition`. */
|
||||
AstNode getCondition() { ruby_until_modifier_def(this, _, result, _) }
|
||||
UnderscoreExpression getCondition() { ruby_until_modifier_def(this, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
@@ -1782,6 +2017,21 @@ module Ruby {
|
||||
}
|
||||
}
|
||||
|
||||
/** A class representing `variable_reference_pattern` nodes. */
|
||||
class VariableReferencePattern extends @ruby_variable_reference_pattern, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
override string getAPrimaryQlClass() { result = "VariableReferencePattern" }
|
||||
|
||||
/** Gets the location of this element. */
|
||||
override L::Location getLocation() { ruby_variable_reference_pattern_def(this, _, result) }
|
||||
|
||||
/** Gets the node corresponding to the field `name`. */
|
||||
Identifier getName() { ruby_variable_reference_pattern_def(this, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() { ruby_variable_reference_pattern_def(this, result, _) }
|
||||
}
|
||||
|
||||
/** A class representing `when` nodes. */
|
||||
class When extends @ruby_when, AstNode {
|
||||
/** Gets the name of the primary QL class for this element. */
|
||||
@@ -1834,7 +2084,7 @@ module Ruby {
|
||||
UnderscoreStatement getBody() { ruby_while_modifier_def(this, result, _, _) }
|
||||
|
||||
/** Gets the node corresponding to the field `condition`. */
|
||||
AstNode getCondition() { ruby_while_modifier_def(this, _, result, _) }
|
||||
UnderscoreExpression getCondition() { ruby_while_modifier_def(this, _, result, _) }
|
||||
|
||||
/** Gets a field or child node of this node. */
|
||||
override AstNode getAFieldOrChild() {
|
||||
|
||||
@@ -52,13 +52,27 @@ case @diagnostic.severity of
|
||||
|
||||
@ruby_underscore_arg = @ruby_assignment | @ruby_binary | @ruby_conditional | @ruby_operator_assignment | @ruby_range | @ruby_unary | @ruby_underscore_primary
|
||||
|
||||
@ruby_underscore_expression = @ruby_assignment | @ruby_binary | @ruby_break | @ruby_call | @ruby_next | @ruby_operator_assignment | @ruby_return | @ruby_unary | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
@ruby_underscore_lhs = @ruby_call | @ruby_element_reference | @ruby_scope_resolution | @ruby_token_false | @ruby_token_nil | @ruby_token_true | @ruby_underscore_variable
|
||||
|
||||
@ruby_underscore_method_name = @ruby_delimited_symbol | @ruby_setter | @ruby_token_class_variable | @ruby_token_constant | @ruby_token_global_variable | @ruby_token_identifier | @ruby_token_instance_variable | @ruby_token_operator | @ruby_token_simple_symbol
|
||||
|
||||
@ruby_underscore_primary = @ruby_array | @ruby_begin | @ruby_break | @ruby_case__ | @ruby_chained_string | @ruby_class | @ruby_delimited_symbol | @ruby_for | @ruby_hash | @ruby_if | @ruby_lambda | @ruby_method | @ruby_module | @ruby_next | @ruby_parenthesized_statements | @ruby_rational | @ruby_redo | @ruby_regex | @ruby_retry | @ruby_return | @ruby_singleton_class | @ruby_singleton_method | @ruby_string__ | @ruby_string_array | @ruby_subshell | @ruby_symbol_array | @ruby_token_character | @ruby_token_complex | @ruby_token_float | @ruby_token_heredoc_beginning | @ruby_token_integer | @ruby_token_simple_symbol | @ruby_unary | @ruby_underscore_lhs | @ruby_unless | @ruby_until | @ruby_while | @ruby_yield
|
||||
@ruby_underscore_pattern_constant = @ruby_scope_resolution | @ruby_token_constant
|
||||
|
||||
@ruby_underscore_statement = @ruby_alias | @ruby_assignment | @ruby_begin_block | @ruby_binary | @ruby_break | @ruby_call | @ruby_end_block | @ruby_if_modifier | @ruby_next | @ruby_operator_assignment | @ruby_rescue_modifier | @ruby_return | @ruby_unary | @ruby_undef | @ruby_underscore_arg | @ruby_unless_modifier | @ruby_until_modifier | @ruby_while_modifier | @ruby_yield
|
||||
@ruby_underscore_pattern_expr = @ruby_alternative_pattern | @ruby_as_pattern | @ruby_underscore_pattern_expr_basic
|
||||
|
||||
@ruby_underscore_pattern_expr_basic = @ruby_array_pattern | @ruby_find_pattern | @ruby_hash_pattern | @ruby_range | @ruby_token_identifier | @ruby_underscore_pattern_constant | @ruby_underscore_pattern_primitive | @ruby_variable_reference_pattern
|
||||
|
||||
@ruby_underscore_pattern_primitive = @ruby_delimited_symbol | @ruby_lambda | @ruby_regex | @ruby_string__ | @ruby_string_array | @ruby_symbol_array | @ruby_token_encoding | @ruby_token_false | @ruby_token_file | @ruby_token_line | @ruby_token_nil | @ruby_token_self | @ruby_token_simple_symbol | @ruby_token_true | @ruby_unary | @ruby_underscore_simple_numeric
|
||||
|
||||
@ruby_underscore_pattern_top_expr_body = @ruby_array_pattern | @ruby_find_pattern | @ruby_hash_pattern | @ruby_underscore_pattern_expr
|
||||
|
||||
@ruby_underscore_primary = @ruby_array | @ruby_begin | @ruby_break | @ruby_case__ | @ruby_case_match | @ruby_chained_string | @ruby_class | @ruby_delimited_symbol | @ruby_for | @ruby_hash | @ruby_if | @ruby_lambda | @ruby_method | @ruby_module | @ruby_next | @ruby_parenthesized_statements | @ruby_redo | @ruby_regex | @ruby_retry | @ruby_return | @ruby_singleton_class | @ruby_singleton_method | @ruby_string__ | @ruby_string_array | @ruby_subshell | @ruby_symbol_array | @ruby_token_character | @ruby_token_heredoc_beginning | @ruby_token_simple_symbol | @ruby_unary | @ruby_underscore_lhs | @ruby_underscore_simple_numeric | @ruby_unless | @ruby_until | @ruby_while | @ruby_yield
|
||||
|
||||
@ruby_underscore_simple_numeric = @ruby_rational | @ruby_token_complex | @ruby_token_float | @ruby_token_integer
|
||||
|
||||
@ruby_underscore_statement = @ruby_alias | @ruby_begin_block | @ruby_end_block | @ruby_if_modifier | @ruby_rescue_modifier | @ruby_undef | @ruby_underscore_expression | @ruby_unless_modifier | @ruby_until_modifier | @ruby_while_modifier
|
||||
|
||||
@ruby_underscore_variable = @ruby_token_class_variable | @ruby_token_constant | @ruby_token_global_variable | @ruby_token_identifier | @ruby_token_instance_variable | @ruby_token_self | @ruby_token_super
|
||||
|
||||
@@ -69,7 +83,19 @@ ruby_alias_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_argument_list_child_type = @ruby_block_argument | @ruby_break | @ruby_call | @ruby_hash_splat_argument | @ruby_next | @ruby_pair | @ruby_return | @ruby_splat_argument | @ruby_token_forward_argument | @ruby_underscore_arg | @ruby_yield
|
||||
#keyset[ruby_alternative_pattern, index]
|
||||
ruby_alternative_pattern_alternatives(
|
||||
int ruby_alternative_pattern: @ruby_alternative_pattern ref,
|
||||
int index: int ref,
|
||||
unique int alternatives: @ruby_underscore_pattern_expr_basic ref
|
||||
);
|
||||
|
||||
ruby_alternative_pattern_def(
|
||||
unique int id: @ruby_alternative_pattern,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_argument_list_child_type = @ruby_block_argument | @ruby_hash_splat_argument | @ruby_pair | @ruby_splat_argument | @ruby_token_forward_argument | @ruby_underscore_expression
|
||||
|
||||
#keyset[ruby_argument_list, index]
|
||||
ruby_argument_list_child(
|
||||
@@ -83,7 +109,7 @@ ruby_argument_list_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_array_child_type = @ruby_block_argument | @ruby_break | @ruby_call | @ruby_hash_splat_argument | @ruby_next | @ruby_pair | @ruby_return | @ruby_splat_argument | @ruby_token_forward_argument | @ruby_underscore_arg | @ruby_yield
|
||||
@ruby_array_child_type = @ruby_block_argument | @ruby_hash_splat_argument | @ruby_pair | @ruby_splat_argument | @ruby_token_forward_argument | @ruby_underscore_expression
|
||||
|
||||
#keyset[ruby_array, index]
|
||||
ruby_array_child(
|
||||
@@ -97,9 +123,35 @@ ruby_array_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_array_pattern_class(
|
||||
unique int ruby_array_pattern: @ruby_array_pattern ref,
|
||||
unique int class: @ruby_underscore_pattern_constant ref
|
||||
);
|
||||
|
||||
@ruby_array_pattern_child_type = @ruby_splat_parameter | @ruby_underscore_pattern_expr
|
||||
|
||||
#keyset[ruby_array_pattern, index]
|
||||
ruby_array_pattern_child(
|
||||
int ruby_array_pattern: @ruby_array_pattern ref,
|
||||
int index: int ref,
|
||||
unique int child: @ruby_array_pattern_child_type ref
|
||||
);
|
||||
|
||||
ruby_array_pattern_def(
|
||||
unique int id: @ruby_array_pattern,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_as_pattern_def(
|
||||
unique int id: @ruby_as_pattern,
|
||||
int name: @ruby_token_identifier ref,
|
||||
int value: @ruby_underscore_pattern_expr ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_assignment_left_type = @ruby_left_assignment_list | @ruby_underscore_lhs
|
||||
|
||||
@ruby_assignment_right_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_right_assignment_list | @ruby_splat_argument | @ruby_underscore_arg | @ruby_yield
|
||||
@ruby_assignment_right_type = @ruby_right_assignment_list | @ruby_splat_argument | @ruby_underscore_expression
|
||||
|
||||
ruby_assignment_def(
|
||||
unique int id: @ruby_assignment,
|
||||
@@ -164,8 +216,6 @@ ruby_begin_block_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_binary_left_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
case @ruby_binary.operator of
|
||||
0 = @ruby_binary_bangequal
|
||||
| 1 = @ruby_binary_bangtilde
|
||||
@@ -195,13 +245,11 @@ case @ruby_binary.operator of
|
||||
;
|
||||
|
||||
|
||||
@ruby_binary_right_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
ruby_binary_def(
|
||||
unique int id: @ruby_binary,
|
||||
int left: @ruby_binary_left_type ref,
|
||||
int left: @ruby_underscore_expression ref,
|
||||
int operator: int ref,
|
||||
int right: @ruby_binary_right_type ref,
|
||||
int right: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -236,7 +284,7 @@ ruby_block_parameter_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_block_parameters_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_identifier
|
||||
@ruby_block_parameters_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_hash_splat_nil | @ruby_token_identifier
|
||||
|
||||
#keyset[ruby_block_parameters, index]
|
||||
ruby_block_parameters_child(
|
||||
@@ -306,6 +354,24 @@ ruby_case_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
#keyset[ruby_case_match, index]
|
||||
ruby_case_match_clauses(
|
||||
int ruby_case_match: @ruby_case_match ref,
|
||||
int index: int ref,
|
||||
unique int clauses: @ruby_in_clause ref
|
||||
);
|
||||
|
||||
ruby_case_match_else(
|
||||
unique int ruby_case_match: @ruby_case_match ref,
|
||||
unique int else: @ruby_else ref
|
||||
);
|
||||
|
||||
ruby_case_match_def(
|
||||
unique int id: @ruby_case_match,
|
||||
int value: @ruby_underscore_statement ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
#keyset[ruby_chained_string, index]
|
||||
ruby_chained_string_child(
|
||||
int ruby_chained_string: @ruby_chained_string ref,
|
||||
@@ -376,7 +442,7 @@ ruby_destructured_left_assignment_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_destructured_parameter_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_identifier
|
||||
@ruby_destructured_parameter_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_hash_splat_nil | @ruby_token_identifier
|
||||
|
||||
#keyset[ruby_destructured_parameter, index]
|
||||
ruby_destructured_parameter_child(
|
||||
@@ -423,7 +489,7 @@ ruby_do_block_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_element_reference_child_type = @ruby_block_argument | @ruby_break | @ruby_call | @ruby_hash_splat_argument | @ruby_next | @ruby_pair | @ruby_return | @ruby_splat_argument | @ruby_token_forward_argument | @ruby_underscore_arg | @ruby_yield
|
||||
@ruby_element_reference_child_type = @ruby_block_argument | @ruby_hash_splat_argument | @ruby_pair | @ruby_splat_argument | @ruby_token_forward_argument | @ruby_underscore_expression
|
||||
|
||||
#keyset[ruby_element_reference, index]
|
||||
ruby_element_reference_child(
|
||||
@@ -518,6 +584,25 @@ ruby_exceptions_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_find_pattern_class(
|
||||
unique int ruby_find_pattern: @ruby_find_pattern ref,
|
||||
unique int class: @ruby_underscore_pattern_constant ref
|
||||
);
|
||||
|
||||
@ruby_find_pattern_child_type = @ruby_splat_parameter | @ruby_underscore_pattern_expr
|
||||
|
||||
#keyset[ruby_find_pattern, index]
|
||||
ruby_find_pattern_child(
|
||||
int ruby_find_pattern: @ruby_find_pattern ref,
|
||||
int index: int ref,
|
||||
unique int child: @ruby_find_pattern_child_type ref
|
||||
);
|
||||
|
||||
ruby_find_pattern_def(
|
||||
unique int id: @ruby_find_pattern,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_for_pattern_type = @ruby_left_assignment_list | @ruby_underscore_lhs
|
||||
|
||||
ruby_for_def(
|
||||
@@ -542,6 +627,25 @@ ruby_hash_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_hash_pattern_class(
|
||||
unique int ruby_hash_pattern: @ruby_hash_pattern ref,
|
||||
unique int class: @ruby_underscore_pattern_constant ref
|
||||
);
|
||||
|
||||
@ruby_hash_pattern_child_type = @ruby_hash_splat_parameter | @ruby_keyword_pattern | @ruby_token_hash_splat_nil
|
||||
|
||||
#keyset[ruby_hash_pattern, index]
|
||||
ruby_hash_pattern_child(
|
||||
int ruby_hash_pattern: @ruby_hash_pattern ref,
|
||||
int index: int ref,
|
||||
unique int child: @ruby_hash_pattern_child_type ref
|
||||
);
|
||||
|
||||
ruby_hash_pattern_def(
|
||||
unique int id: @ruby_hash_pattern,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_hash_splat_argument_def(
|
||||
unique int id: @ruby_hash_splat_argument,
|
||||
int child: @ruby_underscore_arg ref,
|
||||
@@ -590,12 +694,16 @@ ruby_if_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_if_modifier_condition_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
ruby_if_guard_def(
|
||||
unique int id: @ruby_if_guard,
|
||||
int condition: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_if_modifier_def(
|
||||
unique int id: @ruby_if_modifier,
|
||||
int body: @ruby_underscore_statement ref,
|
||||
int condition: @ruby_if_modifier_condition_type ref,
|
||||
int condition: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -605,6 +713,24 @@ ruby_in_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_in_clause_body(
|
||||
unique int ruby_in_clause: @ruby_in_clause ref,
|
||||
unique int body: @ruby_then ref
|
||||
);
|
||||
|
||||
@ruby_in_clause_guard_type = @ruby_if_guard | @ruby_unless_guard
|
||||
|
||||
ruby_in_clause_guard(
|
||||
unique int ruby_in_clause: @ruby_in_clause ref,
|
||||
unique int guard: @ruby_in_clause_guard_type ref
|
||||
);
|
||||
|
||||
ruby_in_clause_def(
|
||||
unique int id: @ruby_in_clause,
|
||||
int pattern: @ruby_underscore_pattern_top_expr_body ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_interpolation_child_type = @ruby_token_empty_statement | @ruby_underscore_statement
|
||||
|
||||
#keyset[ruby_interpolation, index]
|
||||
@@ -630,6 +756,19 @@ ruby_keyword_parameter_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_keyword_pattern_key_type = @ruby_string__ | @ruby_token_hash_key_symbol
|
||||
|
||||
ruby_keyword_pattern_value(
|
||||
unique int ruby_keyword_pattern: @ruby_keyword_pattern ref,
|
||||
unique int value: @ruby_underscore_pattern_expr ref
|
||||
);
|
||||
|
||||
ruby_keyword_pattern_def(
|
||||
unique int id: @ruby_keyword_pattern,
|
||||
int key__: @ruby_keyword_pattern_key_type ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_lambda_body_type = @ruby_block | @ruby_do_block
|
||||
|
||||
ruby_lambda_parameters(
|
||||
@@ -643,7 +782,7 @@ ruby_lambda_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_lambda_parameters_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_identifier
|
||||
@ruby_lambda_parameters_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_hash_splat_nil | @ruby_token_identifier
|
||||
|
||||
#keyset[ruby_lambda_parameters, index]
|
||||
ruby_lambda_parameters_child(
|
||||
@@ -676,7 +815,7 @@ ruby_method_parameters(
|
||||
unique int parameters: @ruby_method_parameters ref
|
||||
);
|
||||
|
||||
@ruby_method_child_type = @ruby_else | @ruby_ensure | @ruby_rescue | @ruby_token_empty_statement | @ruby_underscore_statement
|
||||
@ruby_method_child_type = @ruby_else | @ruby_ensure | @ruby_rescue | @ruby_token_empty_statement | @ruby_underscore_arg | @ruby_underscore_statement
|
||||
|
||||
#keyset[ruby_method, index]
|
||||
ruby_method_child(
|
||||
@@ -691,7 +830,7 @@ ruby_method_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_method_parameters_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_identifier
|
||||
@ruby_method_parameters_child_type = @ruby_block_parameter | @ruby_destructured_parameter | @ruby_hash_splat_parameter | @ruby_keyword_parameter | @ruby_optional_parameter | @ruby_splat_parameter | @ruby_token_forward_parameter | @ruby_token_hash_splat_nil | @ruby_token_identifier
|
||||
|
||||
#keyset[ruby_method_parameters, index]
|
||||
ruby_method_parameters_child(
|
||||
@@ -749,13 +888,11 @@ case @ruby_operator_assignment.operator of
|
||||
;
|
||||
|
||||
|
||||
@ruby_operator_assignment_right_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
ruby_operator_assignment_def(
|
||||
unique int id: @ruby_operator_assignment,
|
||||
int left: @ruby_underscore_lhs ref,
|
||||
int operator: int ref,
|
||||
int right: @ruby_operator_assignment_right_type ref,
|
||||
int right: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -811,14 +948,18 @@ ruby_program_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_range_begin_type = @ruby_underscore_arg | @ruby_underscore_pattern_primitive
|
||||
|
||||
ruby_range_begin(
|
||||
unique int ruby_range: @ruby_range ref,
|
||||
unique int begin: @ruby_underscore_arg ref
|
||||
unique int begin: @ruby_range_begin_type ref
|
||||
);
|
||||
|
||||
@ruby_range_end_type = @ruby_underscore_arg | @ruby_underscore_pattern_primitive
|
||||
|
||||
ruby_range_end(
|
||||
unique int ruby_range: @ruby_range ref,
|
||||
unique int end: @ruby_underscore_arg ref
|
||||
unique int end: @ruby_range_end_type ref
|
||||
);
|
||||
|
||||
case @ruby_range.operator of
|
||||
@@ -885,12 +1026,12 @@ ruby_rescue_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_rescue_modifier_handler_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
@ruby_rescue_modifier_body_type = @ruby_underscore_arg | @ruby_underscore_statement
|
||||
|
||||
ruby_rescue_modifier_def(
|
||||
unique int id: @ruby_rescue_modifier,
|
||||
int body: @ruby_underscore_statement ref,
|
||||
int handler: @ruby_rescue_modifier_handler_type ref,
|
||||
int body: @ruby_rescue_modifier_body_type ref,
|
||||
int handler: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -940,9 +1081,11 @@ ruby_right_assignment_list_def(
|
||||
|
||||
@ruby_scope_resolution_name_type = @ruby_token_constant | @ruby_token_identifier
|
||||
|
||||
@ruby_scope_resolution_scope_type = @ruby_underscore_pattern_constant | @ruby_underscore_primary
|
||||
|
||||
ruby_scope_resolution_scope(
|
||||
unique int ruby_scope_resolution: @ruby_scope_resolution ref,
|
||||
unique int scope: @ruby_underscore_primary ref
|
||||
unique int scope: @ruby_scope_resolution_scope_type ref
|
||||
);
|
||||
|
||||
ruby_scope_resolution_def(
|
||||
@@ -979,7 +1122,7 @@ ruby_singleton_method_parameters(
|
||||
unique int parameters: @ruby_method_parameters ref
|
||||
);
|
||||
|
||||
@ruby_singleton_method_child_type = @ruby_else | @ruby_ensure | @ruby_rescue | @ruby_token_empty_statement | @ruby_underscore_statement
|
||||
@ruby_singleton_method_child_type = @ruby_else | @ruby_ensure | @ruby_rescue | @ruby_token_empty_statement | @ruby_underscore_arg | @ruby_underscore_statement
|
||||
|
||||
#keyset[ruby_singleton_method, index]
|
||||
ruby_singleton_method_child(
|
||||
@@ -1051,11 +1194,9 @@ ruby_subshell_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_superclass_child_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
ruby_superclass_def(
|
||||
unique int id: @ruby_superclass,
|
||||
int child: @ruby_superclass_child_type ref,
|
||||
int child: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -1085,7 +1226,7 @@ ruby_then_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_unary_operand_type = @ruby_break | @ruby_call | @ruby_next | @ruby_parenthesized_statements | @ruby_return | @ruby_token_float | @ruby_token_integer | @ruby_underscore_arg | @ruby_yield
|
||||
@ruby_unary_operand_type = @ruby_parenthesized_statements | @ruby_underscore_expression | @ruby_underscore_simple_numeric
|
||||
|
||||
case @ruby_unary.operator of
|
||||
0 = @ruby_unary_bang
|
||||
@@ -1134,12 +1275,16 @@ ruby_unless_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_unless_modifier_condition_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
ruby_unless_guard_def(
|
||||
unique int id: @ruby_unless_guard,
|
||||
int condition: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_unless_modifier_def(
|
||||
unique int id: @ruby_unless_modifier,
|
||||
int body: @ruby_underscore_statement ref,
|
||||
int condition: @ruby_unless_modifier_condition_type ref,
|
||||
int condition: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -1150,12 +1295,16 @@ ruby_until_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_until_modifier_condition_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
ruby_until_modifier_def(
|
||||
unique int id: @ruby_until_modifier,
|
||||
int body: @ruby_underscore_statement ref,
|
||||
int condition: @ruby_until_modifier_condition_type ref,
|
||||
int condition: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
ruby_variable_reference_pattern_def(
|
||||
unique int id: @ruby_variable_reference_pattern,
|
||||
int name: @ruby_token_identifier ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -1183,12 +1332,10 @@ ruby_while_def(
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@ruby_while_modifier_condition_type = @ruby_break | @ruby_call | @ruby_next | @ruby_return | @ruby_underscore_arg | @ruby_yield
|
||||
|
||||
ruby_while_modifier_def(
|
||||
unique int id: @ruby_while_modifier,
|
||||
int body: @ruby_underscore_statement ref,
|
||||
int condition: @ruby_while_modifier_condition_type ref,
|
||||
int condition: @ruby_underscore_expression ref,
|
||||
int loc: @location ref
|
||||
);
|
||||
|
||||
@@ -1217,31 +1364,35 @@ case @ruby_token.kind of
|
||||
| 4 = @ruby_token_complex
|
||||
| 5 = @ruby_token_constant
|
||||
| 6 = @ruby_token_empty_statement
|
||||
| 7 = @ruby_token_escape_sequence
|
||||
| 8 = @ruby_token_false
|
||||
| 9 = @ruby_token_float
|
||||
| 10 = @ruby_token_forward_argument
|
||||
| 11 = @ruby_token_forward_parameter
|
||||
| 12 = @ruby_token_global_variable
|
||||
| 13 = @ruby_token_hash_key_symbol
|
||||
| 14 = @ruby_token_heredoc_beginning
|
||||
| 15 = @ruby_token_heredoc_content
|
||||
| 16 = @ruby_token_heredoc_end
|
||||
| 17 = @ruby_token_identifier
|
||||
| 18 = @ruby_token_instance_variable
|
||||
| 19 = @ruby_token_integer
|
||||
| 20 = @ruby_token_nil
|
||||
| 21 = @ruby_token_operator
|
||||
| 22 = @ruby_token_self
|
||||
| 23 = @ruby_token_simple_symbol
|
||||
| 24 = @ruby_token_string_content
|
||||
| 25 = @ruby_token_super
|
||||
| 26 = @ruby_token_true
|
||||
| 27 = @ruby_token_uninterpreted
|
||||
| 7 = @ruby_token_encoding
|
||||
| 8 = @ruby_token_escape_sequence
|
||||
| 9 = @ruby_token_false
|
||||
| 10 = @ruby_token_file
|
||||
| 11 = @ruby_token_float
|
||||
| 12 = @ruby_token_forward_argument
|
||||
| 13 = @ruby_token_forward_parameter
|
||||
| 14 = @ruby_token_global_variable
|
||||
| 15 = @ruby_token_hash_key_symbol
|
||||
| 16 = @ruby_token_hash_splat_nil
|
||||
| 17 = @ruby_token_heredoc_beginning
|
||||
| 18 = @ruby_token_heredoc_content
|
||||
| 19 = @ruby_token_heredoc_end
|
||||
| 20 = @ruby_token_identifier
|
||||
| 21 = @ruby_token_instance_variable
|
||||
| 22 = @ruby_token_integer
|
||||
| 23 = @ruby_token_line
|
||||
| 24 = @ruby_token_nil
|
||||
| 25 = @ruby_token_operator
|
||||
| 26 = @ruby_token_self
|
||||
| 27 = @ruby_token_simple_symbol
|
||||
| 28 = @ruby_token_string_content
|
||||
| 29 = @ruby_token_super
|
||||
| 30 = @ruby_token_true
|
||||
| 31 = @ruby_token_uninterpreted
|
||||
;
|
||||
|
||||
|
||||
@ruby_ast_node = @ruby_alias | @ruby_argument_list | @ruby_array | @ruby_assignment | @ruby_bare_string | @ruby_bare_symbol | @ruby_begin | @ruby_begin_block | @ruby_binary | @ruby_block | @ruby_block_argument | @ruby_block_parameter | @ruby_block_parameters | @ruby_break | @ruby_call | @ruby_case__ | @ruby_chained_string | @ruby_class | @ruby_conditional | @ruby_delimited_symbol | @ruby_destructured_left_assignment | @ruby_destructured_parameter | @ruby_do | @ruby_do_block | @ruby_element_reference | @ruby_else | @ruby_elsif | @ruby_end_block | @ruby_ensure | @ruby_exception_variable | @ruby_exceptions | @ruby_for | @ruby_hash | @ruby_hash_splat_argument | @ruby_hash_splat_parameter | @ruby_heredoc_body | @ruby_if | @ruby_if_modifier | @ruby_in | @ruby_interpolation | @ruby_keyword_parameter | @ruby_lambda | @ruby_lambda_parameters | @ruby_left_assignment_list | @ruby_method | @ruby_method_parameters | @ruby_module | @ruby_next | @ruby_operator_assignment | @ruby_optional_parameter | @ruby_pair | @ruby_parenthesized_statements | @ruby_pattern | @ruby_program | @ruby_range | @ruby_rational | @ruby_redo | @ruby_regex | @ruby_rescue | @ruby_rescue_modifier | @ruby_rest_assignment | @ruby_retry | @ruby_return | @ruby_right_assignment_list | @ruby_scope_resolution | @ruby_setter | @ruby_singleton_class | @ruby_singleton_method | @ruby_splat_argument | @ruby_splat_parameter | @ruby_string__ | @ruby_string_array | @ruby_subshell | @ruby_superclass | @ruby_symbol_array | @ruby_then | @ruby_token | @ruby_unary | @ruby_undef | @ruby_unless | @ruby_unless_modifier | @ruby_until | @ruby_until_modifier | @ruby_when | @ruby_while | @ruby_while_modifier | @ruby_yield
|
||||
@ruby_ast_node = @ruby_alias | @ruby_alternative_pattern | @ruby_argument_list | @ruby_array | @ruby_array_pattern | @ruby_as_pattern | @ruby_assignment | @ruby_bare_string | @ruby_bare_symbol | @ruby_begin | @ruby_begin_block | @ruby_binary | @ruby_block | @ruby_block_argument | @ruby_block_parameter | @ruby_block_parameters | @ruby_break | @ruby_call | @ruby_case__ | @ruby_case_match | @ruby_chained_string | @ruby_class | @ruby_conditional | @ruby_delimited_symbol | @ruby_destructured_left_assignment | @ruby_destructured_parameter | @ruby_do | @ruby_do_block | @ruby_element_reference | @ruby_else | @ruby_elsif | @ruby_end_block | @ruby_ensure | @ruby_exception_variable | @ruby_exceptions | @ruby_find_pattern | @ruby_for | @ruby_hash | @ruby_hash_pattern | @ruby_hash_splat_argument | @ruby_hash_splat_parameter | @ruby_heredoc_body | @ruby_if | @ruby_if_guard | @ruby_if_modifier | @ruby_in | @ruby_in_clause | @ruby_interpolation | @ruby_keyword_parameter | @ruby_keyword_pattern | @ruby_lambda | @ruby_lambda_parameters | @ruby_left_assignment_list | @ruby_method | @ruby_method_parameters | @ruby_module | @ruby_next | @ruby_operator_assignment | @ruby_optional_parameter | @ruby_pair | @ruby_parenthesized_statements | @ruby_pattern | @ruby_program | @ruby_range | @ruby_rational | @ruby_redo | @ruby_regex | @ruby_rescue | @ruby_rescue_modifier | @ruby_rest_assignment | @ruby_retry | @ruby_return | @ruby_right_assignment_list | @ruby_scope_resolution | @ruby_setter | @ruby_singleton_class | @ruby_singleton_method | @ruby_splat_argument | @ruby_splat_parameter | @ruby_string__ | @ruby_string_array | @ruby_subshell | @ruby_superclass | @ruby_symbol_array | @ruby_then | @ruby_token | @ruby_unary | @ruby_undef | @ruby_unless | @ruby_unless_guard | @ruby_unless_modifier | @ruby_until | @ruby_until_modifier | @ruby_variable_reference_pattern | @ruby_when | @ruby_while | @ruby_while_modifier | @ruby_yield
|
||||
|
||||
@ruby_ast_node_parent = @file | @ruby_ast_node
|
||||
|
||||
|
||||
Reference in New Issue
Block a user