Home
last modified time | relevance | path

Searched refs:eval_ctx (Results 1 – 25 of 28) sorted by relevance

12

/third_party/jinja2/
Dnodes.py407 def as_const(self, eval_ctx=None): argument
432 def as_const(self, eval_ctx=None): argument
433 eval_ctx = get_eval_context(self, eval_ctx)
442 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
454 def as_const(self, eval_ctx=None): argument
455 eval_ctx = get_eval_context(self, eval_ctx)
464 return f(self.node.as_const(eval_ctx))
512 def as_const(self, eval_ctx=None): argument
543 def as_const(self, eval_ctx=None): argument
544 eval_ctx = get_eval_context(self, eval_ctx)
[all …]
Dfilters.py168 def do_replace(eval_ctx, s, old, new, count=None): argument
185 if not eval_ctx.autoescape:
452 def do_join(eval_ctx, value, d=u"", attribute=None): argument
475 value = imap(make_attrgetter(eval_ctx.environment, attribute), value)
478 if not eval_ctx.autoescape:
583 eval_ctx, value, trim_url_limit=None, nofollow=False, target=None, rel=None argument
606 policies = eval_ctx.environment.policies
615 if eval_ctx.autoescape:
1229 def do_tojson(eval_ctx, value, indent=None): argument
1254 policies = eval_ctx.environment.policies
Dcompiler.py69 if self.optimized and not frame.eval_ctx.volatile:
70 new_node = self.optimizer.visit(node, frame.eval_ctx)
137 def __init__(self, eval_ctx, parent=None, level=None): argument
138 self.eval_ctx = eval_ctx
178 return Frame(self.eval_ctx, level=self.symbols.level + 1)
179 return Frame(self.eval_ctx, self)
333 if frame.eval_ctx.volatile:
343 elif frame.eval_ctx.autoescape:
714 eval_ctx = EvalContext(self.environment, self.name)
763 frame = Frame(eval_ctx)
[all …]
Dasyncfilters.py87 async def do_join(eval_ctx, value, d=u"", attribute=None): argument
88 return filters.do_join(eval_ctx, await auto_to_seq(value), d, attribute)
Druntime.py187 self.eval_ctx = EvalContext(self.environment, name)
286 args = (__self.eval_ctx,) + args
306 context.eval_ctx = self.eval_ctx
373 if self._context.eval_ctx.autoescape:
Denvironment.py480 self, name, value, args=None, kwargs=None, context=None, eval_ctx=None argument
502 if eval_ctx is None:
504 eval_ctx = context.eval_ctx
506 eval_ctx = EvalContext(self)
507 args.insert(0, eval_ctx)
Dnativetypes.py51 const = node.as_const(frame.eval_ctx)
Dext.py151 if __context.eval_ctx.autoescape:
166 if __context.eval_ctx.autoescape:
/third_party/node/tools/inspector_protocol/jinja2/
Dnodes.py397 def as_const(self, eval_ctx=None): argument
421 def as_const(self, eval_ctx=None): argument
422 eval_ctx = get_eval_context(self, eval_ctx)
429 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
440 def as_const(self, eval_ctx=None): argument
441 eval_ctx = get_eval_context(self, eval_ctx)
448 return f(self.node.as_const(eval_ctx))
493 def as_const(self, eval_ctx=None): argument
519 def as_const(self, eval_ctx=None): argument
520 eval_ctx = get_eval_context(self, eval_ctx)
[all …]
Dcompiler.py66 if self.optimized and not frame.eval_ctx.volatile:
67 new_node = self.optimizer.visit(node, frame.eval_ctx)
133 def __init__(self, eval_ctx, parent=None, level=None): argument
134 self.eval_ctx = eval_ctx
175 return Frame(self.eval_ctx, level=self.symbols.level + 1)
176 return Frame(self.eval_ctx, self)
330 if frame.eval_ctx.volatile:
340 elif frame.eval_ctx.autoescape:
697 eval_ctx = EvalContext(self.environment, self.name)
743 frame = Frame(eval_ctx)
[all …]
Dfilters.py116 def do_replace(eval_ctx, s, old, new, count=None): argument
133 if not eval_ctx.autoescape:
378 def do_join(eval_ctx, value, d=u'', attribute=None): argument
401 value = imap(make_attrgetter(eval_ctx.environment, attribute), value)
404 if not eval_ctx.autoescape:
499 def do_urlize(eval_ctx, value, trim_url_limit=None, nofollow=False, argument
522 policies = eval_ctx.environment.policies
531 if eval_ctx.autoescape:
1047 def do_tojson(eval_ctx, value, indent=None): argument
1072 policies = eval_ctx.environment.policies
Doptimizer.py35 def fold(self, node, eval_ctx=None): argument
39 return nodes.Const.from_untrusted(node.as_const(eval_ctx),
Dnativetypes.py80 const = child.as_const(frame.eval_ctx)
90 if frame.eval_ctx.autoescape:
Dasyncfilters.py78 async def do_join(eval_ctx, value, d=u'', attribute=None): argument
79 return filters.do_join(eval_ctx, await auto_to_seq(value), d, attribute)
Druntime.py161 self.eval_ctx = EvalContext(self.environment, name)
258 args = (__self.eval_ctx,) + args
275 context.eval_ctx = self.eval_ctx
346 if self._context.eval_ctx.autoescape:
Denvironment.py439 context=None, eval_ctx=None): argument
459 if eval_ctx is None:
461 eval_ctx = context.eval_ctx
463 eval_ctx = EvalContext(self)
464 args.insert(0, eval_ctx)
Dext.py141 if __context.eval_ctx.autoescape:
152 if __context.eval_ctx.autoescape:
/third_party/skia/third_party/externals/jinja2/
Dnodes.py407 def as_const(self, eval_ctx=None): argument
432 def as_const(self, eval_ctx=None): argument
433 eval_ctx = get_eval_context(self, eval_ctx)
442 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
454 def as_const(self, eval_ctx=None): argument
455 eval_ctx = get_eval_context(self, eval_ctx)
464 return f(self.node.as_const(eval_ctx))
512 def as_const(self, eval_ctx=None): argument
543 def as_const(self, eval_ctx=None): argument
544 eval_ctx = get_eval_context(self, eval_ctx)
[all …]
Dfilters.py168 def do_replace(eval_ctx, s, old, new, count=None): argument
185 if not eval_ctx.autoescape:
452 def do_join(eval_ctx, value, d=u"", attribute=None): argument
475 value = imap(make_attrgetter(eval_ctx.environment, attribute), value)
478 if not eval_ctx.autoescape:
583 eval_ctx, value, trim_url_limit=None, nofollow=False, target=None, rel=None argument
606 policies = eval_ctx.environment.policies
615 if eval_ctx.autoescape:
1229 def do_tojson(eval_ctx, value, indent=None): argument
1254 policies = eval_ctx.environment.policies
Dcompiler.py69 if self.optimized and not frame.eval_ctx.volatile:
70 new_node = self.optimizer.visit(node, frame.eval_ctx)
137 def __init__(self, eval_ctx, parent=None, level=None): argument
138 self.eval_ctx = eval_ctx
178 return Frame(self.eval_ctx, level=self.symbols.level + 1)
179 return Frame(self.eval_ctx, self)
333 if frame.eval_ctx.volatile:
343 elif frame.eval_ctx.autoescape:
714 eval_ctx = EvalContext(self.environment, self.name)
763 frame = Frame(eval_ctx)
[all …]
Dasyncfilters.py87 async def do_join(eval_ctx, value, d=u"", attribute=None): argument
88 return filters.do_join(eval_ctx, await auto_to_seq(value), d, attribute)
Druntime.py187 self.eval_ctx = EvalContext(self.environment, name)
286 args = (__self.eval_ctx,) + args
306 context.eval_ctx = self.eval_ctx
373 if self._context.eval_ctx.autoescape:
Denvironment.py480 self, name, value, args=None, kwargs=None, context=None, eval_ctx=None argument
502 if eval_ctx is None:
504 eval_ctx = context.eval_ctx
506 eval_ctx = EvalContext(self)
507 args.insert(0, eval_ctx)
Dnativetypes.py51 const = node.as_const(frame.eval_ctx)
Dext.py151 if __context.eval_ctx.autoescape:
166 if __context.eval_ctx.autoescape:

12