| 16 | |
| 17 | |
| 18 | class MappingKey(NamedTuple): |
| 19 | k: str |
| 20 | |
| 21 | def match(self, n: Node) -> Generator[Node]: |
| 22 | if isinstance(n, MappingNode): |
| 23 | for k, _ in n.value: |
| 24 | if k.value == self.k: |
| 25 | yield k |
| 26 | |
| 27 | |
| 28 | class MappingValue(NamedTuple): |
no outgoing calls