Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to have a commented statement #31

Merged
merged 3 commits into from
Jan 6, 2020
Merged

Conversation

leonardt
Copy link
Owner

Clang format fixed up some unrelated lines, I can separate out that change, but I figured it was small enough to still be understandable/ignored, but I can factor them out of if needed.

This just adds an option field statement to the single line comment node that allows a comment node to include a statement, which essentially allows us to emit statements that are followed by comments (this was simpler than having all statements have an optional comment, but that would be a valid design too). This will be used to emit statements that have comments (e.g. filename/line number for mapping back to original name.

@leonardt leonardt merged commit ce35770 into master Jan 6, 2020
@leonardt leonardt deleted the comment-contents branch February 12, 2020 22:36
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.

None yet

1 participant