The "root_node" is an implict node of lines which are executed in the global scope on the file itself and not otherwise part of any function. :param lines list[ast]: :param parent Group: :rtype: Node
(lines, parent)
| 335 | |
| 336 | @staticmethod |
| 337 | def make_root_node(lines, parent): |
| 338 | """ |
| 339 | The "root_node" is an implict node of lines which are executed in the global |
| 340 | scope on the file itself and not otherwise part of any function. |
| 341 | |
| 342 | :param lines list[ast]: |
| 343 | :param parent Group: |
| 344 | :rtype: Node |
| 345 | """ |
| 346 | token = "(global)" |
| 347 | line_number = lineno(lines[0]) if lines else 0 |
| 348 | calls = make_calls(lines) |
| 349 | variables = make_local_variables(lines, parent) |
| 350 | root_node = Node(token, calls, variables, parent, |
| 351 | line_number=line_number) |
| 352 | return root_node |
| 353 | |
| 354 | @staticmethod |
| 355 | def make_class_group(tree, parent): |
no test coverage detected