Commit Graph

18074 Commits

Author SHA1 Message Date
Natalia Ukhorskaya 6bf0152f6d Fix KotlinEvaluateExpressionTestGenerated:testSimple 2014-10-17 10:37:54 +04:00
Denis Zharkov ec63394121 Check that boxing instruction is simple call
like T.valueOf(unboxType(T))

 #KT-6047 fixed
2014-10-17 01:22:25 +04:00
Michael Nedzelsky 34269e1a3e JS backend: fix KT-6037 (default arguments in simple function with expression as body)
#KT-6037 Fixed
2014-10-17 00:46:05 +04:00
Evgeny Gerashchenko 954a011721 Added incremental cache format versioning. 2014-10-16 22:01:45 +04:00
Evgeny Gerashchenko 0eda00e2df Rearranged code in abstract incremental compilation test. 2014-10-16 22:01:44 +04:00
Evgeny Gerashchenko f63f1274cd Changed shortcuts for "Show expression type".
Using same shortcuts as in Scala.
2014-10-16 19:17:09 +04:00
Alexey Tsvetkov 5fb5cea4a3 JS inline: fixed bug with simple return inline function, when result is not used.
When function body can be expression
(contains only one statement, and it's return),
 result was saved to resultExpr, not body.

 But when result was not used, resultExpr was not
 used then.

 Fixed by checking, that result is used in first place.
2014-10-16 17:16:10 +04:00
Alexey Tsvetkov be82d4c661 JS backend: increment counter for fresh names 2014-10-16 17:16:10 +04:00
Alexander Udalov f0169f4181 Regenerate tests 2014-10-16 17:10:33 +04:00
Alexander Udalov 6698e0ecc9 Add test for outdated smart cast with elvis issue
#KT-5335 Obsolete
2014-10-16 16:38:11 +04:00
Alexander Udalov 6387076efe Uncomment previously failing code in J2K after fixing KT-5343 2014-10-16 16:38:04 +04:00
Alexander Udalov 159878e09d Pass correct outer instance in complex case of inheritance
#KT-5343 Fixed
2014-10-16 16:16:55 +04:00
Alexander Udalov 61674fb3d9 Don't put outer instance twice for anonymous object extending inner
#KT-5343 In Progress
2014-10-16 16:16:54 +04:00
Alexander Udalov 7315146753 Fix and refactor ExpressionCodegen#pushClosureOnStack
- change Closure parameter to ClassDescriptor, load closure in the beginning
- invert and rename boolean parameter, also use it only to prevent pushing
  dispatch receiver (not the extension receiver) onto the stack because the
  only non-trivial usage of it is preceded by manual handling of the dispatch
  (not extension) receiver. This fixes innerOfLocalCaptureExtensionReceiver.kt
2014-10-16 16:16:54 +04:00
Valentin Kipyatkov 79123d6bb6 Minor 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov 6b163bca8a Keyword completion uses simple prefix matching only 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov 1e5ea703b5 Added a test 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov 0da62a8815 Keyword completion: added missing 'out' keyword 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov 6dc17e5a03 Minor refactoring in keyword completion 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov 96a5e573c3 Fix in keyword completion 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov 8e1a89230e Keyword correction: smaller file text 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov f7dc0fca74 Keyword correction: more correct behavior + smaller file text 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov 525a1cc3c6 Fixed tests 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov d65d3b9068 Checked that KT-2795 has been fixed
#KT-2795 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov 9663fac5b1 Checked that KT-2832 has been fixed
#KT-2832 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov 50e1ec9c4f Fixed KT-5809 Code completion after "?." should not include keywords
#KT-5809 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov 549171d043 Completely rewritten keyword completion implementation using another approach
#KT-2816 Fixed
2014-10-16 15:14:21 +04:00
Natalia Ukhorskaya 6a4fe52e51 Fix Android tests 2014-10-16 14:31:57 +04:00
Andrey Breslav a128b94e2e Typo fixed: "cast", not "casted" 2014-10-16 14:10:14 +04:00
Andrey Breslav 9feebb1dc6 "typedef" replaced with "typeAlias" in the grammar 2014-10-16 14:10:02 +04:00
Nikolay Krasko 4cb276c47f More information about context for assert 2014-10-16 13:01:37 +04:00
Nikolay Krasko 501bb398d4 Update to Idea 139.69.2 2014-10-16 13:01:36 +04:00
Evgeny Gerashchenko 1a3750f31b Stabilized order of static accessors. 2014-10-15 20:38:16 +04:00
Evgeny Gerashchenko 84c7b05781 Stabilized order of methods inherited by delegation. 2014-10-15 20:38:16 +04:00
Evgeny Gerashchenko db45f4a062 Fixed hot swap when closure captures variables
Stabilized order of synthetic constructor parameters in anonymous class.

 #KT-5440 fixed
2014-10-15 20:33:17 +04:00
Valentin Kipyatkov afa59a616c More tests 2014-10-15 17:30:33 +04:00
Valentin Kipyatkov 2365db1367 Fixed KT-6011 Smart completion works for argument of wrong method
#KT-6011 Fixed
2014-10-15 17:30:33 +04:00
Alexey Sedunov b18b888161 PSI Pattern Matching: Fix matching of !!
#KT-6021 Fixed
2014-10-15 15:41:47 +04:00
Alexey Kudravtsev 6f5a2172ac moved more find usages-related stuff to idea-analysis for upsource 2014-10-15 15:11:49 +04:00
Natalia Ukhorskaya fff8bfff5f Debugger: do not throw exception on getting source position for Kotlin object 2014-10-15 14:09:55 +04:00
Andrey Breslav 3453809b4b Defining flexible type semantic equality through subtyping 2014-10-15 14:07:55 +04:00
Andrey Breslav f41a8d2c00 Render "<" properly in HTML 2014-10-15 14:07:54 +04:00
Andrey Breslav 2bf6db003a Error message corrected: packages can't be nested any more 2014-10-15 12:22:35 +04:00
Andrey Breslav 391b57077b KT-5976 Parser recovery is poor on object with parameters
#KT-5976 Fixed
2014-10-15 12:22:35 +04:00
Andrey Breslav d25a858214 "typealias" escaped in DOM API generator 2014-10-15 12:22:33 +04:00
Evgeny Gerashchenko cb9a55b375 Minor. Storing valOrVar in constructor to avoid bad action text for outdated quick fix. 2014-10-15 11:51:02 +04:00
Evgeny Gerashchenko fbcfed6757 Fixed EA-57220. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko b653598df2 Fixed EA-61504. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko 0d17a71ffa Minor. Renamed class. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko ef93a71e78 Made "Remove val/var from parameter" quick fix local. 2014-10-15 11:51:01 +04:00