Skip to content

[Parser] Parse rec groups #4785

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

Merged
merged 3 commits into from
Jul 8, 2022
Merged

[Parser] Parse rec groups #4785

merged 3 commits into from
Jul 8, 2022

Conversation

tlively
Copy link
Member

@tlively tlively commented Jul 8, 2022

No description provided.

@tlively tlively requested a review from kripken July 8, 2022 20:12
@tlively
Copy link
Member Author

tlively commented Jul 8, 2022

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@@ -350,9 +351,13 @@ struct ParseTypeDefsCtx {
// Parse the names of types and fields as we go.
std::vector<TypeNames> names;

// The index of the type definition we are parsing.
// The index of the type definition (i.e. rec group) we are parsing. This is
Copy link
Member

Choose a reason for hiding this comment

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

Could this be rephrased as "index is the rec group index, typeIndex is the type index inside the rec group"? If so, index => recIndex maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

I stopped using parseDefs for type parsing, which let me remove this useless field entirely and rename typeIndex to just index.

@tlively
Copy link
Member Author

tlively commented Jul 8, 2022

Graphite Merge Job

Current status: ✅ Merged

This pull request was successfully merged as part of a stack.

This comment was auto-generated by Graphite.

Job Reference: wHPoO07O2vDdfBC3TH7I

Base automatically changed from lit-include-rec to main July 8, 2022 21:31
@tlively tlively merged commit 83f48ed into main Jul 8, 2022
@tlively tlively deleted the parse-rec branch July 8, 2022 21:32
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