MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / match

Method match

preprocessor/docopt.py:234–238  ·  view source on GitHub ↗
(self, left, collected=None)

Source from the content-addressed store, hash-verified

232class Optional(BranchPattern):
233
234 def match(self, left, collected=None):
235 collected = [] if collected is None else collected
236 for pattern in self.children:
237 m, left, collected = pattern.match(left, collected)
238 return True, left, collected
239
240
241class OptionsShortcut(Optional):

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected