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
vldf
8813ebd950
[FIR] Add RedundantSetterParameterType Checker
2020-08-03 16:37:24 +03:00
vldf
a6c9d869fb
[FIR] Move RedundantCallOfConversionMethod to extended checkers
2020-08-03 16:31:49 +03:00
vldf
3349739d1e
[FIR] Fixes for RedundantReturnUnitType checker
2020-08-03 11:42:19 +03:00
vladislavf7@gmail.com
2384afdd93
[FIR] refactoring for running extended checkers
2020-08-03 11:42:19 +03:00
vldf
cfc09048c6
[FIR] Add RedundantCallOfConversionMethod checker
2020-08-03 10:41:19 +03:00
Mikhail Glukhikh
39d4b79324
[FIR TEST] Fix FE 1.0 / FIR test data for nested / local type alias case
2020-08-02 18:19:47 +03:00
Mikhail Glukhikh
7724d060ff
[FIR] Don't compare SYNTAX diagnostics in light tree diagnostic test
2020-08-02 18:19:47 +03:00
Mikhail Glukhikh
4e4fe9f719
[FIR] Support some kinds of fake sources in light builder
2020-08-02 18:19:47 +03:00
Mikhail Glukhikh
951aa8185e
[FIR] Avoid duplicate diagnostics on expression.typeRef
2020-08-02 18:19:47 +03:00
Mikhail Glukhikh
dc46d51d9a
[FIR TEST] Update diagnostic spec test data
2020-08-02 18:19:47 +03:00
Mikhail Glukhikh
6eab6f2f87
[FIR TEST] Replace OTHER_ERROR with UNRESOLVED_REFERENCE in test data
2020-08-02 18:19:47 +03:00
Nick
c55cdf1935
[FIR] Fix missing ErrorTypeRef for QA and clean DiagnosticCollector
2020-08-02 18:19:46 +03:00
Nick
7086b0cbf3
[FIR] Don't report duplicated errors in component calls typeRefs
2020-08-02 18:19:46 +03:00
Nick
4ceae8dc5e
[FIR] Don't report duplicated errors in function calls typeRefs
2020-08-02 18:19:46 +03:00
Nick
6f85a07290
[FIR] Don't report duplicated errors in property declarations
2020-08-02 18:19:46 +03:00
Nick
889324e972
[FIR] Ignore failing test, improve DiagnosticKind, fix UPPER_BOUND
2020-08-02 18:19:45 +03:00
Mikhail Glukhikh
9335e09149
[FIR] Don't report duplicated errors in implicit properties / parameters
2020-08-02 18:19:45 +03:00
Mikhail Glukhikh
ceaffb1e8b
[FIR] Don't report duplicated errors in implicit primary constructors
2020-08-02 18:19:45 +03:00
Mikhail Glukhikh
749346b73b
[FIR] Don't report duplicated errors on default accessor error type refs
2020-08-02 18:19:45 +03:00
Mikhail Glukhikh
e0d25876b0
[FIR] Don't report simple diagnostics on fake sources
2020-08-02 18:19:44 +03:00
Mikhail Glukhikh
551bdd267d
[FIR] Introduce WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostic
2020-08-02 18:19:44 +03:00
Mikhail Glukhikh
0804c6a0f3
[FIR] Introduce TYPE_ARGUMENTS_NOT_ALLOWED & some other type errors
...
This commit introduces several different things, in particular:
- check type arguments in expressions
- new TypeArgumentList node to deal with diagnostic source
- ConeDiagnostic was moved to fir:cones
- ConeIntermediateDiagnostic to use in inference (?) without reporting
- detailed diagnostics on error type
2020-08-02 18:19:44 +03:00
Jinseong Jeon
c744dfba9c
FIR: distinguish anonymous object as enum entry when scoping
...
so that `this` reference with the enum entry name as label can be
resolved
2020-08-02 18:06:15 +03:00
Jinseong Jeon
52631b7abd
FIR2IR: make local storage track scopes, including anonymous init
2020-08-02 18:05:09 +03:00
Nick
26e3a111d6
[FIR] Add diagnostics for object related problems
2020-07-31 19:34:55 +03:00
Nick
694d3cad4e
[FIR] Exposed visibility checker: optimize checks for local visibility
2020-07-31 19:28:10 +03:00
Nick
60462bea1c
FirEffectiveVisibilityResolver: search parent in containingDeclarations
...
When determining effective visibility of 'something',
we use containing declarations from the context to find 'something'
parent, to avoid calling getClassSymbolByFqName for all cases.
2020-07-31 19:28:04 +03:00
Nick
7145caca40
[FIR] Refactor effective visibility calculation
...
Before this commit, we had effective visibility as a part of FIR status,
so it was integrated into the full pipeline. In this commit,
we introduced "effective visibility as a service" which is now used
only by exposed visibility checker. This allows us to make the thing
universal for all FIR nodes, including nodes for Java / deserialized.
2020-07-31 19:27:58 +03:00
Steven Schäfer
b15e32936e
JVM IR: Optimize delegated properties (KT-36814)
2020-07-31 19:00:27 +03:00
vldf
8724efbe8a
[FIR] Add empty range checker
2020-07-31 16:28:37 +03:00
vldf
b10defdbab
[FIR] Add redundant single string expression template checker
2020-07-31 16:28:37 +03:00
vldf
95e0ba3d5c
[FIR] Add ArrayEqualityOpCanBeReplacedWithEquals checker
2020-07-31 16:28:37 +03:00
Ilmir Usmanov
4d21a496fe
Minor. Update tests
2020-07-31 14:33:52 +02:00