# sighashes

Theme:

- Index

Search:
Group by:
Source Edit

Computes hash values for routine (proc, method etc) signatures.

# Imports

ast, ropes, modulegraphs, options, msgs, pathutils, types

# Types

    ConsiderFlag = enum
      CoProc, CoType, CoOwnerSig, CoIgnoreRange, CoIgnoreRangeInArray,
      CoConsiderOwned, CoDistinct, CoHashTypeInsideNode

  Source Edit

# Procs

    proc hashNonProc(s: PSym): SigHash {....raises: [], tags: [], forbids: [].}

  Source Edit

    proc hashOwner(s: PSym): SigHash {....raises: [], tags: [], forbids: [].}

  Source Edit

    proc hashType(t: PType; conf: ConfigRef; flags: set[ConsiderFlag] = {CoType}): SigHash {....raises: [
        OSError, Exception, ValueError, KeyError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect],
        forbids: [].}

  Source Edit

    proc idOrSig(s: PSym; currentModule: string;
                 sigCollisions: var CountTable[SigHash]; conf: ConfigRef): Rope {....raises: [
        OSError, Exception, ValueError, KeyError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect],
        forbids: [].}

  Source Edit

    proc sigHash(s: PSym; conf: ConfigRef): SigHash {....raises: [OSError, Exception,
        ValueError, KeyError, IOError, ERecoverableError], tags: [RootEffect,
        ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect], forbids: [].}

  Source Edit

    proc symBodyDigest(graph: ModuleGraph; sym: PSym): SigHash {....raises: [OSError,
        Exception, ValueError, KeyError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect],
        forbids: [].}

  Source Edit