48 references to ERR_NotAnAttributeClass
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Lookup.cs (1)
810
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_NotAnAttributeClass
, symbol) : null;
Emitter\Model\AttributeDataAdapter.cs (1)
46
context.Diagnostics.Add(ErrorCode.
ERR_NotAnAttributeClass
, context.Location ?? NoLocation.Singleton, this.AttributeClass);
Errors\ErrorFacts.cs (1)
992
or ErrorCode.
ERR_NotAnAttributeClass
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (31)
Attributes\AttributeTests.cs (22)
6292
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2),
6301
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2));
6352
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2),
6361
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2));
7038
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Description").WithArguments("InvalidWithoutSuffix.Description"),
7041
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DescriptionAttribute").WithArguments("InvalidWithSuffix.DescriptionAttribute"));
7132
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DescriptionAttribute").WithArguments("InvalidWithSuffix_And_InvalidWithoutSuffix.DescriptionAttribute"),
7927
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(5, 2),
7962
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(6, 2),
8006
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(2, 2),
8016
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(2, 2),
8315
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
8436
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "System").WithArguments("System"),
8457
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "X").WithArguments("X"));
8497
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "X").WithArguments("X"));
8542
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "X").WithArguments("X"));
8612
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(4, 2),
8615
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "B").WithArguments("B<U>").WithLocation(5, 2),
9132
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "InnerAlias").WithArguments("Outer<int>.Inner").WithLocation(5, 2),
9138
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Inner").WithArguments("Outer<int>.Inner").WithLocation(8, 17),
9147
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "InnerAlias").WithArguments("Outer<int>.Inner").WithLocation(5, 2),
9150
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Inner").WithArguments("Outer<int>.Inner").WithLocation(8, 17));
Attributes\AttributeTests_Embedded.cs (2)
571
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Embedded").WithArguments("Microsoft.CodeAnalysis.EmbeddedAttribute").WithLocation(3, 6),
607
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Embedded").WithArguments("Microsoft.CodeAnalysis.EmbeddedAttribute").WithLocation(3, 6),
Attributes\AttributeTests_WellKnownAttributes.cs (3)
2527
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute"));
13500
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
).WithArguments("System.Runtime.CompilerServices.DynamicAttribute").WithLocation(1, 1));
13569
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
).WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").WithLocation(1, 1));
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
2915
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Class1").WithArguments("Class1").WithLocation(2, 12)
Semantics\InlineArrayTests.cs (2)
17308
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(4, 2),
17347
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(4, 2),
Semantics\RecordTests.cs (1)
25930
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\InterpolationTests.cs (2)
18537
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(3, 2),
18573
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(3, 2),
Semantics\LocalFunctionTests.cs (6)
8037
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(8, 33),
8040
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(11, 26)
8262
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(8, 21),
8265
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(11, 14)
8496
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(2, 2)
8597
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(2, 2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\ExtensionMethodTests.cs (1)
4134
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(3, 2),
Symbols\IndexerTests.cs (1)
2963
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(3, 2),
Symbols\SymbolErrorTests.cs (2)
11426
new ErrorDescription { Code = (int)ErrorCode.
ERR_NotAnAttributeClass
, Line = 1, Column = 2 });
11436
new ErrorDescription { Code = (int)ErrorCode.
ERR_NotAnAttributeClass
, Line = 1, Column = 2 });
Symbols\TypeTests.cs (2)
1929
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "alias1").WithArguments("TypeIdentifier").WithLocation(8, 6)
2254
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "alias1").WithArguments("System.Runtime.InteropServices").WithLocation(6, 6)