Valentin Kipyatkov
e724af4b4e
Partial body resolve: more efficient handling if-statements
2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
0a7d73ef6b
Partial body resolve: more efficient handling of loops
2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
806bf3b942
Partial body resolve: more efficient handling of while
2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
38c73f8df4
Partial body resolve: added test for do-while
2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
a89c07924d
Partial body resolve: fixed bug
2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
e6acc5601c
Partial body resolve: more efficient for-loop handling
2014-11-24 20:11:23 +03:00
Valentin Kipyatkov
5283b92269
Partial body resolve: more precise smart casts analysis for if-statement
2014-11-24 20:11:23 +03:00
Valentin Kipyatkov
a675b5ba38
Basic implementation of partial body resolve
2014-11-24 20:11:23 +03:00
Pavel V. Talanov
ff3b3c8a6b
Refactor: inline AnalyzerFacadeWithCache#getContextForElement
2014-11-21 15:56:11 +03:00
Pavel V. Talanov
67b2c32253
Minor: comment
2014-11-21 15:56:10 +03:00
Pavel V. Talanov
3afdd8bd92
Add analyzeFullyAndGetResult to ResolutionFacade
2014-11-21 15:56:10 +03:00
Pavel V. Talanov
63b402e93c
Rename: JetElement#getLazyResolveSession() -> getResolutionFacade
...
Rename local variables and fields of type ResolutionFacade
2014-11-21 15:56:09 +03:00
Pavel V. Talanov
b2ce3da99c
Minor: Inline the only usage of getAnalysisResultsForElements()
2014-11-21 15:56:09 +03:00
Pavel V. Talanov
cb1582fdc9
Rename: JetElement#getAnalysisResults() -> analyzeFullyAndGetResult
2014-11-21 15:56:08 +03:00
Pavel V. Talanov
1cf3938f13
Rename: JetElement#getBindingContext() -> analyzeFully
2014-11-21 15:56:07 +03:00
Pavel V. Talanov
d06628945c
Refactor: Introduce JetElement#analyzeAndGetResult() utility
2014-11-21 15:56:07 +03:00
Pavel V. Talanov
407c2029da
Rename: getModuleDescriptorForElement -> findModuleDescriptor
2014-11-21 15:56:06 +03:00
Pavel V. Talanov
6ff647ca66
Rename: resolveToElement() -> analyze
2014-11-21 15:56:06 +03:00
Pavel V. Talanov
e10461d0fa
Minor: reorder functions
2014-11-21 15:56:05 +03:00
Pavel V. Talanov
bce399f5fd
Rename: AnalyzeExhaust -> AnalysisResult
2014-11-21 15:56:05 +03:00
Pavel V. Talanov
e4670a791d
Refactor: Introduce JetElement#getModuleDescriptorForElement()
2014-11-21 15:56:04 +03:00
Pavel V. Talanov
0319ef797e
Refactor: Introduce DeclarationDescriptor#module utility
2014-11-21 15:56:03 +03:00
Pavel V. Talanov
96100eec1d
Refactor: Introduce JetElement#resolveToElement utility
2014-11-21 15:56:03 +03:00
Pavel V. Talanov
585b556f52
Refactor: Introduce JetDeclaration#resolveToDescriptor utility
2014-11-21 15:56:02 +03:00
Pavel V. Talanov
95e668b1f1
Minor: move resolution utilities to a separate file
2014-11-21 15:56:02 +03:00
Pavel V. Talanov
df892ba33a
Introduce ResolutionFacade to be used by plugin code instead of resolve session
...
Do not expose ResolveSessionForBodies where possible
Define API of ResolutionFacade, similar to what ResolveSessionForBodies has
JetElement#getLazyResolveSession returns ResolutionFacade
Call sites to be updated later
2014-11-21 15:56:01 +03:00
Pavel V. Talanov
2c9b0448a1
Fix getModuleInfo for elements in code fragments
2014-11-21 15:56:00 +03:00
Pavel V. Talanov
03a31db2ec
Converter: use ide resolve through a dedicated interface
...
Eliminate direct usages of ResolveSession
2014-11-21 15:56:00 +03:00
Pavel V. Talanov
1f7c9f5693
Use KotlinCacheService directly in IDELightClassGenerationSupport
2014-11-21 15:55:59 +03:00
Pavel V. Talanov
1991f0119e
Convert AnalyzeExhaust to Kotlin and make it a data class
2014-11-21 15:55:59 +03:00
Svetlana Isakova
2948ca9077
Fixed argument for error message 'TYPE_PARAMETER_AS_REIFIED'
2014-11-21 14:02:43 +03:00
Nikolay Krasko
5c597db881
Move ReferenceVariantsHelper and extensionsUtils to ide-common module
...
They are going to be used in Eclipse
2014-11-20 19:59:56 +03:00
Valentin Kipyatkov
8006f16e46
Minor code refactorings
2014-11-19 16:01:20 +03:00
Valentin Kipyatkov
5036fdca14
Made ReferenceVariantsHelper class instead of object making method signatures shorter
2014-11-19 16:01:20 +03:00
Valentin Kipyatkov
d5d884025c
Renamed TipsManager
2014-11-19 16:01:19 +03:00
Valentin Kipyatkov
601fe05cb0
Moved methods for checking extensions applicability from TipsManager to extensionUtils.kt (and made them all extension methods)
2014-11-19 16:01:19 +03:00
Valentin Kipyatkov
153b53baa8
Moved method checkIsExtensionCallable from ExpressionTypingUtils to TipsManager (converting it to Kottlin)
2014-11-19 16:01:19 +03:00
Valentin Kipyatkov
18b9e4a868
Added tests
2014-11-19 16:01:18 +03:00
Valentin Kipyatkov
e0da6247af
Completion: bold immediate members for extensions too
2014-11-19 12:56:47 +03:00
Valentin Kipyatkov
a26388ef63
Completion: corrected presentation for extension properties
2014-11-19 12:56:47 +03:00
Valentin Kipyatkov
386c67925f
Completion: do not bold top-level functions
2014-11-19 12:56:47 +03:00
Valentin Kipyatkov
fc993b88ec
Checked that KT-4453 has been fixed recently by change in TipsManager
2014-11-19 12:56:46 +03:00
Nikolay Krasko
ad05b5a709
Injector for additional body resolve with lazy analyzer
...
Fix resolve JS modules with JVM resolver
2014-11-18 17:10:21 +03:00
Alexey Sedunov
2ec4494c02
Find Usages: Add tests for enum entries
2014-11-18 13:25:03 +03:00
Alexey Sedunov
432c0bb69e
Rename: Add tests for enum entries
...
#KT-4800 Fixed
2014-11-18 13:25:02 +03:00
Alexey Sedunov
6c08613f68
Change Signature: Add tests for enum entries
...
#KT-6034 Fixed
2014-11-18 13:25:01 +03:00
Alexey Sedunov
cf5f9424de
Implementation Navigation: Add tests for enum entries
...
#KT-3540 Fixed
2014-11-18 13:25:00 +03:00
Alexey Sedunov
7170209760
Move: Suggest creating Kotlin file if it doesn't exist
...
#KT-5379 Fixed
2014-11-18 13:24:55 +03:00
Valentin Kipyatkov
d061c3d771
Completion: bold members from immediate class
2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
79cfe2bac4
Completion tests: added ability to test presentation text attributes
2014-11-17 22:06:16 +03:00