Skip to content

Commit f9c63a0

Browse files
committed
Merge pull request #904 from Hosch250/BugBlipper
Fix bug in HasMultipleDeclarationsInStatement()
2 parents d374061 + 0339fd6 commit f9c63a0

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)