forked from M-Labs/artiq
compiler.embedding: support calling methods via RPC as well.
This commit is contained in:
parent
c62b16d5e1
commit
f7c8625f61
|
@ -504,7 +504,7 @@ class Stitcher:
|
||||||
syscall=None)
|
syscall=None)
|
||||||
|
|
||||||
def _quote(self, value, loc):
|
def _quote(self, value, loc):
|
||||||
if inspect.isfunction(value):
|
if inspect.isfunction(value) or inspect.ismethod(value):
|
||||||
# It's a function. We need to translate the function and insert
|
# It's a function. We need to translate the function and insert
|
||||||
# a reference to it.
|
# a reference to it.
|
||||||
function_name = self._quote_function(value, loc)
|
function_name = self._quote_function(value, loc)
|
||||||
|
|
Loading…
Reference in New Issue