You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.L-pythonPython is required
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 components/script/dom.
error: no associated item named `eHTMLCanvasElement` found for type `dom::bindings::codegen::UnionTypes::ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement` in the current scope servo/components/script/dom/webglrenderingcontext.rs:1160
Should the files in components/script/dom be regenerated (How if so? I didn't figure out from the docs) or changed manually?
E-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.L-pythonPython is required
Activity
jdm commentedon Feb 2, 2016
Specifically,
CGUnionStructis the python class that defines this.alopatindev commentedon Feb 4, 2016
Anyone mind if I pick this up?
The change should be probably something like that
But after the change I've got compilation errors related to enums that are used in
components/script/dom.Should the files in
components/script/dombe regenerated (How if so? I didn't figure out from the docs) or changed manually?Thanks!
jdm commentedon Feb 4, 2016
Everything under
componentsis written by hand.Fix servo#9508: Beautify our union enums constructors
Fix servo#9508: Beautify our union enums constructors
Fix servo#9508: Beautify our union enums constructors
Fix servo#9508: Beautify our union enums constructors
Auto merge of #9543 - alopatindev:enums_constructors_codingstyle_fix,…