mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "functionexpr" to "function_expr"
This commit is contained in:
@@ -775,7 +775,7 @@ class SpreadProperty extends Property {
|
|||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class FunctionExpr extends @functionexpr, Expr, Function {
|
class FunctionExpr extends @function_expr, Expr, Function {
|
||||||
/** Holds if this function expression is a property setter. */
|
/** Holds if this function expression is a property setter. */
|
||||||
predicate isSetter() { exists(PropertySetter s | s.getInit() = this) }
|
predicate isSetter() { exists(PropertySetter s | s.getInit() = this) }
|
||||||
|
|
||||||
|
|||||||
@@ -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 | @arrow_function_expr;
|
@stmt_parent = @stmt | @toplevel | @function_expr | @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
|
||||||
@@ -245,7 +245,7 @@ case @expr.kind of
|
|||||||
| 6 = @thisexpr
|
| 6 = @thisexpr
|
||||||
| 7 = @arrayexpr
|
| 7 = @arrayexpr
|
||||||
| 8 = @objexpr
|
| 8 = @objexpr
|
||||||
| 9 = @functionexpr
|
| 9 = @function_expr
|
||||||
| 10 = @seqexpr
|
| 10 = @seqexpr
|
||||||
| 11 = @conditionalexpr
|
| 11 = @conditionalexpr
|
||||||
| 12 = @newexpr
|
| 12 = @newexpr
|
||||||
@@ -434,7 +434,7 @@ scopenesting (unique int inner: @scope ref,
|
|||||||
int outer: @scope ref);
|
int outer: @scope ref);
|
||||||
|
|
||||||
// functions
|
// functions
|
||||||
@function = @functiondeclstmt | @functionexpr | @arrow_function_expr;
|
@function = @functiondeclstmt | @function_expr | @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;
|
||||||
@@ -532,7 +532,7 @@ is_optional_parameter_declaration (unique int parameter: @pattern ref);
|
|||||||
#keyset[constructor, param_index]
|
#keyset[constructor, param_index]
|
||||||
parameter_fields(
|
parameter_fields(
|
||||||
unique int field: @parameter_field ref,
|
unique int field: @parameter_field ref,
|
||||||
int constructor: @functionexpr ref,
|
int constructor: @function_expr ref,
|
||||||
int param_index: int ref
|
int param_index: int ref
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
<v>50958</v>
|
<v>50958</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@functionexpr</k>
|
<k>@function_expr</k>
|
||||||
<v>95744</v>
|
<v>95744</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user