601 Commits

Author SHA1 Message Date
Dmitrii Gridin ec569b3fa3 [SLC] drop KtAnalysisSession from SymbolLightClassForFacade
^KT-54051
2022-11-29 13:33:34 +00:00
Dmitrii Gridin 3c235681ea [SLC] update signature for createInheritanceList
^KT-54051
2022-11-29 13:33:33 +00:00
Dmitrii Gridin a539203e73 [SLC] drop KtAnalysisSession from SymbolLightClassBase
^KT-54051
2022-11-29 13:33:33 +00:00
Dmitrii Gridin 187557306a [SLC] drop redundant @OptIn(KtAllowAnalysisOnEdt::class) annotation
^KT-54051
2022-11-29 13:33:33 +00:00
Dmitrii Gridin c6987744be [SLC] SymbolLightFieldForEnumEntry: override right computeConstantValue
^KT-50241
2022-11-29 13:33:32 +00:00
Jinseong Jeon f2bc25c71d SLC: fix visibility/static modifer of property in companion 2022-11-21 15:55:13 +01:00
Jinseong Jeon e2901c81ac SLC: populate fields from companion in annotation 2022-11-21 15:55:12 +01:00
Dmitrii Gridin d0cc88ffe0 [AA] KtCallableSymbol: introduce receiverType extension
^KT-54417
2022-11-17 09:50:12 +00:00
Dmitrii Gridin 1ebfbc0ee9 [AA] KtCallableSymbol: rename receiver to receiverParameter
^KT-54417
2022-11-17 09:50:12 +00:00
Dmitrii Gridin 2741052db3 [AA] integrate KtReceiverParameterSymbol to KtCallableSymbol
^KT-54417
2022-11-17 09:50:10 +00:00
Yan Zhulanow e21226d02a [SLC] Ignore callables with invalid or absent names (KTIJ-23584) 2022-11-15 16:13:59 +00:00
Yan Zhulanow 4d41ac09df [Analysis API] Treat inapplicable declarations safely (KTIJ-23458)
Make 'getClassOrObjectSymbol()' and 'getNamedClassOrObjectSymbol()'
return 'null' for inapplicable PSI declarations.
2022-11-11 11:28:38 +00:00
Yan Zhulanow 04ccd3710f [LC] Compute modifiers/annotations lazily (KTIJ-23442) 2022-11-11 11:28:37 +00:00
Ilya Kirillov 068168bc3c [fir] change setter parameter name to value 2022-11-11 11:59:56 +01:00
Ilya Kirillov 725ae1fc65 [Analysis API] separate non-class error types from class error types and add information about type qualifiers
it's needed for type printing in renderer
2022-11-11 11:59:55 +01:00
Jinseong Jeon 8d8d0d9922 SLC: add marker interface for collection inheritor 2022-10-27 14:41:24 +02:00
Jinseong Jeon dbf0ba442a (U|S)LC: fix getText for modifier list / accessor 2022-10-19 14:17:36 +02:00
Jinseong Jeon e1344968ec (S|U)LC: fix getTextOffset and getTextRange for modifier list of accessors
in a similar way 36e1149e did for property accessors
2022-10-19 14:17:36 +02:00
Jinseong Jeon 19151fa866 SLC: fix getTextOffsets and getTextRange for accessors
Same idea from LC fix at 36e1149e
2022-10-19 14:17:36 +02:00
Jinseong Jeon ae437716d6 SLC: remove unnecessary overridden kotlinOrigin for accessor
Same as the declaration in the base class SymbolLightMemberBase
2022-10-19 14:17:36 +02:00
Jinseong Jeon fc1eb02590 SLC: implement PsiVariable#computeConstantValue for light field 2022-10-02 13:41:12 +02:00
Jinseong Jeon e5b75dcd72 AA: cache PackagePartProvider per scope 2022-09-15 20:06:41 +02:00
Dmitriy Novozhilov c5916e1d1f [AA LC] Fix computation of const initializers of fields 2022-09-15 17:27:23 +03:00
Dmitriy Novozhilov 573b292cbc [AA LC] Make top-level functions static final 2022-09-15 17:27:23 +03:00
Dmitriy Novozhilov 7e24ddeb40 [AA LC] Properly compute retention for @java.lang.annotation.Retention 2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov 77546e5e06 [AA LC] Compute nullability annotation for parameter for extension receiver 2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov c67ded2d3b [AA LC] Properly set type mapping mode for bounds of type parameters 2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov a3884e35e2 [AA LC] Fix type parameters for getters of generic extension properties 2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov 3b87a9f354 [AA LC] Map kotlin collections to java in bounds of type parameters 2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov e6092e2dff [AA LC] Generate nullability annotations for properties in enums 2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov b7712a35f0 [AA LC] Generate backing field for inline classes 2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov 8e80c5830e [AA LC] Fix annotations on fields for enum entries 2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov a88fdd5eb7 [AA LC] Implement default values for methods of annotations 2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov 3a51a8a655 [AA LC] Fix computing visibility for classes 2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov 1fd2816755 [AA LC Test] Cleanup resulting java dump
- Remove redundant spaces
- Add empty line at the end
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov ab2aa3117b [AA LC] Add @java.lang.Override on override functions 2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov 258e3f9225 [AA LC] Fix visibility of fields for const vals 2022-09-15 17:27:20 +03:00
Dmitriy Novozhilov 1ff51356b9 [AA LC] Fix visibility of fields from companion objects
^KTIJ-22541
2022-09-15 17:27:20 +03:00
Ilya Kirillov 1bdde25dc7 [Analysis API] improve getClassOrObjectSymbolByClassId/getTopLevelCallableSymbols
add kdocs, use better names
2022-09-15 12:12:40 +02:00
Jinseong Jeon 61d339e8f2 SLC: containingFile for all SLC classes, including enum entry 2022-09-14 13:39:31 +02:00
Jinseong Jeon a77933ca9a AA: use appropriate type mapping mode in eq checker 2022-09-13 18:00:40 +02:00
Jinseong Jeon 3c74751f73 AA: look up inner class from parent class stub 2022-09-13 18:00:40 +02:00
Vladimir Sukharev c8864369fd Use main class as test generator name
Merge-request: KT-MR-7031
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-09-09 12:51:18 +00:00
Jinseong Jeon b9501e7452 SLC: suppress final on interface functions
even bridges to functions in companion object
2022-09-09 14:47:10 +02:00
Jinseong Jeon 3eb68a6ee8 S/LC: fix default visibility of constructor of sealed class 2022-09-09 14:38:12 +02:00
Jinseong Jeon 5225c51a5a SLC: handle @JvmOverloads on constructor 2022-09-09 14:38:12 +02:00
Jinseong Jeon d4efc8d81d SLC: use partition to distinguish ctor properties from regular members 2022-09-09 14:38:11 +02:00
Jinseong Jeon 4859524115 SLC: account for upperbounds when computing nullability of type parameter 2022-09-09 14:38:11 +02:00
Dmitry Gridin ec1b6f4f3e [lc] KotlinAsJavaSupportBase: reduce number of findModule calls
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin acc880fe25 [slc] SymbolKotlinAsJavaSupport: drop redundant checks
^KT-50241
2022-09-08 13:47:39 +00:00