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