src/symbol.cpp
/*!
 * \fn Script script() const
 * \brief returns the script in which the symbol is defined
 */
\fn Script script() const
\brief returns the script in which the symbol is defined
\ fn Script script () const \ brief returns the script in which the symbol is defined
Script Symbol::script() const
{
  if (isNull())
    return Script{};
  if (dynamic_cast<ScriptImpl*>(d.get()) != nullptr)
    return Script{ std::static_pointer_cast<ScriptImpl>(d) };
  return parent().script();
}
Script Symbol :: script ( ) const { if ( isNull ( ) ) return Script { } ; if ( dynamic_cast < ScriptImpl * > ( d . get ( ) ) != nullptr ) return Script { std :: static_pointer_cast < ScriptImpl > ( d ) } ; return parent ( ) . script ( ) ; }
\fn Script script() const
 \brief returns the script in which the symbol is defined
\ fn Script script () const \ brief returns the script in which the symbol is defined