renamed "resttypeexpr" to "rest_typeexpr"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:45 +02:00
parent 584901e8af
commit bb78c3e759
3 changed files with 3 additions and 3 deletions

View File

@@ -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) }

View File

@@ -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
; ;

View File

@@ -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>