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

Method visitparameter

explainshell/matcher.py:811–820  ·  view source on GitHub ↗
(self, node, value)

Source from the content-addressed store, hash-verified

809 self.expansions.append(match_word_exp(node.pos[0], node.pos[1], "tilde"))
810
811 def visitparameter(self, node, value):
812 try:
813 int(value)
814 kind = "digits"
815 except ValueError:
816 kind = help_constants.parameters.get(value, "param")
817
818 self.expansions.append(
819 match_word_exp(node.pos[0], node.pos[1], f"parameter-{kind}")
820 )
821
822 def match(self):
823 if isinstance(self.s, bytes):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected