Nick
f15f5bccc8
[FIR] Add more diagnostic messages
2020-08-05 10:41:06 +03:00
Victor Petukhov
f45de9d8fb
NI: approximate not top-level captured types during code generation
...
^KT-40693 Fixed
2020-08-05 10:36:36 +03:00
Ilya Matveev
f6d7e7c52a
CocoaPods: Fix setting custom framework name
...
The main scheme of a synthetic project generated for
pod import has the same name as the podspec generated
for the kotlin module (== Gradle project name). But
when starting an Xcode build, we specify the -scheme
argument to a framework name instead of project.name.
By default they are the same, but if a custom framework
name is specified, xcodebuild fails.
Issue #KT-40801 fixed
2020-08-05 06:46:53 +00:00
Mikhail Zarechenskiy
a45f73867a
Add compatibility resolve when SAM conversion was applied partially
...
#KT-40646 Fixed
2020-08-05 00:03:33 +03:00
Sergey Igushkin
070848a1c1
Fix typealias usage nullability and annotations lost in deserialization
...
This fixes a regression introduced by the commit 4b0da0688a which made
deserializer expand typealiases but didn't take nullability and use site
annotations into account.
Issue #KT-40824 Fixed
2020-08-05 00:19:52 +04:00
Nick
ec4f04095c
[FIR] Rearrange FirErrors.kt
2020-08-04 22:40:09 +03:00
Nick
207027b84c
[FIR] Fix light tree's supertype FirDelegatedConstructorCall source
2020-08-04 22:37:43 +03:00
Nick
a59cedcd39
[FIR] Fix non-fake sources for constructor delegates
2020-08-04 22:37:42 +03:00
Nick
f74eb07203
[FIR] Fix incorrect diagnostic behaviour + several enum diagnostics
2020-08-04 22:28:49 +03:00
Nick
b76f757d47
[FIR] Add diagnostic for missing primary constructor
2020-08-04 22:28:49 +03:00
Nick
0f213e58db
[FIR] Add diagnostic for primary constructor not called
2020-08-04 22:28:48 +03:00
Nick
bb0e1b7390
[FIR] Add diagnostic for constructor delegation cycles
2020-08-04 22:28:48 +03:00
Mikhail Glukhikh
e841b3a77b
[FIR] Add diagnostic collection to KotlinToJVMBytecodeCompiler
2020-08-04 22:27:18 +03:00
Mikhail Glukhikh
9c3b8484b9
[FIR TEST] Add CLI test with should-be-error (not yet)
2020-08-04 22:27:18 +03:00
Ilmir Usmanov
824991a9dd
Minor. Add tests.
2020-08-04 15:42:38 +02:00
Ilmir Usmanov
bbd4c21595
Cleanup spilled variables
...
#KT-16222
2020-08-04 15:42:37 +02:00
Ilmir Usmanov
999b41068b
Minor. Refactor variables spilling
...
Split information collection and method node mutation.
2020-08-04 15:42:37 +02:00
Ilmir Usmanov
405c9743ef
Do not spill dispatch receiver of suspend functions if it is not used
...
#KT-20571
2020-08-04 15:42:36 +02:00
Jinseong Jeon
5db7957230
FIR2IR: use type arguments from fully expanded type
2020-08-04 14:44:38 +03:00
Ilya Kirillov
606dc2f723
Fix binary compatibility problems in ImportInsertHelper & ShortenReferences
2020-08-04 12:46:13 +03:00
Victor Petukhov
af48f08f9c
NI: take into account flexible types during capturing arguments from expression
...
^KT-40544 Fixed
2020-08-04 12:38:04 +03:00
vldf
65ebd02a39
[FIR] Fix for CanBeReplacedWithOperatorAssignment Checker
2020-08-04 11:20:42 +03:00
Mikhail Glukhikh
6f3df6faf4
[FIR] Regenerate extended checker tests
2020-08-04 09:35:36 +03:00
Mikhail Glukhikh
181a8bb79e
[FIR TEST] Mute failing BB test with Byte/Short.and usage
2020-08-04 08:59:16 +03:00
Jinseong Jeon
47c47be3d3
FIR serializer: serialize annotations on FirTypeRef, not ConeKotlinType
2020-08-04 08:59:16 +03:00
Ivan Kylchik
0a28e5e031
Add argument unwrapping for case when argument is named
2020-08-04 08:59:15 +03:00
Mikhail Glukhikh
2e2099afae
[FIR] Introduce NOT_AN_ANNOTATION_CLASS diagnostic
2020-08-04 08:59:15 +03:00
Mikhail Glukhikh
8fd087a964
[FIR] Don't report duplicated UNRESOLVED_REFERENCE on annotation entries
2020-08-04 08:59:15 +03:00
Mikhail Glukhikh
a6e811a67a
[FIR] Add status to Java annotation constructor (fix after rebase)
2020-08-04 08:59:15 +03:00
Mikhail Glukhikh
8379b3794a
[FIR2IR] Return fallback mode for annotation resolved placeholder
2020-08-04 08:59:15 +03:00
Dmitriy Novozhilov
b63257345b
[FIR] Map Class to KClass in java annotations
2020-08-04 08:59:15 +03:00
Mikhail Glukhikh
282a295d43
[FIR] Enable arrayOf transformer in completion (inside annotations)
2020-08-04 08:59:14 +03:00
Dmitriy Novozhilov
721b9b4d8c
[FIR] Resolve annotations as calls
2020-08-04 08:59:14 +03:00
Dmitriy Novozhilov
bc1fa8ed7f
[FIR] Add constructor for java annotations
2020-08-04 08:59:14 +03:00
Dmitriy Novozhilov
644e9843f9
[FIR] Add initialization of calleeReference for FirAnnotationCall
2020-08-04 08:59:14 +03:00
Dmitriy Novozhilov
614291b2cc
[FIR] Make FirAnnotationCall resolvable
2020-08-04 08:59:14 +03:00
Dmitriy Novozhilov
ffd30566be
[FIR] Add FirErrorResolvedQualifier for qualifiers with resolve diagnostic
2020-08-04 08:59:14 +03:00
Dmitry Gridin
a5e9401a0a
[configuration] change updater number to 1.4.* and 1.5.*
...
#KT-40639 Fixed
2020-08-04 11:13:30 +07:00
Julian Kotrba
88f508446a
Make repeat example more expressive
...
This commit adds the zero-based index of current iteration from the passed HOF "action" of the repeat function to its associated code sample.
KT-20357
2020-08-04 00:48:06 +03:00
Ilya Gorbunov
a5178bb826
Minor: fix toJavaDuration docs
2020-08-04 00:34:15 +03:00
Ilya Gorbunov
99eb7f391b
Fix doc wording around covariance/invariance
2020-08-04 00:33:05 +03:00
Roman Artemev
4f73e08704
[KLIB] Make fake override resolver garbage free as much as possible
...
- reduce memory pollution during FO resolve
2020-08-03 19:22:07 +03:00
Roman Artemev
876ee265f2
[KLIB] Fix memory leak in fake override resolver
2020-08-03 19:22:07 +03:00
Roman Artemev
e189cb1895
[KLIB] Fix memory leak in linker through haveSeen set
2020-08-03 19:22:06 +03:00
Roman Artemev
19b5fda750
[KLIB] Do not duplicate origin mapping per file
2020-08-03 19:22:06 +03:00
Roman Artemev
c253042948
[KLIB] Reduce amount of descriptors loaded during desc-idSig resolution
2020-08-03 19:22:06 +03:00
Roman Artemev
851c287105
[KLIB] Use SoftReference to hold proto memory
...
- fix metadata memory leak for KT-40345
2020-08-03 19:22:06 +03:00
Roman Artemev
add0ad6733
[KLIB] Change KLIB IO API
...
- Use ReadBuffer instead of native java buffer
- Use Weak buffers for File IO
- fix klib memory leak for KT-40345
2020-08-03 19:22:06 +03:00
Jinseong Jeon
0e54f98b79
FIR: support adapted callable reference with vararg
2020-08-03 16:37:36 +03:00
Mikhail Glukhikh
4332e95b8a
[FIR] Don't transform setter parameter type if it's given explicitly
2020-08-03 16:37:30 +03:00