Run processor. Must be overridden by subclasses. When the parser determines the appropriate type of a block, the parser will call the corresponding processor's `run` method. This method should parse the individual lines of the block and append them to the `etree`.
(self, parent: etree.Element, blocks: list[str])
| 124 | pass # pragma: no cover |
| 125 | |
| 126 | def run(self, parent: etree.Element, blocks: list[str]) -> bool | None: |
| 127 | """ Run processor. Must be overridden by subclasses. |
| 128 | |
| 129 | When the parser determines the appropriate type of a block, the parser |
| 130 | will call the corresponding processor's `run` method. This method |
| 131 | should parse the individual lines of the block and append them to |
| 132 | the `etree`. |
| 133 | |
| 134 | Note that both the `parent` and `etree` keywords are pointers |
| 135 | to instances of the objects which should be edited in place. Each |
| 136 | processor must make changes to the existing objects as there is no |
| 137 | mechanism to return new/different objects to replace them. |
| 138 | |
| 139 | This means that this method should be adding `SubElements` or adding text |
| 140 | to the parent, and should remove (`pop`) or add (`insert`) items to |
| 141 | the list of blocks. |
| 142 | |
| 143 | If `False` is returned, this will have the same effect as returning `False` |
| 144 | from the `test` method. |
| 145 | |
| 146 | Keyword arguments: |
| 147 | parent: An `etree` element which is the parent of the current block. |
| 148 | blocks: A list of all remaining blocks of the document. |
| 149 | """ |
| 150 | pass # pragma: no cover |
| 151 | |
| 152 | |
| 153 | class ListIndentProcessor(BlockProcessor): |
nothing calls this directly
no outgoing calls
no test coverage detected