Typos fixed
This commit is contained in:
+1
-1
@@ -253,7 +253,7 @@ public class JavaTypeTransformer {
|
||||
}
|
||||
|
||||
private static boolean isRaw(@NotNull PsiClassType classType, boolean argumentsExpected) {
|
||||
// The second option is needed because sometimes we get weird versions of JDK classes in teh class path,
|
||||
// The second option is needed because sometimes we get weird versions of JDK classes in the class path,
|
||||
// such as collections with no generics, so the Java types are not raw, formally, but they don't match with
|
||||
// their Kotlin analogs, so we treat them as raw to avoid exceptions
|
||||
return classType.isRaw() || argumentsExpected && classType.getParameterCount() == 0;
|
||||
|
||||
@@ -182,7 +182,7 @@ public class ResolveSession implements KotlinCodeAnalyzer {
|
||||
|
||||
// Why not use the result here. Because it may be that there is a redeclaration:
|
||||
// class A {} class A { fun foo(): A<completion here>}
|
||||
// and if we find teh class by name only, we may b-not get the right one.
|
||||
// and if we find the class by name only, we may b-not get the right one.
|
||||
// This call is only needed to make sure the classes are written to trace
|
||||
resolutionScope.getClassifier(name);
|
||||
DeclarationDescriptor declaration = getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, classOrObject);
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public interface StorageManager {
|
||||
/**
|
||||
* Given a function compute: K -> V create a memoized version of it that computes a value only once for each key
|
||||
* @param compute the function to be memoized
|
||||
* @param valuesReferenceKind how to store teh memoized values
|
||||
* @param valuesReferenceKind how to store the memoized values
|
||||
*
|
||||
* NOTE: if compute() has side-effects the WEAK reference kind is dangerous: the side-effects will be repeated if
|
||||
* the value gets collected and then re-computed
|
||||
|
||||
@@ -134,7 +134,7 @@ public class KotlinBuiltIns {
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
private final KotlinCodeAnalyzer anazlyer;
|
||||
private final KotlinCodeAnalyzer analyzer;
|
||||
private final ModuleDescriptor builtInsModule;
|
||||
|
||||
private volatile ImmutableSet<ClassDescriptor> nonPhysicalClasses;
|
||||
@@ -171,7 +171,7 @@ public class KotlinBuiltIns {
|
||||
private KotlinBuiltIns(@NotNull Project project) {
|
||||
try {
|
||||
this.builtInsModule = new ModuleDescriptor(Name.special("<built-ins lazy module>"));
|
||||
this.anazlyer = createLazyResolveSession(project);
|
||||
this.analyzer = createLazyResolveSession(project);
|
||||
|
||||
this.functionClassesSet = computeIndexedClasses("Function", getFunctionTraitCount());
|
||||
this.extensionFunctionClassesSet = computeIndexedClasses("ExtensionFunction", getFunctionTraitCount());
|
||||
@@ -214,9 +214,9 @@ public class KotlinBuiltIns {
|
||||
|
||||
nonPhysicalClasses = computeNonPhysicalClasses();
|
||||
|
||||
anazlyer.forceResolveAll();
|
||||
analyzer.forceResolveAll();
|
||||
|
||||
AnalyzingUtils.throwExceptionOnErrors(anazlyer.getBindingContext());
|
||||
AnalyzingUtils.throwExceptionOnErrors(analyzer.getBindingContext());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user