mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "arrowfunctionexpr" to "arrow_function_expr"
This commit is contained in:
@@ -802,7 +802,7 @@ class FunctionExpr extends @functionexpr, Expr, Function {
|
|||||||
* var greet =
|
* var greet =
|
||||||
* () => console.log("Hi!"); // arrow function expression
|
* () => console.log("Hi!"); // arrow function expression
|
||||||
*/
|
*/
|
||||||
class ArrowFunctionExpr extends @arrowfunctionexpr, Expr, Function {
|
class ArrowFunctionExpr extends @arrow_function_expr, Expr, Function {
|
||||||
/** Gets the statement in which this expression appears. */
|
/** Gets the statement in which this expression appears. */
|
||||||
override Stmt getEnclosingStmt() { result = Expr.super.getEnclosingStmt() }
|
override Stmt getEnclosingStmt() { result = Expr.super.getEnclosingStmt() }
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ stmt_containers (unique int stmt: @stmt ref,
|
|||||||
jump_targets (unique int jump: @stmt ref,
|
jump_targets (unique int jump: @stmt ref,
|
||||||
int target: @stmt ref);
|
int target: @stmt ref);
|
||||||
|
|
||||||
@stmt_parent = @stmt | @toplevel | @functionexpr | @arrowfunctionexpr;
|
@stmt_parent = @stmt | @toplevel | @functionexpr | @arrow_function_expr;
|
||||||
@stmt_container = @toplevel | @function | @namespacedeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration;
|
@stmt_container = @toplevel | @function | @namespacedeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration;
|
||||||
|
|
||||||
case @stmt.kind of
|
case @stmt.kind of
|
||||||
@@ -300,7 +300,7 @@ case @expr.kind of
|
|||||||
| 62 = @postdecexpr
|
| 62 = @postdecexpr
|
||||||
| 63 = @parexpr
|
| 63 = @parexpr
|
||||||
| 64 = @vardeclarator
|
| 64 = @vardeclarator
|
||||||
| 65 = @arrowfunctionexpr
|
| 65 = @arrow_function_expr
|
||||||
| 66 = @spreadelement
|
| 66 = @spreadelement
|
||||||
| 67 = @arraypattern
|
| 67 = @arraypattern
|
||||||
| 68 = @objectpattern
|
| 68 = @objectpattern
|
||||||
@@ -434,7 +434,7 @@ scopenesting (unique int inner: @scope ref,
|
|||||||
int outer: @scope ref);
|
int outer: @scope ref);
|
||||||
|
|
||||||
// functions
|
// functions
|
||||||
@function = @functiondeclstmt | @functionexpr | @arrowfunctionexpr;
|
@function = @functiondeclstmt | @functionexpr | @arrow_function_expr;
|
||||||
|
|
||||||
@parameterized = @function | @catchclause;
|
@parameterized = @function | @catchclause;
|
||||||
@type_parameterized = @function | @class_or_interface | @typealiasdeclaration | @mapped_typeexpr | @infer_typeexpr;
|
@type_parameterized = @function | @class_or_interface | @typealiasdeclaration | @mapped_typeexpr | @infer_typeexpr;
|
||||||
|
|||||||
@@ -458,7 +458,7 @@
|
|||||||
<v>130843</v>
|
<v>130843</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@arrowfunctionexpr</k>
|
<k>@arrow_function_expr</k>
|
||||||
<v>3730</v>
|
<v>3730</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user