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)
toString
string toString()

Returns D source code for this import

Static functions

cmp
int cmp(ImportInfo a, ImportInfo b)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

isPublic
bool isPublic;

If this is an explicitly public import (not checking potential attributes spanning this)

isStatic
bool isStatic;

If this is an explicityl static import (not checking potential attributes spanning this)

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 first token of the import declaration starts, possibly including attributes.

Meta