(self)
| 271 | return result |
| 272 | |
| 273 | def parse_with(self) -> nodes.With: |
| 274 | node = nodes.With(lineno=next(self.stream).lineno) |
| 275 | targets: t.List[nodes.Expr] = [] |
| 276 | values: t.List[nodes.Expr] = [] |
| 277 | while self.stream.current.type != "block_end": |
| 278 | if targets: |
| 279 | self.stream.expect("comma") |
| 280 | target = self.parse_assign_target() |
| 281 | target.set_ctx("param") |
| 282 | targets.append(target) |
| 283 | self.stream.expect("assign") |
| 284 | values.append(self.parse_expression()) |
| 285 | node.targets = targets |
| 286 | node.values = values |
| 287 | node.body = self.parse_statements(("name:endwith",), drop_needle=True) |
| 288 | return node |
| 289 | |
| 290 | def parse_autoescape(self) -> nodes.Scope: |
| 291 | node = nodes.ScopedEvalContextModifier(lineno=next(self.stream).lineno) |
nothing calls this directly
no test coverage detected