Commit Graph

1862 Commits

Author SHA1 Message Date
Stepan Koltsov f16895ba65 new compiler mode: stdlib
include jdk-headers, do not include runtime
2012-04-08 02:08:27 +04:00
Stepan Koltsov 0a610d81ad compiler argument parsing cleanup 2012-04-08 02:08:26 +04:00
Stepan Koltsov b38e171812 MapTypeMode and properly map builtins
used in JetTypeMapper in JetTypeMapper

* MapTypeMode contains no information not needed by JetTypeMapper
* MapTypeMode has separate VALUE and IMPL values that are needed to compile builtins
2012-04-07 06:32:18 +04:00
James Strachan 92df93a9db enabled multiple source directories in the KotlinCompiler (we should refactor later to remove src - wanted to minimise breaking things first though :) 2012-04-05 15:46:01 +01:00
Pavel V. Talanov 766b4dc975 Move AnalyzerExhaust from frontend.java to frontend. 2012-04-04 16:11:40 +04:00
Leonid Shalupov a8d6fb98f9 KotlinCompiler: split classpath by pathSeparator before adding to environment 2012-04-03 16:14:51 +04:00
Stepan Koltsov dd29cb0509 generate help with library 2012-04-03 00:29:07 +04:00
Alex Tkachman b5114d5f86 NPE fixed 2012-04-01 10:01:34 +03:00
Stepan Koltsov 2c4094f4d4 proper environment when compiling special things
* do not include anything when compiling builtins
* do not include kotlin-runtime and jdk-headers when compiling jdk-headers
2012-03-30 03:54:58 +04:00
Maxim Shafirov 060be0a8f8 Refactor dependencies, so jet-as-java might be used in cli. 2012-03-29 21:18:35 +04:00
Stepan Koltsov e6fda5b3d3 minor codegen refactoring
* cleanup after yesterday
* remove BindingContext stack in GenerationState
* use more power and strength of di

TODO: also initialize GenerationState by DI
2012-03-29 19:47:50 +04:00
James Strachan d76454ce08 merged with Andrey's changes 2012-03-29 16:40:44 +01:00
James Strachan beedd36456 refactored out the KDocLoader stuff from the KotlinCompiler; also introduced CompilerPluginContext to wrap up the Project, BindingContext and List<JetFiles> in case a plugin were to need any of those things (or we added extra stuff later like the environment) 2012-03-29 16:37:36 +01:00
Andrey Breslav ed04839901 renaming/code moving to meet the code style 2012-03-29 19:22:55 +04:00
James Strachan 316372f8b5 minor change to allow CompilerPlugins to be registered programatically 2012-03-29 08:48:28 +01:00
Stepan Koltsov 1e330fe0a0 jvm.backend: get JetStandardLibrary from analyzer
This is a big step towards removal of JetStandardLibrary.getInstance()
2012-03-29 01:03:44 +04:00
Nikolay Krasko 31ceb1e7df KT-1636 Idea consumes the whole heap with Kotlin plugin
#KT-1636 fixed
2012-03-28 20:58:36 +04:00
Andrey Breslav 297301d438 Added a -version option to the compiler usage info 2012-03-17 23:55:32 +04:00
Andrey Breslav 4231583f66 Added a -version option to the compiler 2012-03-17 23:06:29 +04:00
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