Skip to content

[aslref] complete annotations for all left-/right- hand side expressions - #1924

Closed
Roman-Manevich wants to merge 1 commit into
masterfrom
asl-type-annotation-completion
Closed

[aslref] complete annotations for all left-/right- hand side expressions#1924
Roman-Manevich wants to merge 1 commit into
masterfrom
asl-type-annotation-completion

Conversation

@Roman-Manevich

Copy link
Copy Markdown
Collaborator

This PR adds an optional post-typechecking pass that completes missing expression and assignable-expression type annotations in the typed AST. Enabling this pass is done in code by turning complete_type_annotations to true in the configuration for Typing/ANNOTATE_CONFIG.

The pass preserves existing typechecker annotations and fills holes introduced by normalization, inserted parameters, and synthesized base values. Where precise typing information is unavailable, normalized integer expressions and inserted parameters receive an unconstrained integer type.

This completion is consumer-facing metadata and is not part of the ASL type system. It does not change typing judgments or the resulting static environment. It runs only after successful strict typechecking.

Testing
ran dune runtest asllib with completion and validation switches turned on (they are turned off by default).

This PR is AI-assisted.

@Roman-Manevich
Roman-Manevich requested review from HadrienRenaud and hrutvik and removed request for hrutvik July 21, 2026 21:42
@Roman-Manevich
Roman-Manevich marked this pull request as ready for review July 21, 2026 21:43
@Roman-Manevich
Roman-Manevich force-pushed the asl-type-annotation-completion branch from 2b8b5dd to 61b2138 Compare July 22, 2026 12:49
@Roman-Manevich
Roman-Manevich deleted the asl-type-annotation-completion branch August 4, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant