File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ public static Selection GetVariableStmtContextSelection(this Declaration target)
46
46
}
47
47
48
48
var statement = GetVariableStmtContext ( target ) ?? target . Context ; // undeclared variables don't have a VariableStmtContext
49
-
50
- return new Selection ( statement . Start . Line , statement . Start . Column ,
51
- statement . Stop . Line , statement . Stop . Column ) ;
49
+ return statement . GetSelection ( ) ;
52
50
}
53
51
54
52
/// <summary>
@@ -65,9 +63,7 @@ public static Selection GetConstStmtContextSelection(this Declaration target)
65
63
}
66
64
67
65
var statement = GetConstStmtContext ( target ) ;
68
-
69
- return new Selection ( statement . Start . Line , statement . Start . Column ,
70
- statement . Stop . Line , statement . Stop . Column ) ;
66
+ return statement . GetSelection ( ) ;
71
67
}
72
68
73
69
/// <summary>
@@ -128,7 +124,6 @@ public static bool HasMultipleDeclarationsInStatement(this Declaration target)
128
124
}
129
125
130
126
var statement = target . Context . Parent as VBAParser . VariableListStmtContext ;
131
-
132
127
return statement != null && statement . children . OfType < VBAParser . VariableSubStmtContext > ( ) . Count ( ) > 1 ;
133
128
}
134
129
You can’t perform that action at this time.
0 commit comments