227 references to WRN_UnreferencedEvent
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
251case ErrorCode.WRN_UnreferencedEvent: 553case ErrorCode.WRN_UnreferencedEvent:
Generated\ErrorFacts.Generated.cs (1)
10case ErrorCode.WRN_UnreferencedEvent:
Symbols\Source\SourceAssemblySymbol.cs (1)
2693diagnostics.Add(ErrorCode.WRN_UnreferencedEvent, associatedPropertyOrEvent.Locations.FirstOrNone(), associatedPropertyOrEvent);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenExprLambdaTests.cs (2)
2353Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B1").WithArguments("C.B1"), 2356Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B2").WithArguments("D.B2")
CodeGen\CodeGenTupleTest.cs (2)
5194Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(4, 65) 13203Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("(T1, T2).E2").WithLocation(90, 36)
CodeGen\EventTests.cs (2)
668Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("C.e") 680Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("C.e").WithLocation(7, 21)
Emit\NoPiaEmbedTypes.cs (1)
5432Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e3").WithArguments("NoPiaTestApp.Test.e3")
PDB\PDBWinMdExpTests.cs (2)
238Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("X.TestCase.E"), 239Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("X.TestCase.E2"));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (14)
Attributes\AttributeTests.cs (5)
2733Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E4").WithArguments("Test.E4"), 2736Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("Test.E2"), 2739Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E3").WithArguments("Test.E3"), 2742Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Test.E1")); 7994Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Click").WithArguments("Class1.Click"));
Attributes\AttributeTests_LifetimeAnnotation.cs (1)
158Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Program.E").WithLocation(7, 36));
Attributes\AttributeTests_Locations.cs (1)
749Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("C.e"));
Attributes\AttributeTests_WellKnownAttributes.cs (2)
6026Diagnostic(ErrorCode.WRN_UnreferencedEvent, "event1").WithArguments("GenericTest<T>.event1").WithLocation(121, 28)); 6628Diagnostic(ErrorCode.WRN_UnreferencedEvent, "someEvent").WithArguments("Test.someEvent").WithLocation(20, 28));
Diagnostics\DiagnosticAnalyzerTests.cs (1)
2461Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("C.MyEvent").WithLocation(51, 32),
Diagnostics\OperationAnalyzerTests.cs (1)
1480.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("D.E").WithLocation(6, 32))
FlowAnalysis\FlowDiagnosticTests.cs (1)
1059Diagnostic(ErrorCode.WRN_UnreferencedEvent, "y").WithArguments("S2.y")
Semantics\PatternMatchingTests_Scope.cs (1)
13630(int)ErrorCode.WRN_UnreferencedEvent
Semantics\PatternMatchingTests3.cs (1)
7617Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Radius").WithArguments("Circle.Radius").WithLocation(3, 38),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (17)
IOperation\IOperationTests_IEventAssignmentExpression.cs (9)
57Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 31) 96Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 31) 138Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 31) 184Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 38) 230Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 38) 280Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 31) 330Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 38) 380Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 31) 423Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").WithLocation(6, 31)
IOperation\IOperationTests_IEventReferenceOperation.cs (3)
41Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event").WithLocation(7, 31) 76Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event").WithLocation(7, 24) 112Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event").WithLocation(7, 31)
IOperation\IOperationTests_IIsPatternExpression.cs (2)
1238Diagnostic(ErrorCode.WRN_UnreferencedEvent, "action").WithArguments("C.action").WithLocation(5, 32), 1440Diagnostic(ErrorCode.WRN_UnreferencedEvent, "A").WithArguments("D.A").WithLocation(11, 32)
IOperation\IOperationTests_IObjectCreationExpression.cs (3)
8751Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C1.ev").WithLocation(6, 39) 8823Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C1.ev").WithLocation(6, 39) 8946Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C2.ev").WithLocation(16, 39)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (53)
Semantics\AccessibilityTests.cs (2)
182Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("G<T>.E")); 202Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"));
Semantics\ColorColorTests.cs (1)
258Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("E.Event"),
Semantics\DeconstructionTests.cs (1)
727Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Deconstruct").WithArguments("C.Deconstruct").WithLocation(6, 21)
Semantics\InheritanceBindingTests.cs (15)
1160Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event3").WithArguments("Derived.Event3").WithLocation(19, 48), 1163Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event7").WithArguments("Derived.Event7").WithLocation(23, 32), 1166Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event1").WithArguments("Derived.Event1").WithLocation(17, 36), 1169Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event6").WithArguments("Derived.Event6").WithLocation(22, 55), 1172Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event2").WithArguments("Derived.Event2").WithLocation(18, 47), 1175Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event5").WithArguments("Derived.Event5").WithLocation(21, 55), 1178Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event4").WithArguments("Derived.Event4").WithLocation(20, 63), 1181Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event0").WithArguments("Derived.Event0").WithLocation(16, 34)); 1434Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("Base.Event") 1493Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("Base.Event"), 4200Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("Derived.Event"), 4203Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("Base.Event")); 4337Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("S.Event"), 4343Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event") 6627Diagnostic(ErrorCode.WRN_UnreferencedEvent, "G").WithArguments("C.G"));
Semantics\NameLengthTests.cs (4)
82Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName).WithArguments("FieldLikeEvents." + s_longSymbolName).WithLocation(12, 18), 85Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName + 1).WithArguments("FieldLikeEvents." + s_longSymbolName + 1).WithLocation(13, 18)); 173Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName).WithArguments("FieldLikeEvents." + s_longSymbolName).WithLocation(12, 18), 176Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName + 1).WithArguments("FieldLikeEvents." + s_longSymbolName + 1).WithLocation(13, 18));
Semantics\NullableReferenceTypesTests.cs (4)
72164Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1").WithLocation(6, 26) 73380Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("B.E1").WithLocation(5, 33) 73547Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("B.E1").WithLocation(7, 46) 78211Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("D.Event").WithLocation(19, 39)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1026Diagnostic(ErrorCode.WRN_UnreferencedEvent, "z").WithArguments("MemberInitializerTest.z").WithLocation(5, 20)
Semantics\OutVarTests.cs (1)
22879(int)ErrorCode.WRN_UnreferencedEvent
Semantics\RecordStructTests.cs (1)
1478Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Clone").WithArguments("C8.Clone").WithLocation(26, 25)
Semantics\RecordTests.cs (5)
2261Diagnostic(ErrorCode.WRN_UnreferencedEvent, "X").WithArguments("C.X").WithLocation(5, 25) 3253Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Clone").WithArguments("C8.Clone").WithLocation(30, 25) 5312Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a", isSuppressed: false).WithArguments("C1.a").WithLocation(12, 32), 14512Diagnostic(ErrorCode.WRN_UnreferencedEvent, "X").WithArguments("C.X").WithLocation(6, 18) 29870Diagnostic(ErrorCode.WRN_UnreferencedEvent, "I").WithArguments("C.I").WithLocation(9, 32)
Semantics\RefFieldTests.cs (1)
20564Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a").WithArguments("C.a").WithLocation(7, 32)
Semantics\SemanticErrorTests.cs (11)
18722Diagnostic(ErrorCode.WRN_UnreferencedEvent, "evt").WithArguments("MyClass.evt")); 18742Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("MyClass.E1"), 18745Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("MyClass.E2"), 18748Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E3").WithArguments("MyClass.E3"), 18751Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E4").WithArguments("MyClass.E4"), 18754Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E5").WithArguments("MyClass.E5")); 18788Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1")); 18815Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Add").WithArguments("C.Add"), 18818Diagnostic(ErrorCode.WRN_UnreferencedEvent, "None").WithArguments("C.None")); 18842Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B").WithArguments("A.B"), 18845Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B").WithArguments("A.C.B"));
Semantics\UninitializedNonNullableFieldTests.cs (2)
1998Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I.E1").WithLocation(7, 39) 2032Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I.E1").WithLocation(6, 39),
Semantics\UnsafeTests.cs (4)
364Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event")); 645Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1") 4972Diagnostic(ErrorCode.WRN_UnreferencedEvent, "StaticFieldLikeEvent").WithArguments("S.StaticFieldLikeEvent").WithLocation(5, 32), 4975Diagnostic(ErrorCode.WRN_UnreferencedEvent, "InstanceFieldLikeEvent").WithArguments("S.InstanceFieldLikeEvent").WithLocation(4, 25)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (117)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
4657Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Enclosing.Declaring.E"));
DocumentationComments\CrefTests.cs (3)
3661Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(16, 25), 3844Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(16, 25), 4364Diagnostic(ErrorCode.WRN_UnreferencedEvent, "FieldLikeEvent").WithArguments("C.FieldLikeEvent"));
DocumentationComments\DocumentationCommentCompilerTests.cs (2)
1856Diagnostic(ErrorCode.WRN_UnreferencedEvent, "FieldLikeEvent").WithArguments("C.FieldLikeEvent"), 4820Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Generic<T>.C.E"),
Symbols\DefaultInterfaceImplementationTests.cs (15)
6765Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 25 + implModifiers.Length) 6868Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 25 + implModifiers.Length) 6959Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 25 + implModifiers.Length) 7066Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 29 + implModifiers.Length) 27354Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I1.E1").WithLocation(4, 40) 27376Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I1.E1").WithLocation(4, 40) 27684Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").WithLocation(4, 39), 27707Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").WithLocation(4, 39), 28026Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I1.P2").WithLocation(6, 41), 28041Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P4").WithArguments("I1.P4").WithLocation(14, 33) 29505Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").WithLocation(4, 39) 30247Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I2.P2").WithLocation(8, 32) 30468Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I2.P2").WithLocation(8, 42) 45308Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F5").WithArguments("I1.F5").WithLocation(5, 33), 45311Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F1").WithArguments("I1.F1").WithLocation(4, 33)
Symbols\GenericConstraintTests.cs (5)
973Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(8, 23)); 6124Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B.E"), 6127Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E")); 6741Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E")); 6775Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E"));
Symbols\OverriddenOrHiddenMembersTests.cs (11)
2138Diagnostic(ErrorCode.WRN_UnreferencedEvent, "C").WithArguments("Base.C")); 2169Diagnostic(ErrorCode.WRN_UnreferencedEvent, "C").WithArguments("Base.C")); 2522Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("D.E").WithLocation(19, 41), 2525Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B.E").WithLocation(9, 41), 2528Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(14, 47)); 3388Diagnostic(ErrorCode.WRN_UnreferencedEvent, "op_Explicit").WithArguments("D4.op_Explicit"), 3391Diagnostic(ErrorCode.WRN_UnreferencedEvent, "op_UnaryPlus").WithArguments("D4.op_UnaryPlus"), 3394Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Finalize").WithArguments("D4.Finalize"), 3540Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Finalize").WithArguments("D4.Finalize"), 3543Diagnostic(ErrorCode.WRN_UnreferencedEvent, "op_UnaryPlus").WithArguments("D4.op_UnaryPlus"), 3546Diagnostic(ErrorCode.WRN_UnreferencedEvent, "op_Explicit").WithArguments("D4.op_Explicit"),
Symbols\RequiredMembersTests.cs (1)
1333Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(9, 18)
Symbols\Source\ClsComplianceTests.cs (8)
92Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 165Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 258Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Kinds.E")); 1139Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Kinds1.E1"), 1142Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Kinds2.E1")); 1957Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Kinds.E1")); 2048Diagnostic(ErrorCode.WRN_UnreferencedEvent, "_E").WithArguments("Kinds._E")); 3321Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"));
Symbols\Source\EventTests.cs (15)
388Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("A.E1").WithLocation(4, 41)); 830Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(4, 38)); 846Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(4, 31)); 880Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 1070Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e1").WithArguments("C.e1"), 1073Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e2").WithArguments("C.e2")); 1144Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("E.e"), 1147Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("D.e")); 1317Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 1394Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("S.E")); 2072Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a").WithArguments("A.a"), 2075Diagnostic(ErrorCode.WRN_UnreferencedEvent, "b").WithArguments("A.b")); 2256Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Derived1.E")); 2338Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Derived1.E")); 2384Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Derived1.E"));
Symbols\Source\FieldTests.cs (1)
468Diagnostic(ErrorCode.WRN_UnreferencedEvent, "value__").WithArguments("E.value__"),
Symbols\Source\FileModifierTests.cs (2)
1904Diagnostic(ErrorCode.WRN_UnreferencedEvent, "@event").WithArguments("E.event").WithLocation(11, 13)); 1945Diagnostic(ErrorCode.WRN_UnreferencedEvent, "@event").WithArguments("E.event").WithLocation(12, 27));
Symbols\Source\RecordTests.cs (4)
889Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(5, 25) 906Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(5, 25) 1045Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(5, 25) 1058Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(7, 25)
Symbols\StaticAbstractMembersInInterfacesTests.cs (6)
5086Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 48), 5128Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 47), 5203Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 48), 5245Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 47), 25574Diagnostic(ErrorCode.WRN_UnreferencedEvent, "M02").WithArguments("Test.M02").WithLocation(5, 39) 25587Diagnostic(ErrorCode.WRN_UnreferencedEvent, "M02").WithArguments("Test.M02").WithLocation(5, 39),
Symbols\SymbolErrorTests.cs (43)
972Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Click").WithArguments("C.Click")); 1001Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d").WithArguments("I.d").WithLocation(6, 22)); 1042Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test1.MyEvent")); 1415Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 2160Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P").WithArguments("B.P").WithLocation(7, 51), 2166Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("B.Q").WithLocation(8, 47), 2172Diagnostic(ErrorCode.WRN_UnreferencedEvent, "R").WithArguments("B.R").WithLocation(9, 50) 2257Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P").WithArguments("B.P").WithLocation(8, 48), 2260Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("B.Q").WithLocation(9, 51), 2263Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("A.Q").WithLocation(4, 42)); 3267Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B.E")); 4821Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E")); 10069Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("add_E.E").WithLocation(16, 34), 10072Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B2.E").WithLocation(12, 34), 10075Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B1.E").WithLocation(8, 34), 10078Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("remove_E.E").WithLocation(20, 34), 10081Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B0.E").WithLocation(4, 34)); 10335Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 11433Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 12008Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.S1<T, V>.E"), 12011Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.S1<T, V>.S2.E") 12058Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("S.E")); 12945Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.Bar<T>.E"), 12948Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.Goo.E"), 16218Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("Test.e")); 17214Diagnostic(ErrorCode.WRN_UnreferencedEvent, "IP3").WithArguments("B.IP3"), 17217Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE2").WithArguments("A.SE2"), 17220Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE3").WithArguments("A.SE3"), 17223Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SM3").WithArguments("B.SM3"), 17226Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE4").WithArguments("A.SE4"), 17229Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SP3").WithArguments("B.SP3"), 17232Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE1").WithArguments("A.SE1"), 17235Diagnostic(ErrorCode.WRN_UnreferencedEvent, "IM3").WithArguments("B.IM3")); 18079Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 19671Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F").WithArguments("C.F"), 19677Diagnostic(ErrorCode.WRN_UnreferencedEvent, "remove_E").WithArguments("C.remove_E"), 19680Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"), 19683Diagnostic(ErrorCode.WRN_UnreferencedEvent, "G").WithArguments("C.G")); 20251Diagnostic(ErrorCode.WRN_UnreferencedEvent, "A").WithArguments("PublicClass.A"), 20254Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B").WithArguments("PublicClass.B"), 20257Diagnostic(ErrorCode.WRN_UnreferencedEvent, "C").WithArguments("PublicClass.C"), 20260Diagnostic(ErrorCode.WRN_UnreferencedEvent, "D").WithArguments("PublicClass.D"), 20263Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F").WithArguments("InternalClass.F"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (1)
2911case ErrorCode.WRN_UnreferencedEvent:
Parsing\FileModifierParsingTests.cs (2)
909Diagnostic(ErrorCode.WRN_UnreferencedEvent, "x").WithArguments("C.x").WithLocation(3, 23) 1156Diagnostic(ErrorCode.WRN_UnreferencedEvent, "file").WithArguments("C.file").WithLocation(3, 18)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (10)
CodeGen\WinMdEventTests.cs (2)
47Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 89Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"));
CodeGen\WinRTCollectionTests.cs (1)
5699Diagnostic(ErrorCode.WRN_UnreferencedEvent, "VectorChanged").WithArguments("Test.R.VectorChanged").WithLocation(13, 53),
Metadata\WinMdEventTests.cs (7)
319Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d1").WithArguments("A.d1"), 322Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d3").WithArguments("A.d3"), 325Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d2").WithArguments("A.d2") 2454Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d2").WithArguments("A.d2").WithLocation(7, 42), 2457Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d3").WithArguments("A.d3").WithLocation(8, 34)); 3292Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F").WithArguments("C.F")); 3341Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"));