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
Gwenaël Samain
cython
Commits
9ae0a98e
Commit
9ae0a98e
authored
May 19, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CppClassNode
parent
afb437d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+22
-0
No files found.
Cython/Compiler/Nodes.py
View file @
9ae0a98e
...
@@ -910,6 +910,28 @@ class CStructOrUnionDefNode(StatNode):
...
@@ -910,6 +910,28 @@ class CStructOrUnionDefNode(StatNode):
pass
pass
class
CppClassNode
(
CStructOrUnionDefNode
):
# name string
# cname string or None
# visibility "public" or "private"
# in_pxd boolean
# attributes [CVarDefNode] or None
# entry Entry
def
analyse_declarations
(
self
,
env
):
scope
=
None
if
self
.
attributes
is
not
None
:
scope
=
StructOrUnionScope
(
self
.
name
)
# for now
self
.
entry
=
env
.
declare_struct_or_union
(
self
.
name
,
"struct"
,
scope
,
0
,
self
.
pos
,
self
.
cname
,
visibility
=
self
.
visibility
)
if
self
.
attributes
is
not
None
:
if
self
.
in_pxd
and
not
env
.
in_cinclude
:
self
.
entry
.
defined_in_pxd
=
1
for
attr
in
self
.
attributes
:
attr
.
analyse_declarations
(
env
,
scope
)
class
CEnumDefNode
(
StatNode
):
class
CEnumDefNode
(
StatNode
):
# name string or None
# name string or None
# cname string or None
# cname string or None
...
...
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