diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-09-06 16:19:19 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-09-07 15:48:22 +0200 |
commit | 8ba0cf30a169ec62efbdd8e8d8ae530f441f42f1 (patch) | |
tree | b0016a51b6f1aa19cb26c914fb141b781be74d85 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 7a942b1742db82b6425edc2cb0579fa1a3b003ad (diff) | |
download | servo-8ba0cf30a169ec62efbdd8e8d8ae530f441f42f1.tar.gz servo-8ba0cf30a169ec62efbdd8e8d8ae530f441f42f1.zip |
Fix descriptor argument in CGCallGenerator.__init__
It's a descriptor, not a descriptor provider.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 71331dfe503..dd6d6276bfd 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -3045,7 +3045,7 @@ class CGCallGenerator(CGThing): exception from the native code, or None if no error reporting is needed. """ def __init__(self, errorResult, arguments, argsPre, returnType, - extendedAttributes, descriptorProvider, nativeMethodName, + extendedAttributes, descriptor, nativeMethodName, static, object="this"): CGThing.__init__(self) @@ -3053,7 +3053,7 @@ class CGCallGenerator(CGThing): isFallible = errorResult is not None - result = getRetvalDeclarationForType(returnType, descriptorProvider) + result = getRetvalDeclarationForType(returnType, descriptor) if isFallible: result = CGWrapper(result, pre="Result<", post=", Error>") @@ -3074,7 +3074,7 @@ class CGCallGenerator(CGThing): call = CGGeneric(nativeMethodName) if static: - call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name) + call = CGWrapper(call, pre="%s::" % descriptor.interface.identifier.name) else: call = CGWrapper(call, pre="%s." % object) call = CGList([call, CGWrapper(args, pre="(", post=")")]) |