Alexander Udalov
1d6b198915
Build: suppress version and JVM target warnings
...
To further reduce the output on each build.
2021-02-18 12:17:17 +01:00
Alexander Dudinsky
a3fa6c6d13
Publish artifacts needed for the kotlin-gradle-plugin in kotlin-ide repository
2021-02-18 11:51:32 +03:00
Mikhael Bogdanov
61fce74b76
Support new targets in KotlinBytecodeToolWindow
...
#KT-30222 Fixed
2021-02-17 18:43:23 +01:00
Tianyu Geng
652207dcac
FIR IDE: add AddModifierFix
2021-02-17 18:19:27 +01:00
Tianyu Geng
5793f77ece
FIR IDE: AddModifierFix -> AddModifierFixMpp
2021-02-17 18:19:27 +01:00
Tianyu Geng
66f00a2eb5
FIR IDE: move AddFunctionBodyFix to fe-independent
2021-02-17 18:14:10 +01:00
Ilya Kirillov
3e22011626
Fix compilation of HLRedundantVisibilityModifierInspection
2021-02-16 15:47:08 +01:00
Ilya Kirillov
e8f3ebdd19
FIR IDE: introduce HLRedundantVisibilityModifierInspection by extended checker
2021-02-16 15:23:18 +01:00
Ilya Kirillov
6d97841f38
FIR IDE: introduce HLLocalInspectionTest
2021-02-16 15:23:18 +01:00
Ilya Kirillov
7fb6c22889
FIR IDE: allow creating inspections by extended checkers
2021-02-16 15:23:17 +01:00
Ilya Kirillov
b9a4613e44
FIR IDE: remove getMessage from HLPresentation as it duplicates HLApplicator.getActionName
2021-02-16 15:23:17 +01:00
Ilya Kirillov
ca4a07f73f
Unify message bundles used in IDEA FIR into KotlinBundle
2021-02-16 15:23:17 +01:00
Vladimir Dolzhenko
6352814d45
Fix NPE
...
#KTIJ-898 Fixed
Original commit: 12d8e88b846f29598ca3904b49996bd6a9891ccd
2021-02-16 14:21:40 +00:00
Vladimir Dolzhenko
98ba379e07
Fixed NPE on StandaloneScriptRootsCache instantiation
...
Relates to ^EA-218043
#KTIJ-1137 Fixed
Original commit: 1d63a1b48d480b958ff44676c42b698a8ca5f64a
2021-02-16 14:21:39 +00:00
Ilya Kirillov
91581d6c1a
Move KotlinBundle to frontend-independent module
...
to use from IDEA FIR
2021-02-16 12:16:17 +01:00
Ilya Kirillov
0a72e16451
FIR: transform DiagnosticBuilder DSL to an object
...
To make diagnostics visible in symbol search in IJ
2021-02-15 22:28:13 +01:00
Mark Punzalan
706d3e5aa8
FIR IDE: Add quickfix for VAR_ANNOTATION_PARAMETER.
2021-02-15 21:07:32 +01:00
Mark Punzalan
4e44804c77
FIR IDE: Add quickfix for INAPPLICABLE_LATEINIT_MODIFIER.
...
Also changed FE1.0 checker and all related fix factories to report error
on the declaration instead of the lateinit modifier. This is consistent
with the direction of all checkers in FIR (no reporting on modifiers).
2021-02-15 19:37:14 +01:00
Simon Ogorodnik
3909e3c54c
Decouple TypeCheckerContext and TypeSystemContext
2021-02-15 18:28:58 +03:00
Andrei Klunnyi
53a7dc1126
KT-44839 [Sealed interfaces]: restore move-tests for lang-version < 15
...
This commit restores tests removed in 690fb47c .
2021-02-15 15:28:00 +00:00
Andrei Klunnyi
eb0c73fd5e
KT-44839 [Sealed interfaces]: ability to specify compiler options in tests
2021-02-15 15:28:00 +00:00
Andrei Klunnyi
c63a9afa56
KT-44839 [Sealed interfaces]: move refactoring for language level < 1.5
...
This commit restores sealed-check-logic for language level < 1.5
mistakenly removed in 690fb47c .
^KT-44839 fixed
2021-02-15 15:27:59 +00:00
Victor Petukhov
0d40022d6d
Add reporting of the warnings based on Java annotations for expanded type aliases
...
Before that, such warnings weren't reported as the corresponding errors were reported during type inference (only original types took part there)
2021-02-15 12:13:55 +03:00
Victor Petukhov
d783d99443
Use upper bound checker for typealias expansion
2021-02-15 12:13:53 +03:00
Victor Petukhov
6f64fd2fec
Propagate inference session into declaration analyzers
...
It prevents missing inference session for local declaration (local functions, local classes or objects)
^KT-44801 Fixed
2021-02-15 11:12:58 +03:00
Vladimir Dolzhenko
bf9fa4c9da
Lightweight hashCode calc for LibraryInfo
...
#EA-6040509 Fixed
2021-02-13 21:25:46 +01:00
Tianyu Geng
6882cf820e
FIR IDE: move RemoveModifierFix to ...
...
idea-frontend-independent
2021-02-12 17:56:57 +01:00
Ilya Kirillov
d42cc219bf
FIR IDE: fix collecting diagnostics for raanalysable non-toplevel declarations
2021-02-12 15:25:14 +01:00
Dmitriy Novozhilov
d696a488b5
[FIR] Report list of conflicting symbols in REDECLARATION and CONFLICTING_OVERLOADS
2021-02-12 14:50:43 +03:00
Roman Golyshev
7a4625b70b
FIR IDE: Enable passing completion test
2021-02-12 14:29:22 +03:00
Roman Golyshev
d615b6b682
FIR IDE: firSymbolProvider -> symbolProvider fix
2021-02-12 10:53:24 +00:00
Roman Golyshev
bc26230392
FIR IDE: Visit only the smallest acceptable declaration if possible
2021-02-12 10:53:23 +00:00
Roman Golyshev
c3831baba2
FIR IDE: Refactor ElementsToShortenCollector to be more value-oriented
2021-02-12 10:53:23 +00:00
Roman Golyshev
dee4f4345b
FIR IDE: Add ElementToShorten sealed classes
2021-02-12 10:53:22 +00:00
Roman Golyshev
d202b0feb2
FIR IDE: Refactor addElementToShorten functions
2021-02-12 10:53:21 +00:00
Roman Golyshev
09ba927680
FIR IDE: Decouple ElementsToShortenCollector from KtFirReferenceShortener
2021-02-12 10:53:21 +00:00
Roman Golyshev
c89380fc36
FIR IDE: Refactor ElementsToShortenCollector
2021-02-12 10:53:20 +00:00
Roman Golyshev
9a464ae9c4
FIR IDE: Merge all collectors visitors to a single visitor
2021-02-12 10:53:19 +00:00
Roman Golyshev
7478b8d189
FIR IDE: Use single TextRange as selection instead of two ints
2021-02-12 10:53:19 +00:00
Roman Golyshev
798c4d2485
FIR IDE: Create FirResolvedImports without fake PSI
2021-02-12 10:53:18 +00:00
Roman Golyshev
c0a4301179
FIR IDE: Enhance check messages in KtFirReferenceShortener
2021-02-12 10:53:17 +00:00
Roman Golyshev
8020424b93
FIR IDE: Remove fake root prefix even when the element is not shortened
2021-02-12 10:53:17 +00:00
Roman Golyshev
ee98a76600
FIR IDE: Implement simple importing of the functions
...
This is not a complete algorithm, but it already works in many cases
Disable some tests that not yet work
2021-02-12 10:53:16 +00:00
Roman Golyshev
51c59e5634
FIR IDE: Check function call before trying to drop the receiver
2021-02-12 10:53:14 +00:00
Roman Golyshev
d88fd5bd73
FIR IDE: More strictly navigate to parent KtDotQualifiedExpression
2021-02-12 10:53:14 +00:00
Roman Golyshev
e265a78a33
FIR IDE: Implement shortening and import for type qualifiers
2021-02-12 10:53:13 +00:00
Roman Golyshev
0e271b72c7
FIR IDE: Do not try to shorten type without qualifier
2021-02-12 10:53:12 +00:00
Roman Golyshev
534f4a66ad
FIR IDE: Add simple shortening for qualified calls and properties
2021-02-12 10:53:12 +00:00
Roman Golyshev
f03ca5ea57
FIR IDE: Add import in case when conflicting class comes from * import
2021-02-12 10:53:11 +00:00
Roman Golyshev
0b48416a1e
FIR IDE: Unwrap nullable types
2021-02-12 10:53:10 +00:00