mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "importtypeaccess" to "import_type_access"
This commit is contained in:
@@ -1312,7 +1312,7 @@ class ImportTypeExpr extends TypeExpr, @importtypeexpr {
|
|||||||
string getPath() { result = getPathExpr().(StringLiteralTypeExpr).getValue() }
|
string getPath() { result = getPathExpr().(StringLiteralTypeExpr).getValue() }
|
||||||
|
|
||||||
/** Holds if this import is used in the context of a type, such as in `let x: import("foo")`. */
|
/** Holds if this import is used in the context of a type, such as in `let x: import("foo")`. */
|
||||||
predicate isTypeAccess() { this instanceof @importtypeaccess }
|
predicate isTypeAccess() { this instanceof @import_type_access }
|
||||||
|
|
||||||
/** Holds if this import is used in the context of a namespace, such as in `let x: import("http").ServerRequest"`. */
|
/** Holds if this import is used in the context of a namespace, such as in `let x: import("http").ServerRequest"`. */
|
||||||
predicate isNamespaceAccess() { this instanceof @importnamespaceaccess }
|
predicate isNamespaceAccess() { this instanceof @importnamespaceaccess }
|
||||||
@@ -1324,7 +1324,7 @@ class ImportTypeExpr extends TypeExpr, @importtypeexpr {
|
|||||||
/**
|
/**
|
||||||
* An import used in the context of a type, such as in `let x: import("foo")`.
|
* An import used in the context of a type, such as in `let x: import("foo")`.
|
||||||
*/
|
*/
|
||||||
class ImportTypeAccess extends TypeAccess, ImportTypeExpr, @importtypeaccess { }
|
class ImportTypeAccess extends TypeAccess, ImportTypeExpr, @import_type_access { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An import used in the context of a namespace inside a type annotation, such as in `let x: import("http").ServerRequest`.
|
* An import used in the context of a namespace inside a type annotation, such as in `let x: import("http").ServerRequest`.
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ case @typeexpr.kind of
|
|||||||
| 27 = @mapped_typeexpr
|
| 27 = @mapped_typeexpr
|
||||||
| 28 = @conditional_typeexpr
|
| 28 = @conditional_typeexpr
|
||||||
| 29 = @infer_typeexpr
|
| 29 = @infer_typeexpr
|
||||||
| 30 = @importtypeaccess
|
| 30 = @import_type_access
|
||||||
| 31 = @importnamespaceaccess
|
| 31 = @importnamespaceaccess
|
||||||
| 32 = @importvartypeaccess
|
| 32 = @importvartypeaccess
|
||||||
| 33 = @optionaltypeexpr
|
| 33 = @optionaltypeexpr
|
||||||
@@ -590,10 +590,10 @@ case @typeexpr.kind of
|
|||||||
@typeidentifier = @type_decl | @local_type_access | @type_label | @local_var_type_access | @local_namespace_access;
|
@typeidentifier = @type_decl | @local_type_access | @type_label | @local_var_type_access | @local_namespace_access;
|
||||||
@typeexpr_parent = @expr | @stmt | @property | @typeexpr;
|
@typeexpr_parent = @expr | @stmt | @property | @typeexpr;
|
||||||
@literaltypeexpr = @string_literal_typeexpr | @number_literal_typeexpr | @boolean_literal_typeexpr | @bigintliteraltypeexpr;
|
@literaltypeexpr = @string_literal_typeexpr | @number_literal_typeexpr | @boolean_literal_typeexpr | @bigintliteraltypeexpr;
|
||||||
@typeaccess = @local_type_access | @qualified_type_access | @importtypeaccess;
|
@typeaccess = @local_type_access | @qualified_type_access | @import_type_access;
|
||||||
@vartypeaccess = @local_var_type_access | @qualified_var_type_access | @this_var_type_access | @importvartypeaccess;
|
@vartypeaccess = @local_var_type_access | @qualified_var_type_access | @this_var_type_access | @importvartypeaccess;
|
||||||
@namespaceaccess = @local_namespace_access | @qualified_namespace_access | @importnamespaceaccess;
|
@namespaceaccess = @local_namespace_access | @qualified_namespace_access | @importnamespaceaccess;
|
||||||
@importtypeexpr = @importtypeaccess | @importnamespaceaccess | @importvartypeaccess;
|
@importtypeexpr = @import_type_access | @importnamespaceaccess | @importvartypeaccess;
|
||||||
|
|
||||||
@functiontypeexpr = @plain_function_typeexpr | @constructor_typeexpr;
|
@functiontypeexpr = @plain_function_typeexpr | @constructor_typeexpr;
|
||||||
|
|
||||||
|
|||||||
@@ -814,7 +814,7 @@
|
|||||||
<v>100</v>
|
<v>100</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@importtypeaccess</k>
|
<k>@import_type_access</k>
|
||||||
<v>100</v>
|
<v>100</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user