Sibling articles under this feature previously restated requirements in inconsistent forms.
AST and HIR shape contract
Platform spec feature
AST and HIR shape contract
Spec standingStandard
-
This feature hub owns normative MUST/SHOULD contract text for AST and HIR shape contract.
Context
Decision
This feature hub owns normative MUST/SHOULD contract text. Sibling articles must not redefine hub requirements and should link here for authority.
Consequences
Contract changes start on the hub or in linked ADRs, then propagate to articles and implementation anchors.
Verification anchors
site/website/src/content/docs/platform-spec/compiler/front-end/ast-hir-shape-contract/index.mdxarticle bundle under the same feature directory.
-
Platform-spec text supersedes informal crate comments for AST and HIR shape contract.
Context
Implementation crates accumulated informal notes that diverged from published contracts.
Decision
Normative platform-spec prose and ADRs under this feature supersede informal comments in implementation crates until explicitly migrated into spec text.
Consequences
Engineers file spec/ADR updates when behavior changes; crate comments are non-authoritative for conformance arguments.
Verification anchors
compiler/crates/beskid_analysis/src/syntax/items/compiler/crates/beskid_analysis/src/resolve/items.rscompiler/crates/beskid_analysis/src/analysis/
-
This feature hub defines the normative contract for **ast and hir shape contract** and links newcomer-oriented reference
Context
This feature hub defines the normative contract for ast and hir shape contract and links newcomer-oriented reference articles.
Decision
The reference compiler must implement AST and HIR shape contract as documented in this feature hub and its article bundle.
Consequences
Changes require hub/ADR updates and verification anchor extensions.
Verification anchors
compiler/crates/beskid_analysis/src/syntax/items/compiler/crates/beskid_analysis/src/resolve/items.rscompiler/crates/beskid_analysis/src/analysis/
- AST and HIR shape contract - Contracts and edge cases States the normative guarantees and what happens at boundaries or failure edges.
- AST and HIR shape contract - Design model Explains the persistent concepts, entities, and boundaries this feature relies on.
- AST and HIR shape contract - Examples Gives concrete newcomer-friendly scenarios mapped to real compiler paths.
- AST and HIR shape contract - FAQ and troubleshooting Answers common operator and contributor questions with practical next checks.
- AST and HIR shape contract - Flow and algorithm Walks through runtime/order-of-operations behavior in the implementation.
- AST and HIR shape contract - Verification and traceability Shows how the team proves this feature works and where evidence lives.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
This feature hub defines the normative contract for ast and hir shape contract and links newcomer-oriented reference articles.
Implementation anchors
Section titled “Implementation anchors”compiler/crates/beskid_analysis/src/syntax/items/exposes AST-like syntax node shapes.compiler/crates/beskid_analysis/src/resolve/items.rsmaps parsed items into resolved structures.compiler/crates/beskid_analysis/src/analysis/consumes those shapes for semantic passes.
Decisions
Section titled “Decisions”No open decisions. Closed choices are normative ADRs under adr/ (D-COMP-FRONT-0001 … D-COMP-FRONT-0003); use the reader ADRs tab for expandable detail.