47 references to ERR_UseDefViolationField
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
753
or ErrorCode.
ERR_UseDefViolationField
FlowAnalysis\DefiniteAssignment.cs (3)
613
ErrorCode.
ERR_UseDefViolationField
=> ErrorCode.WRN_UseDefViolationField,
1314
Diagnostics.Add(hasAssociatedProperty ? ErrorCode.ERR_UseDefViolationProperty : ErrorCode.
ERR_UseDefViolationField
, node.Location, symbolName);
1324
Diagnostics.Add(hasAssociatedProperty ? ErrorCode.ERR_UseDefViolationProperty : ErrorCode.
ERR_UseDefViolationField
, node.Location, symbolName);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
22067
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "ss.Rest").WithArguments("Rest").WithLocation(31, 34)
22106
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "ss.I3").WithArguments("I3").WithLocation(21, 34)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (21)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2069
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.X").WithArguments("X"),
FlowAnalysis\LocalFunctions.cs (3)
815
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "Local()").WithArguments("y").WithLocation(48, 9));
1005
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "Local2()").WithArguments("Event").WithLocation(55, 9));
1443
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "Local2()").WithArguments("x").WithLocation(30, 9),
FlowAnalysis\StructTests.cs (2)
54
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "t.y").WithArguments("y").WithLocation(16, 23),
57
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "t.Item2").WithArguments("Item2").WithLocation(24, 23));
Semantics\InlineArrayTests.cs (13)
11936
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 13)
11964
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(13, 13)
12061
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(13, 13),
12416
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 13)
12444
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 9)
12501
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 25)
12528
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 34)
12556
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(13, 13)
12613
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 31)
12640
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 39)
12667
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.F").WithArguments("F").WithLocation(12, 9)
12705
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.FF[0].F").WithArguments("F").WithLocation(17, 9),
12708
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "c.FF[0].F").WithArguments("F").WithLocation(23, 13)
Semantics\PrimaryConstructorTests.cs (2)
13746
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.f").WithArguments("f").WithLocation(4, 18),
13831
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.f").WithArguments("f").WithLocation(7, 54),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\NullableReferenceTypesTests.cs (16)
18535
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y12.F3").WithArguments("F3").WithLocation(108, 15),
18538
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y12.F4").WithArguments("F4").WithLocation(109, 15),
18544
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y13.F3").WithArguments("F3").WithLocation(116, 15),
18547
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y13.F4").WithArguments("F4").WithLocation(117, 15),
18586
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y22.F4").WithArguments("F4").WithLocation(220, 15),
18598
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y24.F5.F4").WithArguments("F4").WithLocation(248, 15),
19479
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "x4.F1").WithArguments("F1").WithLocation(26, 14),
19482
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "x5.F2").WithArguments("F2").WithLocation(33, 14),
61969
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y3.F3").WithArguments("F3").WithLocation(34, 19),
61978
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y4.F3").WithArguments("F3").WithLocation(42, 14),
61987
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y5.F3").WithArguments("F3").WithLocation(50, 29),
62014
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "y8.F3").WithArguments("F3").WithLocation(81, 18),
82784
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.F").WithArguments("F").WithLocation(7, 20),
82819
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.F").WithArguments("F").WithLocation(7, 13),
82863
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.F").WithArguments("F").WithLocation(14, 17),
82869
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.G").WithArguments("G").WithLocation(16, 13),
Semantics\SemanticErrorTests.cs (1)
6440
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_UseDefViolationField
, Line = 14, Column = 33 } });
Semantics\StructConstructorTests.cs (2)
3985
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "other.x").WithArguments("x").WithLocation(8, 9),
3997
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "other.x").WithArguments("x").WithLocation(8, 9),
Semantics\UnsafeTests.cs (1)
6930
Diagnostic(ErrorCode.
ERR_UseDefViolationField
, "s.y").WithArguments("y"));