Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, declaration_txt, partial_datatype=None) |
def | __str__ (self) |
def | partial_datatype (self) |
def | type_text (self) |
def | __eq__ (self, other) |
Public Member Functions inherited from psyclone.psyir.symbols.datatypes.UnsupportedType | |
def | __init__ (self, declaration_txt) |
def | declaration (self) |
Indicates that a Fortran declaration is not supported by the PSyIR. :param str declaration_txt: string containing the original variable declaration. :param partial_datatype: a PSyIR datatype representing the subset of type attributes that are supported. :type partial_datatype: Optional[ :py:class:`psyclone.psyir.symbols.DataType` or :py:class:`psyclone.psyir.symbols.DataTypeSymbol`]
Definition at line 126 of file datatypes.py.
def psyclone.psyir.symbols.datatypes.UnsupportedFortranType.__eq__ | ( | self, | |
other | |||
) |
:param Any other: the object to check equality to. :returns: whether this type is equal to the 'other' type. :rtype: bool
Reimplemented from psyclone.psyir.symbols.datatypes.DataType.
Definition at line 225 of file datatypes.py.
References psyclone.psyir.symbols.datatypes.UnsupportedFortranType.type_text().
def psyclone.psyir.symbols.datatypes.UnsupportedFortranType.__str__ | ( | self | ) |
Abstract method that must be implemented in subclass.
Reimplemented from psyclone.psyir.symbols.datatypes.UnsupportedType.
Definition at line 153 of file datatypes.py.
def psyclone.psyir.symbols.datatypes.UnsupportedFortranType.partial_datatype | ( | self | ) |
:returns: partial datatype information if it can be determined, else None. :rtype: Optional[:py:class:`psyclone.symbols.DataType`]
Definition at line 157 of file datatypes.py.
References psyclone.psyir.symbols.datatypes.UnsupportedFortranType._partial_datatype.
def psyclone.psyir.symbols.datatypes.UnsupportedFortranType.type_text | ( | self | ) |
Parses the original Fortran declaration and uses the resulting parse tree to extract the type information. This is returned in text form and also cached. TODO #2137 - alter Unsupported(Fortran)Type so that it is only the type information that is stored as a string. i.e. remove the name of the variable being declared. Once that is done this method won't be required. Note that UnsupportedFortranType is also used to hold things like 'SAVE :: /my_common/' and thus it is not always possible/appropriate to extract a type expression. :returns: the Fortran code specifying the type. :rtype: str :raises NotImplementedError: if declaration text cannot be extracted from the original Fortran declaration.
Definition at line 166 of file datatypes.py.
References psyclone.psyir.symbols.datatypes.UnsupportedType._declaration, and psyclone.psyir.symbols.datatypes.UnsupportedFortranType._type_text.