renamed "constructortypeexpr" to "constructor_typeexpr"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:37 +02:00
parent bdb08156b4
commit d91ba5ac54
3 changed files with 4 additions and 4 deletions

View File

@@ -344,7 +344,7 @@ class FunctionTypeExpr extends TypeExpr, @functiontypeexpr {
}
/** A constructor type, such as `new (x: string) => Object`. */
class ConstructorTypeExpr extends FunctionTypeExpr, @constructortypeexpr { }
class ConstructorTypeExpr extends FunctionTypeExpr, @constructor_typeexpr { }
/** A function type that is not a constructor type, such as `(x: string) => number`. */
class PlainFunctionTypeExpr extends FunctionTypeExpr, @plain_function_typeexpr { }

View File

@@ -571,7 +571,7 @@ case @typeexpr.kind of
| 21 = @interface_typeexpr
| 22 = @type_parameter
| 23 = @plain_function_typeexpr
| 24 = @constructortypeexpr
| 24 = @constructor_typeexpr
| 25 = @localnamespaceaccess
| 26 = @qualifiednamespaceaccess
| 27 = @mappedtypeexpr
@@ -595,7 +595,7 @@ case @typeexpr.kind of
@namespaceaccess = @localnamespaceaccess | @qualifiednamespaceaccess | @importnamespaceaccess;
@importtypeexpr = @importtypeaccess | @importnamespaceaccess | @importvartypeaccess;
@functiontypeexpr = @plain_function_typeexpr | @constructortypeexpr;
@functiontypeexpr = @plain_function_typeexpr | @constructor_typeexpr;
// types
types (

View File

@@ -886,7 +886,7 @@
<v>20</v>
</e>
<e>
<k>@constructortypeexpr</k>
<k>@constructor_typeexpr</k>
<v>20</v>
</e>
<e>