3 references to IsAncestorOrSelfOfType
System.Windows.Forms.Analyzers.CSharp (3)
System\Windows\Forms\CSharp\Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.cs (3)
66if (containingType is null || !IsAncestorOrSelfOfType(containingType, "System.Windows.Forms.Control")) 73|| !IsAncestorOrSelfOfType(objectType, "System.Windows.Forms.Control")) 100|| IsAncestorOrSelfOfType(type.BaseType, typeName));