packages

Search:
Group by:
Source   Edit  

Package related procs.

See Also:

  • packagehandling for package path handling
  • modulegraphs.getPackage
  • modulegraphs.belongsToStdlib

Procs

proc belongsToProjectPackage(conf: ConfigRef; sym: PSym): bool {.
    ...raises: [Exception, OSError, KeyError, ValueError, IOError], tags: [
    RootEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect],
    forbids: [].}

Return whether the symbol belongs to the project's package.

See Also:

  • modulegraphs.belongsToStdlib
Source   Edit  
proc belongsToProjectPackageMaybeNil(conf: ConfigRef; sym: PSym): bool {.
    ...raises: [Exception, OSError, KeyError, ValueError, IOError], tags: [
    RootEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect],
    forbids: [].}

Return whether the symbol belongs to the project's package. Returns false if sym is nil.

See Also:

  • modulegraphs.belongsToStdlib
Source   Edit  
proc getPackage(conf: ConfigRef; cache: IdentCache; fileIdx: FileIndex): PSym {.
    ...raises: [KeyError], tags: [ReadDirEffect], forbids: [].}

Return a new package symbol.

See Also:

  • modulegraphs.getPackage
Source   Edit  
proc getPackageId(sym: PSym): int {....raises: [Exception, OSError, KeyError,
    ValueError, IOError], tags: [RootEffect, WriteIOEffect, ReadEnvEffect,
                                 ReadIOEffect, ReadDirEffect], forbids: [].}
Return the owning package ID. Source   Edit  
proc getPackageSymbol(sym: PSym): PSym {.
    ...raises: [Exception, OSError, KeyError, ValueError, IOError], tags: [
    RootEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect],
    forbids: [].}
Return the owning package symbol. Source   Edit