fparser.two.Fortran2008.critical_construct_r810 =============================================== .. py:module:: fparser.two.Fortran2008.critical_construct_r810 .. autoapi-nested-parse:: Module containing Fortran2008 Critical_Construct rule R810 Classes ------- .. autoapisummary:: fparser.two.Fortran2008.critical_construct_r810.Critical_Construct Module Contents --------------- .. py:class:: Critical_Construct(string, parent_cls=None) Bases: :py:obj:`fparser.two.utils.BlockBase` Fortran 2008 Rule 810. critical-construct is critical-stmt block end-critical-stmt TODO: Should disallow RETURN (C809) and CYCLE or EXIT to outside block (C811) .. py:attribute:: subclass_names :value: [] .. py:attribute:: use_names :value: ['Critical_Stmt', 'Execution_Part_Construct', 'End_Critical_Stmt'] .. py:method:: match(reader) :staticmethod: Attempt to match the supplied content with this Rule. :param reader: the fortran file reader containing the line(s) of code that we are trying to match :type reader: :py:class:`fparser.common.readfortran.FortranFileReader` | :py:class:`fparser.common.readfortran.FortranStringReader` :returns: instance of class that has matched or `None` if no match. :rtype: :py:class:`fparser.two.utils.BlockBase` | NoneType