Alexander Udalov
201fa849b8
Workaround problem with log4j warnings in CLI tests
...
#KTI-166
2020-08-24 13:30:00 +02:00
Nick
05cfb654ba
[FIR] Fix removeAtInt test
2020-08-24 13:38:43 +03:00
Nikolay Krasko
2b983b1c20
Mute flaky JavaAgainstKotlinBinariesCheckerTestGenerated.testEnumStaticImportInJava
2020-08-24 13:20:31 +03:00
Ilya Goncharov
2d8643b6ef
[Gradle, JS] Add nowarn flag for kotlin2js
...
^KT-41340 fixed
2020-08-24 13:05:22 +03:00
Nick
aeae898b94
[FIR] Fix issues with properties' fake sources
2020-08-24 11:06:45 +03:00
Nick
61e21dadec
[FIR] Add 3 type mismatch diagnostics
2020-08-24 11:06:12 +03:00
Nick
c8f8908a01
[FIR] Add NO_THIS & INSTANCE_ACCESS_BEFORE_SUPER_CALL
2020-08-24 11:06:10 +03:00
Nick
7e1c2cfd36
[FIR] Add diagnostic INAPPLICABLE_LATEINIT_MODIFIER + some builtin types
2020-08-24 11:06:06 +03:00
Nick
091e12c093
[FIR] Add diagnostic CONFLICTING_PROJECTION
2020-08-24 11:06:04 +03:00
Dmitriy Dolovov
d40bca4143
[Commonizer] Short-circuiting of type aliases
...
^KT-41220
2020-08-24 12:21:12 +07:00
Vyacheslav Gerasimov
8a84af8a6f
Build: Fix idea-gradle test task dependency on dist
2020-08-22 14:11:34 +03:00
Mark Punzalan
a9359eb530
RangeContainsLowering: Handle unsigned ranges.
2020-08-21 21:15:27 +02:00
Mark Punzalan
ceba9f231d
RangeContainsLowering: Fix bug in additional condition order for
...
`until` ranges.
2020-08-21 21:15:27 +02:00
Mark Punzalan
60a2f7d03f
RangeContainsLowering: Handle Comparable ranges.
2020-08-21 21:15:27 +02:00
Mark Punzalan
1c1b1b4b0f
Initial version of RangeContainsLowering, which optimizes calls to
...
contains() on ClosedRanges.
2020-08-21 21:15:27 +02:00
Jinseong Jeon
ca541337d1
FIR: skip return insertion for lambda w/ Unit return type
2020-08-21 19:16:43 +03:00
Alexander Udalov
f1ce668ede
IR: minor, don't store unnecessary fields
2020-08-21 17:52:10 +02:00
Alexander Udalov
26eb51a9f9
Minor, fix generateBuiltins test
2020-08-21 17:51:23 +02:00
Nikolay Krasko
d170f46bfc
Mute flaky fun usages tests
2020-08-21 18:28:21 +03:00
Nikolay Krasko
6293842d81
Mute XCoroutinesStackTraceTestGenerated flaky test
2020-08-21 18:28:21 +03:00
Nikolay Krasko
9d300f56cc
Mark SubpluginsIT.testKotlinVersionDowngradeInSupbrojectKt39809 as flaky
2020-08-21 18:28:21 +03:00
Nikolay Krasko
8f785f6bb2
Mute flaky tests in ContinuationStackTraceTestGenerated
2020-08-21 18:28:21 +03:00
Nikolay Krasko
fd036c2658
Mute flaky tests in JavaAgainstKotlinBinariesCheckerTestGenerated
2020-08-21 18:28:21 +03:00
Roman Artemev
fcca2c6fa3
[JS IR] fix failing test
2020-08-21 17:44:07 +03:00
pyos
5722f889d8
FIR2IR: scan the entire interface tree for delegatable members
2020-08-21 16:50:23 +03:00
Mikhail Glukhikh
99d2fd7c4d
[FIR] Handle open in interface correctly during status resolve
2020-08-21 16:50:23 +03:00
Mikhail Glukhikh
8e2c5bf4fe
[FIR] Fix exposed visibility checking for enum entries
2020-08-21 16:50:22 +03:00
Mikhail Glukhikh
e15e87fded
[FIR] Expand aliased type before checking for exposure
2020-08-21 16:50:22 +03:00
Denis Zharkov
cb6fbc329a
FIR: Simplify FirQualifiedAccess hiearchy
...
Mostly, it's getting rid of FirQualifiedAccessWithoutCallee and FirModifiableQualifiedAccess
The latter was only used during FIR building to set explicit receiver
that might be done by replace call on explicit receiver
The problem with replaceExplicitReceiver is that for FirComponentCall
explicitReceiver should be not null, so it's needed to perform those tricks
at the generatot
2020-08-21 16:34:46 +03:00
Dmitriy Novozhilov
e6837a5b8c
[FIR] Unify implementations of toSymbol and getSymbolByLookupTag
2020-08-21 15:28:34 +03:00
Dmitriy Novozhilov
d1f6e45b08
[FIR] Cleanup signature of getNestedClassifierScope
2020-08-21 15:27:55 +03:00
Dmitriy Novozhilov
ffdc68b68d
[FIR] Get rid of AbstractFirSymbolProviderWithCache
2020-08-21 15:27:55 +03:00
Dmitriy Novozhilov
111b8c0169
[FIR] Cleanup caching symbol in ConeClassLikeLookupTagImpl
...
Type of `boundSymbol` replaced to OneElementWeakMap
`FirSymbolProvider.getSymbolByLookupTag` moved to extensions
2020-08-21 15:27:55 +03:00
Dmitriy Novozhilov
9032234e1d
[FIR] Get rid of FirSymbolProvider.getNestedClassifierScope
2020-08-21 15:27:55 +03:00
Dmitriy Novozhilov
77f52a9ddb
[FIR] Add special inline class for caches which are used in symbol providers
2020-08-21 15:27:55 +03:00
Dmitriy Novozhilov
4b6193159c
[FIR] Get rid of JavaSymbolProvider.getJavaTopLevelClasses
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
d7cfb2fb13
[FIR] Get rid of FirSymbolProvider.getClassNamesInPackage
...
There was one non-removable usage of those function in FirJavaElementFinder
and three non-trivial implementation
- `FirProvider.SymbolProvider`
- `KotlinDeserializedJvmSymbolsProvider`
- `FirBuiltinSymbolProvider`
First implementation was moved to `FirProvider` and other two was
deleted, because in FirJavaElementFinder we need lookup only in
classes from source code, so such methods in library providers are
useless
#KT-41048
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
b31f80aee3
[FIR] Get rid of FirSymbolProvider.getAllCallableNamesInPackage
...
#KT-41048
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
f32a0fe7ad
[FIR-TEST] Unify AbstractFirLoadCompiledKotlin and BuiltInsDeserializationForFirTestCase
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
913ea9b56d
[FIR-TEST] Get rid of deprecated methods usage in AbstractFirLoadCompiledKotlin
...
Now complied declaration names are collected via ModuleDescriptor,
so tests pass more correctly. Before this change tests didn't render
compiled typealiases and properties.
Also some testdata was changed because of new order of declaration
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
41aa90ad71
[FIR-TEST] Add flag to take memory dumps in modularized test
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
cb0b25ea39
[FIR] Replace Deprecated with PrivateForInline in ScopeSession
2020-08-21 15:27:54 +03:00
Dmitriy Novozhilov
b4dc7955b4
[FIR] Avoid collections copying in FirSymbolProvider
2020-08-21 15:27:53 +03:00
Dmitriy Novozhilov
ce36ae64a1
[FIR] Deprecate questionable methods of FirSymbolProvider
2020-08-21 15:27:53 +03:00
Dmitriy Novozhilov
d5bb87cd1f
[FIR] Replace inheritance with delegation for FirProvider and FirSymbolProvider
2020-08-21 15:27:53 +03:00
Dmitriy Novozhilov
ad9e41b828
[FIR] Mark JavaSymbolProvider.getJavaTopLevelClasses as @TestOnly
2020-08-21 15:27:53 +03:00
Dmitriy Novozhilov
1d26ce4a4e
[FIR] Get rid of useless methods in FirSymbolProvider
2020-08-21 15:27:53 +03:00
Dmitriy Novozhilov
f0d05a321d
[FIR-IDE] Use symbolProvider instead of firProvider in KtFirPackageScope
2020-08-21 15:27:53 +03:00
Kirill Shmakov
5a45cc7290
Update wizard tests
2020-08-21 13:06:56 +03:00
Denis Zharkov
cee72023fa
Remove TypeSystemContext::mayBeTypeVariable optimization
...
It doesn't work now since anyway it's required to obtain type
constructor
At the same time, now it's not very expensive to obtain the constructor
since it's just a lookup tag
2020-08-21 12:50:33 +03:00