Jinseong Jeon
08d062dcf9
Remove unused/deprecated ReadWriteAccess util
...
The usage in KtFirCallResolver for resolving compound accessor calls is
fully rewritten recently, and this util is no longer used.
This is partial revert of cd4a08cb18
2022-01-10 19:54:25 +03:00
Ilya Kirillov
aa87524513
Migrate stub and psi builders by classfiles form IJ repository
2021-12-27 16:23:16 +03:00
Ilya Kirillov
1e9764c639
Move stub building from psi module to analysis module
2021-12-27 16:23:14 +03:00
Ilya Kirillov
cd3905e400
Fix dependencies to intellij modules after gradle dependency DSL update
2021-12-27 16:23:13 +03:00
Ilya Kirillov
3779acbc3d
Add testdata from intellij for cls stub building tests and generate tests
2021-12-27 16:23:11 +03:00
Ilya Kirillov
02d68d7b12
Introduce cls stub building tests (mostly migrated from intellij)
2021-12-27 16:23:10 +03:00
Ilya Kirillov
127dc7670e
Move IDEKotlinBinaryClassCache from intellij
2021-12-27 16:23:10 +03:00
Ilya Kirillov
b222bf88a0
Move DirectoryBasedClassFinder and DirectoryBasedDataFinder from intellij
2021-12-27 16:23:10 +03:00
Ilya Kirillov
dbb3ebb8df
Implement AnnotationLoaderForClassFileStubBuilder
2021-12-27 16:23:09 +03:00
Ilya Kirillov
b9b0bb309d
Move KotlinClsStubBuilder from intellij repository
...
This commit is just move, without any modifications
2021-12-27 16:23:09 +03:00
Ilya Kirillov
3686fc109d
Extract AnnotationLoader from AnnotationAndConstantLoader, so it can be used without FE1.0
2021-12-27 16:23:07 +03:00
Ilya Kirillov
49e9c47071
Move DynamicTypeDeserializer.id from IR module to common module
...
So, it can be used from cls-psi-stub-builder module
2021-12-27 16:23:06 +03:00
Ilya Kirillov
53346e0aa6
Merge KotlinFileStubImpl and KotlinFileStubForIde into KotlinFileStubImpl
...
as the only difference is additional fields in KotlinFileStubForIde
2021-12-27 16:23:05 +03:00
Ilya Kirillov
a9d7e5db72
Move stub builder stuff from intellij
...
This is mechanical moving without fixing compilation errors,
just packages are changes
2021-12-27 16:21:51 +03:00
Vyacheslav Gerasimov
f7a9065b75
Build: Use intellij maven repo instead of downloaded IDEA
...
#KTI-82
2021-12-16 21:48:23 +03:00
Vyacheslav Gerasimov
bc2f0936bd
Build: Rename commonDep -> commonDependency
2021-12-16 21:48:19 +03:00
Anastasiya Shadrina
4d3035e2f7
[Parser] Do not support local contextual declarations
2021-12-03 20:22:17 +03:00
Anastasiya Shadrina
7ab9b68ad5
[FE] Move type-related checks to TypeResolver
2021-12-02 20:24:41 +03:00
Anastasiya Shadrina
9896cbd2b8
[FE] Add visitContextReceiverList to KtVisitorVoid
2021-12-02 20:24:40 +03:00
Anastasiya Shadrina
f75571b97a
[FE] Minor: do not try to check stub is not null
2021-12-02 20:24:38 +03:00
Anastasiya Shadrina
910660a083
[FE] Add language feature for context receivers
2021-12-02 20:24:16 +03:00
Anastasiya Shadrina
e3f987459c
[PSI, FE] Support functional types
2021-12-02 20:24:11 +03:00
Anastasiya Shadrina
af78ec7371
[PSI, FE] Review fixes
2021-12-02 20:24:04 +03:00
Anastasiya Shadrina
875f4ea31c
[FE] Support local contextual declarations
2021-12-02 20:23:54 +03:00
Anastasiya Shadrina
1a0aab4a44
[FE] Inline classes cannot have context receivers
2021-12-02 20:23:52 +03:00
Anastasiya Shadrina
5e426d5c16
[Parser] Continue parsing if context receiver is not parsed correctly
2021-12-02 20:23:48 +03:00
Anastasiya Shadrina
08e68e1887
[PSI] Fix parse tree node
2021-12-02 20:23:42 +03:00
Anastasiya Shadrina
1bcaeabd84
[PSI, FE, PSI2IR] Use labels for referencing specific receiver
2021-12-02 20:23:40 +03:00
Anastasiya Shadrina
f4ddf66ac4
[FE] Support context receivers on classes
2021-12-02 20:23:25 +03:00
Anastasiya Shadrina
7de8380ddf
[FE] Add context receivers getter to KtCallableDeclaration interface
2021-12-02 20:23:16 +03:00
Anastasiya Shadrina
d1fdc4d787
[PSI] Introduce "context" soft keyword and parse context receivers
2021-12-02 20:23:11 +03:00
Mikhail Glukhikh
cebe25ff39
FE: don't create KtFile stubs on virtual files without ids
...
This commit is kinda revert of the change in platform 203:
https://github.com/JetBrains/intellij-community/commit/5d91f7bf2e5718d715c0d90ed1a212ea845fb2a3
#KT-49833 Fixed
2021-11-29 18:42:23 +03:00
Victor Petukhov
42805db989
[FE 1.0] Take into account import aliases during hidden member resolution
2021-11-22 10:43:43 +03:00
Roman Golyshev
79f9bd9c29
Add javadoc to KtAnnotation
2021-11-16 21:34:57 +03:00
Dmitry Gridin
5ecd2aa191
[psi] KtNamedDeclarationStub: fix useScope for private class
...
The `return` was missed, so the private class did not optimize scope
^KTIJ-20069
2021-11-08 02:30:54 +00:00
Victor Petukhov
4118f3146b
Use proper isPlaceholder check for psi type references
2021-11-01 13:03:41 +03:00
Victor Petukhov
248c9550cd
Support type annotations resolution on an underscored type argument
2021-11-01 12:25:10 +03:00
Victor Petukhov
b69fb6779f
Basic support of partially specified type arguments though a new underscore operator for type arguments
...
^KT-13394
2021-11-01 12:25:07 +03:00
Ilya Chernikov
1ce4075112
Prepare CLI reporting infrastructure for non-PSI diagnostics
2021-10-27 22:17:40 +02:00
Dmitriy Novozhilov
94664694df
[FIR] Prohibit confusing syntax inside when branches
...
^KT-48385
2021-10-21 19:39:46 +03:00
Yan Zhulanow
516dd825c2
[FIR IDE] Initial descriptor-based implementation of the Analysis API
2021-10-20 19:41:24 +03:00
Mikhail Zarechenskiy
8e0e2fe52c
Increase stub versions for the major version 1.6.0
...
^KT-49190 Fixed
2021-10-18 14:48:35 +03:00
Mikhail Zarechenskiy
472eceb13c
Mark KtDestructuringDeclarationReference as multi reference entity
...
This change fixes tests related to components:
- org.jetbrains.kotlin.idea.codeInsight.InsertImportOnPasteTestGenerated$Copy.testMultiDeclaration
- org.jetbrains.kotlin.idea.codeInsight.InsertImportOnPasteTestGenerated$Cut.testMultiDeclaration
Initially, it was marked as multi reference in https://github.com/JetBrains/intellij-community/blob/388ff78e61a7e0599c85b07766a03d956d7583da/plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/references/KtDestructuringDeclarationReference.kt#L14
But then this change was lost during commonization of this
implementation with FIR
^KTIJ-19815 Fixed
2021-10-04 18:17:18 +03:00
Ilya Kirillov
c8c1ee2b5a
Fix usage of readWriteAccess without resolve
...
^KTIJ-19777 fixed
2021-10-01 16:48:35 +02:00
Victor Petukhov
ee728b6902
Use the new type inference for top-level callable reference resolution
...
^KT-47797 Fixed
^KT-47987 Fixed
^KT-45034 Fixed
^KT-48446 Fixed
^KT-13934 Fixed
2021-09-27 16:12:27 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Roman Golyshev
57608d7eeb
Use correct elementType in KotlinBackingFieldStubImpl constructor
2021-09-13 21:58:00 +03:00
Nikolay Lunyak
6b532ccd0d
[FIR] Allow lateinit FirBackingField's
2021-09-11 22:05:41 +03:00
Nikolay Lunyak
56b2a984ce
[FIR] Quick fix FirModifierChecker
2021-09-11 22:05:35 +03:00
Nikolay Lunyak
37f832bc2f
[FIR] Add KtBackingField (see: KT-CR-4119, KT-14663)
2021-09-11 22:05:26 +03:00