Commit b3e03c41 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Type annotations in recursive mapper of all ASTs

parent f52978fc
......@@ -26,6 +26,7 @@ from .asnAST import (
AsnBasicNode, AsnSequence, AsnSet, AsnChoice, AsnSequenceOf,
AsnSetOf, AsnEnumerated, AsnMetaMember, AsnNode
)
from .asnParser import AST_Leaftypes, AST_Lookup
TSrc = TypeVar('TSrc')
......@@ -44,37 +45,37 @@ class RecursiveMapperGeneric(Generic[TSrc, TDest]):
def CleanName(self, fieldName: str) -> str: # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', fieldName)
def Version(self): # pylint: disable=no-self-use
def Version(self) -> None: # pylint: disable=no-self-use
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapInteger(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapInteger(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapReal(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapReal(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapBoolean(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapBoolean(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapOctetString(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapOctetString(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapEnumerated(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapEnumerated(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapSequence(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapSequence(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapSet(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapSet(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapChoice(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapChoice(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapSequenceOf(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapSequenceOf(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def MapSetOf(self, unused_srcVar, unused_destVar, unused_node, unused_leafTypeDict, unused_names): # pylint: disable=no-self-use
def MapSetOf(self, unused_srcVar: TSrc, unused_destVar: TDest, unused_node: AsnNode, unused_leafTypeDict: AST_Leaftypes, unused_names: AST_Lookup) -> List[str]: # pylint: disable=no-self-use,invalid-sequence-index
panicWithCallStack("Method undefined in a RecursiveMapper...")
def Map(self,
......
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