Svyatoslav Kuzmich
ce1ae417c2
[JS IR BE] Minor: don't use descriptors
2019-04-13 14:17:59 +03:00
Svyatoslav Kuzmich
7a6e245dba
[JS] Minor: Use file path to V8 runner to show better error messages
2019-04-13 14:17:58 +03:00
Mikhail Zarechenskiy
1bc078769b
Regenerate tests
2019-04-12 18:17:48 +03:00
Dmitriy Novozhilov
18f9272f56
[NI] Fix reporting smartcast diagnostics for intersection types
...
#KT-30826 Fixed
2019-04-12 17:36:59 +03:00
Dmitriy Novozhilov
ece3a0fe90
Minor: fix smartcast on var in IrUtils.kt
2019-04-12 17:36:59 +03:00
Roman Artemev
01878fe4b5
[JS IR BE] Remove unused lowering
...
* its functionality is merged into `FunctionInliner`
2019-04-12 15:23:28 +03:00
Roman Artemev
ece33f00a2
[IR] SuspendFunctionLowering refactoring
...
* distinguish common part which generates successor of `CoroutineImpl`
into separate common lowering
* merge it with K/N
2019-04-12 15:23:28 +03:00
Roman Artemev
bcc8f3e073
[IR] Move Ir utils from Kotlin/Native
2019-04-12 15:23:28 +03:00
Roman Artemev
cf9cce8a9b
[JS IR BE] Fix type arguments stuff in Secondary Constructor lowering
2019-04-12 15:23:28 +03:00
Roman Artemev
e3699fbc31
[IR] CommonBackendContext and Symbols refactoring
...
* add [suspend]functionN factory factions
* add `getContinuation` property
* add `internalPackageName` property
* fix lowerings
2019-04-12 15:23:28 +03:00
Mikhail Zarechenskiy
bdab7a88f6
[NI] Add test for obsolete issue
...
#KT-28658 Obsolete
2019-04-12 15:22:39 +03:00
Mikhael Bogdanov
d5cd49b2bf
Don't delete Idea temporary folder on JVM shutdown
...
Before parallelization we don't delete Idea folders after test execution.
Now there is problem with failing test on Teamcity.
So try to keep folder undeleted (maybe there is some working daemon)
2019-04-12 14:13:53 +02:00
Ivan Gavrilovic
33e7a23208
Fix style in classpath snapshot class
...
Use filterTo instead of filter followed by forEach.
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
c28ad116d0
Convert Windows-style path when calculating class internal name
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
955a27ec77
Use MD5 when caching class ABI structure
...
This avoids Kotlin Gradle plugin dependency
on Guava, and it is a good hash function for this
use-case.
Also fix some formatting.
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
e171199bf5
Do not track defined constants in source files
...
There is no need to track definitions of constants in sources for now.
References to constants are tracked in order to capture dependencies between types.
This ensures that any change to a type defining a constant (either from the
classpath or sources), will trigger reprocessing of the type that uses the
constant.
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
929fca03fd
Fixes to KAPT classpath change detection
...
1) Fix tests to use canonical path for comparison because Mac was failing
2) Update current classpath snapshot only with the missing entries from the previous one
3) Clean-up code and style
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
7c78644eb9
Incremental KAPT - analyze classpath changes
...
Use artifact transforms to capture structure and
dependencies of classpath entries. In the KAPT task
this information is used to compare previous classpath
structure with the current one. Once changed classes are
detected, all classes that transitively depend on those
are identified, and that set is passed to KAPT invocation.
In order to avoid unrelated classpath changes, we record an
ABI snapshot of the classpath entry. This snapshot ignores
all private members, and @Metadata annotation.
#KT-23880
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
c85e21d43b
Incremental KAPT - pass changed classpath entries
...
Pass computed list of changed classpath names to KAPT instead
of relying on the history files to be computed by stub generation.
Also, stop generating classpath history changes during the stub generation.
This commit does not compute the actual changed classpath entries,
and that will be done in the following commits.
#KT-23880
2019-04-12 15:01:47 +03:00
Ivan Gavrilovic
0c09f56118
Incremental KAPT - track constants usage
...
This commit adds support for tracking of used constants in
source files. For every constant used in a source file, class
that defines the constant and the constant name are tracked.
Value of the constant can be obtained using
annotation processing APIs, so if the constant value changes, a source file
using it has to be reprocessed.
#KT-23880
2019-04-12 15:01:47 +03:00
pyos
57dca2ada5
JVM_IR: generate exception specifications
2019-04-12 13:00:54 +02:00
Ilya Matveev
f43579e9fc
Update Kotlin/Native: 1.3-dev-9457
2019-04-12 17:53:34 +07:00
pyos
c7d7d903cd
Add the IR version of CompileJavaAgainstKotlin tests
...
Only the WithoutJavac version for now, because the other one ignores
javac errors.
2019-04-12 12:43:37 +02:00
Dmitry Petrov
8a95da4a95
Minor: reformat DeepCopyIrTreeWithDescriptors.kt
2019-04-12 12:13:21 +03:00
Dmitry Petrov
bf2ab99b61
IR: IrSimpleTypeBuilder
2019-04-12 12:13:21 +03:00
Natalia Selezneva
2844d48f9f
Refactoring: remove unused class
2019-04-12 11:42:56 +03:00
Natalia Selezneva
0da6d48d5e
Minor: fix toString in KotlinSourceFilterScope
2019-04-12 11:42:56 +03:00
Natalia Selezneva
0c2e9f4d9a
Scratch: prohobit closing scratch output content (KT-29642)
...
^KT-29642 Fixed
2019-04-12 11:42:56 +03:00
Natalia Selezneva
3eda40394a
Impossible to run applications with long command lines on windows
...
^KT-29352 Fixed
2019-04-12 11:42:50 +03:00
Natalia Selezneva
dfa5f1f090
Refactoring: extract common parts for create command line for repl and scratch
2019-04-12 11:33:32 +03:00
Ting-Yuan Huang
0dd09ea7de
JVM_IR: Lower IrGetEnumValue to this whenever possible.
...
The reference can be lowered to `this` if it is captured in the lexical
scope of the corresponding enum entry, and not used by the enum entry's
super constructor. Otherwise, it is lowered to
`GETFIELD SomeEnum.SomeEntry`.
2019-04-12 08:58:43 +02:00
Toshiaki Kameyama
faa6eacb25
Add "Replace Java static method with Kotlin top-level function" inspection
...
#KT-27411 Fixed
2019-04-12 11:35:46 +07:00
Rene Groeschke
6bef27e1e8
Forward stdout and stderr logger of out of process compiler through gradle logging
...
Issue #KT-30596 Fixed
2019-04-11 20:36:53 +03:00
Dereck Bridie
d86ffd3f34
Add inspection "Map replaceable with EnumMap" #KT-25439 Fixed
2019-04-11 19:01:02 +03:00
Toshiaki Kameyama
607325c6e5
Add "Round using roundToInt/roundToLong" quick fix
...
#KT-30389 Fixed
2019-04-11 18:58:05 +03:00
Burak Eregar
1455451601
Fix "Replace !! with if-then" inspection in receiver position
...
#KT-5412 Fixed
2019-04-11 18:58:05 +03:00
Jan Gerling
162de77b71
Add inspection to detect boxes *Range.start & endInclusive
...
These properties can be replaced with equivalent collections first & last.
#KT-15537 Fixed
2019-04-11 18:58:04 +03:00
Toshiaki Kameyama
401d8c2d70
Add braces: don't move EOL comment when if statement is single statement
...
#KT-28619 Fixed
2019-04-11 18:58:04 +03:00
Dmitriy Novozhilov
a92cf19641
Revert "[NI] Fix reporting smartcast diagnostics for intersection types"
...
This reverts commit 033d7262
That commit breaks bootstraping
2019-04-11 18:49:02 +03:00
Toshiaki Kameyama
849d18669b
Replace assert boolean with assert equality: do not report when arguments type are not subtype
...
#KT-30761 Fixed
2019-04-11 18:36:50 +03:00
Toshiaki Kameyama
93d854362b
Convert to anonymous function: do not name argument when lambda is Java method
...
#KT-30613 Fixed
2019-04-11 18:34:24 +03:00
Dmitriy Novozhilov
033d7262a2
[NI] Fix reporting smartcast diagnostics for intersection types
...
#KT-30826 Fixed
2019-04-11 18:10:59 +03:00
Toshiaki Kameyama
47b1ea7fa4
SimplifiableCallChainInspection: replace .sorted().first() with .min()
...
#KT-30725 Fixed
2019-04-11 18:07:06 +03:00
Toshiaki Kameyama
e4b10a156e
SimplifiableCallChainInspection: fix tests
2019-04-11 18:07:06 +03:00
Alexander Gorshenev
ce6cda631d
IrDelegatedProperty and IrDelegatedPropertyReference were missing from the serialization
2019-04-11 17:50:53 +03:00
Yan Zhulanow
e07821ca75
Debugger: Assume a class name from the coroutine metadata may be invalid (KT-30934)
2019-04-11 17:46:21 +03:00
Georgios Andrianakis
f11c5a335a
KT-30343 Add new Quarkus preset to all-open compiler plugin
2019-04-11 17:46:21 +03:00
Yan Zhulanow
7ecd88aae3
AllOpen: Allow to specify presets in the Gradle plugin
2019-04-11 17:46:20 +03:00
Ting-Yuan Huang
4f64a52d33
Kapt: Fix NPE on JDK 10-11 (KT-26203)
...
Gradle worker throws NPE when the parameter to the runnable is null.
This patch works that around by passing URL spec as String instead of
File?
2019-04-11 17:46:19 +03:00
Yan Zhulanow
2314ca7a94
Debugger: Fix evaluation of lambda arguments (KT-10636)
2019-04-11 17:46:19 +03:00