ImportInfo

Information about one import statement

Members

Functions

effectiveName
string effectiveName()

Returns the rename if available, otherwise the name joined with dots

sameEffectAs
bool sameEffectAs(ImportInfo other)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Returns D source code for this import

Variables

name
string[] name;

Parts of the imported module. (std.stdio -> ["std", "stdio"])

rename
string rename;

Available if the module has been imported renamed

selectives
SelectiveImport[] selectives;

Array of selective imports or empty if the entire module has been imported

start
size_t start;

Index where the import starts in code

Meta