Skip to content

Unified: Improve toString of UnaryExpr, BinaryExpr, CallExpr, and MemberAccessExpr. - #22618

Merged
aschackmull merged 3 commits into
github:mainfrom
aschackmull:unified/ast-tostring
Sep 18, 2026
Merged

aschackmull merged 3 commits into
github:mainfrom
aschackmull:unified/ast-tostring

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

No description provided.

@aschackmull
aschackmull requested a review from a team as a code owner September 18, 2026 09:04
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Sep 18, 2026
Copilot AI balanced review requested due to automatic review settings September 18, 2026 09:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementations are consistent with the AST schema and the updated tests cover each formatting path.

Review effort: Balanced
Findings: None

What changed in this PR

Improves Unified AST string representations for common expression types.

Changes:

  • Adds operator-, member-, and callee-aware toString() implementations.
  • Updates control-flow annotations and generated expectations.
File Description
FacadeAst.qll Implements improved expression formatting.
cfg.swift Updates inline CFG expectations.
cfg.expected Updates generated CFG results.
basicblock-slices.expected Updates generated block-slice results.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread unified/ql/lib/codeql/unified/internal/FacadeAst.qll Outdated
aschackmull and others added 2 commits September 18, 2026 13:03
Co-authored-by: Tom Hvitved <hvitved@github.com>
@aschackmull
aschackmull merged commit 050bd41 into github:main Sep 18, 2026
12 of 14 checks passed
@aschackmull
aschackmull deleted the unified/ast-tostring branch September 18, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants