Commit Graph

431 Commits

Author SHA1 Message Date
Dmitrii Gridin 550b4f1f11 [SLC] throw exception on redundant test data file 2023-02-23 17:15:53 +00:00
Pavel Mikhailovskii 9204f8162e [SLC] Fix modifiers for @JvmStatic methods in interfaces 2023-02-23 17:04:22 +00:00
Pavel Mikhailovskii 378bb4c4ac KT-56891 SLC Don't include abstract members in DefaultImpls 2023-02-23 12:50:59 +00:00
Pavel Mikhailovskii 492a161d2c KT-56842 [SLC] Don't mark primitive context receiver parameters with @NotNull 2023-02-22 10:15:19 +00:00
Pavel Mikhailovskii de1927abb6 KT-56835 [SLC] Mark property$delegate fields as final and @NotNull 2023-02-22 09:40:32 +00:00
Pavel Mikhailovskii d81170fbcc KT-56840 [SLC] Don't mark primitive-backed types with @NotNull 2023-02-21 17:29:16 +00:00
Ilya Kirillov c37ee83791 [Analysis API] add more debug info to "pointer already disposed" error 2023-02-17 14:19:08 +00:00
Dmitrii Gridin 0eb90cccd1 [SLC] enum entries should be psi reference instead of psi expression
^KT-56728 Fixed
2023-02-17 13:11:14 +00:00
Dmitrii Gridin e65c863f8c [SLC] add test on single target annotation
^KT-56728
2023-02-17 13:11:14 +00:00
Dmitrii Gridin 607b8f6b61 Revert "[SLC] Support generics and ignore whitespace in KtSuperTypeList.findEntry"
This reverts commit e77f5c7764.
2023-02-13 17:28:35 +01:00
Dmitrii Gridin 761553ea75 [LC] reduce memory consumption from SLC and DLC
The main change is drop `LightClassesLazyCreator`

KtLightClassForDecompiledDeclaration:
* fixed a few captured fields

^KT-56561 Fixed
2023-02-13 16:08:17 +00:00
Pavel Mikhailovskii e77f5c7764 [SLC] Support generics and ignore whitespace in KtSuperTypeList.findEntry 2023-02-13 14:47:45 +00:00
Jinseong Jeon 88b07f5287 SLC: keep annotations on type when converting to PsiType
^KT-55815 Fixed
2023-02-09 19:53:45 +01:00
Dmitrii Gridin 6c24436657 [SLC] make INSTANCE field for object public
^KT-56441 Fixed
2023-02-06 17:48:37 +00:00
Dmitrii Gridin 8e815e943e [SLC] add tests on private object
^KT-56441
2023-02-06 17:48:37 +00:00
Dmitrii Gridin bd7e5fd324 [LC] update testData for objects
^KTIJ-24119
2023-02-06 17:48:36 +00:00
Dmitrii Gridin 5b8ece379d [SLC] GranularAnnotationsBox: drop commented annotations
^KT-56046
2023-02-03 19:49:16 +00:00
Dmitrii Gridin 00eddae867 [SLC] rename from toFilterWithAdditionalNull to toOptionalFilter
^KT-56046
2023-02-03 19:49:14 +00:00
Dmitrii Gridin 482bc15a70 [AA] rename from NullAnnotationUseSiteTargetFilter to NoAnnotationUseSiteTargetFilter
^KT-56046
2023-02-03 19:49:14 +00:00
Dmitrii Gridin 197160fbd7 [SLC] SymbolLightAbstractAnnotationParameterList: introduce more flexible symbolLightAnnotationParameterList api
^KT-56046
2023-02-03 19:49:14 +00:00
Dmitrii Gridin d7535c303d [SLC] rename from SimpleAdditionalAnnotationsProvider to CollectionAdditionalAnnotationsProvider
^KT-56046
2023-02-03 19:49:13 +00:00
Dmitrii Gridin 6e48774fff [SLC] rename from SimpleAnnotationFilter to CollectionAnnotationFilter
^KT-56046
2023-02-03 19:49:13 +00:00
Dmitrii Gridin fc05fa5b1a [SLC] rename from LazyAnnotationsBox to GranularAnnotationsBox
^KT-56046
2023-02-03 19:49:13 +00:00
Dmitrii Gridin a2c0a88592 [SLC] rename from LazyModifiersBox to GranularModifiersBox
^KT-56046
2023-02-03 19:49:12 +00:00
Dmitrii Gridin c05a47355e [SLC] rename from SimpleModifiersBox to InitializedModifiersBox
^KT-56046
2023-02-03 19:49:12 +00:00
Dmitrii Gridin 650267592c [SLC] rename from SimpleAnnotationsBox to ComputeAllAtOnceAnnotationsBox
^KT-56046
2023-02-03 19:49:12 +00:00
Dmitrii Gridin 0b7ef03490 [SLC] AnnotationFilter: add kdoc
^KT-56046
2023-02-03 19:49:11 +00:00
Dmitrii Gridin 4e07210b9c [SLC] AnnotationsProvider: add kdoc
^KT-56046
2023-02-03 19:49:11 +00:00
Dmitrii Gridin 153ee3bc4b [SLC] AdditionalAnnotationsProvider: add kdoc
^KT-56046
2023-02-03 19:49:11 +00:00
Dmitrii Gridin 2f79f0daa0 [SLC] AdditionalAnnotationsProvider: code style update
^KT-56046
2023-02-03 19:49:10 +00:00
Dmitrii Gridin 015b2a3357 [SLC] AnnotationsBox: add kdoc
^KT-56046
2023-02-03 19:49:10 +00:00
Dmitrii Gridin a0fa1cce85 [SLC] ModifiersBox: add kdoc
^KT-56046
2023-02-03 19:49:09 +00:00
Dmitrii Gridin ef566ab479 [SLC] SymbolLightAbstractAnnotationParameterList: drop redundant equals/hashCode
^KT-56046
2023-02-03 19:49:09 +00:00
Dmitrii Gridin 09b78a9bca [SLC] NullabilityAnnotationsProvider: use isNullOrNotNullQualifiedName extension
^KT-56046
2023-02-03 19:49:08 +00:00
Dmitrii Gridin 50711d5003 [SLC] SymbolPsiArrayInitializerMemberValue: cached computed values
^KT-56046
2023-02-03 19:49:07 +00:00
Dmitrii Gridin 0928a5be08 [SLC] migrate from AtomicFieldUpdater to AtomicReferenceFieldUpdater
^KT-56046
2023-02-03 19:49:07 +00:00
Dmitrii Gridin cf713d31ef [SLC] AnnotationsProvider: replace isTheSameAs with regular equals
^KT-56046
2023-02-03 19:49:07 +00:00
Dmitrii Gridin 19a61015c0 [SLC] migrate from AtomicReference to AtomicFieldUpdater
^KT-56046
2023-02-03 19:49:05 +00:00
Dmitrii Gridin d7dcb5c56a [SLC] AdditionalAnnotationsProvider: do not process findAnnotation separately
Currently, we don't have enough support in the compiler to
process new special annotations (KT-56299), so let's avoid them now

