Andrey Breslav
9c58e5b45c
Making compiler exit codes type safe. Fixes the problem with wrong command-line argument usage being missed by the IDE
2012-03-16 20:20:54 +04:00
Maxim Shafirov
2db12d69f9
fix test
2012-03-15 15:43:08 +04:00
Maxim Shafirov
43956b565a
#KT-1562 Fixed.
2012-03-15 15:12:29 +04:00
Maxim Shafirov
e82dd48662
Progress messages when emitting classfiles
2012-03-14 21:59:51 +04:00
Maxim Shafirov
32264cd4a8
File name transforming is unnecessary and thus, removed.
2012-03-14 16:35:45 +04:00
Stepan Koltsov
82d77560a2
FqName class
...
for type safety, to easier distinguish between:
* short names
* qualified names
* jvm names (slash-separated)
* special names like <root>
* null values that mean "undefined" and "root ns" in different contexts
2012-03-13 21:51:38 +04:00
Andrey Breslav
ca81d97b54
Year fixed in the copyright
2012-03-13 20:47:51 +04:00
James Strachan
562ba6b4de
further refactorings to work around kotlin compiler bugs (nested classes & access to public fields in java classes) so we can extend the KotlinCompiler from Kotlin code to add new arguments and compiler plugins
2012-03-08 11:58:02 +00:00
James Strachan
0c66d9db27
further minor refactorings so we can easily reuse the class and command line argument handling in other command line tools like kdoc
2012-03-08 09:19:15 +00:00
James Strachan
f43fd0f4f6
minor refactor to make KotlinCompiler easier to extend (to make command line based compiler tools with configurable plugins)
2012-03-08 08:05:47 +00:00
James Strachan
f6244f75ea
minor refactoring to allow plugins to be added to the BytecodeCompiler
2012-03-07 07:36:18 +00:00
Stepan Koltsov
522083bf5a
lang package
2012-03-07 04:08:18 +04:00
Andrey Breslav
0a08ac5fe8
Libraries written in Kotlin are factored out into a separate project
2012-03-06 19:00:29 +04:00
Andrey Breslav
26519c74f1
Compiler output stream fixed
...
Exit code 1 not reported in the IDE
2012-03-06 19:00:28 +04:00
James Strachan
eb3aac9acb
refactored std.* package to be kotlin.*. Due to KT-1381 I had to move the functions from kotlin.test into the stdlib for now (I made them not depend on JUnit for now)
2012-03-03 12:11:06 +00:00
James Strachan
ffa2b7b085
added a flag to indicate whether or not the module is being compiled or not (so we can defer compiler plugins until after the module is built)
2012-03-03 06:35:32 +00:00
Stepan Koltsov
4b7c738f29
exit 1 from kotlin process if compilation failed
2012-03-02 23:01:47 +04:00
Andrey Breslav
1078c95bf2
Platform-dependent AnalyzerFacades renamed to reflect platform-dependencies
2012-03-02 18:27:29 +04:00
Andrey Breslav
3664a3b2fc
Temporary solution for the case where the user has two different JDKs: one in java.home, and the other configured in the project.
...
In this case, we used to take the java.home one first and ignore project settings, because the classpath was shared between the module script compilation and the module compilation.
2012-03-02 16:14:38 +04:00
Andrey Breslav
200b6fbd91
Better error reporting from the compiler to the IDE
2012-02-29 15:11:34 +04:00
Stepan Koltsov
4ea99fc6ca
KotlinCompiler -stubs option
...
* do not fail on errors
* do not analyze function bodies
* generate "throw new RuntimeException()" in bytecode
2012-02-28 15:52:59 +04:00
Alex Tkachman
9ba1dbf98a
refactoring in progress
2012-02-27 22:59:34 +02:00
Svetlana Isakova
631961e761
Diagnostics & diagnostic factories refactoring
2012-02-27 21:39:26 +04:00
Alex Tkachman
ec442af1b3
attempt to fix failing test
2012-02-23 19:17:55 +02:00
Alex Tkachman
1921e266a8
ability to compile text (not file)
2012-02-23 18:45:34 +02:00
Alex Tkachman
f4bfffd714
global var replaced by thread local
2012-02-23 17:13:03 +02:00
Alex Tkachman
4f67177aa2
Revert "ability to compile text and small refactoring"
...
This reverts commit 4ddf101397 .
2012-02-23 17:01:33 +02:00
Alex Tkachman
4ddf101397
ability to compile text and small refactoring
2012-02-23 14:12:28 +02:00
James Strachan
f771158d30
refactored the loading of KDoc and removed the old code to show how to navigate the bindingContext as thats now implemented in KDocSupport
2012-02-22 14:01:58 +00:00
James Strachan
e05d299874
added a simple little CompilerPlugin interface and a loosely coupled loader of KDoc if its configured (via -docOutput) and its on the classpath then it can be used at the same stage as a compile & refactored KDoc to work with the compiler. Added a "docStdlib" goal to try out the kdoc on stdlib if the kdoc plugin has been built in kdoc/target/*.jar
2012-02-22 13:28:44 +00:00
Andrey Breslav
e3efda22c5
Removing the KDoc processor for now
2012-02-22 16:50:16 +04:00
Andrey Breslav
be032b84c8
Typo fixed
2012-02-22 16:15:09 +04:00
Andrey Breslav
583bcc0a1d
Strub model walking code
2012-02-22 16:14:07 +04:00
Stepan Koltsov
175b7230f1
better compiler output for incomplete hierarchies
2012-02-21 18:37:49 +04:00
James Strachan
44169529f3
provide a hook so we can add post processors into the compiler; such as for generating javadoc etc
2012-02-21 11:29:50 +00:00
Andrey Breslav
a5a28a11c7
No errors printed in "ignoreErrors" mode
2012-02-21 13:37:36 +04:00
Andrey Breslav
2ff896cc5a
Cleaned up Kompiler's error reporting
2012-02-21 12:52:59 +04:00
Stepan Koltsov
5eb483b7a7
better error reporting on incomplete hierarchy in JDR
2012-02-20 21:28:10 +04:00
Maxim Shafirov
6cb7833e9b
Cleanup
2012-02-17 21:07:32 +04:00
Andrey Breslav
a87c0903f2
KT-224 "Overload ambiguity" when calling toString() method
2012-02-17 21:01:24 +04:00
Maxim Shafirov
bf508ae03e
KT-1245 Report syntax errors in kompiler
2012-02-17 21:00:45 +04:00
Maxim Shafirov
a03922d467
Copyrights set to Apache, reflecting it's now open source
2012-02-14 19:25:06 +04:00
Evgeny Gerashchenko
b1db3aa8a5
Added CompileEnvironment.dispose() in KotlinCompiler to restore original Application after compilation.
2012-02-13 20:28:03 +04:00
Stepan Koltsov
df3abbfbb6
diagnostics in CompileEnvironment
2012-02-09 16:34:26 +04:00
Maxim Shafirov
8e6e3f683a
In-the-process compiler
2012-02-07 20:51:41 +04:00
Maxim Shafirov
04b0699cd5
Fix memory leak by disposing a classloader. The real issue though is located in TypeInfoParser, that has WeakHashMap with values referencing keys.
2012-02-02 20:35:15 +04:00
Maxim Shafirov
14ab62cf7a
Out-of-process compiler
2012-02-02 18:59:03 +04:00
Maxim Shafirov
21997904c5
NPE, if there were errors reported
2012-02-02 18:59:02 +04:00
Maxim Shafirov
f58bbb8de6
Respect -output even if compiling module script
2012-02-02 18:59:02 +04:00
Andrey Breslav
55fdeb9e35
Fixed fqn for the root package class
2012-02-01 18:41:15 +04:00