Roman Golyshev
edb277b30a
FIR Completion: Enable passing tests
2020-09-12 11:49:36 +00:00
Roman Golyshev
dcc22d3e5d
FIR IDE: Fix completion in property setters
...
Property consists of getter and setter (both optional). The setter
have a single `value` parameter with type
Because of it, we have to make a separate 'frankenstein setter' with
original resolved header, but with the body of the fake one
It seems that getters does not have such issues
2020-09-12 11:49:35 +00:00
Roman Golyshev
7bd9c52732
FIR Completion: Fix completion in function calls (foo.bar<caret>())
...
In such expressions, `KtCallExpression` wraps `KtSimpleNameExpression`,
so `getQualifiedExpressionForSelector()` returns `null`
Also, enable tests that are fixed by this
2020-09-09 13:14:08 +03:00
Pavel Kirpichenkov
d674f519fd
[FIR-IDE] Fix completion check for generic extensions
...
Generic candidate extensions are completed in partial mode
when there is not enough information for type parameter in return position.
Partial completion mode in single candidate resolver leads to unconditionally failing candidate.
Providing noExpectedType instead of null guarantees full completion.
2020-09-07 13:38:11 +03:00
Dmitriy Novozhilov
d1fd1da56f
Rename Visibility to DescriptorVisibility
2020-09-04 11:07:42 +03:00
Pavel Kirpichenkov
8b28e54584
[FIR-IDE] Update tests
2020-09-03 16:44:57 +03:00
Florian Kistner
9775a2148a
203: Fix compilation
2020-09-02 18:48:57 +02:00
Pavel Kirpichenkov
ec072798b1
[FIR-IDE] Hack for checking single candidate resolver in tests
2020-09-02 19:15:06 +03:00
Roman Golyshev
3d5ec8aa10
FIR Completion: Add simple classifiers completion
...
- This also fixes a few test
2020-09-02 14:32:53 +03:00
Ilya Kirillov
106d8e74d4
FIR IDE: unmute passing completion tests
2020-09-02 11:16:20 +03:00
Ilya Kirillov
8714ad575f
FIR IDE: move FIR IDE completion tests to idea-fir module
2020-09-02 11:16:16 +03:00
Alexander Udalov
a9ddf02556
Replace deprecated usages of max/min with maxOrNull/minOrNull
2020-08-25 20:33:59 +02:00
Arsen Nagdalian
80d7f6b688
Ignore the "contract" keyword in code completion
2020-08-25 12:58:39 +03:00
Dmitriy Novozhilov
a764732020
Rename KotlinBuiltInsNames to StandardNames
2020-08-25 10:41:33 +03:00
Dmitriy Novozhilov
7a7fe77b8e
Move static constants with builtin names to :core:descriptors.common module
2020-08-25 10:31:36 +03:00
Nikolay Krasko
18195b3296
Rewrite SmartCompletionMultifileHandlerTest to KotlinFixtureCompletionBaseTestCase
...
Use light projects as an attempt to fight leaking project errors
2020-08-24 19:03:03 +03:00
Nikolay Krasko
e95c3e2905
Rewrite CompletionMultiFileHandlerTest to KotlinFixtureCompletionBaseTestCase
...
Use light projects as an attempt to fight leaking project errors
2020-08-24 19:03:03 +03:00
Yunir Salimzyanov
42da9e62db
Cleanup 192 patchset files (KTI-315)
2020-08-19 19:40:02 +03:00
Roman Golyshev
166b6db764
Make keyword lookup objects correctly comparable
...
- This is done to fix the problem with duplicated keyword items in
CodeWithMe plugin (see https://youtrack.jetbrains.com/issue/CWM-438 )
2020-08-12 14:41:59 +00:00
Roman Golyshev
64187b40c9
FIR Completion: Prevent immediate completion in number literals
...
- This is copied from the original KotlinCompletionContributor
2020-08-10 18:25:32 +03:00
Pavel Kirpichenkov
f431da2a66
Reapply "Introduce @FrontendInternals annotation""
...
This reverts commit 9ca4717d11 .
^KT-39643 Fixed
2020-08-10 12:22:55 +03:00
Roman Golyshev
ebf20c9706
Add multi-file tests for primitive completion
...
- This is required to test/debug correct completion from imports
2020-08-09 12:02:40 +03:00
Roman Golyshev
1b3a1a662f
Add simple completion of class-like symbols
2020-08-09 12:02:34 +03:00
Ilya Kirillov
902b42ae1d
FIR IDE: fix typo in completion testdata
...
Co-authored-by: Roman Golyshev <roman.golyshev@jetbrains.com >
2020-08-09 12:01:59 +03:00
Roman Golyshev
a2cf01162e
Fix bug with member extensions with explicit receiver
...
Co-authored-by: Ilya Kirillov <ilya.kirillov@jetbrains.com >
2020-08-09 12:01:48 +03:00
Roman Golyshev
2eb439899e
Use index to get symbols from importing scopes
2020-08-09 12:01:25 +03:00
Roman Golyshev
e7f5594ffe
Use more correct check for the constructor symbol
...
- add test for extension function receiver
2020-08-09 12:01:23 +03:00
Roman Golyshev
a3da1ea1a0
Iterate on symbols, not on scopes
...
- This way it is easier to get the correct results
2020-08-09 12:01:15 +03:00
Roman Golyshev
81f60bf252
Add test for smartcast
2020-08-09 12:01:07 +03:00
Roman Golyshev
ffb907150a
Use information about receivers in completion
...
- Found few problems during resolving a single functon; disabled
assertions and marked them with TODO
- Add simple completion tests to simplify development
2020-08-09 12:01:00 +03:00
Pavel Kirpichenkov
9ca4717d11
Revert "Introduce @FrontendInternals annotation"
...
Revert due to Mobile IDE Trunk IJ TC configuration
This reverts commits:
ffc3d8bdfc
c0e713980b
^KT-39643 In Progress
2020-08-07 12:10:03 +03:00
Pavel Kirpichenkov
ffc3d8bdfc
Introduce @FrontendInternals annotation
...
#KT-39643
2020-08-05 21:44:47 +03:00
Florian Kistner
346df07adc
203: Fix compilation for 203
2020-07-09 15:27:45 +02:00
Nikita Bobko
ef562598ea
202: Fix MultiFileJvmBasicCompletionTestGenerated
...
It was broken by 4bef803e1b5994e9ea9731acfb5095a94b1b1383 in intellij
2020-07-01 11:31:21 +03:00
Nikolay Krasko
21fa2bf98c
Switch to 201 platform
2020-06-30 19:53:18 +03:00
Mikhail Zarechenskiy
507a718632
Update tests for completion after adding DeprecatedSinceKotlin
2020-06-29 17:41:05 +03:00
Mikhail Zarechenskiy
6efa7a51c6
Fix priority for "add import" action wrt DeprecatedSinceKotlin
2020-06-29 14:25:09 +03:00
Mikhail Zarechenskiy
beca7fca30
Fix completion order & presentation wrt to DeprecatedSinceKotlin
2020-06-29 14:25:09 +03:00
Yunir Salimzyanov
3b9000cc0c
Cleanup 191 extension files (KTI-240)
2020-06-01 18:43:10 +03:00
Yunir Salimzyanov
7ab7ca5ff0
Cleanup as35 extension files (KTI-240)
2020-06-01 18:43:10 +03:00
Roman Golyshev
7fb5acc718
KT-18538 Fix inspection to detect unnecessary grand-base class qualifier
...
- Add separate option to enable/disable this inspection, as it is not
obvious if it should be always enabled or not
- This option can be used to detect all unnecessary qualifiers in
tests
- Add possibility to configure inspections via `settings.xml` in the
`AbstractMultiFileLocalInspectionTest.kt`
- ^KT-18538 Fixed
2020-06-01 08:59:37 +00:00
Roman Golyshev
2c12d26d28
KT-18538 Unwrap fake override in ShortenReferences
...
- Fake override prevents reference shortener from shortening of static
methods declared in the class bases when they are located not in
direct parent of the class (for example, in grand-
or grand-grand-parent)
- The completion uses descriptor with unwrapped fake override when it
performs the insertion. It leads to inserting the name of the base which
actually contains the static method instead of the direct parent class.
Now, when reference shortener compares unwrapped descriptors, this
problem should be fixed during insertion handling
2020-06-01 08:59:37 +00:00
Yunir Salimzyanov
8d51b027ed
Add annotation to prevent test invocation twice
...
Cause: it helps to fix double inversion of muted non-flaky tests result
(KTI-216).
2020-05-30 22:50:34 +03:00
Nikita Bobko
aa5a5c954f
Refactoring: change "// BUNCH: xxx" format
...
It wasn't obvious how to use this comment properly.
Now it should be clear
2020-05-29 20:31:12 +03:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Vladimir Dolzhenko
1cc58518c0
Compatify KotlinCodeBlockModificationListener p.2
...
Relates to #KT-38443
2020-04-25 20:57:14 +00:00
Dmitriy Dolovov
22dc837e26
IDE. Allow expect declarations in completion in shared native modules
...
Issue #KMM-218
2020-04-21 10:21:19 +07:00
Vladimir Dolzhenko
3d4c5b0091
Fix NPE in LookupCancelService$Reminiscence
...
#EA-228125 Fixed
2020-04-20 08:16:25 +00:00
Vladimir Dolzhenko
67fec903f6
Read file content under readAction in ToFromOriginalFileMapper
...
Relates to #EA-212072
2020-04-20 08:16:24 +00:00
Mikhail Zarechenskiy
cf90fe81ac
Move Sam(TypeAlias)ConstructorDescriptor to core
2020-04-15 02:06:32 +03:00