14 references to ImplementsInterface
Microsoft.Build.TaskAuthoring.Analyzer (14)
MultiThreadableTaskDeclarationAnalyzer.cs (2)
83
if (!SharedAnalyzerHelpers.
ImplementsInterface
(type, taskType))
113
bool implementsInterface = SharedAnalyzerHelpers.
ImplementsInterface
(type, multiThreadableTaskType);
PreferTypedParameterAnalyzer.cs (3)
303
return
ImplementsInterface
(namedType, iTaskType) &&
1053
ImplementsInterface
(receiverType, iTaskItemType)))
1075
ImplementsInterface
(receiverType, iTaskItemType)))
RequiredTaskPropertyInitializationSuppressor.cs (1)
45
if (containingType is null || !SharedAnalyzerHelpers.
ImplementsInterface
(containingType, iTaskType))
SharedAnalyzerHelpers.cs (3)
123
bool isTask =
ImplementsInterface
(type, iTaskType);
172
if (
ImplementsInterface
(type, iTaskType) &&
356
if (receiverType is not null && (SymbolEqualityComparer.Default.Equals(receiverType, iTaskItemType) ||
ImplementsInterface
(receiverType, iTaskItemType)))
TaskEnvironmentConstructorInjectionAnalyzer.cs (1)
58
!SharedAnalyzerHelpers.
ImplementsInterface
(taskType, multiThreadableTaskType) ||
TransitiveCallChainAnalyzer.cs (2)
566
if (!type.IsAbstract &&
ImplementsInterface
(type, iTaskType))
583
if (!nested.IsAbstract &&
ImplementsInterface
(nested, iTaskType))
UnsupportedTaskItemTypeAnalyzer.cs (2)
57
if (!
ImplementsInterface
(namedType, iTaskType))
75
ImplementsInterface
(property.ContainingType, iTaskType) &&