49 references to GetDisplayName
ILLink.CodeFixProvider (1)
RequiresHelpers.cs (1)
15var symbolDisplayName = targetSymbol.GetDisplayName();
ILLink.RoslynAnalyzer (48)
COMAnalyzer.cs (1)
59operationContext.Operation.Syntax.GetLocation(), targetMethod.GetDisplayName()));
DynamicallyAccessedMembersAnalyzer.cs (18)
123operationBlock.FindContainingSymbol(context.OwningSymbol).GetDisplayName())); 178context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName())); 182context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName())); 188context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings), location, parameter.GetDisplayName(), member.GetDisplayName())); 193context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName())); 227GetPrimaryLocation(returnOrigin.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary(), overrideMethod.GetDisplayName(), baseMethod.GetDisplayName())); 252overrideParam.GetDisplayName(), overrideMethod.GetDisplayName(), baseParam.GetDisplayName(), baseMethod.GetDisplayName())); 278overrideMethod.TypeParameters[i].GetDisplayName(), overrideMethod.GetDisplayName(), 279baseMethod.TypeParameters[i].GetDisplayName(), baseMethod.GetDisplayName())); 293overrideMethod.GetDisplayName(), baseMethod.GetDisplayName())); 340propertySymbol.GetDisplayName(), 341methodSymbol.GetDisplayName()
IMethodSymbolExtensions.cs (1)
41throw new InvalidOperationException($"Cannot get parameter at index {(int)index} of method {method.GetDisplayName()} with {method.GetParametersCount()} parameters.");
ISymbolExtensions.cs (1)
90featureSet.Add(featureType.GetDisplayName());
ITypeSymbolExtensions.cs (2)
64return symbol.ContainingNamespace?.GetDisplayName() == @namespace && symbol.MetadataName == name; 80_ => WellKnownTypeExtensions.GetWellKnownType(symbol.ContainingNamespace?.GetDisplayName() ?? "", symbol.MetadataName)
RequiresAnalyzerBase.cs (6)
120instanceCtor.GetDisplayName(), 286diagnosticContext.AddDiagnostic(RequiresDiagnosticId, member.GetDisplayName(), message, url); 294ctor.GetDisplayName())); 302entryPoint.GetDisplayName())); 308string message = MessageFormat.FormatRequiresAttributeMismatch(member.HasAttribute(RequiresAttributeName), isInterface, RequiresAttributeName, member.GetDisplayName(), baseMember.GetDisplayName());
RequiresAssemblyFilesAnalyzer.cs (2)
117diagnosticContext.AddDiagnostic(DiagnosticId.AvoidAssemblyGetFilesInSingleFile, member.GetDisplayName()); 123diagnosticContext.AddDiagnostic(DiagnosticId.AvoidAssemblyLocationInSingleFile, member.GetDisplayName());
TrimAnalysis\FeatureCheckReturnValuePattern.cs (1)
66OwningSymbol.GetDisplayName(),
TrimAnalysis\FieldValue.cs (1)
36=> new string[] { FieldSymbol.GetDisplayName() };
TrimAnalysis\GenericParameterValue.cs (1)
32=> new string[] { GenericParameter.TypeParameterSymbol.Name, GenericParameter.TypeParameterSymbol.ContainingSymbol.GetDisplayName() };
TrimAnalysis\HandleCallAction.cs (2)
202typeMapGroup.GetDisplayName()); 324private partial string GetContainingSymbolDisplayName() => _operation.FindContainingSymbol(_owningSymbol).GetDisplayName();
TrimAnalysis\MethodProxy.cs (1)
18public string GetDisplayName() => Method.GetDisplayName();
TrimAnalysis\MethodReturnValue.cs (1)
35=> new string[] { MethodSymbol.GetDisplayName() };
TrimAnalysis\ParameterProxy.cs (1)
77return ParameterSymbol!.GetDisplayName();
TrimAnalysis\ReflectionAccessAnalyzer.cs (8)
100diagnosticContext.AddDiagnostic(DiagnosticId.RequiresUnreferencedCode, member.GetDisplayName(), message, url); 154diagnosticContext.AddDiagnostic(id, _typeHierarchyType!.GetDisplayName(), 155member.GetDisplayName(), 163diagnosticContext.AddDiagnostic(id, _typeHierarchyType!.GetDisplayName(), member.GetDisplayName()); 172diagnosticContext.AddDiagnostic(DiagnosticId.DynamicallyAccessedMembersMethodAccessedViaReflection, methodSymbol.GetDisplayName()); 180diagnosticContext.AddDiagnostic(DiagnosticId.DynamicallyAccessedMembersMethodAccessedViaReflection, methodSymbol.GetDisplayName()); 219diagnosticContext.AddDiagnostic(DiagnosticId.DynamicallyAccessedMembersFieldAccessedViaReflection, fieldSymbol.GetDisplayName());
TrimAnalysis\TypeProxy.cs (1)
39public string GetDisplayName() => Type.GetDisplayName();