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

Function find_undeclared

tools/inspector_protocol/jinja2/compiler.py:108–118  ·  view source on GitHub ↗

Check if the names passed are accessed undeclared. The return value is a set of all the undeclared names from the sequence of names found.

(nodes, names)

Source from the content-addressed store, hash-verified

106
107
108def find_undeclared(nodes, names):
109 """Check if the names passed are accessed undeclared. The return value
110 is a set of all the undeclared names from the sequence of names found.
111 """
112 visitor = UndeclaredNameVisitor(names)
113 try:
114 for node in nodes:
115 visitor.visit(node)
116 except VisitorExit:
117 pass
118 return visitor.undeclared
119
120
121class MacroRef(object):

Callers 3

macro_bodyMethod · 0.70
visit_TemplateMethod · 0.70
visit_ForMethod · 0.70

Calls 2

visitMethod · 0.45

Tested by

no test coverage detected