示例#1
0
void ASTNodes::accept(ASTVisitor& visitor)
{
   for ( std::size_t index = 0; index < mNodes.size(); index++ )
   {
      ASTNode* pnode = mNodes[index];
      pnode->accept(visitor);
   }
}
bool ReferencesResolver::resolve(ASTNode const& _root)
{
    try
    {
        _root.accept(*this);
    }
    catch (FatalError const&)
    {
        solAssert(m_errorOccurred, "");
    }
    return !m_errorOccurred;
}
示例#3
0
bool OOCheckVisitor::performStep(ASTNode& node)
{
   node.accept(*this);
   return true;
}
bool CodeGeneratorVisitor::performStep(ASTNode& node)
{
   node.accept(*this);

   return true;
}
bool VariableCheckVisitor::isVariableImpl(const ASTNode& node)
{
   node.accept(*this);
   return mVariable;
}