Pavel V. Talanov
f673852d98
Test completion of multifile facades in java
2015-09-09 21:22:07 +03:00
Pavel V. Talanov
4106a0d736
Test for completing unimported file facade
2015-09-09 21:21:17 +03:00
Pavel V. Talanov
daaefcc7fd
Test completion of single file facades in java
2015-09-09 21:20:35 +03:00
Denis Zharkov
c449c0d080
Deprecate inlineOption in favor of crossinline modifier
2015-09-09 12:35:19 +03:00
Denis Zharkov
fc447e2d2f
Parse some builtin annotations as modifiers
...
But still resolve them as annotations.
Mostly it's needed as begin of migration path, one day they become modifiers anyway
Some tests are dropped because they supposed that `annotation` should have parameter
2015-09-08 08:53:35 +03:00
Valentin Kipyatkov
55558e2969
Use ConstraintSystem.getPartialSubstitutor to get more correct substitution
2015-09-07 19:27:07 +03:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Yan Zhulanow
add13cae82
lateinit modifier on property
2015-09-05 00:54:18 +03:00
Valentin Kipyatkov
48bccab31e
Minor changes on code review
2015-09-04 23:27:38 +03:00
Valentin Kipyatkov
fe3e9341a1
Smart completion: no instantiation of anonymous object with uninferred type arguments in code
2015-09-04 23:27:37 +03:00
Valentin Kipyatkov
40de063ebd
Smart completion for generic class instantiation to not insert explicit type arguments (for they'll probably be inferred from the expected type)
2015-09-04 23:27:37 +03:00
Valentin Kipyatkov
f470fec840
"return emptyList()" & "return emptySet()" in completion
2015-09-04 23:27:37 +03:00
Valentin Kipyatkov
6dca9a4558
Auto-popup completion remebers cancellation for parameter name/type completion only
2015-09-04 23:27:36 +03:00
Valentin Kipyatkov
997aef8fee
Smart completion to work when some of previous arguments do not match
...
#KT-8400 Fixed
2015-09-04 23:27:36 +03:00
Valentin Kipyatkov
7663793e3d
Smart completion to work when some of previous arguments have errors (+ fixed testAfterEmptyArgument broken by previous changes)
2015-09-04 23:27:36 +03:00
Valentin Kipyatkov
b11f47ec33
Removed unused parameter
2015-09-04 23:27:36 +03:00
Valentin Kipyatkov
8859fd395d
Simplified code
2015-09-04 23:27:36 +03:00
Valentin Kipyatkov
db4c163539
More correct named arguments completion
2015-09-04 23:27:35 +03:00
Mikhail Glukhikh
eab288bdd7
annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
...
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
2015-09-04 19:21:12 +03:00
Denis Zharkov
31244edec9
Deprecate deprecated in favor of Deprecated
2015-09-04 18:19:31 +03:00
Denis Zharkov
11fed1674e
Deprecate extension annotation in favor of Extension
2015-09-04 17:23:25 +03:00
Valentin Kipyatkov
14c2500261
Added a test
2015-09-03 15:55:54 +03:00
Valentin Kipyatkov
58e79037ed
Renamed tests
2015-09-03 15:55:54 +03:00
Stanislav Erokhin
5ded315cbb
Improved error reporting for candidates with wrong parameter count
2015-09-01 23:37:42 +03:00
Valentin Kipyatkov
e8dc9ede31
Implemented HiddenDeclaration annotation (doc-comment to be added!)
2015-08-29 10:54:59 +03:00
Stanislav Erokhin
4c7bafce45
Global replace JetScope to LexicalScope
2015-08-29 01:45:56 +03:00
Valentin Kipyatkov
a012fd0c7d
Minor changes after code review
2015-08-28 16:22:48 +03:00
Valentin Kipyatkov
02922f3f93
No parameter name&type completion for anonymous function
2015-08-28 16:22:48 +03:00
Valentin Kipyatkov
bd4f1c65c2
Insert type arguments by Tab too
2015-08-28 16:22:47 +03:00
Valentin Kipyatkov
9df3bb8a06
More correct sorting of parameter name&type suggestions in completion
2015-08-28 16:22:47 +03:00
Valentin Kipyatkov
7ef9a9d6d4
Better presentation
2015-08-28 16:22:47 +03:00
Valentin Kipyatkov
2de5229098
Additional item inserting lambda provided by completion when all parameters before the last are optional
2015-08-28 16:22:47 +03:00
Valentin Kipyatkov
dfe4f8e34f
Renamed parameters + slightly more correct logic
2015-08-28 16:22:46 +03:00
Valentin Kipyatkov
a4c5907a1f
KT-8898 If invocation context contains functional value compatible with function in completion list, show non-literal item
...
#KT-8898 Fixed
2015-08-28 16:22:46 +03:00
Valentin Kipyatkov
fbb37f0154
Refactored ReferenceVariantsHelper to allow specifying receiver
2015-08-28 16:22:46 +03:00
Valentin Kipyatkov
6dde70e358
Split LookupElementFactory into 3 classes
2015-08-28 16:22:45 +03:00
Valentin Kipyatkov
cff817d03b
Moved class
2015-08-28 16:22:45 +03:00
Valentin Kipyatkov
6e6e80cc2a
Moved method
2015-08-28 16:22:45 +03:00
Valentin Kipyatkov
363295f6af
Moved creation of additional items like special items for functions accepting lambda into LookupElementFactory to provide them in smart completion too
2015-08-28 16:22:44 +03:00
Valentin Kipyatkov
5b3e83d547
Deprecated method usage fix
2015-08-28 16:22:44 +03:00
Valentin Kipyatkov
66719923c2
KT-6050 Support completion for super qualifier
...
#KT-6050 Fixed
2015-08-28 16:22:44 +03:00
Valentin Kipyatkov
7458000f14
Use DescriptorToSourceUtilsIde because DescriptorToSourceUtils does not work for compiled Kotlin descriptors
2015-08-28 16:22:44 +03:00
Valentin Kipyatkov
14763a7ffa
Renames
2015-08-27 23:21:21 +03:00
Valentin Kipyatkov
9d7e6600d4
Got rid of allKotlinClasses() method
2015-08-27 13:34:33 +03:00
Stanislav Erokhin
9a435e332f
Fix InnerClassesScopeWrapper - remove properties and functions from this scope.
2015-08-27 12:01:07 +03:00
Natalia Ukhorskaya
576b4f445c
Debugger: add tests for smart casted property
2015-08-26 12:16:08 +03:00
Natalia Ukhorskaya
d46765d460
Completion in JetCodeFragment: optimize descriptors comparasion
2015-08-26 12:16:01 +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