W3cubDocs

/Nim

jsgen

Source Edit

Type info generation for the JS backend.

Imports

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

Procs

proc finalJSCodeGen(graph: ModuleGraph; b: PPassContext; n: PNode): PNode {....raises: [
    Exception, ValueError, KeyError, OSError, IOError, ERecoverableError], 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, OSError, IOError, ERecoverableError], 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

© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/jsgen.html