Commit Graph

19215 Commits

Author SHA1 Message Date
Michael Nedzelsky ba5a5af4ec stable order for configurators in notification 2014-12-12 03:04:00 +03:00
Michael Nedzelsky 0442e3b0ed add KotlinJavascriptMavenConfigurator 2014-12-12 03:03:58 +03:00
Michael Nedzelsky b71101942e JS backend: maven projects: extract library js-files to target/js/lib, set scope=test for stdlib in browser-example* 2014-12-12 03:03:53 +03:00
Michael Nedzelsky 85a16c3c51 add browser-example-with-library maven project (kotlin->javascript) 2014-12-12 03:03:50 +03:00
Michael Nedzelsky 6c55e12588 add kotlin-js-library-example maven project 2014-12-12 03:03:48 +03:00
Michael Nedzelsky 9734980334 JS maven tests: fixes configuration files 2014-12-12 03:03:45 +03:00
Michael Nedzelsky eebb012b13 JS backend: maven: fix compiler mojo 2014-12-12 03:03:43 +03:00
Michael Nedzelsky 8d10b3813b fix kotlin-js-library maven project 2014-12-12 03:03:40 +03:00
Michael Nedzelsky 44e7af7f65 K2JS: get rid of MetaInfServices 2014-12-12 03:03:37 +03:00
Michael Nedzelsky 73db22ae20 JS backend: add option 'output library runtime fiies' for Kotlin Compiler 2014-12-12 03:03:34 +03:00
Michael Nedzelsky a026f6d25e add LibraryUtils.copyJsFilesFromLibraries 2014-12-12 03:03:32 +03:00
Michael Nedzelsky 729e7084fa new ant test for kotlin javascript library support 2014-12-12 03:03:29 +03:00
Michael Nedzelsky ecc0751221 K2JS: add cli compiler tests for libraries 2014-12-12 03:03:27 +03:00
Michael Nedzelsky 103307432e update kotlin javascript stdlib if needed 2014-12-12 03:03:24 +03:00
Michael Nedzelsky 85a38e17de reuse for KotlinJS library common Library dialogs
remove unnecessary code for kotlin js library support

JS backend: simplify check isConfigured for kotlin js module
2014-12-12 03:03:22 +03:00
Michael Nedzelsky a21d979186 CreateJavaLibraryDialog* -> CreateLibraryDialog* 2014-12-12 03:03:19 +03:00
Michael Nedzelsky d588b62981 Minor: refactoring create Kotlin Java Library Dialog 2014-12-12 03:03:16 +03:00
Michael Nedzelsky 61e9cbec66 K2JS: get kotlin js module name from Kotlin-JS-Module-Name attribute in manifest 2014-12-12 03:03:13 +03:00
Michael Nedzelsky 83ec20508a JS backend: isJsRuntimeLibrary -> isKotlinJavascriptStdLibrary 2014-12-12 03:03:11 +03:00
Michael Nedzelsky b42d00f095 JS backend: check for Implementation-Title in order to detect kotlin js stdlib 2014-12-12 03:03:08 +03:00
Michael Nedzelsky f5d957445f JS backend: JpsJsModuleUtils: remove filtering for Kotlin Javascript libraries 2014-12-12 03:03:05 +03:00
Michael Nedzelsky 34411dcf01 JS backend: add Specification-Title to manifest and LibraryUtils.isKotlinJavascriptLibrary 2014-12-12 03:03:03 +03:00
Michael Nedzelsky 68113ff33d JS backend: change path to kotlin.js for tests 2014-12-12 03:03:00 +03:00
Michael Nedzelsky a65b9800c2 JS backend: put kotlin.js into jslib archive, add specification-title
kotlin.js is now included in kotlin-jslib.jar, so closure-compiler outputs kotlin.js to dist folder instead of dist/kotlic/lib
2014-12-12 03:02:31 +03:00
Michael Nedzelsky 12ff5de013 K2JS: fix KT-5639 Exception in kotlin-js when directory is given instead of output file
#KT-5639 Fixed
2014-12-12 01:25:15 +03:00
Alexey Sedunov 0b54221223 Minor: Use short type names in super-function prompt dialog (find usages and refactorings)
#KT-6298 Fixed
2014-12-11 17:50:34 +03:00
Alexey Sedunov 51d4d3135e Change return type quick-fix: Add support of constant expressions
#KT-6260 Fixed
 #KT-6404 Fixed
