Skip to content

Unified: Make pattern a subtype of expr. - #22490

Merged
aschackmull merged 1 commit into
github:mainfrom
aschackmull:unified/expr-pattern
Sep 2, 2026
Merged

Unified: Make pattern a subtype of expr.#22490
aschackmull merged 1 commit into
github:mainfrom
aschackmull:unified/expr-pattern

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

No description provided.

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

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 reviewed changes are consistent, with no unresolved issues.

Review tier: Balanced
Findings: None

What changed in this PR

Makes Unified AST patterns a subtype of expressions, simplifying assignment targets and the type hierarchy.

Changes:

  • Makes pattern a subtype of expr.
  • Removes the redundant expr_or_pattern union.
  • Regenerates the QL API and database schema.
File Description
unified/​ql/​lib/​unified.dbscheme Regenerates schema types.
unified/​ql/​lib/​codeql/​unified/​internal/​Ast.qll Regenerates QL classes and accessors.
unified/​extractor/​ast_types.yml Updates the source AST hierarchy.

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

@aschackmull
aschackmull merged commit 4f153c6 into github:main Sep 2, 2026
14 of 15 checks passed
@aschackmull
aschackmull deleted the unified/expr-pattern branch September 2, 2026 09:48
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