Constructs a Module object.
Constructs from a ready-to-use SourceText instance.
Returns the file extension: "d" or "di".
Returns the file path of the source text.
Returns filePath and escapes '/' or '\' with '_'.
Returns the first token of the module's source text.
Returns the fully qualified name of this module. E.g.: dil.ast.Node
Returns the module's FQN with slashes instead of dots. E.g.: dil.ast.Node -> dil/ast/Node
Returns a list of import paths. E.g.: ["dil/ast/Node", "dil/semantic/Module"]
Returns true if there are errors in the source file.
Parses the module.
Sets the module's FQN.
Sets the parser to be used for parsing the source text.
A unique 1-based ID. Useful for graph traversing.
The compilation context.
Set when the Lexer should load the tokens from a file.
True if loading the source file failed.
ImportDeclarations found in this file.
The optional ModuleDecl in this file.
Fully qualified name of the module. E.g.: dil.ast.Node
E.g.: Node
The imported modules.
E.g.: dil.ast
The parser used to parse this file.
The root of the parse tree.
Indicates which passes have been run on this module.
The source file of this module.
The ModuleInfo for this module.
Represents a semantic D module and a source file.