mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "uniontypeexpr" to "union_typeexpr"
This commit is contained in:
@@ -797,7 +797,7 @@ class ArrayTypeExpr extends @array_typeexpr, TypeExpr {
|
|||||||
/**
|
/**
|
||||||
* A union type, such as `string|number|boolean`.
|
* A union type, such as `string|number|boolean`.
|
||||||
*/
|
*/
|
||||||
class UnionTypeExpr extends @uniontypeexpr, TypeExpr {
|
class UnionTypeExpr extends @union_typeexpr, TypeExpr {
|
||||||
/** Gets the `n`th type in the union, starting at 0. */
|
/** Gets the `n`th type in the union, starting at 0. */
|
||||||
TypeExpr getElementType(int n) { result = getChildTypeExpr(n) }
|
TypeExpr getElementType(int n) { result = getChildTypeExpr(n) }
|
||||||
|
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ case @typeexpr.kind of
|
|||||||
| 4 = @number_literal_typeexpr
|
| 4 = @number_literal_typeexpr
|
||||||
| 5 = @boolean_literal_typeexpr
|
| 5 = @boolean_literal_typeexpr
|
||||||
| 6 = @array_typeexpr
|
| 6 = @array_typeexpr
|
||||||
| 7 = @uniontypeexpr
|
| 7 = @union_typeexpr
|
||||||
| 8 = @indexedaccesstypeexpr
|
| 8 = @indexedaccesstypeexpr
|
||||||
| 9 = @intersectiontypeexpr
|
| 9 = @intersectiontypeexpr
|
||||||
| 10 = @parenthesizedtypeexpr
|
| 10 = @parenthesizedtypeexpr
|
||||||
|
|||||||
@@ -782,7 +782,7 @@
|
|||||||
<v>4579</v>
|
<v>4579</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@uniontypeexpr</k>
|
<k>@union_typeexpr</k>
|
||||||
<v>852</v>
|
<v>852</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user