Commit Graph

54688 Commits

Author SHA1 Message Date
Dmitry Gridin 3914530fa8 Don't delete import from stdlib if alias exists and used
#KT-31414 Fixed
2019-05-14 21:01:21 +07:00
Dmitry Gridin 32298522dd Optimize Imports shouldn't delete imports with unresolved parts
#KT-10512 Fixed
2019-05-14 21:01:20 +07:00
Dmitry Gridin 23e51268ad Minor: refactoring AbstractImportsTest 2019-05-14 21:01:20 +07:00
Mikhael Bogdanov 8050e94c0d Minor. Remove obsolete code for emulator shutdown 2019-05-14 15:46:23 +02:00
Mikhael Bogdanov 53856daaa4 Add system property to filter android test execution 2019-05-14 15:46:22 +02:00
Mikhael Bogdanov d3c0937c67 Run android test locally with X86 emulator 2019-05-14 15:46:21 +02:00
Svyatoslav Kuzmich 28406b6bc4 [JS IR BE] Enable unconditional validation 2019-05-14 16:23:43 +03:00
Svyatoslav Kuzmich b07690fccf Phaser: Implement dumper and verifier as general actions 2019-05-14 16:23:43 +03:00
Svyatoslav Kuzmich 0702b88bf3 [IR BE] Update parents in ArrayConstructorLowering 2019-05-14 16:23:42 +03:00
Mikhail Glukhikh 2d5f41cfe3 Fix .inspection file for ConvertNaNEquality tests 2019-05-14 16:23:08 +03:00
Mads Ager b1e8a7cfce JVM: Generate LVT entry for this in @JvmOverload methods.
This change also makes sure that no line numbers are generated
in the wrappers in the JVM_IR backend.

Change-Id: If6c37f8a20894455abddb526039df059e02015a3
2019-05-14 15:14:07 +02:00
Ilmir Usmanov 360e30c133 Remove redundant continuation classes and INNERCLASS nodes
#KT-31339 Fixed
2019-05-14 16:00:39 +03:00
Martin Petrov ccf2941f4a Use spaces instead of tabs to indent -Xlist-phases.
In Terminal.app and xterm the output columns get misaligned when using tabs.
Tabbed output only renders correctly when `tabstop=1`.
2019-05-14 15:54:01 +03:00
Svyatoslav Kuzmich 91d16ee947 [CLI] Extract :compiler:cli-js from :compiler:cli 2019-05-14 15:49:50 +03:00
Mark Punzalan 7efc29df7e Split up generation of test data for codegen/box/ranges into signed and
unsigned ranges/progressions.

The tests pass in JVM_IR for signed, but fail for unsigned due to
inlining being broken. We can disable the JVM_IR tests for unsigned,
while keeping them enabled for signed, to get better test coverage in
the interim until inlining is fixed.
2019-05-14 14:26:15 +02:00
Yan Zhulanow 331891b0d7 Pill: Fix getSerializedCompilerArguments()
There is an other method that starts with 'getSerializedCompilerArguments' – serializedCompilerArgumentsIgnoreClasspathIssues().
Fix the clash by exact matching: the getSerializedCompilerArguments() is not internal anyway.
2019-05-14 12:25:54 +09:00
Igor Yakovlev bf8cbfc6b5 Temporary ignore ConvertJavaInterfaceToClass test 2019-05-14 00:10:28 +03:00
Igor Yakovlev d44f37d3d5 Fix misspelling of KtUltraLightMethodForSourceDeclaration 2019-05-13 19:56:04 +03:00
pyos 40696f65c3 JVM_IR: generate WhenMappings for enum ordinal subjects 2019-05-13 19:09:07 +03:00
pyos fb194e982e Copy EnumWhenLowering from Kotlin/Native 2019-05-13 19:09:07 +03:00
Andrey Uskov 52315106e8 Create source sets for generated by kapt sources during import
#KT-30739 Fixed
2019-05-13 18:43:11 +03:00
Steven Schäfer 1e08b3c7da Simplify findLocalIndex in ExpressionCodegen 2019-05-13 18:34:00 +03:00
Steven Schäfer b04dc69157 Access this through the dispatch parameter when available 2019-05-13 18:34:00 +03:00
Steven Schäfer 9b9236efcb Fix parameter indices in SyntheticAccessorLowering 2019-05-13 18:34:00 +03:00
Sergey Igushkin be05095df5 Introduce Java support in JVM MPP targets (KT-26256)
Deprecate the `jvmWithJava` preset, add warning.

