Renamed "std" library containing Any, Nothing, tuple and function types to "jet.src" and added readme file.
This commit is contained in:
@@ -87,7 +87,7 @@ public class TuplesAndFunctionsGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws FileNotFoundException {
|
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();
|
assert baseDir.exists() : "Base dir does not exist: " + baseDir.getAbsolutePath();
|
||||||
|
|
||||||
PrintStream tuples = new PrintStream(new File(baseDir, "Tuples.jet"));
|
PrintStream tuples = new PrintStream(new File(baseDir, "Tuples.jet"));
|
||||||
|
|||||||
@@ -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);
|
scope.changeLockLevel(WritableScope.LockLevel.BOTH);
|
||||||
jetNamespace.initialize(scope);
|
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"));
|
ClassDescriptor tuple0 = context.get(BindingContext.FQNAME_TO_CLASS_DESCRIPTOR, new FqName("jet.Tuple0"));
|
||||||
assert tuple0 != null;
|
assert tuple0 != null;
|
||||||
|
|||||||
Reference in New Issue
Block a user