Skip to content

Document internals of DomTreeWithChildren#7768

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
meithecatte:explain-domtree
Jan 16, 2024
Merged

Document internals of DomTreeWithChildren#7768
fitzgen merged 1 commit into
bytecodealliance:mainfrom
meithecatte:explain-domtree

Conversation

@meithecatte
Copy link
Copy Markdown
Contributor

I had a look at egraph/domtree.rs and spent a good few minutes confused by what exactly is happening. This PR adds some comments to explain how the data is represented, which should hopefully help the next person to look at this code grasp it much faster.

In particular, I clarified the comment in egraph.rs to avoid implying that DomTreeWithChildren duplicates the parent pointers.

@meithecatte meithecatte requested a review from a team as a code owner January 11, 2024 13:34
@meithecatte meithecatte requested review from elliottt and removed request for a team January 11, 2024 13:34
@github-actions github-actions Bot added the cranelift Issues related to the Cranelift code generator label Jan 11, 2024
Copy link
Copy Markdown
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks!

@fitzgen fitzgen added this pull request to the merge queue Jan 16, 2024
Merged via the queue into bytecodealliance:main with commit 7443485 Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants