Alexander Udalov
d0544a148a
Minimize dependencies of ModuleMapping
...
Prepare it to be moved to metadata.jvm
2018-04-23 18:42:32 +02:00
Ilya Gorbunov
6b800c4230
Remove conditional-preprocessor compiler module
2018-04-23 19:05:13 +03:00
Ilya Gorbunov
2c74b91de4
Remove JvmVersion annotation and its usages
2018-04-23 19:05:13 +03:00
Dmitry Petrov
1eca402332
Use correctElementType to determine array element type for withIndex
...
Rather unkind "gotcha" in ASM API.
#KT-23900 Fixed Target versions 1.2.50
2018-04-23 18:00:12 +03:00
Nikolay Krasko
5817a7fdac
Prevent endless processing of problem pending events
...
If some pending event processing caused exception in PerModulePackageCacheService,
log the problem and consider event processed. Otherwise it is going to
be stuck there forever.
2018-04-23 16:41:14 +03:00
Nikolay Krasko
00119c309c
Don't call findChild on invalid file in ImplicitPackagePrefixCache
2018-04-23 16:41:14 +03:00
Nikolay Krasko
3f6022d74e
Don't show several lambda return inlay hints for elvis (KT-22436)
...
Don't show inlay hints on binary expression operands
#KT-22436
2018-04-23 16:41:14 +03:00
Nikolay Krasko
2a7f195bbc
Fix FoldingAfterOptimizeImportsTest for case-sensitive file systems
...
Broken in b6699d7522
2018-04-23 16:41:13 +03:00
Nikolay Krasko
d085f3e474
Don't call elementAtCaret for file usage test (fix for 181)
...
Fix testPropertyFileUsages test in 181.
Starting from 181, call `elementAtCaret` with zero offset returns
null element, when file starts with comment. Test fails because
of that.
https://github.com/JetBrains/intellij-community/commit/fdebc4084b9067ec19933d45a1ef2e04861206c3
2018-04-23 16:41:13 +03:00
Nikolay Krasko
ffca06d8a8
Drop specific behaviour in AbstractFindUsagesTest.kt for 172
...
It's OK to run find usages test under progress manager.
2018-04-23 16:41:13 +03:00
Nikolay Krasko
c6f8c868ce
Minor: remove unused FIND_FILE_USAGES directive
2018-04-23 16:41:13 +03:00
Alexey Tsvetkov
2b4aa74c0b
Add test cases for FQ-name parsing in IC
2018-04-23 15:03:42 +03:00
Leonid Startsev
01b40d4d02
Review fixes:
...
Use `StorageManager.createLazyValue` instead of default lazy delegate
Introduce `initialize` method instead of exposing type parameters
2018-04-23 14:39:17 +03:00
Leonid Startsev
666553e413
Add correct type parameter information to synthetic declarations
...
Needed by kapt due to https://github.com/Kotlin/kotlinx.serialization/issues/76
2018-04-23 14:39:17 +03:00
Alexey Tsvetkov
adc3e61742
Make assertion message more readable in JPS test
...
The test was failing recently on CI, but assertion message
does not give enough info: arrays' sizes are not equal,
so there were extra warnings, but what they were?
2018-04-22 23:05:59 +03:00
Nicolay Mitropolsky
06e65e5f48
182: removing Spring from Kotlin-Ultimate
...
because all necessary functionality is already in IDEA-Ultimate
2018-04-21 11:25:49 +03:00
Mikhail Glukhikh
00a9dea7cb
KotlinAbstractUElement+KotlinUElementWithComments(172): add imports
2018-04-21 11:04:13 +03:00
Ilya Gorbunov
c239d346f7
Correctly indent upper bound separator in the generated stdlib code
2018-04-20 23:14:57 +03:00
Ilya Gorbunov
5381d0ed58
Move sequence operation classification higher than sample
...
Otherwise it gets eaten by that @sample tag.
2018-04-20 22:40:35 +03:00
Ilya Gorbunov
908d2d6975
Introduce kotlin-stdlib-generator dsl block for specifying sample reference
2018-04-20 22:40:35 +03:00
Mikhail Glukhikh
5dd7ff4d7f
Up KotlinAbstractUElement / UElementWithComments / UVariable in branches
2018-04-20 21:29:55 +03:00
Mikhail Glukhikh
3e1d05f146
Update KotlinUMethod for 172/181/as32 branches
2018-04-20 21:23:05 +03:00
Pavel V. Talanov
521357a22d
Add tests for KT-20824, KT-23745, KT-23124, KT-20605, KT-23760
...
#KT-20824 Fixed
#KT-23745 Fixed
#KT-23124 Fixed
#KT-20605 Fixed
#KT-23760 Fixed
2018-04-20 20:00:12 +02:00
Pavel V. Talanov
94fe170b7b
MPP: analyze platform sources with expectedBy common sources
...
This allows to emulate current compiler behaviour
Introduce CombinedModuleInfo which is a combination of several other modules intended to be analyzed together
2018-04-20 20:00:11 +02:00
Pavel V. Talanov
94dfcba5c5
Minor: adjust quick fix test data to avoid "conflicting overloads"
2018-04-20 20:00:07 +02:00
Pavel V. Talanov
3949fc70c9
Adjust test data for previously ignored tests
2018-04-20 20:00:05 +02:00
Pavel V. Talanov
5ddb7c71d1
Mpp resolve: fix actual/expect declaration lookup
...
Previously we would look fo expect declaration in common dependencies
as opposed to looking inside the module exclusively
2018-04-20 20:00:04 +02:00
Pavel V. Talanov
cdb49511e6
Mpp highlighting test: make generated, adjust test data
...
Note: this spawns new test cases which were ignored previously
2018-04-20 20:00:02 +02:00
Pavel V. Talanov
5a85f2437d
Mpp test utils: allow to setup dependencies on stdlib and fulljdk
...
Allow to specify jjvm8 as platform
2018-04-20 20:00:00 +02:00
Mikhail Glukhikh
c69dd98c86
Build fix: quick-fix tests (forgotten actions)
2018-04-20 20:55:27 +03:00
Mikhail Glukhikh
a25e971d19
UAST: property delegates consistency #KT-22527 Fixed
2018-04-20 20:39:56 +03:00
Mikhail Glukhikh
f179b2ba13
Test for KT-22527
2018-04-20 20:39:54 +03:00
Mikhail Glukhikh
29c16f9561
Improve KotlinUElementWithComments & use it in most KotlinUElements
...
Related to KT-22135
2018-04-20 20:39:45 +03:00
J.T. Gilkeson
7a538accff
Fix problem with trimEnd wiping out spans in SpannableStringBuilder
...
If I pass in a CharSequence with different spans, the original trimEnd using substring incorrectly wiped out the spans.
changing to subSequence correctly preserves the span data
#KT-23920 Fixed
2018-04-20 18:04:13 +03:00
Alexey Sedunov
36975786e8
Gradle: Import project dependency with non-default configuration by its artifacts
2018-04-20 16:57:43 +03:00
Dmitry Jemerov
2a684684a5
Pass canChangeWhitespaceOnly flag in reformat inspection
...
Otherwise IDEA will run preformat and postformat processors, which don't
expect to run outside of EDT (IDEA-185991)
2018-04-20 15:38:35 +02:00
Alexey Sedunov
38808118b1
Misc: Update test data for MavenUpdateConfigurationQuickFixTest (181/182)
2018-04-20 16:19:25 +03:00
Dmitry Petrov
54cf11fd0a
Skip empty string entries when generating string template expression
...
#KT-19738 Fixed Target versions 1.2.50
2018-04-20 14:52:14 +03:00
Dmitry Petrov
22c2d8b563
Introduce a separate StackValue class for lateinit local vars
...
Local lateinit var differs in behavior from a simple local var,
and logic that relies of 'instanceof Local' checks assuming that all
instances of Local are simple local vars can produce faulty code
(as in KT-23260, where a local lateinit var was not explicitly put on
stack when passed as an argument to an inline function, thus causing
null propagation).
#KT-23260 Fixed Target versions 1.2.50
2018-04-20 14:51:34 +03:00
Dmitry Petrov
7be4f5d31f
Minor: reformat code in InlineCodegen
2018-04-20 14:51:34 +03:00
Nikolay Krasko
c86e157a48
Fix KotlinFileStructureTestGenerated in 181
...
Use common code for 173 and 181.
2018-04-20 14:37:02 +03:00
Nikolay Krasko
846a1a0179
Remove deprecated marker for JVM debugging in Kotlin code (KT-23886)
...
#KT-23886 Fixed
2018-04-20 14:37:01 +03:00
Nikolay Krasko
b6699d7522
Postpone analyze and remove direct working with BindingContext in folding
...
#KT-5206 Fixed
2018-04-20 14:37:01 +03:00
Aaron Nwabuoku
3a83983bfc
Support code folding for standard library collection factory functions (KT-5206)
...
#KT-5206 Fixed
2018-04-20 14:37:01 +03:00
Mikhail Glukhikh
c4cdc0543d
KT-23266 (forgotten change): modify plugin.xml for all branches
2018-04-20 13:17:06 +03:00
Mikhail Zarechenskiy
4f3fde2334
Regenerate tests
2018-04-20 13:06:22 +03:00
Mikhail Zarechenskiy
4a1c63cbbd
[NI] Rename: isVariableReceiverForInvoke -> isForImplicitInvoke
2018-04-20 13:06:21 +03:00
Mikhail Zarechenskiy
397cc4f772
[NI] Support implicit invoke calls on parenthesized receivers
2018-04-20 13:06:21 +03:00
Mikhail Zarechenskiy
1e7682afc0
Minor, rename property according to the style
2018-04-20 13:06:20 +03:00
Mikhail Zarechenskiy
f039ec3625
Refactoring: get rid KotlinCallKind inside ResolutionKind
2018-04-20 13:06:20 +03:00