Skip to content

refactor(parser): make ParserImpl::asi implementation more compact#11037

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-14-refactor_parser_make_parserimpl_asi_implementation_more_compact
May 14, 2025
Merged

refactor(parser): make ParserImpl::asi implementation more compact#11037
graphite-app[bot] merged 1 commit intomainfrom
05-14-refactor_parser_make_parserimpl_asi_implementation_more_compact

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented May 14, 2025

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2025 14:43
Copy link
Member Author

Boshen commented May 14, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added A-parser Area - Parser C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels May 14, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors the parser's semicolon handling to make the implementation more compact while improving performance through inlining optimizations.

  • Adds #[inline] attribute to advance and can_insert_semicolon functions
  • Refactors the asi function to combine token consumption and automatic semicolon insertion checks
  • Updates the can_insert_semicolon function to utilize a local token variable for consistency

@codspeed-hq
Copy link

codspeed-hq bot commented May 14, 2025

CodSpeed Instrumentation Performance Report

Merging #11037 will not alter performance

Comparing 05-14-refactor_parser_make_parserimpl_asi_implementation_more_compact (919cc59) with main (751876b)

Summary

✅ 36 untouched benchmarks

@Boshen Boshen force-pushed the 05-14-refactor_parser_make_parserimpl_asi_implementation_more_compact branch from 1ac210b to c8eec29 Compare May 14, 2025 15:07
@graphite-app
Copy link
Contributor

graphite-app bot commented May 14, 2025

Merge activity

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label May 14, 2025
@graphite-app graphite-app bot force-pushed the 05-14-refactor_parser_make_parserimpl_asi_implementation_more_compact branch from c8eec29 to 919cc59 Compare May 14, 2025 15:14
@graphite-app graphite-app bot merged commit 919cc59 into main May 14, 2025
26 checks passed
@graphite-app graphite-app bot deleted the 05-14-refactor_parser_make_parserimpl_asi_implementation_more_compact branch May 14, 2025 15:20
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-parser Area - Parser C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants