Nikolay Krasko
60af145170
Refactoring: move package ../caches/resolve/lightClasses -> ../caches/lightClasses
2018-02-26 18:42:58 +03:00
Nikolay Krasko
08a46c1396
Refactoring: move idea source modules classes to caches/project package
2018-02-26 18:42:58 +03:00
Nikolay Krasko
287ad512fb
Refactoring: extract project structure caches to separate package
2018-02-26 18:42:57 +03:00
Nikolay Krasko
a67ae0bf9f
Refactoring: remove defaults values
2018-02-26 18:42:57 +03:00
Nikolay Krasko
9b8e550f3b
Refactoring: move util files
2018-02-26 18:42:57 +03:00
Nikolay Krasko
931dec9cd8
Refactoring: move MapPsiToAsmDesc.kt to lightClasses package
2018-02-26 18:42:57 +03:00
Nikolay Krasko
47f4c79204
Reformat caches package
2018-02-26 18:42:57 +03:00
Pavel V. Talanov
10f6d65e03
IdeStubIndexService: do not index annotations without name
...
Fixes NPE after changes introduced in 8f8cbfcfa5
2018-02-22 20:29:00 +01:00
Nicolay Mitropolsky
3a609a9472
Assertions to catch EA-114080
2018-02-22 12:51:50 +03:00
Natalia Selezneva
de76d75f03
Drop caches for synthetic files when dependencies changed
2018-02-22 10:00:15 +03:00
Natalia Selezneva
63aeaf9cd5
Do not highlight kts files outside source roots if not all definitions are initialized
...
^KT-20521 Fixed
^KT-21420 Fixed
2018-02-22 09:59:43 +03:00
Alexey Sedunov
17e64ebae0
Move: Fix processing of callable references to nested Java classes and static methods
...
#KT-17827 Fixed
2018-02-21 13:21:20 +03:00
Alexey Sedunov
441f88c144
Move: Fix processing of callable references to nested Kotlin classes
...
#KT-17827 In Progress
2018-02-21 13:21:19 +03:00
Alexey Sedunov
27d4593fc4
Move: Fix lengthening of qualified type references
...
KT-14519 Fixed
2018-02-21 13:21:18 +03:00
Mikhail Glukhikh
84993ec3a0
Resolution API: introduce and use KtElement.resolveToCall()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
513376e5f0
Introduce KtNamedFunction.resolveToDescriptorIfAny()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
5848bc9a44
Introduce KtClassOrObject.resolveToDescriptorIfAny()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
bd0cbb716c
Rename: analyzeWithDeclarations --> analyzeWithContent()
2018-02-20 20:25:41 +03:00
Mikhail Glukhikh
f6513cd17e
Introduce resolveToParameterDescriptorIfAny(), drop reified version
2018-02-20 20:25:41 +03:00
Mikhail Glukhikh
7a1b3cd224
Introduce & use resolveToDescriptorIfAny<DescriptorType>
...
This allows to omit casts after resolveToDescriptorIfAny() call,
get different descriptors for different receivers (in future),
distinguish parameter / property situation for primary constructor
2018-02-20 20:25:41 +03:00
Mikhail Glukhikh
cd1745d354
Light classes: analyzeFully() --> analyzeWithDeclarations()
2018-02-20 20:25:41 +03:00
Mikhail Glukhikh
eabc7c9ba8
Replace some KtDeclaration.analyze() with resolveToDescriptorIfAny()
...
Also, enhance comment on KtElement.analyze()
2018-02-20 20:25:40 +03:00
Mikhail Glukhikh
88b8652ed2
J2K: convert + get rid of analyzeFully (3 files)
2018-02-20 20:25:40 +03:00
Mikhail Glukhikh
50ce8d68bf
J2K: rename *.java --> *.kt (3 files)
2018-02-20 20:25:40 +03:00
Mikhail Glukhikh
2038a5567d
ResolveElementCache: remove dead branch
2018-02-20 20:25:38 +03:00
Mikhail Glukhikh
52166646bb
Reformat: ResolveElementCache
2018-02-20 20:25:37 +03:00
Dmitry Savvinov
0929673576
Refactor DataFlowValueFactory into proper component
2018-02-20 13:11:33 +03:00
Denis Zharkov
cef7205f14
Fix CCE caused by KotlinPackageSourcesMemberNamesIndex
...
FileContentImpl::getPsiFile is not-nullable and at the same time
it contains an explicit case of its fileType to LanguageFileType
that leads to the following exception in case when kt-file is marked as plain text:
java.lang.ClassCastException: com.intellij.openapi.file.exclude.EnforcedPlainTextFileTypeFactory$1 cannot be cast to com.intellij.openapi.fileTypes.LanguageFileType
at com.intellij.util.indexing.FileContentImpl.createFileFromText(FileContentImpl.java:135)
at com.intellij.util.indexing.FileContentImpl.getPsiFile(FileContentImpl.java:104)
#EA-114338 Fixed
2018-02-19 10:31:46 +03:00
Nikolay Krasko
d868c01671
Disable outdate runtime check for developers builds
...
We can't update them properly anyway.
2018-02-16 13:29:49 +03:00
Mikhail Glukhikh
6c328e7845
Fix IdeModuleInfoTests (related to KT-21771)
2018-02-16 13:15:02 +03:00
Alexander Podkhalyuzin
898b31cb83
Merge pull request #1516 from JetBrains/always_fallback_to_hardcoded_plugin_id
...
Use hardcoded plugin ID when loaded in the main classloader
2018-02-15 17:03:29 +03:00
Mikhail Glukhikh
78136fbb07
IDE facet refactoring, ModuleInfo.expectedBy introduced.
...
Part of facet classes was extracted to idea-analysis module
Related to KT-21771
2018-02-14 15:09:14 +03:00
Vyacheslav Karpukhin
cbb75d0bcd
Use hardcoded plugin ID when loaded in the main classloader
2018-02-14 11:11:18 +01:00
Vyacheslav Karpukhin
53946456cf
Do not use hardcoded plugin ID for update checks
...
When Kotlin plugin is bundled into another plugin, there won't be a plugin with ID org.jetbrains.kotlin registered in PluginManager, which leads to runtime exceptions. To fix that let's determine the plugin ID dynamically instead.
2018-02-12 17:33:54 +03:00
Alexey Sedunov
5c6bba9f14
Rename: Fix qualified expression replacement for the case 'invoke' <-> 'get'
...
#KT-22705 Fixed
2018-02-09 14:17:39 +03:00
Alexey Sedunov
48705865bd
J2K: KtArrayAccessReference
2018-02-09 14:17:38 +03:00
Alexey Sedunov
9150322bed
J2K: KtArrayAccessReference (rename to .kt)
2018-02-09 14:17:38 +03:00
Alexander Udalov
7123202670
Add getExtensionOrNull utility for protobuf messages
2018-02-08 17:08:33 +01:00
Alexander Udalov
21e2a3c0b4
Load module annotations in IDE
...
#KT-22759 Fixed
2018-02-08 17:08:33 +01:00
Alexander Udalov
890374a42a
Load module annotations for JVM and JS modules in compiler
...
#KT-22759 In Progress
2018-02-08 17:08:33 +01:00
Alexander Udalov
b4ac852392
Add packageProto/nameResolver to JvmPackagePartSource
...
May be useful for loading platform-specific protobuf extensions (such as
package_module_name on JVM) when analyzing deserialized top level
members
2018-02-08 17:07:22 +01:00
Denis Zharkov
72222c718a
Highlight callees resolved to kotlin.suspend as a keywords
...
#KT-22562 In Progress
2018-02-08 17:47:37 +03:00
Mikhail Glukhikh
dcbb29e947
Search for source of platform binary also in common sources
...
So #KT-20971 Fixed
2018-02-08 17:10:37 +03:00
Mikhail Glukhikh
76976f7e52
SourceNavigationHelper: reformat + style fix
2018-02-08 17:10:36 +03:00
Yan Zhulanow
145ddf3b1f
Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)
2018-02-06 22:15:59 +03:00
Pavel V. Talanov
bc54c95bc3
JavaResolveExtension: create facade by original element
...
Fixes semantic difference erroneously introduced in c030a047aa
#KT-22593 Fixed
2018-02-05 16:26:47 +01:00
Pavel V. Talanov
5ab00ee9f7
HighlighterExtension can provide custom highlighting for calls
2018-02-05 16:22:19 +01:00
Alexander Udalov
ac5444ef7c
Add declaresOrInheritsDefaultValue, move hasDefaultValue to 'resolution'
...
'hasDefaultValue' needs to be adapted to support locating default values
in 'expect' functions, and this is not possible in module 'descriptors',
where it was originally declared. Therefore, move it to module
'resolution' and copy its current logic to a separate function
'declaresOrInheritsDefaultValue' which is used in 5 places.
'hasDefaultValue' itself is updated in subsequent commits.
Besides changing imports, also use a simpler declaresDefaultValue in
some places, which does not include default values inherited from
supertypes: this is OK for constructors, and in LazyJavaClassMemberScope
for functions from built-ins which do not have default argument values
at all
2018-02-05 13:38:04 +01:00
Alexey Sedunov
f35af11423
Rename: Make improvements for "by-convention" calls
...
- Convert between conventions call for 'get' and 'invoke'
- Drop 'operator' when converting 'get'/'invoke' to something other than
'invoke'/'get' respectively
#KT-12365 Fixed
2018-02-01 15:41:09 +03:00
Alexey Sedunov
caeb594e09
Rename: Replace name identifiers via AST to prevent unwanted reformatting
...
#KT-8563 Fixed
2018-02-01 15:41:06 +03:00