@@ -14,12 +14,12 @@ public class UseMeaningfulNameInspectionResult : CodeInspectionResultBase
14
14
{
15
15
private readonly IEnumerable < CodeInspectionQuickFix > _quickFixes ;
16
16
17
- public UseMeaningfulNameInspectionResult ( IInspection inspection , Declaration target , RubberduckParserState parseResult , ICodePaneWrapperFactory wrapperFactory )
17
+ public UseMeaningfulNameInspectionResult ( IInspection inspection , Declaration target , RubberduckParserState parserState , ICodePaneWrapperFactory wrapperFactory )
18
18
: base ( inspection , string . Format ( inspection . Description , target . IdentifierName ) , target )
19
19
{
20
20
_quickFixes = new [ ]
21
21
{
22
- new RenameDeclarationQuickFix ( target . Context , target . QualifiedSelection , target , parseResult , wrapperFactory ) ,
22
+ new RenameDeclarationQuickFix ( target . Context , target . QualifiedSelection , target , parserState , wrapperFactory ) ,
23
23
} ;
24
24
}
25
25
@@ -32,14 +32,14 @@ public UseMeaningfulNameInspectionResult(IInspection inspection, Declaration tar
32
32
public class RenameDeclarationQuickFix : CodeInspectionQuickFix
33
33
{
34
34
private readonly Declaration _target ;
35
- private readonly RubberduckParserState _parseResult ;
35
+ private readonly RubberduckParserState _parserState ;
36
36
private readonly ICodePaneWrapperFactory _wrapperFactory ;
37
37
38
- public RenameDeclarationQuickFix ( ParserRuleContext context , QualifiedSelection selection , Declaration target , RubberduckParserState parseResult , ICodePaneWrapperFactory wrapperFactory )
38
+ public RenameDeclarationQuickFix ( ParserRuleContext context , QualifiedSelection selection , Declaration target , RubberduckParserState parserState , ICodePaneWrapperFactory wrapperFactory )
39
39
: base ( context , selection , string . Format ( RubberduckUI . Rename_DeclarationType , RubberduckUI . ResourceManager . GetString ( "DeclarationType_" + target . DeclarationType , RubberduckUI . Culture ) ) )
40
40
{
41
41
_target = target ;
42
- _parseResult = parseResult ;
42
+ _parserState = parserState ;
43
43
_wrapperFactory = wrapperFactory ;
44
44
}
45
45
@@ -49,7 +49,7 @@ public override void Fix()
49
49
50
50
using ( var view = new RenameDialog ( ) )
51
51
{
52
- var factory = new RenamePresenterFactory ( vbe , view , _parseResult , new MessageBox ( ) , _wrapperFactory ) ;
52
+ var factory = new RenamePresenterFactory ( vbe , view , _parserState , new MessageBox ( ) , _wrapperFactory ) ;
53
53
var refactoring = new RenameRefactoring ( factory , new ActiveCodePaneEditor ( vbe , _wrapperFactory ) , new MessageBox ( ) ) ;
54
54
refactoring . Refactor ( _target ) ;
55
55
}
0 commit comments