Skip to content

fix(ast): add missing estree props for ArrowFunctionExpression#8980

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_
Feb 10, 2025
Merged

fix(ast): add missing estree props for ArrowFunctionExpression#8980
graphite-app[bot] merged 1 commit intomainfrom
02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_

Conversation

@camchenry
Copy link
Member

@camchenry camchenry commented Feb 9, 2025

building on @overlookmotel and @hi-ogawa's fine work, I thought I would lend a hand at trying to add some missing estree props.

this PR adds the generator property and id property for ArrowFunctionExpression. the id property requires serializing a constant null value, which seemed like it required some funky output in the serializer. would appreciate some suggestions on how to make this cleaner 🙏

Copy link
Member Author

camchenry commented Feb 9, 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-ast Area - AST A-ast-tools Area - AST tools C-bug Category - Bug labels Feb 9, 2025
@camchenry camchenry requested a review from hi-ogawa February 9, 2025 03:40
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 9, 2025

CodSpeed Performance Report

Merging #8980 will not alter performance

Comparing 02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_ (ec1d593) with main (8495c21)

Summary

✅ 33 untouched benchmarks

@camchenry camchenry marked this pull request as ready for review February 9, 2025 03:47
@camchenry camchenry force-pushed the 02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_ branch from 7087caa to 63409bc Compare February 9, 2025 22:23
Copy link
Member

overlookmotel commented Feb 10, 2025

Merge activity

  • Feb 10, 8:12 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 10, 8:12 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 10, 8:19 AM EST: A user merged this pull request with the Graphite merge queue.

building on @overlookmotel and @hi-ogawa's fine work, I thought I would lend a hand at trying to add some missing estree props.

this PR adds the `generator` property and `id` property for `ArrowFunctionExpression`. the `id` property requires serializing a constant `null` value, which seemed like it required some funky output in the serializer. would appreciate some suggestions on how to make this cleaner 🙏
@graphite-app graphite-app bot force-pushed the 02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_ branch from 63409bc to ec1d593 Compare February 10, 2025 13:13
@graphite-app graphite-app bot merged commit ec1d593 into main Feb 10, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_ branch February 10, 2025 13:19
graphite-app bot pushed a commit that referenced this pull request Feb 10, 2025
from #8980 (comment), added a special value that just represents a unit type, which should always be serialized to `null`
overlookmotel pushed a commit that referenced this pull request Feb 10, 2025
…ression` (#8988)

Part of #2854

Serialization of `ArrowFunctionExpression.body` requires knowing
`ArrowFunctionExpression.expression: boolean`, so I generalized
`ESTreeStructField::via` macro to cover this use case.

This alone doesn't improve conformance since
`ArrowFunctionExpression.generator/id` needs to be fixed first by
#8980.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast Area - AST A-ast-tools Area - AST tools C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants