Pavel V. Talanov
b452c20cc2
Minor: Remove unused references to AdditionalCheckerProvider
2015-07-23 16:15:31 +03:00
Pavel V. Talanov
3227ae5577
Inject non-context dependent CallCheckers instead of getting them from context
2015-07-23 16:15:28 +03:00
Pavel V. Talanov
2885da8993
Remove AdditionalTypeChecker from context, inject into points of usage
2015-07-23 16:15:18 +03:00
Pavel V. Talanov
be98c4f96d
DataFlowUtils -> DataFlowAnalyzer and make it a component
2015-07-23 16:15:13 +03:00
Pavel V. Talanov
985336d6cc
Remove SymbolUsageValidator from contexts
2015-07-23 16:15:10 +03:00
Pavel V. Talanov
b75779b425
Inject SymbolUsageValidator into CallExpressionResolver
2015-07-23 16:15:01 +03:00
Pavel V. Talanov
a75b80c70d
Inject declarations checkers into ModifiersChecker
2015-07-23 14:43:08 +03:00
Pavel V. Talanov
f5878eddd4
Refactor ModifiersChecker to be more component-like
...
A couple of minor prettifications
2015-07-23 14:42:34 +03:00
Natalia Ukhorskaya
ee49d13d89
Add tests on smart step into lambda
2015-07-23 11:54:43 +03:00
Natalia Ukhorskaya
c8f57e007c
Fix smart step into functions with expression body
2015-07-23 11:54:42 +03:00
Natalia Ukhorskaya
6c9da53414
Fix smart step into in libraries
2015-07-23 11:54:41 +03:00
Natalia Ukhorskaya
b76b251489
SmartStepInto: render kotlin functions properly
2015-07-23 11:54:40 +03:00
Natalia Ukhorskaya
e4d5984cf0
Descriptor renderer: add option to render function without return type
2015-07-23 11:54:40 +03:00
Natalia Ukhorskaya
346039d262
Stepping: do not use MockSourcePosition in production code
2015-07-23 11:54:39 +03:00
Natalia Ukhorskaya
d8e0d77b66
Rewrite smart step into kotlin functions, do not use MethodFilter for java because it doesn't work for libraries
2015-07-23 11:54:38 +03:00
Natalia Ukhorskaya
d75c21a5a7
Smart step into function literal
2015-07-23 11:54:37 +03:00
Natalia Ukhorskaya
f7e35fab42
Minor: extract class
2015-07-23 11:54:36 +03:00
Natalia Ukhorskaya
488a4b6680
Minor: move classes
2015-07-23 11:54:36 +03:00
Natalia Ukhorskaya
4f238a44c3
Minor: extract class to separate file
2015-07-23 11:54:35 +03:00
Natalia Ukhorskaya
bf4e3bdac9
Minor: fix warnings in KotlinSmartStepIntoHandler
2015-07-23 11:54:34 +03:00
Natalia Ukhorskaya
2121f707ab
Fix completion for codeFragments on functions with expression body
2015-07-23 11:54:33 +03:00
Natalia Ukhorskaya
86c7d11750
Debugger: do not create codeFragments with context of PsiFile
2015-07-23 11:54:32 +03:00
Alexander Udalov
74ed3b9562
Provide equals/hashCode for Kotlin light classes
...
KotlinLightClassForExplicitDeclaration already had equals/hashCode, but the
other three implementations of KotlinLightClass did not; this resulted in type
mismatch errors in Java code where the signatures of a super method and the
corresponding sub method wouldn't match because types of parameters were
different
#KT-8543 Fixed
2015-07-23 03:51:50 +03:00
Alexander Udalov
4af0ed822f
Minor, improve comment about ReflectProperties usefulness
2015-07-23 03:51:49 +03:00
Alexander Udalov
83bcfd090c
Delete obsolete comment at RuntimeSourceElementFactory
...
Source elements are now used for Kotlin->Java reflection object mapping,
get/set of reflected properties, invoke of reflected functions, etc.
2015-07-23 03:51:49 +03:00
Valentin Kipyatkov
153316c313
Changes on code review
2015-07-22 21:16:15 +03:00
Valentin Kipyatkov
851057a9ef
Highlighting duplicated and redandant *-imports as unused
2015-07-22 21:16:15 +03:00
Valentin Kipyatkov
feccee2c3e
Added quickfix to enable optimize imports on the fly
2015-07-22 21:16:14 +03:00
Valentin Kipyatkov
2f438d0722
Errors in import list do not prevent from on-the-fly optimization - unresolved imports can be removed automatically
2015-07-22 21:16:14 +03:00
Valentin Kipyatkov
9c03661ce5
Rewritten UnusedImportInspection to not use buildVisitor method and to not crash on non-Kotlin files
2015-07-22 21:16:13 +03:00
Valentin Kipyatkov
edcb330281
Corrected/removed tests related to on-the-fly import optimization
2015-07-22 21:16:13 +03:00
Valentin Kipyatkov
b612e7a6b0
On-the-fly import optimization
2015-07-22 21:16:12 +03:00
Valentin Kipyatkov
8793c6fb76
Lowered intention priority
2015-07-22 21:16:12 +03:00
Valentin Kipyatkov
1324ce5928
Added quickfix on unused import
2015-07-22 21:16:11 +03:00
Valentin Kipyatkov
af192698ed
Imports from current package are redundant too
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
68dec99ad7
KT-8389 Meaningless self-import insterted on "optimize imports"
...
#KT-8389 Fixed
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
344529a09a
Fixed test
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
e5d8eecc9d
Unused import highlighting
...
#KT-5236 Fixed
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
8c02ce73a4
Corrections on code review
2015-07-22 21:06:14 +03:00
Valentin Kipyatkov
2ad981d5c9
Smart completion: don't use outer call's expected type too much
2015-07-22 21:06:14 +03:00
Valentin Kipyatkov
a5384cdc28
Smart completion works for cases when no exact type known (generic parameter substitution is not known)
2015-07-22 21:06:13 +03:00
Valentin Kipyatkov
7b0b2d38c5
KT-8560 Smart completion for lambda value and more in smart completion
...
#KT-8560 Fixed
2015-07-22 21:04:30 +03:00
Mikhail Glukhikh
f551d64ea2
Refactoring: AnnotationTarget / AnnotationRetention renamed to KotlinTarget / KotlinRetention
...
(for not clashing with the same built-in classes)
2015-07-22 19:01:25 +03:00
Mikhail Glukhikh
414c44ade5
Make retention of 'kotlin.annotation.annotation' to SOURCE. Serialize / deserialize it instead. Some fixed tests.
2015-07-22 19:00:51 +03:00
Mikhail Glukhikh
11f87e6ca1
No more java Target / Retention loaded. Render java Retention / Target. Related test changes.
2015-07-22 19:00:39 +03:00
Mikhail Glukhikh
c2480d1183
Java to Kotlin annotation retention mapping + new test + JvmLoader test adaptation
2015-07-22 19:00:26 +03:00
Mikhail Glukhikh
c3c02e49c9
Retention for 'kotlin.throws'
2015-07-22 18:58:21 +03:00
Nikolay Krasko
bab01f3822
Use partial resolve for getting annotation fqn
...
#KT-8557 In Progress
2015-07-22 12:59:49 +03:00
Nikolay Krasko
cbd4b6e204
Additional resolve for annotation on top level classes
2015-07-22 12:59:48 +03:00
Nikolay Krasko
7b85f88dfd
Minor: remove commented code
2015-07-22 12:59:47 +03:00