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