mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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.
|
exception from the native code, or None if no error reporting is needed.
|
||||||
"""
|
"""
|
||||||
def __init__(self, errorResult, arguments, argsPre, returnType,
|
def __init__(self, errorResult, arguments, argsPre, returnType,
|
||||||
extendedAttributes, descriptorProvider, nativeMethodName,
|
extendedAttributes, descriptor, nativeMethodName,
|
||||||
static, object="this"):
|
static, object="this"):
|
||||||
CGThing.__init__(self)
|
CGThing.__init__(self)
|
||||||
|
|
||||||
|
@ -3053,7 +3053,7 @@ class CGCallGenerator(CGThing):
|
||||||
|
|
||||||
isFallible = errorResult is not None
|
isFallible = errorResult is not None
|
||||||
|
|
||||||
result = getRetvalDeclarationForType(returnType, descriptorProvider)
|
result = getRetvalDeclarationForType(returnType, descriptor)
|
||||||
if isFallible:
|
if isFallible:
|
||||||
result = CGWrapper(result, pre="Result<", post=", Error>")
|
result = CGWrapper(result, pre="Result<", post=", Error>")
|
||||||
|
|
||||||
|
@ -3074,7 +3074,7 @@ class CGCallGenerator(CGThing):
|
||||||
|
|
||||||
call = CGGeneric(nativeMethodName)
|
call = CGGeneric(nativeMethodName)
|
||||||
if static:
|
if static:
|
||||||
call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name)
|
call = CGWrapper(call, pre="%s::" % descriptor.interface.identifier.name)
|
||||||
else:
|
else:
|
||||||
call = CGWrapper(call, pre="%s." % object)
|
call = CGWrapper(call, pre="%s." % object)
|
||||||
call = CGList([call, CGWrapper(args, pre="(", post=")")])
|
call = CGList([call, CGWrapper(args, pre="(", post=")")])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue