Natalia.Ukhorskaya
e11f130278
'annotation' keyword should be allowed only on classes
...
#KT-2785 Fixed
2013-07-25 17:00:10 +04:00
Natalia.Ukhorskaya
09b163069f
Check Retention annotation writing annotations in bytecode
2013-07-25 17:00:04 +04:00
Natalia.Ukhorskaya
1066fc7f2a
Minor refactoring: rename methods
2013-07-25 16:58:27 +04:00
Natalia.Ukhorskaya
6d1e46bae0
Extract method
2013-07-25 16:47:06 +04:00
Natalia.Ukhorskaya
c11bd7104c
Write default values for annotation parameters
...
#KT-3197 Fixed
2013-07-25 16:44:03 +04:00
Natalia.Ukhorskaya
73000ec407
Change error message for nullable annotation member
2013-07-25 13:25:02 +04:00
Andrey Breslav
5a5eefece8
Merge branch 'idea13'
2013-07-24 18:24:42 +04:00
Evgeny Gerashchenko
a13092e525
Supported inlining constant properties.
2013-07-24 16:03:01 +04:00
Evgeny Gerashchenko
b721b0211a
Fixed higlighting of replaced expressions.
...
#KT-2637 fixed
2013-07-23 21:43:06 +04:00
Evgeny Gerashchenko
d9bb3b8fb7
Minor. Reformatted.
2013-07-23 21:43:06 +04:00
Evgeny Gerashchenko
a024a17b03
Extracted methods.
2013-07-23 21:43:06 +04:00
Evgeny Gerashchenko
238776eac3
Simplified priority handling.
2013-07-23 21:43:06 +04:00
Evgeny Gerashchenko
5aa4672d32
Adding parameter types for functions if necessary.
...
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko
2cfe11cb6b
Moved method.
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko
0367f1836d
Adding type arguments if necessary.
...
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko
99bfd6d477
Record type arguments when they are inferred.
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko
c22f54055e
Supported vals initialized after.
...
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko
72ed74ab9a
Adding {} in string template if necessary.
...
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko
55b221776b
Inline adds parentheses when it is necessary.
...
Test data for Remove Unnecessary Parentheses was updated, since parentheses in foo && (bar && baz) is not "unnecessary": removing it changes program semantics.
#KT-2637 in progress
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko
a394afcce1
Fixed JetSimpleNameReference.getElement(): now it returns expression, not identifier leaf element.
...
Without it, replacing reference.getElement() with another expression created invalid PSI.
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko
a9a960fd38
Basic local val inlining support.
...
#KT-2637 in progress
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko
0126ee4e2a
Regenerated Java to Kotlin method map (after fixing bug in overridance).
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko
ca3e093e1b
Made test generation silent.
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko
febed55b36
Shared "Generate Tests" run configuration.
2013-07-23 21:43:04 +04:00
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
33efbc3e91
Migrate to IDEA 130.1225
...
Fix the class loader to generate proper resource URLs:
we used to have "!" as a JAR separator, but the correct one is "!/", according to the docs here: http://docs.oracle.com/javase/6/docs/api/java/net/JarURLConnection.html
2013-07-23 17:34:33 +04:00
Andrey Breslav
c1318c2f72
Merge branch 'master' into idea13
2013-07-23 14:34:08 +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