Visual Studio tool.
| 10 | |
| 11 | |
| 12 | class Tool: |
| 13 | """Visual Studio tool.""" |
| 14 | |
| 15 | def __init__(self, name, attrs=None): |
| 16 | """Initializes the tool. |
| 17 | |
| 18 | Args: |
| 19 | name: Tool name. |
| 20 | attrs: Dict of tool attributes; may be None. |
| 21 | """ |
| 22 | self._attrs = attrs or {} |
| 23 | self._attrs["Name"] = name |
| 24 | |
| 25 | def _GetSpecification(self): |
| 26 | """Creates an element for the tool. |
| 27 | |
| 28 | Returns: |
| 29 | A new xml.dom.Element for the tool. |
| 30 | """ |
| 31 | return ["Tool", self._attrs] |
| 32 | |
| 33 | |
| 34 | class Filter: |
no outgoing calls
no test coverage detected