mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
renamed "resttypeexpr" to "rest_typeexpr"
This commit is contained in:
@@ -969,7 +969,7 @@ class OptionalTypeExpr extends @optional_typeexpr, TypeExpr {
|
|||||||
/**
|
/**
|
||||||
* A rest element in a tuple type, such as `...string[]` in `[number, ...string[]]`.
|
* A rest element in a tuple type, such as `...string[]` in `[number, ...string[]]`.
|
||||||
*/
|
*/
|
||||||
class RestTypeExpr extends @resttypeexpr, TypeExpr {
|
class RestTypeExpr extends @rest_typeexpr, TypeExpr {
|
||||||
/** Gets the type `T[]` in `...T[]`, such as `string[]` in `[number, ...string[]]`. */
|
/** Gets the type `T[]` in `...T[]`, such as `string[]` in `[number, ...string[]]`. */
|
||||||
TypeExpr getArrayType() { result = getChildTypeExpr(0) }
|
TypeExpr getArrayType() { result = getChildTypeExpr(0) }
|
||||||
|
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ case @typeexpr.kind of
|
|||||||
| 31 = @import_namespace_access
|
| 31 = @import_namespace_access
|
||||||
| 32 = @import_var_type_access
|
| 32 = @import_var_type_access
|
||||||
| 33 = @optional_typeexpr
|
| 33 = @optional_typeexpr
|
||||||
| 34 = @resttypeexpr
|
| 34 = @rest_typeexpr
|
||||||
| 35 = @bigintliteraltypeexpr
|
| 35 = @bigintliteraltypeexpr
|
||||||
| 36 = @readonlytypeexpr
|
| 36 = @readonlytypeexpr
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -826,7 +826,7 @@
|
|||||||
<v>100</v>
|
<v>100</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@resttypeexpr</k>
|
<k>@rest_typeexpr</k>
|
||||||
<v>100</v>
|
<v>100</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user