80 references to ERR_CircConstValue
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
706
or ErrorCode.
ERR_CircConstValue
Symbols\Source\SourceFieldSymbol.cs (1)
333
diagnostics.Add(ErrorCode.
ERR_CircConstValue
, GetFirstLocation(), this);
Symbols\Source\SourceLocalSymbol.cs (1)
599
diagnostics.Add(ErrorCode.
ERR_CircConstValue
, node.GetLocation(), this);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\EmitErrorTests.cs (4)
41
Diagnostic(CSharp.ErrorCode.
ERR_CircConstValue
, "x").WithArguments("A.x"));
70
Diagnostic(CSharp.ErrorCode.
ERR_CircConstValue
, "x").WithArguments("A.x"));
102
Diagnostic(CSharp.ErrorCode.
ERR_CircConstValue
, "x").WithArguments("A.x"));
136
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("A.x"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (55)
Semantics\ConstantTests.cs (42)
1746
Diagnostic(ErrorCode.
ERR_CircConstValue
, "z").WithArguments("z").WithLocation(18, 28),
2784
Diagnostic(CSharp.ErrorCode.
ERR_CircConstValue
, "F").WithArguments("C.F").WithLocation(3, 18));
2806
Diagnostic(ErrorCode.
ERR_CircConstValue
, "B").WithArguments("C.B").WithLocation(4, 5),
2809
Diagnostic(ErrorCode.
ERR_CircConstValue
, "F").WithArguments("C.F").WithLocation(8, 5)
2897
Diagnostic(ErrorCode.
ERR_CircConstValue
, "D1").WithArguments("D.D1").WithLocation(3, 25));
2901
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A1").WithArguments("A.A1").WithLocation(3, 25));
3009
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C0.X"));
3042
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C0.X"),
3045
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C1.X"),
3048
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C2.X"),
3051
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C3.X"),
3054
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C4.X"),
3057
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C5.X"),
3060
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C6.X"),
3063
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C7.X"),
3066
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("C8.X"));
3096
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E0.X"));
3129
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E0.X").WithLocation(4, 5),
3132
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E1.X").WithLocation(9, 5),
3135
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E2.X").WithLocation(14, 5),
3138
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E3.X").WithLocation(19, 5),
3141
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E4.X").WithLocation(24, 5),
3144
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E5.X").WithLocation(29, 5),
3147
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E6.X").WithLocation(34, 5),
3150
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E7.X").WithLocation(39, 5),
3153
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("E8.X").WithLocation(44, 5));
3186
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E0.A"));
3222
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E0.A"),
3225
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E1.A"),
3228
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E2.A"),
3231
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E3.A"),
3234
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E4.A"),
3237
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E5.A"),
3240
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E6.A"),
3243
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E7.A"),
3246
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E8.A"));
3351
Diagnostic(ErrorCode.
ERR_CircConstValue
, "z").WithArguments("z").WithLocation(5, 27)
3483
Diagnostic(ErrorCode.
ERR_CircConstValue
, "F").WithArguments("F").WithLocation(8, 34)
4074
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("x").WithLocation(1, 18),
4119
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("x").WithLocation(1, 35));
4142
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("x").WithLocation(1, 23));
4217
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("x").WithLocation(1, 14));
Semantics\InterpolationTests.cs (1)
1552
Diagnostic(ErrorCode.
ERR_CircConstValue
, "a").WithArguments("C.a").WithLocation(3, 19),
Semantics\RawInterpolationTests.cs (1)
1225
Diagnostic(ErrorCode.
ERR_CircConstValue
, "a").WithArguments("C.a").WithLocation(3, 19),
Semantics\SemanticErrorTests.cs (11)
2615
Diagnostic(ErrorCode.
ERR_CircConstValue
, "a").WithArguments("x.C.a").WithLocation(7, 19));
2628
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(1, 10),
2631
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Y").WithArguments("F.Y").WithLocation(2, 13));
2644
Diagnostic(ErrorCode.
ERR_CircConstValue
, "X").WithArguments("F.X").WithLocation(2, 13));
2656
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(1, 10));
2668
Diagnostic(ErrorCode.
ERR_CircConstValue
, "B").WithArguments("E.B").WithLocation(1, 17));
2684
Diagnostic(ErrorCode.
ERR_CircConstValue
, "F").WithArguments("C.F").WithLocation(3, 23));
2704
Diagnostic(ErrorCode.
ERR_CircConstValue
, "F").WithArguments("C.F").WithLocation(3, 15));
2720
Diagnostic(ErrorCode.
ERR_CircConstValue
, "D").WithArguments("C.D").WithLocation(3, 19));
3914
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("x").WithLocation(5, 27),
3917
Diagnostic(ErrorCode.
ERR_CircConstValue
, "x").WithArguments("x").WithLocation(5, 23));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
Symbols\EnumTests.cs (9)
162
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(3, 5));
177
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(3, 5));
193
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(3, 5));
210
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(3, 5),
213
Diagnostic(ErrorCode.
ERR_CircConstValue
, "D").WithArguments("E.D").WithLocation(6, 5));
250
Diagnostic(ErrorCode.
ERR_CircConstValue
, "A").WithArguments("E.A").WithLocation(3, 5),
253
Diagnostic(ErrorCode.
ERR_CircConstValue
, "B").WithArguments("E.B").WithLocation(4, 5));
265
Diagnostic(ErrorCode.
ERR_CircConstValue
, "M0").WithArguments("E.M0").WithLocation(3, 5));
278
Diagnostic(ErrorCode.
ERR_CircConstValue
, "M0").WithArguments("E.M0").WithLocation(3, 5));
Symbols\IndexerTests.cs (8)
1721
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("A.Constant2"),
1758
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("A.Constant2"),
1795
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("A.Constant2").WithLocation(7, 18),
1844
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("A<T>.Constant2"));
1877
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("A<T>.Constant2"));
1910
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("A<T>.Constant2").WithLocation(7, 18),
1959
Diagnostic(ErrorCode.
ERR_CircConstValue
, "Constant2").WithArguments("P.Constant2"),
2008
Diagnostic(ErrorCode.
ERR_CircConstValue
, "E").WithArguments("E.E"),
Symbols\Source\EnumTests.cs (1)
824
Diagnostic(ErrorCode.
ERR_CircConstValue
, "e").WithArguments("Test.e")); // No Errors