Commit d8ce060c authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Refactored aadl2glueC to use static importing

Refactored aadl2glueC to use static importing
(aiming towards better mypy checking)
parent 1edeffaa
......@@ -48,10 +48,6 @@ isAsynchronous = True
cBackend = None
def Version() -> None:
print("Code generator: " + "$Id: ada_B_mapper.py 2382 2012-06-22 08:35:33Z ttsiodras $") # pragma: no cover
def OnStartup(unused_modelingLanguage: str, asnFile: str, outputDir: str, maybeFVname: str, useOSS: bool) -> None:
global cBackend
# 2009-02-10: Since we now use ASN1SCC structures as dumpables (even for Ada)
......
......@@ -51,10 +51,6 @@ isAsynchronous = True
cBackend = None
def Version() -> None:
print("Code generator: " + "$Id: c_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $")
# noinspection PyListCreation
# pylint: disable=no-self-use
class FromCtoOSS(RecursiveMapper):
......
......@@ -103,10 +103,6 @@ isAsynchronous = True
ogBackend = None
def Version() -> None:
print("Code generator: " + "$Id: og_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $")
# noinspection PyListCreation
# pylint: disable=no-self-use
class FromObjectGeodeToASN1SCC(RecursiveMapper):
......
......@@ -51,9 +51,6 @@ isAsynchronous = True
cBackend = None
def Version() -> None:
print("Code generator: " + "$Id: qgenada_B_mapper.py $") # pragma: no cover
# All the ada B mapper is now Obsolete, we are using ASN1SCC for Dumpables
......
......@@ -53,10 +53,6 @@ isAsynchronous = False
qgencBackend = None
def Version() -> None:
print("Code generator: " + "$Id: qgenc_B_mapper.py $")
def IsElementMappedToPrimitive(node: AsnSequenceOrSetOf, names: AST_Lookup) -> bool:
contained = node._containedType
while isinstance(contained, str):
......
......@@ -46,10 +46,6 @@ rtdsBackend = None
cBackend = None
def Version() -> None:
print("Code generator: " + "$Id: rtds_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $")
# noinspection PyListCreation
# pylint: disable=no-self-use
class FromRTDSToASN1SCC(RecursiveMapper):
......
......@@ -52,11 +52,6 @@ isAsynchronous = False
scadeBackend = None
def Version() -> None:
print("Code generator: " +
"$Id: scade6_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $")
# noinspection PyListCreation
# pylint: disable=no-self-use
class FromSCADEtoASN1SCC(RecursiveMapper):
......
......@@ -104,10 +104,6 @@ isAsynchronous = True
ogBackend = None
def Version() -> None:
print(("Code generator: " + "$Id: og_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $"))
# noinspection PyListCreation
# pylint: disable=no-self-use
class FromObjectGeodeToASN1SCC(RecursiveMapper):
......
......@@ -51,10 +51,6 @@ isAsynchronous = False
simulinkBackend = None
def Version() -> None:
print("Code generator: " + "$Id: simulink_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $")
def IsElementMappedToPrimitive(node: AsnSequenceOrSetOf, names: AST_Lookup) -> bool:
contained = node._containedType
while isinstance(contained, str):
......
......@@ -66,10 +66,6 @@ vhdlBackend = None
g_octStr = [] # type: List[int]
def Version() -> None:
print("Code generator: " + "$Id: vhdl_B_mapper.py 2390 2012-07-19 12:39:17Z ttsiodras $") # pragma: no cover
def CleanName(name: str) -> str:
return re.sub(r'[^a-zA-Z0-9_]', '_', name)
......
This diff is collapsed.
Supports Markdown
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