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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
e82a3a33
Commit
e82a3a33
authored
Jan 12, 2012
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FusedCFuncDefNode: don't call AnalyseDeclarations directly
parent
2bb2f5e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+3
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-3
Cython/Compiler/Visitor.py
Cython/Compiler/Visitor.py
+0
-2
No files found.
Cython/Compiler/Nodes.py
View file @
e82a3a33
...
...
@@ -2557,7 +2557,9 @@ def __pyx_fused_cpdef(signatures, args, kwargs):
py_func
.
analyse_declarations
(
env
)
# ... and its body
py_func
.
scope
=
env
ParseTreeTransforms
.
AnalyseDeclarationsTransform
(
None
)(
py_func
)
# Will be analysed later by underlying AnalyseDeclarationsTransform
#ParseTreeTransforms.AnalyseDeclarationsTransform(None)(py_func)
e
,
orig_e
=
py_func
.
entry
,
orig_py_func
.
entry
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
e82a3a33
...
...
@@ -1493,9 +1493,9 @@ if VALUE is not None:
if
node
.
py_func
:
node
.
stats
.
insert
(
0
,
node
.
py_func
)
if
node
.
py_func
and
node
.
py_func
.
needs_assignment_synthesis
(
env
):
node
=
[
node
,
self
.
_synthesize_assignment
(
node
.
py_func
,
env
)]
self
.
visit
(
node
.
py_func
)
if
node
.
py_func
.
needs_assignment_synthesis
(
env
):
node
=
[
node
,
self
.
_synthesize_assignment
(
node
.
py_func
,
env
)]
else
:
node
.
body
.
analyse_declarations
(
lenv
)
...
...
Cython/Compiler/Visitor.py
View file @
e82a3a33
...
...
@@ -273,8 +273,6 @@ class CythonTransform(VisitorTransform):
import
ModuleNode
if
isinstance
(
node
,
ModuleNode
.
ModuleNode
):
self
.
current_directives
=
node
.
directives
else
:
# XXX: is default directives better?
self
.
current_directives
=
{}
return
super
(
CythonTransform
,
self
).
__call__
(
node
)
def
visit_CompilerDirectivesNode
(
self
,
node
):
...
...
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