Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Frostman/kotlin
...
head fork: Frostman/kotlin
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 106 files changed
  • 0 commit comments
  • 3 contributors
Commits on Apr 11, 2012
@goodwinnk goodwinnk KT-1763 UnsupportedOperationException during creating ImportClassAndF…
…unFix

 #KT-1763 fixed
a59a671
@jstrachan jstrachan fixed bad property links eaae5b4
@stepancheg stepancheg some classes from runtime.jar are not meant to be loaded by JDR
* assert runtime implementations from JetStandard* are not loaded
  by JavaDescriptorResolver
* fix wrong @JetMethod in jet.Iterator
* fix jet.Iterator ns was created
* fix incorrect number of functions and tuples in JetStandardClasses
* added TODO about inconsisten Tuple class
829f73c
Showing with 378 additions and 20 deletions.
  1. +3 −3 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaDescriptorResolver.java
  2. +4 −0 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JvmStdlibNames.java
  3. +6 −1 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/PsiClassFinder.java
  4. +22 −3 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/PsiClassFinderForJvm.java
  5. +12 −3 compiler/frontend/src/org/jetbrains/jet/lang/types/expressions/ExpressionTypingUtils.java
  6. +7 −7 compiler/frontend/src/org/jetbrains/jet/lang/types/lang/JetStandardClasses.java
  7. +2 −1  compiler/tests/org/jetbrains/jet/resolve/JetResolveTest.java
  8. +1 −1  js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/Intrinsics.java
  9. +4 −0 libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/templates/ClassExtensionsTemplate.kt
  10. +3 −0  runtime/src/jet/BooleanIterable.java
  11. +3 −0  runtime/src/jet/BooleanIterator.java
  12. +3 −0  runtime/src/jet/ByteIterable.java
  13. +3 −0  runtime/src/jet/ByteIterator.java
  14. +3 −0  runtime/src/jet/ByteRange.java
  15. +3 −0  runtime/src/jet/CharIterable.java
  16. +3 −0  runtime/src/jet/CharIterator.java
  17. +3 −0  runtime/src/jet/CharRange.java
  18. +3 −0  runtime/src/jet/DoubleIterable.java
  19. +3 −0  runtime/src/jet/DoubleIterator.java
  20. +3 −0  runtime/src/jet/DoubleRange.java
  21. +3 −0  runtime/src/jet/ExtensionFunction0.java
  22. +3 −0  runtime/src/jet/ExtensionFunction1.java
  23. +3 −0  runtime/src/jet/ExtensionFunction10.java
  24. +3 −0  runtime/src/jet/ExtensionFunction11.java
  25. +3 −0  runtime/src/jet/ExtensionFunction12.java
  26. +3 −0  runtime/src/jet/ExtensionFunction13.java
  27. +3 −0  runtime/src/jet/ExtensionFunction14.java
  28. +3 −0  runtime/src/jet/ExtensionFunction15.java
  29. +3 −0  runtime/src/jet/ExtensionFunction16.java
  30. +3 −0  runtime/src/jet/ExtensionFunction17.java
  31. +3 −0  runtime/src/jet/ExtensionFunction18.java
  32. +3 −0  runtime/src/jet/ExtensionFunction19.java
  33. +3 −0  runtime/src/jet/ExtensionFunction2.java
  34. +3 −0  runtime/src/jet/ExtensionFunction20.java
  35. +3 −0  runtime/src/jet/ExtensionFunction21.java
  36. +3 −0  runtime/src/jet/ExtensionFunction22.java
  37. +3 −0  runtime/src/jet/ExtensionFunction3.java
  38. +3 −0  runtime/src/jet/ExtensionFunction4.java
  39. +3 −0  runtime/src/jet/ExtensionFunction5.java
  40. +3 −0  runtime/src/jet/ExtensionFunction6.java
  41. +3 −0  runtime/src/jet/ExtensionFunction7.java
  42. +3 −0  runtime/src/jet/ExtensionFunction8.java
  43. +3 −0  runtime/src/jet/ExtensionFunction9.java
  44. +3 −0  runtime/src/jet/FloatIterable.java
  45. +3 −0  runtime/src/jet/FloatIterator.java
  46. +3 −0  runtime/src/jet/FloatRange.java
  47. +3 −0  runtime/src/jet/Function0.java
  48. +3 −0  runtime/src/jet/Function1.java
  49. +3 −0  runtime/src/jet/Function10.java
  50. +3 −0  runtime/src/jet/Function11.java
  51. +3 −0  runtime/src/jet/Function12.java
  52. +3 −0  runtime/src/jet/Function13.java
  53. +3 −0  runtime/src/jet/Function14.java
  54. +3 −0  runtime/src/jet/Function15.java
  55. +3 −0  runtime/src/jet/Function16.java
  56. +3 −0  runtime/src/jet/Function17.java
  57. +3 −0  runtime/src/jet/Function18.java
  58. +3 −0  runtime/src/jet/Function19.java
  59. +3 −0  runtime/src/jet/Function2.java
  60. +3 −0  runtime/src/jet/Function20.java
  61. +3 −0  runtime/src/jet/Function21.java
  62. +3 −0  runtime/src/jet/Function22.java
  63. +3 −0  runtime/src/jet/Function3.java
  64. +3 −0  runtime/src/jet/Function4.java
  65. +3 −0  runtime/src/jet/Function5.java
  66. +3 −0  runtime/src/jet/Function6.java
  67. +3 −0  runtime/src/jet/Function7.java
  68. +3 −0  runtime/src/jet/Function8.java
  69. +3 −0  runtime/src/jet/Function9.java
  70. +3 −0  runtime/src/jet/IntIterable.java
  71. +3 −0  runtime/src/jet/IntIterator.java
  72. +3 −0  runtime/src/jet/IntRange.java
  73. +3 −0  runtime/src/jet/Iterable.java
  74. +2 −1  runtime/src/jet/Iterator.java
  75. +3 −0  runtime/src/jet/LongIterable.java
  76. +3 −0  runtime/src/jet/LongIterator.java
  77. +3 −0  runtime/src/jet/LongRange.java
  78. +3 −0  runtime/src/jet/Range.java
  79. +3 −0  runtime/src/jet/ShortIterable.java
  80. +3 −0  runtime/src/jet/ShortIterator.java
  81. +3 −0  runtime/src/jet/ShortRange.java
  82. +3 −0  runtime/src/jet/Tuple.java
  83. +3 −0  runtime/src/jet/Tuple0.java
  84. +3 −0  runtime/src/jet/Tuple1.java
  85. +3 −0  runtime/src/jet/Tuple10.java
  86. +3 −0  runtime/src/jet/Tuple11.java
  87. +3 −0  runtime/src/jet/Tuple12.java
  88. +3 −0  runtime/src/jet/Tuple13.java
  89. +3 −0  runtime/src/jet/Tuple14.java
  90. +3 −0  runtime/src/jet/Tuple15.java
  91. +3 −0  runtime/src/jet/Tuple16.java
  92. +3 −0  runtime/src/jet/Tuple17.java
  93. +3 −0  runtime/src/jet/Tuple18.java
  94. +3 −0  runtime/src/jet/Tuple19.java
  95. +3 −0  runtime/src/jet/Tuple2.java
  96. +3 −0  runtime/src/jet/Tuple20.java
  97. +3 −0  runtime/src/jet/Tuple21.java
  98. +3 −0  runtime/src/jet/Tuple22.java
  99. +3 −0  runtime/src/jet/Tuple3.java
  100. +3 −0  runtime/src/jet/Tuple4.java
  101. +3 −0  runtime/src/jet/Tuple5.java
  102. +3 −0  runtime/src/jet/Tuple6.java
  103. +3 −0  runtime/src/jet/Tuple7.java
  104. +3 −0  runtime/src/jet/Tuple8.java
  105. +3 −0  runtime/src/jet/Tuple9.java
  106. +30 −0 runtime/src/org/jetbrains/jet/rt/annotation/AssertInvisibleInResolver.java
View
6 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaDescriptorResolver.java
@@ -360,7 +360,7 @@ else if (searchRule == DescriptorSearchRule.INCLUDE_KOTLIN) {
// Not let's take a descriptor of a Java class
ResolverBinaryClassData classData = classDescriptorCache.get(qualifiedName);
if (classData == null) {
- PsiClass psiClass = psiClassFinder.findPsiClass(qualifiedName);
+ PsiClass psiClass = psiClassFinder.findPsiClass(qualifiedName, PsiClassFinder.RuntimeClassesHandleMode.THROW);
if (psiClass == null) {
return null;
}
@@ -944,7 +944,7 @@ private ResolverNamespaceData createNamespaceResolverScopeData(@NotNull FqName f
break lookingForPsi;
}
- psiClass = psiClassFinder.findPsiClass(fqName);
+ psiClass = psiClassFinder.findPsiClass(fqName, PsiClassFinder.RuntimeClassesHandleMode.IGNORE);
if (psiClass != null) {
trace.record(JavaBindingContext.JAVA_NAMESPACE_KIND, ns, JavaNamespaceKind.CLASS_STATICS);
break lookingForPsi;
@@ -983,7 +983,7 @@ public JavaPackageScope getJavaPackageScope(@NotNull FqName fqName, @NotNull Nam
@Nullable
private PsiClass getPsiClassForJavaPackageScope(@NotNull FqName packageFQN) {
- return psiClassFinder.findPsiClass(packageFQN.child(JvmAbi.PACKAGE_CLASS));
+ return psiClassFinder.findPsiClass(packageFQN.child(JvmAbi.PACKAGE_CLASS), PsiClassFinder.RuntimeClassesHandleMode.IGNORE);
}
private static class ValueParameterDescriptors {
View
4 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JvmStdlibNames.java
@@ -64,6 +64,10 @@
public static final JvmClassName JET_OBJECT = new JvmClassName("jet.JetObject");
+
+
+ public static final JvmClassName ASSERT_INVISIBLE_IN_RESOLVER = new JvmClassName("org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver");
+
private JvmStdlibNames() {
}
View
7 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/PsiClassFinder.java
@@ -26,8 +26,13 @@
* @author Stepan Koltsov
*/
public interface PsiClassFinder {
+ enum RuntimeClassesHandleMode {
+ THROW,
+ IGNORE,
+ }
+
@Nullable
- PsiClass findPsiClass(@NotNull FqName fqName);
+ PsiClass findPsiClass(@NotNull FqName fqName, @NotNull RuntimeClassesHandleMode runtimeClassesHandleMode);
@Nullable
PsiPackage findPsiPackage(@NotNull FqName fqName);
}
View
25 compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/PsiClassFinderForJvm.java
@@ -19,6 +19,7 @@
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.JavaPsiFacade;
+import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiPackage;
import com.intellij.psi.impl.compiled.ClsClassImpl;
@@ -29,11 +30,9 @@
import org.jetbrains.jet.lang.resolve.FqName;
import org.jetbrains.jet.lang.resolve.java.alt.AltClassFinder;
import org.jetbrains.jet.plugin.JetFileType;
-import org.jetbrains.jet.utils.PathUtil;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
-import java.util.Collections;
/**
* @author Stepan Koltsov
@@ -74,7 +73,7 @@ public boolean contains(VirtualFile file) {
@Override
@Nullable
- public PsiClass findPsiClass(@NotNull FqName qualifiedName) {
+ public PsiClass findPsiClass(@NotNull FqName qualifiedName, @NotNull RuntimeClassesHandleMode runtimeClassesHandleMode) {
PsiClass original = javaFacade.findClass(qualifiedName.getFqName(), javaSearchScope);
PsiClass altClass = altClassFinder.findClass(qualifiedName);
PsiClass result = original;
@@ -97,6 +96,26 @@ public PsiClass findPsiClass(@NotNull FqName qualifiedName) {
return null;
}
+ if (result == null) {
+ return null;
+ }
+
+ PsiAnnotation assertInvisibleAnnotation = result.getModifierList().findAnnotation(
+ JvmStdlibNames.ASSERT_INVISIBLE_IN_RESOLVER.getFqName().getFqName());
+ if (assertInvisibleAnnotation != null) {
+ if (runtimeClassesHandleMode == RuntimeClassesHandleMode.IGNORE) {
+ return null;
+ }
+ else if (runtimeClassesHandleMode == RuntimeClassesHandleMode.THROW) {
+ throw new IllegalStateException(
+ "classpath is configured incorrectly:" +
+ " class " + qualifiedName + " from runtime must not be loaded by compiler");
+ }
+ else {
+ throw new IllegalStateException("unknown parameter value: " + runtimeClassesHandleMode);
+ }
+ }
+
return result;
}
View
15 compiler/frontend/src/org/jetbrains/jet/lang/types/expressions/ExpressionTypingUtils.java
@@ -30,14 +30,17 @@
import org.jetbrains.jet.lang.resolve.*;
import org.jetbrains.jet.lang.resolve.calls.autocasts.DataFlowInfo;
import org.jetbrains.jet.lang.resolve.calls.inference.*;
-import org.jetbrains.jet.lang.resolve.scopes.*;
+import org.jetbrains.jet.lang.resolve.scopes.JetScope;
+import org.jetbrains.jet.lang.resolve.scopes.WritableScope;
+import org.jetbrains.jet.lang.resolve.scopes.WritableScopeImpl;
import org.jetbrains.jet.lang.resolve.scopes.receivers.ExpressionReceiver;
import org.jetbrains.jet.lang.resolve.scopes.receivers.ReceiverDescriptor;
-import org.jetbrains.jet.lang.types.checker.JetTypeChecker;
-import org.jetbrains.jet.lang.types.lang.JetStandardClasses;
import org.jetbrains.jet.lang.types.JetType;
+import org.jetbrains.jet.lang.types.NamespaceType;
import org.jetbrains.jet.lang.types.TypeUtils;
import org.jetbrains.jet.lang.types.Variance;
+import org.jetbrains.jet.lang.types.checker.JetTypeChecker;
+import org.jetbrains.jet.lang.types.lang.JetStandardClasses;
import org.jetbrains.jet.lang.types.lang.JetStandardLibrary;
import java.util.ArrayList;
@@ -209,6 +212,12 @@ public static boolean checkIsExtensionCallable (
@NotNull CallableDescriptor receiverArgument
) {
JetType type = expectedReceiver.getType();
+
+ if (type instanceof NamespaceType) {
+ // This fake class ruins standard algorithms
+ return false;
+ }
+
if (checkReceiverResolution(expectedReceiver, type, receiverArgument)) return true;
if (type.isNullable()) {
JetType notNullableType = TypeUtils.makeNotNullable(type);
View
14 compiler/frontend/src/org/jetbrains/jet/lang/types/lang/JetStandardClasses.java
@@ -135,13 +135,13 @@ public String toString() {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public static final int TUPLE_COUNT = 22;
+ public static final int MAX_TUPLE_ORDER = 22;
private static final Set<TypeConstructor> TUPLE_CONSTRUCTORS = Sets.newHashSet();
- private static final ClassDescriptor[] TUPLE = new ClassDescriptor[TUPLE_COUNT];
+ private static final ClassDescriptor[] TUPLE = new ClassDescriptor[MAX_TUPLE_ORDER + 1];
static {
- for (int i = 0; i < TUPLE_COUNT; i++) {
+ for (int i = 0; i <= MAX_TUPLE_ORDER; i++) {
List<TypeParameterDescriptor> parameters = new ArrayList<TypeParameterDescriptor>();
ClassDescriptorImpl classDescriptor = new ClassDescriptorImpl(
STANDARD_CLASSES_NAMESPACE,
@@ -175,16 +175,16 @@ public String toString() {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public static final int FUNCTION_COUNT = 22;
+ public static final int MAX_FUNCTION_ORDER = 22;
- private static final ClassDescriptor[] FUNCTION = new ClassDescriptor[FUNCTION_COUNT];
- private static final ClassDescriptor[] RECEIVER_FUNCTION = new ClassDescriptor[FUNCTION_COUNT];
+ private static final ClassDescriptor[] FUNCTION = new ClassDescriptor[MAX_FUNCTION_ORDER + 1];
+ private static final ClassDescriptor[] RECEIVER_FUNCTION = new ClassDescriptor[MAX_FUNCTION_ORDER + 1];
private static final Set<TypeConstructor> FUNCTION_TYPE_CONSTRUCTORS = Sets.newHashSet();
private static final Set<TypeConstructor> RECEIVER_FUNCTION_TYPE_CONSTRUCTORS = Sets.newHashSet();
static {
- for (int i = 0; i < FUNCTION_COUNT; i++) {
+ for (int i = 0; i <= MAX_FUNCTION_ORDER; i++) {
ClassDescriptorImpl function = new ClassDescriptorImpl(
STANDARD_CLASSES_NAMESPACE,
Collections.<AnnotationDescriptor>emptyList(),
View
3  compiler/tests/org/jetbrains/jet/resolve/JetResolveTest.java
@@ -39,6 +39,7 @@
import org.jetbrains.jet.lang.resolve.calls.ResolvedCall;
import org.jetbrains.jet.lang.resolve.java.CompilerSpecialMode;
import org.jetbrains.jet.lang.resolve.java.JavaDescriptorResolver;
+import org.jetbrains.jet.lang.resolve.java.PsiClassFinder;
import org.jetbrains.jet.lang.resolve.scopes.receivers.ReceiverDescriptor;
import org.jetbrains.jet.lang.types.JetType;
import org.jetbrains.jet.lang.types.TypeProjection;
@@ -127,7 +128,7 @@ private PsiClass findClass(String qualifiedName) {
Project project = getProject();
InjectorForJavaSemanticServices injector = new InjectorForJavaSemanticServices(
CompileCompilerDependenciesTest.compilerDependenciesForTests(CompilerSpecialMode.REGULAR), project);
- return injector.getPsiClassFinderForJvm().findPsiClass(new FqName(qualifiedName));
+ return injector.getPsiClassFinderForJvm().findPsiClass(new FqName(qualifiedName), PsiClassFinder.RuntimeClassesHandleMode.THROW);
}
@NotNull
View
2  js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/Intrinsics.java
@@ -110,7 +110,7 @@ public Intrinsic getLengthPropertyIntrinsic() {
}
private void declareTuplesIntrinsics() {
- for (int tupleSize = 0; tupleSize < JetStandardClasses.TUPLE_COUNT; ++tupleSize) {
+ for (int tupleSize = 0; tupleSize <= JetStandardClasses.MAX_TUPLE_ORDER; ++tupleSize) {
declareTupleIntrinsics(tupleSize);
}
}
View
4 libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/templates/ClassExtensionsTemplate.kt
@@ -47,4 +47,8 @@ from package ${link(pkg)}
return if (f.extensionClass != null) "#${f.link}" else super.href(f)
}
+ override fun href(f: KProperty): String {
+ return if (f.extensionClass != null) "#${f.link}" else super.href(f)
+ }
+
}
View
3  runtime/src/jet/BooleanIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface BooleanIterable extends Iterable<Boolean> {
@Override
BooleanIterator iterator();
View
3  runtime/src/jet/BooleanIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class BooleanIterator implements Iterator<Boolean> {
public final Boolean next() {
return nextBoolean();
View
3  runtime/src/jet/ByteIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface ByteIterable extends Iterable<Byte> {
@Override
ByteIterator iterator();
View
3  runtime/src/jet/ByteIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class ByteIterator implements Iterator<Byte> {
public final Byte next() {
return nextByte();
View
3  runtime/src/jet/ByteRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class ByteRange implements Range<Byte>, ByteIterable {
private final byte start;
private final int count;
View
3  runtime/src/jet/CharIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface CharIterable extends Iterable<Character> {
@Override
CharIterator iterator();
View
3  runtime/src/jet/CharIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class CharIterator implements Iterator<Character> {
public final Character next() {
return nextChar();
View
3  runtime/src/jet/CharRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class CharRange implements Range<Character>, CharIterable {
private final char start;
private final int count;
View
3  runtime/src/jet/DoubleIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface DoubleIterable extends Iterable<Double> {
@Override
DoubleIterator iterator();
View
3  runtime/src/jet/DoubleIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class DoubleIterator implements Iterator<Double> {
public final Double next() {
return nextDouble();
View
3  runtime/src/jet/DoubleRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class DoubleRange implements Range<Double> {
private final double start;
private final double size;
View
3  runtime/src/jet/ExtensionFunction0.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction0<E, R> extends DefaultJetObject {
protected ExtensionFunction0() {
super();
View
3  runtime/src/jet/ExtensionFunction1.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction1<E, D1, R> extends DefaultJetObject {
protected ExtensionFunction1() {
super();
View
3  runtime/src/jet/ExtensionFunction10.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction10<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, R> extends DefaultJetObject {
protected ExtensionFunction10() {
super();
View
3  runtime/src/jet/ExtensionFunction11.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction11<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, R> extends DefaultJetObject {
protected ExtensionFunction11() {
super();
View
3  runtime/src/jet/ExtensionFunction12.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction12<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, R> extends DefaultJetObject {
protected ExtensionFunction12() {
super();
View
3  runtime/src/jet/ExtensionFunction13.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction13<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, R> extends DefaultJetObject {
protected ExtensionFunction13() {
super();
View
3  runtime/src/jet/ExtensionFunction14.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction14<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, R> extends DefaultJetObject {
protected ExtensionFunction14() {
super();
View
3  runtime/src/jet/ExtensionFunction15.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction15<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, R> extends DefaultJetObject {
protected ExtensionFunction15() {
super();
View
3  runtime/src/jet/ExtensionFunction16.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction16<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, R> extends DefaultJetObject {
protected ExtensionFunction16() {
super();
View
3  runtime/src/jet/ExtensionFunction17.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction17<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, R> extends DefaultJetObject {
protected ExtensionFunction17() {
super();
View
3  runtime/src/jet/ExtensionFunction18.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction18<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, R> extends DefaultJetObject {
protected ExtensionFunction18() {
super();
View
3  runtime/src/jet/ExtensionFunction19.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction19<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, R> extends DefaultJetObject {
protected ExtensionFunction19() {
super();
View
3  runtime/src/jet/ExtensionFunction2.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction2<E, D1, D2, R> extends DefaultJetObject {
protected ExtensionFunction2() {
super();
View
3  runtime/src/jet/ExtensionFunction20.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction20<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, R> extends DefaultJetObject {
protected ExtensionFunction20() {
super();
View
3  runtime/src/jet/ExtensionFunction21.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction21<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, R> extends DefaultJetObject {
protected ExtensionFunction21() {
super();
View
3  runtime/src/jet/ExtensionFunction22.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction22<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, R> extends DefaultJetObject {
protected ExtensionFunction22() {
super();
View
3  runtime/src/jet/ExtensionFunction3.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction3<E, D1, D2, D3, R> extends DefaultJetObject {
protected ExtensionFunction3() {
super();
View
3  runtime/src/jet/ExtensionFunction4.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction4<E, D1, D2, D3, D4, R> extends DefaultJetObject {
protected ExtensionFunction4() {
super();
View
3  runtime/src/jet/ExtensionFunction5.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction5<E, D1, D2, D3, D4, D5, R> extends DefaultJetObject {
protected ExtensionFunction5() {
super();
View
3  runtime/src/jet/ExtensionFunction6.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction6<E, D1, D2, D3, D4, D5, D6, R> extends DefaultJetObject {
protected ExtensionFunction6() {
super();
View
3  runtime/src/jet/ExtensionFunction7.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction7<E, D1, D2, D3, D4, D5, D6, D7, R> extends DefaultJetObject {
protected ExtensionFunction7() {
super();
View
3  runtime/src/jet/ExtensionFunction8.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction8<E, D1, D2, D3, D4, D5, D6, D7, D8, R> extends DefaultJetObject {
protected ExtensionFunction8() {
super();
View
3  runtime/src/jet/ExtensionFunction9.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class ExtensionFunction9<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, R> extends DefaultJetObject {
protected ExtensionFunction9() {
super();
View
3  runtime/src/jet/FloatIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface FloatIterable extends Iterable<Float> {
@Override
FloatIterator iterator();
View
3  runtime/src/jet/FloatIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class FloatIterator implements Iterator<Float> {
public final Float next() {
return nextFloat();
View
3  runtime/src/jet/FloatRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class FloatRange implements Range<Float> {
private final float start;
private final float size;
View
3  runtime/src/jet/Function0.java
@@ -19,7 +19,10 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/** A function with no arguments */
+@AssertInvisibleInResolver
public abstract class Function0<R> extends DefaultJetObject {
public abstract R invoke();
View
3  runtime/src/jet/Function1.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function1<D1, R> extends DefaultJetObject {
public abstract R invoke(D1 d1);
View
3  runtime/src/jet/Function10.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function10<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10);
View
3  runtime/src/jet/Function11.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function11<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11);
View
3  runtime/src/jet/Function12.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function12<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12);
View
3  runtime/src/jet/Function13.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function13<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13);
View
3  runtime/src/jet/Function14.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function14<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14);
View
3  runtime/src/jet/Function15.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function15<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15);
View
3  runtime/src/jet/Function16.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function16<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16);
View
3  runtime/src/jet/Function17.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function17<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17);
View
3  runtime/src/jet/Function18.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function18<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18);
View
3  runtime/src/jet/Function19.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function19<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19);
View
3  runtime/src/jet/Function2.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function2<D1, D2, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2);
View
3  runtime/src/jet/Function20.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function20<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20);
View
3  runtime/src/jet/Function21.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function21<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20, D21 d21);
View
3  runtime/src/jet/Function22.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function22<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20, D21 d21, D22 d22);
View
3  runtime/src/jet/Function3.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function3<D1, D2, D3, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3);
View
3  runtime/src/jet/Function4.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function4<D1, D2, D3, D4, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4);
View
3  runtime/src/jet/Function5.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function5<D1, D2, D3, D4, D5, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5);
View
3  runtime/src/jet/Function6.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function6<D1, D2, D3, D4, D5, D6, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6);
View
3  runtime/src/jet/Function7.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function7<D1, D2, D3, D4, D5, D6, D7, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7);
View
3  runtime/src/jet/Function8.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function8<D1, D2, D3, D4, D5, D6, D7, D8, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8);
View
3  runtime/src/jet/Function9.java
@@ -19,6 +19,9 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public abstract class Function9<D1, D2, D3, D4, D5, D6, D7, D8, D9, R> extends DefaultJetObject {
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9);
View
3  runtime/src/jet/IntIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface IntIterable extends Iterable<Integer> {
@Override
IntIterator iterator();
View
3  runtime/src/jet/IntIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class IntIterator implements Iterator<Integer> {
public final Integer next() {
return nextInt();
View
3  runtime/src/jet/IntRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class IntRange implements Range<Integer>, IntIterable {
private final int start;
private final int count;
View
3  runtime/src/jet/Iterable.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public interface Iterable<T> {
Iterator<T> iterator ();
}
View
3  runtime/src/jet/Iterator.java
@@ -17,9 +17,10 @@
package jet;
import jet.runtime.typeinfo.JetMethod;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+@AssertInvisibleInResolver
public interface Iterator<T> {
- @JetMethod(kind = JetMethod.KIND_PROPERTY)
boolean getHasNext();
T next ();
}
View
3  runtime/src/jet/LongIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface LongIterable extends Iterable<Long> {
@Override
LongIterator iterator();
View
3  runtime/src/jet/LongIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class LongIterator implements Iterator<Long> {
public final Long next() {
return nextLong();
View
3  runtime/src/jet/LongRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class LongRange implements Range<Long>, LongIterable {
private final long start;
private final long count;
View
3  runtime/src/jet/Range.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public interface Range<T extends Comparable<T>> {
boolean contains(T item);
}
View
3  runtime/src/jet/ShortIterable.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public interface ShortIterable extends Iterable<Short> {
@Override
ShortIterator iterator();
View
3  runtime/src/jet/ShortIterator.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public abstract class ShortIterator implements Iterator<Short> {
public final Short next() {
return nextShort();
View
3  runtime/src/jet/ShortRange.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public final class ShortRange implements Range<Short>, ShortIterable {
private final short start;
private final int count;
View
3  runtime/src/jet/Tuple.java
@@ -15,9 +15,12 @@
*/
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* Represents the common interface of a tuple
*/
+// @AssertInvisibleInResolver // TODO TupleN classes has no Tuple superclass
public abstract class Tuple extends DefaultJetObject {
/**
View
3  runtime/src/jet/Tuple0.java
@@ -16,9 +16,12 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
/**
* @author alex.tkachman
*/
+@AssertInvisibleInResolver
public class Tuple0 extends Tuple {
public static final Tuple0 INSTANCE = new Tuple0();
View
3  runtime/src/jet/Tuple1.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple1<T1> extends Tuple {
public final T1 _1;
View
3  runtime/src/jet/Tuple10.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple11.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple12.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple13.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple14.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple15.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple16.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple17.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple18.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple19.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple2.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple2<T1, T2> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple20.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3  runtime/src/jet/Tuple21.java
@@ -16,6 +16,9 @@
package jet;
+import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver;
+
+@AssertInvisibleInResolver
public class Tuple21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> extends Tuple {
public final T1 _1;
public final T2 _2;
View
3