22 references to GetErrorDisplayName
Microsoft.CodeAnalysis.CSharp (22)
Errors\MessageProvider.cs (1)
263
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, ((CSharpAttributeData)attribute).GetAttributeArgumentLocation(parameterIndex), node.
GetErrorDisplayName
());
Symbols\Attributes\AttributeData.cs (4)
428
diagnostics.Add(ErrorCode.ERR_SecurityAttributeInvalidAction, syntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "", displayString);
590
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, this.GetAttributeArgumentLocation(0), nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
616
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, this.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
633
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
193
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(0), arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
Symbols\Source\SourceAssemblySymbol.cs (1)
2605
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(i), (object)nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
Symbols\Source\SourceMethodSymbolWithAttributes.cs (4)
584
diagnostics.Add(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, arguments.AttributeSyntaxOpt.Location, arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
721
diagnostics.Add(ErrorCode.ERR_AttributeNotOnAccessor, node.Name.Location, node.
GetErrorDisplayName
(), attributeUsage.GetValidTargetsErrorArgument());
759
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attribute.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
852
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(0), arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
Symbols\Source\SourceModuleSymbol.cs (1)
573
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(0), arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
Symbols\Source\SourceNamedTypeSymbol.cs (5)
1218
diagnostics.Add(ErrorCode.ERR_AttributeOnBadSymbolType, arguments.AttributeSyntaxOpt.Name.Location, arguments.AttributeSyntaxOpt.
GetErrorDisplayName
(), "struct");
1312
diagnosticsOpt.Add(ErrorCode.ERR_AttributeUsageOnNonAttributeClass, node.Name.Location, node.
GetErrorDisplayName
());
1327
diagnosticsOpt.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
1398
diagnostics.Add(ErrorCode.ERR_ConditionalOnNonAttributeClass, node.Location, node.
GetErrorDisplayName
());
1407
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attribute.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
Symbols\Source\SourcePropertySymbolBase.cs (2)
1722
diagnostics.Add(ErrorCode.ERR_BadIndexerNameAttr, node.Name.Location, node.
GetErrorDisplayName
());
1729
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, node.ArgumentList.Arguments[0].Location, node.
GetErrorDisplayName
());
Symbols\Symbol_Attributes.cs (3)
902
diagnostics.Add(ErrorCode.ERR_DuplicateAttribute, node.Name.Location, node.
GetErrorDisplayName
());
922
diagnostics.Add(ErrorCode.ERR_AttributeOnBadSymbolType, node.Name.Location, node.
GetErrorDisplayName
(), attributeUsageInfo.GetValidTargetsErrorArgument());
937
diagnostics.Add(ErrorCode.ERR_SecurityAttributeInvalidTarget, node.Name.Location, node.
GetErrorDisplayName
());