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)
| 106 | |
| 107 | |
| 108 | def 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 | |
| 121 | class MacroRef(object): |
no test coverage detected