17 references to FieldCouldHaveMoreSpecificTypeDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Diagnostics\OperationAnalyzerTests.cs (15)
738
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fa").WithArguments("C.fa", "Middle").WithLocation(56, 12),
739
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fb").WithArguments("C.fb", "Value").WithLocation(57, 12),
740
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fc").WithArguments("C.fc", "Base").WithLocation(58, 12),
741
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fd").WithArguments("C.fd", "Derived").WithLocation(59, 10),
742
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fe").WithArguments("C.fe", "Middle").WithLocation(60, 10),
743
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fg").WithArguments("C.fg", "Base").WithLocation(62, 12),
744
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fi").WithArguments("C.fi", "int").WithLocation(64, 12),
745
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fk").WithArguments("C.fk", "Derived").WithLocation(66, 12),
746
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fia").WithArguments("C.fia", "IMiddle").WithLocation(75, 12),
747
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fic").WithArguments("C.fic", "IBase1").WithLocation(76, 12),
748
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fid").WithArguments("C.fid", "IDerived").WithLocation(77, 12),
749
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fie").WithArguments("C.fie", "IMiddle").WithLocation(78, 12),
750
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fig").WithArguments("C.fig", "IBase1").WithLocation(80, 12),
751
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fik").WithArguments("C.fik", "IDerived").WithLocation(82, 13),
752
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
FieldCouldHaveMoreSpecificTypeDescriptor
.Id, "fim").WithArguments("C.fim", "IDerived").WithLocation(86, 12));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
39
get { return ImmutableArray.Create(LocalCouldHaveMoreSpecificTypeDescriptor,
FieldCouldHaveMoreSpecificTypeDescriptor
); }
155
Report(compilationEndContext, field, mostSpecificSourceType,
FieldCouldHaveMoreSpecificTypeDescriptor
);