cgmeth

This module implements code generation for methods.

Imports

options, ast, msgs, idents, renderer, types, magicsys, sempass2, modulegraphs, lineinfos

Procs

proc getDispatcher(s: PSym): PSym {...}{.raises: [], tags: [].}
can return nil if is has no dispatcher. Source Edit
proc methodCall(n: PNode; conf: ConfigRef): PNode {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
Source Edit
proc methodDef(g: ModuleGraph; s: PSym; fromCache: bool) {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
Source Edit
proc generateMethodDispatchers(g: ModuleGraph): 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/cgmeth.html