| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 13 | 1 | class LabelNode(Node): |
|
| 14 | """ |
||
| 15 | SDoc2 node for labels. |
||
| 16 | """ |
||
| 17 | |||
| 18 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 19 | 1 | def __init__(self, io, options, argument): |
|
| 20 | """ |
||
| 21 | Object constructor. |
||
| 22 | |||
| 23 | :param None|cleo.styles.output_style.OutputStyle io: The IO object. |
||
| 24 | :param dict[str,str] options: The options of this label. |
||
| 25 | :param str argument: The title of this label. |
||
| 26 | """ |
||
| 27 | 1 | super().__init__(io, 'label', options, argument) |
|
| 28 | |||
| 29 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 30 | 1 | def get_command(self): |
|
| 31 | """ |
||
| 32 | Returns the command of this node, i.e. label. |
||
| 33 | |||
| 34 | :rtype: str |
||
| 35 | """ |
||
| 36 | 1 | return 'label' |
|
| 37 | |||
| 38 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 39 | 1 | def is_block_command(self): |
|
| 40 | """ |
||
| 41 | Returns False. |
||
| 42 | |||
| 43 | :rtype: bool |
||
| 44 | """ |
||
| 45 | 1 | return False |
|
| 46 | |||
| 47 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 48 | 1 | def is_inline_command(self): |
|
| 49 | """ |
||
| 50 | Returns True. |
||
| 51 | |||
| 52 | :rtype: bool |
||
| 53 | """ |
||
| 54 | return True |
||
| 55 | |||
| 59 |