8 references to ERR_AttributeNotOnEventAccessor
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1856
case ErrorCode.
ERR_AttributeNotOnEventAccessor
:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
640
diagnostics.Add(ErrorCode.
ERR_AttributeNotOnEventAccessor
, arguments.AttributeSyntaxOpt.Name.Location, description.FullName, attributeUsage.GetValidTargetsErrorArgument());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Attributes\AttributeTests_WellKnownAttributes.cs (6)
5951
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(98, 10),
5954
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(99, 10),
7305
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter").WithLocation(21, 10));
9779
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(52, 10)
13571
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10));
13597
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10));