Svyatoslav Kuzmich
5098bc0c70
[Wasm][Minor] Rename method
2021-11-12 18:44:46 +03:00
Svyatoslav Kuzmich
7e9fc54e64
[Wasm] Support external companions
2021-11-12 18:44:46 +03:00
Svyatoslav Kuzmich
91ea3738b4
[Wasm] Fix type parameters with external upper-bounds.
...
`klass.isExternal` was never reachable for type parameters
because of klass != null check
2021-11-12 18:44:46 +03:00
Andrey Uskov
9826984c4a
Report flag use-fir in Gradle statistics
...
#KT-49633 Fixed
2021-11-12 18:13:41 +03:00
Andrey Uskov
b5456539aa
More stable reporting of compilation in statistics
2021-11-12 18:13:40 +03:00
Andrey Uskov
2fe337f58a
Fixed flakiness of BuildSessionLoggerTest
2021-11-12 18:13:39 +03:00
Igor Chevdar
b474b570a4
[K/N][gradle] Supported friend modules for two stage compilation
...
Fixes https://youtrack.jetbrains.com/issue/KT-49248
2021-11-12 17:40:26 +05:00
Alexander Udalov
e7680ddbff
Fix execution optimization warning for :kotlin-stdlib-common:sourcesJar
...
#KTI-662 Fixed
2021-11-12 13:24:08 +01:00
Ivan Kochurkin
15c83abfd8
[FIR] Throw UNCHECKED_CAST instead of NO_TYPE_ARGUMENTS_ON_RHS closer to FE 1.0
2021-11-12 15:20:48 +03:00
Ivan Kochurkin
87eb02a9e0
[FIR] Add error messages for CANNOT_CHECK_FOR_ERASED, CAST_NEVER_SUCCEEDS, UNCHECKED_CAST
2021-11-12 15:20:48 +03:00
Ivan Kochurkin
5fda933c33
[FIR] Unify code of type unification, fix intersection types processing in FirCastDiagnosticsHelpers.kt
2021-11-12 15:20:47 +03:00
Ivan Kochurkin
98cce8e05b
[FIR] Support of intersection types in bareTypes.doUnify ^KT-48832 Fixed
2021-11-12 15:20:47 +03:00
Ivan Kochurkin
a509e819b5
[FIR] Revert changes related to reporting WRONG_NUMBER_OF_TYPE_ARGUMENTS for type aliases
2021-11-12 15:20:46 +03:00
Ivan Kochurkin
05b91d37a7
[FIR] Fix collection of annotations for assigment expressions
2021-11-12 15:20:46 +03:00
Ivan Kochurkin
d0a4ca199d
[FIR] Add UNCHECKED_CAST
...
Regenerate diagnostics code
2021-11-12 15:20:45 +03:00
Ivan Kochurkin
1fbccff1bd
[FIR] Rename isCastPossible to checkCasting, return CastingType instead of boolean
2021-11-12 15:20:45 +03:00
Ivan Kochurkin
2b5524b18f
[FIR] Add CAST_NEVER_SUCCEEDS
2021-11-12 15:20:44 +03:00
Ivan Kochurkin
4ca757446a
[FIR] Add getCorrespondingPlatformClass, getCorrespondingKotlinClass methods to FirPlatformClassMapper
2021-11-12 15:20:43 +03:00
Ivan Kochurkin
291bc74676
[FIR] Add CANNOT_CHECK_FOR_ERASED
2021-11-12 15:20:43 +03:00
Ivan Kochurkin
e52a410599
[FIR] Initialize outer type parameters for local classes
2021-11-12 15:20:42 +03:00
Ivan Kochurkin
38820d3e41
[FIR] Implement WRONG_NUMBER_OF_TYPE_ARGUMENTS for top level type aliases
2021-11-12 15:20:42 +03:00
Ivan Kochurkin
09510633c7
[FIR] Rename applyToActualCapturedTypeParameters to appendOuterTypeParameters
2021-11-12 15:20:41 +03:00
Ivan Kochurkin
d4a11fc295
[FIR] Disallow bare types for nested type arguments
...
Detect missing WRONG_NUMBER_OF_TYPE_ARGUMENTS
2021-11-12 15:20:40 +03:00
Yan Zhulanow
21026cc704
[FIR IDE] Enable constant evaluation tests in AAPI/FE10
...
Implementation of constant evaluation was changed, so now it doesn't
swallow error values.
2021-11-12 20:09:54 +09:00
Yan Zhulanow
5e9c397023
[FIR IDE] Fix unsigned number evaluation test in AAPI/FE10
...
Constant evaluator of FE10 checks existence of the unsigned type
in the classpath. Absence of UInt leads to a failure.
2021-11-12 20:09:53 +09:00
Yan Zhulanow
9106a4bbc5
[FIR IDE] Enable call resolution tests in AAPI/FE10
...
Fix numerous cases in Fe10KtCallResolver so the tests pass correctly.
2021-11-12 20:09:53 +09:00
Yan Zhulanow
a653a57593
[FIR IDE] Unwrap typealias SAM constructor in AAPI/FE10
...
This commit fixes KtFe10ResolveCallTestGenerated#testSamConstructorCall().
2021-11-12 20:09:53 +09:00
Yan Zhulanow
2cdaa48e75
[FIR IDE] Support type annotation rendering in AAPI/FE10
...
This fixes the following tests:
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterName()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameInNonFunctionType()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameGeneric()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameMixed()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameAnnotation()
2021-11-12 20:09:53 +09:00
Yan Zhulanow
07fb02c1f9
[FIR IDE] Enable symbol-by-psi tests for AAPI/FE10
2021-11-12 20:09:52 +09:00
Yan Zhulanow
ae95b6745c
[FIR IDE] Provide initializers for non-const properties in AAPI/FE10
...
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testDeprecated().
2021-11-12 20:09:52 +09:00
Yan Zhulanow
690bb7254a
[FIR IDE] Fix deprecations for property accessors in AAPI/FE10
...
If a property is deprecated, its accessors should also be deprecated.
The same applies to the backing field.
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testDeprecated().
2021-11-12 20:09:52 +09:00
Yan Zhulanow
10f409adc1
[FIR IDE] Handle implicit 'it' lambda argument correctly in AAPI/FE10
...
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testImplicitReturnInLambda().
2021-11-12 20:09:52 +09:00
Yan Zhulanow
430108b138
[FIR IDE] Remove obsolete test data files
2021-11-12 20:09:52 +09:00
Yan Zhulanow
d93d55064c
[FIR IDE] Return error types from getExpectedType() as is in AAPI/FE10
2021-11-12 20:09:51 +09:00
Yan Zhulanow
d6b9b8bdd4
[FIR IDE] Compare error types consistently in test data
...
Use the fixed error type description so test data can be shared
across both frontends.
2021-11-12 20:09:51 +09:00
Yan Zhulanow
bba53aa967
[FIR IDE] Prettify DebugSymbolRenderer, unify its behavior
2021-11-12 20:09:51 +09:00
Yan Zhulanow
fac10881ea
[FIR IDE] Fix receiverType for non-extension functions in AAPI/FE10
...
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testDelegateField().
2021-11-12 20:09:51 +09:00
Yan Zhulanow
308e7c9e67
[FIR IDE] Return KtUnsupportedConstantValue for non-const initializers in AAPI/FE10
...
This commit fixes the following tests:
- KtFe10SymbolByPsiTestGenerated.testClassInitializer();
- KtFe10SymbolByPsiTestGenerated.testClassMembes().
2021-11-12 20:09:50 +09:00
Yan Zhulanow
b4da714510
[FIR IDE] Fix KtSymbolKind for local symbols in AAPI/FE10
...
In Analysis API a callable declaration is local only if it is an
immediate child of a callable declaration. Declarations inside anonymous
objects are 'KtSymbolKind.CLASS_MEMBER'.
2021-11-12 20:09:50 +09:00
Yan Zhulanow
8d18fa2d00
[FIR IDE] Ensure prefixed test output file differs from the default one
2021-11-12 20:09:50 +09:00
Yan Zhulanow
8916626cc3
[Pill] Preserve kotlin_test_wasm_js library artifact
2021-11-12 20:09:50 +09:00
Yan Zhulanow
1e4e45cc5f
[FIR IDE] Render error class types identically in DebugSymbolRenderer
...
This commit fixes KtFe10SymbolByPsiTestGenerated.testVarargFunctions().
2021-11-12 20:09:50 +09:00
Yan Zhulanow
b8682f04f3
[FIR IDE] Treat enum entry members as local in AAPI/FE10
...
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testEnumValueMember().
2021-11-12 20:09:49 +09:00
Yan Zhulanow
944ec7ba5a
[FIR IDE] Don't return 'open' modality for final class members in AAPI/FE10
...
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testEnumValueMember().
2021-11-12 20:09:49 +09:00
Yan Zhulanow
94ca387405
[FIR IDE] Fix callableIdIfNonLocal for accessors in AAPI/FE10
...
Before the behavior was rather random and erroneous. Now the callable id
is also 'null' for Kotlin property accessors, and accessor method id
for synthetic Java properties.
2021-11-12 20:09:49 +09:00
Yan Zhulanow
4f7dc1122f
[FIR IDE] Fix KtSymbolProvider.getParameterSymbol() in AAPI/FE10
...
For loop parameters, Analysis API expects a local variable to be
returned. The additional check regarding lambda parameters is also added
to reflect the FIR behavior.
This commit partially fixes KtFe10SymbolByPsiTestGenerated.testForLoopVariable().
2021-11-12 20:09:49 +09:00
Yan Zhulanow
7934b263c1
[FIR IDE] Fix KtSymbolInfoProvider.getJavaSetterName() in AAPI/FE10
...
Before the change, the getter name was erroneously returned instead
for properties without a @JvmName() annotation.
This commit fixes KtFe10SymbolByPsiTestGenerated.testBackingField().
2021-11-12 20:09:49 +09:00
Yan Zhulanow
d5e26bcf9e
[FIR IDE] Refactoring, introduce Fe10AnalysisContext.builtIns
2021-11-12 20:09:48 +09:00
Yan Zhulanow
a0e28972d5
[FIR IDE] Always provide accessors from property symbols in AAPI/FE10
2021-11-12 20:09:48 +09:00
Yan Zhulanow
0099e6e81b
[FIR IDE] Unify origin logic in AAPI/FE10
2021-11-12 20:09:48 +09:00