72 references to ERR_DuplicateAttribute
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
979
or ErrorCode.
ERR_DuplicateAttribute
Symbols\Symbol_Attributes.cs (1)
902
diagnostics.Add(ErrorCode.
ERR_DuplicateAttribute
, node.Name.Location, node.GetErrorDisplayName());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenFunctionPointersTests.cs (1)
9919
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "UnmanagedCallersOnly").WithArguments("UnmanagedCallersOnly").WithLocation(6, 6)
Emit\OptionalArgumentsTests.cs (4)
412
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DecimalConstant").WithArguments("DecimalConstant"),
415
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DateTimeConstant").WithArguments("DateTimeConstant"),
418
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DecimalConstant").WithArguments("DecimalConstant"),
421
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DateTimeConstant").WithArguments("DateTimeConstant"),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (43)
Attributes\AttributeTests.cs (25)
2431
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Single").WithArguments("Single").WithLocation(11, 13)
6001
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "@BaseAttribute").WithArguments("BaseAttribute").WithLocation(4, 2),
6007
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Derived").WithArguments("Derived").WithLocation(8, 6),
6010
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Base").WithArguments("Base").WithLocation(13, 6));
7498
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, @"A").WithArguments("A"));
7616
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, @"A").WithArguments("A"),
7618
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, @"B").WithArguments("B"));
7668
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A").WithArguments("A").WithLocation(18, 34),
7671
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A").WithArguments("A").WithLocation(25, 34),
7674
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A").WithArguments("A").WithLocation(7, 30),
7727
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A").WithArguments("A").WithLocation(18, 41),
7730
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A").WithArguments("A").WithLocation(25, 34),
7733
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A").WithArguments("A").WithLocation(6, 37),
7977
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Gen2<System.Collections.Generic.List<U>>").WithArguments("Gen2<>").WithLocation(10, 2),
8643
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "IndexerName").WithArguments("IndexerName").WithLocation(6, 3));
8922
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "B<int>").WithArguments("B<>").WithLocation(8, 2),
8949
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "C<int, int>").WithArguments("C<,>").WithLocation(13, 2),
8973
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "B<int>").WithArguments("B<>").WithLocation(8, 2),
8988
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "C<int, int>").WithArguments("C<,>").WithLocation(13, 2));
10592
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "C<System>").WithArguments("C<>").WithLocation(5, 2),
10604
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "C<>").WithArguments("C<>").WithLocation(6, 2));
10613
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "C<System>").WithArguments("C<>").WithLocation(5, 2),
10622
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "C<>").WithArguments("C<>").WithLocation(6, 2));
10664
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr<object>").WithArguments("Attr<>").WithLocation(8, 2),
10667
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr<int>").WithArguments("Attr<>").WithLocation(9, 2));
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
3197
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "CallerLineNumber").WithArguments("CallerLineNumber"),
Attributes\AttributeTests_WellKnownAttributes.cs (2)
3634
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DllImport").WithArguments("DllImport").WithLocation(21, 26),
5115
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "AttributeUsage").WithArguments("AttributeUsage").WithLocation(5, 6));
OverloadResolutionPriorityTests.cs (3)
2236
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "OverloadResolutionPriority").WithArguments("OverloadResolutionPriority").WithLocation(9, 6)
2343
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "OverloadResolutionPriority").WithArguments("OverloadResolutionPriority").WithLocation(8, 6)
2451
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "OverloadResolutionPriority").WithArguments("OverloadResolutionPriority").WithLocation(10, 6)
PartialEventsAndConstructorsTests.cs (11)
3454
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A1").WithArguments("A1").WithLocation(10, 10),
3457
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A2").WithArguments("A2").WithLocation(10, 22),
3460
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A1").WithArguments("A1").WithLocation(11, 6),
3463
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A2").WithArguments("A2").WithLocation(11, 19),
3469
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A1").WithArguments("A1").WithLocation(15, 6),
3475
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A1").WithArguments("A1").WithLocation(17, 23),
3478
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A1").WithArguments("A1").WithLocation(18, 23),
3484
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A3").WithArguments("A3").WithLocation(21, 31),
3487
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A3").WithArguments("A3").WithLocation(21, 31),
3490
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A1").WithArguments("A1").WithLocation(22, 6),
3493
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "A2").WithArguments("A2").WithLocation(22, 19),
Semantics\ExtensionTests.cs (1)
2651
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "My").WithArguments("My").WithLocation(3, 21)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NullableReferenceTypesTests.cs (6)
29848
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "AllowNull").WithArguments("AllowNull").WithLocation(5, 22)
31389
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "MaybeNullWhen").WithArguments("MaybeNullWhen").WithLocation(16, 53)
36954
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "NotNullWhen").WithArguments("NotNullWhen").WithLocation(10, 46)
37484
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DoesNotReturnIf").WithArguments("DoesNotReturnIf").WithLocation(5, 44),
37487
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "DoesNotReturnIf").WithArguments("DoesNotReturnIf").WithLocation(6, 44)
38308
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "NotNullWhen").WithArguments("NotNullWhen").WithLocation(11, 22)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\ExtendedPartialMethodsTests.cs (1)
1718
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "AllowNull").WithArguments("AllowNull").WithLocation(13, 28),
Symbols\ModuleInitializers\AccessibilityTests.cs (2)
175
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "ModuleInitializer").WithArguments("ModuleInitializer").WithLocation(20, 6)
287
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "ModuleInitializer").WithArguments("ModuleInitializer").WithLocation(9, 6)
Symbols\PartialPropertiesTests.cs (10)
3979
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(14, 17),
3982
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(17, 6),
3985
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(20, 10),
3988
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(23, 10));
4035
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(9, 10),
4038
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(10, 10),
4041
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(14, 17),
4044
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(17, 6),
4047
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(22, 10),
4050
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "Attr").WithArguments("Attr").WithLocation(25, 10));
Symbols\Source\ClsComplianceTests.cs (1)
3555
Diagnostic(ErrorCode.
ERR_DuplicateAttribute
, "CLSCompliant").WithArguments("CLSCompliant"));
Symbols\SymbolErrorTests.cs (2)
11216
new ErrorDescription { Code = (int)ErrorCode.
ERR_DuplicateAttribute
, Line = 3, Column = 5 },
11217
new ErrorDescription { Code = (int)ErrorCode.
ERR_DuplicateAttribute
, Line = 4, Column = 8 });