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
0ae37835
Commit
0ae37835
authored
May 20, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track cypclass entries in Scope
parent
b264f865
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+4
-0
No files found.
Cython/Compiler/Symtab.py
View file @
0ae37835
...
...
@@ -345,6 +345,7 @@ class Scope(object):
# pyfunc_entries [Entry] Python function entries
# cfunc_entries [Entry] C function entries
# c_class_entries [Entry] All extension type entries
# cypclass_entries [Entry] All cypclass entries
# autolocked_nodes [ExprNodes] All autolocked nodes that needs unlocking
# cname_to_entry {string : Entry} Temp cname to entry mapping
# return_type PyrexType or None Return type of function owning scope
...
...
@@ -406,6 +407,7 @@ class Scope(object):
self
.
pyfunc_entries
=
[]
self
.
cfunc_entries
=
[]
self
.
c_class_entries
=
[]
self
.
cypclass_entries
=
[]
self
.
defined_c_classes
=
[]
self
.
autolocked_nodes
=
[]
self
.
imported_c_classes
=
{}
...
...
@@ -738,6 +740,8 @@ class Scope(object):
entry
=
self
.
declare_type
(
name
,
type
,
pos
,
cname
,
visibility
=
visibility
,
defining
=
scope
is
not
None
)
self
.
sue_entries
.
append
(
entry
)
if
cypclass
:
self
.
cypclass_entries
.
append
(
entry
)
else
:
if
not
(
entry
.
is_type
and
entry
.
type
.
is_cpp_class
):
error
(
pos
,
"'%s' redeclared "
%
name
)
...
...
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