Skip to content

♻️ refactor: rename Annotate to Convert in token/operator types#1322

Merged
harehare merged 2 commits intofeat/convert-operator-supportfrom
copilot/sub-pr-1320
Feb 23, 2026
Merged

♻️ refactor: rename Annotate to Convert in token/operator types#1322
harehare merged 2 commits intofeat/convert-operator-supportfrom
copilot/sub-pr-1320

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 23, 2026

The @ operator token and binary op were named Annotate, which didn't reflect their purpose as format conversion operators.

Changes

  • lexer/token.rs: TokenKind::AnnotateTokenKind::Convert; updated Display impl
  • lexer.rs: parser function annotateconvert_op
  • cst/node.rs: BinaryOp::AnnotateBinaryOp::Convert
  • cst/parser.rs: mapping updated to TokenKind::Convert => BinaryOp::Convert
  • ast/parser.rs: all four references updated (is_binary_op, precedence table, binary_op_function_name, is_next_token_allowed)

No behavioral change — purely a rename to align naming with semantics.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add conversion operators to mq language ♻️ refactor: rename Annotate to Convert in token/operator types Feb 23, 2026
Copilot AI requested a review from harehare February 23, 2026 14:44
@harehare harehare marked this pull request as ready for review February 23, 2026 23:22
@harehare harehare merged commit fd1e44a into feat/convert-operator-support Feb 23, 2026
@harehare harehare deleted the copilot/sub-pr-1320 branch February 23, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants