25 references to ERR_UseDefViolationOut
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
835or ErrorCode.ERR_UseDefViolationOut
FlowAnalysis\DefiniteAssignment.cs (2)
617ErrorCode.ERR_UseDefViolationOut => ErrorCode.WRN_UseDefViolationOut, 1243Diagnostics.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)
1463CreateCompilation(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2553Diagnostic(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"));
Semantics\PrimaryConstructorTests.cs (7)
13743Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").WithLocation(4, 14), 13749Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(4, 24) 13795Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(4, 14) 13828Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").WithLocation(7, 51), 13834Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(7, 59) 13900Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(4, 14) 13906Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").WithLocation(4, 14)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (1)
950Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").WithLocation(6, 43),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NullableReferenceTypesTests.cs (6)
19405Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x4").WithArguments("x4").WithLocation(26, 14), 19408Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x5").WithArguments("x5").WithLocation(32, 14), 62338Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x3").WithArguments("x3").WithLocation(25, 29), 63140Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y2").WithArguments("y2").WithLocation(28, 18), 82727Diagnostic(ErrorCode.ERR_UseDefViolationOut, "c").WithArguments("c").WithLocation(5, 9), 82754Diagnostic(ErrorCode.ERR_UseDefViolationOut, "c").WithArguments("c").WithLocation(7, 20),
Semantics\SemanticErrorTests.cs (1)
9462new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_UseDefViolationOut, Line = 15, Column = 17 } });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolErrorTests.cs (1)
12089Diagnostic(ErrorCode.ERR_UseDefViolationOut, "i").WithArguments("i").WithLocation(21, 20),