MCPcopy Create free account
hub / github.com/idank/explainshell / debug_match

Method debug_match

explainshell/matcher.py:856–864  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

854 logger.warning("no AST generated for %r", self.s)
855
856 def debug_match():
857 lines = []
858 for i, m in enumerate(self.all_matches):
859 portion = self.s[m.start : m.end]
860 text = m.text or ""
861 if len(text) > 40:
862 text = text[:40] + "..."
863 lines.append(f"{i}) {portion} = {text}")
864 return "\n".join(lines)
865
866 self._mark_unparsed_unknown()
867

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected