Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, root, line, position, dir_type) |
def | type (self) |
def | position (self) |
Base class for directives so we can reason about them when walking the tree. Sub-classes the fparser1 Comment class. :param root: the parent node in the AST to which we are adding the \ directive :type root: subclass of :py:class:`fparser.common.base_classes.Statement` :param line: the fparser object which we will manipulate to create \ the desired directive. :type line: :py:class:`fparser.common.readfortran.Comment` :param str position: e.g. 'begin' or 'end' (language specific) :param str dir_type: the type of directive that this is (e.g. \ 'parallel do')
Definition at line 81 of file f2pygen.py.
def psyclone.f2pygen.Directive.position | ( | self | ) |
:returns: the position of this Directive ('begin' or 'end'). :rtype: str
Definition at line 116 of file f2pygen.py.
References psyclone.f2pygen.Directive._position.
def psyclone.f2pygen.Directive.type | ( | self | ) |
:returns: the type of this Directive. :rtype: str
Definition at line 108 of file f2pygen.py.
References psyclone.f2pygen.Directive._my_type.