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
4c2051fc
Commit
4c2051fc
authored
Oct 14, 2014
by
Maxime Perrotin
Browse files
Autocompletion of OUTPUT calls
parent
366cec81
Changes
1
Hide whitespace changes
Inline
Side-by-side
sdlSymbols.py
View file @
4c2051fc
...
...
@@ -252,8 +252,15 @@ class Output(VerticalSymbol):
@
property
def
completion_list
(
self
):
''' Set auto-completion list '''
return
chain
(
variables_autocompletion
(
self
),
(
sig
[
'name'
]
for
sig
in
CONTEXT
.
output_signals
))
if
'('
in
unicode
(
self
):
# Output parameter: return the list of variables of this type
output_name
=
unicode
(
self
).
split
(
'('
)[
0
].
strip
().
lower
()
asn1_filter
=
[
sig
[
'type'
]
for
sig
in
CONTEXT
.
output_signals
if
sig
[
'name'
]
==
output_name
]
return
variables_autocompletion
(
self
,
asn1_filter
)
else
:
# Return the list of output signals
return
(
set
(
sig
[
'name'
]
for
sig
in
CONTEXT
.
output_signals
))
# pylint: disable=R0904
...
...
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