Commit Graph

17732 Commits

Author SHA1 Message Date
Zalim Bashorov dd1fffae40 Minor in JS tests: load and cache kotlin_lib_compiled.js 2014-10-06 23:18:52 +04:00
Zalim Bashorov ce4bbb906b JS tests: disabled linter. 2014-10-06 23:18:51 +04:00
Zalim Bashorov 36bad02e67 Minor in JS tests: cleanup RhinoFunctionResultChecker and dependent classes. 2014-10-06 23:18:51 +04:00
Zalim Bashorov 9290c3aad7 JS tests: HACK for use JsTestsAsserter in JS tests 2014-10-06 23:18:51 +04:00
Zalim Bashorov 7a51ef5723 Stdlib: fix build -- use named object instead of instance of Any because Any not mapped yet in JS backend. 2014-10-06 23:18:51 +04:00
Zalim Bashorov c142253fb9 JS stdlib: droped unnecessary jutilCode.kt 2014-10-06 23:18:51 +04:00
Zalim Bashorov 9827a5a21d Minor in JS stdlib: fix annotations.kt 2014-10-06 23:18:51 +04:00
Zalim Bashorov 23151936b6 JS stdlib: added volatile and synchronized. 2014-10-06 23:18:50 +04:00
Zalim Bashorov 80294f53ad JS stdlib: drop TuplesCode.kt -- switch to use tuples from stdlib. 2014-10-06 23:18:50 +04:00
Zalim Bashorov 0cac7c32b6 Stdlib: Deprecated.kt splitted to common and jvm parts. 2014-10-06 23:18:50 +04:00
Zalim Bashorov 3bc80a6d05 Stdlib: Char.kt splitted to common and jvm parts. 2014-10-06 23:18:50 +04:00
Zalim Bashorov d7dfbe40a4 Stdlib: moved CharSequence.size and String.size to StringJVM.kt because they are intrinsic in JS. 2014-10-06 23:18:50 +04:00
Zalim Bashorov 4ba4484683 Stdlib: moved setOf and linkedListOf from JUtilJVM.kt to JUtil.kt. 2014-10-06 23:18:49 +04:00
Zalim Bashorov 5b80eef381 Added ant step for compilation Kotlin stdlib to JS. 2014-10-06 23:18:49 +04:00
Valentin Kipyatkov 5ae756addb Quickfix to correct signature of method with 'override' to not include 'override' in signature text 2014-10-06 21:26:55 +04:00
Valentin Kipyatkov 317607db70 Corrected quickfix to correct signature of method with 'override' to:
- not loose annotations and other stuff
  - not include visibility modifiers into the name and into the code generated
