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
681da667
Commit
681da667
authored
Nov 07, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair fused def code
parent
2879c9fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-3
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
681da667
...
@@ -1331,7 +1331,7 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
...
@@ -1331,7 +1331,7 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
return
self
.
_add_to_property
(
properties
,
node
,
handler_name
,
decorator_node
)
return
self
.
_add_to_property
(
properties
,
node
,
handler_name
,
decorator_node
)
# transform normal decorators
# transform normal decorators
return
self
.
_
chain_decorators
(
node
,
node
.
decorators
,
node
.
name
)
return
self
.
chain_decorators
(
node
,
node
.
decorators
,
node
.
name
)
@
staticmethod
@
staticmethod
def
_reject_decorated_property
(
node
,
decorator_node
):
def
_reject_decorated_property
(
node
,
decorator_node
):
...
@@ -1356,7 +1356,7 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
...
@@ -1356,7 +1356,7 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
return
[]
return
[]
@
staticmethod
@
staticmethod
def
_
chain_decorators
(
node
,
decorators
,
name
):
def
chain_decorators
(
node
,
decorators
,
name
):
"""
"""
Decorators are applied directly in DefNode and PyClassDefNode to avoid
Decorators are applied directly in DefNode and PyClassDefNode to avoid
reassignments to the function/class name - except for cdef class methods.
reassignments to the function/class name - except for cdef class methods.
...
@@ -1575,7 +1575,7 @@ if VALUE is not None:
...
@@ -1575,7 +1575,7 @@ if VALUE is not None:
if
decorators
:
if
decorators
:
transform
=
DecoratorTransform
(
self
.
context
)
transform
=
DecoratorTransform
(
self
.
context
)
def_node
=
node
.
node
def_node
=
node
.
node
_
,
reassignments
=
transform
.
handle
_decorators
(
_
,
reassignments
=
transform
.
chain
_decorators
(
def_node
,
decorators
,
def_node
.
name
)
def_node
,
decorators
,
def_node
.
name
)
reassignments
.
analyse_declarations
(
env
)
reassignments
.
analyse_declarations
(
env
)
node
=
[
node
,
reassignments
]
node
=
[
node
,
reassignments
]
...
...
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