74 references to ERR_ExplicitImplementationOfOperatorsMustBeStatic
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2128
case ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
:
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
76
diagnostics.Add(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, this.Locations[0], this);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Symbols\StaticAbstractMembersInInterfacesTests.cs (14)
17655
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4)").WithLocation(26, 24 + checkedKeyword.Length),
17786
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4)").WithLocation(26, 24 + checkedKeyword.Length),
17934
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4, int)").WithLocation(26, 24 + checkedKeyword.Length),
18065
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4, int)").WithLocation(26, 24 + checkedKeyword.Length),
18180
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1)").WithLocation(22, 20 + checkedKeyword.Length),
18327
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1)").WithLocation(22, 20 + checkedKeyword.Length),
18502
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("I5.operator " + op + "(I1, int)").WithLocation(22, 20),
18524
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1, int)").WithLocation(22, 20 + checkedKeyword.Length),
18694
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("I5.operator " + op + "(I1, int)").WithLocation(22, 20),
18716
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1, int)").WithLocation(22, 20 + checkedKeyword.Length),
27940
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C4." + op + " operator " + checkedKeyword + "int(C4)").WithLocation(26, 30 + checkedKeyword.Length),
28071
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C4." + op + " operator " + checkedKeyword + "int(C4)").WithLocation(26, 30 + checkedKeyword.Length),
28186
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("I5<T>." + op + " operator " + checkedKeyword + "int(T)").WithLocation(22, 29 + checkedKeyword.Length),
28343
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("I5<T>." + op + " operator " + checkedKeyword + "int(T)").WithLocation(22, 29 + checkedKeyword.Length),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (58)
Parsing\MemberDeclarationParsingTests.cs (58)
2338
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 35));
2351
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 35));
2458
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
2480
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
2583
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
2605
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
2701
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 35));
2717
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 35));
2807
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 33));
2823
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 33));
3219
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 35));
3232
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 35));
3343
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
3365
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
3471
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
3493
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 26));
3593
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 35));
3609
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 35));
3703
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 33));
3719
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 33));
4262
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 28));
4272
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 28));
4375
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
4394
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
4492
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
4511
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
4603
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 28));
4616
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 28));
4702
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 26));
4715
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 26));
5102
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 28));
5112
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int, int)").WithLocation(1, 28));
5219
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
5238
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
5340
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
5359
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "").WithArguments("C.operator +(int)").WithLocation(1, 19));
5455
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 28));
5468
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 28));
5558
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 26));
5571
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "+").WithArguments("C.operator +(int)").WithLocation(1, 26));
6289
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 33));
6299
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 33));
6379
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 24));
6392
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 24));
6530
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 33));
6543
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 33));
6630
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 31));
6643
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 31));
7014
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 33));
7024
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 33));
7111
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 24));
7127
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 24));
7221
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 25));
7234
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 25));
7325
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 33));
7338
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.implicit operator int(int)").WithLocation(1, 33));
7429
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 31));
7442
Diagnostic(ErrorCode.
ERR_ExplicitImplementationOfOperatorsMustBeStatic
, "int").WithArguments("C.explicit operator int(int)").WithLocation(1, 31));