Test for import attributes.
auto visitor = visitImports(q{ public import foo; public static import bar; package(std.regex) import baz; }); auto ids = visitor.importGroups[0]; assert(ids[0].fullName == "foo"); assert(equal(ids[0].attrs, ["public"])); assert(ids[1].fullName == "bar"); assert(equal(ids[1].attrs, ["public", "static"])); assert(ids[2].fullName == "baz"); assert(equal(ids[2].attrs, ["package(std.regex)"]));