fparser Reference Guide
0.0.14
|
Public Member Functions | |
def | __init__ (self, comment, linenospan, reader) |
def | __repr__ (self) |
def | isempty (self, ignore_comments=False) |
Public Attributes | |
comment | |
span | |
reader | |
line | |
Holds a Fortran comment. :param str comment: String containing the text of a single or \ multi-line comment :param linenospan: A 2-tuple containing the start and end line \ numbers of the comment from the input source. :type linenospan: (int, int) :param reader: The reader object being used to read the input \ source. :type reader: :py:class:`fparser.common.readfortran.FortranReaderBase`
Definition at line 432 of file readfortran.py.
def fparser.common.readfortran.Comment.isempty | ( | self, | |
ignore_comments = False |
|||
) |
Whether or not this comment is in fact empty (or we are ignoring it). Provided for compatibility with Line.isempty() :param bool ignore_comments: whether we ignore comments :return: True if we are ignoring comments, False otherwise :rtype: bool
Definition at line 460 of file readfortran.py.