injectdestructors

Injects destructor calls into Nim code as well as an optimizer that optimizes copies to moves. This is implemented as an AST to AST transformation so that every backend benefits from it.See doc/destructors.rst for a spec of the implemented rewrite rules

Imports

ast, astalgo, msgs, renderer, magicsys, types, idents, options, dfa, lowerings, modulegraphs, msgs, lineinfos, parampatterns, sighashes, liftdestructors, optimizer, varpartitions, trees

Procs

proc injectDestructorCalls(g: ModuleGraph; owner: PSym; n: PNode): PNode {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
Source Edit

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