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.jsonldfile. - CjsParameter
- A single named parameter on a CJS component.
- Config
Instance - A concrete configuration instance — a pre-wired instantiation of a component
with specific parameter values, declared in a
config/*.jsonldfile.
Enums§
- Component
Type - Whether a component is a concrete class, an abstract class, or a singleton instance.