Ilya Kirillov
e25dee558f
[Analysis API] make KtDeclarationSymbol <: KtDeclarationSymbol
...
To simplify work with annotations
2022-05-27 16:39:38 +00:00
Ilya Kirillov
f189fd1ff0
[Analysis API] make KtDeclarationSymbol <: KtSymbolWithTypeParameters
...
To simplify work with type parameters
2022-05-27 16:39:37 +00:00
Jiaxiang Chen
8f4554959e
AA: make KtClassifierSymbol a subtype of KtAnnotatedSymbol
2022-05-27 16:39:37 +00:00
Jiaxiang Chen
866ebcfe2e
AA: make KtCallableSymbol a subtype of KtAnnotatedSymbol
2022-05-27 16:39:37 +00:00
Victor Petukhov
867ad24c86
[FE] Show causing types in the INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION diagnostic
2022-05-27 15:14:24 +00:00
Victor Petukhov
02a430875f
[FE 1.0] Don't fail candidates which were marked with compatibility resolve previously
...
^KT-52431 Fixed
^KT-52393 Fixed
2022-05-27 15:14:22 +00:00
Mikhail Glukhikh
d7ca7e17c9
FE 10: wrap ext. receiver inlining prohibition in the language feature
...
See KT-52502
2022-05-27 14:55:08 +00:00
Victor Petukhov
0199c76c06
[FE 1.0] Check callable reference return type safety during resolution
...
^KT-51844
^KT-52503 Fixed
2022-05-27 13:56:34 +00:00
Victor Petukhov
51551998c7
Revert "[FE 1.0] Take care callable reference candidates with recursive candidate return type"
...
This reverts commit d04beaa8bb49c99ceb993f3f7b32169c393b39f4.
2022-05-27 13:56:33 +00:00
Victor Petukhov
06deaed3d5
Add test for KT-50498
2022-05-27 13:56:33 +00:00
Victor Petukhov
c25e07119c
[FE 1.0] Skip improper constraints while determining READY_FOR_FIXATION_DECLARED_UPPER_BOUND_WITH_SELF_TYPES type variable readiness
...
^KT-51148 Fixed
2022-05-27 13:56:32 +00:00
Ilya Kirillov
500295da68
[references] move fe10 references implementation to another package
2022-05-27 15:37:40 +02:00
Ilya Kirillov
b511e449d2
[analysis api] temporary mute Fe10IdeNormalAnalysisSourceModuleSymbolByReferenceTestGenerated
2022-05-27 15:37:39 +02:00
Tianyu Geng
010431e9e7
[Analysis API] Make a separate module for kt-reference-fe10
2022-05-27 15:37:37 +02:00
Tianyu Geng
19e9143bc1
[Analysis API] Move default annotation argument reference to kotlin repo
...
This reference is frontend-independent, so its implementation is placed
inside kt-references directly.
2022-05-27 15:37:36 +02:00
Tianyu Geng
a7c37286a3
[Analysis API] Move SyntheticPropertyAccessorReferenceDescriptorImpl
...
Also move some utilities from IDE to kotlin repo
2022-05-27 15:37:35 +02:00
Tianyu Geng
71a30b0c5e
[Analysis API] Move KDocReference to kotlin repo.
2022-05-27 15:37:34 +02:00
Tianyu Geng
0803ab0d0b
[Analysis API] Add KtFe10ReferenceResolutionHelper and ...
...
Make implementation of KtFe10XXXReference follow the old
descriptor-based implementation as closely as possible.
2022-05-27 15:37:33 +02:00
Tianyu Geng
b5139c958b
[Analysis API] Add KtReferenceMutateService...
...
and delegate renaming and rebinding to this new service for `KtReference`.
In addition, CliKtFe10XXXReference are all removed because it seems they are not necessary because the IDE flavor differs only by handling renaming, which is moved to a separate service.
2022-05-27 15:37:33 +02:00
Tianyu Geng
213e7154c2
Analysis API: remove unnecessary overwrite in KtFirSimpleNameReference
2022-05-27 15:37:32 +02:00
Jinseong Jeon
c230a488e2
FIR LC: use the same module name as U/LC tests in IJ
2022-05-25 17:05:15 +02:00
Jinseong Jeon
1fe574f406
FIR LC: mangle internal function names
2022-05-25 17:05:14 +02:00
Jinseong Jeon
c79601e616
FIR LC: utilize effective visibility retrieval for (overridden) members
2022-05-25 17:05:14 +02:00
Mikhail Glukhikh
49175f83aa
Analysis API FE10: fix delegated member rendering
...
After this commit,
Fe10IdeNormalAnalysisSourceModuleDelegateMemberScopeTestGenerated
passes properly
2022-05-25 12:04:59 +00:00
Mikhail Glukhikh
71b6151d51
KtFe10ScopeProvider: implement declared/delegated member scope
2022-05-25 12:04:58 +00:00
Mikhail Glukhikh
133f874351
Fix origin calculation in CliFe10AnalysisFacade
...
After this commit, all tests in
Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated pass
2022-05-25 12:04:57 +00:00
Mikhail Glukhikh
b710b26bf5
Fix KtFe10DescKotlinPropertySymbol.isDelegatedProperty
2022-05-25 12:04:57 +00:00
Mikhail Glukhikh
b1d9b79712
KtFe10TypeRenderer: fix reflection & suspend type rendering
...
After this commit, all
Fe10IdeNormalAnalysisSourceModuleFunctionClassKindTestGenerated pass
2022-05-25 12:04:55 +00:00
Mikhail Glukhikh
049cab5207
Generate more FE10 analysis API tests
2022-05-25 12:04:54 +00:00
Jinseong Jeon
e446c988ee
FIR LC: populate default retention policy of annotations
2022-05-24 20:32:56 +02:00
Jinseong Jeon
d196050d9f
FIR LC: remove unnecessary bail-out in annotation util
...
There is another place below that handles the case
where no explicit annotations are bound, and there
unknwon nullability will be handled too.
2022-05-24 20:32:56 +02:00
Jinseong Jeon
58c2433bdd
FIR LC: use unified annotations' ClassId (missed JvmName)
2022-05-24 20:32:55 +02:00
Jinseong Jeon
85388f0c79
FIR LC: correct static modifiers for accessors from companion
2022-05-24 20:32:55 +02:00
Jinseong Jeon
a7a01a1f7e
FIR LC: populate JvmStatic accessors from companion
2022-05-24 20:32:55 +02:00
Jinseong Jeon
63fb00fa21
FIR LC: revisit when to add fields to companion and/or containing class
2022-05-24 20:32:55 +02:00
Jinseong Jeon
89d1a6bc0f
FIR LC: populate fields from companion in interface
2022-05-24 20:32:55 +02:00
Jinseong Jeon
0212e9daae
FIR LC: always run with STDLIB (to handle JVM annotations)
2022-05-24 20:32:55 +02:00
Mikhail Glukhikh
6f17a8713c
Fix KT-47708 in FIR by transferring SAM annotations to synthetic constr.
2022-05-24 12:29:28 +00:00
Victor Petukhov
bbf52e8b90
[FE 1.0] Make "Unit conversions" accessible experimental feature
2022-05-23 12:36:16 +02:00
Victor Petukhov
88d35067e3
[FE 1.0] Keep the same type attributes during union or intersection type attributes
...
^KT-51317 Fixed
2022-05-23 12:36:12 +02:00
Dmitriy Novozhilov
9d4d55b3ce
[LL API] Extract expect actual matching into separate phase
2022-05-20 13:33:04 +00:00
Dmitriy Novozhilov
d66748d011
[FIR] Extract expect actual matching into separate phase
2022-05-20 13:33:04 +00:00
Denis.Zharkov
c018270462
Support DNN types in approximator
...
Mostly, it's relevant to FIR since there we started loading
type parameter based types as (T & Any..T?)
2022-05-19 16:54:06 +00:00
Denis.Zharkov
c766f20554
FIR: Adjust override checker to definitely-not-nullable types
...
^KT-52201 Related
2022-05-19 16:54:05 +00:00
Denis.Zharkov
21b86123e8
FIR: Adjust analysis test data after changes in how we load Java types
...
Especially, it's about types based on type parameters
2022-05-19 16:54:05 +00:00
Denis.Zharkov
d7f87e0182
FIR: Adjust analysis test data to changes in loading Java types
2022-05-19 16:54:02 +00:00
Denis.Zharkov
f70ae2df3a
FIR: Refine inference constraints when type variable in flexible position
...
That issue might be fixed via changing
TypeVariableMarker.shouldBeFlexible at ConeConstraintSystemUtilContext
but this and some other tricks have been added because of incorrect
handling of constraints where type variable has a flexible bound
^KT-51168 Fixed
2022-05-19 16:53:59 +00:00
Roman Golyshev
934b8c890e
[FIR] Add temporary debug output to better understand CME on TeamCity
...
This commit should be reverted as soon as the reason for those
exceptions is found and fixed.
Tracking issue is KTIJ-21791
2022-05-19 13:03:34 +00:00
Georgy Bronnikov
3c3c1be543
Fir2Ir: introduce Fir2IrExtensions
...
This allows us to remove DeclarationStubGenerator from Fir2IrConverter,
thus reducing dependency on descriptor-based code.
2022-05-19 12:02:41 +02:00
Dmitriy Novozhilov
89b1307e16
[FE 1.0] Don't report UNUSED_* warnings on local properties with delegate
...
^KT-25527 Fixed
2022-05-19 07:14:23 +00:00