Skip to content

Fix SymbolFlags.All value by parsing operator precedence when generating TS enums from Go enums - #64083

Merged
Andrew Branch (andrewbranch) merged 5 commits into
microsoft:mainfrom
andrewbranch:fix-symbol-all-operator-precedence
Aug 28, 2026
Merged

Fix SymbolFlags.All value by parsing operator precedence when generating TS enums from Go enums#64083
Andrew Branch (andrewbranch) merged 5 commits into
microsoft:mainfrom
andrewbranch:fix-symbol-all-operator-precedence

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

This is #63907 with an additional commit

Copilot AI balanced review requested due to automatic review settings August 28, 2026 20:31
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Aug 28, 2026
@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Aug 28, 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.

Pull request overview

Fixes Go-to-TypeScript enum generation by preserving Go operator precedence and validating generated values against Go.

Changes:

  • Adds precedence-aware numeric expression translation.
  • Validates generated enum values using Go-evaluated ground truth.
  • Corrects and tests SymbolFlags.All.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Herebyfile.mjs Adds expression parsing and value validation.
tsc/internal/api/enum_values_generated.go Provides generated Go enum values.
packages/typescript/src/enums/symbolFlags.enum.ts Parenthesizes the Go shift expression.
packages/typescript/src/enums/symbolFlags.ts Corrects the runtime value.
packages/typescript/test/sync/api.test.ts Adds synchronous regression coverage.
packages/typescript/test/async/api.test.ts Adds asynchronous regression coverage.
Files not reviewed (1)
  • tsc/internal/api/enum_values_generated.go: Generated file

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

@andrewbranch
Andrew Branch (andrewbranch) added this pull request to the merge queue Aug 28, 2026
Merged via the queue into microsoft:main with commit 61691a5 Aug 28, 2026
25 checks passed
@andrewbranch
Andrew Branch (andrewbranch) deleted the fix-symbol-all-operator-precedence branch August 28, 2026 23:12
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants