Commit Graph

11185 Commits

Author SHA1 Message Date
Nikolay Krasko 9167e4f1ee Make resolve session be able to resolve class constructor parameters 2013-07-27 03:57:20 +04:00
Nikolay Krasko 27efc3b202 Additional resolve for annotations in lazy resolve 2013-07-27 03:57:18 +04:00
Nikolay Krasko ab4452a508 Refactoring: method rename resolveToExpression -> resolveToElement 2013-07-27 03:57:18 +04:00
Nikolay Krasko b6be094724 Force resolve imports for elements in imports 2013-07-27 03:57:17 +04:00
Nikolay Krasko 32b04531f6 Store information about package declaration in context
This information is used for resolving references in plugin
2013-07-27 03:57:16 +04:00
Nikolay Krasko 94ad93d810 Find line markers with lazy resolve 2013-07-27 03:57:14 +04:00
Nikolay Krasko 642def0133 Do reference resolution with lazy resolve 2013-07-27 03:57:13 +04:00
Nikolay Krasko 2621df3243 Auto generate reference tests 2013-07-27 03:57:13 +04:00
Nikolay Krasko cb19450d8d Refactor multi-reference tests 2013-07-27 03:57:10 +04:00
Nikolay Krasko 970586bfdd Use directive configuring in resolve reference tests 2013-07-27 03:57:10 +04:00
Nikolay Krasko 68bd7405ff Refactoring: remove warning 2013-07-27 03:57:09 +04:00
Nikolay Krasko bf8d5c37ed Refactoring: Fix warnings about absent final and spelling mistake 2013-07-27 03:57:08 +04:00
Nikolay Krasko f558942fdf Make getText work even if action was recognized as inapplicable 2013-07-27 03:57:07 +04:00
Nikolay Krasko ca1c13054a Refactoring: Remove not-null warnings 2013-07-27 03:57:06 +04:00
Zalim Bashorov b14a5f3ea1 Migrate to IDEA 130.1335 2013-07-26 21:33:08 +04:00
Andrey Breslav 7662cbaeb4 Compilation fixed (after CompilerVersion was renamed to KotlinVersion) 2013-07-26 14:30:21 +04:00
Nikolay Krasko 52bb8c3987 Restrict j2k test configuration to j2k module only 2013-07-26 01:24:25 +04:00
Zalim Bashorov db2711c147 Fixed the Plugin Publisher. 2013-07-25 20:23:27 +04:00
Andrey Breslav 387bf2601b Log version in JPS plugin
CompilerVersion.java is moved to cli-common (shared between compiler and JPS plugin) and renamed to KotlinVersion

This is needed because on TeamCity a JPS plugin is configured separately from the compiler, so it may happen that
JPS plugin version X tries to run compiler version X+100, and causes trouble.
2013-07-25 20:18:03 +04:00
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