psyclone.psyir.symbols.data_type_symbol
This module contains the DataTypeSymbol.
Classes
DataTypeSymbol
: Symbol identifying a user-defined type (e.g. a derived type in Fortran).
- class psyclone.psyir.symbols.data_type_symbol.DataTypeSymbol(name, datatype, visibility=Visibility.PUBLIC, interface=None)
Symbol identifying a user-defined type (e.g. a derived type in Fortran).
- Parameters:
name (str) – the name of this symbol.
datatype (
psyclone.psyir.symbols.DataType
) – the type represented by this symbol.visibility (
psyclone.psyir.symbols.Symbol.Visibility
) – the visibility of this symbol.interface (
psyclone.psyir.symbols.SymbolInterface
) – the interface to this symbol.
Inheritance
- copy()
Create and return a copy of this object. Any references to the original will not be affected so the copy will not be referred to by any other object.
- Returns:
A symbol object with the same properties as this symbol object.
- Return type:
psyclone.psyir.symbols.TypeSymbol
- copy_properties(symbol_in)
Replace all properties in this object with the properties from symbol_in, apart from the name (which is immutable) and visibility.
- Parameters:
symbol_in (
psyclone.psyir.symbols.DataSymbol
) – the symbol from which the properties are copied.- Raises:
TypeError – if the argument is not the expected type.
- property datatype
- Returns:
datatype that this DataTypeSymbol represents.
- Return type: