Valentin Kipyatkov
3e437adbb4
Minor code improvements
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
8010c0f09d
Partial body resolve works for local Nothing functions + does not go inside local functions and classes
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
e5579bcf32
Partial body resolve: to take source Kotlin callables with Nothing type from caches
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
992cdd9fe2
Partial body resolve: processing of standard "error" function
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
ca8d45259b
Partial body resolve: added a test to fail if smart-casts will become too clever
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
e7ba59b209
Partial body resolve: correct handing of this qualifier
2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
f56d89c487
Partial body resolve: don't be confused by exits after ?:
2014-11-24 20:11:24 +03:00
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
1cf3938f13
Rename: JetElement#getBindingContext() -> analyzeFully
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
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
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
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
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
fc993b88ec
Checked that KT-4453 has been fixed recently by change in TipsManager
2014-11-19 12:56:46 +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
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
Valentin Kipyatkov
7410c36e3a
Completion: moved signatures from "item text" to tail
...
#KT-5652 Fixed
2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
b7e9d96af2
Smart completion includes constructor parameters for instantiation items
2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
7077e22dd3
More tests
2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
7b7e992515
Code completion: '=' char supported for all items + it inserts spaces around '='
2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
3ecae800af
Code completion: fixed comma key behavior for function with parameters + more tests
2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
57692b1a37
Code completion: space after comma on selecting item with comma key
2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
3ebc681eec
Behavior on typing chars with code completion lookup is completely defined by our own handler + added tests for this handler + fixed a few bugs related to this behavior
2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
836b4aa0f0
Smart completion: fixed lookup string for anonymous object item
2014-11-17 22:06:14 +03:00
Valentin Kipyatkov
e256d14075
Smart completion: 2 lookup strings for static member items
2014-11-17 22:06:14 +03:00
Valentin Kipyatkov
2b33501471
Smart completion: fixed items ordering issue
2014-11-17 22:06:14 +03:00
Alexander Udalov
bc238d5f4c
Regenerate tests
2014-11-17 14:08:45 +03:00
Pavel V. Talanov
40addaed13
Fix wrong deserialization order
...
For case when property and function have the same name or
extension and non-extension member have the same name
2014-11-14 17:09:14 +03:00
Pavel V. Talanov
e8aee5cddf
Sorting descriptors in DecompiledTextFactory is redundant
2014-11-14 17:09:10 +03:00
Pavel V. Talanov
8016766b23
Extension/non-Extension members are deserialized in correct order
2014-11-14 16:18:33 +03:00
Pavel V. Talanov
028e9105af
Add test for enum class with inner classes
2014-11-14 16:18:32 +03:00
Pavel V. Talanov
eba5843468
Test order of enum entries in deserialized classes
2014-11-14 16:18:28 +03:00