Commit Graph

61666 Commits

Author SHA1 Message Date
Ilya Goncharov 8b641bf613 [Gradle, JS] Add mpp presets for jsIr 2020-02-12 17:29:22 +03:00
Ilya Goncharov a20e9ae0ed [Gradle, JS] Extract hack for Native and JS IR compiler
- IR to klib compiler needs all dependencies (including transitive implementations)
- move hack from native to common with extracting to protected fun
2020-02-12 17:29:21 +03:00
Ilya Goncharov f936a0fc9b [Gradle, JS] NodeJs and browser producing handlers 2020-02-12 17:29:21 +03:00
Ilya Goncharov 2de7051165 [Gradle, JS] Add produceJs 2020-02-12 17:29:21 +03:00
Ilya Goncharov 64c2b4b076 [Gradle, JS] Add callbacks on configuring producing target for JS IR 2020-02-12 17:29:21 +03:00
Ilya Goncharov e7c6653182 [Gradle, JS] Remove DCE from ir tooling 2020-02-12 17:29:21 +03:00
Ilya Goncharov 6be8a83ff9 [Gradle, JS] Configure compiler args for produceKotlinLibrary in IR 2020-02-12 17:29:21 +03:00
Ilya Goncharov 0ff84eaa63 [Gradle, JS] Copy JS subtargets dsl for IR 2020-02-12 17:29:21 +03:00
Ilya Goncharov 3ac2bae4ce [Gradle, JS] Copy JS plugin for IR 2020-02-12 17:29:21 +03:00
Mikhail Glukhikh ba770f7b61 FIR2IR: fix type parameter indexes & fix some black-box & FIR2IR tests 2020-02-12 17:02:41 +03:00
Toshiaki Kameyama 3ebad2acec "Constructor has non-null self reference parameter": don't report for vararg parameter
#KT-36160 Fixed
2020-02-12 16:35:26 +03:00
Mikhail Glukhikh f3f88cae7a FIR: unmute accidentally muted black-box test 2020-02-12 16:30:47 +03:00
Toshiaki Kameyama 6c93217539 Lift assignment out: don't report when expression is used as expression
#KT-36357 Fixed
2020-02-12 16:17:25 +03:00
Toshiaki Kameyama 8baba38099 "To raw string literal" intention: fix false negative with string content starts with newline symbol \n
#KT-36369 Fixed
2020-02-12 16:15:18 +03:00
Denis Zharkov 61d02d9ecb FIR: Unbound FirJavaElementFinder from Kotlin PSI 2020-02-12 16:05:11 +03:00
Denis Zharkov 9c1577092b FIR: Fix SAM conversion for constructor calls 2020-02-12 16:05:11 +03:00
Denis Zharkov 51db272e0e FIR: Clean environment in AbstractFirTypeEnhancementTest 2020-02-12 16:05:11 +03:00
Denis Zharkov 95b4fa4b31 FIR: Support flexible types in getErasedVersionOfFirstUpperBound 2020-02-12 16:05:11 +03:00
Denis Zharkov 42e8017bde FIR: Minor. Refactor calculation of erased upper bound 2020-02-12 16:05:11 +03:00
Denis Zharkov bc34bc3f96 FIR: Use flexible type for generic parameters bounds
Otherwise star projections may be incorrectly approximated to strictly
nullable types (as in test)
2020-02-12 16:05:11 +03:00
Denis Zharkov 5a2cdfcab4 FIR: Run callable references resolution for synthetic-select calls 2020-02-12 16:05:11 +03:00
Denis Zharkov 003aea2e68 FIR: Consider abbreviation's nullability when expanding types 2020-02-12 16:05:11 +03:00
Alexander Udalov 2bb6e4fd97 Minor, add package to typeOfCapturedStar.kt test
This fixes this test on Android where packages are replaced.
2020-02-12 14:03:22 +01:00
Nikolay Krasko eca562a006 Add possibility to depend on nightly repository 2020-02-12 14:54:47 +03:00
Natalia Selezneva 95b2a583ae build.gradle.kts: change notification text 2020-02-12 14:21:30 +03:00
Pavel Kirpichenkov c02dd720dc [NI] Restore missing call checker errors in coroutine inference
Reported diagnostics from the call checkers didn't get to a top-level
trace, if an intermediate wrapping call was a lambda call.
Use of the top-level trace in call completer is a workaround for
the unreliable commit order of common calls' temporary traces.
^KT-33542 Fixed
2020-02-12 12:27:02 +03:00
Mikhail Zarechenskiy 6af8f320f7 Add JS runtime to the failing test 2020-02-12 12:23:13 +03:00
Dmitriy Novozhilov 9408bb84e9 [FIR-TEST] Update testname in testdata 2020-02-12 11:20:40 +03:00
Dmitriy Novozhilov a7de4a8b4b [FIR-TEST] Update testname in testdata 2020-02-12 11:14:14 +03:00
Mikhail Zarechenskiy 759127df9a Add NI diagnostics for spec tests 2020-02-12 10:37:35 +03:00
Mikhail Zarechenskiy c58e819a6a Regenerate tests 2020-02-12 10:36:46 +03:00
Mikhail Zarechenskiy 0d310c0fa4 [NI] Support signed-unsigned conversions for K/Native
#KT-34545 Fixed
2020-02-12 10:36:45 +03:00
Mikhail Zarechenskiy e14e58c121 Update test about conversions, remove irrelevant case 2020-02-12 10:36:44 +03:00
Mikhail Zarechenskiy 1acce46133 [NI] Fix recording info about captured local variables 2020-02-12 10:36:43 +03:00
Mikhail Zarechenskiy 7f6c03c926 [NI] Fix search of effects for substituted descriptors
This fixed *testExactlyOnce* tests for NI
2020-02-12 10:36:42 +03:00
Mikhail Zarechenskiy 7df92cd00b Set isOperator property for dynamic calls by convention 2020-02-12 10:36:41 +03:00
Mikhail Zarechenskiy a736551c2a Add test checking that fun isn't inherited from base interface 2020-02-12 10:36:40 +03:00
Mikhail Zarechenskiy 45bbdaf73f Add base declaration checker for fun interfaces 2020-02-12 10:36:39 +03:00
Dmitriy Novozhilov 6735cc8937 [FIR] Implement new bound smartcast algorithm
#KT-36055 Fixed
2020-02-12 10:17:45 +03:00
Ilya Kirillov 40f907ec2f Fix compilation for 191 & as35 2020-02-11 23:49:30 +03:00
Mikhail Glukhikh 67668d798b FIR2IR: update test data 2020-02-11 23:22:55 +03:00
Mikhail Glukhikh 12c001f491 FIR: unmute two additional black-box tests 2020-02-11 23:14:51 +03:00
Mikhail Glukhikh 76f78d3fde FIR2IR: don't mutate basic FIR for invoke / next calls 2020-02-11 22:50:06 +03:00
Juan Chen 37abdb1732 [FIR2IR] Fix NoSuchMethod for Iterator::next (same issue with invoke) 2020-02-11 22:50:06 +03:00
Juan Chen 8e35545e10 FIR2IR: provide type arguments for class 'this' receiver 2020-02-11 22:50:06 +03:00
Mikhail Glukhikh df07b77271 FIR2IR: get rid of "creates list under the hood" warnings 2020-02-11 22:50:05 +03:00
Mikhail Glukhikh fe5dd4dba1 FIR2IR: extract 'declareThisReceiverParameter', rename 'setThisReceiver' 2020-02-11 22:50:05 +03:00
Nikolay Krasko b75d0eb1a1 201: Restrict 193 and own plugin for 201 2020-02-11 20:28:05 +03:00
Nikolay Krasko a983b0bf74 201: Additional method getOwnReferences is introduced (bunched) 2020-02-11 20:28:05 +03:00
Nikolay Krasko c9d97ae555 201: Notification group was rewritten to Kotlin (no sam conversion) 2020-02-11 20:28:05 +03:00