209 references to ERR_NoCorrespondingArgument
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
917
ErrorCode.
ERR_NoCorrespondingArgument
,
Errors\ErrorFacts.cs (1)
1608
or ErrorCode.
ERR_NoCorrespondingArgument
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAwaitForeachTests.cs (1)
7930
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "new C()").WithArguments("__arglist", "Extensions.GetAsyncEnumerator(C, __arglist)").WithLocation(8, 33),
CodeGen\CodeGenForEachTests.cs (2)
4147
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "new C()").WithArguments("__arglist", "Extensions.GetEnumerator(C, __arglist)").WithLocation(7, 27),
4345
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c").WithArguments("x", "Extensions.GetEnumerator(in C, ref int)").WithLocation(7, 27),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (74)
Attributes\AttributeTests.cs (1)
6245
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AttributeUsage(AllowMultiple = true, AllowMultiple = false)").WithArguments("validOn", "System.AttributeUsageAttribute.AttributeUsageAttribute(System.AttributeTargets)").WithLocation(3, 2)
Attributes\AttributeTests_CallerInfoAttributes.cs (5)
210
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "EndInvoke").WithArguments("s1", "Program.D.EndInvoke(ref string, System.IAsyncResult)").WithLocation(38, 11)
269
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "EndInvoke").WithArguments("s2", "Program.D.EndInvoke(ref string, System.IAsyncResult)").WithLocation(38, 11));
325
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "EndInvoke").WithArguments("s2", "Program.D.EndInvoke(ref string, System.IAsyncResult)").WithLocation(39, 11));
986
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Log").WithArguments("arg", "Program.Log(int, string)").WithLocation(9, 9),
1018
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Log").WithArguments("arg", "Program.Log(int, string)").WithLocation(9, 9),
Attributes\AttributeTests_Security.cs (2)
189
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "PrincipalPermission()").WithArguments("action", "System.Security.Permissions.PrincipalPermissionAttribute.PrincipalPermissionAttribute(System.Security.Permissions.SecurityAction)").WithLocation(9, 6),
242
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "MySecurityAttribute()").WithArguments("action", "MySecurityAttribute.MySecurityAttribute(System.Security.Permissions.SecurityAction)").WithLocation(15, 6),
Attributes\AttributeTests_Tuples.cs (1)
845
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "TupleElementNames").WithArguments("transformNames", "System.Runtime.CompilerServices.TupleElementNamesAttribute.TupleElementNamesAttribute(string[])").WithLocation(28, 33),
Attributes\AttributeTests_WellKnownAttributes.cs (6)
572
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").WithLocation(6, 19)
581
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").WithLocation(6, 19)
1443
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(15, 41));
1505
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(16, 30),
1508
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Goo").WithArguments("y", "Goo.Goo(int)").WithLocation(16, 38));
5602
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, @"ComCompatibleVersionAttribute(""str"", 0)").WithArguments("build", "System.Runtime.InteropServices.ComCompatibleVersionAttribute.ComCompatibleVersionAttribute(int, int, int, int)").WithLocation(4, 12));
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
2385
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "F").WithArguments("a", "B.F(int[])").WithLocation(7, 11),
2389
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c[1]").WithArguments("a", "B.this[int, int[]]").WithLocation(10, 17));
Diagnostics\OperationAnalyzerTests.cs (1)
1738
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Goo").WithArguments("a", "A.Goo(params int)").WithLocation(8, 9))
PartialEventsAndConstructorsTests.cs (2)
1434
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("x", "B.B(int)").WithLocation(8, 13),
3154
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C2").WithArguments("x", "C2.C2(int)").WithLocation(2, 14),
RefReadonlyParameterTests.cs (2)
4808
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M1").WithArguments("d", "C.M1(ref readonly decimal)").WithLocation(9, 9));
4872
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("d", "C.M(ref readonly System.DateTime)").WithLocation(8, 9));
Semantics\CollectionExpressionTests.cs (9)
3340
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "F").WithArguments("b", "Program.F<T>(T, T)").WithLocation(9, 17),
3343
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "F").WithArguments("b", "Program.F<T>(T, T)").WithLocation(10, 17));
15137
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("x", "C.M(string, System.Collections.Generic.IReadOnlyList<D>)").WithLocation(8, 11));
15162
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("x", "C.M(string, System.Collections.Generic.List<D>)").WithLocation(8, 11));
39701
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x").WithArguments("x", "MyCollection<int?>.Add(int?, int)").WithLocation(20, 40));
39830
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x").WithArguments("index", $"MyCollection<int>.Add(int, {(useOut ? "out" : "ref")} int)").WithLocation(8, 39));
40030
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x").WithArguments("y", "MyCollection<int?>.Add(int?, int?, params int?[])").WithLocation(20, 40));
40067
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x").WithArguments("z", "MyCollection<int?>.Add(int?, int?, int?[])").WithLocation(20, 40));
40292
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x").WithArguments("y", "MyCollection<int>.Add(int, params int)").WithLocation(8, 39));
Semantics\ExperimentalAttributeTests.cs (1)
1415
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "System.Diagnostics.CodeAnalysis.Experimental()").WithArguments("diagnosticId", "System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string)").WithLocation(2, 2)
Semantics\ExpressionOptionalAndNamedArgumentsTests.cs (4)
708
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "GetValue").WithArguments("value", "A.GetValue(System.DateTime)").WithLocation(5, 30));
762
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "GetValue").WithArguments("value", "A.GetValue(int)").WithLocation(6, 30));
1219
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "GetFirstAndParamsLength<int>").WithArguments("first", "A.GetFirstAndParamsLength<T>(T, params T[])").WithLocation(5, 30),
1222
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "GetFirstAndParamsLength<int>").WithArguments("first", "A.GetFirstAndParamsLength<T>(T, params T[])").WithLocation(6, 30),
Semantics\ExtensionTests.cs (3)
15116
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("inapplicable", "E.extension<T>(T).M(int)").WithLocation(1, 11));
34193
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M2").WithArguments("o", "E.M2(object)").WithLocation(7, 13),
34230
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M2").WithArguments("o", "E.M2(object)").WithLocation(7, 13));
Semantics\InlineArrayTests.cs (1)
1876
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "System.Runtime.CompilerServices.InlineArray").WithArguments("length", "System.Runtime.CompilerServices.InlineArrayAttribute.InlineArrayAttribute(int)").WithLocation(4, 2)
Semantics\OutVarTests.cs (2)
19811
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("i", "Program.M(int, out string)").WithLocation(5, 13)
20044
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test1").WithArguments("x", "Cls.Test1(int, ref int)").WithLocation(7, 9));
Semantics\ParamsCollectionTests.cs (25)
204
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params System.Span<long>)").WithLocation(2, 2),
320
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params System.ReadOnlySpan<long>)").WithLocation(2, 2),
464
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params string)").WithLocation(6, 9),
500
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params string)").WithLocation(2, 2),
648
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params MyCollection)").WithLocation(16, 2),
726
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(18, 9),
784
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(18, 9),
1138
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(20, 9),
1203
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(25, 9),
1392
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params MyCollection)").WithLocation(14, 2),
1470
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(18, 9),
1519
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(18, 9),
1605
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(15, 9),
1653
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(17, 9),
1743
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(20, 9),
1796
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(22, 9),
1850
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(23, 9),
2151
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "Program.Test(params MyCollection)").WithLocation(17, 9),
2516
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params MyCollection)").WithLocation(12, 2),
2652
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test()").WithArguments("a", "Test.Test(params System.Collections.Generic." + @interface + "<long>)").WithLocation(4, 2),
4036
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test1").WithArguments("a", "Params.Test1(params System.ReadOnlySpan<long>)").WithLocation(9, 16)
4103
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x1").WithArguments("arg", "<anonymous delegate>").WithLocation(12, 9)
14443
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CollectionBuilder(typeof(MyCollectionBuilder), nameof(MyCollectionBuilder.Create))").WithArguments("p", "System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string, params System.Runtime.CompilerServices.CollectionBuilderAttribute)").WithLocation(9, 6),
14449
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "System.Runtime.CompilerServices.Program.Test(params System.Runtime.CompilerServices.CollectionBuilderAttribute)").WithLocation(25, 13),
14512
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("a", "System.Runtime.CompilerServices.Program.Test(params System.Runtime.CompilerServices.CollectionBuilderAttribute)").WithLocation(25, 13),
Semantics\PatternMatchingTests2.cs (1)
2097
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "()").WithArguments("X", "Point.Deconstruct(out int, out int)").WithLocation(6, 23),
Semantics\PatternMatchingTests4.cs (1)
4079
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "(< 10, object)").WithArguments("i3", "C.Deconstruct(out int, out string, out int?)").WithLocation(26, 18),
Semantics\PrimaryConstructorTests.cs (1)
1806
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("X", "Base.Base(int)").WithLocation(11, 7),
Semantics\RecordTests.cs (2)
11192
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("b", "B.B(B)").WithLocation(1, 8),
27927
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("x", "C.C(int)").WithLocation(8, 17)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
19627
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, @"$""log:{0}""").WithArguments("structLogger", "DummyHandler.DummyHandler(int, int, StructLogger)").WithLocation(17, 15),
19633
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, @"$""log:{0}""").WithArguments("structLogger", "DummyHandler.DummyHandler(int, int, StructLogger)").WithLocation(21, 15),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (12)
IOperation\IOperationTests_IConstructorBodyOperation.cs (1)
1157
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Program").WithArguments("x", "Base.Base(int)").WithLocation(9, 5)
IOperation\IOperationTests_IDynamicInvocationExpression.cs (1)
467
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M2").WithArguments("j", "C.M2(int, int)").WithLocation(6, 29),
IOperation\IOperationTests_IDynamicObjectCreationExpression.cs (1)
372
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("j", "C.C(int, int)").WithLocation(14, 31)
IOperation\IOperationTests_IForEachLoopStatement.cs (4)
6939
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c").WithArguments("arr", "CExt.GetEnumerator(C, params int[], int)").WithLocation(6, 27),
7033
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c").WithArguments("i", "CExt.GetEnumerator(C, params int)").WithLocation(6, 27),
7157
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c").WithArguments("i", "CExt.GetEnumerator(C, params int)").WithLocation(6, 27),
7274
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c").WithArguments("i2", "CExt.GetEnumerator(C, int, int)").WithLocation(6, 27),
IOperation\IOperationTests_IObjectCreationExpression.cs (1)
13852
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C1").WithArguments("x", "C1.C1(int)").WithLocation(11, 17)
IOperation\IOperationTests_IUsingStatement.cs (4)
1947
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Dispose").WithArguments("extras", "S.Dispose(params int)").WithLocation(14, 11)
2081
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Dispose").WithArguments("extras", "S.Dispose(params int)").WithLocation(14, 11)
2215
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Dispose").WithArguments("extras", "S.Dispose(params int)").WithLocation(14, 11)
2350
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Dispose").WithArguments("extras", "S.Dispose(params object[], int)").WithLocation(14, 11)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (106)
Semantics\ArglistTests.cs (15)
555
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "C.M(int, __arglist)").WithLocation(11, 9),
1454
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "A").WithArguments("__arglist", "A.A(object, __arglist)").WithLocation(26, 13),
1457
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "A.M(object, __arglist)").WithLocation(28, 11),
1460
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "B").WithArguments("__arglist", "B.B(object, __arglist)").WithLocation(31, 13),
1463
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "B.M(object, __arglist)").WithLocation(33, 11),
1466
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("__arglist", "C.C(object, object, __arglist)").WithLocation(36, 13),
1469
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("__arglist", "C.C(object, object, __arglist)").WithLocation(37, 13),
1472
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "C.M(object, object, __arglist)").WithLocation(39, 11),
1475
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "C.M(object, object, __arglist)").WithLocation(40, 11),
1478
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "D").WithArguments("__arglist", "D.D(object, object, __arglist)").WithLocation(43, 13),
1481
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "D").WithArguments("__arglist", "D.D(object, object, __arglist)").WithLocation(44, 13),
1484
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "D.M(object, object, __arglist)").WithLocation(46, 11),
1487
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("__arglist", "D.M(object, object, __arglist)").WithLocation(47, 11));
1515
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "d").WithArguments("__arglist", "D").WithLocation(6, 9));
1546
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AllocateNativeOverlapped").WithArguments("context", "ConsoleApplication21.GooBar.AllocateNativeOverlapped(System.Threading.IOCompletionCallback, object, byte[])").WithLocation(12, 44)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
812
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AsyncMethodBuilder(typeof(B2))").WithArguments("i", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute.AsyncMethodBuilderAttribute(System.Type, int)").WithLocation(8, 2),
Semantics\BindingAwaitTests.cs (1)
1520
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "await new B()").WithArguments("o", "B.GetAwaiter(object)").WithLocation(11, 9),
Semantics\BindingTests.cs (6)
635
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "F").WithArguments("i", "C.F(int, params int[])").WithLocation(5, 9),
663
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("i", "C.C(int, params int[])").WithLocation(5, 17),
3031
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").WithLocation(38, 38)
3111
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").WithLocation(38, 38)
3184
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").WithLocation(31, 38)
3269
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").WithLocation(42, 38)
Semantics\DeconstructionTests.cs (2)
186
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "new C()").WithArguments("c", "C.Deconstruct(out int, out int, out int)").WithLocation(7, 28),
556
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "new C()").WithArguments("__arglist", "C.Deconstruct(out int, out string, __arglist)").WithLocation(9, 28),
Semantics\DelegateTypeTests.cs (26)
6627
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x1").WithArguments("arg1", "System.Action<long[], long[]>").WithLocation(10, 9),
6630
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x2").WithArguments("arg1", "System.Action<long[], long[]>").WithLocation(11, 9),
6717
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x1").WithArguments("obj", "System.Action<long>").WithLocation(10, 9),
6720
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "x2").WithArguments("obj", "System.Action<long>").WithLocation(11, 9),
13209
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam1").WithArguments("arg", "<anonymous delegate>").WithLocation(25, 1),
13212
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred1").WithArguments("arg", "<anonymous delegate>").WithLocation(26, 1),
13215
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam2").WithArguments("arg2", "<anonymous delegate>").WithLocation(27, 1),
13218
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred2").WithArguments("arg2", "<anonymous delegate>").WithLocation(28, 1),
13221
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam3").WithArguments("arg1", "<anonymous delegate>").WithLocation(29, 1),
13224
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred3").WithArguments("arg1", "<anonymous delegate>").WithLocation(30, 1),
13263
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam1").WithArguments("arg", "<anonymous delegate>").WithLocation(16, 5),
13266
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred1").WithArguments("arg", "<anonymous delegate>").WithLocation(17, 5),
13269
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam2").WithArguments("arg2", "<anonymous delegate>").WithLocation(18, 5),
13272
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred2").WithArguments("arg2", "<anonymous delegate>").WithLocation(19, 5),
13275
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam2").WithArguments("arg2", "<anonymous delegate>").WithLocation(20, 5),
13278
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred2").WithArguments("arg2", "<anonymous delegate>").WithLocation(21, 5));
13319
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam").WithArguments("arg1", "<anonymous delegate>").WithLocation(4, 1),
13322
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred").WithArguments("arg1", "<anonymous delegate>").WithLocation(5, 1),
13325
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam").WithArguments("arg1", "<anonymous delegate>").WithLocation(6, 1),
13328
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred").WithArguments("arg1", "<anonymous delegate>").WithLocation(7, 1));
17160
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "d").WithArguments("y", "Program.D").WithLocation(9, 27));
17210
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "d").WithArguments("y", "Program.D").WithLocation(12, 27));
17271
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "m").WithArguments("arg", "System.Func<int, int>").WithLocation(10, 27));
17609
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam").WithArguments("arg", "System.Func<int, int>").WithLocation(10, 1),
17612
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Method").WithArguments("x", "Method(int)").WithLocation(11, 1),
17615
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "inferred").WithArguments("arg", "System.Func<int, int>").WithLocation(12, 1));
Semantics\DynamicTests.cs (2)
1431
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Goo").WithArguments("y", "C.Goo(int, int)").WithLocation(8, 21)
3692
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("y", "C.C(string, string)").WithLocation(8, 16));
Semantics\ImplicitObjectCreationTests.cs (2)
4606
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, @"new(""ASD"")").WithArguments("Count", "A.A(string, int)").WithLocation(3, 12));
4852
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "new()").WithArguments("c", "C.C(C)").WithLocation(2, 4)
Semantics\InterceptorsTests.cs (1)
5045
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("lineNumber", "C.M(int)").WithLocation(1, 3));
Semantics\InterpolationTests.cs (6)
8255
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, string, out bool)").WithLocation(1, 8)
9183
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int)").WithLocation(1, 12),
9192
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int, out bool)").WithLocation(1, 12),
9195
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, int, out bool)").WithLocation(1, 12)
9677
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, ref C, out bool)").WithLocation(6, 15)
18088
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, @"$""""").WithArguments("s", "CustomHandler.CustomHandler(int, int, string)").WithLocation(4, 19),
Semantics\LambdaTests.cs (1)
7985
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "lam").WithArguments("arg2", "<anonymous delegate>").WithLocation(6, 9));
Semantics\LocalFunctionTests.cs (5)
1716
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").WithLocation(7, 27));
1757
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").WithLocation(7, 27),
1832
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").WithLocation(7, 31),
1922
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").WithLocation(7, 27));
1972
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").WithLocation(7, 34));
Semantics\NamedAndOptionalTests.cs (6)
229
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "f").WithArguments("fg", "C.F").WithLocation(10, 9),
232
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("my", "C.M(int, int, int)").WithLocation(11, 9),
235
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("cy", "C.C(int, int, int)").WithLocation(12, 13));
1016
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Goo").WithArguments("x", "Parent.Goo(ref int)"));
1430
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("o", "D.M(ref object)").WithLocation(25, 11));
1750
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("o", "I.M(out object)")
Semantics\NullableReferenceTypesTests.cs (10)
19216
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "G").WithArguments("x", "C.G(object, params object?[])").WithLocation(13, 9),
19219
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "G").WithArguments("x", "C.G(object, params object?[])").WithLocation(14, 9),
21179
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "init").WithArguments("a", "init(int)").WithLocation(10, 9));
81964
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "G").WithArguments("x", "C.G(object, object?)").WithLocation(10, 9)
85617
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "ValueTuple<object?, string>").WithArguments("item2", "(object?, string).ValueTuple(object?, string)").WithLocation(6, 21),
134900
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "new C()").WithArguments("z", "C.Deconstruct(out object, out object, out object)").WithLocation(9, 34),
142264
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "ReferenceEquals").WithArguments("objA", "object.ReferenceEquals(object, object)").WithLocation(7, 9),
142319
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "ReferenceEquals").WithArguments("objA", "object.ReferenceEquals(object, object)").WithLocation(11, 16),
142322
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "ReferenceEquals").WithArguments("objB", "object.ReferenceEquals(object, object)").WithLocation(12, 16),
144890
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "CompareExchange").WithArguments("comparand", "System.Threading.Interlocked.CompareExchange(ref object?, object?, object?)").WithLocation(17, 21),
Semantics\OverloadResolutionTests.cs (7)
8345
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "A").WithArguments("action", "System.Security.Permissions.CodeAccessSecurityAttribute.CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction)").WithLocation(16, 12),
8348
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "B").WithArguments("action", "System.Security.Permissions.CodeAccessSecurityAttribute.CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction)").WithLocation(23, 12),
8351
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "C").WithArguments("action", "System.Security.Permissions.CodeAccessSecurityAttribute.CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction)").WithLocation(30, 12));
8867
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M7").WithArguments("w", "C.M7(int, int, int)").WithLocation(24, 9),
8870
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M9").WithArguments("w", "C.M9(int, int, int)").WithLocation(25, 9),
8873
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M8").WithArguments("w", "C.M8(int, int, int)").WithLocation(26, 9),
8876
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M10").WithArguments("w", "C.M10(int, int, int)").WithLocation(27, 9),
Semantics\RawInterpolationTests_Handler.cs (6)
6426
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, string, out bool)").WithLocation(1, 8)
7374
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int)").WithLocation(1, 12),
7383
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int, out bool)").WithLocation(1, 12),
7386
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, int, out bool)").WithLocation(1, 12)
7881
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, ref C, out bool)").WithLocation(6, 15)
13481
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, @"$""""""
Semantics\ReadOnlyStructsTests.cs (1)
2133
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M2").WithArguments("a", "S.M2(System.Func<int>)").WithLocation(6, 9),
Semantics\RefFieldTests.cs (2)
24825
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "UnscopedRef").WithArguments("i", "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.UnscopedRefAttribute(out int)").WithLocation(5, 38));
24868
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "UnscopedRef").WithArguments("b", "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.UnscopedRefAttribute(bool)").WithLocation(4, 24),
Semantics\SemanticErrorTests.cs (4)
13387
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "i.R[1]").WithArguments("y", "I.R[int, int, int]").WithLocation(9, 9));
14894
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "md1").WithArguments("y", "MyDelegate1").WithLocation(11, 9));
16685
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Child").WithArguments("i", "Parent.Parent(int, int)").WithLocation(21, 14),
16694
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Parent").WithArguments("j", "Parent.Parent(int, int)").WithLocation(9, 37)
Semantics\SwitchTests.cs (2)
1046
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("o", "C.M(object)").WithLocation(9, 17),
1057
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("o", "C.M(object)").WithLocation(9, 17),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\ExtensionMethodTests.cs (4)
681
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M2").WithArguments("y", "N1.N2.C.M2(int, int)").WithLocation(11, 22),
699
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M2").WithArguments("y", "N1.N2.C.M2(int, int)").WithLocation(42, 22),
2777
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("y", "S.M(object, object)").WithLocation(6, 11),
2780
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M").WithArguments("y", "S.M(object, object)").WithLocation(7, 9));
Symbols\IndexedPropertyTests.cs (1)
1554
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "b.Q[0]").WithArguments("y", "B.Q[object, object]").WithLocation(5, 17));
Symbols\IndexerTests.cs (2)
242
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "this[0]").WithArguments("y", "C.this[int, int]").WithLocation(9, 16),
850
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c[0]").WithArguments("y", "C.this[int, long]").WithLocation(7, 9),
Symbols\PartialPropertiesTests.cs (1)
3505
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "c[0]").WithArguments("y", "C.this[int, int]").WithLocation(8, 23),
Symbols\PEParameterSymbolTests.cs (2)
96
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "Test").WithArguments("x", "Class1.Test(out object, ref object, int)").WithLocation(6, 16),
99
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "M1").WithArguments("x1", "I1.M1(out object)").WithLocation(9, 12)
Symbols\SymbolErrorTests.cs (1)
11768
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "AttributeUsage(AllowMultiple = true, AllowMultiple = false)").WithArguments("validOn", "System.AttributeUsageAttribute.AttributeUsageAttribute(System.AttributeTargets)").WithLocation(2, 2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ParserErrorMessageTests.cs (1)
982
Diagnostic(ErrorCode.
ERR_NoCorrespondingArgument
, "@cly").WithArguments("i", "x.clx.clx(int)").WithLocation(8, 18));