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

Method call_method

deps/v8/third_party/jinja2/ext.py:137–160  ·  view source on GitHub ↗

Call a method of the extension. This is a shortcut for :meth:`attr` + :class:`jinja2.nodes.Call`.

(
        self,
        name: str,
        args: t.Optional[t.List[nodes.Expr]] = None,
        kwargs: t.Optional[t.List[nodes.Keyword]] = None,
        dyn_args: t.Optional[nodes.Expr] = None,
        dyn_kwargs: t.Optional[nodes.Expr] = None,
        lineno: t.Optional[int] = None,
    )

Source from the content-addressed store, hash-verified

135 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
136
137 def call_method(
138 self,
139 name: str,
140 args: t.Optional[t.List[nodes.Expr]] = None,
141 kwargs: t.Optional[t.List[nodes.Keyword]] = None,
142 dyn_args: t.Optional[nodes.Expr] = None,
143 dyn_kwargs: t.Optional[nodes.Expr] = None,
144 lineno: t.Optional[int] = None,
145 ) -> nodes.Call:
146 """Call a method of the extension. This is a shortcut for
147 :meth:`attr` + :class:`jinja2.nodes.Call`.
148 """
149 if args is None:
150 args = []
151 if kwargs is None:
152 kwargs = []
153 return nodes.Call(
154 self.attr(name, lineno=lineno),
155 args,
156 kwargs,
157 dyn_args,
158 dyn_kwargs,
159 lineno=lineno,
160 )
161
162
163@pass_context

Callers 1

parseMethod · 0.45

Calls 2

attrMethod · 0.95
CallMethod · 0.45

Tested by

no test coverage detected