Igor Yakovlev
37ccab4e23
[FIR] Fixed supertypes resolve for invalid code with class without ClassId
2021-05-14 23:05:48 +03:00
Igor Yakovlev
2e7eedd3f2
[FIR IDE] Correct in-body supertype resolve of fake nodes
2021-05-14 23:05:46 +03:00
Igor Yakovlev
959ff50fa7
[FIR IDE] Collect tower contexts for local declarations
2021-05-14 23:05:45 +03:00
Igor Yakovlev
ae63ad0b6d
[FIR] Fix annotations invalid references diagnostics
2021-05-14 23:05:44 +03:00
Igor Yakovlev
261098a122
[FIR IDE] Implement on-air resolve of non-local declarations
2021-05-14 23:05:42 +03:00
Igor Yakovlev
779a06e86f
[FIR IDE] Add types, supertypes and status lazy designated transformers
2021-05-14 23:05:41 +03:00
Igor Yakovlev
95acb6121b
[FIR IDE] Fixed property and parameter creation/replacement and fixed invalid source on annotation type
2021-05-14 23:05:40 +03:00
Igor Yakovlev
38242bee75
[FIR] Fixed invalid real psi source fir fir annotation name reference
2021-05-14 23:05:38 +03:00
Igor Yakovlev
aaefe94763
[FIR IDE] Refactor low level resolve state for completion
...
Rename refactorings
Remove redundant methods and implementations
Increase code-logic locality
Removed redundant entities
2021-05-14 23:05:37 +03:00
Alexander Udalov
aa13936cb2
Move GenerateProtoBuf to separate source set with no dependencies
...
Also move GenerateProtoBufCompare to a new source set with a dependency
only on build-common.
#KTI-79 Fixed
2021-05-14 21:08:56 +02:00
Ilya Kirillov
8b722cfc47
Separate uast-idea modules into fir and fe10 implementations
2021-05-14 20:57:20 +03:00
Svyatoslav Scherbina
ba6c3c7fe0
Add workaround for KT-35001
...
Just suppress the warning.
The accident it describes is generally harmless and totally expected.
2021-05-14 20:05:30 +03:00
Svyatoslav Scherbina
48a684c024
Native: implement custom handling for LLVM diagnostics
...
Apply it when linking LLVM modules, because otherwise LLVM would
terminate the entire compiler process on link errors, which isn't ok,
e.g. when embedding the compiler into Gradle daemon (see KT-46358).
2021-05-14 20:05:29 +03:00
Alexander Udalov
ee6586fe4f
Fix accidental usage of ASM from jdk.internal
...
#KT-46402 Fixed
2021-05-14 15:23:08 +02:00
Dmitry Petrov
d1322280dd
JVM_IR KT-46578 resolve fake overrides for fields
2021-05-14 16:20:22 +03:00
Mikhail Glukhikh
a255f44d6e
FIR2IR KT-46578 add overridden properties generation
2021-05-14 16:20:20 +03:00
Dmitry Petrov
53c1de172f
IR KT-46578 add IrProperty#overriddenSymbols
2021-05-14 16:20:18 +03:00
Andrey Zinovyev
dc9d5cdf35
[FIR] Handle of special getters when there is a kotlin super type
...
Special getter names (like Collection.size()) can be used only in Java
classes with all-java super-types
Because if there is a kotlin class (not interface) in
the middle, we 'materialize' special getters to properties.
2021-05-14 15:38:09 +03:00
Dmitriy Novozhilov
7066a5b3dc
[FIR-IDE] Questionable testdata update
2021-05-14 14:30:46 +03:00
Dmitriy Novozhilov
c652a9e7b1
[FIR-IDE] Use correct session in member scope provider
2021-05-14 14:30:45 +03:00
Dmitriy Novozhilov
194252e5a1
[FIR-IDE] Properly setup moduleDataProvider for ide library session
2021-05-14 14:30:44 +03:00
Dmitriy Novozhilov
43b075d452
[FIR] Add path normalization to LibraryPathFilter
2021-05-14 14:30:43 +03:00
Dmitriy Novozhilov
cf5af0f7ea
[FIR] Add KDoc to FirModuleData
2021-05-14 14:30:42 +03:00
Dmitriy Novozhilov
f02a4a6b1f
[FIR-IDE] Add workaround hack for building raw FIR with libraries session
2021-05-14 14:30:41 +03:00
Dmitriy Novozhilov
0427066558
[FIR-IDE] Fix compilation after changes in API of FirSessionFactory
2021-05-14 14:30:40 +03:00
Dmitriy Novozhilov
af307bd55d
[FIR] Fix compilation of AbstractFirBaseDiagnosticsTest
2021-05-14 14:30:38 +03:00
Dmitriy Novozhilov
28be3a0dbc
[FIR] Replace Path with String in KotlinJvmBinaryClass.containingLibrary
...
This is needed because :core:deserialization.common.jvm uses JDK 6
2021-05-14 14:30:37 +03:00
Dmitriy Novozhilov
2abed7161b
[FIR] Get rid of FirJvmModuleInfo
2021-05-14 14:30:36 +03:00
Dmitriy Novozhilov
28e4721a89
[FIR] Check internal visibility in FirJvmModuleVisibilityChecker using module data
2021-05-14 14:30:35 +03:00
Dmitriy Novozhilov
02c58b7a8f
[FIR] Refactor deserialized dependency providers and session factories with FirModuleData
2021-05-14 14:30:33 +03:00
Dmitriy Novozhilov
24f1f7b7b2
[FIR] Unify FirLibrarySession and FirJavaModuleBasedSession into single FirCliSession
2021-05-14 14:30:32 +03:00
Dmitriy Novozhilov
f16194e60d
[FIR] Get rid of FirSession.moduleInfo
2021-05-14 14:30:31 +03:00
Dmitriy Novozhilov
57a8642f5a
[FIR] Add analyzer services to FirModuleData
2021-05-14 14:30:29 +03:00
Dmitriy Novozhilov
92d6b39ffe
[FIR] Add late initialization of session in FirModuleData
2021-05-14 14:30:28 +03:00
Dmitriy Novozhilov
5cfa8694d4
[FIR] Fix all usages of declarationSiteSession
2021-05-14 14:30:27 +03:00
Dmitriy Novozhilov
a15316de24
[FIR] Replace declarationSiteSession with moduleData
2021-05-14 14:30:26 +03:00
Dmitriy Novozhilov
fa8d8ad503
[FIR] Add cache for top-level functions and properties to AbstractFirDeserializedSymbolsProvider
2021-05-14 14:30:25 +03:00
Dmitriy Novozhilov
c523379e6a
[FIR] Move out all JVM specific deserialization logic from AbstractFirDeserializedSymbolsProvider
2021-05-14 14:30:23 +03:00
Dmitriy Novozhilov
e8c4b0e947
[FIR] Rename KotlinScopeProvider to FirKotlinScopeProvider
2021-05-14 14:30:22 +03:00
Dmitriy Novozhilov
4ad7a4a2d1
[FIR] Split KotlinDeserializedJvmSymbolsProvider to common and JVM specific parts
2021-05-14 14:30:21 +03:00
Dmitriy Novozhilov
e5b7cf23d6
Drop min functions from addToStdlib.kt
2021-05-14 14:30:20 +03:00
Dmitriy Novozhilov
d114913cd2
Replace usages of addToStdlib.firstNotNullResult with firstNotNullOfOrNull
2021-05-14 14:30:19 +03:00
Dmitriy Novozhilov
24b6c5df56
Add regression test for KT-45905
2021-05-14 14:30:14 +03:00
Anton Yalyshev
c386b10f04
Add change notes for 1.5.20-M1
2021-05-14 14:05:44 +03:00
Tianyu Geng
3c4e3e8db6
FIR: remove obsolete DataFlowVariablev.isStable
2021-05-14 13:34:33 +03:00
Andrey Zinovyev
84a7bdffe5
[FIR] Don't report MUST_BE_INITIALIZED* on unreachable properties
2021-05-14 12:41:18 +03:00
Alexander Udalov
8308f5d7d3
Create array instances of correct types in reflection
...
Based on #4168 .
#KT-44977 Fixed
Co-authored-by: Arkady Bazhanov <arkady.bazhanov@gmail.com >
2021-05-14 11:16:29 +02:00
Roman Golyshev
ec6c25ef7e
FIR IDE: Remove names duplicates in createImportTypeFix
2021-05-13 21:41:57 +03:00
Roman Golyshev
9504488acb
FIR IDE: Do not show hint from ImportQuickFix if the PSI have changed
...
Without this check, the import hint will be available even after the
quickfix is applied; this happens because the element to which the
quickfix is attached is not invalidated by the quickfix execution
Since the quickfix is still considered as available some time after
the import have been added, the hint is also generated. And the hint
stays even after the quickfix itself is discarded
`isOutdated` function prevents this
2021-05-13 21:41:56 +03:00
Alexander Udalov
8991ce53f4
Regenerate tests
2021-05-13 19:16:09 +02:00