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
df4e859d
Commit
df4e859d
authored
Jul 29, 2019
by
Thanassis Tsiodras
Browse files
Be more specific about cache-ing ASN.1 AST semantics.
parent
fbdbb945
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/commonPy/asnParser.py
View file @
df4e859d
...
...
@@ -408,12 +408,12 @@ def ParseAsnFileList(listOfFilenames: List[str]) -> None: # pylint: disable=inv
xmlAST2
=
projectCache
+
os
.
sep
+
newHash
+
"_ast_v1.xml"
if
not
os
.
path
.
exists
(
xmlAST
)
or
not
os
.
path
.
exists
(
xmlAST2
):
someFilesHaveChanged
=
True
print
(
"[DMT]
ASN.1 model changed, re-processing..."
)
print
(
"[DMT]
No cached model found for"
,
","
.
join
(
listOfFilenames
)
)
else
:
# no projectCache set, so xmlAST and xmlAST2 are set to None
someFilesHaveChanged
=
True
if
not
someFilesHaveChanged
:
print
(
"[DMT]
No change in ASN.1 model."
)
print
(
"[DMT]
Reusing cached ASN.1 AST for "
,
","
.
join
(
listOfFilenames
)
)
if
not
xmlAST
:
(
dummy
,
xmlAST
)
=
tempfile
.
mkstemp
()
...
...
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