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
simon.ogorodnik
3c4e691e62
[FIR] Fix getClassDeclaredCallableSymbols for constructors
2020-04-16 18:38:18 +03:00
Georgy Bronnikov
41a28bde5c
JVM_IR: repair synthetic accessors to fields
2020-04-16 15:08:11 +03:00
Mikhail Zarechenskiy
4ffcbc0c2f
[NI] Properly support UnsafeVariance annotation
...
#KT-38134 Fixed
#KT-34433 Fixed
#KT-31823 Fixed
2020-04-16 13:55:47 +03:00
Mikhail Glukhikh
d906c814cf
[FIR] Fix lookup tag creation for values() & valueOf()
2020-04-15 19:32:53 +03:00
Anton Bannykh
81798282b9
JS: support explicit SAM constructor invocation
2020-04-15 17:13:21 +03:00
Georgy Bronnikov
7ea4ac9e9a
[FIR] Regenerate FIR tree
2020-04-15 16:26:44 +03:00
Mikhail Bogdanov
1de0fbfc3a
Add delegation tests for new default modes
2020-04-15 15:25:03 +02:00
Georgy Bronnikov
a1a2da3c0f
Revert "IR: put resolution of unbound type parameter symbols behind a language version flag"
...
This reverts commit 9634e6fba3 .
2020-04-15 15:58:44 +03:00
Georgy Bronnikov
9634e6fba3
IR: put resolution of unbound type parameter symbols behind a language version flag
2020-04-15 15:51:20 +03:00
Steven Schäfer
fc7d667282
Psi2Ir: Bind unbound type parameters
2020-04-15 15:32:53 +03: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
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
simon.ogorodnik
6d3dccab83
[FIR] Fix obsolete transforms & visit consistency
2020-04-14 20:05:47 +03:00
Jinseong Jeon
08b91da6db
FIR: fix body generation for data class's copy method
2020-04-14 11:51:30 +03:00
Jinseong Jeon
948f9debdc
FIR: refactor member generations for data class
2020-04-14 11:51:30 +03:00
Mark Punzalan
d4cbfcb79e
[FIR] Promote numeric types during comparisons
...
Added support for comparing platform types. Extracted logic to convert
operator expressions to OperatorExpressionGenerator.
2020-04-14 11:51:30 +03:00
simon.ogorodnik
276c393141
[FIR] Support captured type parameters in java symbol provider
2020-04-13 20:26:19 +03:00
simon.ogorodnik
af27ca013b
[FIR] Fix captured type parameters propagation in deserialization
2020-04-13 20:26:19 +03:00
simon.ogorodnik
356e42196c
[FIR2IR] Fix inner class constructor receiver parameter type
2020-04-13 20:26:19 +03:00
simon.ogorodnik
132c8ee210
[FIR] Apply GOOD testData changes after type parameters support
2020-04-13 20:26:18 +03:00
simon.ogorodnik
797b58669b
[FIR] Support captured type parameters in lightTree2fir
2020-04-13 20:26:17 +03:00