-
Notifications
You must be signed in to change notification settings - Fork 140
Net223 rider-79869 IBaker Usage inscpection suppression #2370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Please review after #2369 |
@@ -59,7 +59,10 @@ public bool SuppressUsageInspectionsOnElement(IDeclaredElement element, out Impl | |||
IsUxmlFactory(cls): | |||
flags = ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature; | |||
return true; | |||
|
|||
case IStruct @struct when unityApi.IsUnityType(@struct) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Why only struct? System also could be class
- Why are you setting implicit use for any "IsUnityType"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class is processed on the line 55
@@ -55,7 +55,9 @@ public UnityApi(UnityVersion unityVersion, UnityTypeCache unityTypeCache, UnityT | |||
type != null && myUnityTypeCache.IsUnityType(type); | |||
|
|||
public static bool IsDotsSystemType([NotNullWhen(true)] ITypeElement? typeElement) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsDotsSystemType -> IsDotsType (baker is not system)
Will be merged via TeamCity pipeline |
https://youtrack.jetbrains.com/issue/RIDER-84159/Class-derived-from-Baker-should-be-marked-as-used