Commit ebf0462f authored by Tom Niget's avatar Tom Niget

Fix out of order support

parent 7013323d
# coding: utf-8 # coding: utf-8
class class1: def function1():
def method1(self): r = function2()
print("class1::method1()") print("function1()")
return r
def function2(): def function2():
print("function2") print("function2")
return class1() return class1()
def function1(): class class1:
r = function2() def method1(self):
print("function1()") print("class1::method1()")
return r
class class2(class1): class class2(class1):
def method2(self): def method2(self):
......
# coding: utf-8
# todo
\ No newline at end of file
...@@ -70,7 +70,9 @@ def emit_function(name: str, func: CallableInstanceType, base="function", gen_p= ...@@ -70,7 +70,9 @@ def emit_function(name: str, func: CallableInstanceType, base="function", gen_p=
def task_type(): def task_type():
yield from NodeVisitor().visit_BaseType(func.return_type.generic_parent) yield from NodeVisitor().visit_BaseType(func.return_type.generic_parent)
yield "<" yield "<"
yield"decltype(typon$$sync(" yield"decltype(typon$$sync<"
yield from join(",", (p.name for p in func.generic_parent.parameters))
yield ">("
yield from join(",", (arg.arg for arg in func.block_data.node.args.args)) yield from join(",", (arg.arg for arg in func.block_data.node.args.args))
yield "))" yield "))"
yield ">" yield ">"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment