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
Boxiang Sun
cython
Commits
a41594b4
Commit
a41594b4
authored
Nov 28, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdef another class in ParseTreeTransforms
parent
138e5cbc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Cython/Compiler/ParseTreeTransforms.pxd
Cython/Compiler/ParseTreeTransforms.pxd
+3
-3
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-2
No files found.
Cython/Compiler/ParseTreeTransforms.pxd
View file @
a41594b4
from
Cython.Compiler.Visitor
cimport
(
from
Cython.Compiler.Visitor
cimport
(
CythonTransform
,
VisitorTransform
,
CythonTransform
,
VisitorTransform
,
TreeVisitor
,
ScopeTrackingTransform
,
EnvTransform
)
ScopeTrackingTransform
,
EnvTransform
)
#
class NameNodeCollector(TreeVisitor):
cdef
class
NameNodeCollector
(
TreeVisitor
):
#
cdef list name_nodes
cdef
list
name_nodes
cdef
class
SkipDeclarations
:
# (object):
cdef
class
SkipDeclarations
:
# (object):
pass
pass
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
a41594b4
...
@@ -26,11 +26,12 @@ class NameNodeCollector(TreeVisitor):
...
@@ -26,11 +26,12 @@ class NameNodeCollector(TreeVisitor):
super
(
NameNodeCollector
,
self
).
__init__
()
super
(
NameNodeCollector
,
self
).
__init__
()
self
.
name_nodes
=
[]
self
.
name_nodes
=
[]
visit_Node
=
TreeVisitor
.
visitchildren
def
visit_NameNode
(
self
,
node
):
def
visit_NameNode
(
self
,
node
):
self
.
name_nodes
.
append
(
node
)
self
.
name_nodes
.
append
(
node
)
def
visit_Node
(
self
,
node
):
self
.
_visitchildren
(
node
,
None
)
class
SkipDeclarations
(
object
):
class
SkipDeclarations
(
object
):
"""
"""
...
...
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