mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UAST: remove obsolete check on UElement in UastReferenceRegistrar
GitOrigin-RevId: 1089692c1be41a334aac7be66dac16e9616d1867
This commit is contained in:
committed by
intellij-monorepo-bot
parent
85b2934307
commit
f3c0ce3c79
@@ -62,8 +62,6 @@ internal val USAGE_PSI_ELEMENT: Key<PsiElement> = Key.create("USAGE_PSI_ELEMENT"
|
||||
internal fun getOrCreateCachedElement(element: PsiElement,
|
||||
context: ProcessingContext,
|
||||
supportedUElementTypes: List<Class<out UElement>>): UElement? {
|
||||
if (element is UElement) return element
|
||||
|
||||
if (supportedUElementTypes.size == 1) {
|
||||
val requiredType = supportedUElementTypes[0]
|
||||
if (requiredType == UInjectionHost::class.java) {
|
||||
|
||||
Reference in New Issue
Block a user