Skip to content

refactor(ast): add NULL value for serializing null types#8987

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

refactor(ast): add NULL value for serializing null types#8987
graphite-app[bot] merged 1 commit intomainfrom
02-09-reactor_ast_add_null_value_for_serializing_null_types

Conversation

@camchenry
Copy link
Member

@camchenry camchenry commented Feb 9, 2025

from #8980 (comment), added a special value that just represents a unit type, which should always be serialized to null

@github-actions github-actions bot added the A-ast Area - AST label Feb 9, 2025
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.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 9, 2025

CodSpeed Performance Report

Merging #8987 will not alter performance

Comparing 02-09-reactor_ast_add_null_value_for_serializing_null_types (0929320) with main (ec1d593)

Summary

✅ 33 untouched benchmarks

@camchenry camchenry changed the title reactor(ast): add NULL value for serializing null types refactor(ast): add NULL value for serializing null types Feb 9, 2025
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Feb 9, 2025
@camchenry camchenry marked this pull request as ready for review February 9, 2025 22:59
Copy link
Contributor

@hi-ogawa hi-ogawa left a comment

Choose a reason for hiding this comment

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

Nice! There are two more value = () in crates/oxc_ast/src/ast/literal.rs. Can we change that too?

@overlookmotel overlookmotel changed the base branch from 02-08-fix_ast_add_missing_estree_props_for_arrowfunctionexpression_ to graphite-base/8987 February 10, 2025 13:13
@overlookmotel overlookmotel force-pushed the 02-09-reactor_ast_add_null_value_for_serializing_null_types branch from 71bf6f8 to b45bf2c Compare February 10, 2025 13:19
@overlookmotel overlookmotel changed the base branch from graphite-base/8987 to main February 10, 2025 13:20
@overlookmotel overlookmotel force-pushed the 02-09-reactor_ast_add_null_value_for_serializing_null_types branch from b45bf2c to a92f16a Compare February 10, 2025 13:20
@overlookmotel
Copy link
Member

Nice! There are two more value = () in crates/oxc_ast/src/ast/literal.rs. Can we change that too?

In the interests of merging this swiftly, I've pushed an extra commit to do that.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Feb 10, 2025
Copy link
Member

overlookmotel commented Feb 10, 2025

Merge activity

  • Feb 10, 8:28 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:32 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:34 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 10, 8:39 AM EST: A user merged this pull request with the Graphite merge queue.

from #8980 (comment), added a special value that just represents a unit type, which should always be serialized to `null`
@graphite-app graphite-app bot force-pushed the 02-09-reactor_ast_add_null_value_for_serializing_null_types branch from a877e45 to 0929320 Compare February 10, 2025 13:35
@graphite-app graphite-app bot merged commit 0929320 into main Feb 10, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 02-09-reactor_ast_add_null_value_for_serializing_null_types branch February 10, 2025 13:39
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 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.

3 participants