Dmitriy Novozhilov
cadc2dfe4d
[FIR] Fix generating fir for invoke calls
2019-11-08 12:12:38 +03:00
Pavel Kirpichenkov
ff32eab3d1
[NI] Run call checkers on resolved calls for callable references
...
#KT-34391 Fixed
2019-11-08 11:04:43 +03:00
Mark Punzalan
f444702cf3
JVM: Always invoke get()/charAt() in optimized for-loop over
...
CharSequence.withIndex(), even if element variable is unused in
destructuring declaration.
#KT-34779 Fixed
2019-11-08 10:55:09 +03:00
Mikhail Glukhikh
411dc5d60e
FIR nested classifier scope building: optimize companion search
2019-11-08 09:58:37 +03:00
Mikhail Glukhikh
48938a20a7
Raw FIR: add synthesized Enum.valueOf() function
2019-11-08 09:58:02 +03:00
Alexander Udalov
1978db9d0e
Move codegen tests on old language versions under oldLanguageVersions/
...
This directory is skipped in JVM IR test generator, so they won't show
up as failed anymore.
Note that only failing tests are moved to oldLanguageVersions/. Tests
which already pass are still being run. It may be useful not to break
them in case we _do_ need to support some pre-1.3 language feature
switches in JVM IR.
2019-11-07 19:05:24 +01:00
Alexander Udalov
c3729c8189
Reorganize codegen tests for old language versions
...
Put all files under a single "oldLanguageVersions" directory under test
data of each test
2019-11-07 18:49:27 +01:00
Steven Schäfer
dcd72b06d8
JVM IR: Implement CHECK_NOT_NULL as a lowering
2019-11-07 18:47:53 +01:00
Nikolay Krasko
ea6c43dabd
Mute inline testMultipleInExpression because of unstable order of usages in 193
2019-11-07 20:23:29 +03:00
Nikolay Krasko
fe9c5cac45
Fix TypedHandlerTest in 193
...
Unify TypedHandlerTest.kt with the KotlinLightCodeInsightTestCase
2019-11-07 20:23:29 +03:00
Nikolay Krasko
f6bdaf992e
Fix jps build in buildSrc by explicitly using mutable set
2019-11-07 20:23:29 +03:00
Nikolay Krasko
c053bd213a
Don't assert order of todo items to fix platform update to 193
2019-11-07 20:23:29 +03:00
Nikolay Krasko
b2a61eb5e6
Additional mute for IdeReplCompletionTestGenerated.testFunctions in 193
2019-11-07 20:23:29 +03:00
Nikolay Krasko
2aa251fd0c
Remove deprecated API from InlayScratchFileRenderer
2019-11-07 20:23:28 +03:00
Vladimir Ilmov
9fb95e776e
[HIGHLIGHT] Specific keyword rules for val,var highlighting.
...
'Kotlin keyword' rule configured as fallback rule for all Kotlin keywords:
- Created 'var'/'val' rules with fallback to 'Kotlin keyword'
- BUILTIN_ANNOTATION rule fallback changed from Java to 'Kotlin keyword'
#KT-13344 Fixed
2019-11-07 18:48:59 +03:00
Dmitriy Dolovov
34ea47a868
Extract Konan Gradle model into a separate JAR file
2019-11-07 18:25:35 +03:00
pyos
fb9f43c119
JVM_IR: fix load check in inliner (should accept primitives too)
2019-11-07 15:58:44 +01:00
Alexander Udalov
4164b620e8
Minor, remove obsolete directives and suppressions from contracts test data
2019-11-07 15:20:34 +01:00
Alexander Udalov
66e19b13ce
IR: create shared variables for val-variables when needed
...
This is possible when a lambda's contract guarantees initialization of a
variable.
2019-11-07 15:20:34 +01:00
Igor Chevdar
5c4b47c336
[native-gradle-plugin] Disabled native daemon for tests for now
2019-11-07 17:01:18 +03:00
Igor Chevdar
83331a0afb
[native-gradle-plugin] Test fix
2019-11-07 17:00:59 +03:00
Igor Chevdar
ecb001d5db
Bumped K/N version
2019-11-07 17:00:03 +03:00
Igor Chevdar
d36effd725
[native-gradle-plugin] Run konan directly from the gradle process
2019-11-07 17:00:03 +03:00
Nikolay Krasko
d755002ac4
Advance bootstrap to 1.3.70-dev-1231
2019-11-07 16:24:13 +03:00
Nikolay Krasko
0ea64c8d4b
Avoid using js dist library during jps build as it absent in bootstrap
2019-11-07 16:24:13 +03:00
Nikolay Krasko
155a760ee9
Revert "Revert [JS IR] commits that failed build"
...
This reverts commit 740f851a
2019-11-07 16:24:13 +03:00
Steven Schäfer
181d023e3c
JVM IR: Remove JvmBackendContext.getTopLevelClass
2019-11-07 13:48:43 +01:00
Steven Schäfer
1ac753602e
JVM IR: Avoid getTopLevelClass in CollectionStubMethodLowering
2019-11-07 13:48:43 +01:00
Steven Schäfer
f9ff3771e5
JVM IR: Avoid getTopLevelClass in AddContinuationLowering
2019-11-07 13:48:43 +01:00
Steven Schäfer
481d4d72b9
JVM IR: Avoid getTopLevelClass in JvmSymbols
2019-11-07 13:48:43 +01:00
Mark Punzalan
d0c261c779
Ensure the correct functions (with correct params) are being used in
...
ForLoopsLowering.
2019-11-07 13:43:24 +01:00
Mark Punzalan
21178a4f1a
Fix issue getting the size property from Collection bounded type
...
parameters, when lowering for-loops over Collection.indices.
2019-11-07 13:43:24 +01:00
Mikhail Glukhikh
30679ebfaf
FIR Java: implement correct type matching in SuperTypeScope
2019-11-07 15:07:41 +03:00
Ilya Kirillov
7fffd3d0f2
Fix using method removed from 193 in old J2K
2019-11-07 14:59:08 +03:00
Toshiaki Kameyama
39db76b2ab
"Indent raw string" intention: do not suggest in const
...
#KT-34784 Fixed
2019-11-07 14:57:56 +03:00
Georgy Bronnikov
688a2185fa
Tests for Kapt3 with JVM_IR backend
2019-11-07 13:28:09 +03:00
Mikhail Glukhikh
4d9839a790
JavaClassUseSiteMemberScope: add mutable vs non-mutable type matching
2019-11-07 13:08:38 +03:00
Dmitriy Novozhilov
61c337588b
Revert testdata accidentally committed in 665405c4
2019-11-07 10:41:15 +03:00
Dmitriy Novozhilov
4f8a8f84ba
[FIR] Update some testdata in fir visualizer test
2019-11-07 10:39:22 +03:00
Dmitriy Novozhilov
abf41f87a1
[FIR] Fix rendering of local variables in Visualizer
2019-11-07 10:39:21 +03:00
Dmitriy Novozhilov
f0ba9c3c40
[FIR] Make file separator in AbstractVisualizer OS independent
2019-11-07 10:39:21 +03:00
Mikhail Glukhikh
581504aac5
Raw FIR: add synthesized Enum.values() function #KT-24076 Fixed
2019-11-07 09:29:00 +03:00
Mikhail Glukhikh
6e0148c7a8
FIR: cleanup of DataClassUtils: remove redundant status field assignments
2019-11-07 09:28:16 +03:00
Leonid Startsev
3b100e57f2
Change NO_EXPLICIT_VISIBILITY_IN_API_MODE diagnostic range to 'declaration modifiers + name'.
...
Motivation: missing visibility modifier is an error in visibility modifiers list, so we should highlight this list.
Including a name in the range is convenient for using alt+enter (you don't have to move cursor from name to fun/class/val keyword)
Also change NO_EXPLICIT_RETURN_TYPE_IN_API_MODE diagnostic range to 'declaration name' to match corresponding IDE inspection.
Fix stylistic problems and typos after review
2019-11-06 19:54:00 +03:00
Leonid Startsev
24688f3503
Do not disable 'redundant visibility modifier' inspection completely in Explicit API mode.
...
Instead, disable it only for effectively public declarations.
Add tests for this IDE inspection.
2019-11-06 19:54:00 +03:00
Leonid Startsev
5ab262c977
Skip explicit API inspection for data class properties and add inspection for public API in interfaces
...
Add tests for almost all the cases
2019-11-06 19:54:00 +03:00
Leonid Startsev
ebb7e434c8
Explicit Api mode: Renamings after design discussions
...
Change CLI flag to -Xexplicit-api=strict|warning. 'Disable' state and 'mode' suffix are left out as implementation details.
Change intention title to 'make X public explicitly'
Do not report 'no explicit visibility' on property accessors
Set DECLARATION_SIGNATURE as a range for report
Rename internal diagnostic from _MIGRATION to _WARNING
2019-11-06 19:53:59 +03:00
Leonid Startsev
7fada51c42
Add quickfix for setting explicit public visibility for diagnostic reported in API mode
2019-11-06 19:53:59 +03:00
Leonid Startsev
2b708093c0
Add explicit return type check for API mode
...
It will use the same SpecifyTypeExplicitlyIntention as in other places; to reuse check logic, some parts of code were moved from corresponding inspection (PublicApiImplicitTypeInspection) into ApiModeDeclarationChecker.
Also disable RedundantVisibilityModifierInspection when API mode is on.
2019-11-06 19:53:58 +03:00
Leonid Startsev
7058492b55
Explicit Api mode: prototype with check for missing explicit visibility
...
Add cli flag with 3-state switch
2019-11-06 19:53:58 +03:00