From 1acd642eb2aeee75184518e66e991a67fd975306 Mon Sep 17 00:00:00 2001 From: Stefan Koch Date: Tue, 28 Nov 2017 13:34:07 +0100 Subject: [PATCH] fixing by package grouping --- src/dfmt/ast_info.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dfmt/ast_info.d b/src/dfmt/ast_info.d index ceb2197..a771e3f 100644 --- a/src/dfmt/ast_info.d +++ b/src/dfmt/ast_info.d @@ -129,7 +129,7 @@ struct ASTInformation foreach(i, imp;sortedImports) { - if (i > 0 && imp.importStrings.length > 1) + if (i > 0) { const prev = sortedImports[i-1]; if (prev.importStrings.length < 2 @@ -142,7 +142,8 @@ struct ASTInformation result[idx].importString = imp.importStrings.join("."); result[idx].renamedAs = imp.renamedAs; - result[idx++].attribString = imp.attribString; + result[idx].attribString = imp.attribString; + idx++; } result = result[0 .. idx];