compiler/commands

  Source   Edit

Types

TCmdLinePass = enum
  passCmd1, passCmd2, passPP
  Source   Edit

Procs

proc handleCmdInput(conf: ConfigRef) {....raises: [OSError],
                                       tags: [ReadEnvEffect, ReadIOEffect].}
  Source   Edit
proc handleStdinInput(conf: ConfigRef) {....raises: [OSError],
    tags: [ReadEnvEffect, ReadIOEffect].}
  Source   Edit
proc parseCommand(command: string): Command {....raises: [], tags: [].}
  Source   Edit
proc processArgument(pass: TCmdLinePass; p: OptParser; argsCount: var int;
                     config: ConfigRef): bool {....raises: [], tags: [].}
  Source   Edit
proc processCommand(switch: string; pass: TCmdLinePass; config: ConfigRef) {....raises: [
    Exception, ValueError, KeyError, OSError, IOError, ERecoverableError,
    EOFError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect,
                      ReadEnvEffect, WriteDirEffect, WriteEnvEffect].}
  Source   Edit
proc processSpecificNote(arg: string; state: TSpecialWord; pass: TCmdLinePass;
                         info: TLineInfo; orig: string; conf: ConfigRef) {....raises: [
    Exception, ValueError, KeyError, OSError, IOError, ERecoverableError], tags: [
    RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
  Source   Edit
proc processSwitch(pass: TCmdLinePass; p: OptParser; config: ConfigRef) {....raises: [
    Exception, ValueError, KeyError, OSError, IOError, ERecoverableError,
    EOFError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect,
                      ReadEnvEffect, WriteDirEffect, WriteEnvEffect].}
  Source   Edit
proc processSwitch(switch, arg: string; pass: TCmdLinePass; info: TLineInfo;
                   conf: ConfigRef) {....raises: [Exception, ValueError, KeyError,
    OSError, IOError, ERecoverableError, EOFError, Exception, ValueError,
    KeyError, OSError, IOError, ERecoverableError, Exception, ValueError,
    KeyError, OSError, IOError, ERecoverableError], tags: [RootEffect,
    ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, WriteDirEffect,
    WriteEnvEffect].}
  Source   Edit
proc setCmd(conf: ConfigRef; cmd: Command) {....raises: [], tags: [].}
sets cmd, backend so subsequent flags can query it (e.g. so --gc:arc can be ignored for backendJs)   Source   Edit
proc setCommandEarly(conf: ConfigRef; command: string) {....raises: [], tags: [].}
  Source   Edit
proc testCompileOption(conf: ConfigRef; switch: string; info: TLineInfo): bool {....raises: [
    Exception, ValueError, KeyError, OSError, IOError, ERecoverableError], tags: [
    RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
  Source   Edit
proc testCompileOptionArg(conf: ConfigRef; switch, arg: string; info: TLineInfo): bool {....raises: [
    Exception, ValueError, KeyError, OSError, IOError, ERecoverableError], tags: [
    RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
  Source   Edit
proc writeCommandLineUsage(conf: ConfigRef) {.
    ...raises: [Exception, IOError, ValueError], tags: [RootEffect, WriteIOEffect].}
  Source   Edit