Steven Schäfer
bdd5705a30
JVM IR: Fix test for anonymous object constructors in FunctionCodegen
2019-10-18 17:20:22 +02:00
Roman Golyshev
6560ecc82b
KT-15286: Provide object member extensions in the completion
...
- Add extensions only when completion of static members is enabled (double ctrl + space and nonempty prefix)
- Add full import for callables with receiver in `LookupElement.decorateAsStaticMember`
2019-10-18 17:17:28 +03:00
Toshiaki Kameyama
15613afa20
Control flow with empty body: do not report 'if' with comments
...
#KT-34325 Fixed
2019-10-18 21:07:52 +07:00
Dmitriy Novozhilov
615d3aafef
[FIR] Automatically generated abstract classes instead of interfaces if possible
2019-10-18 16:45:14 +03:00
pyos
6b48112a2b
IR: deserialize backing field annotations
...
Probably going to be necessary for handling imported @JvmField
annotated declarations.
2019-10-18 16:43:53 +03:00
Dmitriy Novozhilov
ecf98d3141
Regenerate tests forgotten in f19a8789
2019-10-18 16:03:41 +03:00
Toshiaki Kameyama
74970ddfeb
Introduce "Unused unary operator" inspection
...
#KT-12073 Fixed
2019-10-18 18:50:53 +07:00
Jordan Demeulenaere
158f7f1cd7
Avoid PsiFile searching when resolving imported scripts descriptors.
2019-10-18 13:17:28 +03:00
Mikhail Glukhikh
91a58fffb8
Add CLI test for K/javac project with non-transitive dependency, KT-33932
2019-10-18 12:29:05 +03:00
Mikhail Glukhikh
87e2f9d96b
Add CLI test for K/javac project with K/J interdependency
...
Yet this test fails if JavacWrapper does not add Kotlin output dir to classpath
2019-10-18 12:02:04 +03:00
Mikhail Glukhikh
9f3d834b2a
JavacWrapper: optimize building of tree-based stuff
2019-10-18 11:56:18 +03:00
Mikhail Glukhikh
39ff04e043
JavacWrapper: optimize toJavacList away
2019-10-18 11:55:59 +03:00
Georgy Bronnikov
7f32f43a48
Pass isIR flag from KotlinToJVMBytecodeCompiler to GenerationState
2019-10-17 16:44:20 +03:00
pyos
d1f25d1c26
JVM_IR: discard results of nonexhaustive whens' branches
2019-10-17 15:41:42 +02:00
Dmitriy Novozhilov
cfa9950c22
[FIR] Fix building CFG and resolving when expression without branches
2019-10-17 16:20:59 +03:00
Dmitriy Novozhilov
f8f2d8b9a1
[FIR] Add FirAbstractElement as base type for all fir node implementations
2019-10-17 16:20:59 +03:00
Dmitriy Novozhilov
f19a878948
[FIR] Add exhaustive checker for when expressions
...
Also remove generating default else branch introduced in 38fa0122 and 54eb4cf9
2019-10-17 16:20:59 +03:00
Dmitriy Novozhilov
25e853606e
[FIR] Add deserialization of inheritors of sealed classes
2019-10-17 16:20:59 +03:00
Dmitriy Novozhilov
3dc49ab1d4
[FIR] Add resolve phase for resolving inheritors of sealed classes
2019-10-17 16:20:59 +03:00
Dmitriy Novozhilov
59fd47bfd0
[FIR] Add special node for sealed classes
2019-10-17 16:20:59 +03:00
Dmitriy Novozhilov
d0089c6747
[FIR] Add flag that enables fir dump in modularized test
2019-10-17 16:20:58 +03:00
Dmitriy Novozhilov
2ec305b34e
[FIR] Don't generate replace and transform in implementations with kind = Interface
2019-10-17 16:20:58 +03:00
Dmitriy Novozhilov
f86f582922
[FIR] Automatically make field mutable if it has replace function
2019-10-17 16:20:58 +03:00
Dmitriy Novozhilov
89fc17da41
[FIR] Allow generate boolean fields with replace
2019-10-17 16:20:58 +03:00
Dmitriy Novozhilov
2c2a1cdfe8
[FIR] Fix smartcasts in when expressions with this subject
...
Also get rid of excess `getOrCreateRealVariable` function.
2019-10-17 16:20:58 +03:00
Kirill Shmakov
739340a57d
Rename cidr-native -> common-cidr-native
...
Modules in :kotlin-ultimate:ide
2019-10-17 14:15:43 +03:00
Mikhael Bogdanov
c78dbaf6b3
Initializer default values in 'tailrec' method in proper order
...
#KT-31540 Fixed
2019-10-17 13:06:36 +02:00
Mikhael Bogdanov
077092d619
Convert TailRecursionCodegen.java to Kotlin
2019-10-17 13:06:35 +02:00
Mikhael Bogdanov
2eda7cb4b0
Rename .java to .kt
2019-10-17 13:06:34 +02:00
Mikhail Glukhikh
b3d8f2d677
Introduce AbstractFirUseSiteScope and store common J/K code there
2019-10-17 13:39:33 +03:00
Mikhail Glukhikh
fb22a31976
JavaClassUseSiteScope is made not-provider based
...
Before this commit, Java use-site scope was provider based for some reason.
In fact, provider was not used in this scope anyway,
so this can be safely removed
2019-10-17 13:39:33 +03:00
Mikhail Glukhikh
79c0a69219
Add new FIR tests related to KT-31508 problems, replace failing MM testJava...Signature
2019-10-17 13:39:32 +03:00
pyos
27094d0371
JVM_IR: fix synthetic accessor generation (again)
...
Turns out private inline functions *can* be called from other classes.
2019-10-17 12:38:19 +02:00
Toshiaki Kameyama
89180e2650
Redundant companion reference: fix false positive with Java synthetic property
...
#KT-33771 Fixed
2019-10-17 17:17:44 +07:00
Toshiaki Kameyama
d72e55d1b7
Add "Make private and overrides member" quick fix for ACCIDENTAL_OVERRIDE
...
#KT-18536 Fixed
2019-10-17 17:08:03 +07:00
Vladimir Dolzhenko
30b98aaeb7
Keep attachments of cause exception in KotlinExceptionWithAttachments and provide elements in attachments in case of errors during kotlin idea resolution
...
Relates to EA-210942, EA-209622 etc
2019-10-17 10:22:32 +02:00
Nikolay Krasko
39f4a95278
Remove unregisterComponentByInstance usages that fails in 193
2019-10-17 11:19:13 +03:00
Nikolay Krasko
a743835011
193: Fix compilation because method replace in 193
2019-10-17 11:19:13 +03:00
Nikolay Krasko
8d355f7003
Advance 193 version to 193.4697-EAP-CANDIDATE-SNAPSHOT
2019-10-17 11:19:13 +03:00
Nikolay Krasko
db913e519f
Avoid using specific version because they may differ in different platforms
2019-10-17 11:19:13 +03:00
Nikolay Krasko
da9a25fd21
Minor: remove useless overrides
2019-10-17 11:19:13 +03:00
Dmitry Gridin
92bfb2788e
idea: cleanup "Remove redundant qualifier name"
2019-10-17 14:30:25 +07:00
Dmitry Gridin
696b832a9c
RemoveRedundantQualifierInspection: fix false positive for enum/object
...
#KT-34113 Fixed
#KT-32965 Fixed
#KT-33991 Fixed
#KT-33597 Fixed
2019-10-17 14:30:25 +07:00
Toshiaki Kameyama
a4f805ccd0
"Redundant qualifier name": add tests for enum/object
...
Relates to #KT-34113
Relates to #KT-32965
Relates to #KT-33991
Relates to #KT-33597
2019-10-17 14:30:25 +07:00
Andrey Uskov
866ab51ce5
Work-around for importing intermediate android source sets
...
Fixed failure on import fully actualized intermediate source sets with K2Metadata compiler arguments (Android plugin expects compiler arguments of another type)
2019-10-17 10:26:36 +03:00
Andrey Uskov
aa6ff4b9da
Fix creation of common source roots if android plugin is involved
...
#KT-34237 Fixed
2019-10-17 10:26:28 +03:00
Andrey Uskov
a60cbef5d2
Do not build metadata dependency tree for platform source sets
2019-10-17 10:26:24 +03:00
Andrey Uskov
74f4a1357f
Do not create deep copy for MPP project is model is not a proxy
2019-10-17 10:26:22 +03:00
Andrey Uskov
f567df283e
Improved performance non-MPP projects import
...
#KT-32960 Fixed
2019-10-17 10:26:20 +03:00
Stanislav Erokhin
84aff5f630
Add some changes to introduced extension points
2019-10-17 04:41:29 +03:00