47 references to GetDisplayName
ILLink.CodeFixProvider (1)
RequiresHelpers.cs (1)
15 var symbolDisplayName = targetSymbol.GetDisplayName ();
ILLink.RoslynAnalyzer (46)
COMAnalyzer.cs (1)
55 operationContext.Operation.Syntax.GetLocation (), targetMethod.GetDisplayName ()));
DynamicallyAccessedMembersAnalyzer.cs (17)
154 context.ReportDiagnostic (Diagnostic.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName ())); 157 context.ReportDiagnostic (Diagnostic.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName ())); 162 context.ReportDiagnostic (Diagnostic.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings), location, parameter.GetDisplayName (), member.GetDisplayName ())); 165 context.ReportDiagnostic (Diagnostic.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName ())); 197 GetPrimaryLocation (returnOrigin.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary (), overrideMethod.GetDisplayName (), baseMethod.GetDisplayName ())); 220 overrideParam.GetDisplayName (), overrideMethod.GetDisplayName (), baseParam.GetDisplayName (), baseMethod.GetDisplayName ())); 244 overrideMethod.TypeParameters[i].GetDisplayName (), overrideMethod.GetDisplayName (), 245 baseMethod.TypeParameters[i].GetDisplayName (), baseMethod.GetDisplayName ())); 257 overrideMethod.GetDisplayName (), baseMethod.GetDisplayName ())); 296 propertySymbol.GetDisplayName (), 297 methodSymbol.GetDisplayName ()
IMethodSymbolExtensions.cs (1)
41 throw new InvalidOperationException ($"Cannot get parameter at index {(int) index} of method {method.GetDisplayName ()} with {method.GetParametersCount ()} parameters.");
ISymbolExtensions.cs (1)
85 featureSet.Add (featureType.GetDisplayName ());
ITypeSymbolExtensions.cs (2)
60 return symbol.ContainingNamespace?.GetDisplayName () == @namespace && symbol.MetadataName == name; 75 _ => WellKnownTypeExtensions.GetWellKnownType (symbol.ContainingNamespace?.GetDisplayName () ?? "", symbol.MetadataName)
RequiresAnalyzerBase.cs (5)
102 instanceCtor.GetDisplayName (), 230 diagnosticContext.AddDiagnostic (RequiresDiagnosticId, member.GetDisplayName (), message, url); 238 ctor.GetDisplayName ())); 244 string message = MessageFormat.FormatRequiresAttributeMismatch (member.HasAttribute (RequiresAttributeName), isInterface, RequiresAttributeName, member.GetDisplayName (), baseMember.GetDisplayName ());
RequiresAssemblyFilesAnalyzer.cs (2)
109 diagnosticContext.AddDiagnostic (DiagnosticId.AvoidAssemblyGetFilesInSingleFile, member.GetDisplayName ()); 114 diagnosticContext.AddDiagnostic (DiagnosticId.AvoidAssemblyLocationInSingleFile, member.GetDisplayName ());
RequiresUnreferencedCodeAnalyzer.cs (1)
38 baseType.GetDisplayName (),
TrimAnalysis\FeatureCheckReturnValuePattern.cs (1)
62 OwningSymbol.GetDisplayName (),
TrimAnalysis\FieldValue.cs (1)
26 => new string[] { FieldSymbol.GetDisplayName () };
TrimAnalysis\GenericParameterValue.cs (1)
32 => new string[] { GenericParameter.TypeParameterSymbol.Name, GenericParameter.TypeParameterSymbol.ContainingSymbol.GetDisplayName () };
TrimAnalysis\HandleCallAction.cs (1)
246 private partial string GetContainingSymbolDisplayName () => _operation.FindContainingSymbol (_owningSymbol).GetDisplayName ();
TrimAnalysis\MethodProxy.cs (1)
18 public string GetDisplayName () => Method.GetDisplayName ();
TrimAnalysis\MethodReturnValue.cs (1)
33 => new string[] { MethodSymbol.GetDisplayName () };
TrimAnalysis\ParameterProxy.cs (1)
55 return ParameterSymbol!.GetDisplayName ();
TrimAnalysis\ReflectionAccessAnalyzer.cs (8)
91 diagnosticContext.AddDiagnostic (DiagnosticId.RequiresUnreferencedCode, member.GetDisplayName (), message, url); 139 diagnosticContext.AddDiagnostic (id, _typeHierarchyType!.GetDisplayName (), 140 member.GetDisplayName (), 147 diagnosticContext.AddDiagnostic (id, _typeHierarchyType!.GetDisplayName (), member.GetDisplayName ()); 155 diagnosticContext.AddDiagnostic (DiagnosticId.DynamicallyAccessedMembersMethodAccessedViaReflection, methodSymbol.GetDisplayName ()); 159 diagnosticContext.AddDiagnostic (DiagnosticId.DynamicallyAccessedMembersMethodAccessedViaReflection, methodSymbol.GetDisplayName ()); 196 diagnosticContext.AddDiagnostic (DiagnosticId.DynamicallyAccessedMembersFieldAccessedViaReflection, fieldSymbol.GetDisplayName ());
TrimAnalysis\TypeProxy.cs (1)
38 public string GetDisplayName () => Type.GetDisplayName ();