Nikolay Krasko
1143db85f1
Refactoring: move method to utility and don't create intermediate kotlin scope
2014-10-09 02:28:47 +04:00
Nikolay Krasko
3ea2d420b2
Refactoring: rename methods
2014-10-09 02:28:46 +04:00
Nikolay Krasko
6c9538b040
Share check "is file under source roots"
2014-10-09 02:28:45 +04:00
Nikolay Krasko
7bf84ec84c
Refactoring: rename method and hide information about gradle
2014-10-09 02:28:44 +04:00
Nikolay Krasko
a7fbc1bc6c
Always check kotlin file is in correct source root for gradle modules
2014-10-09 02:28:44 +04:00
Nikolay Krasko
a29773597e
Convert to Kotlin
2014-10-09 02:28:43 +04:00
Nikolay Krasko
b172709008
Refactoring: move file
2014-10-09 02:28:42 +04:00
Nikolay Krasko
e85b36cdff
Store resolution context for light classes to prevent back-end fail
2014-10-09 02:28:41 +04:00
Valentin Kipyatkov
852fc8bc5d
More renames of TypeRef to TypeReference
2014-10-08 15:41:47 +04:00
Valentin Kipyatkov
31ebee81f0
JetVariableDeclaration made JetCallableDeclaration and renamed getTypeRef/setTypeRef, getReturnTypeRef/setReturnTypeRef to getTypeReference/setTypeReference
2014-10-08 15:41:47 +04:00
Nikolay Krasko
774af134fa
Move caret to generated element and add selection
2014-10-06 17:53:02 +04:00
Nikolay Krasko
c80cdb4790
getContainingFile() and getProject() have to be executed under read lock
2014-10-06 15:27:01 +04:00
Pavel V. Talanov
5e6619e368
Increase LibraryModificationTracker when external annotations are changed
...
Library cache is dropped when there are changes to external annotations
2014-10-03 21:35:11 +04:00
Pavel V. Talanov
af963ea244
Fix being unable to find declaration for substituted callable from library
...
#KT-5900 Fixed
#KT-5901 Fixed
2014-10-03 21:33:18 +04:00
Pavel V. Talanov
8f52f71378
Remove warn on performing analysis from dispatch thread
...
This is outdated since lazy resolve can be called from dispatch thread (Intentions do it)
2014-10-03 21:33:18 +04:00
Alexey Sedunov
58126b28ca
Create From Usage: Quick-fix for properties
2014-10-03 20:18:41 +04:00
Alexey Sedunov
6ad2157806
Create From Usage: Quick-fix for value parameters
2014-10-03 20:18:39 +04:00
Svetlana Isakova
ce01c61811
Rename: auto cast -> smart cast
2014-10-01 18:52:52 +04:00
Svetlana Isakova
20f3403c80
Rename: this object, receiver argument -> dispatch receiver, extension receiver
2014-10-01 18:52:51 +04:00
Nikolay Krasko
7c0acd9da5
Navigate to sources from markers not to decompiled classes
2014-10-01 17:58:53 +04:00
Nikolay Krasko
2d54139018
Refactoring: move method to utils
2014-10-01 17:58:51 +04:00
Nikolay Krasko
72c7d22d5f
Rewrite to Kotlin: DescriptorToDeclarationUtil
2014-10-01 17:58:49 +04:00
Pavel V. Talanov
92faee3fd7
Do not reuse other caches when analyzing synthetic files inside libraries classes
...
This is no longer correct since libraries have dependencies
2014-09-30 21:59:02 +04:00
Pavel V. Talanov
b7dbd7a68d
Minor: readable toString for LibraryInfo and LibrarySourceInfo
2014-09-30 21:59:01 +04:00
Pavel V. Talanov
e25cbcd961
Test for LibraryInfo dependencies
2014-09-30 21:59:00 +04:00
Pavel V. Talanov
23a45ae689
Provide heuristic dependencies for LibraryInfo
...
This is not and cannot be (with current IDEA model) accurate
For now we use the following approximation:
If a module dependends on library 'a' and among module's dependencies (including this module)
there is a module that depends on library 'b' then
we assume that library 'a' depends on library 'b'
2014-09-30 21:59:00 +04:00
Pavel V. Talanov
691068c0c2
Implement LibraryDependenciesCache
2014-09-30 21:58:59 +04:00
Nikolay Krasko
f7c1802fb7
Can't call Kotlin built-in Throwable
2014-09-30 20:44:57 +04:00
Alexey Sedunov
4ca39e8f9a
Create From Usage: Quick-fix for local variables
2014-09-30 19:55:46 +04:00
Natalia Ukhorskaya
a04efad059
Fix error message for missing propertyDelegated method in IDE
2014-09-30 15:00:30 +04:00
Nikolay Krasko
b79b7554ff
Refactoring: move application utility methods from refactoring utility to common place
2014-09-29 14:03:02 +04:00
Nikolay Krasko
89f0c8dc87
Rewrite ApplicationUtils.java to Kotlin
2014-09-29 13:55:47 +04:00
Pavel V. Talanov
f292c554cb
Cache result of getAllPossiblePackageClasses()
...
Move this utility from IDELightClassGenerationSupport to PackageIndexUtil
2014-09-26 18:21:11 +04:00
Pavel V. Talanov
9219616bb8
Minor: rename and refactor PackageIndexUtil#containsAny()
2014-09-26 18:21:10 +04:00
Pavel V. Talanov
4370577457
Minor: Convert PackageIndexUtil to Kotlin
2014-09-26 18:21:10 +04:00
Pavel V. Talanov
6127af97a5
Manually implement scopes for ModuleSourceInfo
...
This allows for a faster contains(VirtualFile) check
2014-09-26 18:21:09 +04:00
Denis Mekhanikov
c4bfa0edca
Introduce propertyDelegated method in delegates
2014-09-24 15:34:12 +04:00
Pavel V. Talanov
187a3f0b9f
Implement separate service which tracks modification in libraries
...
ProjectRootModificationTracker tracks root changes but not content modification
2014-09-23 15:56:38 +04:00
Pavel V. Talanov
8a5239f794
Correctly place decompiled kotlin files under LibrarySourceInfo
...
This check doesn't work for java (and other) decompiled sources, but we assume that we never deal with them in this code
2014-09-23 15:56:37 +04:00
Pavel V. Talanov
8a44325327
Log when libraries cache is dropped because of ProcessCanceledException
...
Hope it can give insight on how often this happens
2014-09-23 15:56:37 +04:00
Pavel V. Talanov
8d89ac897a
Create composite exception tracker when delegating ModuleResolverProvider
...
Avoid dropping delegate caches when exception (i.e. ProcessCancelled) is thrown in delegating provider
2014-09-23 15:56:36 +04:00
Pavel V. Talanov
68201c3e86
Delegate to global cache when building ModuleResolverProvider for synthetic files
2014-09-23 15:56:36 +04:00
Pavel V. Talanov
5847c3559b
Implement ModuleSourceInfo.getDependentModules()
2014-09-23 15:56:35 +04:00
Pavel V. Talanov
bf546c83fb
Introduce ModuleSourceInfo
2014-09-23 15:56:35 +04:00
Pavel V. Talanov
fe136b500a
Libraries cache drops only on roots change
2014-09-23 15:56:34 +04:00
Pavel V. Talanov
67c9a2323c
Synthetic files cache delegates to libraries cache
2014-09-23 15:56:34 +04:00
Pavel V. Talanov
8368689af8
Split global cache in KotlinCacheService into separate caches for libraries and for modules
2014-09-23 15:56:33 +04:00
Pavel V. Talanov
faa9f4bb14
Reuse both storage manager and exception tracker when delegating to ModuleResolverProvider
2014-09-23 15:56:33 +04:00
Pavel V. Talanov
c0657320f5
Allow to provide delegate ModuleResolverProvider when computing resolve sessions for bodies
2014-09-23 15:56:32 +04:00
Pavel V. Talanov
ec02734a30
Minor: extract property in KotlinResolveCache
2014-09-23 15:56:32 +04:00