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

Function args_as_const

tools/inspector_protocol/jinja2/nodes.py:602–618  ·  view source on GitHub ↗
(node, eval_ctx)

Source from the content-addressed store, hash-verified

600
601
602def args_as_const(node, eval_ctx):
603 args = [x.as_const(eval_ctx) for x in node.args]
604 kwargs = dict(x.as_const(eval_ctx) for x in node.kwargs)
605
606 if node.dyn_args is not None:
607 try:
608 args.extend(node.dyn_args.as_const(eval_ctx))
609 except Exception:
610 raise Impossible()
611
612 if node.dyn_kwargs is not None:
613 try:
614 kwargs.update(node.dyn_kwargs.as_const(eval_ctx))
615 except Exception:
616 raise Impossible()
617
618 return args, kwargs
619
620
621class Filter(Expr):

Callers 2

as_constMethod · 0.70
as_constMethod · 0.70

Calls 4

ImpossibleClass · 0.70
updateMethod · 0.65
as_constMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected