ImportIdentifiers

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

Constructors

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

Members

Functions

bindNames
string[] 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

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

Examples

Test for binding.

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

Meta