Victor Petukhov
b0c96a61ec
Don't try to infer postponed variables on lambdas without BuilderInference annotation
...
^KT-39618 Fixed
2020-07-15 16:19:43 +03:00
nataliya.valtman
9e737156dd
KT-37720 Replace ArtifactTransform with TransformAction
2020-07-15 15:57:54 +03:00
Andrei Klunnyi
b9585dabd4
KT-32368 Rework Inline hints settings // fix QuickFixTestGenerated$AutoImports.testKt17525
2020-07-15 13:25:00 +02:00
Andrei Klunnyi
1639cadbb7
KT-32368 Rework Inline hints settings // remove non-existent ReturnHintLinePainter
2020-07-15 13:00:16 +02:00
Jinseong Jeon
30b91b128a
FIR: adjust type of integer operator call as property initializer
2020-07-15 13:56:40 +03:00
Mikhail Glukhikh
ddd26de139
FirTypeIntersectionScope: extract 'createIntersectionOverride'
2020-07-15 13:36:31 +03:00
Mikhail Glukhikh
9934f7d56e
[FIR TEST] Add test for KT-40327
2020-07-15 13:36:31 +03:00
Mikhail Glukhikh
92d40c27e2
FirBasedSignatureComposer: build signature even for private classes
...
FIR2IR assumes that we can build signature for any non-local class.
Later we can drop this assumption.
2020-07-15 13:36:31 +03:00
Mikhail Glukhikh
07b0ffef84
[FIR] Introduce & use remapArgumentsWithVararg
2020-07-15 13:36:30 +03:00
Jinseong Jeon
5c4f978073
FIR: transform arrayOf call with empty arguments
2020-07-15 13:36:30 +03:00
Jinseong Jeon
db9d42c153
IrConstTransformer: handle vararg with spread elements properly
2020-07-15 13:36:30 +03:00
Jinseong Jeon
5600eefea5
FIR: add support for varargs in annotation calls
2020-07-15 13:36:30 +03:00
Jinseong Jeon
4e6bd33eca
FIR: create argument mapping for annotation call in general
2020-07-15 13:36:30 +03:00
Jinseong Jeon
1a861b2df9
FIR2IR: don't create synthetic class for enum entry w/o members
2020-07-15 13:36:30 +03:00
Juan Chen
2ea3579281
[FIR] add support for generic cases of delegation by implementation
...
Add type parameters for generic delegated members and type
substitution when implementing instantiated super interfaces.
2020-07-15 13:36:29 +03:00
Mikhail Glukhikh
93632d2a18
FIR declaration transformer: unwrap synthetic property accessor properly
2020-07-15 13:36:29 +03:00
Mikhail Glukhikh
031f03a903
Introduce FirDeclarationOrigin.INTERSECTION_OVERRIDE
2020-07-15 13:36:29 +03:00
Mikhail Glukhikh
9107944b05
FirSyntheticProperty: take returnTypeRef directly from delegate
2020-07-15 13:36:29 +03:00
Mikhail Glukhikh
e2678149cb
FirClassSubstitutionScope: fix overridden symbols traversing
2020-07-15 13:36:29 +03:00
Mikhail Glukhikh
10a1d5c03b
FirTypeIntersectionScope: add intersection overrides caching
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
c1d223dbde
FirTypeIntersectionScope: enhance support of inherited default parameters
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
c46fac3464
FirTypeIntersectionScope: support inherited default parameters
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
7a2ea49399
FirTypeIntersectionScope: introduce "intersection" fake overrides
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
5a422b5ef6
FirTypeIntersectionScope: optimize/cleanup processOverriddenFunctions
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
1bbed6c4ed
[FIR2IR] Use FIR-specific methods to search for overridden functions
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
59cc9d4bc6
[FIR] Introduce FirTypeScope.processOverriddenFunctionWithDepth
2020-07-15 13:36:28 +03:00
Mikhail Glukhikh
8a29021aad
[FIR2IR] Make data class synthetic members public API
2020-07-15 13:36:27 +03:00
Mikhail Glukhikh
521901f09a
[FIR2IR] Cache type parameters for existing IR classes properly
...
Before this commit, we just recreated class header
for external IR class found by signature. However, it's not required,
because super-types, type parameters, etc. are already initialized.
So now we just read type parameters and build cache for them.
2020-07-15 13:36:27 +03:00
Victor Petukhov
d2f5fbdd08
Fix failing on AS test with inserting -Xinline-classes to build script
2020-07-15 13:35:16 +03:00
Kirill Shmakov
c8b3e622f1
Fix typo in field name
2020-07-15 10:52:42 +03:00
vladislavf7@gmail.com
d96772444e
[FIR] Fix redundant visibility checker
2020-07-15 09:42:30 +03:00
Dmitry Savvinov
9b8128aaa8
Coerce commonTest to common in HMPP
...
Otherwise, Android import won't add dependency from androidTest to
commoonTest. See KT-38744 for details
^KT-38744 Fixed
2020-07-15 11:18:34 +07:00
Vyacheslav Gerasimov
742b98bed6
Build: Fix stdlib-js-ir commonMainSources task dependency on version
2020-07-14 20:29:11 +03:00
vladislavf7@gmail.com
fb5fb44993
[FIR] Add RedundantModalityModifierChecker
2020-07-14 19:56:41 +03:00
Vyacheslav Gerasimov
e7c88a4349
Build: Add KotlinVersionCurrentValue to runtime classpath normalization
...
To avoid cache misses between local and remote build
2020-07-14 17:51:45 +03:00
Vyacheslav Gerasimov
e215d94b7b
Build: Fix JavaExec task configuration
...
Setting some properties is not allowed in doFirst anymore in Gradle 6.5
2020-07-14 17:51:45 +03:00
Victor Petukhov
bf23b39d76
Add using -Xinline-classes by default in IDE intentions
...
^KT-34209 Fixed
2020-07-14 17:43:44 +03:00
Pavel Kirpichenkov
79d7babb57
Add test checking file annotations resolution
...
#KT-37219 Fixed
2020-07-14 17:07:42 +03:00
Nikolay Krasko
36a46482c5
Unmute IdeReplCompletionTestGenerated.testDefinedExtension in 202
...
Lost this line from 16c5ba0988
during the mute-platform.csv.202 creation.
2020-07-14 17:05:30 +03:00
Natalia Selezneva
5954fe528b
gradle.kts: do not return ErrorScriptDefinition into GradleBuildRootManager
...
In this case script definition is saved into script info,
but only real script definitions should be cached
In case of null script configurations will be reloaded into cache when scriptdefinitions will be ready
^KT-39910 Fixed
2020-07-14 15:30:21 +03:00
Natalia Selezneva
3e3f8aeb93
Mark importing as complete in case of some unexpected behavior
...
For example in case when script contains some errors gradleHome might be null
Then build root should be marked as updated
Also notification should be updated
2020-07-14 15:30:20 +03:00
Ilya Goncharov
2c67ab924f
[Gradle, JS] this globalObject in webpack
...
^KT-40159 fixed
2020-07-14 14:42:26 +03:00
Andrei Klunnyi
93a82060d4
KT-39788 MPP, Gradle runner: Run does not add resource directory to classpath // gradle runner support
...
Before this commit "delegate to Gradle" option was not taken into
consideration. Was it MPP or SPP, KotlinRunConfiguration was always
executed by platform runner (as a default one). The reason behind this
was that there was no dedicated class (extension point) responsible for
Gradle-Kotlin pair. Now its KotlinGradleAppEnvProvider.
2020-07-14 11:24:59 +00:00
Andrei Klunnyi
681c2e9492
KT-39788 MPP, Gradle runner: Run does not add resource directory to classpath // classpath fix
...
The reason of resource directory absence was that it couldn't be loaded
from the project configuration file. Just after the import it remained
in the memory and runner couldn' get it. KotlinOutputPathsDataService as
a pair to KotlinOutputPaths is what was missing. Details are provided
below.
------------------------------------------------------------------------
On a disk configuration represents a binary file containing serialized
graph of external project structure. It contains nodes belonging to both
IDEA and its plugins.
To deserialize a node IDEA tries to load its class using a chain of
class-loaders: its own and those provided by actual set of plugins.
The nuance is how to get plugins' ones. The approach is the following.
There is an association between a node's payload and a service which is
supposed to consume it see KotlinOutputPathsDataService#getTargetDataKey
and DataNode#getKey). Plugin services are guaranteed to be loaded by
plugin class loader.
No association - service - no plugin, node was just skipped.
------------------------------------------------------------------------
2020-07-14 11:24:58 +00:00
Ilya Muradyan
07b566dd02
Add @JvmDefault for getPossibleSyntheticNestedClassNames
2020-07-14 14:17:58 +03:00
Zalim Bashorov
340512e27a
[KJS] Throw exception on recursive types provided to typeOf and provide proper support later within KT-40173
...
#KT-38140 fixed
2020-07-14 14:14:13 +03:00
Zalim Bashorov
c552933459
[Test infra] Take into account transitive compatible targets while checking compatibility.
2020-07-14 14:14:12 +03:00
Zalim Bashorov
ca37c6bfe6
[KJS FE] Allow using typeOf with non-reified type parameters
...
#KT-38771 fixed
2020-07-14 14:14:11 +03:00
Ilya Goncharov
9d362875da
[Gradle, JS] Fail build in case when mpp or js targets not configured
...
^KT-40210 fixed
^KT-40300 fixed
2020-07-14 13:59:00 +03:00
Sergey Igushkin
62aed1b53a
Add kotlin.stdlib.default.dependency=false to avoid stdlib default dep
2020-07-14 14:47:40 +04:00