21 references to GetErrorDisplayName
Microsoft.CodeAnalysis.CSharp (21)
Errors\MessageProvider.cs (1)
270
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, node.
GetErrorDisplayName
());
Symbols\Attributes\AttributeData.cs (4)
450
diagnostics.Add(ErrorCode.ERR_SecurityAttributeInvalidAction, syntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "", displayString);
613
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
640
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, node.
GetErrorDisplayName
());
657
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntaxLocation, nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
193
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
Symbols\Source\SourceAssemblySymbol.cs (1)
2561
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntaxLocation, (object)nodeOpt != null ? nodeOpt.
GetErrorDisplayName
() : "");
Symbols\Source\SourceMethodSymbolWithAttributes.cs (4)
553
diagnostics.Add(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, arguments.AttributeSyntaxOpt.Location, arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
662
diagnostics.Add(ErrorCode.ERR_AttributeNotOnAccessor, node.Name.Location, node.
GetErrorDisplayName
(), attributeUsage.GetValidTargetsErrorArgument());
701
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attributeArgumentSyntax.Location, node.
GetErrorDisplayName
());
794
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
Symbols\Source\SourceModuleSymbol.cs (1)
519
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, arguments.AttributeSyntaxOpt.
GetErrorDisplayName
());
Symbols\Source\SourceNamedTypeSymbol.cs (4)
1224
diagnosticsOpt.Add(ErrorCode.ERR_AttributeUsageOnNonAttributeClass, node.Name.Location, node.
GetErrorDisplayName
());
1240
diagnosticsOpt.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, node.
GetErrorDisplayName
());
1294
diagnostics.Add(ErrorCode.ERR_ConditionalOnNonAttributeClass, node.Location, node.
GetErrorDisplayName
());
1304
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attributeArgumentSyntax.Location, node.
GetErrorDisplayName
());
Symbols\Source\SourcePropertySymbolBase.cs (2)
1410
diagnostics.Add(ErrorCode.ERR_BadIndexerNameAttr, node.Name.Location, node.
GetErrorDisplayName
());
1417
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, node.ArgumentList.Arguments[0].Location, node.
GetErrorDisplayName
());
Symbols\Symbol_Attributes.cs (3)
881
diagnostics.Add(ErrorCode.ERR_DuplicateAttribute, node.Name.Location, node.
GetErrorDisplayName
());
901
diagnostics.Add(ErrorCode.ERR_AttributeOnBadSymbolType, node.Name.Location, node.
GetErrorDisplayName
(), attributeUsageInfo.GetValidTargetsErrorArgument());
916
diagnostics.Add(ErrorCode.ERR_SecurityAttributeInvalidTarget, node.Name.Location, node.
GetErrorDisplayName
());