Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
73b21608
Commit
73b21608
authored
Jun 14, 2019
by
gsamain
Committed by
Xavier Thompson
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder reifying messages attributes construction (target object first, args after)
parent
c870cda0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-4
No files found.
Cython/Compiler/ModuleNode.py
View file @
73b21608
...
@@ -1243,8 +1243,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1243,8 +1243,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# Declaring target object & reified method arguments
# Declaring target object & reified method arguments
code
.
putln
(
"%s;"
%
target_object_code
)
code
.
putln
(
"%s;"
%
target_object_code
)
constructor_decl_list
=
[
target_object_argument_code
,
"ActhonSyncInterface* sync_method"
,
"ActhonResultInterface* result_object"
]
constructor_decl_list
=
[
target_object_argument_code
,
"ActhonSyncInterface* sync_method"
,
"ActhonResultInterface* result_object"
]
initialized_arg_names
=
[]
initialized_arg_names
=
[
target_object_name
]
initialized_arg_cnames
=
[]
initialized_arg_cnames
=
[
target_object_cname
]
opt_arg_count
=
reified_function_entry
.
type
.
optional_arg_count
opt_arg_count
=
reified_function_entry
.
type
.
optional_arg_count
for
i
in
range
(
len
(
reified_function_entry
.
type
.
args
)
-
opt_arg_count
):
for
i
in
range
(
len
(
reified_function_entry
.
type
.
args
)
-
opt_arg_count
):
...
@@ -1268,7 +1268,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1268,7 +1268,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
constructor_args_declaration
=
", "
.
join
(
constructor_decl_list
)
constructor_args_declaration
=
", "
.
join
(
constructor_decl_list
)
initializer_list
=
[
"%s(%s)"
%
(
cname
,
name
)
initializer_list
=
[
"%s(%s)"
%
(
cname
,
name
)
for
name
,
cname
in
zip
(
initialized_arg_names
,
initialized_arg_cnames
)]
for
name
,
cname
in
zip
(
initialized_arg_names
,
initialized_arg_cnames
)]
initializer_list
.
append
(
"%s(%s)"
%
(
target_object_cname
,
target_object_name
))
constructor_initializer_list_declaration
=
", "
.
join
(
initializer_list
)
constructor_initializer_list_declaration
=
", "
.
join
(
initializer_list
)
code
.
putln
(
"%s(%s) : ActhonMessageInterface(sync_method, result_object), %s {"
%
(
code
.
putln
(
"%s(%s) : ActhonMessageInterface(sync_method, result_object), %s {"
%
(
class_name
,
class_name
,
...
@@ -1299,7 +1298,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1299,7 +1298,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
"}"
)
code
.
putln
(
"}"
)
result_assignment
=
""
result_assignment
=
""
reified_call_args_list
=
initialized_arg_cnames
[:]
reified_call_args_list
=
initialized_arg_cnames
[
1
:]
if
opt_arg_count
:
if
opt_arg_count
:
reified_call_args_list
.
append
(
message_opt_arg_attr_name
)
reified_call_args_list
.
append
(
message_opt_arg_attr_name
)
...
...
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