Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-concurrency
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
typon-concurrency
Commits
ebf0462f
Commit
ebf0462f
authored
Apr 10, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix out of order support
parent
7013323d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
typon/trans/tests/inheritance.py
typon/trans/tests/inheritance.py
+7
-7
typon/trans/tests/out_of_order.py
typon/trans/tests/out_of_order.py
+2
-0
typon/trans/transpiler/phases/emit_cpp/function.py
typon/trans/transpiler/phases/emit_cpp/function.py
+3
-1
No files found.
typon/trans/tests/inheritance.py
View file @
ebf0462f
# coding: utf-8
class
class1
:
def
method1
(
self
):
print
(
"class1::method1()"
)
def
function1
():
r
=
function2
()
print
(
"function1()"
)
return
r
def
function2
():
print
(
"function2"
)
return
class1
()
def
function1
():
r
=
function2
()
print
(
"function1()"
)
return
r
class
class1
:
def
method1
(
self
):
print
(
"class1::method1()"
)
class
class2
(
class1
):
def
method2
(
self
):
...
...
typon/trans/tests/out_of_order.py
0 → 100644
View file @
ebf0462f
# coding: utf-8
# todo
\ No newline at end of file
typon/trans/transpiler/phases/emit_cpp/function.py
View file @
ebf0462f
...
...
@@ -70,7 +70,9 @@ def emit_function(name: str, func: CallableInstanceType, base="function", gen_p=
def
task_type
():
yield
from
NodeVisitor
().
visit_BaseType
(
func
.
return_type
.
generic_parent
)
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
"))"
yield
">"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment