Andrey Uskov
998a24414a
Improved parsing of internal compiler arguments with boolean state in
...
case when the argument is listed twice in the list of command line
arguments. The last value will be used.
#KT-27181 Fixed
2019-04-29 19:48:01 +03:00
Andrey Uskov
affe8baf74
Fix import with jps enabled. kotlin-js-ir and kotlin-test-js-ir were
...
removed from jps build
2019-04-29 19:45:01 +03:00
Mikhael Bogdanov
0482f7e9c5
Restrict general compare intrinsic optimization to CompareTo intrinsic
2019-04-29 16:27:35 +02:00
Simon Ogorodnik
51f5042315
Fix FIR compilation
2019-04-29 16:51:39 +03:00
Mikhail Glukhikh
b8e6291265
Inference: use generic version of error type in type approximator
2019-04-29 16:51:39 +03:00
Simon Ogorodnik
db8bd8c197
Fix check isCapturedTypeFromSubtyping to support KotlinTypeMarkers
2019-04-29 16:51:38 +03:00
Simon Ogorodnik
aabc9fa10f
Abstract PostponedResolvedAtom & buildCurrentSubstitutor
2019-04-29 16:51:37 +03:00
Simon Ogorodnik
58029830f0
Skip star-projection to avoid failures
2019-04-29 16:51:37 +03:00
Simon Ogorodnik
2ea7fb8801
Cleanup ConstraintStorage.buildResultingSubstitutor
2019-04-29 16:51:36 +03:00
Simon Ogorodnik
57a3b1a773
Abstract TypeApproximator from NewCapturedType
2019-04-29 16:51:36 +03:00
Simon Ogorodnik
9306f3840f
Abstract buildResultingSubstitutor & ResultTypeResolver from KotlinType
2019-04-29 16:51:35 +03:00
Simon Ogorodnik
fe2e5b7301
Abstract FlatSignature from kotlin types
2019-04-29 16:51:34 +03:00
Simon Ogorodnik
8e595f015e
Initial OverloadingConflictResolver abstraction from KotlinTypes
2019-04-29 16:51:34 +03:00
Simon Ogorodnik
9a1678728d
Implement inference context and simple components
2019-04-29 16:51:33 +03:00
Simon Ogorodnik
04324b6723
Provide overloads with explicit resolutionFacade for resolutionApi
...
To ensure stable results of subsequent resolution api method calls,
it is require to provide same resolution facade, as
getResolutionFacade function doesn't guarantee to have same result in
subsequent calls due to soft caching
2019-04-29 16:51:32 +03:00
Roman Elizarov
1e5d973bb1
Fix CoroutineContext documentation with respect to equality
...
KT-26398 had updated behavior from reference comparison to regular
equality, but the documentation for CoroutineContext was left out.
The whole "by reference" needs to be removed, because it now
follows default behavior of all Kotlin collections and need no
further clarification.
2019-04-29 16:33:22 +03:00
Vyacheslav Gerasimov
389490ad79
Build: resolve :idea project resources lazily in ultimate plugin
...
to avoid using `evaluationDependsOn`
2019-04-29 16:23:16 +03:00
Vyacheslav Gerasimov
c218385ba8
Build: Collect sources for compiler lazily to avoid evaluationDependsOn
2019-04-29 16:23:16 +03:00
Vyacheslav Gerasimov
8851029baa
Build: Use embedded configuration for compiler plugins
2019-04-29 16:23:16 +03:00
Vyacheslav Gerasimov
50e145f239
Build: remove various evaluationDependsOn calls across the build
...
`evaluationDependsOn` may lead to obscure gradle errors on project configuration
2019-04-29 16:23:16 +03:00
Vyacheslav Gerasimov
0ec1df89fa
Build: use configuration for dependency on android-extensions-runtime
...
`evaluationDependsOn` may lead to obscure gradle errors on project configuration
2019-04-29 16:23:16 +03:00
Vyacheslav Gerasimov
b3720a55d2
Build: Make root ideaPlugin task depend on :prepare:idea-plugin
...
Since it's only one left in the project
2019-04-29 16:23:16 +03:00
Mikhail Glukhikh
3f6be95801
Include FIR modules into compiler #KT-30243 Fixed
...
(cherry picked from commit 053aa8ca1e )
2019-04-29 16:23:16 +03:00
Nicolay Mitropolsky
bd16c4629a
KotlinElementActionsFactory.createChangeModifierActions modernisation
...
to allow IDEA relatively safely remove `createChangeModifierActions(target: JvmModifiersOwner, request: MemberRequest.Modifier)` in 192
2019-04-29 16:18:14 +03:00
Jiaxiang Chen
4b99d85322
Optimize JVM byte code generation for conditional conjunction
...
Implement an intrinsic method for boolean.and operation, and replace
ANDAND condition with a call to such intrinsic method.
2019-04-29 13:28:18 +02:00
Vasily Levchenko
53493657ff
[kotlin-native-shared][version]bump
2019-04-29 14:08:16 +03:00
Nikolay Krasko
07ea0ffe16
Reformat and clean up idea.actions.internal
2019-04-29 12:13:18 +03:00
Nikolay Krasko
f9012cf637
Add options for disabling Kotlin line markers (KT-27332)
...
#KT-27332 Fixed
2019-04-29 12:13:14 +03:00
Nikolay Krasko
c72a375063
Better localization for dsl style icon change
2019-04-29 11:56:07 +03:00
Nikolay Krasko
ea8575c5a3
Remove check for Kotlin misconfiguration for the whole project (KT-30644)
...
Consider an existing project to be previously configured.
There's still "Configure Kotlin" action, check for configuration
triggered by adding a new Kotlin file, and notification in Kotlin files.
#KT-30644 Fixed
2019-04-29 11:56:07 +03:00
Nikolay Krasko
01c0c3c924
Addition note about intention and quick-fixes execution in UI thread
2019-04-29 11:56:07 +03:00
Alexander Gorshenev
bd78e7e0aa
Move property serialization to symbols
...
Make sure private field's wrapped descriptor is bound
2019-04-29 04:10:00 +03:00
Alexander Gorshenev
2c026114ae
Made IrStatementOrigin serialization field optional for all statements
2019-04-29 04:04:16 +03:00
Alexander Gorshenev
85f85fb3e8
IrStatementOrigin support in newly introduced IrDelegatedPropertyReference
2019-04-29 04:04:16 +03:00
Alexander Gorshenev
19bd01cc8a
Introduced proper IrStatementOrigin serialization.
2019-04-29 04:04:16 +03:00
Nicolay Mitropolsky
0794ab9432
Uast: cleaunp warnings (but some still remains)
2019-04-28 16:36:43 +03:00
Svyatoslav Kuzmich
13b332e99e
Build scripts for JS IR versions of stdlib and kotlin.tests
2019-04-26 20:14:12 +03:00
Svyatoslav Kuzmich
5da83889d9
Stdlib tests: Supporess NoInfer access instead of redeclaration
...
Stdlib annotation 'kotlin.internal.NoInfer' was redeclared in stdlib tests
so non-fried modules (kotlin-stdlib-jdk7, kotlin-stdlib-jdk8, etc.)
could access it.
IR deserializer does not support declaration duplicates (at least yet
for JS IR backend). Thus this commit removes this redeclaration and
suppresses errors on its usages instead.
2019-04-26 20:14:03 +03:00
Sergey Igushkin
4848911e6d
Fix testNativeTests, add missing system-out to expected test outputs
2019-04-26 18:51:25 +03:00
Sergey Igushkin
9d7c5213df
Fix testNewKotlinJsPlugin on Windows (slashes)
2019-04-26 18:32:43 +03:00
Dmitry Petrov
865e0cc080
IR: IrConstructorCall: fixes after rebase
2019-04-26 17:43:26 +03:00
Igor Chevdar
7f423bd841
[IR] Fixes in inliner
2019-04-26 17:43:26 +03:00
Mikhael Bogdanov
be0b2e064b
Fix JVM IR inliner
2019-04-26 17:43:26 +03:00
Roman Artemev
c545481db9
Fix JS_IR IrConstructorCall support
2019-04-26 17:43:26 +03:00
Roman Artemev
2a3ce8e9f1
Serialize IrConstructorCall
2019-04-26 17:43:26 +03:00
Dmitry Petrov
b78d1bb2b9
IrConstructorCall support in JVM_IR, JS_IR, and FIR2IR
2019-04-26 17:43:25 +03:00
Dmitry Petrov
82128800c5
IR: assertion in IrCallImpl init
...
NB it uses descriptor to determine if we try to call constructor using
IrCall.
2019-04-26 17:43:24 +03:00
Dmitry Petrov
11eea6e86a
psi2ir: generate IrConstructorCall elements in IR builder helpers
2019-04-26 17:43:24 +03:00
Dmitry Petrov
e3fd74a580
IR: annotations are represented as IrConstructorCall elements
...
Also, they are rendered somewhat nicer
2019-04-26 17:43:24 +03:00
Dmitry Petrov
db7bcb6464
IR proto: IrConstructorCall in protobuf format
2019-04-26 17:43:24 +03:00