Parse primary constructor into separate PSI element
This commit is contained in:
@@ -38,6 +38,7 @@ public interface JetNodeTypes {
|
|||||||
IElementType ENUM_ENTRY = JetStubElementTypes.ENUM_ENTRY;
|
IElementType ENUM_ENTRY = JetStubElementTypes.ENUM_ENTRY;
|
||||||
IElementType ANONYMOUS_INITIALIZER = JetStubElementTypes.ANONYMOUS_INITIALIZER;
|
IElementType ANONYMOUS_INITIALIZER = JetStubElementTypes.ANONYMOUS_INITIALIZER;
|
||||||
IElementType SECONDARY_CONSTRUCTOR = JetStubElementTypes.SECONDARY_CONSTRUCTOR;
|
IElementType SECONDARY_CONSTRUCTOR = JetStubElementTypes.SECONDARY_CONSTRUCTOR;
|
||||||
|
IElementType PRIMARY_CONSTRUCTOR = JetStubElementTypes.PRIMARY_CONSTRUCTOR;
|
||||||
|
|
||||||
IElementType TYPE_PARAMETER_LIST = JetStubElementTypes.TYPE_PARAMETER_LIST;
|
IElementType TYPE_PARAMETER_LIST = JetStubElementTypes.TYPE_PARAMETER_LIST;
|
||||||
IElementType TYPE_PARAMETER = JetStubElementTypes.TYPE_PARAMETER;
|
IElementType TYPE_PARAMETER = JetStubElementTypes.TYPE_PARAMETER;
|
||||||
@@ -55,7 +56,6 @@ public interface JetNodeTypes {
|
|||||||
IElementType FILE_ANNOTATION_LIST = JetStubElementTypes.FILE_ANNOTATION_LIST;
|
IElementType FILE_ANNOTATION_LIST = JetStubElementTypes.FILE_ANNOTATION_LIST;
|
||||||
IElementType IMPORT_DIRECTIVE = JetStubElementTypes.IMPORT_DIRECTIVE;
|
IElementType IMPORT_DIRECTIVE = JetStubElementTypes.IMPORT_DIRECTIVE;
|
||||||
IElementType MODIFIER_LIST = JetStubElementTypes.MODIFIER_LIST;
|
IElementType MODIFIER_LIST = JetStubElementTypes.MODIFIER_LIST;
|
||||||
IElementType PRIMARY_CONSTRUCTOR_MODIFIER_LIST = JetStubElementTypes.PRIMARY_CONSTRUCTOR_MODIFIER_LIST;
|
|
||||||
IElementType ANNOTATION = JetStubElementTypes.ANNOTATION;
|
IElementType ANNOTATION = JetStubElementTypes.ANNOTATION;
|
||||||
IElementType ANNOTATION_ENTRY = JetStubElementTypes.ANNOTATION_ENTRY;
|
IElementType ANNOTATION_ENTRY = JetStubElementTypes.ANNOTATION_ENTRY;
|
||||||
|
|
||||||
|
|||||||
@@ -626,7 +626,8 @@ public class JetParsing extends AbstractJetParsing {
|
|||||||
|
|
||||||
OptionalMarker constructorModifiersMarker = new OptionalMarker(object);
|
OptionalMarker constructorModifiersMarker = new OptionalMarker(object);
|
||||||
PsiBuilder.Marker beforeConstructorModifiers = mark();
|
PsiBuilder.Marker beforeConstructorModifiers = mark();
|
||||||
boolean hasConstructorModifiers = parseModifierList(PRIMARY_CONSTRUCTOR_MODIFIER_LIST, REGULAR_ANNOTATIONS_ONLY_WITH_BRACKETS);
|
PsiBuilder.Marker primaryConstructorMarker = mark();
|
||||||
|
boolean hasConstructorModifiers = parseModifierList(MODIFIER_LIST, REGULAR_ANNOTATIONS_ONLY_WITH_BRACKETS);
|
||||||
|
|
||||||
// Some modifiers found, but no parentheses following: class has already ended, and we are looking at something else
|
// Some modifiers found, but no parentheses following: class has already ended, and we are looking at something else
|
||||||
if (hasConstructorModifiers && !atSet(LPAR, LBRACE, COLON)) {
|
if (hasConstructorModifiers && !atSet(LPAR, LBRACE, COLON)) {
|
||||||
@@ -640,14 +641,19 @@ public class JetParsing extends AbstractJetParsing {
|
|||||||
|
|
||||||
if (at(LPAR)) {
|
if (at(LPAR)) {
|
||||||
parseValueParameterList(false, /* typeRequired = */ true, TokenSet.create(COLON, LBRACE));
|
parseValueParameterList(false, /* typeRequired = */ true, TokenSet.create(COLON, LBRACE));
|
||||||
|
primaryConstructorMarker.done(PRIMARY_CONSTRUCTOR);
|
||||||
}
|
}
|
||||||
else if (hasConstructorModifiers) {
|
else if (hasConstructorModifiers) {
|
||||||
// A comprehensive error message for cases like:
|
// A comprehensive error message for cases like:
|
||||||
// class A private : Foo
|
// class A private : Foo
|
||||||
// or
|
// or
|
||||||
// class A private {
|
// class A private {
|
||||||
|
primaryConstructorMarker.done(PRIMARY_CONSTRUCTOR);
|
||||||
error("Expecting primary constructor parameter list");
|
error("Expecting primary constructor parameter list");
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
primaryConstructorMarker.drop();
|
||||||
|
}
|
||||||
constructorModifiersMarker.error("Constructors are not allowed for objects");
|
constructorModifiersMarker.error("Constructors are not allowed for objects");
|
||||||
|
|
||||||
if (at(COLON)) {
|
if (at(COLON)) {
|
||||||
|
|||||||
@@ -62,9 +62,15 @@ public class JetClass extends JetTypeParameterListOwnerStub<KotlinClassStub> imp
|
|||||||
return visitor.visitClass(this, data);
|
return visitor.visitClass(this, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public JetPrimaryConstructor getPrimaryConstructor() {
|
||||||
|
return getStubOrPsiChild(JetStubElementTypes.PRIMARY_CONSTRUCTOR);
|
||||||
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetParameterList getPrimaryConstructorParameterList() {
|
public JetParameterList getPrimaryConstructorParameterList() {
|
||||||
return getStubOrPsiChild(JetStubElementTypes.VALUE_PARAMETER_LIST);
|
JetPrimaryConstructor primaryConstructor = getPrimaryConstructor();
|
||||||
|
return primaryConstructor != null ? primaryConstructor.getValueParameterList() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@@ -89,22 +95,8 @@ public class JetClass extends JetTypeParameterListOwnerStub<KotlinClassStub> imp
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetModifierList getPrimaryConstructorModifierList() {
|
public JetModifierList getPrimaryConstructorModifierList() {
|
||||||
return getStubOrPsiChild(JetStubElementTypes.PRIMARY_CONSTRUCTOR_MODIFIER_LIST);
|
JetPrimaryConstructor primaryConstructor = getPrimaryConstructor();
|
||||||
}
|
return primaryConstructor != null ? primaryConstructor.getModifierList() : null;
|
||||||
|
|
||||||
public void addPrimaryConstructorModifier(@NotNull JetModifierKeywordToken modifier) {
|
|
||||||
JetModifierList modifierList = getPrimaryConstructorModifierList();
|
|
||||||
if (modifierList != null) {
|
|
||||||
AddRemoveModifierPackage.addModifier(modifierList, modifier, JetTokens.PUBLIC_KEYWORD);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (modifier == JetTokens.PUBLIC_KEYWORD) return;
|
|
||||||
|
|
||||||
JetParameterList parameterList = getPrimaryConstructorParameterList();
|
|
||||||
assert parameterList != null;
|
|
||||||
JetModifierList newModifierList = new JetPsiFactory(getProject()).createModifierList(modifier);
|
|
||||||
addBefore(newModifierList, parameterList);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.psi;
|
||||||
|
|
||||||
|
import com.intellij.lang.ASTNode;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
import org.jetbrains.kotlin.lexer.JetModifierKeywordToken;
|
||||||
|
import org.jetbrains.kotlin.lexer.JetTokens;
|
||||||
|
import org.jetbrains.kotlin.psi.addRemoveModifier.AddRemoveModifierPackage;
|
||||||
|
import org.jetbrains.kotlin.psi.stubs.KotlinPlaceHolderStub;
|
||||||
|
import org.jetbrains.kotlin.psi.stubs.elements.JetStubElementTypes;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class JetPrimaryConstructor extends JetDeclarationStub<KotlinPlaceHolderStub<JetPrimaryConstructor>> {
|
||||||
|
public JetPrimaryConstructor(@NotNull ASTNode node) {
|
||||||
|
super(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JetPrimaryConstructor(@NotNull KotlinPlaceHolderStub<JetPrimaryConstructor> stub) {
|
||||||
|
super(stub, JetStubElementTypes.PRIMARY_CONSTRUCTOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <R, D> R accept(@NotNull JetVisitor<R, D> visitor, D data) {
|
||||||
|
return visitor.visitPrimaryConstructor(this, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public JetParameterList getValueParameterList() {
|
||||||
|
return getStubOrPsiChild(JetStubElementTypes.VALUE_PARAMETER_LIST);
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public List<JetParameter> getValueParameters() {
|
||||||
|
JetParameterList list = getValueParameterList();
|
||||||
|
return list != null ? list.getParameters() : Collections.<JetParameter>emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addModifier(@NotNull JetModifierKeywordToken modifier) {
|
||||||
|
JetModifierList modifierList = getModifierList();
|
||||||
|
if (modifierList != null) {
|
||||||
|
AddRemoveModifierPackage.addModifier(modifierList, modifier, JetTokens.PUBLIC_KEYWORD);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (modifier == JetTokens.PUBLIC_KEYWORD) return;
|
||||||
|
|
||||||
|
JetParameterList parameterList = getValueParameterList();
|
||||||
|
assert parameterList != null;
|
||||||
|
JetPsiFactory psiFactory = new JetPsiFactory(getProject());
|
||||||
|
JetModifierList newModifierList = psiFactory.createModifierList(modifier);
|
||||||
|
addBefore(newModifierList, parameterList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public JetClass getContainingClassOrNull() {
|
||||||
|
JetClassOrObject classOrObject = (JetClassOrObject) getParent();
|
||||||
|
return classOrObject instanceof JetClass ? (JetClass) classOrObject : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public JetClass getContainingClass() {
|
||||||
|
JetClass classOrNull = getContainingClassOrNull();
|
||||||
|
assert classOrNull != null : "This method should be called when parent is JetClass";
|
||||||
|
return classOrNull;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2015 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.psi;
|
|
||||||
|
|
||||||
import com.intellij.lang.ASTNode;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
import org.jetbrains.kotlin.psi.stubs.KotlinModifierListStub;
|
|
||||||
import org.jetbrains.kotlin.psi.stubs.elements.JetStubElementTypes;
|
|
||||||
|
|
||||||
public class JetPrimaryConstructorModifierList extends JetModifierList {
|
|
||||||
public JetPrimaryConstructorModifierList(@NotNull ASTNode node) {
|
|
||||||
super(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JetPrimaryConstructorModifierList(@NotNull KotlinModifierListStub stub) {
|
|
||||||
super(stub, JetStubElementTypes.PRIMARY_CONSTRUCTOR_MODIFIER_LIST);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -37,6 +37,10 @@ public class JetVisitor<R, D> extends PsiElementVisitor {
|
|||||||
return visitJetElement(constructor, data);
|
return visitJetElement(constructor, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public R visitPrimaryConstructor(@NotNull JetPrimaryConstructor constructor, D data) {
|
||||||
|
return visitJetElement(constructor, data);
|
||||||
|
}
|
||||||
|
|
||||||
public R visitNamedFunction(@NotNull JetNamedFunction function, D data) {
|
public R visitNamedFunction(@NotNull JetNamedFunction function, D data) {
|
||||||
return visitNamedDeclaration(function, data);
|
return visitNamedDeclaration(function, data);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ public class JetVisitorVoid extends JetVisitor<Void, Void> {
|
|||||||
super.visitSecondaryConstructor(constructor, null);
|
super.visitSecondaryConstructor(constructor, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void visitPrimaryConstructor(@NotNull JetPrimaryConstructor constructor) {
|
||||||
|
super.visitPrimaryConstructor(constructor, null);
|
||||||
|
}
|
||||||
|
|
||||||
public void visitNamedFunction(@NotNull JetNamedFunction function) {
|
public void visitNamedFunction(@NotNull JetNamedFunction function) {
|
||||||
super.visitNamedFunction(function, null);
|
super.visitNamedFunction(function, null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ public class JetVisitorVoidWithParameter<P> extends JetVisitor<Void, P> {
|
|||||||
super.visitSecondaryConstructor(constructor, data);
|
super.visitSecondaryConstructor(constructor, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void visitPrimaryConstructorVoid(@NotNull JetPrimaryConstructor constructor, P data) {
|
||||||
|
super.visitPrimaryConstructor(constructor, data);
|
||||||
|
}
|
||||||
|
|
||||||
public void visitNamedFunctionVoid(@NotNull JetNamedFunction function, P data) {
|
public void visitNamedFunctionVoid(@NotNull JetNamedFunction function, P data) {
|
||||||
super.visitNamedFunction(function, data);
|
super.visitNamedFunction(function, data);
|
||||||
}
|
}
|
||||||
@@ -441,6 +445,12 @@ public class JetVisitorVoidWithParameter<P> extends JetVisitor<Void, P> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Void visitPrimaryConstructor(@NotNull JetPrimaryConstructor constructor, P data) {
|
||||||
|
visitPrimaryConstructorVoid(constructor, data);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final Void visitNamedFunction(@NotNull JetNamedFunction function, P data) {
|
public final Void visitNamedFunction(@NotNull JetNamedFunction function, P data) {
|
||||||
visitNamedFunctionVoid(function, data);
|
visitNamedFunctionVoid(function, data);
|
||||||
|
|||||||
+2
-3
@@ -35,6 +35,8 @@ public interface JetStubElementTypes {
|
|||||||
new JetPlaceHolderStubElementType<JetClassInitializer>("ANONYMOUS_INITIALIZER", JetClassInitializer.class);
|
new JetPlaceHolderStubElementType<JetClassInitializer>("ANONYMOUS_INITIALIZER", JetClassInitializer.class);
|
||||||
JetPlaceHolderStubElementType<JetSecondaryConstructor> SECONDARY_CONSTRUCTOR =
|
JetPlaceHolderStubElementType<JetSecondaryConstructor> SECONDARY_CONSTRUCTOR =
|
||||||
new JetPlaceHolderStubElementType<JetSecondaryConstructor>("SECONDARY_CONSTRUCTOR", JetSecondaryConstructor.class);
|
new JetPlaceHolderStubElementType<JetSecondaryConstructor>("SECONDARY_CONSTRUCTOR", JetSecondaryConstructor.class);
|
||||||
|
JetPlaceHolderStubElementType<JetPrimaryConstructor> PRIMARY_CONSTRUCTOR =
|
||||||
|
new JetPlaceHolderStubElementType<JetPrimaryConstructor>("PRIMARY_CONSTRUCTOR", JetPrimaryConstructor.class);
|
||||||
|
|
||||||
JetParameterElementType VALUE_PARAMETER = new JetParameterElementType("VALUE_PARAMETER");
|
JetParameterElementType VALUE_PARAMETER = new JetParameterElementType("VALUE_PARAMETER");
|
||||||
JetPlaceHolderStubElementType<JetParameterList> VALUE_PARAMETER_LIST =
|
JetPlaceHolderStubElementType<JetParameterList> VALUE_PARAMETER_LIST =
|
||||||
@@ -65,9 +67,6 @@ public interface JetStubElementTypes {
|
|||||||
JetModifierListElementType<JetDeclarationModifierList> MODIFIER_LIST =
|
JetModifierListElementType<JetDeclarationModifierList> MODIFIER_LIST =
|
||||||
new JetModifierListElementType<JetDeclarationModifierList>("MODIFIER_LIST", JetDeclarationModifierList.class);
|
new JetModifierListElementType<JetDeclarationModifierList>("MODIFIER_LIST", JetDeclarationModifierList.class);
|
||||||
|
|
||||||
JetModifierListElementType<JetPrimaryConstructorModifierList> PRIMARY_CONSTRUCTOR_MODIFIER_LIST =
|
|
||||||
new JetModifierListElementType<JetPrimaryConstructorModifierList>("PRIMARY_CONSTRUCTOR_MODIFIER_LIST", JetPrimaryConstructorModifierList.class);
|
|
||||||
|
|
||||||
JetPlaceHolderStubElementType<JetTypeConstraintList> TYPE_CONSTRAINT_LIST =
|
JetPlaceHolderStubElementType<JetTypeConstraintList> TYPE_CONSTRAINT_LIST =
|
||||||
new JetPlaceHolderStubElementType<JetTypeConstraintList>("TYPE_CONSTRAINT_LIST", JetTypeConstraintList.class);
|
new JetPlaceHolderStubElementType<JetTypeConstraintList>("TYPE_CONSTRAINT_LIST", JetTypeConstraintList.class);
|
||||||
|
|
||||||
|
|||||||
@@ -17,23 +17,24 @@ JetFile: BabySteps.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('doo')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('doo')
|
||||||
PsiElement(EQ)('=')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(EQ)('=')
|
||||||
INTEGER_CONSTANT
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(INTEGER_LITERAL)('0')
|
INTEGER_CONSTANT
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(INTEGER_LITERAL)('0')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -17,23 +17,24 @@ JetFile: BabySteps_ERR.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('doo')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('doo')
|
||||||
PsiElement(EQ)('=')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(EQ)('=')
|
||||||
INTEGER_CONSTANT
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(INTEGER_LITERAL)('0')
|
INTEGER_CONSTANT
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(INTEGER_LITERAL)('0')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -18,9 +18,10 @@ JetFile: Constructors.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -39,12 +40,13 @@ JetFile: Constructors.kt
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -67,9 +69,10 @@ JetFile: Constructors.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -93,12 +96,13 @@ JetFile: Constructors.kt
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -16,31 +16,32 @@ JetFile: DocCommentsBinding.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
|
||||||
KDoc
|
|
||||||
PsiElement(KDOC_START)('/**')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
KDOC_SECTION
|
|
||||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
|
||||||
PsiElement(KDOC_TEXT)(' Doc comment for val-parameter')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
PsiElement(KDOC_END)('*/')
|
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
PsiComment(BLOCK_COMMENT)('/*var*/')
|
VALUE_PARAMETER
|
||||||
PsiElement(val)('val')
|
KDoc
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(KDOC_START)('/**')
|
||||||
PsiElement(IDENTIFIER)('p')
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(COLON)(':')
|
KDOC_SECTION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||||
TYPE_REFERENCE
|
PsiElement(KDOC_TEXT)(' Doc comment for val-parameter')
|
||||||
USER_TYPE
|
PsiWhiteSpace('\n ')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(KDOC_END)('*/')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace('\n ')
|
||||||
PsiWhiteSpace('\n')
|
PsiComment(BLOCK_COMMENT)('/*var*/')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('p')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -18,16 +18,17 @@ JetFile: DynamicSoftKeyword.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('dynamic')
|
PsiElement(IDENTIFIER)('dynamic')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('dynamic')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('dynamic')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
DYNAMIC_TYPE
|
TYPE_REFERENCE
|
||||||
PsiElement(dynamic)('dynamic')
|
DYNAMIC_TYPE
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(dynamic)('dynamic')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -8,20 +8,21 @@ JetFile: Enums.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Color')
|
PsiElement(IDENTIFIER)('Color')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(val)('val')
|
||||||
PsiElement(IDENTIFIER)('rgb')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('rgb')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('Int')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -270,14 +270,15 @@ JetFile: ParameterType.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('Int')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
@@ -200,24 +200,26 @@ JetFile: ParameterType_ERR.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiErrorElement:Parameters must have type annotation
|
PsiElement(IDENTIFIER)('a')
|
||||||
<empty list>
|
PsiErrorElement:Parameters must have type annotation
|
||||||
PsiElement(RPAR)(')')
|
<empty list>
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
CLASS
|
CLASS
|
||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
TYPE_REFERENCE
|
PsiElement(COLON)(':')
|
||||||
PsiErrorElement:Type expected
|
TYPE_REFERENCE
|
||||||
<empty list>
|
PsiErrorElement:Type expected
|
||||||
PsiElement(RPAR)(')')
|
<empty list>
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
@@ -17,8 +17,9 @@ JetFile: PrimaryConstructorModifiers_ERR.kt
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('AB')
|
PsiElement(IDENTIFIER)('AB')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
|
PsiElement(private)('private')
|
||||||
PsiErrorElement:Expecting primary constructor parameter list
|
PsiErrorElement:Expecting primary constructor parameter list
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -69,12 +70,13 @@ JetFile: PrimaryConstructorModifiers_ERR.kt
|
|||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ JetFile: PropertiesFollowedByInitializers.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -264,9 +265,10 @@ JetFile: PropertiesFollowedByInitializers.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('PublicVar')
|
PsiElement(IDENTIFIER)('PublicVar')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -291,9 +293,10 @@ JetFile: PropertiesFollowedByInitializers.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('PublicVar')
|
PsiElement(IDENTIFIER)('PublicVar')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -330,9 +333,10 @@ JetFile: PropertiesFollowedByInitializers.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('PublicVar')
|
PsiElement(IDENTIFIER)('PublicVar')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -356,9 +360,10 @@ JetFile: PropertiesFollowedByInitializers.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('PublicVar')
|
PsiElement(IDENTIFIER)('PublicVar')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -383,9 +388,10 @@ JetFile: PropertiesFollowedByInitializers.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('PublicVar')
|
PsiElement(IDENTIFIER)('PublicVar')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -133,18 +133,19 @@ JetFile: SoftKeywords.kt
|
|||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('B')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('B')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -1004,318 +1005,319 @@ JetFile: SoftKeywords.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('F')
|
PsiElement(IDENTIFIER)('F')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(val)('val')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('abstract')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('open')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('enum')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('open')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('annotation')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('override')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('open')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('abstract')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('private')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('protected')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('public')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('internal')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('lazy')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('wraps')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('where')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('by')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('get')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('set')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('public')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('private')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('protected')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('internal')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
MODIFIER_LIST
|
|
||||||
PsiElement(public)('public')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(protected)('protected')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(private)('private')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(internal)('internal')
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('abstract')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(abstract)('abstract')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace('\n ')
|
USER_TYPE
|
||||||
PsiElement(open)('open')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiElement(enum)('enum')
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(open)('open')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(IDENTIFIER)('open')
|
||||||
PsiElement(annotation)('annotation')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(COLON)(':')
|
||||||
PsiElement(override)('override')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace('\n ')
|
TYPE_REFERENCE
|
||||||
PsiElement(open)('open')
|
USER_TYPE
|
||||||
PsiWhiteSpace('\n ')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(abstract)('abstract')
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(COMMA)(',')
|
||||||
PsiElement(private)('private')
|
PsiWhiteSpace('\n ')
|
||||||
PsiWhiteSpace('\n ')
|
VALUE_PARAMETER
|
||||||
PsiElement(protected)('protected')
|
PsiElement(IDENTIFIER)('enum')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(public)('public')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(internal)('internal')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('open')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace('\n ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('open')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RPAR)(')')
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('annotation')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('override')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('open')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('abstract')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('protected')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('public')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('internal')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('lazy')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('wraps')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('import')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('where')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('by')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('get')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('set')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('public')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('protected')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('internal')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('t')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
MODIFIER_LIST
|
||||||
|
PsiElement(public)('public')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(protected)('protected')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(internal)('internal')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(abstract)('abstract')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(open)('open')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(enum)('enum')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(open)('open')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(annotation)('annotation')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(override)('override')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(open)('open')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(abstract)('abstract')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(protected)('protected')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(public)('public')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(internal)('internal')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('open')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -24,35 +24,36 @@ JetFile: ThisType.kt
|
|||||||
PsiElement(This)('This')
|
PsiElement(This)('This')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
SELF_TYPE
|
||||||
|
PsiElement(This)('This')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('b')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
SELF_TYPE
|
PsiElement(COLON)(':')
|
||||||
PsiElement(This)('This')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiWhiteSpace(' ')
|
TYPE_ARGUMENT_LIST
|
||||||
PsiElement(COLON)(':')
|
PsiElement(LT)('<')
|
||||||
PsiWhiteSpace(' ')
|
TYPE_PROJECTION
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
SELF_TYPE
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(This)('This')
|
||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(GT)('>')
|
||||||
TYPE_ARGUMENT_LIST
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(LT)('<')
|
|
||||||
TYPE_PROJECTION
|
|
||||||
TYPE_REFERENCE
|
|
||||||
SELF_TYPE
|
|
||||||
PsiElement(This)('This')
|
|
||||||
PsiElement(GT)('>')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -5,46 +5,48 @@ JetFile: TraitConstructor.kt
|
|||||||
PsiElement(trait)('trait')
|
PsiElement(trait)('trait')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('TestTrait')
|
PsiElement(IDENTIFIER)('TestTrait')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(var)('var')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('String')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('c')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(var)('var')
|
PsiElement(IDENTIFIER)('Double')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(IDENTIFIER)('b')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('c')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Double')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
CLASS
|
CLASS
|
||||||
PsiElement(trait)('trait')
|
PsiElement(trait)('trait')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('TestTrait')
|
PsiElement(IDENTIFIER)('TestTrait')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
@@ -5,38 +5,39 @@ JetFile: TypeAnnotations.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('F')
|
PsiElement(IDENTIFIER)('F')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
ANNOTATION
|
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
ANNOTATION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('b')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
ANNOTATION
|
||||||
PsiElement(IDENTIFIER)('B')
|
PsiElement(LBRACKET)('[')
|
||||||
PsiElement(RPAR)(')')
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('B')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
TYPEDEF
|
TYPEDEF
|
||||||
PsiElement(typealias)('typealias')
|
PsiElement(typealias)('typealias')
|
||||||
|
|||||||
@@ -38,35 +38,36 @@ JetFile: BinaryTree.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('TreeNode')
|
PsiElement(IDENTIFIER)('TreeNode')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(var)('var')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(var)('var')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('value')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('T')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('value')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(var)('var')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('parent')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
PsiElement(COLON)(':')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('T')
|
TYPE_REFERENCE
|
||||||
PsiElement(COMMA)(',')
|
USER_TYPE
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
VALUE_PARAMETER
|
PsiElement(IDENTIFIER)('TreeNode')
|
||||||
PsiElement(var)('var')
|
PsiWhiteSpace('\n ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(IDENTIFIER)('parent')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('TreeNode')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -8,46 +8,47 @@ JetFile: Color.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Color')
|
PsiElement(IDENTIFIER)('Color')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('r')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('r')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('g')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(val)('val')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('sb')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiElement(COLON)(':')
|
||||||
PsiElement(COMMA)(',')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
TYPE_REFERENCE
|
||||||
VALUE_PARAMETER
|
USER_TYPE
|
||||||
PsiElement(val)('val')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiElement(IDENTIFIER)('g')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(val)('val')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('sb')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -10,20 +10,21 @@ JetFile: Graph.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('V')
|
PsiElement(IDENTIFIER)('V')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(val)('val')
|
||||||
PsiElement(IDENTIFIER)('data')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('data')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('V')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('V')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
CLASS
|
CLASS
|
||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
@@ -38,46 +39,47 @@ JetFile: Graph.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('E')
|
PsiElement(IDENTIFIER)('E')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('from')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('V')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('from')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('data')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('E')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(val)('val')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('to')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('V')
|
PsiElement(COLON)(':')
|
||||||
PsiElement(COMMA)(',')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
TYPE_REFERENCE
|
||||||
VALUE_PARAMETER
|
USER_TYPE
|
||||||
PsiElement(val)('val')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('V')
|
||||||
PsiElement(IDENTIFIER)('data')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('E')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(val)('val')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('to')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('V')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
CLASS
|
CLASS
|
||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
|
|||||||
@@ -43,41 +43,42 @@ JetFile: Queue.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('data')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('T')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('data')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(var)('var')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('next')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
PsiElement(COLON)(':')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('T')
|
TYPE_REFERENCE
|
||||||
PsiElement(COMMA)(',')
|
USER_TYPE
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
VALUE_PARAMETER
|
PsiElement(IDENTIFIER)('Item')
|
||||||
PsiElement(var)('var')
|
TYPE_ARGUMENT_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(LT)('<')
|
||||||
PsiElement(IDENTIFIER)('next')
|
TYPE_PROJECTION
|
||||||
PsiWhiteSpace(' ')
|
TYPE_REFERENCE
|
||||||
PsiElement(COLON)(':')
|
USER_TYPE
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
TYPE_REFERENCE
|
PsiElement(IDENTIFIER)('T')
|
||||||
USER_TYPE
|
PsiElement(GT)('>')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(IDENTIFIER)('Item')
|
|
||||||
TYPE_ARGUMENT_LIST
|
|
||||||
PsiElement(LT)('<')
|
|
||||||
TYPE_PROJECTION
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('T')
|
|
||||||
PsiElement(GT)('>')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
PROPERTY
|
PROPERTY
|
||||||
MODIFIER_LIST
|
MODIFIER_LIST
|
||||||
|
|||||||
@@ -5,29 +5,30 @@ JetFile: UpdateOperation.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Pair')
|
PsiElement(IDENTIFIER)('Pair')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('x')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('x')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('y')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
PsiElement(COLON)(':')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
TYPE_REFERENCE
|
||||||
PsiElement(COMMA)(',')
|
USER_TYPE
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
VALUE_PARAMETER
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiElement(IDENTIFIER)('y')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -298,20 +298,21 @@ JetFile: HashMap.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('HashableWrapper')
|
PsiElement(IDENTIFIER)('HashableWrapper')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(val)('val')
|
||||||
PsiElement(IDENTIFIER)('obj')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('obj')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('Any')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('Any')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -881,26 +882,27 @@ JetFile: HashMap.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('V')
|
PsiElement(IDENTIFIER)('V')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('hashingStrategy')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('hashingStrategy')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('IHashingStrategy')
|
REFERENCE_EXPRESSION
|
||||||
TYPE_ARGUMENT_LIST
|
PsiElement(IDENTIFIER)('IHashingStrategy')
|
||||||
PsiElement(LT)('<')
|
TYPE_ARGUMENT_LIST
|
||||||
TYPE_PROJECTION
|
PsiElement(LT)('<')
|
||||||
TYPE_REFERENCE
|
TYPE_PROJECTION
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('K')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(GT)('>')
|
PsiElement(IDENTIFIER)('K')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(GT)('>')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -38,20 +38,21 @@ JetFile: LinkedList.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Item')
|
PsiElement(IDENTIFIER)('Item')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(var)('var')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(var)('var')
|
||||||
PsiElement(IDENTIFIER)('value')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('value')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('Item')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('Item')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -74,26 +74,27 @@ JetFile: IOSamples.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('JavaCloseableWrapper')
|
PsiElement(IDENTIFIER)('JavaCloseableWrapper')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('closeable')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('closeable')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('java')
|
||||||
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('java')
|
PsiElement(IDENTIFIER)('io')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('io')
|
PsiElement(IDENTIFIER)('Closeable')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(RPAR)(')')
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Closeable')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -10,26 +10,27 @@ JetFile: PriorityQueueAsPushPop.kt
|
|||||||
TYPE_PARAMETER
|
TYPE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('wrapped')
|
VALUE_PARAMETER
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('wrapped')
|
||||||
PsiElement(COLON)(':')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('IPriorityQueue')
|
REFERENCE_EXPRESSION
|
||||||
TYPE_ARGUMENT_LIST
|
PsiElement(IDENTIFIER)('IPriorityQueue')
|
||||||
PsiElement(LT)('<')
|
TYPE_ARGUMENT_LIST
|
||||||
TYPE_PROJECTION
|
PsiElement(LT)('<')
|
||||||
TYPE_REFERENCE
|
TYPE_PROJECTION
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('T')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(GT)('>')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(GT)('>')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -40,9 +40,10 @@ JetFile: functionTypes.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('XXX')
|
PsiElement(IDENTIFIER)('XXX')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -694,9 +695,10 @@ JetFile: functionTypes.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('YYY')
|
PsiElement(IDENTIFIER)('YYY')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -5,49 +5,50 @@ JetFile: MissingCommaInConstructorValueParameterList.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Test')
|
PsiElement(IDENTIFIER)('Test')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
MODIFIER_LIST
|
VALUE_PARAMETER
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiErrorElement:Expecting comma or ')'
|
||||||
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiErrorElement:Expecting comma or ')'
|
||||||
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
PsiElement(val)('val')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiElement(IDENTIFIER)('c')
|
||||||
PsiErrorElement:Expecting comma or ')'
|
PsiElement(COLON)(':')
|
||||||
<empty list>
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
TYPE_REFERENCE
|
||||||
VALUE_PARAMETER
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('b')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(RPAR)(')')
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiErrorElement:Expecting comma or ')'
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
MODIFIER_LIST
|
|
||||||
PsiElement(private)('private')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(val)('val')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('c')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -5,45 +5,46 @@ JetFile: MissingCommaInValueParameterListWithValOrVar.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Test')
|
PsiElement(IDENTIFIER)('Test')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiErrorElement:Expecting comma or ')'
|
||||||
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(var)('var')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiErrorElement:Expecting comma or ')'
|
||||||
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(val)('val')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiElement(IDENTIFIER)('c')
|
||||||
PsiErrorElement:Expecting comma or ')'
|
PsiElement(COLON)(':')
|
||||||
<empty list>
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
TYPE_REFERENCE
|
||||||
VALUE_PARAMETER
|
USER_TYPE
|
||||||
PsiElement(var)('var')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiErrorElement:Expecting comma or ')'
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(val)('val')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('c')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -5,35 +5,36 @@ JetFile: ValueParameterNoTypeRecovery.kt
|
|||||||
PsiElement(class)('class')
|
PsiElement(class)('class')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('Test')
|
PsiElement(IDENTIFIER)('Test')
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(val)('val')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiErrorElement:Parameters must have type annotation
|
||||||
|
<empty list>
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(EQ)('=')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
INTEGER_CONSTANT
|
||||||
|
PsiElement(INTEGER_LITERAL)('12')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiErrorElement:Parameters must have type annotation
|
PsiElement(val)('val')
|
||||||
<empty list>
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(EQ)('=')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
INTEGER_CONSTANT
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(INTEGER_LITERAL)('12')
|
TYPE_REFERENCE
|
||||||
PsiElement(COMMA)(',')
|
USER_TYPE
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
VALUE_PARAMETER
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiElement(val)('val')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(EQ)('=')
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
INTEGER_CONSTANT
|
||||||
PsiElement(COLON)(':')
|
PsiElement(INTEGER_LITERAL)('13')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(RPAR)(')')
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(EQ)('=')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
INTEGER_CONSTANT
|
|
||||||
PsiElement(INTEGER_LITERAL)('13')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
@@ -8,12 +8,13 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
@@ -22,12 +23,13 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -40,12 +42,13 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -68,32 +71,33 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
ANNOTATION
|
MODIFIER_LIST
|
||||||
PsiElement(LBRACKET)('[')
|
ANNOTATION
|
||||||
ANNOTATION_ENTRY
|
PsiElement(LBRACKET)('[')
|
||||||
CONSTRUCTOR_CALLEE
|
ANNOTATION_ENTRY
|
||||||
TYPE_REFERENCE
|
CONSTRUCTOR_CALLEE
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('foo')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
VALUE_ARGUMENT_LIST
|
||||||
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(private)('private')
|
VALUE_PARAMETER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(LPAR)('(')
|
||||||
ANNOTATION
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
VALUE_ARGUMENT_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
@@ -7,9 +7,10 @@ JetFile: EmptyParentheses.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
@@ -17,9 +18,10 @@ JetFile: EmptyParentheses.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -31,9 +33,10 @@ JetFile: EmptyParentheses.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -18,30 +18,31 @@ JetFile: Everything.kt
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('x')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(IDENTIFIER)('y')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(COLON)(':')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('x')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('y')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RPAR)(')')
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -7,27 +7,28 @@ JetFile: ParametersInParentheses.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
@@ -35,27 +36,28 @@ JetFile: ParametersInParentheses.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -67,27 +69,28 @@ JetFile: ParametersInParentheses.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
+20
-17
@@ -17,9 +17,10 @@ JetFile: TypeParametersAndParentheses.kt
|
|||||||
PsiElement(IDENTIFIER)('R')
|
PsiElement(IDENTIFIER)('R')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
@@ -37,17 +38,18 @@ JetFile: TypeParametersAndParentheses.kt
|
|||||||
PsiElement(IDENTIFIER)('R')
|
PsiElement(IDENTIFIER)('R')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('x')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('Int')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -69,9 +71,10 @@ JetFile: TypeParametersAndParentheses.kt
|
|||||||
PsiElement(IDENTIFIER)('R')
|
PsiElement(IDENTIFIER)('R')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -60,9 +60,10 @@ JetFile: Where.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Where clause is not allowed for objects
|
PsiErrorElement:Where clause is not allowed for objects
|
||||||
PsiErrorElement:Type constraints are not allowed when no type parameters declared
|
PsiErrorElement:Type constraints are not allowed when no type parameters declared
|
||||||
@@ -86,9 +87,10 @@ JetFile: Where.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -121,9 +123,10 @@ JetFile: Where.kt
|
|||||||
OBJECT_DECLARATION_NAME
|
OBJECT_DECLARATION_NAME
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -16,9 +16,10 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('private')
|
PsiElement(IDENTIFIER)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -39,9 +40,10 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('private')
|
PsiElement(IDENTIFIER)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -69,35 +71,36 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
ANNOTATION
|
MODIFIER_LIST
|
||||||
PsiElement(LBRACKET)('[')
|
ANNOTATION
|
||||||
ANNOTATION_ENTRY
|
PsiElement(LBRACKET)('[')
|
||||||
CONSTRUCTOR_CALLEE
|
ANNOTATION_ENTRY
|
||||||
TYPE_REFERENCE
|
CONSTRUCTOR_CALLEE
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('foo')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
VALUE_ARGUMENT_LIST
|
||||||
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(private)('private')
|
VALUE_PARAMETER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(LPAR)('(')
|
||||||
ANNOTATION
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
VALUE_ARGUMENT_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -118,9 +121,10 @@ JetFile: ConstructorModifiers.kt
|
|||||||
PsiElement(IDENTIFIER)('private')
|
PsiElement(IDENTIFIER)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
<empty list>
|
<empty list>
|
||||||
+50
-46
@@ -16,12 +16,13 @@ JetFile: ConstructorModifiersAndName.kt
|
|||||||
PsiElement(IDENTIFIER)('Name')
|
PsiElement(IDENTIFIER)('Name')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -42,12 +43,13 @@ JetFile: ConstructorModifiersAndName.kt
|
|||||||
PsiElement(IDENTIFIER)('Name')
|
PsiElement(IDENTIFIER)('Name')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -78,35 +80,36 @@ JetFile: ConstructorModifiersAndName.kt
|
|||||||
PsiElement(IDENTIFIER)('Name')
|
PsiElement(IDENTIFIER)('Name')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
ANNOTATION
|
MODIFIER_LIST
|
||||||
PsiElement(LBRACKET)('[')
|
ANNOTATION
|
||||||
ANNOTATION_ENTRY
|
PsiElement(LBRACKET)('[')
|
||||||
CONSTRUCTOR_CALLEE
|
ANNOTATION_ENTRY
|
||||||
TYPE_REFERENCE
|
CONSTRUCTOR_CALLEE
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('foo')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
VALUE_ARGUMENT_LIST
|
||||||
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(private)('private')
|
VALUE_PARAMETER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(LPAR)('(')
|
||||||
ANNOTATION
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
VALUE_ARGUMENT_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -127,12 +130,13 @@ JetFile: ConstructorModifiersAndName.kt
|
|||||||
PsiElement(IDENTIFIER)('Name')
|
PsiElement(IDENTIFIER)('Name')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
<empty list>
|
<empty list>
|
||||||
@@ -12,9 +12,10 @@ JetFile: EmptyParentheses.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -31,9 +32,10 @@ JetFile: EmptyParentheses.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -60,9 +62,10 @@ JetFile: EmptyParentheses.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
<empty list>
|
<empty list>
|
||||||
@@ -23,30 +23,31 @@ JetFile: Everything.kt
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(private)('private')
|
MODIFIER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(private)('private')
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('x')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Int')
|
|
||||||
PsiElement(COMMA)(',')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(IDENTIFIER)('y')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(COLON)(':')
|
VALUE_PARAMETER
|
||||||
|
PsiElement(IDENTIFIER)('x')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('y')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RPAR)(')')
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -27,9 +27,10 @@ JetFile: InFunction.kt
|
|||||||
PsiElement(IDENTIFIER)('private')
|
PsiElement(IDENTIFIER)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
@@ -49,9 +50,10 @@ JetFile: InFunction.kt
|
|||||||
PsiElement(IDENTIFIER)('private')
|
PsiElement(IDENTIFIER)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -77,35 +79,36 @@ JetFile: InFunction.kt
|
|||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
PRIMARY_CONSTRUCTOR_MODIFIER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
ANNOTATION
|
MODIFIER_LIST
|
||||||
PsiElement(LBRACKET)('[')
|
ANNOTATION
|
||||||
ANNOTATION_ENTRY
|
PsiElement(LBRACKET)('[')
|
||||||
CONSTRUCTOR_CALLEE
|
ANNOTATION_ENTRY
|
||||||
TYPE_REFERENCE
|
CONSTRUCTOR_CALLEE
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('foo')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(private)('private')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
VALUE_ARGUMENT_LIST
|
||||||
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(private)('private')
|
VALUE_PARAMETER_LIST
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(LPAR)('(')
|
||||||
ANNOTATION
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
VALUE_ARGUMENT_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
@@ -125,9 +128,10 @@ JetFile: InFunction.kt
|
|||||||
PsiElement(IDENTIFIER)('private')
|
PsiElement(IDENTIFIER)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
|
|||||||
@@ -12,27 +12,28 @@ JetFile: ParametersInParentheses.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -49,27 +50,28 @@ JetFile: ParametersInParentheses.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -96,27 +98,28 @@ JetFile: ParametersInParentheses.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
<empty list>
|
<empty list>
|
||||||
+20
-17
@@ -22,17 +22,18 @@ JetFile: TypeParametersAndParentheses.kt
|
|||||||
PsiElement(IDENTIFIER)('R')
|
PsiElement(IDENTIFIER)('R')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('x')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(COLON)(':')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
TYPE_REFERENCE
|
||||||
REFERENCE_EXPRESSION
|
USER_TYPE
|
||||||
PsiElement(IDENTIFIER)('Int')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
@@ -59,9 +60,10 @@ JetFile: TypeParametersAndParentheses.kt
|
|||||||
PsiElement(IDENTIFIER)('R')
|
PsiElement(IDENTIFIER)('R')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -98,9 +100,10 @@ JetFile: TypeParametersAndParentheses.kt
|
|||||||
PsiElement(IDENTIFIER)('R')
|
PsiElement(IDENTIFIER)('R')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
<empty list>
|
<empty list>
|
||||||
@@ -72,27 +72,28 @@ JetFile: TypeParameterss.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_PARAMETER
|
||||||
PsiElement(COLON)(':')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Int')
|
||||||
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
VALUE_PARAMETER
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('b')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(COLON)(':')
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COMMA)(',')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
VALUE_PARAMETER
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('String')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('String')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
CLASS_BODY
|
CLASS_BODY
|
||||||
PsiErrorElement:Expecting a class body
|
PsiErrorElement:Expecting a class body
|
||||||
<empty list>
|
<empty list>
|
||||||
@@ -86,9 +86,10 @@ JetFile: Where.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Where clause is not allowed for objects
|
PsiErrorElement:Where clause is not allowed for objects
|
||||||
PsiErrorElement:Type constraints are not allowed when no type parameters declared
|
PsiErrorElement:Type constraints are not allowed when no type parameters declared
|
||||||
@@ -121,9 +122,10 @@ JetFile: Where.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -165,9 +167,10 @@ JetFile: Where.kt
|
|||||||
OBJECT_DECLARATION
|
OBJECT_DECLARATION
|
||||||
PsiElement(object)('object')
|
PsiElement(object)('object')
|
||||||
PsiErrorElement:Constructors are not allowed for objects
|
PsiErrorElement:Constructors are not allowed for objects
|
||||||
VALUE_PARAMETER_LIST
|
PRIMARY_CONSTRUCTOR
|
||||||
PsiElement(LPAR)('(')
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user