Skip to content

feat(encoder): Marshal ast node#769

Open
jm-positron wants to merge 2 commits intogoccy:masterfrom
jm-positron:marshal-ast-node
Open

feat(encoder): Marshal ast node#769
jm-positron wants to merge 2 commits intogoccy:masterfrom
jm-positron:marshal-ast-node

Conversation

@jm-positron
Copy link
Copy Markdown

Before submitting your PR, please confirm the following.

See #764

The current MarshalYAML implementation makes no allowance for functions that need to return carefully crafted ast nodes, and this unnecessarily limits their functionality.

By letting an InterfaceMarshaler return a Node and leaving it unmodified, custom marshalers get complete control over how their output is generated.

  • Describe the purpose for which you created this PR.
  • Create test code that corresponds to the modification

Allow MarshalYAML (interface, error) function to return an ast.Node directly, which can then be immediately integrated into the ast.
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.98%. Comparing base (25e5d90) to head (4ff5ea5).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #769      +/-   ##
==========================================
+ Coverage   77.97%   77.98%   +0.01%     
==========================================
  Files          22       22              
  Lines        8108     8113       +5     
==========================================
+ Hits         6322     6327       +5     
  Misses       1370     1370              
  Partials      416      416              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jm-positron jm-positron changed the title Marshal ast node feat(encoder): Marshal ast node Jun 23, 2025
@jm-positron
Copy link
Copy Markdown
Author

Is this project maintained? Is there anyone actually looking at PRs occasionally?

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