Commit Graph

63343 Commits

Author SHA1 Message Date
Ilya Kirillov 2fa0e7490f Wizard: minor, remove unused functions 2020-03-26 09:38:20 +03:00
Ilya Kirillov 4ef01aea3f Wizard: minor, commonize settings initialization with default values 2020-03-26 09:38:19 +03:00
Ilya Kirillov 42529ec525 Wizard: add test infrastructure, project importing tests & project templates tests 2020-03-26 09:38:17 +03:00
Ilya Kirillov 2f30195a6d Wizard: add some basic IOs module configurator 2020-03-26 09:38:16 +03:00
Ilya Kirillov 275212b6a9 Wizard: introduce Android module type 2020-03-26 09:38:15 +03:00
Nikolay Krasko 034af78b0f Fix mass build-failure because of bad dependencies in :compiler:visualizer module
Rename raw-fir:common to raw-fir:common -> raw-fir:fir-common.

If there's dependency both on :compiler:visualizer:common and
:compiler:fir:raw-fir:common, only one of artifact is left in classpath
2020-03-26 01:21:37 +03:00
Vladimir Dolzhenko 01c36d19bb Fix StartupActivities those do not require dumb awareness
Relates to #KT-35918
2020-03-25 22:50:57 +01:00
Philippe Ombredanne 3abf9b4c0f Remove Apache notice added to LGPL license text
Somehow an Apache-2.0 license notice with a JetBrains copyright that had
been pasted in the middle of the LGPL license text.
This removes this notice and restores the pristine, unmodified license
text.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2020-03-26 00:31:35 +03:00
Toshiaki Kameyama a96cafe066 Extract property: do not suggest duplicate property name
#KT-36504 Fixed
2020-03-25 22:19:26 +01:00
Vladimir Dolzhenko dc949658d6 Lookup super methods under progress in find usages
Do not try to lookup super methods if named declaration does not have `override` keyword

#KT-18472 Fixed
2020-03-25 17:26:12 +00:00
Vladimir Dolzhenko 95c438fa21 Fix KotlinConfigurationCheckerService alias for 192
Relates to #KT-36471
2020-03-25 18:23:51 +01:00
Ilya Goncharov b04844d583 [Gradle, JS] Actualize Node and Yarn versions
#KT-37762 fixed
2020-03-25 19:50:44 +03:00
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