Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
daabef51
Commit
daabef51
authored
May 09, 2018
by
Thanassis Tsiodras
Browse files
For AsnMetaTypes that override their ranges
parent
e5c08a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/commonPy/asnParser.py
View file @
daabef51
...
...
@@ -262,6 +262,8 @@ def VerifyAndFixAST() -> Dict[str, str]:
if
isinstance
(
originalNode
,
AsnMetaType
):
target
=
copy
.
copy
(
node
)
# we need to keep the _asnFilename
target
.
_asnFilename
=
originalNode
.
_asnFilename
if
isinstance
(
node
,
AsnInt
)
and
Min
is
not
None
and
Max
is
not
None
:
target
.
_range
=
[
Min
,
Max
]
elif
isinstance
(
node
,
AsnInt
)
and
Min
is
not
None
and
Max
is
not
None
:
target
=
copy
.
copy
(
node
)
# we need to keep the Min/Max
target
.
_range
=
[
Min
,
Max
]
...
...
Write
Preview
Supports
Markdown
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