Commit Graph

98531 Commits

Author SHA1 Message Date
Dmitriy Novozhilov 76d360d793 [FIR] Properly set source for inferred return type of function 2023-02-06 08:09:56 +00:00
Dmitriy Novozhilov e9204521a9 [FIR] Properly create type ref for error type in various places 2023-02-06 08:09:56 +00:00
Dmitriy Novozhilov ad3ae0ff69 [FIR] Add ability to specify that diagnostic collector should visit nodes with specific fake kind 2023-02-06 08:09:55 +00:00
Anna Kozlova f784628ebf [CLI] reduce memory usage for compiler settings
make write protection directly in properties
it creates no additional wrapper with the link to the containing class
for ij project, this reduces memory usage for ~15 mb

^KT-56351
2023-02-06 07:57:53 +00:00
Vladimir Sukharev 441c74e2c8 Unmute test, fixed by KT-55462
Merge-request: KT-MR-8640
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-02-05 16:37:13 +00:00
Roman Golyshev 08831c0867 [Analysis API] KTIJ-24192 Use only lowerBound on flexible types when looking for decompiled PSI
Otherwise, decompiled declarations with flexible types in them cannot be
properly resolved by the Analysis API

Examples of such declarations:

```kt
fun foo()/*: ImplicitTypeFromJava! */ = <some call to java code>

var bar/*: ImplicitTypeFromJava! */ = foo()
// set(value: ImplicitTypeFromJava!) { ... }
```

^KTIJ-24192 Fixed
2023-02-03 23:34:51 +01:00
Dmitrii Gridin 0608e44b17 [SLC] drop redundant testData
after 6fd79f4e2e

^KTIJ-24067
2023-02-03 19:49:16 +00:00
Dmitrii Gridin fb8e4e7c8d [FIR] FirBasedSymbol: add more info to kdoc
^KT-56046
2023-02-03 19:49:16 +00:00
Dmitrii Gridin 5b8ece379d [SLC] GranularAnnotationsBox: drop commented annotations
^KT-56046
2023-02-03 19:49:16 +00:00
Dmitrii Gridin 2c96933f5c [FIR] FirBasedSymbol: drop unused functions
^KT-56046
2023-02-03 19:49:15 +00:00
Dmitrii Gridin cc7527a5bc [FIR] CompilerRequiredAnnotationsHelper: update kdoc and drop commented values
^KT-56046
2023-02-03 19:49:15 +00:00
Dmitrii Gridin 3e4c6b160a [AA] KtAnnotationApplicationInfo: add more information to kdoc
^KT-56046
2023-02-03 19:49:15 +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 ceb0b95d99 [AA] KtAnnotationApplication: update kdoc
^KT-56046
2023-02-03 19:49:10 +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 817eeb3a49 [AA] KtAnnotationApplication: add more information to 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 a36e476900 [AA Fe10] KtFe10AnnotationsList: fix index consistence
^KT-56046
2023-02-03 19:49:08 +00:00
Dmitrii Gridin 09b78a9bca [SLC] NullabilityAnnotationsProvider: use isNullOrNotNullQualifiedName extension
^KT-56046
2023-02-03 19:49:08 +00:00
Dmitrii Gridin 379044f2c8 [AA] KtAnnotationApplication: make index nullable
^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 cce933907f [AA Fe10] Kt1DescUtils: update naming
^KT-56046
2023-02-03 19:49:06 +00:00
Dmitrii Gridin 3a14fba524 [AA] DebugSymbolRenderer: update naming
^KT-56046
2023-02-03 19:49:06 +00:00
Dmitrii Gridin 17681bd803 [AA] KtAnnotated: fix kdoc
^KT-56046
2023-02-03 19:49:06 +00:00
Dmitrii Gridin 38575cdbc1 [FIR] FirBasedSymbol: iterate annotations by index instead of iterator to avoid possible ConcurrentModificationException
^KT-56046
2023-02-03 19:49:05 +00:00
Dmitrii Gridin 19a61015c0 [SLC] migrate from AtomicReference to AtomicFieldUpdater
^KT-56046
2023-02-03 19:49:05 +00:00
Dmitrii Gridin 09637a47d3 [SLC] update testData for 1.9 language
^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 e021655001 [LC] AbstractCompilerLightClassTest: add an additional test extension
^KT-56046
2023-02-03 19:49:02 +00:00
Dmitrii Gridin 2edb03a994 [LC] fix multifile testData
^KT-56046
2023-02-03 19:49:02 +00:00