Commit 8fc00789 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Abolish global state that was marking types to skip over (coverage tests pass)

parent 974fc2ec
......@@ -499,5 +499,5 @@ def CreateDeclarationForType(nodeTypename, names, leafTypeDict):
def CreateDeclarationsForAllTypes(names, leafTypeDict, badTypes):
for nodeTypename in names:
if not names[nodeTypename]._isArtificial and nodeTypename not in badTypes):
if not names[nodeTypename]._isArtificial and nodeTypename not in badTypes:
CreateDeclarationForType(nodeTypename, names, leafTypeDict)
......@@ -168,7 +168,7 @@ def main():
if 'OnStartup' in dir(backend):
backend.OnStartup(modelingLanguage, list(uniqueASNfiles.keys()), commonPy.configMT.outputDir, badTypes)
if 'OnShutdown' in dir(backend):
backend.OnShutdown()
backend.OnShutdown(badTypes)
else:
# Work on each ASN.1 file's types
for asnFile in uniqueASNfiles:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment