Mads Ager
e943d76266
[JVM_IR] Rebase fwBackingField stepping test.
...
The difference is that JVM_IR generates line numbers for the
constructor field initialization.
In this case:
```
29: class B {
30: // comment
31: val bPropVal: Int,
32: // comment
33: var bProbVar: Int
34: ) {
```
the line numbers for the field initializations are 31 and 33 where
in the current backend the whole constructor has line number 29.
2020-09-16 17:51:22 +02:00
Лихолетов Михаил
cfc1ebb4be
[FIR] Support several annotation argument diagnostics
2020-09-16 16:53:31 +03:00
Mikhail Glukhikh
0c13d3197c
[FIR] Fix non-serializable type argument at the end of resolve
2020-09-16 16:53:29 +03:00
Dmitry Petrov
54d5494ecd
JVM_IR special handling for 'remove' collection method stub
2020-09-16 15:36:16 +03:00
Kirill Shmakov
e6e47f8848
Make watchOS test runnable on another bitness
2020-09-16 14:58:28 +03:00
Alexey Tsvetkov
c56952a01e
Provide message collector for Java IC analysis
...
#KT-37446 Fixed
2020-09-16 14:04:51 +03:00
Victor Petukhov
17db188b0e
Add regression test for already fixed issue KT-41396
2020-09-16 14:02:32 +03:00
Alexander Anisimov
5e46e5355d
Merge pull request #3706 from 1anisim/patch-2
...
Update ReadMe.md
2020-09-16 13:59:12 +03:00
Igor Yakovlev
57ebd0e13a
[FIR IDE] Remove unused code and add logging to LightClassProvider
...
Remove not used icons from independed icons provider
Add class logging to KotlinUsageTypeProvider
Remove redundant comments from LightClassProvider
2020-09-16 10:47:47 +03:00
Igor Yakovlev
be4fcd626c
[FIR IDE] Separate searchers from descriptor usage
...
KotlinConstructorDelegationCallReferenceSearcher
KotlinConventionMethodReferencesSearcher
KotlinDefinitionsSearcher
KotlinOverridingMethodReferenceSearcher
KotlinPropertyAccessorsReferenceSearcher
KotlinTodoSearcher
2020-09-16 10:47:47 +03:00
Abduqodiri Qurbonzoda
36e6247125
Add more details about bit shift operations #KT-41112
2020-09-16 04:05:12 +03:00
Abduqodiri Qurbonzoda
1c0ac850e8
Incorrect documentation for rangeTo function #KT-41356
2020-09-16 04:05:12 +03:00
Steven Schäfer
56c4a27887
Android Synthetics: Resolve unbound symbols in the AndroidIrExtension
2020-09-15 22:36:50 +02:00
Steven Schäfer
fe466f3dc6
Android Synthetics: Update test infrastructure
2020-09-15 22:36:50 +02:00
Alexander Udalov
fb183ec3f8
Never use JVM IR to compile coroutines-experimental
...
JVM IR backend doesn't support old coroutines, so we disable it via
-Xno-use-ir, just as for the main source set. This option has no effect
for the current master builds, but will be necessary once JVM IR is
enabled project-wide.
2020-09-15 19:59:14 +02:00
Alexander Udalov
f6187b9d64
Remove dependency of fir:tree:tree-generator on kotlin-reflect
...
This dependency was unused. It allows to avoid waiting for compiling
kotlin-reflect (which includes descriptors, deserialization, etc.)
before compiling FIR modules and thus improves total build time.
2020-09-15 19:59:14 +02:00
Ilmir Usmanov
58146c4452
Keep DebugMetadata annotation when regenerate lambda with state-machine
...
When a suspend lambda does not capture crossinline lambda, it is
generated with as state-machine, since it does not inline anything.
However, when regenerating, the inliner used to remove all DebugMetadata
annotations to avoid duplication. This lead to missing annotation if
the lambda is regenerated, but state-machine is not regenerated.
This change fixes the blind spot by readding the annotation after
regeneration.
#KT-41789 Fixed
2020-09-15 19:57:02 +02:00
Kirill Shmakov
12489ef1b4
Show run test gutters only when appropriate
...
This is to fix KT-36370
2020-09-15 19:09:52 +03:00
Victor Petukhov
8cabfda832
Add regression test for already fixed issue KT-41885
2020-09-15 19:03:16 +03:00
Ivan Gavrilovic
7c360c0068
Kotlin Gradle plugin - use build service to share incremental compilation info
...
For large projects, incremental comilation mapping information may be quite
large. With configuration caching enabled, each task gets its own copy of that
state, and for a project with 1400 subprojects, this resulted in 3.6GB of additional
state stored (once task graph is cached).
This change introduces IncrementalModuleInfoProvider which allows build service
to be used if configuration caching is enabled, and it falls back to static
constant otherwise.
2020-09-15 15:19:56 +03:00
Igor Yakovlev
16d51eb510
[FIR IDE] Add ReadWriteAccessChecker FIR stub
2020-09-15 11:25:07 +03:00
Igor Yakovlev
7a19bc32a7
[FIR IDE] Add base implementation of find usages of overrides
2020-09-15 11:25:07 +03:00
Igor Yakovlev
f05630fcab
[FIR IDE] Enabled search services and added services stubs
2020-09-15 11:25:07 +03:00
Igor Yakovlev
1a10275d0d
[FIR IDE] Enabled usages services and added services stubs
2020-09-15 11:25:06 +03:00
Igor Yakovlev
75347d06b9
[FIR IDE] Move IconProvider in fir independed module
2020-09-15 11:25:06 +03:00
Igor Yakovlev
e30f09d513
[FIR IDE] Separate find usages logic from descriptors
2020-09-15 11:25:06 +03:00
Pavel Kirpichenkov
b102042dd8
Minor: add regression test for KT-41806
2020-09-15 10:52:47 +03:00
Jinseong Jeon
2fad935ce2
FIR deserializer: load inline/external flags properly
2020-09-15 10:21:35 +03:00
Sergey Bogolepov
2154c94100
[Native] Add tests for resolvable properties
2020-09-15 13:54:10 +07:00
Sergey Bogolepov
5a0a853d9b
[Native] Add simple symbol mechanism to konan.properties
...
Java Properties format is extremely trivial and does not support any
kind of references or variables. It makes konan.properties repetitive.
This commits adds support of perl-like `$` sigil which allows to
reference properties inside values.
2020-09-15 13:54:09 +07:00
Pavel Punegov
fc35b5398c
Mute test in Native
2020-09-14 23:41:47 +03:00
Nikita Bobko
0b2d05ee30
Minor: dereference archiveFile when logging it
...
Previously it was "Plugin artifacts packed to task ':zipPlugin' property 'archiveFile'"
After fix it's "Plugin artifacts packed to /home/bobko/jb/kotlin/build/kotlin-plugin.zip"
`archiveFile` has type `Provider<RegularFile>`
2020-09-14 21:37:09 +03:00
Aleksei Cherepanov
c64c319231
JPS. Suppress "Add new files to git" during portable artifacts extraction
2020-09-14 19:06:43 +03:00
Roman Golyshev
7e2269a3cf
Update completion-ranking-kotlin dependency (0.1.2 -> 0.1.3)
2020-09-14 15:19:36 +00:00
Mikhail Glukhikh
97ebf2867a
[FIR] Get rid of type mismatch suppression during diagnostic casting
2020-09-14 18:08:33 +03:00
Mikhail Glukhikh
6fd3b011ca
[FIR] Simplify substitution for unsafe-variant type parameter types
...
#KT-41792 Fixed
2020-09-14 18:08:31 +03:00
Mikhail Glukhikh
e1b4108e4a
[FIR2IR] Mute some tests due to captured type problems
2020-09-14 18:08:30 +03:00
Mikhail Glukhikh
aa897db132
[FIR] Introduce UnsafeVariance attribute (see KT-41792)
2020-09-14 18:08:29 +03:00
Mikhail Glukhikh
e4aaae9ae7
FIR call completion: approximate type argument types
...
This commit removes some captured / ILT types at the end of resolve
2020-09-14 18:08:28 +03:00
Mikhail Glukhikh
3b828ac62b
[FIR] Bad test data fixes (around captured types)
2020-09-14 18:08:27 +03:00
Mikhail Glukhikh
cf5480a398
[FIR] Questionable test data fixes (around captured types)
2020-09-14 18:08:26 +03:00
Mikhail Glukhikh
4605a65f41
[FIR] Good test data fixes (around captured types)
2020-09-14 17:56:39 +03:00
Mikhail Glukhikh
c2d9fc469a
Get rid of exception at ConeKotlinType.varargElementType
2020-09-14 17:56:37 +03:00
Mikhail Glukhikh
2f61a2f56f
[FIR] Provide correct comparison of captured types
2020-09-14 17:56:36 +03:00
Mikhail Glukhikh
b5f8fec213
FIR substitution: use standard approximation to remove captured types
2020-09-14 17:56:35 +03:00
Mikhail Glukhikh
7a73787680
[FIR] Use captureFromArguments in createSubstitution
...
This commit breaks ~57 resolve tests because captured types
now exists at the end of FIR resolve
2020-09-14 17:56:34 +03:00
Mikhail Glukhikh
e83f3bbf04
Introduce substitution to ConeTypeContext.captureFromArguments
...
This commit itself does not influence anything
2020-09-14 17:56:33 +03:00
Mikhail Glukhikh
414842343d
[FIR2IR] Add another problematic test with captured type argument
2020-09-14 17:56:32 +03:00
Mikhail Glukhikh
267382d86b
[FIR2IR] Add problematic test with incorrect type argument
...
NB: we should not have <E> as AbstractFirBasedSymbol type argument,
because it isn't accessible in the current scope. Star expected instead.
2020-09-14 17:56:30 +03:00
Dmitry Petrov
b395771d01
KT-37050 don't generate redundant special bridges
...
Loosely based on https://github.com/JetBrains/kotlin/pull/3662
2020-09-14 16:13:34 +03:00