psyclone.psyir.nodes.file_container

This module contains the FileContainer node implementation.

Classes

  • FileContainer: PSyIR node to encapsulate the scope of a source file. In the

class psyclone.psyir.nodes.file_container.FileContainer(name, **kwargs)

PSyIR node to encapsulate the scope of a source file. In the PSyIR, a FileContainer is identical to a Container. However, it is useful to distinguish this type of container for the backends, which can have different constraints/syntax for general Containers and a FileContainer. For example, a FileContainer can not have any symbol table entries in Fortran.

Inheritance

Inheritance diagram of FileContainer
node_str(colour=True)

Returns the name of this node with appropriate control codes to generate coloured output in a terminal that supports it.

Parameters:

colour (bool) – whether or not to include colour control codes.

Returns:

description of this node, possibly coloured.

Return type:

str