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

Method set_lineno

tools/inspector_protocol/jinja2/nodes.py:208–217  ·  view source on GitHub ↗

Set the line numbers of the node and children.

(self, lineno, override=False)

Source from the content-addressed store, hash-verified

206 return self
207
208 def set_lineno(self, lineno, override=False):
209 """Set the line numbers of the node and children."""
210 todo = deque([self])
211 while todo:
212 node = todo.popleft()
213 if 'lineno' in node.attributes:
214 if node.lineno is None or override:
215 node.lineno = lineno
216 todo.extend(node.iter_child_nodes())
217 return self
218
219 def set_environment(self, environment):
220 """Set the environment for all nodes."""

Callers 1

parseMethod · 0.45

Calls 3

popleftMethod · 0.80
extendMethod · 0.45
iter_child_nodesMethod · 0.45

Tested by

no test coverage detected