mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
renamed "optionaltypeexpr" to "optional_typeexpr"
This commit is contained in:
@@ -959,7 +959,7 @@ class IsTypeExpr extends PredicateTypeExpr {
|
||||
/**
|
||||
* 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?` */
|
||||
TypeExpr getElementType() { result = getChildTypeExpr(0) }
|
||||
|
||||
|
||||
@@ -580,7 +580,7 @@ case @typeexpr.kind of
|
||||
| 30 = @import_type_access
|
||||
| 31 = @import_namespace_access
|
||||
| 32 = @import_var_type_access
|
||||
| 33 = @optionaltypeexpr
|
||||
| 33 = @optional_typeexpr
|
||||
| 34 = @resttypeexpr
|
||||
| 35 = @bigintliteraltypeexpr
|
||||
| 36 = @readonlytypeexpr
|
||||
|
||||
@@ -822,7 +822,7 @@
|
||||
<v>100</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@optionaltypeexpr</k>
|
||||
<k>@optional_typeexpr</k>
|
||||
<v>100</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user