Home
last modified time | relevance | path

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

/external/python/jinja/src/jinja2/
Dnodes.py395 def as_const(self, eval_ctx=None): argument
420 def as_const(self, eval_ctx=None): argument
421 eval_ctx = get_eval_context(self, eval_ctx)
430 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
442 def as_const(self, eval_ctx=None): argument
443 eval_ctx = get_eval_context(self, eval_ctx)
452 return f(self.node.as_const(eval_ctx))
500 def as_const(self, eval_ctx=None): argument
521 def as_const(self, eval_ctx=None): argument
522 eval_ctx = get_eval_context(self, eval_ctx)
[all …]
Dcompiler.py38 if self.optimized and not frame.eval_ctx.volatile:
39 new_node = self.optimizer.visit(node, frame.eval_ctx)
102 def __init__(self, eval_ctx, parent=None, level=None): argument
103 self.eval_ctx = eval_ctx
143 return Frame(self.eval_ctx, level=self.symbols.level + 1)
144 return Frame(self.eval_ctx, self)
298 if frame.eval_ctx.volatile:
308 elif frame.eval_ctx.autoescape:
667 eval_ctx = EvalContext(self.environment, self.name)
716 frame = Frame(eval_ctx)
[all …]
Dfilters.py161 def do_replace(eval_ctx, s, old, new, count=None): argument
178 if not eval_ctx.autoescape:
445 def do_join(eval_ctx, value, d="", attribute=None): argument
468 value = map(make_attrgetter(eval_ctx.environment, attribute), value)
471 if not eval_ctx.autoescape:
572 eval_ctx, value, trim_url_limit=None, nofollow=False, target=None, rel=None argument
595 policies = eval_ctx.environment.policies
604 if eval_ctx.autoescape:
1209 def do_tojson(eval_ctx, value, indent=None): argument
1234 policies = eval_ctx.environment.policies
Druntime.py188 self.eval_ctx = EvalContext(self.environment, name)
288 args = (__self.eval_ctx,) + args
307 context.eval_ctx = self.eval_ctx
361 if self._context.eval_ctx.autoescape:
Dasyncfilters.py87 async def do_join(eval_ctx, value, d="", attribute=None): argument
88 return filters.do_join(eval_ctx, await auto_to_seq(value), d, attribute)
Denvironment.py470 self, name, value, args=None, kwargs=None, context=None, eval_ctx=None argument
491 if eval_ctx is None:
493 eval_ctx = context.eval_ctx
495 eval_ctx = EvalContext(self)
496 args.insert(0, eval_ctx)
Dnativetypes.py50 const = node.as_const(frame.eval_ctx)
Dext.py145 if __context.eval_ctx.autoescape:
160 if __context.eval_ctx.autoescape:
Dasyncsupport.py79 if self._context.eval_ctx.autoescape:
/external/libchrome/third_party/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),
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)
Dnativetypes.py80 const = child.as_const(frame.eval_ctx)
90 if frame.eval_ctx.autoescape:
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:
Dasyncsupport.py86 if self._context.eval_ctx.autoescape:
/external/tpm2-tss/src/tss2-fapi/
Difapi_policy.c74 IFAPI_POLICY_EVAL_INST_CTX *eval_ctx = NULL; in ifapi_calculate_tree() local
97 eval_ctx = &context->policy.eval_ctx; in ifapi_calculate_tree()
98 callbacks = &eval_ctx->callbacks; in ifapi_calculate_tree()
108 r = ifapi_policyeval_instantiate_async(eval_ctx, policy, callbacks); in ifapi_calculate_tree()
113 r = ifapi_policyeval_instantiate_finish(&context->policy.eval_ctx); in ifapi_calculate_tree()
115 ifapi_free_node_list(context->policy.eval_ctx.policy_elements); in ifapi_calculate_tree()
Dfapi_int.h544 IFAPI_POLICY_EVAL_INST_CTX eval_ctx; member
/external/python/jinja/tests/
Dtest_api.py66 def finalize(eval_ctx, value): argument
67 return str(eval_ctx.autoescape) + value
/external/python/jinja/docs/
Dapi.rst395 .. attribute:: eval_ctx
693 def nl2br(eval_ctx, value):
698 if eval_ctx.autoescape:
740 if context.eval_ctx.autoescape:
745 def filter(eval_ctx, value):
747 if eval_ctx.autoescape: