Mikhael Bogdanov
1a4acb1694
Fix Android test compilation: remove license from generate file
2019-03-28 15:34:46 +01:00
Denis Zharkov
3164197b88
FIR: Fix compilation for bunch file AbstractFirTypeEnhancementTest.kt.181
2019-03-28 17:32:12 +03:00
Alexander Udalov
cb7727d51a
Add explicit WITH_RUNTIME to boxAgainstJava tests which need stdlib
2019-03-28 14:26:10 +01:00
Alexander Udalov
15928c5b46
Minor, take String instead of Name in IrFunction.addValueParameter
...
All call sites of this method construct parameters with the given string
literal name (and more such call sites are coming in subsequent commits)
and it feels like a boilerplate to wrap it into Name each time manually
2019-03-28 14:26:09 +01:00
Alexander Udalov
4cb5a4fb6d
Fix misc typos in IR backends
2019-03-28 14:26:09 +01:00
Alexander Udalov
6bd4d72b81
Use more correct KProperty type in PropertyReferenceLowering
...
Default type is `KProperty<R>` where R is KProperty's type parameter.
This type doesn't make much sense outside the KProperty's own class
declaration. A more correct type here is `KProperty<*>`, which is the
type used in property delegates in Kotlin
2019-03-28 14:26:09 +01:00
Alexander Udalov
73383d0c20
Extract JvmSymbols to separate file, pass lazyWrapper as SymbolTable
2019-03-28 14:26:09 +01:00
Alexander Udalov
1ee4313803
Minor, introduce IrType.classOrNull
2019-03-28 14:26:09 +01:00
Alexander Udalov
dada35d785
Remove obsolete and unused descriptors and utils
2019-03-28 14:26:09 +01:00
Mikhael Bogdanov
9c21c71c63
Fix IDE related test problems after adding ability to run test in parallel in compiler configuration
2019-03-28 13:51:28 +01:00
Mikhael Bogdanov
f34a2923b5
Fix IDE related test problems after adding ability to run test in parallel in compiler configuration
2019-03-28 13:17:38 +01:00
Mikhael Bogdanov
0c60ff0e80
Revert "Revert "Allow tests to be run in parallel.""
...
This reverts commit bdad3cac
2019-03-28 13:17:37 +01:00
Nicolay Mitropolsky
944bc31f69
Making Kotlin light elements isEquivalentTo to it's origins (KT-30583)
2019-03-28 13:19:42 +03:00
Ting-Yuan Huang
1bf0354e35
TotalOrderEquals: Handle nulls
2019-03-28 11:36:22 +03:00
Denis Zharkov
b1474b11f2
FIR: Fix FirSupertypeResolverTransformer for case of redeclarations
...
When transforming a specific class look for the exact match
Otherwise the last redeclaration will be overwritten by the first one
2019-03-28 11:19:52 +03:00
Simon Ogorodnik
a23e4bfdf1
Fix superType resolver
2019-03-28 11:19:52 +03:00
Simon Ogorodnik
49a0b29129
Store containers per symbol, not per callable id
2019-03-28 11:19:52 +03:00
Denis Zharkov
48f0790785
FIR: Fix bunch files for 181
2019-03-28 11:14:55 +03:00
Ilmir Usmanov
59398536d7
Generate inline site's file name in metadata
...
Otherwise, stacktraces will have invalid file name (declaration site).
#KT-30508 Fixed
2019-03-28 11:14:17 +03:00
Sergey Rostov
7b89b0abbb
JPS Build: exclude :core:builtins, use prebuilt bootstrap version
2019-03-28 10:06:35 +03:00
Sergey Rostov
fb3f28974e
Build: support local.properties for JPS build. Apply JPS related tweaks only inside IDEA import.
2019-03-28 10:06:16 +03:00
Ilmir Usmanov
95f4115a10
Replace global mutable object with global variable
2019-03-27 21:40:13 +03:00
Ilya Kirillov
f1f6740ec9
Show warnings for Java methods with external annotations when they called from Kotlin code
2019-03-27 20:10:46 +03:00
Ilmir Usmanov
0fec3470dd
Regenerate anonymous object if call site of non-inlineable
...
functional argument is suspend
Split LambdaInfo into inlineable and non-inlineable
#KT-26925
2019-03-27 17:44:37 +03:00
Ilmir Usmanov
1c2b8e6fad
Fix wrong state-machine generation if inner object is retransformed
...
during inlining.
#KT-29492 Fixed
2019-03-27 17:44:35 +03:00
Denis Zharkov
7b97c2a42a
FIR: Weaken requirements for all symbols to have correct FIR
...
Currently, some cases like library type parameters are not supported properly
2019-03-27 17:17:59 +03:00
Denis Zharkov
825218b479
Replace FirSymbolProvider::getCallableSymbols with two methods
...
Requesting content of classes seems to be reasonable and at the same time
more easy to implement in Composite providers: they should find
just the first class' result instead of flatmapping all of them
2019-03-27 17:17:59 +03:00
Denis Zharkov
1426341e9f
FIR: Support loading deserialized declarations from JVM class files
2019-03-27 17:17:59 +03:00
Denis Zharkov
0f9d54c4dc
FIR: Support deserialization of nested classes
2019-03-27 17:17:59 +03:00
Denis Zharkov
82c6b51fab
Simplify initialization process for JavaClassFinderImpl
...
After this change, it's not required to call "initialize" with
binding trace and KotlinCodeAnalyzer that is rather useful for FIR
2019-03-27 17:17:59 +03:00
Denis Zharkov
bb1acdbe95
Minor. Extract classes deserialization from BuiltInsPackageFragment
2019-03-27 17:17:59 +03:00
Denis Zharkov
b3e5e059bb
Minor. Extract FirDeserializationContext factories
2019-03-27 17:17:59 +03:00
Denis Zharkov
aec5ec89e7
FIR: Support deserialization for built-in classes content
2019-03-27 17:17:59 +03:00
Denis Zharkov
f03c5e0583
FIR: Support loading built-in top-level functions
2019-03-27 17:17:59 +03:00
Denis Zharkov
705f97cbae
FIR: Support type parameters in FirTypeDeserializer
2019-03-27 17:17:59 +03:00
Denis Zharkov
1d16008eab
Do not request FirProvider for built-in synthesized classes
...
Because currently they don't have FIR and it might fail with an exception
2019-03-27 17:17:59 +03:00
Denis Zharkov
6daf414098
Add common supertype for FirFunction and FirProperty symbols
2019-03-27 17:17:59 +03:00
Denis Zharkov
466296bca0
Remove FirLibrarySymbolProviderImpl from FirJavaModuleBasedSession
...
It's anyway already being created within dependencies
2019-03-27 17:17:59 +03:00
Denis Zharkov
7a19e269fd
FIR: Support import-references to callables
2019-03-27 17:17:59 +03:00
Sergey Rostov
30108d4cb9
CodeConformanceTest: revert formatting committed by mistake
2019-03-27 11:23:54 +03:00
Sergey Rostov
6bf82c1053
Gradle, Kotlin/JS: fix failing tests on Windows
2019-03-27 11:23:53 +03:00
Dmitry Gridin
4495c653cb
Minor: move property from UnusedSymbolInspection to ktPsiUtil
2019-03-27 11:46:30 +07:00
Dmitry Gridin
3e0269a95a
Minor: refactoring & fix warnings in ktPsiUtil
2019-03-27 11:46:30 +07:00
Mikhail Zarechenskiy
791ab05e08
Temporary fix for NI to compile against bootstrap compiler
2019-03-26 22:51:20 +03:00
Mikhail Zarechenskiy
a50cc99b01
[NI] Discriminate integer literal types as they are less specific
...
Plus simplify code in `ResultTypeResolver` a bit
2019-03-26 22:32:14 +03:00
Mikhael Bogdanov
e01cac4c3d
Fix test data
2019-03-26 17:17:54 +01:00
Anton Bannykh
b3f1908026
JS_IR: remove stub generator from IrBuiltins
2019-03-26 17:38:44 +03:00
Anton Bannykh
ed440fc060
JS IR: remove obsolete hack from SymbolTable
2019-03-26 17:38:43 +03:00
Anton Bannykh
530804d072
JS_IR: eager IrBuiltins
2019-03-26 17:38:43 +03:00
Anton Bannykh
45f5342911
JS IR: remove obsolete hacks
2019-03-26 17:38:43 +03:00