compiler/cgmeth

  Source   Edit

This module implements code generation for methods.

Procs

proc generateMethodDispatchers(g: ModuleGraph): PNode {....raises: [Exception,
    KeyError, ValueError, OSError, IOError, ERecoverableError], tags: [
    RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
  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,
    ValueError, KeyError, OSError, IOError, ERecoverableError], tags: [
    RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
  Source   Edit
proc methodDef(g: ModuleGraph; idgen: IdGenerator; s: PSym) {....raises: [
    Exception, KeyError, ValueError, OSError, IOError, ERecoverableError], tags: [
    RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
  Source   Edit