13 references to DoNotUseMemberAssignmentDescriptor
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
744
get { return ImmutableArray.Create(
DoNotUseMemberAssignmentDescriptor
); }
757
Report(operationContext, assignment.Syntax,
DoNotUseMemberAssignmentDescriptor
);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Diagnostics\OperationAnalyzerTests.vb (11)
860
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Prop2 = New Bar() With {.Field = True}").WithLocation(21, 32),
861
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Field = 10").WithLocation(14, 34),
862
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Prop1 = Nothing").WithLocation(15, 32),
863
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Field = 10").WithLocation(16, 32),
864
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Prop1 = Nothing").WithLocation(16, 45),
865
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Prop2 = New Bar() With {.Field = True}").WithLocation(17, 32),
866
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Field = True").WithLocation(17, 57),
867
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, ".Field = True").WithLocation(21, 57),
868
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, "f1.Field = 0").WithLocation(22, 9),
869
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, "f1.Prop1 = Nothing").WithLocation(23, 9),
870
Diagnostic(AssignmentTestAnalyzer.
DoNotUseMemberAssignmentDescriptor
.Id, "f2.Field = True").WithLocation(26, 9))