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

Method _iscompoundopenclosecurly

explainshell/matcher.py:751–759  ·  view source on GitHub ↗
(compound)

Source from the content-addressed store, hash-verified

749 self.functions.add(name.word)
750
751 def _iscompoundopenclosecurly(compound):
752 first, last = compound.list[0], compound.list[-1]
753 if (
754 first.kind == "reservedword"
755 and last.kind == "reservedword"
756 and first.word == "{"
757 and last.word == "}"
758 ):
759 return True
760
761 # if the compound command we have there is { }, let's include the
762 # {} as part of the function declaration. normally it would be

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected