35 references to ERR_BadEventUsage
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
1764new CSDiagnosticInfo(ErrorCode.ERR_BadEventUsage, leastOverridden, leastOverridden.ContainingType) :
Errors\ErrorFacts.cs (1)
683or ErrorCode.ERR_BadEventUsage
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenDeconstructTests.cs (1)
7956Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(11, 12)
CodeGen\CodeGenTupleTest.cs (2)
14414Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("Test<(int, int)>.E1", "Test<(int, int)>").WithLocation(7, 44), 16152Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("(int, long).E1", "(int, long)").WithLocation(7, 12)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IObjectCreationExpression.cs (1)
8930Diagnostic(ErrorCode.ERR_BadEventUsage, "ev").WithArguments("C2.ev", "C2").WithLocation(10, 33),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\NullableReferenceTypesTests.cs (11)
1560Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(11, 11), 1566Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(13, 15), 1569Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(14, 22), 1572Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(15, 11), 1575Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(16, 21), 1578Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(17, 11), 1584Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").WithLocation(18, 11) 75827Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("C.E1", "C").WithLocation(14, 18), 75830Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("C.E1", "C").WithLocation(16, 11) 88765Diagnostic(ErrorCode.ERR_BadEventUsage, "E2").WithArguments("(object, object).E2", "(object, object)").WithLocation(27, 11), 88768Diagnostic(ErrorCode.ERR_BadEventUsage, "E2").WithArguments("(object, object).E2", "(object, object)").WithLocation(32, 11),
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1028Diagnostic(ErrorCode.ERR_BadEventUsage, "z").WithArguments("MemberInitializerTest.z", "MemberInitializerTest").WithLocation(11, 57),
Semantics\RefFieldTests.cs (2)
21142Diagnostic(ErrorCode.ERR_BadEventUsage, "a").WithArguments("C.a", "C").WithLocation(3, 17), 21145Diagnostic(ErrorCode.ERR_BadEventUsage, "a").WithArguments("C.a", "C").WithLocation(6, 3)
Semantics\SemanticErrorTests.cs (1)
2283new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_BadEventUsage, Line = 26, Column = 14 } });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
5440Diagnostic(ErrorCode.ERR_BadEventUsage, "Handler").WithArguments("Thing.Handler", "Thing").WithLocation(16, 13) 5626Diagnostic(ErrorCode.ERR_BadEventUsage, "Handler").WithArguments("Thing.Handler", "Thing").WithLocation(15, 13)
Symbols\Source\EventTests.cs (12)
918Diagnostic(ErrorCode.ERR_BadEventUsage, "f").WithArguments("DeclaringType.f", "DeclaringType")); 983Diagnostic(ErrorCode.ERR_BadEventUsage, "f").WithArguments("C.f", "C"), 1045Diagnostic(ErrorCode.ERR_BadEventUsage, "e3").WithArguments("C.e3", "C"), 1048Diagnostic(ErrorCode.ERR_BadEventUsage, "e4").WithArguments("C.e4", "C"), 1051Diagnostic(ErrorCode.ERR_BadEventUsage, "e5").WithArguments("C.e5", "C"), 1249Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"), 1252Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"), 1255Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"), 1258Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"), 1261Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"), 1264Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"), 1267Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C"),