Ilya Kirillov
108176d0b6
FIR IDE: enable passing completion tests
2021-06-03 19:39:08 +03:00
Ilya Kirillov
88129c3354
FIR IDE: implement completion inside string templates
2021-06-03 19:39:07 +03:00
Ilya Kirillov
1e1ce3067f
FIR IDE: implement basic classifier name contributor
2021-06-03 19:39:00 +03:00
Ilya Kirillov
ff369b1917
IDE/FIR IDE: fix not showed following type parameters in completion
2021-06-03 19:38:57 +03:00
Ilya Kirillov
0a6243fc67
FIR IDE: implement super qualifier completion
2021-06-03 19:38:40 +03:00
Ilya Kirillov
c81a9c9d18
FIR IDE: mute test which fails as we have no decalration name completion
2021-06-03 19:38:37 +03:00
Ilya Kirillov
0739f6974f
FIR IDE: fix completion of type arguments without closing >
2021-06-03 19:38:36 +03:00
Ilya Kirillov
e77783a0e5
FIR IDE: add packages name completion
2021-06-03 19:38:32 +03:00
Ilya Kirillov
d76ec9db50
FIR IDE: add completion for annotations
2021-06-03 19:38:30 +03:00
Ilya Kirillov
6b450e6fdf
FIR: make FirOnlyClassifiersScope/FirOnlyCallablesScope to be name aware
2021-06-03 19:38:29 +03:00
Ilya Kirillov
f7cf80b8e9
FIR IDE: render short names as for completion lookup element types
2021-06-03 19:38:26 +03:00
Ilya Kirillov
bcf7116955
FIR IDE: add type completion with dot
2021-06-03 19:38:24 +03:00
Mikhail Glukhikh
0d6bc7e7b2
FIR: report ANNOTATION_CLASS_CONSTRUCTOR_CALL diagnostic
2021-05-20 12:22:20 +03:00
Igor Yakovlev
966743c704
[FIR IDE] Enable passing completion tests
2021-05-14 23:05:49 +03:00
Ilya Kirillov
a08c267c37
FIR IDE: mute a few completion tests as they now fails because of unexpected keywords
2021-05-12 21:39:59 +03:00
Ilya Kirillov
98becc9a50
FIR IDE: remove FIR_IGNORE from passing completion test after implementing basic keyword completion
2021-05-12 21:39:58 +03:00
Ilya Kirillov
da6c5e13d5
FIR IDE: add completion support to classes and to type aliases
2021-04-21 21:16:56 +03:00
Roman Golyshev
0d7eb971ca
Fix test data
2021-04-13 11:40:24 +00:00
Roman Golyshev
e0fca9d2f6
FIR IDE: Add visibility checks to the completion
...
Visibility checks currently do not work in some cases, for example:
- public nested class of private class is seen globally
- private_for_this does not work
- some other cases I am not yet aware of
If `FirVisibilityChecker.isVisible` fix those issues, they will be fixed
automatically in the completion
2021-04-13 11:40:23 +00:00
Roman Golyshev
28d8d2d903
FIR IDE: Search for the first non-local declaration in EnclosingDeclarationContext::detect
...
Local declarations do not have a stable `ClassId`, which is used in
`declarationUtils.collectDesignation`. Local classes will always have
`outerClassId.isLocal = true`, even when it is not true (see
`org.jetbrains.kotlin.fir.builder.Context.currentClassId` for why this
happens)
2021-04-13 11:40:20 +00:00
Roman Golyshev
0d2158325a
Remove redundant ticks from test data
2021-04-13 11:40:19 +00:00
Abduqodiri Qurbonzoda
46338224e1
Remove deprecated JQuery
2021-04-08 18:43:16 +03:00
Abduqodiri Qurbonzoda
40d1849f33
Migrate compiler, idea and others to new case conversion api
2021-04-08 03:22:02 +03:00
Roman Golyshev
abeff5d5c5
Enable passing tests
2021-03-19 12:37:40 +03:00
Roman Golyshev
f641466f70
FIR IDE: Fix searching for the closest function to re-resolve
...
If the function is local, there would be errors related to its
unresolved body and receiver type
2021-03-19 12:37:39 +03:00
Mark Punzalan
1c94372b6c
FIR checker/IDE: Add checker and quickfix for VAL_WITH_SETTER.
2021-02-25 13:06:53 +01:00
Jinseong Jeon
9aaa952b39
FIR: regard implicit type for value parameter after body resolve as an error type
2021-02-19 10:17:16 +03:00
Roman Golyshev
7a4625b70b
FIR IDE: Enable passing completion test
2021-02-12 14:29:22 +03:00
Dmitriy Novozhilov
17230397e6
[Test] Update or drop some IDE tests about experimental coroutines
2021-01-28 13:19:34 +03:00
Roman Golyshev
75ed167566
FIR IDE: Use FirModuleResolveState instead of TowerDataContextProvider
...
This way we will have a single place to get information about scopes,
so in the future it would be easier to refactor it
2021-01-27 08:02:53 +00:00
Ilya Kirillov
c97c4fa99c
FIR IDE: fix finding fir in container which have conflicting duplicate by name
2021-01-15 17:23:03 +01:00
Ilya Kirillov
5c798d4e13
FIR IDE: fix test data in fir-ide module
2020-10-14 22:11:10 +03:00
Roman Golyshev
6c79040cfb
[FIR Completion] Enable passing tests
2020-10-01 13:07:20 +03:00
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
Pavel Kirpichenkov
8b28e54584
[FIR-IDE] Update tests
2020-09-03 16:44:57 +03: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
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
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