fixing by package grouping
This commit is contained in:
parent
345e394b01
commit
1acd642eb2
|
@ -129,7 +129,7 @@ struct ASTInformation
|
||||||
|
|
||||||
foreach(i, imp;sortedImports)
|
foreach(i, imp;sortedImports)
|
||||||
{
|
{
|
||||||
if (i > 0 && imp.importStrings.length > 1)
|
if (i > 0)
|
||||||
{
|
{
|
||||||
const prev = sortedImports[i-1];
|
const prev = sortedImports[i-1];
|
||||||
if (prev.importStrings.length < 2
|
if (prev.importStrings.length < 2
|
||||||
|
@ -142,7 +142,8 @@ struct ASTInformation
|
||||||
|
|
||||||
result[idx].importString = imp.importStrings.join(".");
|
result[idx].importString = imp.importStrings.join(".");
|
||||||
result[idx].renamedAs = imp.renamedAs;
|
result[idx].renamedAs = imp.renamedAs;
|
||||||
result[idx++].attribString = imp.attribString;
|
result[idx].attribString = imp.attribString;
|
||||||
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = result[0 .. idx];
|
result = result[0 .. idx];
|
||||||
|
|
Loading…
Reference in New Issue