ImportIdentifiers

Data type for identifiers in an import declaration. import mod : binds, ...;

Constructors

this
this(Attribute[] attributes, SingleImport si, ImportBind[] binds)
Undocumented in source.

Members

Functions

attrs
auto attrs()
Undocumented in source. Be warned that the author may not have intended to support it.
bindNames
auto bindNames()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(ImportIdentifiers that)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

attributes
Attribute[] attributes;
Undocumented in source.
binds
ImportBind[] binds;
Undocumented in source.
singleImport
SingleImport singleImport;
Undocumented in source.

Examples

Test for binding.

auto visitor = visitImports(q{
    import foo : aa, bb, cc;
  });
assert(visitor.importGroups[0][0].name == "foo");
assert(equal(visitor.importGroups[0][0].bindNames, ["aa", "bb", "cc"]));

Meta