def METHOD_NAME(self, type_symbol):
    """
    Updates the current type symbol to the handed over one.
    :param type_symbol: a new type symbol element.
    :type type_symbol: TypeSymbol.
    """
    from pynestml.symbols.type_symbol import TypeSymbol
    assert (type_symbol is not None and isinstance(type_symbol, TypeSymbol)), \
        '(PyNestML.AST.DataType) No or wrong type of type symbol provided (%s)!' % (type(type_symbol))
    self.type_symbol = type_symbol