src/script.cpp
/*!
 * \fn void clearAst()
 * \brief Destroys the script ast.
 *
 * Note that this does nothing if the ast is marked as locked.
 * An ast is locked by the implementation when it may be needed later in time; 
 * for example when the script contains templates.
 */
\fn void clearAst()
\brief Destroys the script ast.

Note that this does nothing if the ast is marked as locked.
An ast is locked by the implementation when it may be needed later in time;
for example when the script contains templates.
\ fn void clearAst () \ brief Destroys the script ast . Note that this does nothing if the ast is marked as locked . An ast is locked by the implementation when it may be needed later in time ; for example when the script contains templates .
void Script::clearAst()
{
  if (d->astlock)
    return;
  d->ast = nullptr;
}
void Script :: clearAst ( ) { if ( d -> astlock ) return ; d -> ast = nullptr ; }
\fn void clearAst()
 \brief Destroys the script ast.
\ fn void clearAst () \ brief Destroys the script ast .