@@ -41,8 +41,8 @@ private ArgContext GetArgContextForIdentifier(ParserRuleContext context, string
41
41
{
42
42
if ( procStmtCtxChildren [ idx ] is ArgListContext )
43
43
{
44
- var procStmtCtxChild = ( ArgListContext ) procStmtCtxChildren [ idx ] ;
45
- var arg = procStmtCtxChild . children ;
44
+ var argListContext = ( ArgListContext ) procStmtCtxChildren [ idx ] ;
45
+ var arg = argListContext . children ;
46
46
for ( int idx2 = 0 ; idx2 < arg . Count ; idx2 ++ )
47
47
{
48
48
if ( arg [ idx2 ] is ArgContext )
@@ -99,13 +99,13 @@ private string GenerateByRefReplacementLine(TerminalNodeImpl terminalNodeImpl)
99
99
100
100
return ReplaceAtIndex ( byValTokenLine , Tokens . ByVal , Tokens . ByRef , terminalNodeImpl . Symbol . Column ) ;
101
101
}
102
- private string ReplaceAtIndex ( string input , string toReplace , string replacement , int index )
102
+ private string ReplaceAtIndex ( string input , string toReplace , string replacement , int startIndex )
103
103
{
104
- int stopIndex = index + toReplace . Length ;
105
- var prefix = input . Substring ( 0 , index ) ;
104
+ int stopIndex = startIndex + toReplace . Length ;
105
+ var prefix = input . Substring ( 0 , startIndex ) ;
106
106
var suffix = input . Substring ( stopIndex + 1 ) ;
107
- var target = input . Substring ( index , stopIndex - index + 1 ) ;
108
- return prefix + target . Replace ( toReplace , replacement ) + suffix ;
107
+ var tokenToBeReplaced = input . Substring ( startIndex , stopIndex - startIndex + 1 ) ;
108
+ return prefix + tokenToBeReplaced . Replace ( toReplace , replacement ) + suffix ;
109
109
}
110
110
private void ReplaceModuleLine ( int lineNumber , string replacementLine )
111
111
{
0 commit comments