Valentin Kipyatkov
d781626201
Smart completion: only overloads with all previous arguments matched are considered
2014-05-07 22:50:21 +04:00
Valentin Kipyatkov
717977af61
No more java lookup elements in code completion (except for one case)
2014-05-07 22:50:21 +04:00
Valentin Kipyatkov
33de0e8393
Smart completion for then and else branches of if
...
#KT-4910 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov
7aa11a4207
Smart completion: auto-cast to non-null type is not recognized for field from constructor
...
#KT-4906 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov
3c75e9ec28
Smart completion: "null" when nullable value expected
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov
32405e57e6
Smart completion: checking constructor's visibility + true and false for Boolean
...
#KT-4916 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov
9ae59db329
Smart completion: more correct Tab key handling
...
#KT-4954 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov
5f931be39b
Smart completion after == and !=
...
#KT-4912 Fixed
2014-05-07 22:50:19 +04:00
Pradyoth Kukkapalli
33fd82cf45
New Intention: Replace for loop with forEach
...
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
2014-05-07 14:01:37 +04:00
Pradyoth Kukkapalli
dbb28c571b
New Intention Action: Replace a call to forEach function with for loop.
...
Replaces an expression of form x.forEach { … } with for (a in x) { … }.
2014-05-07 14:00:50 +04:00
Alexander Udalov
68313172c2
Don't use KFunctionN types in smart completion
...
FunctionN should be enough
2014-05-07 03:30:14 +04:00
Alexander Udalov
c2594d7695
Delete "println" from production code in KotlinResolveCache
2014-05-07 03:28:48 +04:00
Alexander Udalov
42d167d17e
Add missing copyrights across the project
2014-05-05 20:43:35 +04:00
Alexander Udalov
16daeb9544
Misc refactorings in KotlinBuiltIns
...
- delete fields which were supposed to be used for caching, but mistakenly were
never used
- delete/inline unused methods and constants
- delete useless logic related to root package fragment: package fragment
providers are only supposed to find packages they're aware of
2014-05-05 20:42:35 +04:00
Natalia Ukhorskaya
13f7ca51b0
Regenerate tests
2014-05-05 16:17:37 +04:00
Natalia Ukhorskaya
020c127831
Fix typo in inspection description
2014-05-05 16:16:50 +04:00
Natalia Ukhorskaya
475d87f48b
Merge remote-tracking branch 'origin/pr/460'
2014-05-05 16:15:45 +04:00
Natalia Ukhorskaya
98532f321d
Evaluate expression: add ability to import class
2014-05-05 16:12:38 +04:00
Natalia Ukhorskaya
54cc5d1440
Make JetCodeFragment implements JavaCodeFragment
2014-05-05 16:12:35 +04:00
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
Tal Man
ab2ca539fe
Inspection to report explicit type arguments that can be removed from function calls
2014-05-01 10:56:46 -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