Skip to content

Commit b1f162f

Browse files
committed
Remove bug in HasMultipleDeclarationsInStatement()
1 parent b66dacd commit b1f162f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/Common/DeclarationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static bool HasMultipleDeclarationsInStatement(this Declaration target)
7979

8080
var statement = target.Context.Parent as VBAParser.VariableListStmtContext;
8181

82-
return statement != null && statement.children.OfType<VBAParser.VariableSubStmtContext>().Any();
82+
return statement != null && statement.children.OfType<VBAParser.VariableSubStmtContext>().Count() > 1;
8383
}
8484

8585
/// <summary>

0 commit comments

Comments
 (0)