typekeys

Source   Edit  

Based on sighashes.nim but works on astdef directly as we need it in ast2nif.nim. Also produces more readable names thanks to treemangler.

Types

SymLoader = proc (s: PSym) {.nimcall.}
Source   Edit  
TypeLoader = proc (t: PType) {.nimcall.}
Source   Edit  

Procs

proc cachedModuleSuffix(config: ConfigRef; fileIdx: FileIndex): string {.
    ...raises: [Exception, OSError], tags: [RootEffect], forbids: [].}
Gets or computes the module suffix for a FileIndex. For NIF modules, the suffix is already stored in the file info. For source files, computes it from the path. Source   Edit  
proc modname(module: int; conf: ConfigRef): string {.
    ...raises: [Exception, OSError], tags: [RootEffect], forbids: [].}
Source   Edit  
proc modname(module: PSym; conf: ConfigRef): string {.
    ...raises: [Exception, OSError], tags: [RootEffect], forbids: [].}
Source   Edit  
proc typeKey(t: PType; conf: ConfigRef; tl: TypeLoader; sl: SymLoader): string {.
    ...raises: [Exception, OSError], tags: [RootEffect], forbids: [].}
Source   Edit