Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBeautify our union enums constructors #9508
Closed
Comments
|
Specifically, |
|
Anyone mind if I pick this up? The change should be probably something like that diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/Co
degenRust.py
index 8d53913..c4cc86a 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -3636,10 +3636,10 @@ class CGUnionStruct(CGThing):
templateVars = map(lambda t: getUnionTypeTemplateVars(t, self.descriptorProvider),
self.type.flatMemberTypes)
enumValues = [
- " e%s(%s)," % (v["name"], v["typeName"]) for v in templateVars
+ " %s(%s)," % (v["name"], v["typeName"]) for v in templateVars
]
enumConversions = [
- " %s::e%s(ref inner) => inner.to_jsval(cx, rval),"
+ " %s::%s(ref inner) => inner.to_jsval(cx, rval),"
% (self.type, v["name"]) for v in templateVars
]
return ("""\But after the change I've got compilation errors related to enums that are used in
Should the files in Thanks! |
|
Everything under |
bors-servo
added a commit
that referenced
this issue
Feb 7, 2016
… r=KiChjang Fix #9508: Beautify our union enums constructors Solves #9508 @jdm Please review. Thanks! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9543) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They should be
NodeOrString::Nodeinstead ofNodeOrString::eNode.Files: