Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
638772ea
Commit
638772ea
authored
Aug 29, 2020
by
Maxime Perrotin
Browse files
Fix find_basic_type when subrange used in sequence of
parent
98419e76
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/ogParser.py
View file @
638772ea
...
...
@@ -545,7 +545,8 @@ def find_basic_type(a_type, pool=None):
if
typename
.
lower
()
==
basic_type
.
ReferencedTypeName
.
lower
():
basic_type
=
pool
[
typename
].
type
if
Min
is
not
None
and
Max
is
not
None
\
and
is_numeric
(
basic_type
):
and
(
is_numeric
(
basic_type
)
or
is_string
(
basic_type
)
or
is_sequenceof
(
basic_type
)):
# Subtypes may have defined subranges
new_type
=
type
(
'Subtype'
,
basic_type
.
__bases__
,
dict
(
basic_type
.
__dict__
))
...
...
@@ -2249,6 +2250,7 @@ def primary_index(root, context, pos):
expression
(
root
.
children
[
0
],
context
,
pos
)
receiver_bty
=
find_basic_type
(
receiver
.
exprType
)
errors
.
extend
(
receiver_err
)
warnings
.
extend
(
receiver_warn
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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