compiler/modules

  Source   Edit

Implements the module handling, including the caching of modules.

Procs

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