Commit Graph

63359 Commits

Author SHA1 Message Date
Ilya Kirillov cf7bbdde10 Wizard: do not pass writer to ModulesToIRsConverterData 2020-03-26 09:38:42 +03:00
Ilya Kirillov 45b01f7fc4 Wizard: add module dependencies to modules from jvm -> jvm dependencies 2020-03-26 09:38:41 +03:00
Ilya Kirillov 356dc2ad42 Wizard: do not show double label on checkbox setting 2020-03-26 09:38:40 +03:00
Ilya Kirillov db6dfbbb9f Wizard: rename ReadingContext -> Reader, WritingContext -> Writer 2020-03-26 09:38:39 +03:00
Ilya Kirillov f1741a4d1b Wizard: do not require to default settings to be present in yaml 2020-03-26 09:38:38 +03:00
Ilya Kirillov a16cb7b74d Wizard: add option to enable Java support for JVM targets
#KT-36179 fixed
2020-03-26 09:38:37 +03:00
Ilya Kirillov 691ee7412a Wizard: all context operations to read/write operations 2020-03-26 09:38:36 +03:00
Ilya Kirillov 81c7cb20f3 Wizard: minor, move out module validators from Module class 2020-03-26 09:38:35 +03:00
Ilya Kirillov a88a19a1b9 Wizard: migrate tests to Kotlin 1.3.70 2020-03-26 09:38:34 +03:00
Ilya Kirillov 693e12d826 Wizard: minor, remove unused functions 2020-03-26 09:38:33 +03:00
Ilya Kirillov 2460f6cfe6 Wizard: remove unused error types 2020-03-26 09:38:32 +03:00
Ilya Kirillov 98faaf9eba Wizard: make YamlParsingError to be exception error 2020-03-26 09:38:31 +03:00
Ilya Kirillov 00d8045adc Wizard: correctly check for Kotlin compiler version is snapshot 2020-03-26 09:38:30 +03:00
Ilya Kirillov 51f71a4e33 Wizard: do not use apache maven Version classes 2020-03-26 09:38:29 +03:00
Ilya Kirillov 377cdfdb2d Wizard: exclude new wizard from AS build 2020-03-26 09:38:28 +03:00
Ilya Kirillov 38ff41a524 Wizard: move settings to separate package 2020-03-26 09:38:21 +03:00
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