Dmitriy Novozhilov
a42e9c236a
[FIR] Fix PSI types of some diagnostics
2021-06-21 13:13:18 +03:00
Dmitriy Novozhilov
b218573bb3
[FIR] Add pretty toString to FirDiagnosticFactory
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
3564db4f7b
[FIR] Add assertion which checks that diagnostic is reported on proper PSI element
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
a288b8b00e
[FIR] Remove useless type parameters from classes related to diagnostics
...
Generics removed from:
- FirPsiSourceElement
- FirDiagnostic
- FirDiagnosticRenderer
- FirDiagnosticFactory
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
386f6d9331
[FIR] Safe KClass of PSI type in diagnostic factory
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
399b7aceef
[FIR] Fix reporting diagnostics in CLI which was broken in previous commit
...
Note: reporting properly works only for PSI
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
d807ac2f05
[FIR] Don't inherit FIR diagnostics from FE 1.0 diagnostics
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
3d544be655
[FIR] Add ability to specify custom position strategy for specific diagnostic
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov
9ef712c096
[FIR] Prohibit using FirDiagnosticFactory.on for creating diagnostics
...
In most cases it's better to use `FirDiagnosticReporter.reportOn`, so
`on` methods now marked as opt in
2021-06-21 13:13:16 +03:00
Andrei Klunnyi
89801a1ac7
KT-44841 Move sealed: no warning on splitting hierarchy (JPS)
...
To provide similar behavior for both Gradle and JPS projects target and
source directories are now taken into account.
Prior to this commit AbstractMoveTest.kt contained a hack allowing not
to create empty target directories. It breaks updated logic of the move
check and therefore is removed.
To commit empty target directories under 'before' to git one needs to
put something in them (git ignores dirs otherwise). Hence .gitignore-s.
^KT-44841 Fixed
2021-06-21 09:51:17 +00:00
Svyatoslav Scherbina
b961812efd
Native: fix thread state when calling ObjC completion for Kotlin suspend
2021-06-21 09:37:25 +00:00
Ilya Kirillov
87c6ab493b
FIR IDE: mute some highlighting tests
...
They may fail if they run separately
2021-06-21 04:15:37 +02:00
Ilya Kirillov
bbefc064a9
FIR IDE: fix EntityWasGarbageCollectedException for KtType
2021-06-21 03:38:25 +02:00
Ilya Kirillov
f00170eb31
FIR IDE: add missing runtime dependencies for tests
2021-06-21 02:50:11 +02:00
Ilya Kirillov
caf4eba2df
FIR IDE: do not run tests from idea-fir module in parallel
2021-06-21 02:19:23 +02:00
Ilya Kirillov
dd0a91cc15
FIR IDE: invalidate caches between lightclasses tests
2021-06-21 00:51:31 +02:00
Ilya Kirillov
c2ae434737
Remove // FIR_IDE_IGNORE directive from passing tests
2021-06-21 00:51:31 +02:00
Ilya Kirillov
822590a62b
FIR IDE: temporary disable AbstractFirLazyDeclarationResolveTest.kt
2021-06-21 00:51:31 +02:00
Ilya Kirillov
90f6d458b5
FIR IDE: fix test task name
2021-06-21 00:51:31 +02:00
Ilya Kirillov
f20dd8b673
FIR IDE: fixes after rebase
2021-06-21 00:51:30 +02:00
Ilya Kirillov
cf04be5207
FIR IDE: temp mute failing light class test
2021-06-21 00:51:30 +02:00
Ilya Kirillov
e9d1fb7c40
FIR IDE: mute completion tests failing with "Class LinkedHashMap was not found"
2021-06-21 00:51:30 +02:00
Ilya Kirillov
3e42ae03a9
Move frontend api modules out of ide modules
2021-06-20 22:07:49 +02:00
Ilya Kirillov
495a5136bb
extract frontendApiTests to separate gradle task
2021-06-20 22:07:49 +02:00
Ilya Kirillov
d5cd4955cc
FIR IDE: temporary update testdata of lazy resovle test
2021-06-20 22:07:46 +02:00
Ilya Kirillov
72b8593240
FIR IDE: do not use IJ test infrastructure in frontend-api-fir tests
2021-06-20 22:07:31 +02:00
Ilya Kirillov
606c3c136c
FIR IDE: remove dependency to IDEA from low-level-api fir impl module
2021-06-20 22:07:28 +02:00
Ilya Kirillov
0c5883cbe0
FIR IDE: do not depend on IDEA modules in frontend-api
2021-06-20 22:07:15 +02:00
Ilya Kirillov
28dbfeb845
Move KtReference interface to psi module
2021-06-20 22:07:15 +02:00
Ilya Kirillov
796baf261d
FIR IDE: move KtIconProvider out of idea-frontend-api module
2021-06-20 22:07:15 +02:00
Ilya Kirillov
75331b3448
FIR IDE: abstract low-level-api from dependency on idea
2021-06-20 22:07:11 +02:00
Ilya Kirillov
a483098303
FIR IDE: abstract DeclarationProvider
2021-06-20 22:02:17 +02:00
Ilya Kirillov
7fe2adc37e
FIR IDE: do not use helper methods unavailable in intellij-core
2021-06-20 22:02:17 +02:00
Ilya Kirillov
32919489f4
FIR IDE: separate index helper in LL API and completion
2021-06-20 22:02:17 +02:00
Jinseong Jeon
7a5d61928b
FIR/IDE: migrate FIR evaluator to idea-frontend-fir
2021-06-19 21:58:48 -07:00
Jinseong Jeon
fcdb8866d2
FIR: rewrite evaluator to use eval utils in frontend.common
2021-06-19 21:58:47 -07:00
Jinseong Jeon
477c1c8cd7
Migrate CompileTimeType and OperationsMap to frontend.common
2021-06-19 21:58:47 -07:00
Jinseong Jeon
833761ac3c
FIR IDE/UAST: add KtCompileTimeConstantProvider with evaluate API
2021-06-19 21:58:41 -07:00
Jinseong Jeon
7d157f006b
Rename CompileTimeConstantEvaluator to have Fir prefix
2021-06-19 21:35:36 -07:00
Jinseong Jeon
720104de78
Temporarily allow deprecated conversions in FIR operations map
...
Also, switch to the new copyright header
2021-06-19 21:35:35 -07:00
Jinseong Jeon
fc5d1d8cb5
FirConstKind has been renamed to ConstantValueKind ( d243319)
2021-06-19 21:35:35 -07:00
Jinseong Jeon
bb297b87bd
Avoid hard-coded operator names in CompileTimeConstantEvaluator
2021-06-19 21:35:34 -07:00
Jinseong Jeon
a969924248
FIR: generate operations map for CompileTimeConstantEvaluator
2021-06-19 21:35:34 -07:00
Jinseong Jeon
5e2525175e
Introduce fir.evaluate module with CompileTimeConstantEvaluator
2021-06-19 21:35:33 -07:00
Igor Yakovlev
ec80c21fd1
[FIR IDE] Fix lazy resolve for local declarations
2021-06-19 19:23:24 +02:00
Igor Yakovlev
c17a67ba61
[FIR IDE] Fix invalid collecting designation for local declarations
2021-06-19 19:23:24 +02:00
Igor Yakovlev
41c42a5016
[FIR IDE] Remove session scope default parameter from lazy resolve interface
2021-06-19 19:23:24 +02:00
Igor Yakovlev
52765c333d
[FIR IDE] Add test for local function lazy resolve and add phase into test data
2021-06-19 19:23:24 +02:00
Igor Yakovlev
2319a53fae
[FIR] Fixed invalid phase for values value parameter
2021-06-19 19:23:23 +02:00
Igor Yakovlev
8012429e31
[FIR IDE] Fix loop inheritance tests
2021-06-19 19:23:23 +02:00