Commit Graph

85508 Commits

Author SHA1 Message Date
Roman Golyshev d284ed1c79 [FIR IDE] Commonize FirCallableSymbol.computeImportableName function 2021-09-02 18:10:16 +00:00
Roman Golyshev 0dfddb8bf2 [FIR IDE] Refactor KtFirReferenceShortener 2021-09-02 18:10:15 +00:00
Roman Golyshev 52e012712d [FIR IDE] Add a little KDoc to KtImportOptimizerMixIn::analyzeImports 2021-09-02 18:10:15 +00:00
Roman Golyshev 03f29de5ef [FIR IDE] Add token validity assertion to KtFirImportOptimizer 2021-09-02 18:10:14 +00:00
Roman Golyshev 81768bdaef [FIR IDE] Mark imports from the same package as unused 2021-09-02 18:10:14 +00:00
Roman Golyshev 824acc2c4f [FIR IDE] Improve imports analysis for import aliases
Also make it work more correctly with invoke operator functions
2021-09-02 18:10:14 +00:00
Roman Golyshev 989cd487a6 [FIR IDE] Improve imports analysis for complex type qualifiers 2021-09-02 18:10:13 +00:00
Roman Golyshev 43e266273c [FIR IDE] Implement basic algorithm for KtFirImportOptimizer 2021-09-02 18:10:13 +00:00
Roman Golyshev cc88d92d05 [FIR IDE] Add KtImportOptimizer mixin and FIR implementation
Does nothing for now
2021-09-02 18:10:12 +00:00
Dmitriy Novozhilov d46e2dd749 Fix OVERRIDE_DEPRECATION warnings in project code 2021-09-02 15:04:07 +03:00
Dmitriy Novozhilov 69c3831865 Rename Deprecation to DeprecationInfo 2021-09-02 15:04:07 +03:00
Dmitriy Novozhilov 5d31f0f032 [FIR-IDE] Avoid clashes between diagnostic and it's parameter with same short names 2021-09-02 15:04:07 +03:00
Dmitriy Novozhilov 88913aa2a3 [FIR] Report warning on non-deprecated overrides of deprecated members
^KT-47902
2021-09-02 15:04:07 +03:00
Dmitriy Novozhilov ef9ad5af51 [FE 1.0] Report warning on non-deprecated overrides of deprecated members
Also don't propagate deprecation status to overrides after 1.7

^KT-47902 Fixed
2021-09-02 15:04:07 +03:00
Dmitriy Novozhilov 762d225bd7 Unify Deprecation classes from :core:compiler.common and :compiler:frontend modules 2021-09-02 15:04:06 +03:00
Sergej Jaskiewicz be999564b1 [JS IR] Export nested objects
Companion objects are exported as ParentClass.Companion.
Companion object's members are not exposed to its parent class —
one must reference the companion object explicitly if they want to
access its members.

#KT-43783 Fixed
2021-09-02 14:40:15 +03:00
nataliya.valtman 862f8cdad8 KT-48264 Create dir before kotlin-build-report publish 2021-09-02 13:49:57 +03:00
Dmitriy Novozhilov 8117cd4c24 Postpone ApproximateIntegerLiteralTypesInReceiverPosition feature till 1.7
^KT-38895
2021-09-02 13:34:29 +03:00
Dmitriy Novozhilov 6a8f36e313 Add spec testdata to test helper plugin configuration 2021-09-02 13:34:28 +03:00
Dmitriy Novozhilov 1e0878cde0 [FE 1.0] Postpone SafeCallsAreAlwaysNullable till 1.7
^KT-46860 Fixed
2021-09-02 13:34:27 +03:00
Dmitriy Novozhilov 5a5d25d350 [FE 1.0] Postpone ProhibitSimplificationOfNonTrivialConstBooleanExpressions till 1.7
^KT-39883
2021-09-02 13:34:25 +03:00
sebastian.sellmair 97d71dc160 [Gradle] Ensure enableGranularSourceSetsMetadata property being populated
Previously it was only populated when KGP was applied to the root project.
CLI compilation would still work, since it also checks for the
new hmpp properties, whereas the IDE import is still 'just' checking
on the old property (while defining its own defaults)

^KT-48513 Verification Pending
2021-09-02 09:27:49 +00:00
Mikhail Glukhikh 9c8b8f053e FIR: handle named argument properly during annotation serialization 2021-09-02 11:12:48 +03:00
Sergey Bogolepov 9620279201 [K/N] Fix KT-48552 2021-09-02 06:34:39 +00:00
Ilya Gorbunov 11314a5c4e Rename enabling old behavior property and make it cached in a field
Mention the property name in the note about conversion to set.

#KT-45438
2021-09-02 06:06:39 +03:00
Abduqodiri Qurbonzoda 94b371af5b Remove brittle ‘contains’ optimization in minus/removeAll/retainAll #KT-45438 2021-09-02 05:58:19 +03:00
Ilya Gorbunov fbc43cbebe Duration.toComponents: change the highest component type to Long 2021-09-02 02:44:16 +00:00
Abduqodiri Qurbonzoda d306c0e9ac Change JS CharSequence.isBlank() via checking all chars with isWhitespace 2021-09-02 01:38:04 +00:00
Abduqodiri Qurbonzoda 0faa83bacb Deprecate JS Array/PrimitiveArray.sort(comparison) functions 2021-09-02 01:38:03 +00:00
Abduqodiri Qurbonzoda a3eaa3e0f9 Change JS AbstractMutableCollection.toJSON() visibility modifier from open to protected 2021-09-02 01:38:03 +00:00
Abduqodiri Qurbonzoda a90117faa2 Change JS HashSet.createEntrySet() visibility modifier from protected to internal 2021-09-02 01:38:03 +00:00
Abduqodiri Qurbonzoda 921af8e98c Deprecate JS String match, matches and concat functions 2021-09-02 01:38:02 +00:00
Abduqodiri Qurbonzoda 3fefed5131 Remove deprecated JS Regex_0 and Regex_1 constructor functions 2021-09-02 01:38:02 +00:00
Abduqodiri Qurbonzoda 1008a88b43 Remove equals and hashCode implementation of JS AbstractMutableMap.values 2021-09-02 01:38:02 +00:00
Abduqodiri Qurbonzoda 407feb656e Make JS Regex.replace not inline #KT-27738 2021-09-02 01:38:01 +00:00
Abduqodiri Qurbonzoda 91aa956f34 Introduce JVM readln() and readlnOrNull() top-level functions #KT-48456 2021-09-02 01:00:34 +00:00
Ilya Gorbunov 0d58bb14b2 Duration: minor doc clarifications 2021-09-01 16:30:03 +00:00
Denis.Zharkov c9a93eb1b5 Get rid of hard referencing to LanguageLevel entries
It should make easier to use different intellij-core versions
Some of them doesn't have JDK_15_PREVIEW while the other don't have
JDK_17, while we're ok with both of them since they support records and
sealed interfaces
2021-09-01 18:39:00 +03:00
Sergey Igushkin 8b37b5f259 Fix localToProject=public not set for K/N configurations, KT-48370 2021-09-01 14:44:33 +00:00
Alexander Udalov 0213c25c9b Remove obsolete check for language version and IR backends 2021-09-01 16:30:41 +02:00
Alexander Udalov a6336ec134 Report deprecation warning when -Xuse-old-backend is specified
#KT-48532
2021-09-01 16:30:19 +02:00
Georgy Bronnikov 778b04ae34 JVM_IR: rename -Xparallel-backend-threads to -Xbackend-threads 2021-09-01 17:28:23 +03:00
Georgy Bronnikov 22a6dc0320 JVM_IR: lock IrLazySymbolTable ops 2021-09-01 17:28:21 +03:00
Georgy Bronnikov a4cebeea36 JVM_IR: use IrBuiltIns instead of descriptor in IrTypeMapper 2021-09-01 17:28:18 +03:00
Georgy Bronnikov 2f697e9195 JVM_IR: avoid recursive constructor calls in ClassCodegen 2021-09-01 17:28:15 +03:00
Georgy Bronnikov 570e20696c IR: use synchronized access when creating initial signature stub 2021-09-01 17:28:11 +03:00
Mikhael Bogdanov cb7a59ea0e Small optimization 2021-09-01 14:03:57 +00:00
Mikhael Bogdanov f9b5414453 Calculate string encoding size more precisely 2021-09-01 14:03:56 +00:00
Mikhael Bogdanov 19474ee30f Support large strings in indy-with-constants concatenation
#KT-47917 Fixed
2021-09-01 14:03:56 +00:00
Mikhael Bogdanov d2d3708827 Refactor a bit StringConcatGenerator class 2021-09-01 14:03:55 +00:00