232 references to WRN_UnreferencedEvent
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
264case ErrorCode.WRN_UnreferencedEvent: 595or ErrorCode.WRN_UnreferencedEvent
Generated\ErrorFacts.Generated.cs (1)
10case ErrorCode.WRN_UnreferencedEvent:
Symbols\Source\SourceAssemblySymbol.cs (1)
2737diagnostics.Add(ErrorCode.WRN_UnreferencedEvent, associatedPropertyOrEvent.GetFirstLocationOrNone(), associatedPropertyOrEvent);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenExprLambdaTests.cs (2)
2071Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B1").WithArguments("C.B1"), 2074Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B2").WithArguments("D.B2")
CodeGen\CodeGenTupleTest.cs (2)
5199Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(4, 65) 13197Diagnostic(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)
5649Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e3").WithArguments("NoPiaTestApp.Test.e3")
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
CodeGen\IndexAndRangeTests.cs (1)
400Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F").WithArguments("Program.F").WithLocation(5, 32)
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.Emit3.UnitTests (21)
Attributes\AttributeTests.cs (5)
2771Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E4").WithArguments("Test.E4"), 2774Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("Test.E2"), 2777Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E3").WithArguments("Test.E3"), 2780Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Test.E1")); 8292Diagnostic(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)
766Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("C.e"));
Attributes\AttributeTests_WellKnownAttributes.cs (2)
6115Diagnostic(ErrorCode.WRN_UnreferencedEvent, "event1").WithArguments("GenericTest<T>.event1").WithLocation(121, 28)); 6714Diagnostic(ErrorCode.WRN_UnreferencedEvent, "someEvent").WithArguments("Test.someEvent").WithLocation(20, 28));
Diagnostics\DiagnosticAnalyzerTests.cs (1)
2462Diagnostic(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)
1077Diagnostic(ErrorCode.WRN_UnreferencedEvent, "y").WithArguments("S2.y")
Semantics\OutVarTests.cs (1)
22938(int)ErrorCode.WRN_UnreferencedEvent
Semantics\PatternMatchingTests_Scope.cs (1)
13679(int)ErrorCode.WRN_UnreferencedEvent
Semantics\PatternMatchingTests3.cs (1)
7617Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Radius").WithArguments("Circle.Radius").WithLocation(3, 38),
Semantics\PrimaryConstructorTests.cs (1)
19686Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SomethingChanged").WithArguments("MyOtherClass.SomethingChanged").WithLocation(57, 32),
Semantics\RecordTests.cs (5)
2316Diagnostic(ErrorCode.WRN_UnreferencedEvent, "X").WithArguments("C.X").WithLocation(5, 25) 3308Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Clone").WithArguments("C8.Clone").WithLocation(30, 25) 5367Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a", isSuppressed: false).WithArguments("C1.a").WithLocation(12, 32), 14615Diagnostic(ErrorCode.WRN_UnreferencedEvent, "X").WithArguments("C.X").WithLocation(6, 18) 29996Diagnostic(ErrorCode.WRN_UnreferencedEvent, "I").WithArguments("C.I").WithLocation(9, 32)
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)
8738Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C1.ev").WithLocation(6, 39) 8810Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C1.ev").WithLocation(6, 39) 8933Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C2.ev").WithLocation(16, 39)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
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)
259Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("E.Event"),
Semantics\ConditionalOperatorTests.cs (1)
1443Diagnostic(ErrorCode.WRN_UnreferencedEvent, "test").WithArguments("TestClass.test").WithLocation(6, 18)
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)
75859Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1").WithLocation(6, 26) 77075Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("B.E1").WithLocation(5, 33) 77242Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("B.E1").WithLocation(7, 46) 81900Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("D.Event").WithLocation(19, 39)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1031Diagnostic(ErrorCode.WRN_UnreferencedEvent, "z").WithArguments("MemberInitializerTest.z").WithLocation(5, 20)
Semantics\RecordStructTests.cs (1)
1478Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Clone").WithArguments("C8.Clone").WithLocation(26, 25)
Semantics\RefFieldTests.cs (1)
21174Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a").WithArguments("C.a").WithLocation(7, 32)
Semantics\SemanticErrorTests.cs (11)
18946Diagnostic(ErrorCode.WRN_UnreferencedEvent, "evt").WithArguments("MyClass.evt")); 18966Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("MyClass.E1"), 18969Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("MyClass.E2"), 18972Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E3").WithArguments("MyClass.E3"), 18975Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E4").WithArguments("MyClass.E4"), 18978Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E5").WithArguments("MyClass.E5")); 19012Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1")); 19039Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Add").WithArguments("C.Add"), 19042Diagnostic(ErrorCode.WRN_UnreferencedEvent, "None").WithArguments("C.None")); 19066Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B").WithArguments("A.B"), 19069Diagnostic(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)
2623Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event")); 2910Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1") 7810Diagnostic(ErrorCode.WRN_UnreferencedEvent, "StaticFieldLikeEvent").WithArguments("S.StaticFieldLikeEvent").WithLocation(5, 32), 7813Diagnostic(ErrorCode.WRN_UnreferencedEvent, "InstanceFieldLikeEvent").WithArguments("S.InstanceFieldLikeEvent").WithLocation(4, 25)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (118)
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)
3601Diagnostic(ErrorCode.WRN_UnreferencedEvent, "FieldLikeEvent").WithArguments("C.FieldLikeEvent"), 6565Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Generic<T>.C.E"),
Symbols\DefaultInterfaceImplementationTests.cs (15)
6950Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 25 + implModifiers.Length) 7053Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 25 + implModifiers.Length) 7144Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 25 + implModifiers.Length) 7251Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").WithLocation(10, 29 + implModifiers.Length) 27539Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I1.E1").WithLocation(4, 40) 27561Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I1.E1").WithLocation(4, 40) 27869Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").WithLocation(4, 39), 27892Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").WithLocation(4, 39), 28211Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I1.P2").WithLocation(6, 41), 28226Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P4").WithArguments("I1.P4").WithLocation(14, 33) 29690Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").WithLocation(4, 39) 30432Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I2.P2").WithLocation(8, 32) 30653Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I2.P2").WithLocation(8, 42) 45499Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F5").WithArguments("I1.F5").WithLocation(5, 33), 45502Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F1").WithArguments("I1.F1").WithLocation(4, 33)
Symbols\GenericConstraintTests.cs (5)
975Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(8, 23)); 6151Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B.E"), 6154Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E")); 6768Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E")); 6802Diagnostic(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)
1317Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(9, 18)
Symbols\Source\ClsComplianceTests.cs (8)
91Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 164Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 257Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Kinds.E")); 1138Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Kinds1.E1"), 1141Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Kinds2.E1")); 1956Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("Kinds.E1")); 2047Diagnostic(ErrorCode.WRN_UnreferencedEvent, "_E").WithArguments("Kinds._E")); 3321Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"));
Symbols\Source\EventTests.cs (16)
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")); 2817Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").WithLocation(8, 104),
Symbols\Source\FieldTests.cs (1)
468Diagnostic(ErrorCode.WRN_UnreferencedEvent, "value__").WithArguments("E.value__"),
Symbols\Source\FileModifierTests.cs (2)
2185Diagnostic(ErrorCode.WRN_UnreferencedEvent, "@event").WithArguments("E.event").WithLocation(11, 13)); 2226Diagnostic(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)
5068Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 48), 5110Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 47), 5185Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 48), 5227Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").WithLocation(6, 47), 26088Diagnostic(ErrorCode.WRN_UnreferencedEvent, "M02").WithArguments("Test.M02").WithLocation(5, 39) 26101Diagnostic(ErrorCode.WRN_UnreferencedEvent, "M02").WithArguments("Test.M02").WithLocation(5, 39),
Symbols\SymbolErrorTests.cs (43)
973Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Click").WithArguments("C.Click")); 1002Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d").WithArguments("I.d").WithLocation(6, 22)); 1043Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test1.MyEvent")); 1416Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 2164Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P").WithArguments("B.P").WithLocation(7, 51), 2170Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("B.Q").WithLocation(8, 47), 2176Diagnostic(ErrorCode.WRN_UnreferencedEvent, "R").WithArguments("B.R").WithLocation(9, 50) 2261Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P").WithArguments("B.P").WithLocation(8, 48), 2264Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("B.Q").WithLocation(9, 51), 2267Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("A.Q").WithLocation(4, 42)); 3282Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B.E")); 4897Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("A.E")); 10212Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("add_E.E").WithLocation(16, 34), 10215Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B2.E").WithLocation(12, 34), 10218Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B1.E").WithLocation(8, 34), 10221Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("remove_E.E").WithLocation(20, 34), 10224Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B0.E").WithLocation(4, 34)); 10478Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 11576Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 12151Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.S1<T, V>.E"), 12154Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.S1<T, V>.S2.E") 12201Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("S.E")); 13093Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.Bar<T>.E"), 13096Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("NS.Goo.E"), 16363Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("Test.e")); 17359Diagnostic(ErrorCode.WRN_UnreferencedEvent, "IP3").WithArguments("B.IP3"), 17362Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE2").WithArguments("A.SE2"), 17365Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE3").WithArguments("A.SE3"), 17368Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SM3").WithArguments("B.SM3"), 17371Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE4").WithArguments("A.SE4"), 17374Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SP3").WithArguments("B.SP3"), 17377Diagnostic(ErrorCode.WRN_UnreferencedEvent, "SE1").WithArguments("A.SE1"), 17380Diagnostic(ErrorCode.WRN_UnreferencedEvent, "IM3").WithArguments("B.IM3")); 18224Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 19816Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F").WithArguments("C.F"), 19822Diagnostic(ErrorCode.WRN_UnreferencedEvent, "remove_E").WithArguments("C.remove_E"), 19825Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"), 19828Diagnostic(ErrorCode.WRN_UnreferencedEvent, "G").WithArguments("C.G")); 20396Diagnostic(ErrorCode.WRN_UnreferencedEvent, "A").WithArguments("PublicClass.A"), 20399Diagnostic(ErrorCode.WRN_UnreferencedEvent, "B").WithArguments("PublicClass.B"), 20402Diagnostic(ErrorCode.WRN_UnreferencedEvent, "C").WithArguments("PublicClass.C"), 20405Diagnostic(ErrorCode.WRN_UnreferencedEvent, "D").WithArguments("PublicClass.D"), 20408Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F").WithArguments("InternalClass.F"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Diagnostics\DiagnosticTest.cs (1)
2949case ErrorCode.WRN_UnreferencedEvent:
Parsing\ExtensionsParsingTests.cs (1)
2322Diagnostic(ErrorCode.WRN_UnreferencedEvent, "eventField").WithArguments("C.extension(object).eventField").WithLocation(5, 35));
Parsing\FileModifierParsingTests.cs (2)
910Diagnostic(ErrorCode.WRN_UnreferencedEvent, "x").WithArguments("C.x").WithLocation(3, 23) 1157Diagnostic(ErrorCode.WRN_UnreferencedEvent, "file").WithArguments("C.file").WithLocation(3, 18)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (10)
CodeGen\WinMdEventTests.cs (2)
48Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E")); 90Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E"));
CodeGen\WinRTCollectionTests.cs (1)
5700Diagnostic(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"));