Skip to content

Unified: Extract Swift in-out expressions and postfix operators - #22712

Merged
paldepind merged 3 commits into
mainfrom
unified/swift-increase-node-coverage
Sep 30, 2026
Merged

paldepind merged 3 commits into
mainfrom
unified/swift-increase-node-coverage

Conversation

@paldepind

@paldepind paldepind commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Add extraction of two trivial Swift node kinds: In-out expressions (&expr) and postfix operators (handled like prefix operators).

@paldepind
paldepind marked this pull request as ready for review September 30, 2026 13:32
@paldepind
paldepind requested review from a team as code owners September 30, 2026 13:32
Copilot AI balanced review requested due to automatic review settings September 30, 2026 13:32

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 translation rules match the Swift syntax schema and are covered by appropriate corpus and control-flow expectations.

Review effort: Balanced
Findings: None

What changed in this PR

Adds unified Swift AST extraction for in-out expressions and postfix operators.

Changes:

  • Maps both node kinds to unary expressions with correct operator fixity.
  • Updates corpus and control-flow expectations.
File Description
unified/​extractor/​src/​languages/​swift/​swift.rs Adds Swift translation rules.
unified/​extractor/​tests/​corpus/​swift/​functions/​call-with-inout-argument.output Updates in-out extraction expectation.
unified/​extractor/​tests/​corpus/​swift/​operators/​custom-postfix-operator.output Updates custom postfix expectation.
unified/​extractor/​tests/​corpus/​swift/​operators/​partial-range-from.output Updates range operator expectation.
unified/​ql/​test/​library-tests/​controlflow/​basicblock-slices.expected Updates control-flow output.

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

@tausbn tausbn 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.

Looks good to me! 👍

@paldepind
paldepind merged commit a409950 into main Sep 30, 2026
10 checks passed
@paldepind
paldepind deleted the unified/swift-increase-node-coverage branch September 30, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants