20 references to ERR_ReceiverParameterOnlyOne
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2501
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)
3136
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(3, 22),
3139
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "C c").WithLocation(3, 29));
3174
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "Type").WithLocation(3, 22));
3638
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(3, 31));
3704
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object").WithLocation(3, 26));
3885
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "this int j").WithLocation(3, 22));
3994
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "out int j").WithLocation(3, 22));
4242
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int i").WithLocation(3, 26));
4271
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "Extensions e").WithLocation(3, 25));
4443
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "scoped int j").WithLocation(3, 22));
40301
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object o2").WithLocation(3, 25),
52198
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "object o2").WithLocation(5, 25));
Semantics\ExtensionTests2.cs (3)
6735
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
6770
Diagnostic(ErrorCode.
ERR_ReceiverParameterOnlyOne
, "int j").WithLocation(4, 22));
6875
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));