Roman Artemev
9c36487077
[IR] Disable mangle checker for IrErrorDeclarations
2020-09-01 14:53:07 +03:00
Roman Artemev
563af709a8
[Psi2Ir] Fix generation of IrError* nodes
...
- Provide detailed description
- Support syntax-incorrect statements
- Generate an error declaration if normal generation has failed
2020-09-01 14:53:07 +03:00
Roman Artemev
a60782f3df
[JS IR] Add CLI argument to setup error tolerance policy
...
- Make sure dev mode is enabled if code with errors is allowed
2020-09-01 14:53:07 +03:00
Roman Artemev
8a810e2a5e
[JS IR] Add runtime API to throw ISE in case of compiled code with errors
2020-09-01 14:53:07 +03:00
Roman Golyshev
b3199d14b8
FIR IDE: Use correct property-by-package index in KtFirPackageScope
2020-09-01 14:50:19 +03:00
Roman Golyshev
5180a65f0b
FIR Completion: Use proper types rendering
2020-09-01 14:28:59 +03:00
Roman Golyshev
7649043479
FIR IDE: Set correct source for the function built in the air
...
- This enables the completion to work in the declaration itself, not
only in body
2020-09-01 10:09:46 +00:00
Roman Golyshev
90c89bddc5
FIR IDE: Add collecting scopes for declarations
...
- They are required to perform completion in default arguments,
return types, and other declaration parts (except for body)
2020-09-01 10:09:46 +00:00
Roman Golyshev
76eb5d46f4
FIR IDE: Add FirTowerDataContextCollector class
...
- This class just encapsulates the map that is used to collect scopes
2020-09-01 10:09:45 +00:00
Mikhail Zarechenskiy
9c217e3d99
Reuse revised variables during lambda analysis against type variables
...
#KT-41400 Fixed
2020-09-01 13:04:53 +03:00
Dmitriy Novozhilov
011bb0924a
[FIR-IDE] Introduce FirIdeSessionFactory for creating ide sessions
2020-09-01 12:00:13 +03:00
Dmitriy Novozhilov
cb47e631f8
[FIR] Move extended checkers containers to :compiler:fir:entrypoint
2020-09-01 12:00:13 +03:00
Dmitriy Novozhilov
f14efedc3d
[FIR] Fix broken gradle compilation
2020-09-01 12:00:13 +03:00
Dmitriy Novozhilov
c250912ee0
[FIR-TEST] Use FirAnalyzerFacade in BB and Fir2IrText tests
2020-09-01 12:00:13 +03:00
Dmitriy Novozhilov
a4e24ca3dc
[FIR] Introduce FirAnalyzerFacade which hides implementation details of running FIR compiler
2020-09-01 12:00:13 +03:00
Dmitriy Novozhilov
6db8c28291
[FIR] Refactor session components initialization
...
From now all customization of session should perform via DSL which
declared in FirSessionFactory. Registration or mutation session
services from other places is prohibited
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
2819bd3aaf
[FIR] Get rid of deprecated extension point registration methods usage
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
cf224b4de9
[FIR] Add createEmptySession to FirSessionFactory for testing purposes
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
a8d23c36f5
[FIR] Introduce module :fir:entrypoint and FirSessionFactory for creating sessions
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
94d58c714a
[FIR] Cleanup dependencies for fir modules
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
73e2314f2f
[FIR] Get rid of dependency on intellijCore from :compiler:fir:resolve
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
18ad56f7a8
[FIR] Fix creating fake source elements in declarations resolve
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
28e6050551
[FIR] Extract java synthetic names calculation to platform specific component
2020-09-01 12:00:12 +03:00
Dmitriy Novozhilov
375140ebcc
[FIR] Extract java class mapping to platform specific component
2020-09-01 12:00:11 +03:00
Dmitriy Novozhilov
a0b931792e
Move annotationsForResolve.kt to :core:compiler.common
2020-09-01 12:00:11 +03:00
Dmitriy Novozhilov
07c353973d
Move requireOrDescribe to :core:compiler.common
2020-09-01 12:00:11 +03:00
Dmitriy Novozhilov
f010dc533c
Move Variance.convertVariance to :core:compiler.common
2020-09-01 12:00:11 +03:00
Dmitriy Novozhilov
e164c88a14
Move TypeSystemCommonBackendContext to :core:compiler.common
2020-09-01 12:00:11 +03:00
Dmitriy Novozhilov
3379d9b619
[FIR] Extract java related effective visibility calculation to platform component
2020-09-01 12:00:11 +03:00
Dmitriy Novozhilov
ed4c6a38b6
[FIR] Move deserialization files to module :compiler:fir:fir-deserialization
2020-09-01 12:00:10 +03:00
Dmitriy Novozhilov
ca031f7ace
[FIR] Split ResolveUtils.kt from :resolve to separate files
2020-09-01 12:00:10 +03:00
Dmitriy Novozhilov
6ace4164ff
[FIR] Split TypeUtils from :resolve to :cones and :tree modules
2020-09-01 12:00:10 +03:00
Dmitriy Novozhilov
92ffa4dea9
[FIR] Replace KotlinScopeProvider with FirScopeProvider in ClassDeserialization
...
This is needed to remove dependecy on :fir:resolve from serialization
methods
2020-09-01 12:00:10 +03:00
Mikhail Glukhikh
3aa13362ca
[FIR2IR] Replace NPE in setThisReceiver with more detailed exception
2020-09-01 11:40:32 +03:00
Mikhail Glukhikh
65739c50d3
FIR full pipeline test: output build status per-module
2020-09-01 11:40:32 +03:00
Pavel Kirpichenkov
2979c37001
[NI] Fix resolution status for UnstableSmartCastDiagnostic
...
RESOLVED_WITH_ERROR was initially added for reproducing OI behavior.
The intention was to preserve resolution into unstable smart cast and to keep failing candidate.
However, this idea was abandoned after OI behavior proved inconsistent in cases involving generics.
This commit restores RUNTIME_ERROR status of UnstableSmartCastDiagnostic.
^KT-41357 Fixed
2020-09-01 11:21:13 +03:00
Igor Chevdar
5e71068e61
[IR] Handled degenerate cases of IrStringConcatenation
...
It is not needed to create StringBuilder if the number of values
being concatenated is 0 or 1
2020-09-01 11:34:17 +05:00
Vasily Levchenko
b604b58223
[debugger][bindings] don't enter to recursion on type info calculation (KT-41291)
...
KT-41291
2020-09-01 08:23:03 +02:00
Dmitriy Dolovov
74dce725cc
[Commonizer] Tests for missed supertypes in commonized type aliases
...
^KT-41247
2020-09-01 13:11:33 +07:00
Dmitriy Dolovov
96736b0126
[Commonizer] Add missed supertypes in commonized type aliases
...
^KT-41247
2020-09-01 13:11:27 +07:00
Dmitriy Dolovov
e21d99334b
[Commonizer] Lookup common descriptors that don't participate in commonization (for tests only)
...
This is necessary to run integration tests with fake declarations from
Kotlin/Native stdlib that are absent in stdlib-common.
2020-09-01 13:11:22 +07:00
Dmitriy Dolovov
ed78169051
[Commonizer] README: Describe the case when target is not available
2020-09-01 13:11:16 +07:00
Nikolay Krasko
56f0fb6c70
Prevent test failures because of Leaked Android SDK
...
Stop implicit adding additional SDK from environment variables in
GradleSpecificInitializer and AndroidSdkInitializer.
2020-08-31 21:18:26 +03:00
Vasily Levchenko
56c8a2e190
[IR][linker][plugin api] adaptation a095909d5c
...
[Plugin API] Provide special context in EP for link-time resolve
- requires to customize declarations from synthetic declarations
2020-08-31 19:37:35 +02:00
Vasily Levchenko
f70d300f77
[build][jar-collision] added META-INF/compiler.common.kotlin_module
2020-08-31 19:37:35 +02:00
Vasily Levchenko
19e6e1a89c
[descriptor][core][common] adaptation set of refactorings
...
7a7fe77b8e : Move static constants with builtin names to :core:descriptors.common module
45cf221b97 : Move util functions from KotlinBuiltIns to :core:descriptors.common module
a764732020 : Rename `KotlinBuiltInsNames` to `StandardNames`
2020-08-31 19:37:35 +02:00
Vasily Levchenko
cb9a35506c
[descriptor][core][common] adaptation 20a2ad8223
...
Move FunctionClassDescriptor.Kind to :core:descriptors.common module
2020-08-31 19:37:35 +02:00
Roman Artemev
e0ff5ca30a
[IR] Drop irProviders from stub generator (corresponding fix for K/N)
...
(cherry picked from commit 6644c890f562564d514fb06321ee81fb5c656618)
2020-08-31 19:37:35 +02:00
Alexander Udalov
ddb5588258
IR: undeprecate IrUninitializedType
...
It's no longer a temporary hack, see the comment.
(cherry picked from commit a3f3c4543f545eae76d322d5ae697347c94528cc)
2020-08-31 19:37:35 +02:00
Pavel Punegov
75dc0643c9
Merge fixup
...
(cherry picked from commit c7ce1a400e830ac7add79e9e0e42d2089e94e71f)
2020-08-31 19:37:35 +02:00