40 references to ERR_NotAnAttributeClass
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Lookup.cs (1)
735
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)
930
case ErrorCode.
ERR_NotAnAttributeClass
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (26)
Attributes\AttributeTests.cs (22)
5994
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2),
6003
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2));
6054
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2),
6063
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2));
6740
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Description").WithArguments("InvalidWithoutSuffix.Description"),
6743
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DescriptionAttribute").WithArguments("InvalidWithSuffix.DescriptionAttribute"));
6834
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DescriptionAttribute").WithArguments("InvalidWithSuffix_And_InvalidWithoutSuffix.DescriptionAttribute"),
7629
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(5, 2),
7664
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(6, 2),
7708
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(2, 2),
7718
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Gen").WithArguments("Gen<T>").WithLocation(2, 2),
8017
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
8138
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "System").WithArguments("System"),
8159
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "X").WithArguments("X"));
8199
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "X").WithArguments("X"));
8244
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "X").WithArguments("X"));
8314
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "A").WithArguments("A").WithLocation(4, 2),
8317
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "B").WithArguments("B<U>").WithLocation(5, 2),
8832
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "InnerAlias").WithArguments("Outer<int>.Inner").WithLocation(5, 2),
8838
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Inner").WithArguments("Outer<int>.Inner").WithLocation(8, 17),
8847
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "InnerAlias").WithArguments("Outer<int>.Inner").WithLocation(5, 2),
8850
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Inner").WithArguments("Outer<int>.Inner").WithLocation(8, 17));
Attributes\AttributeTests_WellKnownAttributes.cs (3)
2446
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute"));
13324
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
).WithArguments("System.Runtime.CompilerServices.DynamicAttribute").WithLocation(1, 1));
13393
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
).WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").WithLocation(1, 1));
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
2860
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Class1").WithArguments("Class1").WithLocation(2, 12)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\LocalFunctionTests.cs (6)
7953
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(8, 33),
7956
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(11, 26)
8178
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(8, 21),
8181
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(11, 14)
8412
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(2, 2)
8513
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "TParameter").WithArguments("TParameter").WithLocation(2, 2)
Semantics\RecordTests.cs (1)
25836
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "Goo<int>").WithArguments("Goo<T>").WithLocation(2, 2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\SymbolErrorTests.cs (2)
11283
new ErrorDescription { Code = (int)ErrorCode.
ERR_NotAnAttributeClass
, Line = 1, Column = 2 });
11293
new ErrorDescription { Code = (int)ErrorCode.
ERR_NotAnAttributeClass
, Line = 1, Column = 2 });
Symbols\TypeTests.cs (2)
1926
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "alias1").WithArguments("TypeIdentifier").WithLocation(8, 6)
2251
Diagnostic(ErrorCode.
ERR_NotAnAttributeClass
, "alias1").WithArguments("System.Runtime.InteropServices").WithLocation(6, 6)