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
Xavier Thompson
cython
Commits
6f1f493d
Commit
6f1f493d
authored
Dec 10, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change glyph for 'iso' viewpoint adaptation
parent
2575a500
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+3
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
6f1f493d
...
@@ -11392,8 +11392,8 @@ class ConsumeNode(ExprNode):
...
@@ -11392,8 +11392,8 @@ class ConsumeNode(ExprNode):
self
.
type
=
PyrexTypes
.
error_type
self
.
type
=
PyrexTypes
.
error_type
return
self
return
self
if
operand_type
.
is_qualified_cyp_class
:
if
operand_type
.
is_qualified_cyp_class
:
if
operand_type
.
qualifier
==
'iso
&
'
:
if
operand_type
.
qualifier
==
'iso
->
'
:
error
(
self
.
pos
,
"Cannot consume iso
&
"
)
error
(
self
.
pos
,
"Cannot consume iso
->
"
)
self
.
type
=
PyrexTypes
.
error_type
self
.
type
=
PyrexTypes
.
error_type
return
self
return
self
self
.
generate_runtime_check
=
operand_type
.
qualifier
not
in
(
'iso'
,
'iso~'
)
self
.
generate_runtime_check
=
operand_type
.
qualifier
not
in
(
'iso'
,
'iso~'
)
...
...
Cython/Compiler/PyrexTypes.py
View file @
6f1f493d
...
@@ -4800,7 +4800,7 @@ class ConstCypclassType(BaseType):
...
@@ -4800,7 +4800,7 @@ class ConstCypclassType(BaseType):
class
QualifiedCypclassType
(
BaseType
):
class
QualifiedCypclassType
(
BaseType
):
"A qualified cypclass reference"
"A qualified cypclass reference"
# qualifier string the qualifier keyword: ('active' | 'iso' | 'iso~' | 'iso
&
' )
# qualifier string the qualifier keyword: ('active' | 'iso' | 'iso~' | 'iso
->
' )
subtypes
=
[
'qual_base_type'
]
subtypes
=
[
'qual_base_type'
]
...
@@ -4814,7 +4814,7 @@ class QualifiedCypclassType(BaseType):
...
@@ -4814,7 +4814,7 @@ class QualifiedCypclassType(BaseType):
'active'
:
(
'active'
,
'iso~'
),
'active'
:
(
'active'
,
'iso~'
),
'iso'
:
(
'iso~'
,),
'iso'
:
(
'iso~'
,),
'iso~'
:
(),
'iso~'
:
(),
'iso
&
'
:
(
'iso~'
,),
'iso
->
'
:
(
'iso~'
,),
'locked'
:
(
'locked'
,
'iso~'
),
'locked'
:
(
'locked'
,
'iso~'
),
}
}
...
@@ -5830,7 +5830,7 @@ def qualified_method_type(base_type, const, volatile):
...
@@ -5830,7 +5830,7 @@ def qualified_method_type(base_type, const, volatile):
else
:
else
:
return
QualifiedMethodType
(
base_type
,
const
,
volatile
)
return
QualifiedMethodType
(
base_type
,
const
,
volatile
)
def
viewpoint_adaptation
(
base_type
,
qualifier
=
'iso
&
'
):
def
viewpoint_adaptation
(
base_type
,
qualifier
=
'iso
->
'
):
# Perform viewpoint adaptation for cypclass types.
# Perform viewpoint adaptation for cypclass types.
if
base_type
.
is_qualified_cyp_class
:
if
base_type
.
is_qualified_cyp_class
:
return
base_type
return
base_type
...
...
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