32 references to LocalCouldHaveMoreSpecificTypeDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Diagnostics\OperationAnalyzerTests.cs (15)
723
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "a").WithArguments("a", "Middle").WithLocation(6, 16),
724
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "b").WithArguments("b", "Value").WithLocation(7, 16),
725
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "c").WithArguments("c", "Base").WithLocation(8, 16),
726
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "d").WithArguments("d", "Derived").WithLocation(10, 14),
727
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "e").WithArguments("e", "Middle").WithLocation(11, 14),
728
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "g").WithArguments("g", "Base").WithLocation(15, 16),
729
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "i").WithArguments("i", "int").WithLocation(20, 16),
730
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "k").WithArguments("k", "Derived").WithLocation(24, 16),
731
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ia").WithArguments("ia", "IMiddle").WithLocation(34, 16),
732
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ic").WithArguments("ic", "IBase1").WithLocation(35, 16),
733
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "id").WithArguments("id", "IDerived").WithLocation(37, 16),
734
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ie").WithArguments("ie", "IMiddle").WithLocation(38, 16),
735
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ig").WithArguments("ig", "IBase1").WithLocation(42, 16),
736
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ik").WithArguments("ik", "IDerived").WithLocation(47, 17),
737
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "im").WithArguments("im", "IDerived").WithLocation(51, 16),
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
39
get { return ImmutableArray.Create(
LocalCouldHaveMoreSpecificTypeDescriptor
, FieldCouldHaveMoreSpecificTypeDescriptor); }
128
Report(operationBlockEndContext, local, mostSpecificSourceType,
LocalCouldHaveMoreSpecificTypeDescriptor
);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Diagnostics\OperationAnalyzerTests.vb (15)
648
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "a").WithArguments("a", "Middle").WithLocation(3, 13),
649
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "b").WithArguments("b", "Value").WithLocation(4, 13),
650
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "c").WithArguments("c", "Base").WithLocation(5, 13),
651
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "d").WithArguments("d", "Derived").WithLocation(7, 13),
652
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "e").WithArguments("e", "Middle").WithLocation(8, 13),
653
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "g").WithArguments("g", "Base").WithLocation(12, 13),
654
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "i").WithArguments("i", "Integer").WithLocation(17, 13),
655
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "k").WithArguments("k", "Derived").WithLocation(21, 13),
656
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ia").WithArguments("ia", "IMiddle").WithLocation(31, 13),
657
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ic").WithArguments("ic", "IBase1").WithLocation(32, 13),
658
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "id").WithArguments("id", "IDerived").WithLocation(34, 13),
659
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ie").WithArguments("ie", "IMiddle").WithLocation(35, 13),
660
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ig").WithArguments("ig", "IBase1").WithLocation(39, 13),
661
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "ik").WithArguments("ik", "IDerived").WithLocation(44, 13),
662
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.
LocalCouldHaveMoreSpecificTypeDescriptor
.Id, "im").WithArguments("im", "IDerived").WithLocation(48, 13),