Tests fixed
+ 'this' is resolved to the corresponding declaration
This commit is contained in:
@@ -3,6 +3,7 @@ package org.jetbrains.jet.codegen;
|
|||||||
import com.intellij.psi.PsiClass;
|
import com.intellij.psi.PsiClass;
|
||||||
import com.intellij.psi.PsiElement;
|
import com.intellij.psi.PsiElement;
|
||||||
import jet.typeinfo.TypeInfo;
|
import jet.typeinfo.TypeInfo;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.lang.descriptors.*;
|
import org.jetbrains.jet.lang.descriptors.*;
|
||||||
import org.jetbrains.jet.lang.psi.*;
|
import org.jetbrains.jet.lang.psi.*;
|
||||||
import org.jetbrains.jet.lang.resolve.BindingContext;
|
import org.jetbrains.jet.lang.resolve.BindingContext;
|
||||||
@@ -125,7 +126,7 @@ public class JetTypeMapper {
|
|||||||
return mapType(jetType, OwnerKind.INTERFACE);
|
return mapType(jetType, OwnerKind.INTERFACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Type mapType(final JetType jetType, OwnerKind kind) {
|
public Type mapType(@NotNull final JetType jetType, OwnerKind kind) {
|
||||||
if (jetType.equals(JetStandardClasses.getUnitType()) || jetType.equals(JetStandardClasses.getNothingType())) {
|
if (jetType.equals(JetStandardClasses.getUnitType()) || jetType.equals(JetStandardClasses.getNothingType())) {
|
||||||
return Type.VOID_TYPE;
|
return Type.VOID_TYPE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1520,7 +1520,10 @@ public class JetExpressionParsing extends AbstractJetParsing {
|
|||||||
private void parseThisExpression() {
|
private void parseThisExpression() {
|
||||||
assert _at(THIS_KEYWORD);
|
assert _at(THIS_KEYWORD);
|
||||||
PsiBuilder.Marker mark = mark();
|
PsiBuilder.Marker mark = mark();
|
||||||
|
|
||||||
|
PsiBuilder.Marker thisReference = mark();
|
||||||
advance(); // THIS_KEYWORD
|
advance(); // THIS_KEYWORD
|
||||||
|
thisReference.done(REFERENCE_EXPRESSION);
|
||||||
|
|
||||||
parseLabel();
|
parseLabel();
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import org.jetbrains.jet.lexer.JetTokens;
|
|||||||
* @author max
|
* @author max
|
||||||
*/
|
*/
|
||||||
public class JetSimpleNameExpression extends JetReferenceExpression {
|
public class JetSimpleNameExpression extends JetReferenceExpression {
|
||||||
public static final TokenSet REFERENCE_TOKENS = TokenSet.orSet(JetTokens.LABELS, TokenSet.create(JetTokens.IDENTIFIER, JetTokens.FIELD_IDENTIFIER));
|
public static final TokenSet REFERENCE_TOKENS = TokenSet.orSet(JetTokens.LABELS, TokenSet.create(JetTokens.IDENTIFIER, JetTokens.FIELD_IDENTIFIER, JetTokens.THIS_KEYWORD));
|
||||||
|
|
||||||
public JetSimpleNameExpression(@NotNull ASTNode node) {
|
public JetSimpleNameExpression(@NotNull ASTNode node) {
|
||||||
super(node);
|
super(node);
|
||||||
|
|||||||
@@ -24,4 +24,9 @@ public class JetThisExpression extends JetLabelQualifiedExpression {
|
|||||||
return (JetTypeReference) findChildByType(JetNodeTypes.TYPE_REFERENCE);
|
return (JetTypeReference) findChildByType(JetNodeTypes.TYPE_REFERENCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public JetReferenceExpression getThisReference() {
|
||||||
|
return (JetReferenceExpression) findChildByType(JetNodeTypes.REFERENCE_EXPRESSION);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,4 +57,8 @@ public abstract class AbstractScopeAdapter implements JetScope {
|
|||||||
return getWorkerScope().getPropertyByFieldReference(fieldName);
|
return getWorkerScope().getPropertyByFieldReference(fieldName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
return getWorkerScope().getDeclarationDescriptorForUnqualifiedThis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,4 +92,19 @@ public class ChainedScope implements JetScope {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
if (DescriptorUtils.definesItsOwnThis(getContainingDeclaration())) {
|
||||||
|
return getContainingDeclaration();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (JetScope jetScope : scopeChain) {
|
||||||
|
DeclarationDescriptor containingDeclaration = jetScope.getContainingDeclaration();
|
||||||
|
if (DescriptorUtils.definesItsOwnThis(containingDeclaration)) {
|
||||||
|
return containingDeclaration;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,6 @@ public class ClassDescriptorResolver {
|
|||||||
WritableScope innerScope = new WritableScopeImpl(scope, functionDescriptor, trace.getErrorHandler());
|
WritableScope innerScope = new WritableScopeImpl(scope, functionDescriptor, trace.getErrorHandler());
|
||||||
innerScope.addLabeledDeclaration(functionDescriptor);
|
innerScope.addLabeledDeclaration(functionDescriptor);
|
||||||
|
|
||||||
|
|
||||||
List<TypeParameterDescriptor> typeParameterDescriptors = resolveTypeParameters(functionDescriptor, innerScope, function.getTypeParameters());
|
List<TypeParameterDescriptor> typeParameterDescriptors = resolveTypeParameters(functionDescriptor, innerScope, function.getTypeParameters());
|
||||||
|
|
||||||
JetType receiverType = null;
|
JetType receiverType = null;
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
package org.jetbrains.jet.lang.resolve;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.jet.lang.descriptors.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author abreslav
|
||||||
|
*/
|
||||||
|
public class DescriptorUtils {
|
||||||
|
public static boolean definesItsOwnThis(@NotNull DeclarationDescriptor descriptor) {
|
||||||
|
return descriptor.accept(new DeclarationDescriptorVisitor<Boolean, Void>() {
|
||||||
|
@Override
|
||||||
|
public Boolean visitDeclarationDescriptor(DeclarationDescriptor descriptor, Void data) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean visitFunctionDescriptor(FunctionDescriptor descriptor, Void data) {
|
||||||
|
return descriptor.getReceiverType() != null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean visitClassDescriptor(ClassDescriptor descriptor, Void data) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean visitPropertyDescriptor(PropertyDescriptor descriptor, Void data) {
|
||||||
|
return descriptor.getReceiverType() != null;
|
||||||
|
}
|
||||||
|
}, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -46,4 +46,7 @@ public interface JetScope {
|
|||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
PropertyDescriptor getPropertyByFieldReference(@NotNull String fieldName);
|
PropertyDescriptor getPropertyByFieldReference(@NotNull String fieldName);
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis();
|
||||||
}
|
}
|
||||||
@@ -48,4 +48,9 @@ public abstract class JetScopeImpl implements JetScope {
|
|||||||
public PropertyDescriptor getPropertyByFieldReference(@NotNull String fieldName) {
|
public PropertyDescriptor getPropertyByFieldReference(@NotNull String fieldName) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package org.jetbrains.jet.lang.resolve;
|
package org.jetbrains.jet.lang.resolve;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jetbrains.jet.lang.descriptors.*;
|
import org.jetbrains.jet.lang.descriptors.*;
|
||||||
import org.jetbrains.jet.lang.types.*;
|
import org.jetbrains.jet.lang.types.*;
|
||||||
|
|
||||||
@@ -79,4 +80,10 @@ public class SubstitutingScope implements JetScope {
|
|||||||
public PropertyDescriptor getPropertyByFieldReference(@NotNull String fieldName) {
|
public PropertyDescriptor getPropertyByFieldReference(@NotNull String fieldName) {
|
||||||
throw new UnsupportedOperationException(); // TODO
|
throw new UnsupportedOperationException(); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Nullable
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
return workerScope.getDeclarationDescriptorForUnqualifiedThis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,14 @@ public class WritableScopeImpl extends WritableScopeWithImports {
|
|||||||
return ownerDeclarationDescriptor;
|
return ownerDeclarationDescriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
if (DescriptorUtils.definesItsOwnThis(ownerDeclarationDescriptor)) {
|
||||||
|
return ownerDeclarationDescriptor;
|
||||||
|
}
|
||||||
|
return super.getDeclarationDescriptorForUnqualifiedThis();
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private Map<String, List<DeclarationDescriptor>> getLabelsToDescriptors() {
|
private Map<String, List<DeclarationDescriptor>> getLabelsToDescriptors() {
|
||||||
if (labelsToDescriptors == null) {
|
if (labelsToDescriptors == null) {
|
||||||
|
|||||||
@@ -47,6 +47,11 @@ public class JavaClassMembersScope implements JetScope {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ClassifierDescriptor getClassifier(@NotNull String name) {
|
public ClassifierDescriptor getClassifier(@NotNull String name) {
|
||||||
ClassifierDescriptor classifierDescriptor = classifiers.get(name);
|
ClassifierDescriptor classifierDescriptor = classifiers.get(name);
|
||||||
|
|||||||
@@ -59,6 +59,11 @@ public class ErrorUtils {
|
|||||||
return null; // TODO : review
|
return null; // TODO : review
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeclarationDescriptor getDeclarationDescriptorForUnqualifiedThis() {
|
||||||
|
return ERROR_CLASS; // TODO : review
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final FunctionGroup ERROR_FUNCTION_GROUP = new FunctionGroup() {
|
private static final FunctionGroup ERROR_FUNCTION_GROUP = new FunctionGroup() {
|
||||||
|
|||||||
@@ -933,28 +933,34 @@ public class JetTypeInferrer {
|
|||||||
if (labelName != null) {
|
if (labelName != null) {
|
||||||
Collection<DeclarationDescriptor> declarationsByLabel = scope.getDeclarationsByLabel(labelName);
|
Collection<DeclarationDescriptor> declarationsByLabel = scope.getDeclarationsByLabel(labelName);
|
||||||
int size = declarationsByLabel.size();
|
int size = declarationsByLabel.size();
|
||||||
|
final JetSimpleNameExpression targetLabel = expression.getTargetLabel();
|
||||||
|
assert targetLabel != null;
|
||||||
if (size == 1) {
|
if (size == 1) {
|
||||||
DeclarationDescriptor declarationDescriptor = declarationsByLabel.iterator().next();
|
DeclarationDescriptor declarationDescriptor = declarationsByLabel.iterator().next();
|
||||||
if (declarationDescriptor instanceof ClassDescriptor) {
|
if (declarationDescriptor instanceof ClassDescriptor) {
|
||||||
ClassDescriptor classDescriptor = (ClassDescriptor) declarationDescriptor;
|
ClassDescriptor classDescriptor = (ClassDescriptor) declarationDescriptor;
|
||||||
thisType = classDescriptor.getDefaultType();
|
thisType = classDescriptor.getDefaultType();
|
||||||
trace.recordReferenceResolution(expression.getTargetLabel(), classDescriptor);
|
trace.recordReferenceResolution(targetLabel, classDescriptor);
|
||||||
|
trace.recordReferenceResolution(expression.getThisReference(), classDescriptor);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new UnsupportedOperationException(); // TODO
|
throw new UnsupportedOperationException(); // TODO
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (size == 0) {
|
else if (size == 0) {
|
||||||
trace.getErrorHandler().unresolvedReference(expression.getTargetLabel());
|
trace.getErrorHandler().unresolvedReference(targetLabel);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
JetSimpleNameExpression labelElement = expression.getTargetLabel();
|
trace.getErrorHandler().genericError(targetLabel.getNode(), "Ambiguous label");
|
||||||
assert labelElement != null;
|
|
||||||
trace.getErrorHandler().genericError(labelElement.getNode(), "Ambiguous label");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
thisType = scope.getThisType();
|
thisType = scope.getThisType();
|
||||||
|
|
||||||
|
DeclarationDescriptor declarationDescriptorForUnqualifiedThis = scope.getDeclarationDescriptorForUnqualifiedThis();
|
||||||
|
if (declarationDescriptorForUnqualifiedThis != null) {
|
||||||
|
trace.recordReferenceResolution(expression.getThisReference(), declarationDescriptorForUnqualifiedThis);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thisType != null) {
|
if (thisType != null) {
|
||||||
@@ -989,6 +995,9 @@ public class JetTypeInferrer {
|
|||||||
} else {
|
} else {
|
||||||
result = thisType;
|
result = thisType;
|
||||||
}
|
}
|
||||||
|
if (result != null) {
|
||||||
|
trace.recordExpressionType(expression.getThisReference(), result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1407,9 +1416,9 @@ public class JetTypeInferrer {
|
|||||||
else {
|
else {
|
||||||
result = selectorReturnType;
|
result = selectorReturnType;
|
||||||
}
|
}
|
||||||
// if (selectorExpression != null && result != null) {
|
if (selectorExpression != null && result != null) {
|
||||||
// trace.recordExpressionType(selectorExpression, result);
|
trace.recordExpressionType(selectorExpression, result);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ JetFile: AnnotatedExpressions.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
@@ -385,28 +385,33 @@ JetFile: Labels.jet
|
|||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
LABEL_QUALIFIER
|
LABEL_QUALIFIER
|
||||||
LABEL_REFERENCE
|
LABEL_REFERENCE
|
||||||
PsiElement(AT)('@')
|
PsiElement(AT)('@')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
LABEL_QUALIFIER
|
LABEL_QUALIFIER
|
||||||
LABEL_REFERENCE
|
LABEL_REFERENCE
|
||||||
PsiElement(LABEL_IDENTIFIER)('@a')
|
PsiElement(LABEL_IDENTIFIER)('@a')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
LABEL_QUALIFIER
|
LABEL_QUALIFIER
|
||||||
LABEL_REFERENCE
|
LABEL_REFERENCE
|
||||||
PsiElement(ATAT)('@@')
|
PsiElement(ATAT)('@@')
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(LT)('<')
|
PsiElement(LT)('<')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -415,7 +420,8 @@ JetFile: Labels.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
LABEL_QUALIFIER
|
LABEL_QUALIFIER
|
||||||
LABEL_REFERENCE
|
LABEL_REFERENCE
|
||||||
PsiElement(AT)('@')
|
PsiElement(AT)('@')
|
||||||
@@ -427,7 +433,8 @@ JetFile: Labels.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
LABEL_QUALIFIER
|
LABEL_QUALIFIER
|
||||||
LABEL_REFERENCE
|
LABEL_REFERENCE
|
||||||
PsiElement(LABEL_IDENTIFIER)('@a')
|
PsiElement(LABEL_IDENTIFIER)('@a')
|
||||||
@@ -439,7 +446,8 @@ JetFile: Labels.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
LABEL_QUALIFIER
|
LABEL_QUALIFIER
|
||||||
LABEL_REFERENCE
|
LABEL_REFERENCE
|
||||||
PsiElement(ATAT)('@@')
|
PsiElement(ATAT)('@@')
|
||||||
|
|||||||
@@ -768,7 +768,8 @@ JetFile: Properties.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('size')
|
PsiElement(IDENTIFIER)('size')
|
||||||
|
|||||||
@@ -261,7 +261,8 @@ JetFile: SimpleExpressions.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -277,7 +278,8 @@ JetFile: SimpleExpressions.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(LT)('<')
|
PsiElement(LT)('<')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -180,7 +180,8 @@ JetFile: BinaryTree.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('compare')
|
PsiElement(IDENTIFIER)('compare')
|
||||||
@@ -286,7 +287,8 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_ARGUMENT
|
VALUE_ARGUMENT
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_ARGUMENT
|
VALUE_ARGUMENT
|
||||||
@@ -1897,7 +1899,8 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(IDENTIFIER)('BinaryTree')
|
PsiElement(IDENTIFIER)('BinaryTree')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('version')
|
PsiElement(IDENTIFIER)('version')
|
||||||
@@ -2475,7 +2478,8 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(IDENTIFIER)('BinaryTree')
|
PsiElement(IDENTIFIER)('BinaryTree')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('version')
|
PsiElement(IDENTIFIER)('version')
|
||||||
@@ -2520,7 +2524,8 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(IDENTIFIER)('BinaryTree')
|
PsiElement(IDENTIFIER)('BinaryTree')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('version')
|
PsiElement(IDENTIFIER)('version')
|
||||||
|
|||||||
@@ -499,7 +499,8 @@ JetFile: BitArith.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(IDENTIFIER)('and')
|
PsiElement(IDENTIFIER)('and')
|
||||||
|
|||||||
@@ -363,7 +363,8 @@ JetFile: PolymorphicClassObjects.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
LOOP_RANGE
|
LOOP_RANGE
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BODY
|
BODY
|
||||||
|
|||||||
@@ -388,7 +388,8 @@ JetFile: UnionFind.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(PERC)('%')
|
PsiElement(PERC)('%')
|
||||||
|
|||||||
@@ -350,7 +350,8 @@ JetFile: ArrayList.jet
|
|||||||
PsiElement(IDENTIFIER)('ArrayList')
|
PsiElement(IDENTIFIER)('ArrayList')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ JetFile: HashMap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
BINARY_WITH_TYPE
|
BINARY_WITH_TYPE
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(as)('as')
|
PsiElement(as)('as')
|
||||||
@@ -138,7 +139,8 @@ JetFile: HashMap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
BINARY_WITH_TYPE
|
BINARY_WITH_TYPE
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(as)('as')
|
PsiElement(as)('as')
|
||||||
@@ -373,7 +375,8 @@ JetFile: HashMap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_ARGUMENT
|
VALUE_ARGUMENT
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
CLASS
|
CLASS
|
||||||
|
|||||||
@@ -202,7 +202,8 @@ JetFile: List.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(EQEQ)('==')
|
PsiElement(EQEQ)('==')
|
||||||
@@ -256,7 +257,8 @@ JetFile: List.jet
|
|||||||
PsiElement(IDENTIFIER)('List')
|
PsiElement(IDENTIFIER)('List')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
PROPERTY
|
PROPERTY
|
||||||
MODIFIER_LIST
|
MODIFIER_LIST
|
||||||
|
|||||||
@@ -138,7 +138,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('compare')
|
PsiElement(IDENTIFIER)('compare')
|
||||||
@@ -152,7 +153,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('data')
|
PsiElement(IDENTIFIER)('data')
|
||||||
@@ -254,7 +256,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('compare')
|
PsiElement(IDENTIFIER)('compare')
|
||||||
@@ -268,7 +271,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('data')
|
PsiElement(IDENTIFIER)('data')
|
||||||
@@ -297,7 +301,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('data')
|
PsiElement(IDENTIFIER)('data')
|
||||||
@@ -343,7 +348,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('comparator')
|
PsiElement(IDENTIFIER)('comparator')
|
||||||
@@ -393,7 +399,8 @@ JetFile: BinaryHeap.jet
|
|||||||
CONDITION
|
CONDITION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('isEmpty')
|
PsiElement(IDENTIFIER)('isEmpty')
|
||||||
@@ -942,7 +949,8 @@ JetFile: BinaryHeap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(MINUS)('-')
|
PsiElement(MINUS)('-')
|
||||||
@@ -979,7 +987,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
@@ -1015,7 +1024,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
@@ -1067,7 +1077,8 @@ JetFile: BinaryHeap.jet
|
|||||||
INDICES
|
INDICES
|
||||||
PsiElement(LBRACKET)('[')
|
PsiElement(LBRACKET)('[')
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
PROPERTY_ACCESSOR
|
PROPERTY_ACCESSOR
|
||||||
@@ -1117,7 +1128,8 @@ JetFile: BinaryHeap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(LT)('<')
|
PsiElement(LT)('<')
|
||||||
@@ -1137,7 +1149,8 @@ JetFile: BinaryHeap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(GTEQ)('>=')
|
PsiElement(GTEQ)('>=')
|
||||||
@@ -1209,7 +1222,8 @@ JetFile: BinaryHeap.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_ARGUMENT
|
VALUE_ARGUMENT
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_ARGUMENT
|
VALUE_ARGUMENT
|
||||||
@@ -1274,7 +1288,8 @@ JetFile: BinaryHeap.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
ARRAY_ACCESS_EXPRESSION
|
ARRAY_ACCESS_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
INDICES
|
INDICES
|
||||||
PsiElement(LBRACKET)('[')
|
PsiElement(LBRACKET)('[')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1284,7 +1299,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
ARRAY_ACCESS_EXPRESSION
|
ARRAY_ACCESS_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
INDICES
|
INDICES
|
||||||
PsiElement(LBRACKET)('[')
|
PsiElement(LBRACKET)('[')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1296,7 +1312,8 @@ JetFile: BinaryHeap.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
ARRAY_ACCESS_EXPRESSION
|
ARRAY_ACCESS_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
INDICES
|
INDICES
|
||||||
PsiElement(LBRACKET)('[')
|
PsiElement(LBRACKET)('[')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1306,7 +1323,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
ARRAY_ACCESS_EXPRESSION
|
ARRAY_ACCESS_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
INDICES
|
INDICES
|
||||||
PsiElement(LBRACKET)('[')
|
PsiElement(LBRACKET)('[')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1356,7 +1374,8 @@ JetFile: BinaryHeap.jet
|
|||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
THIS_EXPRESSION
|
THIS_EXPRESSION
|
||||||
PsiElement(this)('this')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(this)('this')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('size')
|
PsiElement(IDENTIFIER)('size')
|
||||||
|
|||||||
@@ -2,8 +2,13 @@ namespace qualified_this {
|
|||||||
~qtA~class A(val a:Int) {
|
~qtA~class A(val a:Int) {
|
||||||
|
|
||||||
~qtB~class B() {
|
~qtB~class B() {
|
||||||
val x = this`qtB`@B
|
val x = `qtB`this`qtB`@B
|
||||||
val y = this`qtA`@A
|
val y = `qtA`this`qtA`@A
|
||||||
|
val z = `qtB`this
|
||||||
|
~xx~val Int.xx = `xx`this : Int
|
||||||
|
~xx()~fun Int.xx() {
|
||||||
|
`xx()`this : Int
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ public class JetTestUtils {
|
|||||||
public Collection<JetDiagnostic> getDiagnostics() {
|
public Collection<JetDiagnostic> getDiagnostics() {
|
||||||
throw new UnsupportedOperationException(); // TODO
|
throw new UnsupportedOperationException(); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user