^KT-56046
2023-02-03 19:49:04 +00:00
Dmitrii Gridin ba9520f5c5 [SLC] add more tests
^KT-56046
2023-02-03 19:49:04 +00:00
Dmitrii Gridin 347dc83773 [SLC] avoid redundant empty array allocation and add new array creation
we should instantiate a new array on each request to avoid
unexpected mutation from a usage side

^KT-56046
2023-02-03 19:49:04 +00:00
Dmitrii Gridin 3b9318bd3a [SLC] LazyAnnotationsBox: drop redundant synchronization
We can use less strict rule for produced annotations:
* Previously: the same annotations from `findAnnotation` and `annotations`
have the same identity
* Now: the same annotations from `findAnnotation` and `annotations`
are equals by 'equals'

^KT-56046
2023-02-03 19:49:03 +00:00
Dmitrii Gridin e1c8b3d674 [SLC] avoid return type check for implicit types
we should avoid value class check in implicit return types
to avoid extra resolve

^KT-56046
^KT-55788
2023-02-03 19:49:03 +00:00
Dmitrii Gridin e1c2ca1bbf [SLC] AbstractSymbolLightClassesParentingTest: add more assertions for annotations
^KT-56046
2023-02-03 19:49:03 +00:00
Dmitrii Gridin 93232a23df [AA] introduce AnnotationUseSiteTargetFilter to simplify API
^KT-56046
2023-02-03 19:49:01 +00:00
Dmitrii Gridin 6e25b45f7d [AA] introduce KtAnnotationApplication
^KT-56046
2023-02-03 19:49:01 +00:00
Dmitrii Gridin 59f07c2197 [SLC] add test on enum entry annotations
^KT-56046
2023-02-03 19:49:01 +00:00
Dmitrii Gridin 83ce04b79f [SLC] add missing 'internal' modifiers for some objects
^KT-56046
2023-02-03 19:49:00 +00:00
Dmitrii Gridin 57b6db4f0f [SLC] avoid constructor parameters capturing
^KT-56046
2023-02-03 19:49:00 +00:00
Dmitrii Gridin 80a80d1188 [SLC] SymbolLightRepeatableAnnotationContainerMethod: reuse "value" name
^KT-56046
2023-02-03 19:49:00 +00:00