MCPcopy Create free account
hub / github.com/EasyIME/PIME / _ControlBlock

Class _ControlBlock

python/python3/tornado/template.py:617–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615
616
617class _ControlBlock(_Node):
618 def __init__(self, statement: str, line: int, body: _Node) -> None:
619 self.statement = statement
620 self.line = line
621 self.body = body
622
623 def each_child(self) -> Iterable[_Node]:
624 return (self.body,)
625
626 def generate(self, writer: "_CodeWriter") -> None:
627 writer.write_line("%s:" % self.statement, self.line)
628 with writer.indent():
629 self.body.generate(writer)
630 # Just in case the body was empty
631 writer.write_line("pass", self.line)
632
633
634class _IntermediateControlBlock(_Node):

Callers 1

_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected