15 references to IsDelegateType
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (4)
311
if (!operation.Type.
IsDelegateType
())
341
if (assignmentOperation.Target.Type.
IsDelegateType
() &&
432
(method.ReturnType.
IsDelegateType
() ||
433
method.Parameters.Any(static p => p.IsRefOrOut() && p.Type.
IsDelegateType
())))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
363
operation.Value.Type.
IsDelegateType
())
499
Debug.Assert(operation.Type.
IsDelegateType
());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
936
if (newSymbol.ContainingType.
IsDelegateType
() &&
937
symbol.ContainingType.
IsDelegateType
() &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
428
if (typeSymbol.
IsDelegateType
())
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
438
if (inferredType.
IsDelegateType
())
455
if (inferredType.
IsDelegateType
() && !inferredType.CanBeReferencedByName)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
158
return type.
IsDelegateType
();
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
115
if (!delegateType.
IsDelegateType
() ||
297
if (!convertedType.
IsDelegateType
())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1003
otherSideTypes = otherSideTypes.Where(t => !t.InferredType.
IsDelegateType
());