# jsgen

Theme:

- Index

Search:
Group by:
Source Edit

Type info generation for the JS backend.

# Imports

ast, trees, magicsys, options, nversion, msgs, idents, types, ropes, ccgutils, wordrecg, renderer, cgmeth, lowerings, sighashes, modulegraphs, lineinfos, rodutils, transf, injectdestructors, sourcemap, astmsgs, backendpragmas, pipelineutils

# Procs

    proc finalJSCodeGen(graph: ModuleGraph; b: PPassContext; n: PNode): PNode {....raises: [
        Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect,
        TimeEffect, WriteDirEffect], forbids: [].}

  Finalize JS code generation of a Nim module. Param `n` may contain nodes returned from the last module close call. Source Edit

    proc processJSCodeGen(b: PPassContext; n: PNode): PNode {....raises: [Exception,
        ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect,
        TimeEffect], forbids: [].}

  Generate JS code for a node. Source Edit

    proc setupJSgen(graph: ModuleGraph; s: PSym; idgen: IdGenerator): PPassContext {.
        ...raises: [], tags: [], forbids: [].}

  Source Edit

# Templates

    template config(p: PProc): ConfigRef

  Source Edit