Beispiel #1
0
 def visit_if_stmt(self, s: IfStmt) -> None:
     infer_reachability_of_if_statement(s,
                                        pyversion=self.pyversion,
                                        platform=self.platform)
     for node in s.body:
         node.accept(self)
     if s.else_body:
         s.else_body.accept(self)
Beispiel #2
0
 def visit_if_stmt(self, s: IfStmt) -> None:
     infer_reachability_of_if_statement(s, self.sem.options)
     for node in s.body:
         node.accept(self)
     if s.else_body:
         s.else_body.accept(self)
Beispiel #3
0
 def visit_if_stmt(self, s: IfStmt) -> None:
     infer_reachability_of_if_statement(s, pyversion=self.pyversion, platform=self.platform)
     for node in s.body:
         node.accept(self)
     if s.else_body:
         s.else_body.accept(self)