71 references to ERR_ParamUnassigned
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
760
or ErrorCode.
ERR_ParamUnassigned
FlowAnalysis\DefiniteAssignment.cs (3)
523
Diagnostics.Add(ErrorCode.
ERR_ParamUnassigned
, location, parameter.Name);
542
Diagnostics.Add(ErrorCode.
ERR_ParamUnassigned
, location, parameter.Name);
611
ErrorCode.
ERR_ParamUnassigned
=> ErrorCode.WRN_ParamUnassigned,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2391
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 123;").WithArguments("f")
FlowAnalysis\FlowTests.cs (11)
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)
FlowAnalysis\LocalFunctions.cs (2)
1544
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "getGoo").WithArguments("output").WithLocation(6, 56));
1577
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "getGoo").WithArguments("output").WithLocation(6, 56));
Semantics\ExtensionTests.cs (6)
3522
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M2").WithArguments("i").WithLocation(5, 14),
3525
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("i").WithLocation(8, 17),
3594
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(5, 34),
3597
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(5, 47),
3603
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(7, 52),
3606
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("i").WithLocation(7, 65));
Semantics\InlineArrayTests.cs (5)
13315
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2").WithArguments("this").WithLocation(7, 12),
13324
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2Ref").WithArguments("this").WithLocation(18, 12)
13363
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2").WithArguments("this").WithLocation(7, 12)
13477
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2").WithArguments("this").WithLocation(7, 12),
13492
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "Buffer2Ref").WithArguments("this").WithLocation(19, 12),
Semantics\OutVarTests.cs (1)
20728
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)
13665
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("x").WithLocation(2, 7),
13668
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("s").WithLocation(2, 7),
13671
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("y").WithLocation(2, 7),
13734
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("x").WithLocation(2, 7),
13737
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("s").WithLocation(2, 7),
13740
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("y").WithLocation(2, 7),
13819
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("x").WithLocation(7, 7),
13822
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "C1").WithArguments("s").WithLocation(7, 7),
13825
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)
6883
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "(out ref int i) => { }").WithArguments("i").WithLocation(8, 16),
Semantics\LocalFunctionTests.cs (10)
4298
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam1").WithArguments("x").WithLocation(6, 14),
4301
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam2").WithArguments("x").WithLocation(14, 14)
4331
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("x").WithLocation(8, 13),
4334
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return;").WithArguments("x").WithLocation(17, 13)
4365
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam1").WithArguments("x").WithLocation(6, 13),
4368
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "TakeOutParam2").WithArguments("x").WithLocation(14, 13),
4401
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 1;").WithArguments("x").WithLocation(8, 13),
4404
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return 2;").WithArguments("x").WithLocation(17, 13)
4465
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "local2").WithArguments("x").WithLocation(15, 21),
4471
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "local3").WithArguments("x").WithLocation(17, 21));
Semantics\NullableReferenceTypesTests.cs (3)
28877
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("o").WithLocation(6, 25),
82757
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "G").WithArguments("c").WithLocation(5, 17),
82787
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)
6865
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("y").WithLocation(3, 17));
6889
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return o;").WithArguments("x").WithLocation(9, 13),
6892
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return P ? null : M(out x);").WithArguments("x").WithLocation(11, 9));
16382
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "delegate(out int i) { }").WithArguments("i").WithLocation(7, 13));
16412
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)
12092
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "return i;").WithArguments("i").WithLocation(21, 13),
12095
Diagnostic(ErrorCode.
ERR_ParamUnassigned
, "M").WithArguments("t").WithLocation(16, 18)