MCPcopy Index your code
hub / github.com/nodejs/node / parse_with

Method parse_with

deps/v8/third_party/jinja2/parser.py:271–286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 7

parse_assign_targetMethod · 0.95
parse_expressionMethod · 0.95
parse_statementsMethod · 0.95
nextFunction · 0.50
expectMethod · 0.45
set_ctxMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected