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