( insertion_text = 'Test',
menu_text = None,
extra_menu_info = None,
detailed_info = None,
kind = None,
extra_data = None )
| 57 | |
| 58 | |
| 59 | def BuildCompletion( insertion_text = 'Test', |
| 60 | menu_text = None, |
| 61 | extra_menu_info = None, |
| 62 | detailed_info = None, |
| 63 | kind = None, |
| 64 | extra_data = None ): |
| 65 | completion = { |
| 66 | 'insertion_text': insertion_text |
| 67 | } |
| 68 | |
| 69 | if extra_menu_info: |
| 70 | completion[ 'extra_menu_info' ] = extra_menu_info |
| 71 | if menu_text: |
| 72 | completion[ 'menu_text' ] = menu_text |
| 73 | if detailed_info: |
| 74 | completion[ 'detailed_info' ] = detailed_info |
| 75 | if kind: |
| 76 | completion[ 'kind' ] = kind |
| 77 | if extra_data: |
| 78 | completion[ 'extra_data' ] = extra_data |
| 79 | return completion |
| 80 | |
| 81 | |
| 82 | def BuildCompletionNamespace( namespace = None, |
no outgoing calls
no test coverage detected