modules

Implements the module handling, including the caching of modules.

Imports

ast, astalgo, magicsys, msgs, options, idents, lexer, idgen, passes, syntaxes, llstream, modulegraphs, rod, lineinfos, pathutils

Procs

proc resetSystemArtifacts(g: ModuleGraph) {...}{.raises: [], tags: [].}
Source Edit
proc compileModule(graph: ModuleGraph; fileIdx: FileIndex; flags: TSymFlags): PSym {...}{.raises: [
    Exception, ValueError, IOError, ERecoverableError, KeyError, OSError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc importModule(graph: ModuleGraph; s: PSym; fileIdx: FileIndex): PSym {...}{.raises: [
    Exception, ValueError, IOError, ERecoverableError, KeyError, OSError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc includeModule(graph: ModuleGraph; s: PSym; fileIdx: FileIndex): PNode {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError, KeyError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc connectCallbacks(graph: ModuleGraph) {...}{.raises: [], tags: [].}
Source Edit
proc compileSystemModule(graph: ModuleGraph) {...}{.raises: [KeyError, Exception,
    OSError, ValueError, IOError, ERecoverableError], tags: [ReadDirEffect,
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
Source Edit
proc wantMainModule(conf: ConfigRef) {...}{.raises: [Exception, ValueError, IOError,
    ERecoverableError, KeyError], tags: [RootEffect, WriteIOEffect,
    ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc compileProject(graph: ModuleGraph; projectFileIdx = InvalidFileIdx) {...}{.raises: [
    Exception, ValueError, IOError, ERecoverableError, KeyError, OSError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc makeModule(graph: ModuleGraph; filename: AbsoluteFile): PSym {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError, KeyError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc makeModule(graph: ModuleGraph; filename: string): PSym {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError, KeyError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc makeStdinModule(graph: ModuleGraph): PSym {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError, KeyError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/modules.html