@@ -22,12 +22,18 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
22
22
23
23
var declarations = from item in results
24
24
where item . HasTypeHint ( )
25
- // bug: this inspection result only has one value. Why are we passing two in?
26
- select new ObsoleteTypeHintInspectionResult ( this , string . Format ( InspectionsUI . ObsoleteTypeHintInspectionResultFormat , InspectionsUI . Inspections_Declaration , item . DeclarationType . ToString ( ) . ToLower ( ) , item . IdentifierName ) , new QualifiedContext ( item . QualifiedName , item . Context ) , item ) ;
27
- // todo: localize this InspectionResultFormat properly
25
+ select new ObsoleteTypeHintInspectionResult ( this ,
26
+ string . Format ( InspectionsUI . ObsoleteTypeHintInspectionResultFormat ,
27
+ InspectionsUI . Inspections_Declaration , item . DeclarationType . ToString ( ) . ToLower ( ) ,
28
+ item . IdentifierName ) , new QualifiedContext ( item . QualifiedName , item . Context ) , item ) ;
29
+
28
30
var references = from item in results . SelectMany ( d => d . References )
29
31
where item . HasTypeHint ( )
30
- select new ObsoleteTypeHintInspectionResult ( this , string . Format ( InspectionsUI . ObsoleteTypeHintInspectionResultFormat , InspectionsUI . Inspections_Usage , item . Declaration . DeclarationType . ToString ( ) . ToLower ( ) , item . IdentifierName ) , new QualifiedContext ( item . QualifiedModuleName , item . Context ) , item . Declaration ) ;
32
+ select new ObsoleteTypeHintInspectionResult ( this ,
33
+ string . Format ( InspectionsUI . ObsoleteTypeHintInspectionResultFormat ,
34
+ InspectionsUI . Inspections_Usage , item . Declaration . DeclarationType . ToString ( ) . ToLower ( ) ,
35
+ item . IdentifierName ) , new QualifiedContext ( item . QualifiedModuleName , item . Context ) ,
36
+ item . Declaration ) ;
31
37
32
38
return declarations . Union ( references ) ;
33
39
}
0 commit comments