Add a function `withJava()` to JVM MPP targets which applies the 'java'
plugin and sets up the Kotlin & Java interoperation.

Issue #KT-26256 Fixed

Signed-off-by: Sergey Igushkin <hotkeytlt@gmail.com>
2019-05-13 16:25:09 +03:00
Igor Yakovlev 4625002efe Fix invalid test data for CommonIntentionActionsTest 2019-05-13 16:10:52 +03:00
Matthew Runo 39f576d75c Migrate RetentionPolicy arguments in deprecated Java quick-fix
#KT-29666 Fixed
2019-05-13 15:35:46 +03:00
Roman Artemev db5396c1c2 [JS IR BE] Fix main function detector
- Do not consider extension functions as main candidate
2019-05-13 15:26:09 +03:00
Mikhael Bogdanov c8564e9ade Update jpsBuild dependencies 2019-05-13 14:18:33 +02:00
Svyatoslav Kuzmich bd3953c09f [JS IR BE] Turn on strict mode in generated code.
Fix multiple import of the same javascript module.
2019-05-13 13:41:11 +03:00
Svyatoslav Kuzmich 0f90aa5f80 [JS IR BE] BridgeConstruction: Fix init order of receivers and type parameters 2019-05-13 13:40:30 +03:00
Toshiaki Kameyama 14259ca9e0 Implicit Nothing? type: don't report when declaration overrides nullable nothing type
#KT-30481 Fixed
2019-05-13 13:00:50 +03:00
Toshiaki Kameyama cf4471ba53 "Redundant 'requireNotNull' or 'checkNotNull' call": don't remove first argument if function is used as expression
#KT-31404 Fixed
2019-05-13 16:59:01 +07:00
Dereck Bridie 574178882a KT-26629 Inspection to replace equality check with NaN with isNaN call 2019-05-13 12:55:53 +03:00
Dmitry Gridin 07e908f15f Fix incorrect quickfix "Replace with Kotlin analog" for conversion to an extension
where the first argument is an expression with an operation
 #KT-31341 Fixed
2019-05-13 16:38:08 +07:00
Mikhail Glukhikh b4a63794e5 Add name to argument: support old-style comment deletion 2019-05-13 12:33:52 +03:00
Mikhail Glukhikh b0d294b50c Use candidate descriptor to determine parameter name stability in IDEA
#KT-31349 Fixed
2019-05-13 12:33:52 +03:00
Mikhail Glukhikh d517276a06 Apply "unnamed boolean literal" to idea & J2K + other style fixes 2019-05-13 12:33:46 +03:00
Mikhail Glukhikh 955bfd6e7b Introduce "add parameter names to following arguments"
This commit also refactors relevant intentions & inspections,
like "add name to argument", "add names to call arguments",
"unnamed boolean literal argument"

#KT-30622 Fixed
2019-05-13 12:33:39 +03:00
LepilkinaElena f26a4e06bd Test for compilerOpts in cinterop part of MPP plugin (#2300) 2019-05-13 12:05:33 +03:00
Igor Yakovlev bb071263b0 Fix JVMStatic annotation for UL-properties 2019-05-13 11:21:12 +03:00
Igor Yakovlev 5da6d9d438 Update license agreement 2019-05-13 11:21:12 +03:00
Igor Yakovlev 0d31df7fb7 Fix invalid test data for static import quick fix 2019-05-13 11:21:12 +03:00
Igor Yakovlev 9870585eb8 Fix KotlinShortNamesCacheTest to not use clsDelegate 2019-05-13 11:21:12 +03:00
Igor Yakovlev ab852750cc Fix testdata for find usages of properties 2019-05-13 11:21:12 +03:00
Igor Yakovlev 7608b11691 Fix testdata for abstract method implementing intention 2019-05-13 11:21:12 +03:00
Igor Yakovlev 48136d64cf KtUltraLightMethod now use null for MemberIndex 2019-05-13 11:21:12 +03:00
Igor Yakovlev b485819a30 Move refactorings, fix annotations and fix cls-delegate tests 2019-05-13 11:21:11 +03:00
Igor Yakovlev 8e103b6559 Fix origin for TypeParameter + refactoring 2019-05-13 11:21:11 +03:00
Igor Yakovlev f20ba9ddc2 Fix rename refactoring for UltraLightParameters 2019-05-13 11:21:11 +03:00