2014-10-06 21:26:55 +04:00
Valentin Kipyatkov 89ea4d5a85 More quickfixes to use API for setting type ref 2014-10-06 21:26:55 +04:00
Valentin Kipyatkov d876e85eb2 Added API for changing type ref for function/variable and refactored code in some quickfixes to use it 2014-10-06 21:26:55 +04:00
Valentin Kipyatkov 2036b87ccf Deleted strange unused method 2014-10-06 21:26:55 +04:00
Evgeny Gerashchenko 6e8002138e Made Kotlin available for IDEA 140.* (trunk after 14.0) 2014-10-06 20:03:58 +04:00
Evgeny Gerashchenko dd0436cd3a Updated base URL for jb_update_continuous_local.
It wasn't updated on time when Kotlin was transferred from IDEA 13 to 14.
2014-10-06 19:17:31 +04:00
Nikolay Krasko 44b8e22bef More tests for generating methods from different caret positions 2014-10-06 17:53:10 +04:00
Nikolay Krasko 3c6566c1b1 Auto generate "after"-file if it's not present 2014-10-06 17:53:08 +04:00
Nikolay Krasko 60a7a57e65 Auto insert caret and selection to "after" file 2014-10-06 17:53:07 +04:00
Nikolay Krasko 27b654cc50 Refactoring: rename and make public 2014-10-06 17:53:05 +04:00
Nikolay Krasko c05d30de38 Refactoring: extract method 2014-10-06 17:53:03 +04:00
Nikolay Krasko 774af134fa Move caret to generated element and add selection 2014-10-06 17:53:02 +04:00
Nikolay Krasko a50720d74d Remove rest of whitespace on override or implement to insert generated at caret offset 2014-10-06 17:53:00 +04:00
Nikolay Krasko 03d1c64d27 KT-5103 No delegated members in Override/Implement
#KT-5103 Fixed
2014-10-06 17:52:41 +04:00
Nikolay Krasko a0404b11b0 Refactoring: use resolve session instead of binding context 2014-10-06 17:52:33 +04:00
Nikolay Krasko c80cdb4790 getContainingFile() and getProject() have to be executed under read lock 2014-10-06 15:27:01 +04:00
Alexey Sedunov 74242a5fd9 Move: Updated test data (functions/properties are not imported by default) 2014-10-06 14:23:50 +04:00
Alexey Sedunov 1353e7f56b Find Usages: Disable by-convention search of invoke(). Improve scanner
accuracy when indexing possible references to component functions
2014-10-06 14:23:49 +04:00
Pavel V. Talanov 5e6619e368 Increase LibraryModificationTracker when external annotations are changed
Library cache is dropped when there are changes to external annotations
2014-10-03 21:35:11 +04:00
Pavel V. Talanov 95302fd540 Fix not generating KotlinLightField for OBJECT$ and INSTANCE$ fields
Fix navigation from Java to such fields
Fix TODO in converter
2014-10-03 21:35:06 +04:00
Pavel V. Talanov b2ec5e1ec4 Test reference resolve from Java to Kotlin
Cases cover the most basic features
Sadly it was missing before
2014-10-03 21:35:00 +04:00
Pavel V. Talanov af963ea244 Fix being unable to find declaration for substituted callable from library
#KT-5900 Fixed
#KT-5901 Fixed
2014-10-03 21:33:18 +04:00
Pavel V. Talanov 8f52f71378 Remove warn on performing analysis from dispatch thread
This is outdated since lazy resolve can be called from dispatch thread (Intentions do it)
2014-10-03 21:33:18 +04:00
Pavel V. Talanov 8db599c68a Convert Java file to Kotlin: do not ask whether to backup files
Do not backup files

 #KT-5530 Fixed
2014-10-03 21:33:17 +04:00
Alexey Sedunov be2713b59c Minor: Rename CreateFunctionFromUsageFix -> CreateCallableFromUsageFix 2014-10-03 20:18:45 +04:00
Alexey Sedunov ae7c5e1323 Create From Usage: Do not fail on qualifier receiver when it doesn't have type 2014-10-03 20:18:44 +04:00
Alexey Sedunov b680b74ecb Create From Usage: Do not suggest list of type candidates when there is at most one 2014-10-03 20:18:43 +04:00
Alexey Sedunov 5ade563902 Create From Usage: Join local "vars" with their initializers 2014-10-03 20:18:43 +04:00
Alexey Sedunov 865c793561 Create From Usage: Do not suggest "val" for references used as assignment left-hand side 2014-10-03 20:18:42 +04:00
Alexey Sedunov 58126b28ca Create From Usage: Quick-fix for properties 2014-10-03 20:18:41 +04:00
Alexey Sedunov 8386bcd4e0 Create Local Variable From Usage: Support lambdas 2014-10-03 20:18:39 +04:00
Alexey Sedunov 6ad2157806 Create From Usage: Quick-fix for value parameters 2014-10-03 20:18:39 +04:00
Alexey Sedunov 73fc984c4c Change Signature: Fix detection of conflicts in generic classes 2014-10-03 20:18:37 +04:00
Michael Bogdanov 609caa8159 Clean 2014-10-03 17:24:15 +04:00
Michael Bogdanov 15043b3c6d Fixes for KT-4991: Prefix/postfix expressions resolved to local extensions are not supported in codegen;
KT-4989: Verify error on local functions and extensions;
KT-4987: NegativeArraySizeException on local extension convention function on nullable Int

  #KT-4991 Fixed
  #KT-4989 Fixed
  #KT-4987 Fixed
2014-10-03 17:24:14 +04:00