Wraps a reference or pending reference to add a query string. The query string is generated from the attributes added to this node. Also equivalent to a `~docutils.nodes.literal` node.
| 44 | |
| 45 | |
| 46 | class _QueryReference(nodes.Inline, nodes.TextElement): |
| 47 | """ |
| 48 | Wraps a reference or pending reference to add a query string. |
| 49 | |
| 50 | The query string is generated from the attributes added to this node. |
| 51 | |
| 52 | Also equivalent to a `~docutils.nodes.literal` node. |
| 53 | """ |
| 54 | |
| 55 | def to_query_string(self): |
| 56 | """Generate query string from node attributes.""" |
| 57 | return '&'.join(f'{name}={value}' for name, value in self.attlist()) |
| 58 | |
| 59 | |
| 60 | def _visit_query_reference_node(self, node): |
no outgoing calls
no test coverage detected
searching dependent graphs…