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
811dbde9
Commit
811dbde9
authored
Jan 28, 2020
by
da-woods
Committed by
Stefan Behnel
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve node coverage in PrintTree (GH-3333)
Includes extra information for some additional types
parent
70bbd79f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/Visitor.py
Cython/Compiler/Visitor.py
+4
-0
No files found.
Cython/Compiler/Visitor.py
View file @
811dbde9
...
...
@@ -832,6 +832,10 @@ class PrintTree(TreeVisitor):
result
+=
"(type=%s, name=
\
"
%s
\
"
)"
%
(
repr
(
node
.
type
),
node
.
name
)
elif
isinstance
(
node
,
Nodes
.
DefNode
):
result
+=
"(name=
\
"
%s
\
"
)"
%
node
.
name
elif
isinstance
(
node
,
ExprNodes
.
AttributeNode
):
result
+=
"(type=%s, attribute=
\
"
%s
\
"
)"
%
(
repr
(
node
.
type
),
node
.
attribute
)
elif
isinstance
(
node
,
ExprNodes
.
ConstNode
):
result
+=
"(type=%s, value=
\
"
%s
\
"
)"
%
(
repr
(
node
.
type
),
node
.
value
)
elif
isinstance
(
node
,
ExprNodes
.
ExprNode
):
t
=
node
.
type
result
+=
"(type=%s)"
%
repr
(
t
)
...
...
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