Andrey Zinovyev
ac0af39660
[FIR][LT] Enable parallel execution for LT tests
2021-04-20 18:13:07 +03:00
Andrey Zinovyev
0a811bdd1a
[FIR][LT] Don't store lexer in static context
2021-04-20 18:13:06 +03:00
Andrey Zinovyev
5fc1514104
[FIR][LightTree] Better expression identification
...
And some refactoring
Regenerate IDE parts
2021-04-20 18:13:06 +03:00
Andrey Zinovyev
2f7d6da22f
[FIR][LightTree] Generate and fix missing tests
...
Add TYPE_PARAMETERS_LIST positioning
Use whole branch as source in when branches
2021-04-20 18:13:05 +03:00
Andrey Zinovyev
b9ae22207e
[FIR] Fix tests data for diagnostic tests
...
For tests failed after light tree changes
2021-04-20 18:13:03 +03:00
Andrey Zinovyev
ee48fc320d
[FIR][LightTree] Mark fake nodes in FOR loop
...
+ fix bunch of tests
2021-04-20 18:13:02 +03:00
Andrey Zinovyev
0a68edf3bd
[FIR][LightTree] More fixes in diagnostic positioning
...
Keep tree padding for modifiers
More REFERENCE_EXPRESSIONS kinds
Fix source for some call expressions
2021-04-20 18:13:01 +03:00
Andrey Zinovyev
f3dc8dfb21
[FIR][LightTree] Use same fake elements kinds as in psi
...
Otherwise type resolution(!) for empty lambda works differently
2021-04-20 18:13:00 +03:00
Andrey Zinovyev
e8e9f67069
[FIR][LightTree] Enum and property source fixes
...
Also set dispatchReceiverType for properties from value params
2021-04-20 18:12:59 +03:00
Andrey Zinovyev
1fb8c3b1d7
[FIR][LightTree] Properly unwrap function inside parentheses
2021-04-20 18:12:58 +03:00
Andrey Zinovyev
05f0507cbb
[FIR][LightTree] Proper source for enum constructor call
2021-04-20 18:12:57 +03:00
Andrey Zinovyev
bed45affe1
[FIR][LightTree] Don't report diagnostics on some nameless declarations
2021-04-20 18:12:56 +03:00
Andrey Zinovyev
684c4c2825
[FIR][LightTree] Don't position on trailing comments
2021-04-20 18:12:55 +03:00
Andrey Zinovyev
0d99b01dcb
[FIR][LightTree] Pass source elements in FOR loop parts
2021-04-20 18:12:54 +03:00
Andrey Zinovyev
8bbdc20809
[FIR][LightTree] Pass source elements in when conditions
2021-04-20 18:12:54 +03:00
Andrey Zinovyev
9c8e92f5af
[FIR][LightTree] Fix DEFAULT positioning strategy for object literals
2021-04-20 18:12:53 +03:00
Andrey Zinovyev
70f9b77cce
[FIR][LightTree] Keep source in FOR loop elements
2021-04-20 18:12:52 +03:00
Andrey Zinovyev
27766c2575
[FIR] Consistent isLocal for objects inside Enum entries
2021-04-20 18:12:51 +03:00
Andrey Zinovyev
7084fec651
[FIR][LightTree] Position strategies fixes
...
Skip leading comments in DEFAULT strategy
Keep node offset 'padding' when getting child
2021-04-20 18:12:50 +03:00
Andrey Zinovyev
8ea3b52454
[FIR][LightTree] Fix finding error nodes in tree
...
When there are links to to 'upper levels' lt elements in fir tree
2021-04-20 18:12:49 +03:00
Andrey Zinovyev
dc19e39dd2
[FIR][LightTree] Properly locate return keyword
2021-04-20 18:12:47 +03:00
Andrey Zinovyev
088db0e138
[FIR] Report SEALED_CLASS_CONSTRUCTOR_CALL on expression
2021-04-20 18:12:46 +03:00
Andrey Zinovyev
48994976d4
[FIR][LightTree] Skip comments and whitespaces when marking elements
2021-04-20 18:12:45 +03:00
Andrey Zinovyev
dcbb1fb22b
[FIR][LightTree] Extract syntax errors from subtrees
2021-04-20 18:12:45 +03:00
Andrey Zinovyev
7dedd04ed9
[FIR] Add SYNTAX diagnostics for light tree
2021-04-20 18:12:43 +03:00
Dmitriy Novozhilov
3e0eb06e3e
[FIR] Add FirOldFrontendDiagnosticsWithLightTreeTestGenerated
2021-04-20 18:12:42 +03:00
Igor Yakovlev
e4870740e1
[LC] Fixed light classes nullability for Kotlin 1.5
...
Fixed #KT-44472
2021-04-20 15:21:12 +02:00
Igor Yakovlev
63160293fb
[LC] Fix invalid nullability for properties
...
Fixed #KT-46097 and #KT-41671
2021-04-20 15:21:12 +02:00
Andrey Zinovyev
8071a1e246
[KAPT] Keep constant references in annotations with array values
...
#KT-29929 Fixed
2021-04-20 15:47:03 +03:00
Yahor Berdnikau
9e9450caa2
Fix adding associated compilation for Kotlin Native.
...
Kotlin native does not support 'compileOnly' or 'runtimeOnly'
configurations. In this case associated compilations are added as
'implementation'.
^KT-45911 Fixed
2021-04-20 10:15:15 +02:00
Abduqodiri Qurbonzoda
57c4f79c1c
Update Char.digitToInt documentation
2021-04-20 04:36:05 +03:00
Ilya Kirillov
26e39b3d2a
FIR IDE: do not resolve all members for getting inner classes for light classes
2021-04-20 01:32:26 +03:00
Ilya Kirillov
051310124b
FIR IDE: do not fail duplicating classes with members
2021-04-20 01:32:25 +03:00
Mark Punzalan
73b796f184
FIR IDE: Enable RemoveExclExclCallFix for UNNECESSARY_NON_NULL_ASSERTION.
2021-04-19 22:29:07 +02:00
Mark Punzalan
34609b264d
FIR IDE: Move RemoveExclExclCallFix to idea-frontend-independent.
2021-04-19 22:29:07 +02:00
Alexander Udalov
4fffed4165
Improve test on equals/hashCode for KProperty accessors
...
Remove duplication & unnecessary checks, check equality in both
directions, check hashCode, add more cases, rename variables for
clarity.
#KT-13490
2021-04-19 20:39:54 +02:00
Xin Wang
c959b271a4
Override "hashCode" and "equals" for Getter and Setter to fix KT-13490
2021-04-19 20:39:54 +02:00
Dmitry Petrov
46d5e974df
JVM_IR KT-46160 don't use LambdaMetafactory for mutifile class members
2021-04-19 19:32:34 +03:00
yantimirov-timur
1dfc3c0520
FIR: add getter visibility and setter return type checks
2021-04-19 19:21:09 +03:00
Abduqodiri Qurbonzoda
eedc4d8c3f
[K/N] Fix measureTimeMillis and measureNanoTime doc
2021-04-19 19:14:34 +03:00
Abduqodiri Qurbonzoda
aa04f60df4
[K/N] Fix Floating.toInt/toLong doc
2021-04-19 19:14:33 +03:00
Abduqodiri Qurbonzoda
4c66c1c137
[K/N] Fix Primitive.shl/shr/ushr doc
2021-04-19 19:14:32 +03:00
Abduqodiri Qurbonzoda
19ecb78531
[K/N] Fix Primitive.rem doc
2021-04-19 19:14:30 +03:00
Abduqodiri Qurbonzoda
2cfbad9477
[K/N] Fix Primitive.div doc
2021-04-19 19:14:29 +03:00
Abduqodiri Qurbonzoda
b5e3dc414f
Fix Array.iterator doc
2021-04-19 19:14:28 +03:00
Abduqodiri Qurbonzoda
8a1855e4da
[K/N] Fix Range.isEmpty doc
2021-04-19 19:14:27 +03:00
Abduqodiri Qurbonzoda
71c5c8b20a
Fix Range.isEmpty doc
2021-04-19 19:14:25 +03:00
Abduqodiri Qurbonzoda
fb4ddd2f6e
[K/N] Fix StringBuilder.deleteRange doc
2021-04-19 19:14:23 +03:00
Abduqodiri Qurbonzoda
76b297fd73
[K/N] Fix StringBuilder.clear doc
2021-04-19 19:14:21 +03:00
Abduqodiri Qurbonzoda
597b18582a
[K/N] Fix Char.isISOControl doc
2021-04-19 19:14:19 +03:00