Dmitry Gridin
3a5deaac09
i18n, konan: fix bundles
...
#KT-37483
2020-03-25 23:43:34 +07:00
Mikhail Glukhikh
afa7899799
Regenerate compiler tests
2020-03-25 19:17:51 +03:00
Dmitriy Novozhilov
f18cef0a12
[FIR] Update ignore rules of generated backed tests for primitive
2020-03-25 18:07:28 +03:00
Dmitriy Novozhilov
75e2596b34
[FIR] Update imports in generated tree
2020-03-25 18:07:27 +03:00
Dmitriy Novozhilov
6c9dd8bb22
[FIR] Reorganize modules of raw fir builders
2020-03-25 18:07:27 +03:00
Dmitriy Novozhilov
0d6bb33f49
Update version of kotlinx-collections-immutable in dependencies
2020-03-25 18:07:27 +03:00
Roman Golyshev
b0bd39e715
KT-36068 Remove redundant commitAllDocuments calls
...
- Those calls seem to be redundant since the platform already
commits all documents before invoking any intention
- Also those calls are getting in the way of `Preview Intention` action
by requiring write action, which is not granted by the platform at
the moment
2020-03-25 17:52:29 +03:00
Kirill Shmakov
576948eded
Share test debugging between IDEA and AS
2020-03-25 17:46:40 +03:00
Leonid Startsev
2bda31ac38
Exclude annotation properties in 'explicit visibility' api mode check
...
#KT-37432 fixed
2020-03-25 19:41:52 +05:00
Vladimir Dolzhenko
3c7085d0b7
Run KotlinConfigurationCheckerService.performProjectPostOpenActions under nonBlocking read
...
#KT-36471 Fixed
2020-03-25 15:37:36 +01:00
Vladimir Dolzhenko
fd0c4ac993
Enable run inspection pass after completion of general highlight pass for kotlin-specific project only
...
Relates to #KT-37553
2020-03-25 15:37:35 +01:00
Vladimir Dolzhenko
a6450dd67e
Convert KotlinConfigurationCheckerComponent to service
...
Relates to #KT-36471
2020-03-25 15:37:33 +01:00
Dmitry Savvinov
abd20e3a90
Cache Library -> LibraryInfo mapping
...
With Klibs, creation of LibraryInfo isn't that cheap now -- it usually
involves inspecting files in roots, reading manifest and such (see for
example NativePlatformKindResolution.createLibraryInfo)
2020-03-25 17:23:36 +03:00
Dmitry Savvinov
7d5396ac95
Introduce ModuleInfo -> SdkInfo cache
...
This fixes KT-35050 properly by caching this mapping and preventing
inspecting dependencies multiple times.
2020-03-25 17:23:36 +03:00
pyos
be37e7135a
Add a test for SMAPs with interleaved files
2020-03-25 14:03:32 +01:00
pyos
a3fe9034e2
JVM: refactor some SMAP-related classes
...
In particular, remove redundant copying from SMAPAndMethodNode (which
also fails for empty methods).
2020-03-25 14:03:32 +01:00
Denis Zharkov
e73b01f20c
Regenerate tests
2020-03-25 15:36:21 +03:00
Denis Zharkov
5539ad8ce8
FIR: Fix data-flow for jumps between members of local classes
...
First of all, note that currently ControlFlowGraphBuilder instance is fully mutable
and shared between all local classes and top-level classes in the same thread
Before this change, previous node for member of local class
was defined as lastNode
And in the case of implicit types, lastNode might be in a middle of another
local class member that is being resolved right now.
See the test:
- "a.length" expression in `bar` should be resolved because smart cast happens
before the class declaration
- "b.length" expression in `bar` should be unresolved because smart cast happens
in a different function
The latter case has been working incorrectly, the call was errorenously
resolved because "lastNode" were pointed just before "bar()" call in "foo"
2020-03-25 15:36:19 +03:00
Denis Zharkov
5584b206c0
FIR: Store local class into scope before analyzing it
2020-03-25 15:36:18 +03:00
Denis Zharkov
d869ae7826
FIR: Make resolution logic for local classes the same as for top-level
...
Run different phases through common transformers sequentially
It should make code more reusable and may help with avoid common bugs
2020-03-25 15:36:17 +03:00
Denis Zharkov
8ea888a111
FIR: Fix getNestedClassifierScope for local classes
2020-03-25 14:54:45 +03:00
Denis Zharkov
7f1049736d
FIR: Get rid of FirStatusResolveTransformer.Companion
2020-03-25 14:54:45 +03:00
Denis Zharkov
ce939903bb
FIR: Prepare status resolution to local/anonymous classes
2020-03-25 14:54:45 +03:00
Denis Zharkov
6894962e3a
FIR: Prepare type resolution phase for running on local classes
2020-03-25 14:54:45 +03:00
Denis Zharkov
b8fb83e34c
FIR: Prepare supertypes computation to anonymous objects
2020-03-25 14:54:45 +03:00
Denis Zharkov
30c8a529a2
FIR: Create FirClass.runAllPhasesForLocalClass extension
2020-03-25 14:54:45 +03:00
Denis Zharkov
41f4c1a003
FIR: Extract LocalClassesNavigationInfo computation
2020-03-25 14:53:34 +03:00
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