Skip to content

Parse (and format) ANTLR fragment productions in the Word converter #343

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 1 commit into from
Jun 29, 2021

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Jun 24, 2021

This should enable #339 and #342 in terms of Word conversion.

@jskeet jskeet requested a review from BillWagner June 24, 2021 16:30
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This LGTM @jskeet

Let's see if this gets us further.

/// <summary>
/// Whether or not this production is a fragment
/// </summary>
public bool Fragment { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

Not necessary, but it looks like this could be an init only property once we move to C# 9. I only see it set in the property initializer.

Suggested change
public bool Fragment { get; set; }
public bool Fragment { get; init; }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I suspect that may well be fine. I was mostly following the rest of the properties. I'd prefer to leave it as it is for now, and then revisit holistically.

@jskeet jskeet merged commit 7a7ea8c into dotnet:draft-v6 Jun 29, 2021
@jskeet jskeet deleted the word-fragments branch June 29, 2021 05:45
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