MCPcopy Index your code
hub / github.com/python/mypy / begin

Method begin

mypyc/irbuild/ll_builder.py:3064–3072  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3062 self.loop_exit = BasicBlock()
3063
3064 def begin(self) -> None:
3065 builder = self.builder
3066 builder.assign(self.index, self.start)
3067 builder.goto_and_activate(self.top)
3068 op = ComparisonOp.SLT if self.signed else ComparisonOp.ULT
3069 comp = ComparisonOp(self.index, self.end, op, line=-1)
3070 builder.add(comp)
3071 builder.add(Branch(comp, self.body, self.loop_exit, Branch.BOOL))
3072 builder.goto_and_activate(self.body)
3073
3074 def finish(self) -> None:
3075 builder = self.builder

Callers 1

begin_forMethod · 0.95

Calls 5

ComparisonOpClass · 0.90
BranchClass · 0.90
assignMethod · 0.45
goto_and_activateMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected