12 references to ERR_AttributeNotOnAccessor
Microsoft.CodeAnalysis.CSharp (3)
Compiler\ClsComplianceChecker.cs (1)
350
this.AddDiagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, attributeLocation, attribute.AttributeClass.Name, attributeUsage.GetValidTargetsErrorArgument());
Errors\ErrorFacts.cs (1)
1325
or ErrorCode.
ERR_AttributeNotOnAccessor
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
721
diagnostics.Add(ErrorCode.
ERR_AttributeNotOnAccessor
, node.Name.Location, node.GetErrorDisplayName(), attributeUsage.GetValidTargetsErrorArgument());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\Source\ClsComplianceTests.cs (8)
3369
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"),
3372
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"),
3375
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"),
3378
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"));
3423
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"),
3426
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"),
3429
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"),
3432
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "CLSCompliant(false)").WithArguments("CLSCompliantAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter"));
Symbols\SymbolErrorTests.cs (1)
15827
Diagnostic(ErrorCode.
ERR_AttributeNotOnAccessor
, "System.Diagnostics.Conditional").WithArguments("System.Diagnostics.Conditional", "class, method")