107 references to ERR_BadArgExtraRef
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
8232
Error(diagnostics, ErrorCode.
ERR_BadArgExtraRef
, analyzedArguments.Argument(i).Syntax, i + 1, refKind.ToArgumentDisplayString());
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1219
ErrorCode.
ERR_BadArgExtraRef
,
Errors\ErrorFacts.cs (1)
1214
case ErrorCode.
ERR_BadArgExtraRef
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenDeconstructTests.cs (1)
7752
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "int size").WithArguments("1", "out").WithLocation(9, 27),
CodeGen\CodeGenFunctionPointersTests.cs (5)
7356
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var l").WithArguments("1", "out").WithLocation(14, 20),
7359
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "s").WithArguments("1", "ref").WithLocation(17, 20),
7371
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var l").WithArguments("1", "out").WithLocation(30, 20),
7374
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "s").WithArguments("1", "ref").WithLocation(32, 20),
7377
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "s").WithArguments("1", "in").WithLocation(33, 19)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (1)
915
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "ref").WithLocation(6, 36),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (96)
Semantics\DeconstructionTests.cs (1)
280
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "(x, y) = new C()").WithArguments("2", "out").WithLocation(8, 19),
Semantics\DynamicTests.cs (1)
1641
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "ref"));
Semantics\InterpolationTests.cs (7)
8002
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "ref").WithLocation(5, 9));
8024
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "ref").WithLocation(5, 9));
8035
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "in").WithLocation(5, 8));
8068
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "out").WithLocation(5, 9));
9066
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, expression).WithArguments("3", "out").WithLocation(1, 12)
17026
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "s").WithArguments("3", "ref").WithLocation(5, 1)
17052
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, @"$""""").WithArguments("3", "out").WithLocation(4, 19)
Semantics\OutVarTests.cs (13)
3634
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x7").WithArguments("1", "out").WithLocation(28, 20),
18265
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x1").WithArguments("1", "out").WithLocation(6, 25)
19686
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x1").WithArguments("1", "out").WithLocation(7, 21),
19692
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var _").WithArguments("1", "out").WithLocation(9, 21),
19729
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x1").WithArguments("1", "out").WithLocation(7, 21),
19766
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "int x1").WithArguments("1", "out").WithLocation(7, 21),
20612
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x1").WithArguments("1", "out").WithLocation(9, 18),
20615
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var _").WithArguments("1", "out").WithLocation(10, 18),
20618
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "_").WithArguments("1", "out").WithLocation(11, 18),
20624
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "_").WithArguments("1", "out").WithLocation(18, 58)
20782
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x1").WithArguments("1", "out").WithLocation(8, 29),
20788
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x2").WithArguments("1", "out").WithLocation(13, 29),
20794
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "var x4").WithArguments("1", "out").WithLocation(19, 33),
Semantics\OverloadResolutionTests.cs (55)
3723
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
3726
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
3729
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
3732
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
3741
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
3744
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5137
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5140
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5143
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5146
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5149
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5152
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5155
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5158
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5173
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5176
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5179
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5182
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5257
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
5260
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
5263
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5266
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"));
5920
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
5923
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5926
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5929
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5932
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5935
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5938
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5962
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
5968
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5974
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5980
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
5983
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5989
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
5995
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "c").WithArguments("1", "ref"),
6061
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("2", "ref"),
6064
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("2", "ref"),
6070
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("2", "ref"),
6073
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("2", "ref"),
6148
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("2", "ref"),
6154
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("2", "ref"),
6157
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("2", "ref"),
6160
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("2", "ref"),
6190
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
6193
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
6199
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
6202
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
6208
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
6211
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref"),
6217
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
6220
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "l").WithArguments("1", "ref"),
9477
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "ref").WithLocation(11, 20));
9500
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "out").WithLocation(11, 20));
10329
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "in").WithLocation(17, 19));
Semantics\RawInterpolationTests_Handler.cs (7)
6219
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "ref").WithLocation(5, 9));
6253
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "ref").WithLocation(5, 9));
6270
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "in").WithLocation(5, 8));
6321
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("3", "out").WithLocation(5, 9));
7361
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, expression).WithArguments("3", "out").WithLocation(1, 12)
13428
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "s").WithArguments("3", "ref").WithLocation(5, 1));
13457
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, @"$""""""
Semantics\RecordStructTests.cs (1)
4193
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "a2").WithArguments("1", "in").WithLocation(4, 39)
Semantics\RefLocalsAndReturnsTests.cs (7)
1452
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("2", "ref").WithLocation(10, 26),
2676
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref").WithLocation(7, 19),
2682
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "out").WithLocation(8, 19),
2685
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref").WithLocation(9, 22),
2691
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("2", "out").WithLocation(10, 23),
2697
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("2", "ref").WithLocation(11, 23),
2703
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "i").WithArguments("1", "ref").WithLocation(12, 20)
Semantics\SemanticAnalyzerTests.cs (1)
512
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "local").WithArguments("1", "out").WithLocation(195, 28),
Semantics\SemanticErrorTests.cs (1)
14975
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArgExtraRef
, Line = 8, Column = 13 } });
Semantics\UnsafeTests.cs (2)
5170
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "ref"));
5190
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "x").WithArguments("1", "out"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1229
Diagnostic(ErrorCode.
ERR_BadArgExtraRef
, "s").WithArguments("1", "ref").WithLocation(18, 16));