Renamed "std" library containing Any, Nothing, tuple and function types to "jet.src" and added readme file.

This commit is contained in:
Evgeny Gerashchenko
2012-05-11 18:17:48 +04:00
parent ebfddd3d7d
commit 7c96aec630
8 changed files with 6 additions and 2 deletions
@@ -87,7 +87,7 @@ public class TuplesAndFunctionsGenerator {
}
public static void main(String[] args) throws FileNotFoundException {
File baseDir = new File("compiler/frontend/src/std/");
File baseDir = new File("compiler/frontend/src/jet.src/");
assert baseDir.exists() : "Base dir does not exist: " + baseDir.getAbsolutePath();
PrintStream tuples = new PrintStream(new File(baseDir, "Tuples.jet"));
+4
View File
@@ -0,0 +1,4 @@
These files are used only for navigation from user code in IDE.
These files are not processed by Kotlin compiler. Compiler creates Any, Nothing, tuple and function
types on-the-fly.
@@ -79,7 +79,7 @@ public class StandardLibraryReferenceResolver extends AbstractProjectComponent {
scope.changeLockLevel(WritableScope.LockLevel.BOTH);
jetNamespace.initialize(scope);
TopDownAnalyzer.processStandardLibraryNamespace(myProject, context, scope, jetNamespace, getJetFiles("std"));
TopDownAnalyzer.processStandardLibraryNamespace(myProject, context, scope, jetNamespace, getJetFiles("jet.src"));
ClassDescriptor tuple0 = context.get(BindingContext.FQNAME_TO_CLASS_DESCRIPTOR, new FqName("jet.Tuple0"));
assert tuple0 != null;