Commit dceb9bf0 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Oops - forgot there's already a 3rd slot (EnumID). Add OPTIONAL as 4th one, update diagram.

parent 87be851f
......@@ -67,12 +67,14 @@
# | _members list:(name, value) | | |------------------------|
# +-----------------------------+ | | _containedType |
# +------------------------------------+ | value: string, |
# | AsnSequence/AsnSet | | AsnBasicNode, |
# |----------------------------- | | AsnEnumerated |
# | _members list:(name, value, opt/al)| +------------------------+
# | AsnSequence/AsnSet/AsnChoice | | AsnBasicNode, |
# |------------------------------------| | AsnEnumerated |
# | _members list:(name, value, en, op)| +------------------------+
# | value: AsnBasicNode, |
# | AsnEnumerated, |
# | AsnMetaMember |
# | en: the EnumID from ASN1SCC |
# | op: the OPTIONAL-ity status |
# +------------------------------------+
from typing import List, Union, Dict, Any # NOQA pylint: disable=unused-import
......
......@@ -741,8 +741,9 @@ def CommonSeqSetChoice(
if opti and opti == "True":
utility.warn("OPTIONAL attribute ignored (for field contained in %s,%s)" % (newModule._asnFilename, lineNo))
enumID = GetAttr(x, "EnumID")
myMembers.append([GetAttr(x, "VarName"), GenericFactory(newModule, GetChild(x, "Type")), opti == "True"])
myMembers.append([GetAttr(x, "VarName"), GenericFactory(newModule, GetChild(x, "Type"))])
myMembers[-1].append(enumID)
myMembers[-1].append(opti == "True")
for tup in myMembers:
if isinstance(tup[1], AsnMetaType):
asnMetaMember = AsnMetaMember(
......
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