MCPcopy Create free account
hub / github.com/nodejs/node / parse_autoescape

Method parse_autoescape

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

Source from the content-addressed store, hash-verified

286 return node
287
288 def parse_autoescape(self) -> nodes.Scope:
289 node = nodes.ScopedEvalContextModifier(lineno=next(self.stream).lineno)
290 node.options = [nodes.Keyword("autoescape", self.parse_expression())]
291 node.body = self.parse_statements(("name:endautoescape",), drop_needle=True)
292 return nodes.Scope([node])
293
294 def parse_block(self) -> nodes.Block:
295 node = nodes.Block(lineno=next(self.stream).lineno)

Callers

nothing calls this directly

Calls 4

parse_expressionMethod · 0.95
parse_statementsMethod · 0.95
ScopeMethod · 0.80
nextFunction · 0.50

Tested by

no test coverage detected