25 references to ERR_UseDefViolationOut
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
773case ErrorCode.ERR_UseDefViolationOut:
FlowAnalysis\DefiniteAssignment.cs (2)
587ErrorCode.ERR_UseDefViolationOut => ErrorCode.WRN_UseDefViolationOut, 1198Diagnostics.Add(ErrorCode.ERR_UseDefViolationOut, node.Location, symbolName);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2605Diagnostic(ErrorCode.ERR_UseDefViolationOut, "o2").WithArguments("o2").WithLocation(7, 9)
CodeGen\CodeGenUsingStatementTests.cs (1)
1462CreateCompilation(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y"));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2535Diagnostic(ErrorCode.ERR_UseDefViolationOut, "p1").WithArguments("p1")
FlowAnalysis\FlowTests.cs (3)
211Diagnostic(ErrorCode.ERR_UseDefViolationOut, "a").WithArguments("a"), 1049Diagnostic(ErrorCode.ERR_UseDefViolationOut, "a").WithArguments("a"), 1058Diagnostic(ErrorCode.ERR_UseDefViolationOut, "a").WithArguments("a"));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (1)
918Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(6, 43),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\NullableReferenceTypesTests.cs (6)
19366Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x4").WithArguments("x4").WithLocation(26, 14), 19369Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x5").WithArguments("x5").WithLocation(32, 14), 59848Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x3").WithArguments("x3").WithLocation(25, 29), 60650Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y2").WithArguments("y2").WithLocation(28, 18), 79038Diagnostic(ErrorCode.ERR_UseDefViolationOut, "c").WithArguments("c").WithLocation(5, 9), 79065Diagnostic(ErrorCode.ERR_UseDefViolationOut, "c").WithArguments("c").WithLocation(7, 20),
Semantics\PrimaryConstructorTests.cs (7)
12725Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").WithLocation(4, 14), 12731Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(4, 24) 12777Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(4, 14) 12810Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").WithLocation(7, 51), 12816Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(7, 59) 12882Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(4, 14) 12888Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").WithLocation(4, 14)
Semantics\SemanticErrorTests.cs (1)
9458new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_UseDefViolationOut, Line = 15, Column = 17 } });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolErrorTests.cs (1)
11946Diagnostic(ErrorCode.ERR_UseDefViolationOut, "i").WithArguments("i").WithLocation(21, 20),