Commit Graph

11071 Commits

Author SHA1 Message Date
Zalim Bashorov bf60cb2fee JS backend: fixed the division operation for integral types.
#KT-2342 fixed
2013-07-23 19:10:54 +04:00
Zalim Bashorov e8b95ca074 JS backend: simplify and rename tests for closure in nested functions. 2013-07-23 19:10:54 +04:00
develar 462e1bdc98 JS backend: fixed the variable capturing in deeply nested functions which mixed with the object declaration.
(cherry picked from commit 41cb0ab)
2013-07-23 19:10:54 +04:00
develar 4a37d56a1b JS backend: fixed the variable capturing in deeply nested functions.
(cherry picked from commit cee29a6)
2013-07-23 19:10:54 +04:00
develar 84542872b8 JS backend: cleanup, use BindingContextUtils.getNotNull instead BindingContextUtils.get + assert
(cherry picked from commit 111805f)
2013-07-23 19:10:54 +04:00
develar 66325808c4 JS backend: switched to use native Function.bind(from ES5) instead library function b0-b4.
Removed unnecessary functions from jslib.

(cherry picked from commit f6550e9)
2013-07-23 19:10:54 +04:00
develar 9e1c56b02e JS basckend: removed useless artifact item kotlin-js-libraries.zip.
We use `kotlin-jslib.jar` from ant build target `jslib`.

(cherry picked from commit 645e596)
2013-07-23 19:10:54 +04:00
develar 2419fc36ed JS backend: partial fix for #KT-2670 -- throw NPE when unsafe cast null value to not nullable type. 2013-07-23 19:10:54 +04:00
develar 78945a9461 JS backend: don't use the temporary variables in SafeCall and SureCall when is not necessary.
For example:
val a : A? = null
a!!
a?.foo()

translated before:
var a = null;
var tmp$0, tmp$1;
(tmp$0 = a) != null ? tmp$0 : Kotlin.throwNPE();
(tmp$1 = a) != null ? tmp$1.foo() : null;

translated after:
var a = null;
a != null ? a : Kotlin.throwNPE();
a != null ? a.foo() : null;
2013-07-23 19:10:54 +04:00
develar 94152da97b JS backend: fixed return type for Window.setInterval -- should be Long instead Double? 2013-07-23 19:10:54 +04:00
develar d854f93640 JS backend: using native implementations in kotlin_lib.js for String.startsWith, String.endsWith and String.contains. 2013-07-23 19:10:53 +04:00
Andrey Breslav 8c1da8929b Fix test data (accidentally committed rubbish) 2013-07-23 17:43:33 +04:00
Andrey Breslav d2b1b2e549 Allow newline before : as as? ?: || && 2013-07-23 14:21:36 +04:00
Andrey Breslav 320ed44e43 Eliminate shortcut clash with "Log out" on Mac OS X 2013-07-23 14:14:39 +04:00
Andrey Breslav b1096b8706 Re-throw ProcessCanceledException 2013-07-23 14:05:16 +04:00
Yakov Zaytsev bb364cd393 KT-3771 Fixed 2013-07-22 18:49:56 +04:00
Leonid Shalupov 9cc51d6db1 ignore gradle android tests for now (need to deliver Android SDK to agents) 2013-07-21 17:55:22 +04:00
Leonid Shalupov 9ce456fa1c gitignore: ignore *.versionsBackup from mvn versions:set 2013-07-21 17:54:49 +04:00
Leonid Shalupov cdfd792681 Merge pull request #288 from nskvortsov/master
Kotlin plugin for Google's new android build system
2013-07-21 02:59:24 -07:00
Alexey Sedunov cd6b6e4934 Implement "Safe Delete" refactoring for named functions
Conflicts:
	idea/src/org/jetbrains/jet/plugin/refactoring/safeDelete/KotlinSafeDeleteProcessor.java
