Commit Graph

22508 Commits

Author SHA1 Message Date
Yan Zhulanow dc71ab5bb3 EA-211010: Fix receiver parameter name for lambdas passed as value arguments 2020-02-14 17:35:18 +09:00
Yan Zhulanow be99f44c4f EA-209623: Check library disposed state 2020-02-14 17:35:18 +09:00
Yan Zhulanow 615d24bbd2 Minor: Rename KotlinStepOverInlineFilter to KotlinStepOverFilter 2020-02-14 17:35:17 +09:00
Yan Zhulanow f129ab55c5 Debugger: Rewrite step out action
This commit fixes the following tests:
 - KotlinSteppingTestGenerated.Custom.testStepOutInlineFunctionStdlib
 - KotlinSteppingTestGenerated.StepOut.testStepOutSeveralInlineArgumentDeepest
2020-02-14 17:35:17 +09:00
Yan Zhulanow f115bde682 Debugger, BE: Provide Java-like stepping for 'for' loops
- Visit '}' instead of 'for' keyword on post-condition
- Visit 'for' keyword on pre-condition
2020-02-14 17:35:17 +09:00
Yan Zhulanow 9cba72d5dd Debugger: Remove flaky sleep-based stepping tests 2020-02-14 17:35:17 +09:00
Yan Zhulanow 01a6e7abf3 Debugger, eval4j: Remove eager class loading in findField() (KT-35354) 2020-02-14 17:35:17 +09:00
Yan Zhulanow 8f29f8bc9d Debugger: Rewrite step over action (KT-14296)
The main goal is to make behavior similar to what happens in Java. For instance, now we always skip lambdas.
Also, we can reliably use '$i$f' and '$i$a' synthetic local variables. There is no need in complicated hacks any more.
2020-02-14 17:35:17 +09:00
Yan Zhulanow b7449c2d6e Debugger, minor: Move Action to its own file, rename to KotlinStepAction 2020-02-14 17:35:17 +09:00
Yan Zhulanow dd4a8d01c9 Debugger: Remove obsolete hacks needed for old Android dex 2020-02-14 17:35:16 +09:00
Yan Zhulanow dd743f05c1 Debugger: Remove/change tests for the deprecated Android dex 2020-02-14 17:35:16 +09:00
Yan Zhulanow f912602ddc Debugger, minor: Move KotlinSourcePosition to top level 2020-02-14 17:35:16 +09:00
Yan Zhulanow 2df646e273 Debugger, minor: Remove unneeded nullability dance 2020-02-14 17:35:16 +09:00
Yan Zhulanow 1a3553cdb7 Debugger: Simplify method filters, use smart pointer in KotlinLambdaMethodFilter 2020-02-14 17:35:16 +09:00
Yan Zhulanow c6262b5ff2 Debugger, minor: Fix element equivalence check in basic step filter 2020-02-14 17:35:16 +09:00
Yan Zhulanow fc09534464 Debugger, minor: move step filters to the 'filter' package 2020-02-14 17:35:16 +09:00
Yan Zhulanow d53c554c8c Debugger, minor: Add missing 'const' modifier 2020-02-14 17:35:16 +09:00
Yan Zhulanow 6d606e5291 Debugger, minor: Move createStepOverCommandWithCustomFilter() to DebuggerSteppingFilter 2020-02-14 17:35:16 +09:00
Yan Zhulanow 26371ea023 Debugger, minor: Update getActiveFilters() implementation, use prepend() 2020-02-14 17:35:16 +09:00
Toshiaki Kameyama 0c9720f20c ReplaceGetOrSetInspection: do not report for 'get' with spread operator
#KT-36171 Fixed
2020-02-14 08:47:10 +03:00
Igor Yakovlev a67d97bdf8 Remove redundant fake facade classes
Fixed #KT-35122 #EA-218642 #EA-217640
2020-02-13 19:08:54 +03:00
Nicolay Mitropolsky bf9d4f065b Uast: eliminating the kotlin.uast.multiresolve.enabled, it is always true for a long time 2020-02-13 15:54:48 +03:00
Nicolay Mitropolsky e4b7c39110 Uast: forcing kotlin.uast.force.uinjectionhost=true always 2020-02-13 15:54:48 +03:00
Ilya Kirillov 531a63bd19 Show experimental features panel only for non-stable plugin versions
Also, use registry as backend for features settings
2020-02-13 14:59:42 +03:00
Vladimir Dolzhenko 9d51180202 Guard resolve calls with runWithCancellationCheck
Relates to #KT-35135
2020-02-13 12:47:58 +01:00
Mikhail Zarechenskiy 74becc7e96 Fix compilation of idea module for old inference
Also, fix code in a way so it'll compile in NI & -progressive too
2020-02-13 14:46:02 +03:00
Vladimir Dolzhenko 918895b88f Avoid using quite new ScratchFileService API
Relates to #KT-35918
2020-02-13 12:10:27 +01:00
Mikhail Zarechenskiy 489c4ec5ec Fix "progressive" warnings to fix compilation under progressive mode 2020-02-13 13:26:11 +03:00
Mikhail Zarechenskiy c64577b735 Temporary fixes for Kotlin project after enabling NI
Most of these fixes will gone away after compiler bootstraping
2020-02-13 11:15:57 +03:00
Dmitry Gridin 8da05ed597 RemoveReturnLabelFix: introduce labelName parameter 2020-02-13 13:51:34 +07:00
Dmitry Gridin 7c65bb2e3f AbstractDiagnosticBasedMigrationInspection: cleanup code 2020-02-13 13:51:34 +07:00
Dmitry Gridin b98bdca849 RemoveAnnotationFix: inline default argument 2020-02-13 13:51:34 +07:00
Dmitry Gridin f8a21340d0 ProhibitRepeatedUseSiteTargetAnnotationsMigrationInspection: add test
#KT-36257
2020-02-13 13:51:33 +07:00
Dmitry Gridin 09e6ffdb0a AbstractDiagnosticBasedMigrationInspection: make lazy initialization 2020-02-13 13:51:33 +07:00
Valentin Kipyatkov cfc2c0fb20 Changes after rebasing on master 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov 4f5d121478 Minor code improvements 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov e7c72637a1 Removed misleading comments from test data 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov ae578e0a5d Copyright comments 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov ee6d6adf70 processAllExactUsages() only for KtDeclaration 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov c33a4c5c5b Code formatting 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov 3ccb8fa3a8 Workaround for compiler crash 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov e71bd4e4a4 No need to intersect with element's useScope - it's performed by reference search by default 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov f43626f57f Refactoring 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov 826c5dd92e Minor 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov 3897f51f8e Refactoring code 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov f60d24c621 Refactoring 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov 1b5b0d2839 Minor refactoring 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov af32cad1ae Minor 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov fd7331bbc0 Refactoring 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov 8008185b77 Renamed mistyping in function name 2020-02-13 07:40:34 +02:00