Commit Graph

30877 Commits

Author SHA1 Message Date
Nikolay Krasko d8a2cab708 Bad merge in AbstactIntentionTest that made tests useless 2016-04-05 22:12:31 +03:00
Dmitry Jemerov 01b0cfb552 don't parse lines starting with @ as KDoc tags if they're inside a Markdown code fence
#KT-11789 Fixed
2016-04-05 19:48:51 +02:00
Stanislav Erokhin ad002c4f09 Minor. Fix file name & regenerate tests. 2016-04-05 20:45:27 +03:00
Kirill Rakhman a895a3e3de ConvertToForEachFunctionCallIntention: convert 'continue' to 'return@forEach'
Fixed #KT-11764
2016-04-05 18:48:02 +02:00
Valentin Kipyatkov d5182ffe16 Minor change on code review 2016-04-05 19:33:08 +03:00
Valentin Kipyatkov e7fa0bec9a Ctrl-Q and other PsiElement-based features to work for synthetic java properties
#KT-11676 Fixed
2016-04-05 19:33:07 +03:00
Valentin Kipyatkov 2aba11abb8 Added test for generic operator 2016-04-05 19:33:07 +03:00
Valentin Kipyatkov 3aff4d4c17 Smart completion to use super type for override if no explicit type specified 2016-04-05 19:33:06 +03:00
Valentin Kipyatkov 7af67da4ac Better smart completion after "by" for override property with no explicit type specified 2016-04-05 19:33:06 +03:00
Valentin Kipyatkov f85de3aac7 Added better way to construct FuzzyType 2016-04-05 19:33:05 +03:00
Valentin Kipyatkov e18fb20d5a Completion after "by" for top-level properties 2016-04-05 19:33:05 +03:00
Valentin Kipyatkov fe9d6aca9a More correct test data 2016-04-05 19:33:04 +03:00
Valentin Kipyatkov 24764ed865 Checking for conflicting substitutors in completion after "by" 2016-04-05 19:33:04 +03:00
Valentin Kipyatkov e05d6a7056 Smart completion after "by" works for getValue/setValue in generic class 2016-04-05 19:33:03 +03:00
Valentin Kipyatkov 4dde458e84 Smart completion after "by" works for generic properties too 2016-04-05 19:33:02 +03:00
Valentin Kipyatkov 20ac76fe3a Member functions of enum should not be in smart completion 2016-04-05 19:33:02 +03:00
Valentin Kipyatkov 9c6fed1622 Enabled old test 2016-04-05 19:33:01 +03:00
Valentin Kipyatkov 3e09a6902a Renamed test 2016-04-05 19:33:01 +03:00
Valentin Kipyatkov 7b4f26d1b5 Minor changes on code review 2016-04-05 19:33:00 +03:00
Valentin Kipyatkov 9ebf94b4cf KT-11609 No named arguments completion should be after dot
#KT-11609 Fixed
2016-04-05 19:32:59 +03:00
Valentin Kipyatkov 471b673bdd Dropped HeuristicSignatures because there are supported by the language already 2016-04-05 19:32:59 +03:00
Valentin Kipyatkov 88bdf88bbb "Delegates" members in smart completion after "by"
#KT-6231 Fixed
2016-04-05 19:32:58 +03:00
Valentin Kipyatkov ae0d840aab "Static members" completion after "by" 2016-04-05 19:32:58 +03:00
Valentin Kipyatkov 6fa230311c Show substituted type arguments for type instantiation items 2016-04-05 19:32:57 +03:00
Valentin Kipyatkov 074c6c8dcd Minor 2016-04-05 19:32:57 +03:00
Valentin Kipyatkov 0edc5c15e2 Complete type instantiation items after "by" 2016-04-05 19:32:56 +03:00
Valentin Kipyatkov ba6accd5f9 Correct substitutions for smart completion after "by" and "in" 2016-04-05 19:32:55 +03:00
Valentin Kipyatkov 7d3229538e One more test 2016-04-05 19:32:55 +03:00
Valentin Kipyatkov e8c35e16e0 Smart completion after "by" and "in": non-imported operators supported 2016-04-05 19:32:54 +03:00
Valentin Kipyatkov cda539d769 Initial implementation of smart completion after "by"
#KT-11787 Fixed
2016-04-05 19:32:37 +03:00
Valentin Kipyatkov c2065c1856 "contains" now requires to be marked as operator + no heuristic signature for contains needed anymore 2016-04-05 18:44:06 +03:00
Mikhail Glukhikh 1b9c6e0ea2 Add variance (in / out) modifier inspection #KT-11090 Fixed 2016-04-05 17:47:29 +03:00
Mikhail Glukhikh 7c02a1eaad Refactoring: VarianceChecker / VarianceCheckerCore, check variance for a separate class 2016-04-05 17:47:20 +03:00
Mikhail Glukhikh 78a898651b Code cleanup: VarianceChecker 2016-04-05 17:45:51 +03:00
Mikhail Glukhikh c1cbd26eb9 Minor refactoring: let implement interface 2016-04-05 17:45:47 +03:00
Pavel V. Talanov 8fe14b7ba5 KT-11765 Analyze code in anonymous initializer of inteface
#KT-11765 Fixed
2016-04-05 15:04:07 +03:00
Alexey Andreev 40dc5f24d5 Generalize pattern that matches JS module declaration to accept unicode characters
(cherry picked from commit eb44819)
2016-04-05 14:40:27 +03:00
Alexey Andreev 20c0f62d8b Speed-up looking up modules in JS files. This reduces the time needed for JS backend tests to pass
(cherry picked from commit 951ec82)
2016-04-05 14:40:27 +03:00
Alexey Andreev b3698b1177 Rename JsAstUtils.fqn to fqnWithoutSideEffects. Move PropertyTranslator to appropriate package 2016-04-05 14:40:26 +03:00
Alexey Andreev 0caff1e504 Refactor JS optimizer to use RecursiveJsVisitor where possible and introduce more self-descriptive names in TemporaryAssignmentElimination. Add TODOs and comments for code pieces with non-obvious meaning. 2016-04-05 14:40:26 +03:00
Alexey Andreev 4d126096a1 Invert MetadataProperties.withoutSideEffects to sideEffects 2016-04-05 14:40:26 +03:00
Alexey Andreev b053c54933 Add more hints about property access that is provable has no side effect. Refactor namer 2016-04-05 14:40:25 +03:00
Alexey Andreev 4a53f5c0b8 Don't relocate temporary variable which receives property access, unless it's provable that this property don't have side effects 2016-04-05 14:40:25 +03:00
Alexey Andreev cfdce8eaca Rewrite temporary variable elimination 2016-04-05 14:40:25 +03:00
Alexey Andreev 8709289b0a Prohibit from eliminating non-local temporary variables 2016-04-05 14:40:24 +03:00
Alexey Andreev af7ddb4572 Adds test infrastructure for JS optimizer. Adds simple tests 2016-04-05 14:40:24 +03:00
Alexey Andreev a7fcbb614d Some cleanup in JS optimizer 2016-04-05 14:40:24 +03:00
Alexey Andreev 3571201e9c Prevent JS optimizer from inserting duplicate variable declarations 2016-04-05 14:40:23 +03:00
Alexey Andreev 4d7906fe44 Prevent temporary variable from substituting to branches of ternary conditional expression, since it can sometimes violate evaluation order 2016-04-05 14:40:23 +03:00
Alexey Andreev e6e3275906 Implement reduction of if statement to ternary conditional expression 2016-04-05 14:40:23 +03:00