mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
Handled MemberBindingExpressionSyntax in ThisUsageAnalyzer
This commit is contained in:
parent
fc53278c60
commit
2ccf1d0617
@ -227,6 +227,9 @@ public sealed class ThisUsageAnalyzer : DiagnosticAnalyzer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Also check for conditional access expressions (e.g., instance?.Member):
|
// Also check for conditional access expressions (e.g., instance?.Member):
|
||||||
|
if (node.Parent is MemberBindingExpressionSyntax)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (node.Parent is ConditionalAccessExpressionSyntax)
|
if (node.Parent is ConditionalAccessExpressionSyntax)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user