Commit Graph

64341 Commits

Author SHA1 Message Date
Valentin Kipyatkov 7bcd6619cf Tracking inflow of lambda receiver 2020-04-18 01:24:55 +03:00
Valentin Kipyatkov 61d4383cb9 Merged LambdaResultOutflowBehaviour and LambdaCallsBehaviour into one 2020-04-18 01:24:55 +03:00
Valentin Kipyatkov 1e39d4a63c Code refactoring + better handling of incoming data flow to java super methods 2020-04-18 01:24:55 +03:00
Valentin Kipyatkov b5b0fd62a9 Track anonymous function parameters in inbound data flow analysis as well 2020-04-18 01:24:54 +03:00
Valentin Kipyatkov f0d4d7bb86 Added correctness check of test data + fixed huge amount of incorrect code in test data 2020-04-18 01:24:54 +03:00
Valentin Kipyatkov c19a16f1e0 Track lambda parameters in inbound data flow analysis 2020-04-18 01:24:54 +03:00
Valentin Kipyatkov 799b2d7291 Refactoring: abstraction of idea with "lambdaLevel" in slices 2020-04-18 01:24:54 +03:00
Valentin Kipyatkov 03e894f75d Use partial body resolve 2020-04-18 01:24:53 +03:00
Valentin Kipyatkov 86c98b0d62 Refactoring 2020-04-18 01:24:53 +03:00
Valentin Kipyatkov b4b58d1d99 Handling implicit receivers in InflowSlicer 2020-04-18 01:24:53 +03:00
Valentin Kipyatkov 90188ef44f Data flow to/from here: supported expected/actual declarations and extension receivers 2020-04-18 01:24:52 +03:00
Valentin Kipyatkov bfa3fb0589 Do not check scope for super declaration 2020-04-18 01:24:52 +03:00
Valentin Kipyatkov 179b59032a Do not create JavaSliceUsage directly 2020-04-18 01:24:52 +03:00
Valentin Kipyatkov 0b2aff4e70 KT-38003 works for Java implementations of extension method 2020-04-18 01:24:52 +03:00
Valentin Kipyatkov 84c9692332 KT-38003 works for Java implementations too 2020-04-18 01:24:51 +03:00
Valentin Kipyatkov 2b83e3721a KT-38003 "Analyze Data Flow from Here" should work on parameter of abstract method
#KT-38003 Fixed
2020-04-18 01:24:51 +03:00
Vladimir Dolzhenko 612629f3cb Fix compilation AbstractTypingIndentationTestBase for 191 2020-04-17 22:41:18 +02:00
Vladimir Dolzhenko 5531ec3d28 Fix compilation AbstractTypingIndentationTestBase for 191 2020-04-17 21:36:36 +02:00
Alexander Udalov 4d7d407e87 Update bootstrap to 1.4.0-dev-6123 2020-04-17 18:34:45 +02:00
Alexander Udalov 72c52d37ae Add some -X flags for compatibility to kotlin-reflect build
"-Xno-kotlin-nothing-value-exception" is needed to temporarily prevent
the problem happening in the composite build with Kotlin/Native
(ClassNotFoundException from KClassImpl.Data).
"-Xno-optimized-callable-references" is added just in case of any
similar problem.
2020-04-17 18:34:45 +02:00
Dmitriy Dolovov a6064ecda6 [Commonizer] Generate correct TA types for callable descriptors
Issue #KMM-217
2020-04-17 23:08:01 +07:00
Ilya Matveev 2938b69ff5 [Gradle, native] Disable platform libraries generation by default
Since there are a lot of changes around klibs in 1.4-M2, it was
decided to postpone enabling user-side platform libraries generation
by default. This patch switches the default distribution type to
prebuilt.

It also slightly refactors the code allowing user to choose the
distribution type. Now, there are only two distribution types
available:

- prebuilt - the default type, contains prebuilt platform libs.
             A distribution archive has the "-prebuilt-" classifier.
- light    - doesn't contain platform libs in an archive and
             generates them at the user side. The archive has no
             classifier to avoid changes in the K/N build logic and
             TC configurations.

The same types are also available for 1.3 but with sightly different
convention:

- prebuilt - the default type, contains prebuilt platform libs.
             A distribution archive has no classifier.
- light    - aka "restricted" distribution, doesn't contain
             platform libs for Apple platforms. The archive has
             the "-restricted-" suffix. Doesn't have a facility
             to build the libraries at the user side.

