Ivan Kylchik
dcd8a4a4c7
Add variables support in interpreter
2020-06-24 16:12:42 +03:00
Ivan Kylchik
aca7a49214
Add some sort of correct calculation with const modifier
2020-06-24 16:12:42 +03:00
Ivan Kylchik
a20269bcdd
Extract some methods to utils
2020-06-24 16:12:42 +03:00
Ivan Kylchik
11e808715b
Rethink main goal of stack frame
2020-06-24 16:12:42 +03:00
Ivan Kylchik
c3600ba114
Implement interpreter that can evaluate simple fun
...
For now working cases are: create simple object using primary
constructor, invoke its method, invoke superclass method,
load/save fields. Return values from compile time function can be
only primitives for now.
2020-06-24 16:12:42 +03:00
Ivan Kylchik
a582d88cf4
Create simple stack model for interpreter
2020-06-24 16:12:41 +03:00
Ivan Kylchik
f6373a647e
Create simple interpreter that evaluate constant values
2020-06-24 16:12:41 +03:00
Ivan Kylchik
a27a07ce81
Create generator for map with builtin operations
2020-06-24 16:12:41 +03:00
Dmitry Petrov
e9570d6efd
Minor: update testData
2020-06-24 16:04:38 +03:00
Toshiaki Kameyama
6b2c87020b
Replace explicit parameter with 'it': do not suggest when lambda is directly under "when" or "if"
...
Relates to #KT-35320
2020-06-24 14:55:30 +02:00
Georgy Bronnikov
daab07ea38
JVM_IR: use MetadataSource for local delegated properties
2020-06-24 14:41:01 +03:00
Alexey Trilis
593684ecb6
Fix testdata after changing API of kotlin.browser and kotlin.dom
2020-06-24 13:38:29 +03:00
Toshiaki Kameyama
e6edab1c82
Quick doc: do not show nullability annotations
...
#KT-37132 Fixed
2020-06-24 10:45:57 +02:00
Toshiaki Kameyama
e8aa14a283
Method sepatators: show separator between companion object and function
...
#KT-24352 Fixed
2020-06-24 10:05:27 +02:00
Ilya Chernikov
5942446274
[minor] clean up main-kts-dependencies
2020-06-23 21:56:04 +02:00
Ilya Chernikov
4c34e9dd03
Move main-kts cache test to out-of-process compilation
...
to avoid clashes with coroutine debugger when running
tests from IntelliJ
2020-06-23 21:56:04 +02:00
Ilya Chernikov
879e22f274
Fix coroutines core shading in main-kts
2020-06-23 21:56:04 +02:00
Gia Thuan Lam
83b52bb109
Enable Input Redirection for KotlinRunConfiguration
...
#KT-28854 Fixed
(cherry picked from commit 6e55010767b1c1a7c8d23d337bdbd5824dfa2906)
2020-06-23 21:04:09 +02:00
Ilya Goncharov
69e8abfe3c
Fix test data for new project wizard in Project Templates
2020-06-23 21:07:35 +03:00
Dmitry Petrov
4e92c79bc4
JVM_IR: don't generate nullability annotations on synthetic declarations
...
Fixes KT-36993 and some other related issues.
2020-06-23 20:51:48 +03:00
Dmitry Petrov
d477d9eb43
JVM_IR KT-37005: no delegates for @InlineOnly funs in multifile facades
2020-06-23 20:22:41 +03:00
Dmitry Petrov
5bfec7f6bc
JVM: don't generate nullability annotations on property delegate fields
...
Such fields are private, so these annotations are redundant.
They were incorrect, anyway (property type was used instead of delegate
type).
2020-06-23 20:18:42 +03:00
Mikhail Bogdanov
af3bda51ec
Fix compilation on mixed hierarchies in compatibility mode
2020-06-23 18:59:04 +02:00
Mikhail Bogdanov
41511898a1
Deprecate DefaultImpl methods in compatibility mode
2020-06-23 18:59:04 +02:00
Mikhail Glukhikh
39740ce440
[FIR2IR] Drop decl. parent set in lazy class (it should be set before)
2020-06-23 19:06:08 +03:00
Mikhail Glukhikh
d08f91bf35
[FIR2IR] Introduce & use lazy function for external class functions
2020-06-23 19:06:08 +03:00
Mikhail Glukhikh
6d07af63cf
[FIR2IR] Count IrErrorTypes as not equal for purpose of overriding
...
This prevents possible type checking exceptions
2020-06-23 19:06:08 +03:00
Mikhail Glukhikh
d02d423d45
[FIR2IR] Introduce additional built-in symbols prepared in advance
...
This commit allow to avoid possible conflicts between descriptor-based
and signature-based symbols,
because BE sometimes (e.g. in DeclarationStubGenerator)
creates descriptor-based symbol without checking signature-based
2020-06-23 19:06:07 +03:00
Mikhail Glukhikh
a791a38538
FIR mangler: support definitely not-null types (for Java)
2020-06-23 19:06:07 +03:00
Mikhail Glukhikh
987cf5ef5f
Drop unused Fir2IrVisitor.fakeOverrideMode
2020-06-23 19:06:07 +03:00
Mikhail Glukhikh
0622be14a5
[FIR2IR] Introduce creation of Fir2Ir lazy classes
2020-06-23 19:06:07 +03:00
Ilya Goncharov
5e9291bd8a
Fix test data for new project wizard
2020-06-23 18:56:16 +03:00
Ilya Goncharov
e6539eade5
Fix new project wizard css support for karma
2020-06-23 18:26:51 +03:00
Dmitry Gridin
b657d60bd6
Suggest Create Class before Create File
...
#KT-37528 Fixed
2020-06-23 13:29:09 +00:00
Natalia Selezneva
bcd3921bae
Fix freeze during loading script configurations through legacy scripting API
...
Do not wrap the whole configuration loading process into readAction
^KT-39771 Fixed
2020-06-23 16:04:24 +03:00
Alexander Udalov
05e8546bdb
Skip unresolved JvmStatic/JvmField annotations in builtins
...
This is needed to implement KT-30084 and KT-30083 after bootstrap.
2020-06-23 13:55:08 +02:00
Dmitry Gridin
abfc74c8b2
Add regression test
...
#KT-30131 Fixed
2020-06-23 18:05:17 +07:00
Dmitriy Dolovov
d8fa617bfd
Minor. Fix typo in text printed to users
2020-06-23 17:27:14 +07:00
Dmitry Gridin
99f958c8c4
Inline refactoring: should remove redundant Unit
...
#KT-19443 Fixed
2020-06-23 10:25:54 +00:00
Dmitry Gridin
af24ce5e03
RedundantUnitExpressionInspection: support lambdas
...
#KT-39772 Fixed
2020-06-23 10:25:53 +00:00
Dmitry Gridin
4ac7dc0744
RedundantUnitExpressionInspection: make isRedundantUnit public
2020-06-23 10:25:53 +00:00
Dmitry Gridin
360a5bf348
Inline refactoring: improve resolve
...
#KT-39705 Fixed
#KT-19459 Fixed
2020-06-23 10:25:52 +00:00
Dmitry Gridin
5ad94daaa5
ImportOptimizer: cleanup code
...
#KT-31331
2020-06-23 09:48:07 +00:00
Dmitry Gridin
2610dedcbd
KotlinUnusedImportInspection: support unresolved references
...
#KT-31331 Fixed
2020-06-23 09:48:07 +00:00
Dmitry Gridin
10c62b8d77
ImportOptimizer: add cases for unresolved references
...
Part of #KT-31331
2020-06-23 09:48:06 +00:00
Dmitry Gridin
4de582564c
ImportOptimizer: basic support for removing unresolved imports
...
#KT-32409 Fixed
Part of #KT-31331
2020-06-23 09:48:05 +00:00
Dmitry Gridin
8faced9192
KotlinImportOptimizer: replace LinkedHashMap with HashMap and BodyResolveMode.FULL with BodyResolveMode.PARTIAL
2020-06-23 09:48:05 +00:00
Dmitry Gridin
383fa2d111
ImportOptimizer: cleanup code
2020-06-23 09:48:04 +00:00
Mikhail Zarechenskiy
e7cee9c6e1
Fix coercion to Unit with equal Nothing constraint
...
#KT-39669 Fixed
2020-06-23 11:47:39 +03:00
Mikhail Zarechenskiy
a06c8786df
Fix overload ambiguity after smartcast to nullable Nothing
...
#KT-39544 Fixed
2020-06-23 11:34:19 +03:00