Valentin Kipyatkov
bdd4363802
Option to use 'asSequence()'
2016-08-16 17:38:17 +03:00
Valentin Kipyatkov
12b1a99a6a
Initial implementation of loop-to-call-chain intention
2016-08-16 17:37:55 +03:00
Kirill Rakhman
e6d76a9b71
Allow suppressing warnings for secondary constructor (KT-12627)
...
(cherry picked from commit 41cf868)
#KT-12627 Fixed
2016-08-16 13:04:42 +03:00
Dmitry Jemerov
f08a7f14e0
workaround for IDEA's issue that throws an exception when using union() on a LocalSearchScope with no elements (EA-82063 - AIOOBE: GlobalSearchScope.union)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
5d92f655f7
one more missing read action in Find Usages (EA-81276 - assert: SharedImplUtil.getParent)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
8632790446
don't check intention availability on PsiFile (EA-85587 - assert: SharedPsiElementImplUtil.getChildIndex)
2016-08-10 13:26:13 +02:00
Pavel V. Talanov
30892e0154
KtLightClassForDecompiledDeclaration is now marked by KtLightClassMarker
...
Rename: KtJavaMirrorMarker -> KtLightClassMarker
Introduce code to be able to tell light classes from source and binaries apart in 'frontend.java'
2016-08-03 17:29:06 +03:00
Pavel V. Talanov
464445c260
KotlinCacheServiceImpl: Add all sdks from project sdk table when building facadeForSdk
...
As of now facadeForSdk should contain all sdks that we can possibly reference while resolving including those that scripts depend on
More granular approach may be beneficial in the future
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
bc0ccd4861
Refactor: move script module info related code to a separate file
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
a8416035b1
IDE Script support: use particular scripts dependencies when building analyzers
...
Use javaHome property to detect jdk to analyze script files against, use default jdk if it's null
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
5a1a1fc03a
Drop KtLightClass#getFqName() and some usages of classFqName in KtLightClassForDecompiledDeclaration
2016-07-28 18:00:53 +03:00
Pavel V. Talanov
252235787d
Refactor: rename KtWrappingLightClass -> KtLightClassBase
2016-07-28 18:00:51 +03:00
Pavel V. Talanov
999c8e7486
Refactor: rename KtLightClassForExplicitDeclaration -> KtLightClassForSourceDeclaration
2016-07-28 18:00:50 +03:00
Pavel V. Talanov
b686b37cbf
Refactor: move KotlinCodeBlockModificationListener to 'idea-analysis' module
2016-07-28 18:00:49 +03:00
Pavel V. Talanov
0294551433
Refactor: move OldPackageFacadeClassUtils to 'frontend.jvm' module
2016-07-28 18:00:48 +03:00
Pavel V. Talanov
cdbd7fbab0
Refactor: split classes in 'asJava' package into several subpackages to reflect their structure
2016-07-28 18:00:47 +03:00
Pavel V. Talanov
0b4c6bd889
Drop PsiCodegenPredictor
2016-07-28 18:00:45 +03:00
Mikhail Glukhikh
17c824f7f2
KT-13170 related: correct handling of inspection parameters in additional checker
...
(cherry picked from commit 47fd990)
2016-07-27 10:50:58 +03:00
Nikolay Krasko
84a83e5dc2
Minor: remove !!
2016-07-26 17:17:06 +03:00
Nikolay Krasko
bdc3192acb
Don't store analyze result longer than ModuleResolverProvider valid time
...
For synthetic files there might be file modifications without PsiModificationTracker.MODIFICATION_COUNT increment.
2016-07-26 17:17:06 +03:00
Nikolay Krasko
db89c3fc3f
Refactoring: extract ResolutionFacadeImpl to separate file
2016-07-26 17:17:06 +03:00
Nikolay Krasko
57f3a86686
Debug string for project resolution facade
2016-07-26 17:17:06 +03:00
Pavel V. Talanov
8a9de2a00f
Show all Kotlin annotations when browsing hierarchy of "java.lang.Annotation"
2016-07-26 11:42:09 +03:00
Pavel V. Talanov
84dae76bd9
Index enum classes as if they have "Enum" in supertypes
...
#KT-13057 Fixed
2016-07-26 11:42:08 +03:00
Alexander Udalov
d945c33d5e
Move some members from OverrideResolver to OverridingUtil
2016-07-25 15:55:31 +03:00
Mikhail Glukhikh
17a2a971c4
A pair of "Suppress" changed from CAST_NEVER_SUCCEEDS to UNCHECKED_CAST
...
(cherry picked from commit 2ac8a66)
2016-07-21 20:16:15 +03:00
Alexey Sedunov
c075d27731
Change Signature: Consider default value context an initial type context. Use parameter list as a type context for bodyless function
...
#KT-12413 Fixed
(cherry picked from commit f417b05)
2016-07-20 15:30:09 +03:00
Dmitry Jemerov
5201fc171b
ClsWrapperStubPsiFactory can be a singleton
2016-07-13 13:16:15 +02:00
Pavel V. Talanov
254ab72eb5
Put all stub versions into one place, explain their meaning
2016-07-11 19:07:16 +03:00
Dmitry Jemerov
88fe6680fa
use QualifiedNameResolver for resolving links in KDoc
...
#KT-10398 Fixed
2016-07-07 19:27:45 +02:00
Dmitry Jemerov
193a404c07
to restore pre-1.0.3 highlighting behavior, inherit "extension function" and "extension property" colors from "static method" and "static field"
...
#KT-12937 Fixed
2016-07-07 18:01:39 +02:00
Dmitry Petrov
c8a5ccb1d0
"Go to class / symbol / super" & type aliases
2016-07-04 08:30:18 +03:00
Dmitry Petrov
075195a3e4
Provide base icon for type alias descriptor.
...
Use platform icon for a class (as we do for type parameters).
2016-07-04 08:30:18 +03:00
Alexey Sedunov
542f8d9fd2
Move: Support quoted package names
...
#KT-12411 Fixed
(cherry picked from commit 95239e5)
2016-06-28 15:07:30 +03:00
Pavel V. Talanov
cbf78c7298
KotlinCacheServiceImpl: create new locks when creating caches that delegate to other caches
...
Remove single globalContext that was passed around to every configurations
Correctly create exception trackers when delegating caches
Delegate builtIns instance when delegating caches
Create specialized JvmBuiltIns only if Sdk is specified
2016-06-28 12:40:28 +03:00
Denis Zharkov
d53c53a900
Support annotations on type aliases declarations
2016-06-28 10:33:29 +03:00
Denis Zharkov
e24f0653fb
Support type aliases in stub builder
2016-06-28 10:33:29 +03:00
Alexander Udalov
4c8e8b099a
Update protobuf from 2.5.0 to 2.6.1
2016-06-27 20:14:00 +03:00
Alexey Andreev
2909533522
KT-3008 Add module kind. Include module kind and module dependencies in metadata
2016-06-27 15:33:23 +03:00
Nikolay Krasko
8d055f6952
Use file.modificationStamp to invalidate caches for synthetic files
...
It previously worked because of updating all counters. That behaviour was removed in
https://github.com/JetBrains/intellij-community/commit/3b860d69ee1b32b210ddf88b1e042dd70ea87cd9 .
getUserData(FILE_OUT_OF_BLOCK_MODIFICATION_COUNT) is probably useless because copied file has
isEventSystemEnabled() == false that prevents sending notifications about PSI changes. This need additional checks.
2016-06-27 15:02:42 +03:00
Pavel V. Talanov
6d04c6e102
Drop no longer used FileLibraryScope
2016-06-25 22:25:31 +03:00
Pavel V. Talanov
6a1096a8e9
KotlinCacheServiceImpl: cache all script dependencies as whole to provide faster completion in scripts
...
A lot of stuff to be fixed after
2016-06-25 22:25:24 +03:00
Pavel V. Talanov
8ad856e1d0
Allow navigating to Kotlin library sources of script dependencies
2016-06-25 22:25:12 +03:00
Pavel V. Talanov
693eeb9f0a
Split ScriptModuleInfo into script itself and its dependencies
...
For now include all dependencies of all scripts for every script, to be improved later
2016-06-25 22:25:10 +03:00
Pavel V. Talanov
1a9c46f34b
Ide Scopes: Allow including script dependencies into search scope
...
This includes script dependencies into scopes for some of the IDE services
Should be revisited later to decide if given service should work for scripts
2016-06-25 22:25:08 +03:00
Pavel V. Talanov
9185baf13c
J2K KotlinSourceFilterScope: rename file
2016-06-25 22:24:58 +03:00
Pavel V. Talanov
a461dd0da2
J2K KotlinSourceFilterScope: autoconvert
2016-06-25 22:24:56 +03:00
Pavel V. Talanov
ddb3327992
Minor: Remove scoping limitation in newly created indices
2016-06-25 22:24:54 +03:00
Ilya Chernikov
4f05f839a3
Add previous imports to resolving interfaces to enable effective caching implementations
2016-06-25 22:24:45 +03:00
Ilya Chernikov
64bb47ed37
Switch to File instead of String for classpaths in script dependencies
2016-06-25 22:24:30 +03:00