Skip to content

Add AnyPossiblyRedacted* enums to the code-gen of event_enum!#139

Merged
jplatte merged 2 commits intoruma:masterfrom
DevinR528:possibly-redacted
Jul 17, 2020
Merged

Add AnyPossiblyRedacted* enums to the code-gen of event_enum!#139
jplatte merged 2 commits intoruma:masterfrom
DevinR528:possibly-redacted

Conversation

@DevinR528
Copy link
Copy Markdown
Member

Are there any methods that should be added to these enums? Nothing I can think of would be all that helpful.

The first commit is the actual work then I copy pasted things around but no changes.
Resolves #119

@jplatte
Copy link
Copy Markdown
Member

jplatte commented Jul 17, 2020

Huh, I didn't actually think we'd generate these but it does make sense since that's easy to do. Really wonder whether we shouldn't just move everything into one macro invocation and generate the other enums of specific event kind enums too.

@jplatte
Copy link
Copy Markdown
Member

jplatte commented Jul 17, 2020

Gonna trust you that that second commit is just moving things around, diff is not particularily easy to read.

@jplatte jplatte merged commit 848b225 into ruma:master Jul 17, 2020
@DevinR528
Copy link
Copy Markdown
Member Author

I bet we could move to the "one big macro" without changing the expansion logic just adding some parsing code to make it all work. That could be done at anytime right, since it wouldn't be a breaking change to anything?

@jplatte
Copy link
Copy Markdown
Member

jplatte commented Jul 17, 2020

I bet we could move to the "one big macro" without changing the expansion logic just adding some parsing code to make it all work.

I think so too.

That could be done at anytime right, since it wouldn't be a breaking change to anything?

Yes.

@DevinR528 DevinR528 deleted the possibly-redacted branch May 3, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add enums to hold redacted and un-redacted events

2 participants