# compiler/cgmeth

Dark Mode

- Index

Search:
Group by:
Source Edit

This module implements code generation for methods.

# Imports

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

# 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