renamed "optionaltypeexpr" to "optional_typeexpr"

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

View File

@@ -959,7 +959,7 @@ class IsTypeExpr extends PredicateTypeExpr {
/** /**
* An optional type element in a tuple type, such as `number?` in `[string, number?]`. * An optional type element in a tuple type, such as `number?` in `[string, number?]`.
*/ */
class OptionalTypeExpr extends @optionaltypeexpr, TypeExpr { class OptionalTypeExpr extends @optional_typeexpr, TypeExpr {
/** Gets the type `T` in `T?` */ /** Gets the type `T` in `T?` */
TypeExpr getElementType() { result = getChildTypeExpr(0) } TypeExpr getElementType() { result = getChildTypeExpr(0) }

View File

@@ -580,7 +580,7 @@ case @typeexpr.kind of
| 30 = @import_type_access | 30 = @import_type_access
| 31 = @import_namespace_access | 31 = @import_namespace_access
| 32 = @import_var_type_access | 32 = @import_var_type_access
| 33 = @optionaltypeexpr | 33 = @optional_typeexpr
| 34 = @resttypeexpr | 34 = @resttypeexpr
| 35 = @bigintliteraltypeexpr | 35 = @bigintliteraltypeexpr
| 36 = @readonlytypeexpr | 36 = @readonlytypeexpr

View File

@@ -822,7 +822,7 @@
<v>100</v> <v>100</v>
</e> </e>
<e> <e>
<k>@optionaltypeexpr</k> <k>@optional_typeexpr</k>
<v>100</v> <v>100</v>
</e> </e>
<e> <e>