forked from M-Labs/artiq
compiler.embedding: handle calls into lambdas (poorly).
This commit is contained in:
parent
5916c10b24
commit
b35051cb08
|
@ -471,6 +471,9 @@ class Stitcher:
|
|||
line += 1
|
||||
source_line = linecache.getline(filename, line)
|
||||
|
||||
if "<lambda>" in function.__qualname__:
|
||||
column = 0 # can't get column of lambda
|
||||
else:
|
||||
column = re.search("def", source_line).start(0)
|
||||
source_buffer = source.Buffer(source_line, filename, line)
|
||||
return source.Range(source_buffer, column, column)
|
||||
|
|
Loading…
Reference in New Issue