Register TYPE_CODE_FRAGMENT in KtStubElementTypes
Stubbed type has to be register earlier (see IStubFileElementType#checkNotInstantiatedTooLate) ^KT-28732 Fixed
This commit is contained in:
@@ -160,7 +160,7 @@ public interface KtNodeTypes {
|
|||||||
|
|
||||||
IElementType SCRIPT = KtStubElementTypes.SCRIPT;
|
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 EXPRESSION_CODE_FRAGMENT = new KtExpressionCodeFragmentType();
|
||||||
IFileElementType BLOCK_CODE_FRAGMENT = new KtBlockCodeFragmentType();
|
IFileElementType BLOCK_CODE_FRAGMENT = new KtBlockCodeFragmentType();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ public interface KtStubElementTypes {
|
|||||||
KtPlaceHolderStubElementType<KtFunctionType> FUNCTION_TYPE =
|
KtPlaceHolderStubElementType<KtFunctionType> FUNCTION_TYPE =
|
||||||
new KtPlaceHolderStubElementType<>("FUNCTION_TYPE", KtFunctionType.class);
|
new KtPlaceHolderStubElementType<>("FUNCTION_TYPE", KtFunctionType.class);
|
||||||
|
|
||||||
|
KtTypeCodeFragmentType TYPE_CODE_FRAGMENT = new KtTypeCodeFragmentType();
|
||||||
|
|
||||||
KtTypeProjectionElementType TYPE_PROJECTION = new KtTypeProjectionElementType("TYPE_PROJECTION");
|
KtTypeProjectionElementType TYPE_PROJECTION = new KtTypeProjectionElementType("TYPE_PROJECTION");
|
||||||
|
|
||||||
KtPlaceHolderStubElementType<KtFunctionTypeReceiver> FUNCTION_TYPE_RECEIVER =
|
KtPlaceHolderStubElementType<KtFunctionTypeReceiver> FUNCTION_TYPE_RECEIVER =
|
||||||
|
|||||||
Reference in New Issue
Block a user