Commit Graph

15126 Commits

Author SHA1 Message Date
Andrey Breslav 34f437cc00 Analyze all relevant files in JetPositionManager 2014-04-23 15:21:08 +04:00
Andrey Breslav 94693bf8dc Unused method removed 2014-04-23 14:06:15 +04:00
Andrey Breslav 93d3eab9f9 More granular locks in KotlinResolveCache 2014-04-23 14:06:14 +04:00
Andrey Breslav 04b28b14e5 Synchronization logic extracted into a method 2014-04-23 14:06:14 +04:00
Andrey Breslav 35b2d6536e Unneeded synchronization removed 2014-04-23 14:06:14 +04:00
Andrey Breslav 3275e52290 Got rid of unneeded caching in KotlinCacheService 2014-04-23 14:06:13 +04:00
Andrey Breslav af9694738e JvmResolveUtil extracted for methods that are used only for tests 2014-04-23 14:06:13 +04:00
Andrey Breslav 2a3d1c1b18 AnalyzerFacadeWithCache.getLazyResolveSessionForFile() inlined 2014-04-23 14:06:12 +04:00
Andrey Breslav 9b01eb15ce KotlinCacheManager removed in favor of KotlinCacheService 2014-04-23 14:06:12 +04:00
Andrey Breslav 523faed696 AnalyzerFacadeWithCache simply redirects to KotlinCacheService now 2014-04-23 14:06:12 +04:00
Andrey Breslav 00ebd967e2 AnalyzerFacadeWithCache.analyzeFileWithCache() is inlined 2014-04-23 14:06:11 +04:00
Andrey Breslav 7ee483fbc8 getDeclarationsFromProject() is replaced by lazy resolve 2014-04-23 14:06:11 +04:00
Andrey Breslav 54f3dd20b3 KotlinCacheManagerUtil usages replaced by lazy resolve 2014-04-23 14:06:10 +04:00
Andrey Breslav 1a92964250 JavaDescriptorResolver is cached by KotlinResolveCache
Accessible via JavaResolveExtension
2014-04-23 14:06:10 +04:00
Andrey Breslav ed79be6d2d AnalyzerFacade.Setup introduced 2014-04-23 14:06:10 +04:00
Andrey Breslav 45a90a8f20 Eager methods removed from AnalyzerFacade 2014-04-23 14:06:09 +04:00
Andrey Breslav d45347688d Create consolidated caching service to provide all lazily resolved data
Other caches are to be removed later
2014-04-23 14:06:09 +04:00
Andrey Breslav 4d425aff11 Methods pulled up into the interface 2014-04-23 14:06:09 +04:00
Andrey Breslav 143b78d031 KotlinCacheManagerUtil uses lazy resolve 2014-04-23 14:03:14 +04:00
Andrey Breslav 0ce4e5e113 Minor. One utility method reused in the other 2014-04-23 14:03:14 +04:00
Andrey Breslav 99b5fa1f47 Minor. Method replaced by a more convenient one from the same class 2014-04-23 14:03:13 +04:00
Zalim Bashorov 82e26ff856 Generated tests 2014-04-22 22:33:09 +04:00
Zack Grannan aec5ae5dd4 Added IfThenToDoubleBangIntention 2014-04-22 22:33:08 +04:00
Zack Grannan 8476a790bd Added DoubleBangToIfThenIntention 2014-04-22 22:33:08 +04:00
Zack Grannan f58e1811e4 Added methods to IfThenUtils 2014-04-22 22:33:08 +04:00
Zack Grannan e5054a4a54 Modified IfThenToElvis to not apply when using '!!' would be better 2014-04-22 22:33:08 +04:00
Zack Grannan 9f63f7c488 Updated AbstractJetInspectionTest to use runtime if necessary 2014-04-22 22:33:08 +04:00
Zack Grannan f4beffd451 Added getOperationToken method to JetUnaryExpression 2014-04-22 22:33:07 +04:00
Alexey Sedunov a600606cac Extract Function: UI support for validation 2014-04-22 18:45:56 +04:00
Alexey Sedunov 0e9676173b Extract Function: Implement validation 2014-04-22 18:45:55 +04:00
Alexey Sedunov e052a64767 Introduce Variable: Compare receivers (both implicit and explicit) when looking for expression occurrences
#KT-4819 Fixed
2014-04-22 18:45:54 +04:00
Zalim Bashorov 40ee454e67 Merge pull request #450 from wutalman/assert_to_if
KT-4576: (Bug fix) Intention to transform an if an AssertionError throw into an assert
2014-04-22 17:30:22 +04:00
Valentin Kipyatkov 19aa35ffeb Smart completion: minor changes 2014-04-22 14:15:07 +04:00
Valentin Kipyatkov e017f4d952 Smart completion: auto-popup parameter info when comma is inserted 2014-04-22 11:44:32 +04:00
Valentin Kipyatkov 134496d182 Smart completion: special items with "!!" and "?:" for nullable members 2014-04-21 22:14:20 +04:00
Valentin Kipyatkov 710e61dea7 Fixed duplicated "Shorten FQ names" checkbox in live templates 2014-04-21 22:06:16 +04:00
Valentin Kipyatkov cedf6b2b54 Renamed method 2014-04-21 22:06:16 +04:00
Valentin Kipyatkov 0e28cf1561 Minor code corrections after review 2014-04-21 22:06:15 +04:00
Valentin Kipyatkov e3682befe0 Fixed some tests 2014-04-21 22:06:15 +04:00
Valentin Kipyatkov 28e0f3013b Smart completion: no fq-names in types 2014-04-21 22:06:15 +04:00
Valentin Kipyatkov 4968377969 Smart completion: lambda item uses template to allow change parameter names 2014-04-21 22:06:15 +04:00
Andrey Breslav 767eb04930 JetElement.getContainingJetFile() introduced 2014-04-21 21:55:00 +04:00
Nikolay Krasko da0efe2a9e Refactoring: rename method and optimize cycles in methods 2014-04-21 18:47:05 +04:00
Nikolay Krasko 3a5592ee34 Performance hit in getModulesWithKotlinFiles(Project) after git update (KT-4809)
- Wait for indices are ready
- Try to do only one final check
- Better method to check Kotlin files are present in modules

 #KT-4809 Fixed
 #KT-4875 Fixed
2014-04-21 18:47:05 +04:00
Pavel Talanov 9127902a28 Merge pull request #433 from kuity/ReplaceInfixCallFix
Bug Fix for KT-4652 Replace with Infix Call
2014-04-21 04:44:44 -07:00
Tal Man 3713f50800 Intention to convert assert into an if with throw - bug fix for when the call is dot qualified 2014-04-20 12:45:31 -04:00
Andrey Breslav feece3c326 Temporarily disabling a blinking test 2014-04-18 21:28:24 +04:00
Andrey Breslav 1d3cc306c4 Allow to only resolve declaration headers in classes, without forcing everything to be resolved 2014-04-18 21:28:24 +04:00
Andrey Breslav b2ea2e1a15 Prohibit inheritance loops through containing classes
Example

class A : B {
  trait C
}

class B : A.C

Here we have a loop in the hierarchy: A -> B -> A.C => A

"=>" represents class nesting
2014-04-18 21:28:24 +04:00
Andrey Breslav fef2968e1d Order the computations in LazyTopDownAnalyzer
- First, all class descriptors are created
- Then, all functions and properties
- Then the rest
2014-04-18 21:28:24 +04:00