50 references to ERR_ParamUnassigned
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
699case ErrorCode.ERR_ParamUnassigned:
FlowAnalysis\DefiniteAssignment.cs (2)
512Diagnostics.Add(ErrorCode.ERR_ParamUnassigned, location, parameter.Name); 581ErrorCode.ERR_ParamUnassigned => ErrorCode.WRN_ParamUnassigned,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2373Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 123;").WithArguments("f")
FlowAnalysis\FlowTests.cs (4)
214Diagnostic(ErrorCode.ERR_ParamUnassigned, "T010").WithArguments("a"), 217Diagnostic(ErrorCode.ERR_ParamUnassigned, "T012").WithArguments("a"), 1052Diagnostic(ErrorCode.ERR_ParamUnassigned, "return F(a);").WithArguments("a"), 1055Diagnostic(ErrorCode.ERR_ParamUnassigned, "return No();").WithArguments("a"),
FlowAnalysis\LocalFunctions.cs (2)
1535Diagnostic(ErrorCode.ERR_ParamUnassigned, "getGoo").WithArguments("output").WithLocation(6, 56)); 1568Diagnostic(ErrorCode.ERR_ParamUnassigned, "getGoo").WithArguments("output").WithLocation(6, 56));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IArgument.cs (2)
3168Diagnostic(ErrorCode.ERR_ParamUnassigned, "M2").WithArguments("i").WithLocation(9, 17) 3367Diagnostic(ErrorCode.ERR_ParamUnassigned, "P").WithArguments("i").WithLocation(9, 12)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (1)
921Diagnostic(ErrorCode.ERR_ParamUnassigned, "F").WithArguments("y").WithLocation(4, 17)
IOperation\IOperationTests_ILocalFunctionStatement.cs (1)
398Diagnostic(ErrorCode.ERR_ParamUnassigned, "F").WithArguments("y").WithLocation(6, 24),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (34)
Semantics\LambdaDiscardParametersTests.cs (1)
163Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 2;").WithArguments("_").WithLocation(9, 17)
Semantics\LambdaTests.cs (1)
6853Diagnostic(ErrorCode.ERR_ParamUnassigned, "(out ref int i) => { }").WithArguments("i").WithLocation(8, 16),
Semantics\LocalFunctionTests.cs (10)
4214Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam1").WithArguments("x").WithLocation(6, 14), 4217Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam2").WithArguments("x").WithLocation(14, 14) 4247Diagnostic(ErrorCode.ERR_ParamUnassigned, "return;").WithArguments("x").WithLocation(8, 13), 4250Diagnostic(ErrorCode.ERR_ParamUnassigned, "return;").WithArguments("x").WithLocation(17, 13) 4281Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam1").WithArguments("x").WithLocation(6, 13), 4284Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam2").WithArguments("x").WithLocation(14, 13), 4317Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 1;").WithArguments("x").WithLocation(8, 13), 4320Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 2;").WithArguments("x").WithLocation(17, 13) 4381Diagnostic(ErrorCode.ERR_ParamUnassigned, "local2").WithArguments("x").WithLocation(15, 21), 4387Diagnostic(ErrorCode.ERR_ParamUnassigned, "local3").WithArguments("x").WithLocation(17, 21));
Semantics\NullableReferenceTypesTests.cs (2)
79068Diagnostic(ErrorCode.ERR_ParamUnassigned, "G").WithArguments("c").WithLocation(5, 17), 79098Diagnostic(ErrorCode.ERR_ParamUnassigned, "G").WithArguments("s").WithLocation(5, 17),
Semantics\OutVarTests.cs (1)
20717Diagnostic(ErrorCode.ERR_ParamUnassigned, "b").WithArguments("x2").WithLocation(7, 13),
Semantics\PrimaryConstructorTests.cs (10)
2755Diagnostic(ErrorCode.ERR_ParamUnassigned, "R").WithArguments("P2").WithLocation(2, 8) 12647Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("x").WithLocation(2, 7), 12650Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("s").WithLocation(2, 7), 12653Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("y").WithLocation(2, 7), 12716Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("x").WithLocation(2, 7), 12719Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("s").WithLocation(2, 7), 12722Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("y").WithLocation(2, 7), 12801Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("x").WithLocation(7, 7), 12804Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("s").WithLocation(7, 7), 12807Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("y").WithLocation(7, 7),
Semantics\RecordStructTests.cs (1)
1382Diagnostic(ErrorCode.ERR_ParamUnassigned, "R").WithArguments("P2").WithLocation(2, 15),
Semantics\RecordTests.cs (1)
24833Diagnostic(ErrorCode.ERR_ParamUnassigned, "R").WithArguments("P2").WithLocation(2, 8),
Semantics\RefFieldTests.cs (1)
21464Diagnostic(ErrorCode.ERR_ParamUnassigned, "M").WithArguments("R").WithLocation(3, 10),
Semantics\RefLocalsAndReturnsTests.cs (1)
765Diagnostic(ErrorCode.ERR_ParamUnassigned, "x").WithArguments("x").WithLocation(7, 9));
Semantics\SemanticErrorTests.cs (5)
6867Diagnostic(ErrorCode.ERR_ParamUnassigned, "M").WithArguments("y").WithLocation(3, 17)); 6891Diagnostic(ErrorCode.ERR_ParamUnassigned, "return o;").WithArguments("x").WithLocation(9, 13), 6894Diagnostic(ErrorCode.ERR_ParamUnassigned, "return P ? null : M(out x);").WithArguments("x").WithLocation(11, 9)); 16259Diagnostic(ErrorCode.ERR_ParamUnassigned, "delegate(out int i) { }").WithArguments("i") 16296Diagnostic(ErrorCode.ERR_ParamUnassigned, "delegate(out int i) { }").WithArguments("i")
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\SymbolErrorTests.cs (2)
11949Diagnostic(ErrorCode.ERR_ParamUnassigned, "return i;").WithArguments("i").WithLocation(21, 13), 11952Diagnostic(ErrorCode.ERR_ParamUnassigned, "M").WithArguments("t").WithLocation(16, 18)