renamed "keyoftypeexpr" to "keyof_typeexpr"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:28 +02:00
parent 30500fcf9b
commit af56939703
3 changed files with 3 additions and 3 deletions

View File

@@ -877,7 +877,7 @@ class TupleTypeExpr extends @tuple_typeexpr, TypeExpr {
/**
* A type of form `keyof T` where `T` is a type.
*/
class KeyofTypeExpr extends @keyoftypeexpr, TypeExpr {
class KeyofTypeExpr extends @keyof_typeexpr, TypeExpr {
/** Gets the type `T` in `keyof T`, denoting the object type whose property names are to be extracted. */
TypeExpr getElementType() { result = getChildTypeExpr(0) }
}

View File

@@ -559,7 +559,7 @@ case @typeexpr.kind of
| 9 = @intersection_typeexpr
| 10 = @parenthesized_typeexpr
| 11 = @tuple_typeexpr
| 12 = @keyoftypeexpr
| 12 = @keyof_typeexpr
| 13 = @qualifiedtypeaccess
| 14 = @generictypeexpr
| 15 = @typelabel

View File

@@ -798,7 +798,7 @@
<v>98</v>
</e>
<e>
<k>@keyoftypeexpr</k>
<k>@keyof_typeexpr</k>
<v>3</v>
</e>
<e>