# compiler/modules

Dark Mode

- Index

Search:
Group by:
Source Edit

Implements the module handling, including the caching of modules.

# Imports

ast, astalgo, magicsys, msgs, options, idents, lexer, passes, syntaxes, llstream, modulegraphs, lineinfos, pathutils, packages, ic/replayer

# Procs

    proc compileModule(graph: ModuleGraph; fileIdx: FileIndex; flags: TSymFlags;
                       fromModule: PSym = nil): PSym {....raises: [OSError, IOError,
        Exception, KeyError, ValueError, ERecoverableError, EOFError], tags: [
        ReadEnvEffect, ReadIOEffect, WriteDirEffect, ReadDirEffect, RootEffect,
        WriteIOEffect].}

  Source Edit

    proc compileProject(graph: ModuleGraph; projectFileIdx = InvalidFileIdx) {....raises: [
        Exception, ValueError, KeyError, OSError, IOError, ERecoverableError,
        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, Exception, KeyError, 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, OSError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}

  Source Edit

    proc makeModule(graph: ModuleGraph; filename: AbsoluteFile): PSym {....raises: [
        Exception, ValueError, KeyError, OSError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}

  Source Edit

    proc makeModule(graph: ModuleGraph; filename: string): PSym {....raises: [
        Exception, ValueError, KeyError, OSError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}

  Source Edit

    proc makeStdinModule(graph: ModuleGraph): PSym {....raises: [Exception, ValueError,
        KeyError, OSError, 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,
        OSError, IOError, ERecoverableError], tags: [RootEffect, ReadDirEffect,
        WriteIOEffect, ReadIOEffect, ReadEnvEffect].}

  Source Edit