Skip to content

Extract Swift super keywords - #22640

Merged
asgerf merged 3 commits into
mainfrom
hvitved-swift-super-extraction
Sep 22, 2026
Merged

asgerf merged 3 commits into
mainfrom
hvitved-swift-super-extraction

Conversation

@hvitved

@hvitved hvitved commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Ensures that SuperExprs have a proper toString.

hvitved and others added 3 commits September 21, 2026 19:20
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hvitved hvitved changed the title Extract Swift super expressions Extract Swift super keywords Sep 21, 2026
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Sep 21, 2026
@hvitved
hvitved marked this pull request as ready for review September 21, 2026 17:40
@hvitved
hvitved requested review from a team as code owners September 21, 2026 17:40
Copilot AI balanced review requested due to automatic review settings September 21, 2026 17:40

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 focused mapping change is consistently covered by corpus and control-flow expectations.

Review effort: Balanced
Findings: None

What changed in this PR

Preserves Swift super keywords so SuperExpr values render correctly.

Changes:

  • Maps superKeyword into unified super_expr nodes.
  • Adds corpus coverage and updates generated expectations.
File Description
unified/​ql/​test/​library-tests/​controlflow/​basicblock-slices.expected Updates expected super rendering.
unified/​extractor/​tests/​corpus/​swift/​expressions/​super-expression.swift Adds property and method access cases.
unified/​extractor/​tests/​corpus/​swift/​expressions/​super-expression.output Records generated AST expectations.
unified/​extractor/​src/​languages/​swift/​swift.rs Extracts the super keyword token.

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

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

LGTM. FYI the underlying bug is tracked here https://github.com/github/codeql-team/issues/4882 but we can merge this to unblock

@asgerf
asgerf merged commit dae2a8d into main Sep 22, 2026
10 checks passed
@asgerf
asgerf deleted the hvitved-swift-super-extraction branch September 22, 2026 06:49
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