Denis Zharkov
0ca45deeef
FIR: Fork flow for anonymous initializer
2020-03-25 14:53:34 +03:00
Denis Zharkov
f119839891
FIR: Introduce DataFlowAnalyzerContext
2020-03-25 14:53:34 +03:00
Denis Zharkov
dd628bc64a
FIR: Make val private in VariableStorage and optimize imports
2020-03-25 14:53:34 +03:00
Denis Zharkov
cdd7e41891
FIR: Support proper implicit return type computation for local classes
2020-03-25 14:53:34 +03:00
Denis Zharkov
94193c91a0
FIR: Refactor designated body transformers
...
The idea is making their mechanics more transparent and clear
Namely, we should move to the next level of designation only for declaration's content
Otherwise there might be some wrong steps when somebody just randomly
calls "transformElement" on the parent declaration.
For example, it happens for local classes when we resolve their supertypes, etc.
2020-03-25 14:49:28 +03:00
Denis Zharkov
1b974f9d65
FIR: Reformat FirDeclarationsResolveTransformer
2020-03-25 14:49:28 +03:00
Denis Zharkov
5c943fe581
FIR: Minor. Reformat file
2020-03-25 14:49:28 +03:00
Denis Zharkov
d21437e29d
FIR: Prepare body transformers for local classes resolution
...
- Add outerBodyResolveContext
- Rename FirImplicitBodyResolveTransformer and generalize because it will be used for full body
resolution on local classes
2020-03-25 14:48:53 +03:00
Denis Zharkov
7927ef9f66
FIR: Extract BodyResolveContext from BodyResolveTransformerComponents
...
Its content is assumed to be changing and might be injected into
body resolver
2020-03-25 14:48:53 +03:00
Denis Zharkov
28f33822ab
FIR: Drop unused FirApplyInferredDeclarationTypesTransformer
2020-03-25 14:48:53 +03:00
Denis Zharkov
eb154dce1e
FIR: Refactor scopes structure in body resolution
...
- Split top-level scopes into file imports and type parameters
- Make type parameters to be a persistent list
2020-03-25 14:46:05 +03:00
Ilya Matveev
38b1a3d9f1
Update K/N: 1.4-M2-dev-15039
2020-03-25 18:22:06 +07:00
Mikhail Bogdanov
e975eedbfb
Fix project leak through child test case disposable
2020-03-25 11:41:48 +01:00
Jinseong Jeon
cdf5a2a5a1
FIR: set dispatch receiver parameter for inner class's constructor.
2020-03-25 12:40:09 +03:00
pyos
4558d48481
JVM: add a language feature to omit *E between SMAP strata
...
Fixes #KT-37704
2020-03-25 10:33:59 +01:00
Natalia Selezneva
923a71f676
MainKtsScript: use absolute paths in definition classpath
2020-03-25 12:11:09 +03:00
Natalia Selezneva
87cd6160a9
build.gradle.kts: save gradle project roots per project
...
Otherwise they can be overwritten if multiple projects are open
Also do not overwrite them in KotlinDslScrtiptModelProcessor because it can be called multiple times during import
2020-03-25 12:11:09 +03:00
Natalia Selezneva
47d97902c1
KotlinDslScriptsModel: import models in case when script contains errors
...
^KT-37237 Fixed
2020-03-25 12:11:09 +03:00
Natalia Selezneva
73ca9d1b54
build.gradle.kts: report error to build tool window
...
Move errors found in KotlinDslScriptModels from Messages Toolwindow to Build Toolwindow
2020-03-25 12:11:08 +03:00
Natalia Selezneva
643e31b2e7
KotlinDslScriptsModel: parse location for exception
...
This is needed for navigation from build log
2020-03-25 12:11:08 +03:00
Natalia Selezneva
29de7535a6
KotlinDslScriptsModel: save script models right after getting model
...
Remove redundant DataService
2020-03-25 12:11:08 +03:00
Dmitriy Novozhilov
ae522a0375
[FIR] Use source elements instead of psi in ConversionUtils.kt
2020-03-25 11:35:44 +03:00
Dmitriy Novozhilov
318d029fb2
[FIR] Add light source elements to delegated constructor calls
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
badd156def
[FIR] Fix some source elements in light tree fir builder
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
84ed3f5cf2
[FIR-TEST] Add validation of diagnostics for light tree tests
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
86e7faf639
[FIR] Add start offset and end offset to FirSourceElement
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
2c37627b15
[FIR] Add unified diagnostics for psi and light tree
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
1a3fef5fa1
[FIR] Switch names of FirDiagnostic and ConeDiagnostic
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
e6102599ce
[FIR] Rename DefaultErrorMessagesFir
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
caafe84611
[FIR-TEST] Get rid of FirDiagnosticsTestLightTreeHelper
2020-03-25 11:35:42 +03:00
Yaroslav Chernyshev
b13b6d86c7
[Gradle, Native] Advanced CocoaPods integration.
2020-03-25 11:20:01 +03:00
Jinseong Jeon
acbe3126b1
FIR: consider all functions in scope when computing dispatch receiver parameter.
2020-03-25 09:20:07 +03:00
Jinseong Jeon
de0c9a5c73
FIR: use dispatch receiver of the enclosing function if any.
2020-03-25 08:27:21 +03:00
Dmitriy Dolovov
a363a5be58
Gradle. Make nativeExtensions in KotlinCompilation optional
2020-03-25 09:29:27 +07:00
Dmitriy Dolovov
c2fa0b2017
Minor. Comments added
2020-03-25 09:29:16 +07:00
Dmitry Petrov
d3be0462b6
Fix callable reference to inline class constructor generation
2020-03-24 22:25:59 +03:00
Vladimir Dolzhenko
dfd42dae1f
Revert back fetchAnalysisResultsForElement
...
Relates to #KT-37467
2020-03-24 18:58:38 +01:00
Ilya Goncharov
c527f8e117
[Gradle, JS] Do not check exit code
...
Because mocha don't make difference between infrastructure and runtime problems and failing tests
This reverts commit e6d39ce7
https://github.com/mochajs/mocha/issues/4216
2020-03-24 19:22:24 +03:00
Ilya Goncharov
930b69bef5
[Gradle, JS] Add checks on module name set before browser and nodejs
...
- Add outputModuleName for compilations
KT-32017
2020-03-24 19:05:45 +03:00
simon.ogorodnik
59393e06f0
[FIR-test] Mute tests with bad test-data
2020-03-24 18:58:19 +03:00
simon.ogorodnik
f83c20065d
[FIR-test] Unmute passing tests, mostly fir2ir
2020-03-24 18:58:19 +03:00
simon.ogorodnik
27136ef8be
[FIR] Support unsigned integer literals
2020-03-24 18:58:18 +03:00
simon.ogorodnik
0afbf25943
[FIR2IR] Implement JvmBackendClassResolver for boxing optimizer
2020-03-24 18:58:18 +03:00
simon.ogorodnik
d71939728a
[FIR] Fix container source for class members
2020-03-24 18:58:18 +03:00
simon.ogorodnik
0acca52001
[FIR-Test] Unmute blackbox test
2020-03-24 18:58:18 +03:00
simon.ogorodnik
29dc45fb66
[FIR] Enable property delegate rendering in html dump
2020-03-24 18:58:17 +03:00
simon.ogorodnik
762861a2e9
[FIR] Adjust abbreviated type rendering in Html dump
2020-03-24 18:58:17 +03:00
simon.ogorodnik
5a3eefcba1
[FIR] Fix suspend functional type deserialization
2020-03-24 18:58:17 +03:00
simon.ogorodnik
4fac6d8fb5
[FIR] Fix abbreviated type deserialization
2020-03-24 18:58:17 +03:00
simon.ogorodnik
2ce697b0b2
[FIR] Resolve type parameter bounds in local class members
2020-03-24 18:58:17 +03:00