Skip to main content

Module types

Module types 

Source
Expand description

Core data types produced by the component extractor.

All four main types carry an iri_span: Range<usize> — the byte range of the @id value in the source file. Combine it with the source_file field (on CjsModule and ConfigInstance) or with module_iri → CjsModule.source_file (for CjsComponent and CjsParameter) to build an LSP Location for goto-definition responses.

Spans use 0..0 as a sentinel when the source byte range could not be determined (e.g., because the file failed to parse or because the node was synthesised during merging).

Structs§

CjsComponent
A CJS component — a class, abstract class, or singleton instance declared inside a module.
CjsModule
A CJS module — the top-level container declared in a components.jsonld file.
CjsParameter
A single named parameter on a CJS component.
ConfigInstance
A concrete configuration instance — a pre-wired instantiation of a component with specific parameter values, declared in a config/*.jsonld file.

Enums§

ComponentType
Whether a component is a concrete class, an abstract class, or a singleton instance.

Constants§

IRI_ABSTRACT_CLASS
IRI_CLASS
IRI_COMPONENT
IRI_COMPONENT_INSTANCE
IRI_COMPONENT_PATH
IRI_CONSTRUCTOR_ARGUMENTS
IRI_DOAP_NAME
IRI_MODULE
IRI_PARAMETER
IRI_RDFS_COMMENT
IRI_RDFS_RANGE
IRI_RDFS_SEE_ALSO
IRI_RDFS_SUBCLASS_OF
PREFIX_DOAP
PREFIX_OM
PREFIX_OO
PREFIX_OWL
PREFIX_RDF
PREFIX_RDFS
PREFIX_XSD