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, ERecoverableError, ValueError, EOFError], tags: [ ReadEnvEffect, ReadIOEffect, WriteDirEffect, ReadDirEffect, RootEffect, WriteIOEffect].}
- Source Edit
proc compileProject(graph: ModuleGraph; projectFileIdx = InvalidFileIdx) {....raises: [ Exception, ERecoverableError, KeyError, OSError, IOError, ValueError, EOFError], tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect, WriteIOEffect].}
- Source Edit
proc compileSystemModule(graph: ModuleGraph) {....raises: [KeyError, Exception, OSError, IOError, ERecoverableError, ValueError, 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, ERecoverableError, ValueError, EOFError], tags: [ReadEnvEffect, ReadIOEffect, WriteDirEffect, ReadDirEffect, RootEffect, WriteIOEffect].}
- this is called by the semantic checking phase Source Edit
proc includeModule(graph: ModuleGraph; s: PSym; fileIdx: FileIndex): PNode {. ...raises: [Exception, ERecoverableError, IOError, ValueError, KeyError], tags: [RootEffect, ReadIOEffect, ReadDirEffect, WriteIOEffect].}
- Source Edit
proc makeModule(graph: ModuleGraph; filename: AbsoluteFile): PSym {. ...raises: [Exception, ERecoverableError, KeyError], tags: [RootEffect, ReadDirEffect].}
- Source Edit
proc makeModule(graph: ModuleGraph; filename: string): PSym {. ...raises: [Exception, ERecoverableError, KeyError], tags: [RootEffect, ReadDirEffect].}
- Source Edit
proc makeStdinModule(graph: ModuleGraph): PSym {. ...raises: [Exception, ERecoverableError, KeyError], tags: [RootEffect, ReadDirEffect].}
- Source Edit
proc resetSystemArtifacts(g: ModuleGraph) {....raises: [], tags: [].}
- Source Edit
proc wantMainModule(conf: ConfigRef) {....raises: [Exception, ERecoverableError, KeyError], tags: [RootEffect, ReadDirEffect].}
- Source Edit