Walk through and visit shapes for introspection :type shape: botocore.model.Shape :param shape: Shape to walk :type visitor: BaseShapeVisitor :param visitor: The visitor to call when walking a shape
(self, shape, visitor)
| 580 | |
| 581 | class ShapeWalker: |
| 582 | def walk(self, shape, visitor): |
| 583 | """Walk through and visit shapes for introspection |
| 584 | |
| 585 | :type shape: botocore.model.Shape |
| 586 | :param shape: Shape to walk |
| 587 | |
| 588 | :type visitor: BaseShapeVisitor |
| 589 | :param visitor: The visitor to call when walking a shape |
| 590 | """ |
| 591 | |
| 592 | if shape is None: |
| 593 | return |
| 594 | stack = [] |
| 595 | return self._walk(shape, visitor, stack) |
| 596 | |
| 597 | def _walk(self, shape, visitor, stack): |
| 598 | if shape.name in stack: |
no test coverage detected