mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Fix typo in the non-union code path for typedefs.
This commit is contained in:
parent
35bc171a05
commit
8a5987c1db
2 changed files with 2 additions and 1 deletions
|
@ -6127,7 +6127,7 @@ class CGBindingRoot(CGThing):
|
||||||
cgthings.extend([CGGeneric("\npub use dom::bindings::codegen::UnionTypes::%s as %s;\n\n" %
|
cgthings.extend([CGGeneric("\npub use dom::bindings::codegen::UnionTypes::%s as %s;\n\n" %
|
||||||
(t.innerType, t.identifier.name))])
|
(t.innerType, t.identifier.name))])
|
||||||
else:
|
else:
|
||||||
assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider)
|
assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider())
|
||||||
cgthings.extend([CGGeneric("\npub type %s = " % (t.identifier.name)),
|
cgthings.extend([CGGeneric("\npub type %s = " % (t.identifier.name)),
|
||||||
getRetvalDeclarationForType(t.innerType, config.getDescriptorProvider()),
|
getRetvalDeclarationForType(t.innerType, config.getDescriptorProvider()),
|
||||||
CGGeneric(";\n\n")])
|
CGGeneric(";\n\n")])
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
enum TestEnum { "", "foo", "bar" };
|
enum TestEnum { "", "foo", "bar" };
|
||||||
typedef (DOMString or URL or Blob) TestTypedef;
|
typedef (DOMString or URL or Blob) TestTypedef;
|
||||||
typedef (DOMString or URL or Blob)? TestTypedefNullableUnion;
|
typedef (DOMString or URL or Blob)? TestTypedefNullableUnion;
|
||||||
|
typedef DOMString TestTypedefString;
|
||||||
|
|
||||||
dictionary TestDictionary {
|
dictionary TestDictionary {
|
||||||
required boolean requiredValue;
|
required boolean requiredValue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue