mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix descriptor argument in CGCallGenerator.__init__
It's a descriptor, not a descriptor provider.
This commit is contained in:
parent
7a942b1742
commit
8ba0cf30a1
1 changed files with 3 additions and 3 deletions
|
@ -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=")")])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue