type

Lib

@Js
const mixin Lib : Dict

Versioned library module of specs and defs. Use XetoEnv.lib to load libraries.

Lib dict representation:

  • id: Ref "lib:{name}"
  • spec: Ref "sys::Lib"
  • loaded: marker tag if loaded into memory
  • meta

methods

_id

Return "lib:{name}" as identifier This is a temp shim until we move haystack::Dict fully into Xeto.

depends

List the dependencies

instance

Lookup an instance dict by its simple name

instances

List the instance data dicts declared in this library

meta

Meta data for library

name

Dotted name of the library

type

Lookup a top level type spec in this library by simple name

types

List the top level types

version

Version of this library

Slot Details

_id

abstract Ref _id()

Return "lib:{name}" as identifier This is a temp shim until we move haystack::Dict fully into Xeto.

depends

abstract LibDepend[] depends()

List the dependencies

instance

abstract Dict? instance(Str name, Bool checked := true)

Lookup an instance dict by its simple name

instances

abstract Dict[] instances()

List the instance data dicts declared in this library

meta

abstract Dict meta()

Meta data for library

name

abstract Str name()

Dotted name of the library

type

abstract Spec? type(Str name, Bool checked := true)

Lookup a top level type spec in this library by simple name

types

abstract Spec[] types()

List the top level types

version

abstract Version version()

Version of this library