MCPcopy
hub / github.com/aws/aws-cli / walk

Method walk

awscli/utils.py:582–595  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

580
581class 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:

Callers 7

_create_record_fileFunction · 0.45
_compressMethod · 0.45
zip_directoryFunction · 0.45
validate_directoryFunction · 0.45
make_zipFunction · 0.45

Calls 1

_walkMethod · 0.95

Tested by

no test coverage detected