2014-12-11 17:50:33 +03:00
Alexey Sedunov 2009cc3e9e Create parameter from usage: Support UNRESOLVE_REFERENCE_WRONG_RECEIVER diagnostic
#KT-6431 Fixed
2014-12-11 17:50:32 +03:00
Alexey Sedunov 346d9ea0c5 Quick Fixes: Add test for KT-5922 (QuickFix to change lambda signature doesn't work with SAM conversion) 2014-12-11 17:50:31 +03:00
Alexey Sedunov 14b33f8b95 Change Signature: Do not report conflict of object member with itself (available through the class object)
#KT-6345 Fixed
2014-12-11 17:50:31 +03:00
Alexey Sedunov 6bbe9b2bfe Change Signature: Add test for KT-6410 (Change signature on constructor inserts fqName for newly added parameter type) 2014-12-11 17:50:29 +03:00
Alexey Sedunov b1f82d7a23 Quick Fixes: Add test for KT-6430 (Create parameter quick fix inserts platform types into Kotlin code) 2014-12-11 17:50:28 +03:00
Alexey Sedunov 8cc3af99a0 Change Signature: Retain parameter modifier list 2014-12-11 17:50:27 +03:00
Alexey Sedunov 7d1ed507a7 Call Hierarchy: Filter out usages inside of import directives 2014-12-11 17:50:26 +03:00
Alexey Sedunov 15d7932491 Minor: Remove unnecessary check for test sources (reverted earlier commit) 2014-12-11 17:50:25 +03:00
Alexander Udalov d71220f8b1 Drop ArrayGenTest, move test case to generated 2014-12-11 16:04:04 +03:00
Denis Zharkov 34d408eb7b Simple workaround for problem described in KT-6437
JS backend generate invalid code when inlining within constructor using property
2014-12-11 16:04:04 +03:00
Denis Zharkov c6d6aebd2f Added tests for stdlib Array constructors 2014-12-11 16:04:04 +03:00
Denis Zharkov fe9599d588 Removed codegen of Array-constructor with lambda 2014-12-11 16:04:04 +03:00
Denis Zharkov d345ba05dd Added inline function "Array" into stdlib
It has the same signature and semantics as Array constructor had
Also made Array constructor private and accepting no arguments
2014-12-11 16:04:03 +03:00
Denis Zharkov 654411a0b0 Refactored tests using Array constructor:
Some moved to tests with stdlib
Some changed to use arrayOfNulls
2014-12-11 16:04:03 +03:00
Denis Zharkov abbcf61183 JVM Backend: always inline callable containing reified TP 2014-12-11 16:04:02 +03:00
Denis Zharkov b86e19782c Moved containsReifiedTypeParameters to DescriptorUtils 2014-12-11 16:04:02 +03:00
Nikolay Krasko 0231aeb017 Memory leak in PermGen of Kotlin Gradle plugin when demon is used (KT-5420)
Stop background thread in Intellij Idea api and clear thread locals to allow gc the created class loader

 #KT-5420 In Progress
2014-12-11 15:30:01 +03:00
Nikolay Krasko 727c49146b Prepare for KT-5420 - Copy files before patch 2014-12-11 15:25:18 +03:00
Zalim Bashorov 6b50d74056 JS backend: use special JsScope(JsDynamicScope) for names from dynamic calls instead of use containing scope to avoid the impact on local names. 2014-12-11 13:17:49 +03:00
Zalim Bashorov af82e69214 JS tests: added tests for dynamic. 2014-12-11 13:17:49 +03:00
Zalim Bashorov 7d9b824411 JS tests: use js files from some places by default:
* add all js files from testData/_commonFiles
* add all js files from <testDir>/_commonFiles
* add <testDir>/cases/<testName>.js if it exists
2014-12-11 13:17:48 +03:00
Zalim Bashorov 2f6a135135 JS tests: added doTest and checkFooBoxIsOkByPath to BasicTest to simplify using generated tests. 2014-12-11 13:17:47 +03:00
Zalim Bashorov 4c9fbcd525 JS frontend: introduce some JavaScript specific constants. 2014-12-10 22:48:02 +03:00