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)
| 360 | |
| 361 | @staticmethod |
| 362 | def make_root_node(lines, parent): |
| 363 | """ |
| 364 | The "root_node" is an implict node of lines which are executed in the global |
| 365 | scope on the file itself and not otherwise part of any function. |
| 366 | |
| 367 | :param lines list[ast]: |
| 368 | :param parent Group: |
| 369 | :rtype: Node |
| 370 | """ |
| 371 | token = "(global)" |
| 372 | calls = make_calls(lines) |
| 373 | variables = make_local_variables(lines, parent) |
| 374 | root_node = Node(token, calls, variables, |
| 375 | line_number=0, parent=parent) |
| 376 | return root_node |
| 377 | |
| 378 | @staticmethod |
| 379 | def make_class_group(tree, parent): |
nothing calls this directly
no test coverage detected