@@ -22,12 +22,20 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
2222
2323 var declarations = from item in results
2424 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
26+ new ObsoleteTypeHintInspectionResult ( this ,
27+ string . Format ( InspectionsUI . ObsoleteTypeHintInspectionResultFormat ,
28+ InspectionsUI . Inspections_Declaration , item . DeclarationType . ToString ( ) . ToLower ( ) ,
29+ item . IdentifierName ) , new QualifiedContext ( item . QualifiedName , item . Context ) , item ) ;
30+
2831 var references = from item in results . SelectMany ( d => d . References )
2932 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 ) ;
33+ select
34+ new ObsoleteTypeHintInspectionResult ( this ,
35+ string . Format ( InspectionsUI . ObsoleteTypeHintInspectionResultFormat ,
36+ InspectionsUI . Inspections_Usage , item . Declaration . DeclarationType . ToString ( ) . ToLower ( ) ,
37+ item . IdentifierName ) , new QualifiedContext ( item . QualifiedModuleName , item . Context ) ,
38+ item . Declaration ) ;
3139
3240 return declarations . Union ( references ) ;
3341 }
0 commit comments