Alexander Udalov
3f1533c35b
Restore support for local class literals in annotation arguments
...
This was broken in c1ab08c8ce where we started to represent KClassValue
as a ClassId of the referenced class + number of times it's been wrapped
into kotlin.Array. Local classes do not have a sane ClassId, so in this
change we restore the old behavior by representing KClassValue with a
sealed class value instead
#KT-29891 Fixed
2019-02-25 19:22:09 +01:00
Yan Zhulanow
cadb70f64a
Evaluator: Allow to evaluate expression on synthetic lines in .kt files
2019-02-25 14:44:00 +03:00
Yan Zhulanow
16266259f5
Evaluator: Handle function context gracefully. Use file scope as a fallback instead of error scope
2019-02-25 14:44:00 +03:00
Yan Zhulanow
28e4356e6e
Restore original variable name mangling for captured/receiver $this
...
Design for the new one is still not finished.
2019-02-25 14:43:59 +03:00
Yan Zhulanow
632b9ac38c
Evaluator: Support 'field' variable evaluation for top-level properties
2019-02-25 14:43:59 +03:00
Yan Zhulanow
81f4e2fb3b
Evaluator: Support delegated local variables
2019-02-25 14:43:59 +03:00
Yan Zhulanow
77bec27c99
Evaluate parameter value instead of backing field in primary constructor
2019-02-25 14:43:59 +03:00
Yan Zhulanow
6cb2146d31
Remove 'allowSpecialClassNames' extraction option
2019-02-25 14:43:58 +03:00
Yan Zhulanow
34b03c45d7
Add a test for escaped names supported in the new evaluator (KT-29661)
2019-02-25 14:43:58 +03:00
Yan Zhulanow
65b6098242
Further refinements in variable displaying (Kotlin mode)
...
- Remove synthetic outer this for lambdas
- Recognize captured this for interface default methods
2019-02-25 14:43:57 +03:00
Yan Zhulanow
300c102c3f
Remove BeforeExtractFunctionInsertionTest, the new evaluator doesn't depend on the 'extract function' refactoring
2019-02-25 14:43:57 +03:00
Yan Zhulanow
0657a3d399
New evaluator that doesn't depend on the 'extract function' refactoring (KT-28192, KT-25220, KT-25222, KT-21650)
2019-02-25 14:43:57 +03:00
Yan Zhulanow
d039e3b1c0
Hide synthetic variables for local functions and destructured lambda parameters (Kotlin variables)
2019-02-25 14:43:56 +03:00
Yan Zhulanow
47f0b68a8c
Change mangling for destructured lambda parameters
2019-02-25 14:43:56 +03:00
Yan Zhulanow
7fb8357b28
Allow '// PRINT_FRAME' option for multi-breakpoint stepping tests
2019-02-25 14:43:55 +03:00
Yan Zhulanow
16b94feea6
Minor: Remove an obsolete TODO comment
2019-02-25 14:43:55 +03:00
Yan Zhulanow
6cd980765c
Do not issue exceptions for non-captured local variables
...
This partly fixes KT-28192.
2019-02-25 14:43:55 +03:00
Yan Zhulanow
4ae01badff
Extract function: avoid same parameter names
2019-02-25 14:43:55 +03:00
Yan Zhulanow
7de5ddaac9
Fix receiver evaluation for primitive receiver types
2019-02-25 14:43:55 +03:00
Yan Zhulanow
cf9461847b
Hide unrelated this entries in Kotlin Watches mode
2019-02-25 14:43:54 +03:00
Yan Zhulanow
f5a3a46e76
Watches: Hide 'this' if it's a continuation
2019-02-25 14:43:54 +03:00
Yan Zhulanow
227a7e5609
Provide access to 'coroutineContext' inside suspend functions/lambdas (KT-24829)
2019-02-25 14:43:54 +03:00
Yan Zhulanow
cf925fc2ad
Activate Kotlin stack frame even if there is no Kotlin strata
2019-02-25 14:43:54 +03:00
Yan Zhulanow
f6b2e673f7
Debugger: Display async stack trace elements for suspend callers (KT-28728)
2019-02-25 14:43:53 +03:00
Yan Zhulanow
4c681c787d
Watches: Add Kotlin/JVM views to watches window (KT-28134, KT-28087, KT-22250)
...
Kotlin mode: show only Kotlin variables and captured values. The variable names are Kotlin-friendly.
JVM mode: show all variables available in the current stack position, including synthetic ones.
2019-02-25 14:43:53 +03:00
Yan Zhulanow
5c419fc629
Evaluator: New implementation for variable finder
...
Support both old and new receiver variable conventions in variable finder.
2019-02-25 14:43:53 +03:00
Yan Zhulanow
ea462091c4
Support new convention for local variables name mangling: '$receiver' -> '$this$<label>' (KT-26913)
2019-02-25 14:43:53 +03:00
Natalia Selezneva
e2b5134048
Allow to run scratch without module selected
...
^KT-23985 Fixed
2019-02-25 11:20:49 +03:00
Mikhail Glukhikh
c084eefb65
Fix a bunch of IDE quick-fix tests (related to "convert to run/...")
...
These actions became available more often some days ago
2019-02-25 10:37:46 +03:00
Ilmir Usmanov
1777849ff3
Generate correct linenumber for the debugger to see the return value
...
of suspend function.
#KT-20322 Fixed
2019-02-22 17:37:32 +03:00
Dmitry Gridin
b58bfff843
Fix paramTypeLambdaMismatch test
2019-02-21 19:08:02 +03:00
Dmitry Gridin
147521d6cb
Add intention to introduce import alias
...
#KT-16118 Fixed
#KT-30007 Fixed
2019-02-21 12:25:09 +03:00
Natalia Selezneva
f3c828a17d
Get platform for scripts from script definition
...
Introduce 'platform' property in KotlinScripDefinition (should have a value which exists in TargetPlatform.ALL_KINDS)
^KT-27684 Fixed
2019-02-20 15:59:44 +03:00
Yaroslav Russkih
028a311949
Use https everywhere - tests and test data
2019-02-19 21:35:36 +01:00
Toshiaki Kameyama
80e1fc2ace
Navigation to implementation / overriding method: do not show method of inline class twice
...
#KT-28661 Fixed
#KT-26924 Fixed
2019-02-19 18:27:50 +03:00
Toshiaki Kameyama
779d536605
Redundant getter: fix false positive for 'external' getter
...
#KT-29416 Fixed
2019-02-19 13:03:11 +03:00
Toshiaki Kameyama
5f7dee4194
Convert to scope function: enable on single function call
...
#KT-29099 Fixed
2019-02-19 10:41:20 +03:00
Mikhail Glukhikh
f8e165dbe4
Integrate nullability into cone types, add & use FIR flexible type
...
FIR fake overrides are rendered now more precisely to test this process
2019-02-19 09:54:32 +03:00
Simon Ogorodnik
3a237416c9
Implement FIR loading for Java (classes, supertypes, parameters, funs)
...
Properties aren't implemented yet
FIR symbol provider functions return more specialized types now
Related to KT-28918, KT-29636, KT-29218
#KT-28788 Fixed
2019-02-19 09:54:20 +03:00
Simon Ogorodnik
bd769f8fd7
Add multiplatform test with substitution, fix deep supertypes
...
This commit fixes ambiguity problems introduced before
in MPP tests with deep supertypes
#KT-29636 Fixed
2019-02-19 09:54:16 +03:00
Simon Ogorodnik
840750ee40
Implement basic use-site scopes and override mapping
...
This commit also introduces separate scope processors:
processFunctionsByName and processPropertiesByName, in addition to
existing processClassifiersByName
Ad-hock call resolver starts to discover ambiguities, which leads
to some ambiguity problems in MPP tests with deep supertype hierarchy
Related to KT-29636
2019-02-19 09:52:20 +03:00
Mikhail Glukhikh
6ea2abfc46
FIR override resolve: lookup also interfaces
2019-02-19 09:52:20 +03:00
Mikhail Glukhikh
b3c8e83c58
FIR: make override resolve in use-site session (and module)
...
Related to KT-24078
2019-02-19 09:52:19 +03:00
Mikhail Glukhikh
84b3a17e2b
Type resolve transformer: reorder tower scope
...
This commit prioritizes inner scopes above outer scopes
(before this commit, inner scopes had lowest priority).
NB: really it's not precise enough too,
because explicit importing scope should have higher priority
than inner scopes.
Also fixes problem with total Kotlin resolve test introduced
in previous commit.
2019-02-19 09:52:19 +03:00
Mikhail Glukhikh
bec62acf5b
FIR: introduce callable member symbols & initial member scopes
...
Initial member scopes cover top-level, class-level, and supers
Ad-hock version of call resolve was introduced to test them
NB: after this commit, total Kotlin resolve test cannot finish
because of scope problems in type resolve transformer
Related to KT-24078
#KT-24083 Fixed
2019-02-19 09:52:19 +03:00
Dmitriy Dolovov
83cb2cb99e
CIDR: Patch LLDB pretty printers for K/N < 1.1.1
...
Issue #KT-29625 Fixed
2019-02-19 10:49:08 +07:00
Kirill Shmakov
478c18f194
Move data of handmade test from auto-generated tests data dir
...
KT-29187
2019-02-18 20:36:26 +03:00
Toshiaki Kameyama
8e61a13809
Move lambda argument out of parentheses: fix false negative when function type is type parameter
...
#KT-26979 Fixed
2019-02-18 16:48:11 +03:00
Toshiaki Kameyama
b4789b95ef
Rename: fix renaming of label by label reference in loop
...
#KT-29796 Fixed
2019-02-18 15:12:39 +03:00
Nicolay Mitropolsky
76bdfddfea
Making KotlinAnnotatedElementsSearcher able to search for parameters (KT-27794)
2019-02-18 14:08:09 +03:00