20 references to ERR_ReceiverParameterOnlyOne
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2494
or ErrorCode.
ERR_ReceiverParameterOnlyOne
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
83
diagnostics.Add(ErrorCode.
ERR_ReceiverParameterOnlyOne
, parameterList.Parameters[parameterIndex].GetLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Semantics\ExtensionTests.cs (12)
2871
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(3, 22),
2874
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "C c").WithLocation(3, 29));
2909
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "Type").WithLocation(3, 22));
3357
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(3, 31));
3423
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object").WithLocation(3, 26));
3604
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "this int j").WithLocation(3, 22));
3713
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "out int j").WithLocation(3, 22));
3961
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int i").WithLocation(3, 26));
3990
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "Extensions e").WithLocation(3, 25));
4162
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "scoped int j").WithLocation(3, 22));
39834
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object o2").WithLocation(3, 25),
51234
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object o2").WithLocation(5, 25));
Semantics\ExtensionTests2.cs (3)
5287
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
5322
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
5427
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\ExtensionsParsingTests.cs (3)
1338
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "string x2").WithLocation(3, 26));
1398
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "string").WithLocation(3, 23));
1689
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "params object[]").WithLocation(3, 23));