10 references to ERR_AttributeNotOnEventAccessor
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1913
or ErrorCode.
ERR_AttributeNotOnEventAccessor
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
699
diagnostics.Add(ErrorCode.
ERR_AttributeNotOnEventAccessor
, arguments.AttributeSyntaxOpt.Name.Location, description.FullName, attributeUsage.GetValidTargetsErrorArgument());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_WellKnownAttributes.cs (6)
6040
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(98, 10),
6043
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(99, 10),
7391
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));
9867
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(52, 10)
13747
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10));
13773
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(7, 10));
PartialEventsAndConstructorsTests.cs (2)
3735
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(28, 10),
3741
Diagnostic(ErrorCode.
ERR_AttributeNotOnEventAccessor
, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").WithLocation(35, 14));