Expand description
Editable program representations for JavaScript, Rust, Lean, and Rocq.
Structs§
- Program
Binding - A resolved declaration and its exact references.
- Program
Construct - One semantic construct coverage record.
- Program
Diagnostic - Parse diagnostic retained in the representation.
- Program
Expansion - A macro, notation or tagged template use with the source it expands to.
- Program
Fact - Generic semantic fact with source evidence.
- Program
Project Context - Project files and dependency names available during analysis.
- Program
Project Module - An entry module request resolved to a project file.
- Program
Project Reference - An entry range linked to the declaration it names, identified as
<file>#<qualified name>. - Program
Project Source - One project file by project-relative path.
- Program
Range - Source range in UTF-8 byte offsets.
- Program
Representation - CST-backed resolved program model.
- Program
Scope - One lexical scope.
- Program
Source Mapping - CST node to semantic fact source mapping.
Enums§
- Program
Construct Status - Representation state for one required semantic construct.
- Program
Representation Error - Semantic analysis or binding-safe edit failure.
Constants§
- PROGRAM_
REPRESENTATION_ SCHEMA_ VERSION - Schema revision for four-language program representations.
- PROGRAM_
SNAPSHOT_ SCHEMA_ VERSION - Schema revision for source-buffer-independent program snapshots.
- SEMANTIC_
CONSTRUCTS - Semantic construct categories audited for every four-language frontend.
Functions§
- analyze_
program - Analyzes a four-language program with project context.
- analyze_
program_ decorated analyze_programafter thecst-to-astdecorators ofdecorators.- construct_
program - Constructs a program and rejects syntax that cannot be represented cleanly.
- construct_
program_ from_ fragments - Constructs a clean program from ordered structured source fragments.