3 instantiations of MemberReferenceAnalyzer
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\OperationAnalyzerTests.cs (1)
1156
.VerifyAnalyzerDiagnostics(new DiagnosticAnalyzer[] { new
MemberReferenceAnalyzer
() }, null, null,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\OperationAnalyzerTests.vb (2)
1161
comp.VerifyAnalyzerDiagnostics({New
MemberReferenceAnalyzer
}, Nothing, Nothing,
2063
comp.VerifyAnalyzerDiagnostics({New
MemberReferenceAnalyzer
}, Nothing, Nothing,
25 references to MemberReferenceAnalyzer
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Diagnostics\OperationAnalyzerTests.cs (13)
1158
Diagnostic(
MemberReferenceAnalyzer
.HandlerAddedDescriptor.Id, "Mumble += new MumbleEventHandler(Mumbler)").WithLocation(10, 9),
1159
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(10, 9),
1160
Diagnostic(
MemberReferenceAnalyzer
.MethodBindingDescriptor.Id, "Mumbler").WithLocation(10, 42),
1161
Diagnostic(
MemberReferenceAnalyzer
.HandlerAddedDescriptor.Id, "Mumble += (s, a) => {}").WithLocation(11, 9),
1162
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(11, 9),
1163
Diagnostic(
MemberReferenceAnalyzer
.HandlerAddedDescriptor.Id, "Mumble += new MumbleEventHandler((s, a) => {})").WithLocation(12, 9),
1164
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(12, 9),
1165
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(13, 9),
1166
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(14, 20),
1167
Diagnostic(
MemberReferenceAnalyzer
.MethodBindingDescriptor.Id, "Mumbler").WithLocation(15, 32),
1168
Diagnostic(
MemberReferenceAnalyzer
.HandlerRemovedDescriptor.Id, "Mumble -= new MumbleEventHandler(Mumbler)").WithLocation(17, 9),
1169
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(17, 9),
1170
Diagnostic(
MemberReferenceAnalyzer
.MethodBindingDescriptor.Id, "Mumbler").WithLocation(17, 42));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (12)
Diagnostics\OperationAnalyzerTests.vb (12)
1162
Diagnostic(
MemberReferenceAnalyzer
.HandlerAddedDescriptor.Id, "AddHandler Mumble, New MumbleEventHandler(AddressOf Mumbler)").WithLocation(7, 9), ' Bug: we are missing diagnostics of "MethodBindingDescriptor" here. https://github.com/dotnet/roslyn/issues/20095
1163
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(7, 20),
1164
Diagnostic(
MemberReferenceAnalyzer
.MethodBindingDescriptor.Id, "AddressOf Mumbler").WithLocation(7, 51),
1165
Diagnostic(
MemberReferenceAnalyzer
.HandlerAddedDescriptor.Id, "AddHandler Mumble, New MumbleEventHandler(Sub(s As Object, a As System.EventArgs)
1167
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(8, 20),
1168
Diagnostic(
MemberReferenceAnalyzer
.HandlerAddedDescriptor.Id, "AddHandler Mumble, Sub(s As Object, a As System.EventArgs)
1170
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(10, 20),
1171
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(12, 20),
1172
Diagnostic(
MemberReferenceAnalyzer
.MethodBindingDescriptor.Id, "AddressOf Mumbler").WithLocation(14, 39),
1173
Diagnostic(
MemberReferenceAnalyzer
.HandlerRemovedDescriptor.Id, "RemoveHandler Mumble, AddressOf Mumbler").WithLocation(16, 9),
1174
Diagnostic(
MemberReferenceAnalyzer
.EventReferenceDescriptor.Id, "Mumble").WithLocation(16, 23),
1175
Diagnostic(
MemberReferenceAnalyzer
.MethodBindingDescriptor.Id, "AddressOf Mumbler").WithLocation(16, 31)