Commit Graph

24921 Commits

Author SHA1 Message Date
Natalia Ukhorskaya 35cb23ffbe Debugger: add tmp file to exception report 2015-08-26 12:16:04 +03:00
Natalia Ukhorskaya 73099c3a41 Minor: move to base class 2015-08-26 12:16:03 +03:00
Natalia Ukhorskaya bd43dbc7f4 Minor: use property access syntax if possible 2015-08-26 12:16:02 +03:00
Natalia Ukhorskaya d675c12a32 Minor: change method return type 2015-08-26 12:16:02 +03:00
Natalia Ukhorskaya d46765d460 Completion in JetCodeFragment: optimize descriptors comparasion 2015-08-26 12:16:01 +03:00
Natalia Ukhorskaya 87735749ea Fix warnings 2015-08-26 12:16:00 +03:00
Stanislav Erokhin abb18b7bb9 KT-8861 Package name vs property with wrong receiver
#KT-8861 Fixed
2015-08-25 20:43:52 +03:00
Valentin Kipyatkov 0883bfa615 Changes on code review 2015-08-25 18:56:45 +03:00
Valentin Kipyatkov 92f5ec2ce5 Overriding LookupElement.getPsiElement() for all our LookupElement's because some IDEA features may use it 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov 9a641974f8 Dropped LocationWeigher because it was duplicated by proximity weigher (only preference of symbols from project sources was not duplicated but it's doubtful) 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov 6c46e3ec02 Better test 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov fd34ff3239 Implemented own version of LookupElementProximityWeigher (the standard one checks getObject() instanceof PsiElement)
#KT-8842 Fixed
2015-08-25 18:56:18 +03:00
Valentin Kipyatkov f86850061b Use original descriptor for statistics 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov dc875194eb Better Statistician for completion 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 4bbd1927a7 Fixed usage of deprecated method 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov d7bc7871c5 Preference of properties to functions made lower priority in completion 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 83feffec63 Shorter rendering in StatisticsInfo 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 628ce4ea32 Better sorting of variants in add import popup 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 5a4cd96c75 Fix in extractableAnalysisUtil.kt 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 0f332bd8b9 Refactored sorting in completion
Also changed semantics of DeclarationDescriptor.importableFqName - it now returns null when descriptor cannot be referenced by import + dropped DeclarationDescriptor.importableFqNameSafe
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov 68c0c83879 Better sorting: current package is preferred 2015-08-25 18:56:16 +03:00
Valentin Kipyatkov b4e71364a3 Super-naive implementation of CompletionStatistician 2015-08-25 18:56:16 +03:00
Valentin Kipyatkov 9837d383a9 Completion and add import popup to use same sorter
#KT-8842 In progress
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov adea67b219 KT-7790 Import popup should show the most preferable item in its text
#KT-7790 Fixed
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov 32cecf5a4c KT-8828 Parameter name and type completion should not pop up when typing-in parameter name in template mode
#KT-8828 Fixed
2015-08-25 18:56:15 +03:00
Valentin Kipyatkov 9900506254 No repeating of completion auto-popup after Esc in all positions 2015-08-25 18:56:15 +03:00
Valentin Kipyatkov a015c44a60 KT-8843 When typing in lambda parameters' names, smart completion kicks in and makes it impossible to type names
#KT-8843 Fixed
2015-08-25 18:56:15 +03:00
Valentin Kipyatkov 9b04afc278 Minor optimization 2015-08-25 18:56:15 +03:00
Valentin Kipyatkov 5fc6525db6 Completion to insert type arguments for a call when they are likely required 2015-08-25 18:56:15 +03:00
Dmitry Jemerov 4743a69d76 rename platformName annotation to jvmName 2015-08-25 15:40:46 +02:00
Zalim Bashorov 3465126bee Add test lookup tracking for local declarations 2015-08-24 19:50:10 +03:00
Zalim Bashorov 3b21d391c5 Add test for lookups to classifier members 2015-08-24 19:50:09 +03:00
Zalim Bashorov bdd834604a Add lacation parameter to ModuleDescriptor.resolveTopLevelClass (in DescriptorUtils.kt) 2015-08-24 19:50:09 +03:00
Zalim Bashorov eaacd46b4e Add location parameter to DescriptorUtils#getInnerClassByName 2015-08-24 19:50:08 +03:00
Zalim Bashorov 4dbc08635c Minor: inline last usages of deprecated JetScope::getFunctions(Name) and drop it 2015-08-24 19:50:08 +03:00
Zalim Bashorov a395b8b4dd Minor: drop deprecated JetScope::getProperties which no longer have usages 2015-08-24 19:50:07 +03:00
Zalim Bashorov 024c2761c8 Ignore lookups to parent scope for find super members 2015-08-24 19:50:07 +03:00
Zalim Bashorov 2f13c89fd8 Ignore lookups when typing unqualified super 2015-08-24 19:50:06 +03:00
Zalim Bashorov 30d2d9624a Minor: add missed ignores 2015-08-24 19:50:06 +03:00
Zalim Bashorov 3c2762dd1d Don't track lookups for JetScope::getDescriptors (and JetScope::getAllDescriptors) 2015-08-24 19:50:05 +03:00
Zalim Bashorov 6a3200764f Don't try to record lookups which already tracked 2015-08-24 19:50:05 +03:00
Zalim Bashorov cca57af401 Provide LookupLocation when resolve calls 2015-08-24 19:50:04 +03:00
Zalim Bashorov 45e6747061 Minor: use synthetic properties everywhere in CallableDescriptorCollectors.kt 2015-08-24 19:50:04 +03:00
Zalim Bashorov 556c755e83 Add test for lookups to top level declarations 2015-08-24 19:50:03 +03:00
Zalim Bashorov 0ba18ca8cd Track the top level declarations, note not usages
It'll be useful for more accurate tracking dependencies inside package.
2015-08-24 19:50:03 +03:00
Zalim Bashorov 673df1f085 No more record path to file which contains current scope in LookupTracker 2015-08-24 19:50:02 +03:00
Zalim Bashorov 7790c2fd71 Minor: ignore KDoc like comments which starts with /**
for example it can be used to mark lookups which we can't report yet
2015-08-24 19:50:02 +03:00
Zalim Bashorov 6bed076228 Minor: fix warnings in AbstractIncrementalJpsTest.kt
* used new property access syntax
* splitBy -> split
* used string template instead of concatenation
2015-08-24 19:50:02 +03:00
Zalim Bashorov b32040f610 Store lookup info inside testData code instead of separate file 2015-08-24 19:50:01 +03:00
Dmitry Jemerov 704e72eee1 correcty find Java usages of static methods generated for companion object members annotated as jvmStatic
#KT-8902 Fixed
2015-08-24 18:12:13 +02:00