17 references to GetErrorDisplayName
Microsoft.CodeAnalysis.CSharp (17)
Errors\MessageProvider.cs (1)
261
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, ((CSharpAttributeData)attribute).GetAttributeArgumentLocation(parameterIndex), node.
GetErrorDisplayName
());
Symbols\Attributes\AttributeData.cs (4)
430
diagnostics.Add(ErrorCode.ERR_SecurityAttributeInvalidAction, syntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "", displayString);
592
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, this.GetAttributeArgumentLocation(0), nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
618
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, this.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
635
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
Symbols\Source\SourceAssemblySymbol.cs (1)
2604
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(i), (object)nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
717
diagnostics.Add(ErrorCode.ERR_AttributeNotOnAccessor, node.Name.Location, node.
GetErrorDisplayName
(), attributeUsage.GetValidTargetsErrorArgument());
755
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attribute.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
Symbols\Source\SourceNamedTypeSymbol.cs (4)
1303
diagnosticsOpt.Add(ErrorCode.ERR_AttributeUsageOnNonAttributeClass, node.Name.Location, node.
GetErrorDisplayName
());
1318
diagnosticsOpt.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
1389
diagnostics.Add(ErrorCode.ERR_ConditionalOnNonAttributeClass, node.Location, node.
GetErrorDisplayName
());
1398
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attribute.GetAttributeArgumentLocation(0), node.
GetErrorDisplayName
());
Symbols\Source\SourcePropertySymbolBase.cs (2)
1692
diagnostics.Add(ErrorCode.ERR_BadIndexerNameAttr, node.Name.Location, node.
GetErrorDisplayName
());
1699
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
());