Alexey Andreev
33248e7721
KT-3008: minor code style fixes
2016-06-27 15:33:31 +03:00
Alexey Andreev
97605a97da
KT-3008: multiple minor fixes after code review
2016-06-27 15:33:28 +03:00
Alexey Andreev
b090b79d92
KT-3008 Add UI that allows to change module kind in IDEA Kotlin configurator
2016-06-27 15:33:26 +03:00
Alexey Andreev
848d7f92fa
KT-3008 Implement AMD, CommonJS and UMD wrappers. Compile stdlib and builtins modules into separate JS files and wrap them in UMD.
2016-06-27 15:33:24 +03:00
Alexey Andreev
95b78e18df
KT-3008 Change the way how modules are referenced in JS
2016-06-27 15:33:23 +03:00
Ilya Gorbunov
7c5c4610e8
Rename -jdk compiler option to -jdk-home (jdkHome), add jdk path validation.
2016-06-23 22:47:45 +03:00
Ilya Gorbunov
644df89dc9
CLI: Allow to specify JDK for classpath building with '-jdk' compiler argument.
...
Maven: support jdk parameter linked to kotlin.compiler.jdk property.
Gradle: support jdk compiler option.
2016-06-23 22:46:07 +03:00
Alexander Udalov
da332d1a27
Validate "-jvm-target" value in CLI, improve message
2016-06-16 16:51:18 +03:00
Mikhael Bogdanov
3a8591a729
Support 'jvm-target' in CLI
2016-06-15 13:43:29 +03:00
Ilya Chernikov
3e6616de42
Read script config if appropriate flag is specified, fix classpath handling
2016-06-07 21:12:58 +02:00
Alexander Udalov
e1ba4480d7
Support "-language-version" CLI option for compatibility with older releases
...
Introduce LanguageFeatureSettings, instance of which should be injected by the
container and be accessible everywhere during the compilation (front-end and
back-end).
Parameters of LanguageFeatureSettings are unused in this commit, will be used
later
2016-05-26 22:15:39 +03:00
Alexander Udalov
3c81bb4bfc
Add MessageCollector#hasErrors, get rid of MessageSeverityCollector
...
Also fix duplicated wrapping of a message collector into a message severity
collector (in CLICompiler and in the beginning of doExecute in
K2JVMCompiler/K2JSCompiler)
2016-05-26 11:47:30 +03:00
Alexander Udalov
dcb2d7b4f6
Minor, break the line in "kotlinc -help" if it's too long
...
To improve description of the "pluginOptions" flag
2016-05-23 14:47:00 +03:00
Alexander Udalov
a8629b3836
Do not fail on unknown -X flags
...
For better compatibility if we add experimental stuff in 1.0.X compilers
2016-04-12 20:03:51 +03:00
Dmitry Petrov
0ccaf43e2c
KT-11410: Add Xmultifile-parts-inherit CLI option.
2016-04-01 10:13:21 +03:00
Ilya Gorbunov
e7d75fccd6
Introduce compiler option to dump declaration mapping.
2016-03-29 13:49:34 +03:00
Ilya Gorbunov
02bb7f2f0d
Remove the compiler option "Xmultifile-facades-open"
2016-03-15 14:10:33 +03:00
Alexander Udalov
714df7b433
Add temporary compiler option to suppress incompatibility errors
...
To compile Kotlin against current IDEA libraries until they are migrated to 1.1
2016-01-22 23:53:47 +03:00
Dmitry Jemerov
39ad2b2378
return correct exit code when script execution fails
2016-01-19 10:53:48 +01:00
Dmitry Jemerov
f3faa10fcc
forbid compiling code in packages with names starting with 'kotlin' unless the -Xallow-kotlin-package command line option is specified
2016-01-19 10:53:47 +01:00
Dmitry Jemerov
117a0d8b7b
compiler: cleanup 'public', property access syntax
2016-01-07 17:57:38 +01:00
Alexander Udalov
a9476dfe37
Replace 'kotlin-runtime' in module dependencies with 'util'
2015-12-21 18:46:08 +03:00
Ilya Gorbunov
ae3135c770
For migration: Make an option "Xmultifile-facades-open" for compiler to generate open multifile facade classes.
2015-12-14 03:49:51 +03:00
Pavel V. Talanov
da02ed9057
GroupingMessageCollector: ensure that messages without location are reported first
...
Should fix CompileKotlinAgainstCustomBinariesTest.testIncompleteHierarchyInJava(Kotlin) tests
2015-12-09 18:54:15 +03:00
Ilya Chernikov
6313ecac1c
another attempt to fix parallel compilation - enabling keepalive in compiler use sites, but in jps taking parallel compilation option into account, so it should be now not set in tests
2015-12-02 10:30:56 +01:00
Michael Nedzelsky
c80c33efb6
add kjsm option for kotlin js command line compiler
2015-11-23 22:32:32 +03:00
Michael Nedzelsky
5b59fc74bc
fix access from tests to internal elements in production code in case of circular dependency
2015-11-11 19:16:21 +03:00
Nikolay Krasko
c0739ef53c
Add prefix information for Java source root (KT-9167 in progress)
...
#KT-9167 In Progress
2015-11-10 01:50:08 +03:00
Alexander Udalov
5335a81f7d
Minor, add JvmField to a constant
2015-11-05 15:11:33 +03:00
Ilya Chernikov
10036d7ef3
Enabling parallel builds in JPS without daemon, enabling application environment disposing in tests, introducing keepalive property constant
2015-11-03 14:18:22 +01:00
Michael Nedzelsky
190bab099c
fix KT-9441 Unable to Access Internal Classes from Test Code within Same Module
...
#KT-9441 Fixed
2015-10-28 01:58:54 +03:00
Dmitry Petrov
149e70aa07
Dropping package facades:
...
- light classes: do not generate light class for package facade
- drop package facades as multifile classes compilation mode support
- get rid of some additional package facade fqName usages
- update tests for light classes
2015-10-19 16:03:16 +03:00
Alexander Udalov
13c54a2678
Drop external annotations support in build tools
...
External annotations will only be considered in the IDE for additional
inspections based on more precise types in Java libraries
2015-10-09 11:51:58 +02:00
Denis Zharkov
9c4564a5a6
Get rid of deprecated annotations and modifiers in project code
2015-09-18 09:34:27 +03:00
Dmitry Petrov
a00346a141
MultifileClassCodegen
...
- initial implementation
- new Kotlin file kinds + stub builder
2015-09-09 19:08:17 +03:00
Alexey Tsvetkov
b25dfabbcc
Fix modules tests
2015-09-08 05:49:32 +03:00
Alexey Tsvetkov
0988b21e9c
Use both target name and target type to get incremental cache from backend
2015-09-08 05:49:32 +03:00
Alexey Tsvetkov
5f05f0d678
Move Module to util method
2015-09-08 05:49:32 +03:00
Alexey Tsvetkov
e90ecc48c5
Save target type in Kotlin Builder
2015-09-08 05:49:32 +03:00
Michael Bogdanov
6dcd059009
new kompiler parameter
2015-09-07 16:28:47 +03:00
Dmitry Jemerov
b791ea03a9
code cleanup: cli-common module
2015-07-21 16:21:48 +02:00
Dmitry Jemerov
5eb4a47a1a
command line flag to repeat compilation multiple times
2015-06-17 14:55:12 +02:00
Alexander Udalov
00566bcfb0
Move MessageRenderer to module 'cli'
...
It will use jline soon, which is not available in 'cli-common'
2015-06-15 15:42:42 +03:00
Alexander Udalov
54dfd626ab
CLI: improve diagnostic message format
...
- render the whole line where the error/warning points to, if any, and another
line with '^', like other compilers do
- lowercase diagnostic severity
- decapitalize the message if it doesn't start with a proper name
2015-06-15 15:42:41 +03:00
Alexander Udalov
46515afb22
CLI: don't render non-positive line and column in error messages
2015-06-15 15:42:41 +03:00
Alexander Udalov
6083a18ce1
Convert CompilerMessageLocation to Kotlin
2015-06-15 15:42:40 +03:00
Alexander Udalov
bca5eb083e
Don't report warnings when there are errors
...
All sane compilers do this
2015-06-15 15:42:40 +03:00
Alexander Udalov
4cfbf5886b
Get rid of unneeded MessageCollector implementations
2015-06-15 15:42:40 +03:00
Dmitry Jemerov
a321e8eef5
performance counters infrastructure
2015-06-04 10:20:19 +02:00
Michael Nedzelsky
d629271510
JS: make -meta-info cli option boolean
2015-05-21 02:30:54 +03:00