2013-07-19 19:53:50 +04:00
Andrey Breslav 6658564bdd Better error message 2013-07-19 17:55:44 +04:00
Nikolay Krasko 0878626af4 Move plugin dependencies into separate configuration files 2013-07-19 13:02:35 +04:00
Nikolay Krasko 56ce58ea79 Add dependency plugins for TestNG plugin 2013-07-19 13:02:34 +04:00
jaysonminard 1f236105a6 Adding right-click run for Kotlin TestNG test classes and methods.
Parallel support to the JUnit implementation, not as fully functional as
TestNG plugin for Java.
2013-07-18 17:01:54 +04:00
develar 12d19dd9d8 JS backend: added wraping to object the local vars which captured in closure.
Moved local functions and function literals to class/namespace definition.

(cherry picked from commit 36c954b)
2013-07-18 16:04:42 +04:00
Zalim Bashorov e292034141 JS backend: fixed trait inheritance implementation in ES3.
Now each traits in same hierarchy represent separate object, instead a single object.
2013-07-18 16:04:42 +04:00
Zalim Bashorov c5f53df70d JS backend: fixed wrong result when compare null and undefined using Kotlin.equals. 2013-07-18 16:04:42 +04:00
Svetlana Isakova 539756ff3e KT-3772 Invoke and overload resolution ambiguity
#KT-3772 Fixed
2013-07-16 20:33:08 +04:00
Svetlana Isakova 3f782523a7 refactoring
extracted method 'isMaximallySpecific'
2013-07-16 20:33:08 +04:00
Maxim Shafirov f5a11960cd These two packages come from eawtstub.jar and automation.jar yet it doesn't make any sense to include those into kotlin compiler 2013-07-16 12:27:31 +04:00
Evgeny Gerashchenko ca02ca6e77 Saved service implementations to constant for performance. 2013-07-15 19:20:48 +04:00
Evgeny Gerashchenko 89b4e5aab8 Loading service implementations by the same class loader as service's 2013-07-15 19:20:47 +04:00
Andrey Breslav 8572ab7a3a Merge pull request #289 from amal/patch-1
Fix outdated code (old tuples syntax)
2013-07-15 04:22:24 -07:00
Amal Samally 8df51ce7f8 Fix outdated code (old tuples syntax)
Partial fix for http://youtrack.jetbrains.com/issue/KT-3775
2013-07-14 18:18:23 -07:00
Leonid Shalupov 0ccb1d5f4a KT-1870 deploy to maven central 2013-07-13 14:25:29 +04:00
Evgeny Gerashchenko 97ae190ed5 Fixed typo (Russian "c" instead of English) 2013-07-12 21:38:42 +04:00
Evgeny Gerashchenko 2a9219b241 Fixed unstable inheritance of adapter + declaration. 2013-07-12 21:09:23 +04:00
Evgeny Gerashchenko 13849f6b6e Choosing most specific super member when building fake override. Previously, random one was chosen. 2013-07-12 21:09:22 +04:00
Evgeny Gerashchenko b6e7dcbb02 Stable member sorting. 2013-07-12 21:09:22 +04:00
Evgeny Gerashchenko 5c8f87658a Made SAM adapters final. 2013-07-12 21:09:22 +04:00
Evgeny Gerashchenko 822c42603f Created extension point for overridability checks. 2013-07-12 21:09:22 +04:00
Evgeny Gerashchenko fc99ad35b3 Supported complex cases of SAM adapters inheritance/overriding. 2013-07-12 21:09:22 +04:00
Evgeny Gerashchenko f17290b4f2 Typo. 2013-07-12 21:09:21 +04:00
Alexey Sedunov f2dd8a6b60 Implement "Safe Delete" refactoring for classes and objects 2013-07-12 21:06:05 +04:00
Alexey Sedunov bcad49246b Implement description provider for "refactoring" location 2013-07-12 21:06:04 +04:00
Leonid Shalupov d9a898330b fix maven-deploy-plugin version 2013-07-12 20:17:21 +04:00
Nikita Skvortsov 79e7c5bd7b test external annotations 2013-07-12 18:16:43 +04:00
Nikita Skvortsov 0308465b65 added details to test output 2013-07-12 17:53:53 +04:00
Nikita Skvortsov 6b955f1aef more complex test for android project 2013-07-12 17:53:52 +04:00
Nikita Skvortsov 6633cc28fb Added integration test with Kotlin-only project 2013-07-12 17:53:51 +04:00