Natalia Ukhorskaya
eb8b5c0823
Remove interface for JetExpressionCodeFragment
2014-05-05 16:12:30 +04:00
Natalia Ukhorskaya
429be58685
Rename JetCodeFragmentImpl to JetCodeFragment
2014-05-05 16:12:29 +04:00
Andrey Breslav
0004948023
Per-file caching introduced in KotlinResolveCache for granular analysis
2014-04-30 20:00:20 +04:00
Andrey Breslav
a128eacf53
KotlinCacheService extracted to a separate file
2014-04-30 19:43:12 +04:00
Andrey Breslav
3be8da5607
Minor. More convenient function used
2014-04-30 16:30:17 +04:00
Andrey Breslav
db00500404
Unused code removed
2014-04-30 16:30:17 +04:00
Svetlana Isakova
69f3a64408
Added test for KT-4929
...
Smart completion should work for generic method argument
#KT-4929 Fixed
2014-04-30 13:34:35 +04:00
Svetlana Isakova
a57b4f6459
Render inferred and not inferred type parameters
...
while rendering a resolved call
2014-04-30 13:34:34 +04:00
Svetlana Isakova
aa40fd6b56
Refactoring: extracted 'renderParameter' function
2014-04-30 13:34:33 +04:00
Svetlana Isakova
02647820bc
Rewrote rendering a resolved call to kotlin
2014-04-30 13:34:33 +04:00
Svetlana Isakova
703e4d7c4e
Refactoring: separated VariableAsFunctionResolvedCall interface and implementation
2014-04-30 13:34:32 +04:00
Svetlana Isakova
90bf5ad823
Refactoring: use ResolvedCall instead of ResolvedCallWithTrace where possible
2014-04-30 13:34:32 +04:00
Svetlana Isakova
e59fa2083e
Substituted special error type for not inferred parameter
...
Rendered it as T (of red color) in the renderer HTML_FOR_NOT_INFERRED_TYPE_PARAMETERS
instead of '???' without information about type parameter
2014-04-30 13:34:32 +04:00
Svetlana Isakova
4a8255a606
Trace usage in renderer replaced with usage of argument to parameter map
2014-04-30 13:34:31 +04:00
Svetlana Isakova
928b28e080
Complete type inference for nested calls
...
inside non resolved invocation
2014-04-30 13:34:31 +04:00
Svetlana Isakova
efa00782a4
Reformat html test data for DiagnosticMessageTest
2014-04-30 13:34:30 +04:00
Andrey Breslav
a1b0b07824
Support top-down analysis starting from anonymous initializers
2014-04-29 19:12:56 +04:00
Andrey Breslav
5c23021163
Minor. Rename
2014-04-29 19:12:55 +04:00
Andrey Breslav
4bbde707c0
Minor. Unneeded getContainingJetFile() calls removed
2014-04-29 19:12:54 +04:00
Andrey Breslav
64f60b3458
Minor. getAnalysisResults(x).getBindingContext() replaced by getBindingContext(x)
2014-04-29 19:12:54 +04:00
Andrey Breslav
112109f93e
Minor. Unused method removed
2014-04-29 19:11:48 +04:00
Andrey Breslav
23205c17c0
Utilities for analyzing expressions in given context introduced
2014-04-29 19:11:48 +04:00
Andrey Breslav
a708b915db
Explicit predicate passed to JetNameValidatorImpl
2014-04-29 19:11:48 +04:00
Andrey Breslav
c6bd4a22ef
Iterators replaced with streams where appropriate
2014-04-29 19:11:47 +04:00
Andrey Breslav
19719f9747
Deprecated _tmp functions replaced by library ones
2014-04-29 19:11:47 +04:00
Nikolay Krasko
9482706b81
Fix compilation on JDK 1.6 and stay compatible with JDK 1.7
...
Move ClassCandidateListCellRenderer back to Java because JList. JList has one type parameter in 1.7 and no parameters in 1.6.
Kotlin unlike Java can't support both cases without modifications in code.
2014-04-29 14:47:33 +04:00
Steven Allen
1415ac1c04
Convert CreateFunctionFromUsageFix to Kotlin.
2014-04-29 14:47:32 +04:00
Andrey Breslav
4f1061c337
Better memory cleanup in tests
2014-04-29 13:37:02 +04:00
Natalia Ukhorskaya
68c77e6384
SmartStepInto from kotlin to java functions
2014-04-28 14:24:01 +04:00
Natalia Ukhorskaya
5a2f1ca65f
Add package directive with fileName for InspectionTests to avoid names clashing
2014-04-28 14:12:57 +04:00
Ross Hanson
ecaa7b61dd
KT-4568 Bugfix: Reformatted code to adhere to style guides. Removed unreachable cases in when expression for ConvertNegatedExpression. Fixed last element access. Changed array list to simple list.
2014-04-25 16:59:50 +04:00
Ross Hanson
a5f7ac63a8
KT-4568: Cleaned up some of the code in ConvertNegatedBooleanSequence to match the other DeMorgan intention
2014-04-25 16:59:49 +04:00
Ross Hanson
4de6960443
KT-4568 Bug Fix: Refactored the convertNegatedExpressionWithDemorgansLaw intention to better handle longer and more complex expressions. Fixed bug and added appropriate test cases as well.
2014-04-25 16:59:49 +04:00
Alexander Udalov
de273c0418
Minor, use kotlin.Pair instead of intellij
2014-04-24 18:17:50 +04:00
Lingzhang
6066d19de5
Added KT-4579 makeTypeExplicitInLambda and makeTypeImplicitInLambda intentions
2014-04-24 18:11:43 +04:00
Alexander Udalov
af421f53da
Rename FQNAMES -> FQ_NAMES
2014-04-24 16:10:11 +04:00
Zalim Bashorov
525709bced
Added MIN_JAVA_VERSION directive for intentions and fixed failed test(convertIfToAssert/inapplicableCauseSent.kt).
2014-04-24 15:37:35 +04:00
Tal Man
f61db2decc
Intention to transform an if an AssertionError throw into an assert
2014-04-24 15:36:34 +04:00
Valentin Kipyatkov
ae9f6fa5fc
Fix compilation
2014-04-23 19:27:47 +04:00
Valentin Kipyatkov
cd2cf2d987
Code completion: minor changes after code review
2014-04-23 19:23:11 +04:00
Valentin Kipyatkov
6808e82b81
Code completion: another way of import insertion on class name completion.
...
#KT-4905 Fixed
2014-04-23 19:23:11 +04:00
Valentin Kipyatkov
7905d32c14
Smart completion: static members insertion reworked to support single lambda parameter, more correct reference shortening in range
2014-04-23 19:23:11 +04:00
Valentin Kipyatkov
e8805f69bf
Code completion: template item for function taking lambda with 2 or more parameters (KT-4855) + better handling of type instantiation in smart completion
2014-04-23 19:21:28 +04:00
Natalia Ukhorskaya
0057843c08
debugger: create KotlinCodeFragment only on expression mode of evaluate expression
2014-04-23 18:52:05 +04:00
Natalia Ukhorskaya
931b628988
Editor for evaluate expression: implement highlighting and completion using ResolveElementCache
2014-04-23 18:10:02 +04:00
Natalia Ukhorskaya
2eff4e2300
Create ExpressionCodeFragment only for expression mode in evaluate expression
2014-04-23 18:10:01 +04:00
Natalia Ukhorskaya
f54aee150e
Debugger: replace one read action with lock for extract variable and for analyze file
2014-04-23 18:10:00 +04:00
Natalia Ukhorskaya
2ffcc5124e
Debugger: use extract method to get function arguments
2014-04-23 18:09:59 +04:00
Natalia Ukhorskaya
084c72f91c
Debugger tests: specify expression for evaluate expression test when test failed
2014-04-23 18:09:58 +04:00
Natalia Ukhorskaya
fa482bca80
Use lazy analysis for debug file
2014-04-23 18:09:57 +04:00