From a5f96d6470c6b2b5c5ed10f235d3e5e414cfa9b9 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 11 Mar 2019 18:21:01 +0300 Subject: [PATCH] Minor: cleanup and remove outdated TODOs --- .idea/dictionaries/NK.xml | 7 +++++++ compiler/psi/src/org/jetbrains/kotlin/KtNodeTypes.java | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .idea/dictionaries/NK.xml diff --git a/.idea/dictionaries/NK.xml b/.idea/dictionaries/NK.xml new file mode 100644 index 00000000000..ac63168bbe0 --- /dev/null +++ b/.idea/dictionaries/NK.xml @@ -0,0 +1,7 @@ + + + + typealias + + + \ No newline at end of file diff --git a/compiler/psi/src/org/jetbrains/kotlin/KtNodeTypes.java b/compiler/psi/src/org/jetbrains/kotlin/KtNodeTypes.java index deaa43751e1..1f6cab264dc 100644 --- a/compiler/psi/src/org/jetbrains/kotlin/KtNodeTypes.java +++ b/compiler/psi/src/org/jetbrains/kotlin/KtNodeTypes.java @@ -72,11 +72,9 @@ public interface KtNodeTypes { IElementType DYNAMIC_TYPE = KtStubElementTypes.DYNAMIC_TYPE; IElementType FUNCTION_TYPE = KtStubElementTypes.FUNCTION_TYPE; IElementType FUNCTION_TYPE_RECEIVER = KtStubElementTypes.FUNCTION_TYPE_RECEIVER; - KtNodeType SELF_TYPE = new KtNodeType("SELF_TYPE", KtSelfType.class); IElementType NULLABLE_TYPE = KtStubElementTypes.NULLABLE_TYPE; IElementType TYPE_PROJECTION = KtStubElementTypes.TYPE_PROJECTION; - // TODO: review IElementType PROPERTY_ACCESSOR = KtStubElementTypes.PROPERTY_ACCESSOR; IElementType INITIALIZER_LIST = KtStubElementTypes.INITIALIZER_LIST; IElementType TYPE_CONSTRAINT_LIST = KtStubElementTypes.TYPE_CONSTRAINT_LIST; @@ -85,7 +83,6 @@ public interface KtNodeTypes { IElementType CONSTRUCTOR_DELEGATION_CALL = new KtNodeType.KtLeftBoundNodeType("CONSTRUCTOR_DELEGATION_CALL", KtConstructorDelegationCall.class); KtNodeType CONSTRUCTOR_DELEGATION_REFERENCE = new KtNodeType.KtLeftBoundNodeType("CONSTRUCTOR_DELEGATION_REFERENCE", KtConstructorDelegationReferenceExpression.class); - // TODO: Not sure if we need separate NT for each kind of constants IElementType NULL = KtStubElementTypes.NULL; IElementType BOOLEAN_CONSTANT = KtStubElementTypes.BOOLEAN_CONSTANT; IElementType FLOAT_CONSTANT = KtStubElementTypes.FLOAT_CONSTANT; @@ -133,7 +130,7 @@ public interface KtNodeTypes { KtNodeType SUPER_EXPRESSION = new KtNodeType("SUPER_EXPRESSION", KtSuperExpression.class); KtNodeType BINARY_EXPRESSION = new KtNodeType("BINARY_EXPRESSION", KtBinaryExpression.class); KtNodeType BINARY_WITH_TYPE = new KtNodeType("BINARY_WITH_TYPE", KtBinaryExpressionWithTypeRHS.class); - KtNodeType IS_EXPRESSION = new KtNodeType("IS_EXPRESSION", KtIsExpression.class); // TODO: + KtNodeType IS_EXPRESSION = new KtNodeType("IS_EXPRESSION", KtIsExpression.class); KtNodeType PREFIX_EXPRESSION = new KtNodeType("PREFIX_EXPRESSION", KtPrefixExpression.class); KtNodeType POSTFIX_EXPRESSION = new KtNodeType("POSTFIX_EXPRESSION", KtPostfixExpression.class); KtNodeType LABELED_EXPRESSION = new KtNodeType("LABELED_EXPRESSION", KtLabeledExpression.class);