Andrey Breslav
d512d62c04
Remove unused method
2012-04-13 20:08:35 +04:00
Andrey Breslav
e23cb0cb98
Fix comment text
2012-04-13 20:07:23 +04:00
Andrey Breslav
e553a46294
Use common utility for retrieving FQNames
2012-04-13 20:07:02 +04:00
Andrey Breslav
4eb594024a
Removed the exec(String...) method in KotlinCompiler
...
It's important to be aware of what stream the messages will be written to, so such a default implementation is harmful
2012-04-13 19:59:28 +04:00
Andrey Breslav
882412ea06
Proper handling of compiler messages
...
We used to have a triple (errorStream, messageRenderer, verbose) to represent the error reporting strategy.
Now we have a single MessageCollector abstraction for this.
As the MessageCollector abstraction was extracted, the need to CompilerMessageLocation and CompilerMessageSeverity arose, too.
2012-04-13 19:38:23 +04:00
Andrey Breslav
71bac57411
Got rid of CompileSession class: this class shouldn't have had any objects, now it is transformed into KotlinToJVMBytecodeCompiler
2012-04-13 19:38:22 +04:00
Andrey Breslav
b5008ebd57
Separate environments for module script compilation and project compilation
2012-04-11 16:13:11 +04:00
Andrey Breslav
f34e492022
JetCoreEnvironment encapsulates a project (in the IDEA sense), so the classpath and sources lie in its area of responsibility
2012-04-11 16:13:11 +04:00
Stepan Koltsov
a889e29147
else on the next line
...
as requested by http://confluence.jetbrains.net/display/JET/Code+Conventions+for+Java
(sed is your friend)
2012-04-10 00:03:13 +04:00
Stepan Koltsov
0d8088268a
extract code to method
2012-04-09 23:49:45 +04:00
Stepan Koltsov
03e78e8cc3
Revert "add runtime to classpath in JetCoreEnvironment" temporarily
...
This reverts commit 59c7f33c88 .
2012-04-09 18:54:42 +04:00
Stepan Koltsov
59c7f33c88
add runtime to classpath in JetCoreEnvironment
2012-04-09 18:22:23 +04:00
Pavel V. Talanov
7dd0e50bcd
Merge with branch "AnalyzerJS"
2012-04-09 17:08:57 +04:00
Pavel V. Talanov
a030576052
Merge from brahch analyzeJS.
...
Conflicts:
compiler/backend/src/org/jetbrains/jet/codegen/GenerationState.java
compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/AnalyzerFacadeForJVM.java
compiler/tests/org/jetbrains/jet/codegen/GenerationUtils.java
compiler/tests/org/jetbrains/jet/resolve/ExpectedResolveData.java
compiler/tests/org/jetbrains/jet/types/JetDefaultModalityModifiersTest.java
idea/src/org/jetbrains/jet/plugin/libraries/JetSourceNavigationHelper.java
idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java
idea/src/org/jetbrains/jet/plugin/project/WholeProjectAnalyzerFacade.java
idea/src/org/jetbrains/jet/plugin/quickfix/ChangeVariableMutabilityFix.java
idea/src/org/jetbrains/jet/plugin/quickfix/ImportInsertHelper.java
idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetNameSuggester.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetRefactoringUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/introduceVariable/JetIntroduceVariableHandler.java
2012-04-09 17:06:56 +04:00
Stepan Koltsov
10dd366216
CompilerDependencies
...
Holds reference to runtime.jar and jdk-headers.jar. Paths to these
jars are no longer hardcoded.
Many tests now compile runtime before execution. Because of this:
* Single test invocation is significantly slower now for some tests
* This can be fixed by making tests independent from runtime (this
must be done anyway)
Some tests still depend on runtime.jar built by "ant dist", this
is to be fixed.
2012-04-09 03:04:50 +04:00
Stepan Koltsov
7be3d247f9
fix tests after recent refactoring
2012-04-08 05:39:46 +04:00
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