Issue #KT-38174 Fixed
2020-04-17 20:07:00 +07:00
Ilya Matveev 7ee4f4853d [Gradle, native] Rename native distribution kind: regular -> light 2020-04-17 20:06:42 +07:00
Ilya Kirillov 9c156c1a93 Wizard: run Gradle wrapper task in background
#KT-38225 fixed
2020-04-17 15:12:15 +03:00
Ilya Kirillov c734069cde New J2K: do not show inline dialog during J2K
#KT-35169 fixed
2020-04-17 15:08:52 +03:00
Ilya Kirillov e4a721d03e New J2K: do not create erroneous conversion from Java accessors to property
#KT-38004 fixed
2020-04-17 15:08:51 +03:00
Ilya Chernikov d1a59e8da6 Fix js repl tests compilation 2020-04-17 13:38:51 +02:00
Dmitriy Novozhilov f489e4044f [FIR-TEST] Update testdata after removal bodies of synthetic data class funs 2020-04-17 13:22:19 +03:00
Jinseong Jeon 9f1ecadd65 IR: more consolidation of synthetic member generation for data class. 2020-04-17 12:38:38 +03:00
Dmitriy Novozhilov 7f02d57d88 [FIR] Correctly detect super type in delegated constructor call 2020-04-17 12:37:29 +03:00
Dmitriy Novozhilov adfd478361 [FIR] Hold all containers in body resolve context, not only last one 2020-04-17 12:37:29 +03:00
Dmitriy Novozhilov a446aa2266 [FIR] Set implicit type for delegated constructor calls in fir builder 2020-04-17 12:37:28 +03:00
Dmitriy Novozhilov 276754260a [FIR] Add replaceCalleeReference to all FirResolvable
Also improve tree generator: now it generates abstract overrides
  for `replace` functions and correctly generates replace for fields
  with overriden type
2020-04-17 12:37:28 +03:00
Dmitriy Novozhilov fa1e5f9593 [FIR] Add transformations for delegated constructor call 2020-04-17 12:37:28 +03:00
Dmitry Gridin 30ac024011 Regenerate IntentionTestGenerated 2020-04-17 15:14:26 +07:00
Dmitry Gridin 97a8bde64d Convert AbstractTypingIndentationTestBase to Kotlin 2020-04-17 15:14:26 +07:00
Dmitry Gridin cbd5d29457 Add performance tests for typing indentation 2020-04-17 15:14:25 +07:00
Ilya Muradyan 400ea13f07 Fix scripting REPL completion after literals 2020-04-17 09:37:35 +02:00
Ilya Muradyan d2fec96f38 Add new REPL API JVM implementation 2020-04-16 21:16:08 +02:00
Ilya Muradyan 4c2c44b106 Add new REPL API 2020-04-16 21:16:08 +02:00
Ilya Muradyan b240fce224 Add incompleteCode diagnostic type 2020-04-16 21:16:08 +02:00
Ilya Muradyan af251cafa4 Add info about the end of range in scripting REPL compiler messages 2020-04-16 21:16:08 +02:00
Ilya Muradyan a70a128d9e Fix typo in property name 2020-04-16 21:16:08 +02:00
Ilmir Usmanov 5ab55fbb57 Support -J<jvm-param> and "-Dname=value" in windows runner script
Otherwise, -J-ea has no effect on windows, which breaks assert tests.
Wrap parameters with delimeters in quotes.
 #KT-30211 Fixed
2020-04-16 21:11:50 +02:00
Dmitry Petrov ec50b1c85e Add '-Xno-kotlin-nothing-value-exception' to compiler args in kotlin 2020-04-16 19:38:30 +03:00
Dmitry Petrov ac5411c32e Command-line option disabling KotlinNothingValueException generation 2020-04-16 19:38:30 +03:00
simon.ogorodnik 3c4e691e62 [FIR] Fix getClassDeclaredCallableSymbols for constructors 2020-04-16 18:38:18 +03:00
Toshiaki Kameyama eff57001dc Create secondary constructor: fill 'this()' arguments
#KT-11865 Fixed
2020-04-16 17:04:09 +02:00
Ilya Kirillov e271015382 Minor: don't use deprecated HashSet class in KotlinChangeSignatureUsageProcessor 2020-04-16 15:43:15 +03:00
Ilya Kirillov 00a85f03ca Do not search for non Kotlin/Java usages in KotlinChangeSignatureUsageProcessor
It may break some other language plugins

#KT-37637 fixed
2020-04-16 15:41:41 +03:00