Skip to content

feat: resolve built in constants in graph without environment#2519

Merged
EagleoutIce merged 3 commits into
mainfrom
2518-resolve-built-in-constants-in-resolveidtovalue
May 29, 2026
Merged

feat: resolve built in constants in graph without environment#2519
EagleoutIce merged 3 commits into
mainfrom
2518-resolve-built-in-constants-in-resolveidtovalue

Conversation

@EagleoutIce
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables graph-only resolution of built-in constants by representing resolved built-in constant targets as value vertices carrying their abstract value.

Changes:

  • Adds optional precomputed value storage to value vertices.
  • Inserts value vertices for built-in constant read targets.
  • Updates alias tracking and tests to resolve T, F, and TRUE without an environment.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/dataflow/graph/vertex.ts Extends value vertices with an optional abstract Value.
src/dataflow/internal/process/functions/call/built-in/built-in-expression-list.ts Adds synthetic value vertices for built-in constant read targets.
src/dataflow/eval/resolve/alias-tracking.ts Uses stored value-vertex values before falling back to AST-id lookup.
test/functionality/dataflow/main/atomic/dataflow-atomic.test.ts Adds graph expectations for built-in constant aliases.
test/functionality/dataflow/environments/resolve.test.ts Adds graph-only and environment resolution tests for built-in constants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/dataflow/internal/process/functions/call/built-in/built-in-expression-list.ts Outdated
@EagleoutIce EagleoutIce merged commit 9878134 into main May 29, 2026
19 checks passed
@EagleoutIce EagleoutIce deleted the 2518-resolve-built-in-constants-in-resolveidtovalue branch May 29, 2026 20:32
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.

Resolve built-in constants in resolveIdToValue

2 participants