Converted JetScope to Kotlin

This commit is contained in:
Valentin Kipyatkov
2014-10-28 12:09:57 +03:00
parent c26c8f0a84
commit c2a3fde969
21 changed files with 98 additions and 123 deletions
@@ -66,7 +66,7 @@ class PropagationHeuristics {
arrayTypeFromSuper.getConstructor(),
arrayTypeFromSuper.isNullable(),
Arrays.asList(new TypeProjectionImpl(Variance.OUT_VARIANCE, elementTypeInSuper)),
JetScope.EMPTY);
JetScope.Empty.INSTANCE$);
data.reportError("Return type is not a subtype of overridden method. " +
"To fix it, add annotation with Kotlin signature to super method with type "
@@ -96,12 +96,12 @@ public class IncrementalPackageFragmentProvider(
val _memberScope: NotNullLazyValue<JetScope> = storageManager.createLazyValue {
if (fqName !in fqNamesToLoad) {
JetScope.EMPTY
JetScope.Empty
}
else {
val packageDataBytes = incrementalCache.getPackageData(fqName)
if (packageDataBytes == null) {
JetScope.EMPTY
JetScope.Empty
}
else {
IncrementalPackageScope(JavaProtoBufUtil.readPackageDataFrom(packageDataBytes))