Typos fixed

This commit is contained in:
Andrey Breslav
2013-02-12 18:02:44 +04:00
parent 5cf17f089f
commit c86f0de79f
4 changed files with 7 additions and 7 deletions
@@ -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);
@@ -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