8 references to DoNotUseFieldInitializerDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Diagnostics\OperationAnalyzerTests.cs (3)
881
Diagnostic(MemberInitializerTestAnalyzer.
DoNotUseFieldInitializerDescriptor
.Id, "Field").WithLocation(19, 30),
884
Diagnostic(MemberInitializerTestAnalyzer.
DoNotUseFieldInitializerDescriptor
.Id, "Field").WithLocation(21, 46),
886
Diagnostic(MemberInitializerTestAnalyzer.
DoNotUseFieldInitializerDescriptor
.Id, "Field").WithLocation(22, 52),
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
707
get { return ImmutableArray.Create(
DoNotUseFieldInitializerDescriptor
, DoNotUsePropertyInitializerDescriptor); }
716
Report(operationContext, initializer.Syntax, initializer.Kind == OperationKind.FieldReference ?
DoNotUseFieldInitializerDescriptor
: DoNotUsePropertyInitializerDescriptor);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Diagnostics\OperationAnalyzerTests.vb (3)
811
Diagnostic(MemberInitializerTestAnalyzer.
DoNotUseFieldInitializerDescriptor
.Id, "Field").WithLocation(14, 35),
813
Diagnostic(MemberInitializerTestAnalyzer.
DoNotUseFieldInitializerDescriptor
.Id, "Field").WithLocation(16, 33),
816
Diagnostic(MemberInitializerTestAnalyzer.
DoNotUseFieldInitializerDescriptor
.Id, "Field").WithLocation(17, 58),