Register TYPE_CODE_FRAGMENT in KtStubElementTypes

Stubbed type has to be register earlier (see IStubFileElementType#checkNotInstantiatedTooLate)

^KT-28732 Fixed
This commit is contained in:
Vladimir Dolzhenko
2020-09-28 11:12:32 +02:00
parent 243db689af
commit a149d38c98
2 changed files with 3 additions and 1 deletions
@@ -160,7 +160,7 @@ public interface KtNodeTypes {
IElementType SCRIPT = KtStubElementTypes.SCRIPT;
IFileElementType TYPE_CODE_FRAGMENT = new KtTypeCodeFragmentType();
IFileElementType TYPE_CODE_FRAGMENT = KtStubElementTypes.TYPE_CODE_FRAGMENT;
IFileElementType EXPRESSION_CODE_FRAGMENT = new KtExpressionCodeFragmentType();
IFileElementType BLOCK_CODE_FRAGMENT = new KtBlockCodeFragmentType();
}
@@ -89,6 +89,8 @@ public interface KtStubElementTypes {
KtPlaceHolderStubElementType<KtFunctionType> FUNCTION_TYPE =
new KtPlaceHolderStubElementType<>("FUNCTION_TYPE", KtFunctionType.class);
KtTypeCodeFragmentType TYPE_CODE_FRAGMENT = new KtTypeCodeFragmentType();
KtTypeProjectionElementType TYPE_PROJECTION = new KtTypeProjectionElementType("TYPE_PROJECTION");
KtPlaceHolderStubElementType<KtFunctionTypeReceiver> FUNCTION_TYPE_RECEIVER =