20 references to ERR_ReceiverParameterOnlyOne
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2496
or ErrorCode.
ERR_ReceiverParameterOnlyOne
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
74
diagnostics.Add(ErrorCode.
ERR_ReceiverParameterOnlyOne
, parameterList.Parameters[parameterIndex].GetLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Semantics\ExtensionTests.cs (12)
2713
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(3, 22),
2716
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "C c").WithLocation(3, 29));
2751
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "Type").WithLocation(3, 22));
3196
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(3, 31));
3262
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object").WithLocation(3, 26));
3443
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "this int j").WithLocation(3, 22));
3552
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "out int j").WithLocation(3, 22));
3800
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int i").WithLocation(3, 26));
3829
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "Extensions e").WithLocation(3, 25));
4001
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "scoped int j").WithLocation(3, 22));
34367
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object o2").WithLocation(3, 25),
43584
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object o2").WithLocation(5, 25));
Semantics\ExtensionTests2.cs (3)
3991
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
4026
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
4131
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\ExtensionsParsingTests.cs (3)
939
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "string x2").WithLocation(3, 26));
999
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "string").WithLocation(3, 23));
1290
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "params object[]").WithLocation(3, 23));