39 ''' This module contains the Schedule node implementation.'''
46 ''' Stores schedule information for a sequence of statements (supplied
47 as a list of children).
51 _children_valid_format =
"[Statement]*"
52 _text_name =
"Schedule"
56 def _validate_child(position, child):
58 :param int position: the position to be validated.
59 :param child: a child to be validated.
60 :type child: :py:class:`psyclone.psyir.nodes.Node`
62 :return: whether the given child and position are valid for this node.
67 return isinstance(child, Statement)
71 Overload the subscript notation ([int]) to access specific statements
74 :param int index: index of the statement to access.
75 :returns: statement in a given position in the Schedule sequence.
76 :rtype: :py:class:`psyclone.psyir.nodes.Node`
83 result += str(entity) +
"\n"
89 A Schedule does not have any direct Fortran representation. We just
90 call gen_code() for all of its children.
92 :param parent: node in the f2pygen AST to which to add content.
93 :type parent: :py:class:`psyclone.f2pygen.BaseGen`
96 child.gen_code(parent)
100 __all__ = [
'Schedule']
def children(self, my_children)
def coloured_name(self, colour=True)
def gen_code(self, parent)
def __getitem__(self, index)