Commit Graph

66577 Commits

Author SHA1 Message Date
Yan Zhulanow 65e06c86cc Revert dist_root removed by mistake 2020-04-15 18:19:32 +09:00
Mikhail Bogdanov 10b9ff1066 Minor. Rollback test data change
There is inconsistent behaviour between JS and JVM in case of package presence
2020-04-15 11:04:01 +02:00
Juan Chen a1e0e8b0e7 [FIR] Handle receiver types of extension methods when computing maximally specific types.
Test case (from testPrimitiveReceiver):

fun Short.foo() = 3
fun Int.foo() = 4

1::foo
2020-04-15 11:16:33 +03:00
Dmitriy Novozhilov f7dc06a772 [FIR] Approximate integer constants in lhs of callable reference 2020-04-15 11:13:01 +03:00
Dmitriy Novozhilov c71f9d9640 [FIR] Use argument mapping from resolved call for contract argument mapping 2020-04-15 11:13:01 +03:00
Dmitriy Novozhilov 5b660d2457 [FIR] Ignore FirStubStatement in visit/transform consistency test 2020-04-15 11:13:01 +03:00
Dmitriy Novozhilov 2e4183db7d [FIR-TEST] Update testdata of old FE contracts tests 2020-04-15 11:13:01 +03:00
Dmitriy Novozhilov fea7872359 [FIR] Add contracts resolve for local classes 2020-04-15 11:13:01 +03:00
Dmitriy Novozhilov cecbf53ee8 [FIR] Add processing of FirStubStatement to Fir2IrVisitor 2020-04-15 11:13:00 +03:00
Dmitriy Novozhilov 67c8030706 [FIR] Update resolve phase for all declaration in contracts stage 2020-04-15 11:13:00 +03:00
Dmitriy Novozhilov d718b596bc [FIR] Add transform declaration and companion to regular class 2020-04-15 11:13:00 +03:00
Dmitriy Novozhilov a01bbbb0a0 [FIR] Add processing conditional contracts on property accessors 2020-04-15 11:13:00 +03:00
Dmitriy Novozhilov 1074e4bf29 [FIR] Add contracts resolve for property accessors 2020-04-15 11:13:00 +03:00
Dmitriy Novozhilov d808f3e4fb [FIR-TEST] Add tests for contracts resolve 2020-04-15 11:12:59 +03:00
Dmitriy Novozhilov 17c6122987 [FIR] Make STATUS resolve phase as required for body resolve 2020-04-15 11:12:59 +03:00
Dmitriy Novozhilov 452fb3e723 [FIR] Add stage for resolve contract desription 2020-04-15 11:12:59 +03:00
Dmitriy Novozhilov 9b903b5e13 [FIR] Process implicit receivers in calls with contract 2020-04-15 11:12:59 +03:00
Dmitriy Novozhilov 300c3c30fb [FIR] Fix erasing existing data flow statements 2020-04-15 11:12:59 +03:00
Dmitriy Novozhilov 3c33ee9c68 [FIR-TEST] Move existing contract tests to fromLibrary directory 2020-04-15 11:12:58 +03:00
Dmitriy Novozhilov ba35c43fe9 [FIR] Add forgotten kind initialization in ConeConditionalEffectToFirVisitor 2020-04-15 11:12:58 +03:00
Dmitriy Novozhilov cef6cd765c [FIR] Make ConeEffectDeclaration an abstract class 2020-04-15 11:12:58 +03:00
Dmitriy Novozhilov 258bc62bac [FIR] Replace deprecation on transformer adapters with opt in annotation 2020-04-15 11:12:57 +03:00
Dmitriy Novozhilov eef9b87047 [FIR] List for unresolved effects to resolved contract node 2020-04-15 11:12:57 +03:00
Dmitriy Novozhilov 4e1bf5f1e2 [FIR] Add extracting contracts in raw fir builder and light tree builder 2020-04-15 11:12:57 +03:00
Dmitriy Novozhilov 25cee12421 [FIR] Add contracts to FIR renderer 2020-04-15 11:12:57 +03:00
Dmitriy Novozhilov 50627f2c83 [FIR] Add contract renderer 2020-04-15 11:12:57 +03:00
Dmitriy Novozhilov a89e0123c7 [FIR] Add fir node for raw contract description 2020-04-15 11:12:56 +03:00
Dmitriy Novozhilov ba272101f2 Check for ESReceiver for contracts with is check 2020-04-15 11:12:56 +03:00
Toshiaki Kameyama 9b3c3ae4ba "Replace 'invoke' with direct call" intention: do not add unnecessary parenthesis
#KT-37967 Fixed
2020-04-15 09:59:23 +02:00
Toshiaki Kameyama 2f29b38b19 "Replace 'invoke' with direct call" intention: fix false positive when function is not operator
#KT-37977 Fixed
2020-04-15 09:16:50 +02:00
Mikhail Zarechenskiy e0da30fb13 Remove JavaResolverUtils.java as its usages were moved to core 2020-04-15 02:37:35 +03:00
Mikhail Zarechenskiy 9607739d30 Introduce synthetic scope for constructors of fun interfaces
#KT-37434 Fixed
2020-04-15 02:37:34 +03:00
Mikhail Zarechenskiy e9e21caeaf Refactoring: move utils to create & initialize SAM constructors to core 2020-04-15 02:29:57 +03:00
Mikhail Zarechenskiy 04223f5711 Extract Java specific check from common method out
This is needed for further refactoring
2020-04-15 02:29:53 +03:00
Mikhail Zarechenskiy cf90fe81ac Move Sam(TypeAlias)ConstructorDescriptor to core 2020-04-15 02:06:32 +03:00
Mikhail Zarechenskiy 54497d11ac Move SyntheticMemberDescriptor.kt to core
This is a first part of unification SAM constructors for all platforms
2020-04-15 02:06:32 +03:00
simon.ogorodnik 6d3dccab83 [FIR] Fix obsolete transforms & visit consistency 2020-04-14 20:05:47 +03:00
Nicolay Mitropolsky 738e2f813c Uast: expression type for assigning arrays (KT-34187) 2020-04-14 18:27:34 +03:00
Nicolay Mitropolsky 9674643254 Uast: support for UYieldExpression (KT-35574) 2020-04-14 18:27:34 +03:00
Dmitriy Dolovov 0a2429c6f6 Minor. Remove redundant import 2020-04-14 21:14:33 +07:00
Dmitriy Dolovov c3e20bffd7 Fix launching Gradle import test from master
No need to depend on org.jetbrains.kotlin:kotlin-native-utils artifact.
It's already packed inside of kotlin-compiler.jar
2020-04-14 21:08:04 +07:00
Dmitriy Dolovov c35420eaf6 Minor. Add comments 2020-04-14 21:07:59 +07:00
Dmitriy Dolovov 7be9a2ef17 HMPP. Avoid leaking platform-specific dependencies into common libraries
Issue #KMM-217
2020-04-14 21:07:54 +07:00
Dmitriy Dolovov b67a48f220 HMPP. Rewrite LibraryDependenciesCache on using LibraryInfo/SdkInfo
... instead of pure IJ Library/SDK.
2020-04-14 21:07:49 +07:00
Dmitriy Dolovov 6d0e73191c HMPP: Fix detection of NativePlatform in CompositeResolverForModuleFactory 2020-04-14 21:07:44 +07:00
Dmitriy Dolovov 757d77600a HMPP: Evaluate exact TargetPlatform for each K/N KLIB library 2020-04-14 21:07:38 +07:00
Dmitriy Dolovov 90398fd087 Minor. Specify explicit property types 2020-04-14 21:07:33 +07:00
Dmitriy Dolovov 753ef971f9 HMPP: Fix serialization of TargetPlatform in tests 2020-04-14 21:07:27 +07:00
Dmitriy Dolovov fee6a752e0 HMPP: Fix serialization of TargetPlatform in Kotlin facet 2020-04-14 21:07:22 +07:00
Dmitriy Dolovov adc457548b Minor. Formatted 2020-04-14 21:07:16 +07:00