mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
renamed "arraypattern" to "array_pattern"
This commit is contained in:
@@ -409,7 +409,7 @@ class BindingPattern extends @pattern, Expr {
|
||||
}
|
||||
}
|
||||
|
||||
private class TDestructuringPattern = @arraypattern or @objectpattern;
|
||||
private class TDestructuringPattern = @array_pattern or @objectpattern;
|
||||
|
||||
/**
|
||||
* A destructuring pattern, that is, either an array pattern or an object pattern.
|
||||
@@ -478,7 +478,7 @@ class GlobalVarDecl extends VarDecl {
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class ArrayPattern extends DestructuringPattern, @arraypattern {
|
||||
class ArrayPattern extends DestructuringPattern, @array_pattern {
|
||||
/** Gets the `i`th element of this array pattern. */
|
||||
Expr getElement(int i) {
|
||||
i >= 0 and
|
||||
|
||||
@@ -231,7 +231,7 @@ is_delegating (int yield: @yieldexpr ref);
|
||||
@expr_or_stmt = @expr | @stmt;
|
||||
@expr_or_type = @expr | @typeexpr;
|
||||
@exprparent = @expr_or_stmt | @property | @function_typeexpr;
|
||||
@arraylike = @array_expr | @arraypattern;
|
||||
@arraylike = @array_expr | @array_pattern;
|
||||
@type_annotation = @typeexpr | @jsdoc_type_expr;
|
||||
@node_in_stmt_container = @cfg_node | @type_annotation | @toplevel;
|
||||
|
||||
@@ -302,7 +302,7 @@ case @expr.kind of
|
||||
| 64 = @var_declarator
|
||||
| 65 = @arrow_function_expr
|
||||
| 66 = @spread_element
|
||||
| 67 = @arraypattern
|
||||
| 67 = @array_pattern
|
||||
| 68 = @objectpattern
|
||||
| 69 = @yieldexpr
|
||||
| 70 = @taggedtemplateexpr
|
||||
@@ -379,7 +379,7 @@ case @expr.kind of
|
||||
|
||||
@updateexpr = @preinc_expr | @postinc_expr | @predec_expr | @postdec_expr;
|
||||
|
||||
@pattern = @varref | @arraypattern | @objectpattern;
|
||||
@pattern = @varref | @array_pattern | @objectpattern;
|
||||
|
||||
@comprehensionexpr = @arraycomprehensionexpr | @generatorexpr;
|
||||
|
||||
|
||||
@@ -466,7 +466,7 @@
|
||||
<v>50</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@arraypattern</k>
|
||||
<k>@array_pattern</k>
|
||||
<v>57</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user