Dmitry Gridin
52c00ba2a1
Extract JvmStartupActivity class
2019-08-02 19:23:23 +03:00
Dmitry Gridin
77a630ce34
UnsupportedAbiVersionNotificationPanelProvider: fix project leak
2019-08-02 19:19:47 +03:00
Dmitry Gridin
584b42d9f9
Add missing EP for StartupActivity
2019-08-02 19:19:47 +03:00
Dmitry Gridin
832c8e0e20
Fix "Non default constructors for extension class"
2019-08-02 19:19:47 +03:00
Dmitry Gridin
9ea2446ec0
KotlinLanguageInjector: cleanup code
2019-08-02 19:19:47 +03:00
Dmitry Gridin
49aa4aba71
UnsupportedAbiVersionNotificationPanelProvider: cleanup code
2019-08-02 19:19:47 +03:00
Simon Ogorodnik
7c24ad39ea
Remove fir:lightTree test on kotlinx.coroutines as it caused problems in IDEA
2019-08-02 17:33:29 +03:00
Ilya Kirillov
be7b228cf6
Fix "Attempt to modify PSI for non-committed document" for some cases
...
It can be thrown after an action when optimize imports is called
2019-08-02 12:03:59 +03:00
Ilya Kirillov
1981e8b9bf
New J2K: Add better error reporting in AST builder
2019-08-02 12:03:59 +03:00
Ilya Kirillov
6b0c1da42c
Do not use methods which may show UI dialog in write action in refactorings
...
#KT-33082 fixed
2019-08-02 12:03:59 +03:00
Ilya Kirillov
474a8850b3
Do not show error message in decompiler in write action
...
#EA-209667 fixed
2019-08-02 12:03:58 +03:00
Ilya Kirillov
3205b25f80
Fix code completion for the injected Kotlin code
...
Allow completion of physical files as it is the case for injected Kotlin code.
Also, fix function completion for that case as `document.charsSequence` for injected code document is not dynamically updated as for usual document.
So, we should to do it manually
#KT-31117 fixed
2019-08-02 12:03:58 +03:00
Ilya Kirillov
84498513f6
Do not allow optimize imports for uncommitted document
...
Optimize imports may be called after executing command, and document can be uncommitted after command is finished. In that case we will get ISE: Attempt to modify PSI for non-committed Document
#EA-209693 fixed
2019-08-02 12:03:58 +03:00
Ilya Kirillov
7b659a73c7
Check if document is writable on converting Java to Kotlin
2019-08-02 12:03:57 +03:00
Ilya Kirillov
0d42d3f0a1
Fix CCE in move-refactoring
...
It happens when companion object's descriptor doesn't correspond to PSI object declaration
#EA-126981 fixed
2019-08-02 12:03:57 +03:00
Ilya Kirillov
46ff959415
Fix using invalidated PSI element in Remove Braces Intention
...
#EA-142427 fixed
2019-08-02 12:03:57 +03:00
Ilya Gorbunov
65b0a5f903
Unify withIndex docs wording
2019-08-01 19:55:36 +03:00
Ilya Gorbunov
2e445ebad6
Enable test that uses Array.fill in JS and Native
2019-08-01 19:02:39 +03:00
Ilya Gorbunov
3751a8a797
Common Array.fill for unsigned arrays, improve docs, native impl name
...
KT-32359
2019-08-01 19:02:39 +03:00
Jake Wharton
1a6069382e
Provide Array.fill in common stdlib
...
KT-32359
2019-08-01 19:02:38 +03:00
Nikolay Krasko
83e422fc3b
Workaround copied kotlin element happened to be outside the KtFile
...
Can be reproduced after revert with
IdeLightClassTestGenerated$Local.testDollarsInNameLocal test.
2019-08-01 18:21:13 +03:00
Nikolay Krasko
5614afed14
Fix over-caching content in light classes for local declarations (KT-32820)
...
Use combination of OOCB and file tracker for local classes.
#KT-32820 Fixed
2019-08-01 18:16:36 +03:00
Nikolay Krasko
ce3ad8f4da
Use kotlin specific OOCB tracker for light classes inner cache
...
ClassInnerStuffCache from the platform caches everything with platform
OUT_OF_CODE_BLOCK tracker.
2019-08-01 18:16:35 +03:00
Dmitry Savvinov
78ae1a5745
Annotate default interface method with JvmDefault
...
To keep compatibility with external plugin(s) which inherit their
Java-classes from KotlinProjectConfigurator and make
CompatibilityChecker happy
2019-08-01 17:31:34 +03:00
Vyacheslav Gerasimov
784483e7ac
as36: Add required plugins to test runtime
...
#KT-33063
2019-08-01 17:07:11 +03:00
Vyacheslav Gerasimov
14bd8f4eef
as36: Update AS build version to 192.5765565
2019-08-01 17:07:11 +03:00
Vyacheslav Gerasimov
67b84cf35d
Use properties bintray.user & bintray.apikey for AS repo
2019-08-01 17:07:11 +03:00
Dmitry Gridin
645bbc93cb
KotlinWithGradleConfigurator: support addKotlinLibraryToModuleBuildScript for multiplatform
...
#KT-27270 Fixed
2019-08-01 16:09:04 +03:00
Dmitry Gridin
c88d4f43d3
ConfigureKotlinInProjectUtils: minor cleanup
2019-08-01 16:09:04 +03:00
Dmitry Gridin
3ea195e1a2
DescriptorRenderedImpl: fix order of val & vararg modifier for actual class
...
#KT-31921 Fixed
2019-08-01 16:08:45 +03:00
Dmitry Gridin
a2f937e282
DescriptorRender: cleanup code
2019-08-01 16:08:45 +03:00
Toshiaki Kameyama
80b09b9a08
Replace 'if' with 'when': don't remove branch brances
...
#KT-32650 Fixed
2019-08-01 16:05:06 +03:00
Mikhail Glukhikh
f3b42507d9
Do not search for bad substrings inside compiler/fir/lightTree/testData
...
This folder is auto-generated and git ignored
2019-08-01 15:14:29 +03:00
Ivan Cilcic
00f880a5a0
Make all necessary refactoring after merge
...
1) Removed all unnecessary sessions
2) Added delegation converter
3) Moved property accessor initialization to apply block instead of constructor
4) Removed unnecessary AnotationContainer class
2019-08-01 15:14:29 +03:00
Ivan Cilcic
f3a7db2428
Add auto test in gradle (light tree)
...
Additionally removed benchmarks from auto test because they require manual setting.
Instruction was also added.
2019-08-01 15:14:29 +03:00
Ivan Cilcic
2ca7978544
Remove duplicate code from convertIsExpresion and convertBinaryWithType
2019-08-01 15:14:29 +03:00
Ivan Cilcic
d03b6cc014
Remove extra test methods (light tree)
2019-08-01 15:14:29 +03:00
Ivan Cilcic
250d86b692
Rename "MyKotlinParser" to "KotlinLightParser"
2019-08-01 15:14:28 +03:00
Ivan Cilcic
2e05fe9976
Remove extra method toFirExpression
2019-08-01 15:14:28 +03:00
Ivan Cilcic
f3299c4636
Delete extra files with util methods (raw FIR)
2019-08-01 15:14:28 +03:00
Ivan Cilcic
01daa90f5c
Extract bangbang and bindLabel methods (raw FIR)
2019-08-01 15:14:28 +03:00
Ivan Cilcic
c5547a2229
Extract some information to separate Context class
2019-08-01 15:14:28 +03:00
Ivan Cilcic
cad0dbf087
Rewrite RawFirBuilder and its utils to be able to reuse it in LightTree converter
2019-08-01 15:14:27 +03:00
Ivan Cilcic
084bad4c25
Fix bug in import directives converter (light tree to FIR)
2019-08-01 15:14:27 +03:00
Ivan Cilcic
1af7063a47
Made primary constructor wrapper to avoid recreating value parameter instances
2019-08-01 15:14:27 +03:00
Ivan Cilcic
2a60f95a32
Add FIR session argument to LightTree2Fir constructor
2019-08-01 15:14:27 +03:00
Ivan Cilcic
c253ff7953
Write syntactically incorrect constructions processing (light tree to FIR)
2019-08-01 15:14:26 +03:00
Ivan Cilcic
ef535a2d85
Resolve converter errors after merge (light tree to FIR)
2019-08-01 15:14:26 +03:00
Ivan Cilcic
86097bdcce
Write method to test data from diagnostic test folder (light tree)
2019-08-01 15:14:26 +03:00
Ivan Cilcic
b5293e7df7
Edit light tree to FIR benchmarks to support off stub mode
2019-08-01 15:14:26 +03:00