Michael Bogdanov
cd78514b76
Code clean, small refactorings and tests
...
#KT-8987 Fixed
2015-10-03 10:53:22 +03:00
Michael Bogdanov
3806ad65fc
Fixed error with wrong parameter size calculation
2015-10-03 10:53:21 +03:00
Michael Bogdanov
466b20b0fc
Parameters refactoring
2015-10-03 10:53:20 +03:00
Michael Bogdanov
1900ddd020
Parametrs.java->Parameters.kt
2015-10-03 10:53:19 +03:00
Michael Bogdanov
2a19b06874
new tests
2015-10-03 10:53:18 +03:00
Michael Bogdanov
c83a5b8bd5
Proper param propagation in inline
2015-10-03 10:53:17 +03:00
Michael Bogdanov
79fce388b3
Actual conversion ParametersBuilder.java->ParametersBuilder.kt
2015-10-03 10:53:16 +03:00
Michael Bogdanov
345b21b3eb
ParametersBuilder.java->ParametersBuilder.kt
2015-10-03 10:53:15 +03:00
Michael Bogdanov
03158ed9c3
ParameterBuilder refactoring
2015-10-03 10:53:14 +03:00
Michael Bogdanov
85f7c174cd
First implementation of proper agrument order
2015-10-03 10:53:13 +03:00
Michael Bogdanov
1f2b9ce72b
Addded DefaultCallMask class and extended interface for argument generation
2015-10-03 10:53:12 +03:00
Michael Bogdanov
8104c10c5a
Actual ArgumentGenerator.java convertion
2015-10-03 10:53:10 +03:00
Michael Bogdanov
c9b5753ff3
ArgumentGenerator.java->ArgumentGenerator.kt
2015-10-03 10:53:09 +03:00
Valentin Kipyatkov
cbf5be5c08
No callable reference to generic callables
2015-10-03 10:40:54 +03:00
Valentin Kipyatkov
feb4492455
No true/false for if-condition too
2015-10-03 10:40:54 +03:00
Valentin Kipyatkov
7436355c17
Fix true and false in when entry with subject broken before
2015-10-03 10:40:54 +03:00
Valentin Kipyatkov
2e02f02d9b
More clear code
2015-10-03 10:40:53 +03:00
Valentin Kipyatkov
184d59a645
No shadowed declaration filtering for callable references (as well as imports)
2015-10-03 10:40:53 +03:00
Valentin Kipyatkov
d547ea9b57
Overload callable references are now supported - changed code accordingly
2015-10-03 10:40:53 +03:00
Valentin Kipyatkov
b23602237a
Smart completion: no "::xxx" items for members and fixed bug with constructors not appearing there
2015-10-03 10:40:53 +03:00
Valentin Kipyatkov
b0d31fc86d
Property types supported in smart completion without "::"
2015-10-03 10:40:53 +03:00
Valentin Kipyatkov
aaf507121f
Refactored code: the same code for detection of callable reference type
2015-10-03 10:40:52 +03:00
Valentin Kipyatkov
1bc132bc1a
No members&extensions after non-qualified "::" because it will be soon unsupported by the compiler
2015-10-03 10:40:52 +03:00
Valentin Kipyatkov
f58f5dd82a
Added parameters and type text (grayed) to "::xxx" items in smart completion
2015-10-03 10:40:52 +03:00
Valentin Kipyatkov
58bcb576a1
Completion: grayed parameters and type in completion of imports and callable references (arguable)
2015-10-03 10:40:52 +03:00
Valentin Kipyatkov
ee28a170d6
Auto-popup completion after "::"
2015-10-03 10:40:52 +03:00
Valentin Kipyatkov
836d116786
Checked that import popup now works for callable references
2015-10-03 10:40:52 +03:00
Valentin Kipyatkov
e562c019f9
No "{...}" in presentation for functions in completion of imports and callable references
2015-10-03 10:40:51 +03:00
Valentin Kipyatkov
08335a2ac9
Callable reference completion for non-imported callables
2015-10-03 10:40:51 +03:00
Valentin Kipyatkov
3a2bc51445
Renamed term "classifier" to "matcher"
2015-10-03 10:40:51 +03:00
Valentin Kipyatkov
c0bfca4f89
A::class and A::class.java supported in smart completion too
2015-10-03 10:40:51 +03:00
Valentin Kipyatkov
ec5d1d3a52
Support for A::class and A::class.java in basic completion (but not in smart)
2015-10-03 10:40:51 +03:00
Valentin Kipyatkov
ebf649a681
Support for callable references in smart completion
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov
3f64b25df3
Renamed tests
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov
5fddefbf4d
Corrected and restored test
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov
1e21b0201c
Renamed test folder
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov
ce05434a0c
Fixed extension functions being grayed in import statement completion
...
#KT-5627 Fixed
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov
e41732e572
No callable references to synthetic extensions (and ones for get/set)
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov
2471647952
Minor refactoring
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov
eaec9795e5
Workaround for compiler bug
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov
2760b0bdb9
Refactoring to make receiver type safe
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov
c12520da7f
Move
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov
56bb8adfd0
Refactoring to add CallType.IMPORT_DIRECTIVE and CallType.PACKAGE_DIRECTIVE
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov
d38ceb50b6
Initial support for KT-7090 Completion for callable references
...
#KT-7090 Fixed
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov
7ee65bf41a
Minor
2015-10-03 10:38:31 +03:00
Valentin Kipyatkov
72a5a68769
Dropped support for backing fields (with '$') completion
2015-10-03 10:38:31 +03:00
Alexander Udalov
7c0b3e31c7
Fix usages of callable references with empty LHS in project
2015-10-03 04:37:06 +03:00
Alexander Udalov
659826d5c3
Update reservedWords JS tests after changes to callable references
2015-10-03 04:37:05 +03:00
Alexander Udalov
012a2971ff
Quick-fix to add type to LHS of incorrect callable references
2015-10-03 04:37:05 +03:00
Alexander Udalov
661f4efc68
Forbid callable references to members and extensions with empty LHS
...
This syntax is reserved to be likely used in the future as a shorthand for
"this::foo" where the resulting expression doesn't take the receiver as a
parameter but has "this" already bound to it
2015-10-03 04:37:04 +03:00