Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
327f5c86
Commit
327f5c86
authored
Oct 11, 2019
by
Thanassis Tsiodras
Browse files
The 'artificial-ity' of a type is defined at the root-levle of the XML types.
parent
416b8c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/commonPy/asnParser.py
View file @
327f5c86
...
...
@@ -271,7 +271,7 @@ def VerifyAndFixAST() -> Dict[str, str]:
target
.
_asnFilename
=
originalNode
.
_asnFilename
if
isinstance
(
node
,
AsnInt
)
and
Min
is
not
None
and
Max
is
not
None
:
target
.
_range
=
[
Min
,
Max
]
# type: ignore
target
.
_isArtificial
=
originalNode
.
_isArtificial
target
.
_isArtificial
=
originalNode
.
_isArtificial
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
.
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