compiler/backend/cgmeth

  Source   Edit

This module implements code generation for methods.

Procs

proc generateMethodDispatchers(g: ModuleGraph) {.
    ...raises: [Exception, KeyError, ERecoverableError],
    tags: [RootEffect, ReadDirEffect].}
For each method dispatcher, generates the body and updates the definition. This procedure must only be called once, and only after all methods were registered.   Source   Edit
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, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc methodDef(g: ModuleGraph; idgen: IdGenerator; s: PSym) {.
    ...raises: [Exception, KeyError, ERecoverableError],
    tags: [RootEffect, ReadDirEffect].}
  Source   Edit

Iterators

iterator dispatchers(g: ModuleGraph): PSym {....raises: [], tags: [].}
  Source   Edit