Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
c78f5321
Commit
c78f5321
authored
Feb 04, 2018
by
Maxime Perrotin
Browse files
No more _Set functions for choice types
(ASN1SCC_V4 change)
parent
84c5f773
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
c78f5321
...
...
@@ -2307,7 +2307,7 @@ def _choiceitem(choice):
ogAST
.
PrimStringLiteral
)):
choice_str
=
array_content
(
choice
.
value
[
'value'
],
choice_str
,
find_basic_type
(
choice
.
value
[
'value'
].
exprType
))
ada_string
=
u
'
{cType}_{opt}_set(
{expr})'
.
format
(
ada_string
=
u
'
(Kind => {opt}_PRESENT, {opt} =>
{expr})'
.
format
(
cType
=
type_name
(
choice
.
exprType
),
opt
=
choice
.
value
[
'choice'
],
expr
=
choice_str
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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