mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "exprortype" to "expr_or_type"
This commit is contained in:
@@ -14,7 +14,7 @@ import javascript
|
|||||||
* string[]
|
* string[]
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class ExprOrType extends @exprortype, Documentable {
|
class ExprOrType extends @expr_or_type, Documentable {
|
||||||
/** Gets the statement in which this expression or type appears. */
|
/** Gets the statement in which this expression or type appears. */
|
||||||
Stmt getEnclosingStmt() { enclosing_stmt(this, result) }
|
Stmt getEnclosingStmt() { enclosing_stmt(this, result) }
|
||||||
|
|
||||||
|
|||||||
@@ -215,12 +215,12 @@ exprs (unique int id: @expr,
|
|||||||
|
|
||||||
literals (varchar(900) value: string ref,
|
literals (varchar(900) value: string ref,
|
||||||
varchar(900) raw: string ref,
|
varchar(900) raw: string ref,
|
||||||
unique int expr: @exprortype ref);
|
unique int expr: @expr_or_type ref);
|
||||||
|
|
||||||
enclosing_stmt (unique int expr: @exprortype ref,
|
enclosing_stmt (unique int expr: @expr_or_type ref,
|
||||||
int stmt: @stmt ref);
|
int stmt: @stmt ref);
|
||||||
|
|
||||||
expr_containers (unique int expr: @exprortype ref,
|
expr_containers (unique int expr: @expr_or_type ref,
|
||||||
int container: @stmt_container ref);
|
int container: @stmt_container ref);
|
||||||
|
|
||||||
array_size (unique int ae: @arraylike ref,
|
array_size (unique int ae: @arraylike ref,
|
||||||
@@ -229,7 +229,7 @@ array_size (unique int ae: @arraylike ref,
|
|||||||
is_delegating (int yield: @yieldexpr ref);
|
is_delegating (int yield: @yieldexpr ref);
|
||||||
|
|
||||||
@expr_or_stmt = @expr | @stmt;
|
@expr_or_stmt = @expr | @stmt;
|
||||||
@exprortype = @expr | @typeexpr;
|
@expr_or_type = @expr | @typeexpr;
|
||||||
@exprparent = @expr_or_stmt | @property | @functiontypeexpr;
|
@exprparent = @expr_or_stmt | @property | @functiontypeexpr;
|
||||||
@arraylike = @arrayexpr | @arraypattern;
|
@arraylike = @arrayexpr | @arraypattern;
|
||||||
@type_annotation = @typeexpr | @jsdoc_type_expr;
|
@type_annotation = @typeexpr | @jsdoc_type_expr;
|
||||||
|
|||||||
Reference in New Issue
Block a user