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
a9f694f1
Commit
a9f694f1
authored
Aug 21, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimise some transforms a little more.
parent
7af5d3e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Cython/Compiler/ParseTreeTransforms.pxd
Cython/Compiler/ParseTreeTransforms.pxd
+6
-0
No files found.
Cython/Compiler/ParseTreeTransforms.pxd
View file @
a9f694f1
...
@@ -48,6 +48,7 @@ cdef class AlignFunctionDefinitions(CythonTransform):
...
@@ -48,6 +48,7 @@ cdef class AlignFunctionDefinitions(CythonTransform):
cdef
dict
directives
cdef
dict
directives
cdef
scope
cdef
scope
@
cython
.
final
cdef
class
YieldNodeCollector
(
TreeVisitor
):
cdef
class
YieldNodeCollector
(
TreeVisitor
):
cdef
public
list
yields
cdef
public
list
yields
cdef
public
list
returns
cdef
public
list
returns
...
@@ -56,15 +57,20 @@ cdef class YieldNodeCollector(TreeVisitor):
...
@@ -56,15 +57,20 @@ cdef class YieldNodeCollector(TreeVisitor):
cdef
public
bint
has_yield
cdef
public
bint
has_yield
cdef
public
bint
has_await
cdef
public
bint
has_await
@
cython
.
final
cdef
class
MarkClosureVisitor
(
CythonTransform
):
cdef
class
MarkClosureVisitor
(
CythonTransform
):
cdef
bint
needs_closure
cdef
bint
needs_closure
@
cython
.
final
cdef
class
CreateClosureClasses
(
CythonTransform
):
cdef
class
CreateClosureClasses
(
CythonTransform
):
cdef
list
path
cdef
list
path
cdef
bint
in_lambda
cdef
bint
in_lambda
cdef
module_scope
cdef
module_scope
cdef
generator_class
cdef
generator_class
cdef
create_class_from_scope
(
self
,
node
,
target_module_scope
,
inner_node
=*
)
cdef
find_entries_used_in_closures
(
self
,
node
)
cdef
class
GilCheck
(
VisitorTransform
):
cdef
class
GilCheck
(
VisitorTransform
):
cdef
list
env_stack
cdef
list
env_stack
cdef
bint
nogil
cdef
bint
nogil
...
...
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