73 references to ERR_ParamUnassigned
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
760
or ErrorCode.
ERR_ParamUnassigned
FlowAnalysis\DefiniteAssignment.cs (3)
474
Diagnostics.Add(ErrorCode.
ERR_ParamUnassigned
, location, parameter.Name);
493
Diagnostics.Add(ErrorCode.
ERR_ParamUnassigned
, location, parameter.Name);
562
ErrorCode.
ERR_ParamUnassigned
=> ErrorCode.WRN_ParamUnassigned,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2391
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 123;").WithArguments("f")
FlowAnalysis\FlowTests.cs (13)
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"),
5960
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "bug").WithArguments("a").WithLocation(3, 13)
5980
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "bug").WithArguments("a").WithLocation(3, 13)
6004
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "bug").WithArguments("a").WithLocation(5, 17)
6027
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "bug").WithArguments("a").WithLocation(5, 17)
6048
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "bug").WithArguments("a").WithLocation(3, 13)
6070
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "bug").WithArguments("a").WithLocation(3, 17)
6103
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C").WithArguments("a").WithLocation(1, 7)
6123
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("i").WithLocation(3, 10));
6143
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("i").WithLocation(4, 10));
FlowAnalysis\LocalFunctions.cs (2)
1563
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "getGoo").WithArguments("output").WithLocation(6, 56));
1596
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "getGoo").WithArguments("output").WithLocation(6, 56));
Semantics\ExtensionTests.cs (6)
3683
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M2").WithArguments("i").WithLocation(5, 14),
3686
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("i").WithLocation(8, 17),
3755
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(5, 34),
3758
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(5, 47),
3764
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(7, 52),
3767
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(7, 65));
Semantics\InlineArrayTests.cs (5)
13321
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2").WithArguments("this").WithLocation(7, 12),
13330
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2Ref").WithArguments("this").WithLocation(18, 12)
13369
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2").WithArguments("this").WithLocation(7, 12)
13483
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2").WithArguments("this").WithLocation(7, 12),
13498
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2Ref").WithArguments("this").WithLocation(19, 12),
Semantics\OutVarTests.cs (1)
20717
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "b").WithArguments("x2").WithLocation(7, 13),
Semantics\PrimaryConstructorTests.cs (10)
2864
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "R").WithArguments("P2").WithLocation(2, 8)
13675
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("x").WithLocation(2, 7),
13678
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("s").WithLocation(2, 7),
13681
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("y").WithLocation(2, 7),
13744
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("x").WithLocation(2, 7),
13747
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("s").WithLocation(2, 7),
13750
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("y").WithLocation(2, 7),
13829
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("x").WithLocation(7, 7),
13832
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("s").WithLocation(7, 7),
13835
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("y").WithLocation(7, 7),
Semantics\RecordTests.cs (1)
24927
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "R").WithArguments("P2").WithLocation(2, 8),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IArgument.cs (2)
3174
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M2").WithArguments("i").WithLocation(9, 17)
3373
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "P").WithArguments("i").WithLocation(9, 12)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (1)
953
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 (24)
Semantics\LambdaDiscardParametersTests.cs (1)
163
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 2;").WithArguments("_").WithLocation(9, 17)
Semantics\LambdaTests.cs (1)
6876
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "(out ref int i) => { }").WithArguments("i").WithLocation(8, 16),
Semantics\LocalFunctionTests.cs (10)
4603
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam1").WithArguments("x").WithLocation(6, 14),
4606
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam2").WithArguments("x").WithLocation(14, 14)
4636
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("x").WithLocation(8, 13),
4639
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("x").WithLocation(17, 13)
4670
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam1").WithArguments("x").WithLocation(6, 13),
4673
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam2").WithArguments("x").WithLocation(14, 13),
4706
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 1;").WithArguments("x").WithLocation(8, 13),
4709
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 2;").WithArguments("x").WithLocation(17, 13)
4770
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "local2").WithArguments("x").WithLocation(15, 21),
4776
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "local3").WithArguments("x").WithLocation(17, 21));
Semantics\NullableReferenceTypesTests.cs (3)
28878
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("o").WithLocation(6, 25),
82779
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "G").WithArguments("c").WithLocation(5, 17),
82809
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "G").WithArguments("s").WithLocation(5, 17),
Semantics\RecordStructTests.cs (1)
1382
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "R").WithArguments("P2").WithLocation(2, 15),
Semantics\RefFieldTests.cs (1)
22071
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)
6910
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("y").WithLocation(3, 17));
6934
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return o;").WithArguments("x").WithLocation(9, 13),
6937
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return P ? null : M(out x);").WithArguments("x").WithLocation(11, 9));
16427
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "delegate(out int i) { }").WithArguments("i").WithLocation(7, 13));
16457
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "delegate(out int i) { }").WithArguments("i").WithLocation(7, 15));
Semantics\SimpleLambdaParametersWithModifiersTests.cs (1)
749
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "{ }").WithArguments("x").WithLocation(7, 26));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\SymbolErrorTests.cs (2)
12103
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return i;").WithArguments("i").WithLocation(21, 13),
12106
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("t").WithLocation(16, 18)