mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[devkit] Add UIComponent to the list of forbidden receivers of extension functions
GitOrigin-RevId: 4c27a54e8ae584e9b10cc94ac8ea24e6baef46c2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a624e1c7bc
commit
87f41252f6
+2
-1
@@ -51,7 +51,8 @@ class PublicTestExtensionFunctionInspection : LocalInspectionTool() {
|
||||
if (function.isLocal) return false
|
||||
|
||||
//optimization to avoid resolve
|
||||
if (receiverTypeRef.text != "Driver" && receiverTypeRef.text != "Finder" && receiverTypeRef.text != "IdeaFrameUI") return false
|
||||
if (receiverTypeRef.text != "Driver" && receiverTypeRef.text != "Finder" && receiverTypeRef.text != "IdeaFrameUI"
|
||||
&& receiverTypeRef.text != "UIComponent") return false
|
||||
|
||||
// Check if it's public (no visibility modifier means public in Kotlin)
|
||||
val visibilityModifier = function.visibilityModifier()?.text
|
||||
|
||||
Reference in New Issue
Block a user