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
Jim
267287118b
Frontend plugins to upstream
...
Change-Id: Id9203c92d0a711e4f21565bd225a465bd41db476
2019-10-17 04:41:27 +03:00
Steven Schäfer
4878c7967a
JVM: Handle inline class equality in when statement with declaration
...
#KT-34268 Fixed
2019-10-16 19:23:49 +02:00
Ilya Gorbunov
bbdbc2896b
Workaround in FloatMathTest.powers to avoid failures with js-ir runtime
...
Include kotlin-stdlib-js-ir in local core libs build/test and
enable failing build on test failures.
Relates to: KT-24975
2019-10-16 17:48:47 +03:00
Alexander Udalov
65c09a5e57
Minor, use experimental unsigned types in CityHash
...
This fixes 233 experimental usage API warnings
2019-10-16 15:00:31 +02:00
Alexander Udalov
d0b241b681
Minor, fix typo in -include-runtime argument help
...
#KT-34240 Fixed
2019-10-16 15:00:03 +02:00
Mikhael Bogdanov
adae629258
Report diagnostic on virtual tailrec function
...
#KT-18541 Fixed
2019-10-16 13:02:31 +02:00
Mads Ager
8305baa5fe
[JVM_IR] Avoid unbounded recursion for recursive suspend functions.
...
Additionally, deal with primitive types in AddContinuationLowering.
2019-10-16 13:50:52 +03:00
Georgy Bronnikov
ed6ca7d67e
JVM_IR: fix for SingletonReferencesLowering
...
When replacing an enum entry reference with `this`, you need to take
`this` from the function's `dispatchReceiverParameter`, not the class's
`thisReceiver`. Otherwise the code generator fails to find the reference
among accessible variables.
2019-10-16 13:19:40 +03:00
Nikolay Krasko
fa44cab9dc
Extend compatibility for 193 branch to upcoming 201.* release
2019-10-16 13:03:58 +03:00
Dmitry Gridin
40c3e436d1
ShortenReferences: add test with lots of FqName with root prefix
2019-10-16 16:35:43 +07:00
Dmitry Gridin
bf7c325f43
Completion: should prefer ShortenReferences by elements instead of text range
2019-10-16 15:59:47 +07:00
Dmitry Gridin
2d43d71727
CompletionUtils: cleanup code
2019-10-16 15:59:47 +07:00
Dmitry Gridin
8161403e69
ShortenReferences: shouldn't analyze root prefix elements & should get rid of them at end
...
Relates to #KT-33937
2019-10-16 15:59:47 +07:00
Dmitry Gridin
aa364ea14e
KotlinIntroduceImportAliasHandler: fix PIEAE
2019-10-16 15:36:20 +07:00
Dmitry Gridin
d9faaddcca
delayedRequestsWaitingSet: performDelayedRefactoringRequests should commit all documents before refactoring
...
#KT-34365 Fixed
2019-10-16 15:36:00 +07:00
Dmitry Gridin
72eee17bff
delayedRequestsWaitingSet: cleanup code
2019-10-16 15:36:00 +07:00
Ivan Gavrilovic
4e807692e5
KT-34167: Warn when incremental AP does not follow the contract
...
Isolating incremental AP must report exactly one originating source file.
This commit logs a warning when this constraint is violated.
Test: AnnotationProcessorDependencyCollectorTest.testIsolatingWithoutOrigin
2019-10-16 16:33:00 +09:00
Ivan Gavrilovic
8f94a71de7
KT-33617: Handle non-hierarchical URIs for incremental annotation processing
...
JDK9 may decide to load .java files from jar when resolving a type, even
when .class file exists in the same jar. Further on, these files will be
parsed and analyzed, which triggers the listener used by incremental
annotation processing. This commit avoids analyzing those files, and
makes sure URI passed from the compiler are such that a File instance
can be created.
Test: KaptIncrementalWithIsolatingApt.testSourcesInCompileClasspathJars
2019-10-16 16:33:00 +09:00
Ilya Gorbunov
941980c154
Cleanup FE analysis flag allowKotlinPackage
...
It was used to allow custom contracts when compiling stdlib
with the Kotlin 1.2 compiler. Since 1.3 compiler is used now, this
flag is no longer necessary.
2019-10-15 19:08:57 +03:00
Anton Yalyshev
1e921647fe
Bump FUS Collectors versions after last changes for proper data fetching
2019-10-15 16:15:10 +03:00
Yan Zhulanow
d31f234311
Pill: Add kotlin-scripting-js module to Pill
2019-10-15 22:06:45 +09:00
Yan Zhulanow
9c88a1f807
Debugger: Fix language detection in FUS
2019-10-15 22:06:45 +09:00
Georgy Bronnikov
f3cae210f8
JVM_IR: handle type parameters in constructors for @JvmOverloads stubs
2019-10-15 14:55:18 +03:00
Ilya Goncharov
7ceb2c79b8
[Gradle, JS] Exclude output directory from conformance test
2019-10-15 14:09:28 +03:00