7 references to ContainsAnonymousType
Microsoft.CodeAnalysis.NetAnalyzers (7)
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.cs (7)
267
if (
ContainsAnonymousType
(toType))
451
IArrayTypeSymbol arrayType =>
ContainsAnonymousType
(arrayType.ElementType),
452
IPointerTypeSymbol pointerType =>
ContainsAnonymousType
(pointerType.PointedAtType),
453
IFunctionPointerTypeSymbol functionPointerType =>
ContainsAnonymousType
(functionPointerType.Signature.ReturnType)
454
|| functionPointerType.Signature.Parameters.Any(parameter =>
ContainsAnonymousType
(parameter.Type)),
456
|| namedType.TypeArguments.Any(
ContainsAnonymousType
)
457
|| namedType.ContainingType is { } containingType &&
ContainsAnonymousType
(containingType),