void TreeWalker::parseDeclarator(DeclaratorAST *node) { parseAll(this, node->ptrOpList()); parseNode(node->subDeclarator()); parseNode(node->declaratorId()); parseNode(node->bitfieldInitialization()); parseAll(this, node->arrayDimensionList()); parseNode(node->parameterDeclarationClause()); parseNode(node->constant()); parseNode(node->exceptionSpecification()); }
bool Node::assign(const std::string &line1, const std::string &line2, bool forceParsing) { // Check checksums ErrorCode error = checkLine(line1); if (error != NoError) { m_lastError = error; return false; } error = checkLine(line2); if (error != NoError) { m_lastError = error; return false; } // Assign free(); m_line2 = new std::string(line1); m_line3 = new std::string(line2); m_fileType = TwoLines; // Parse if (forceParsing) parseAll(); return (m_lastError == NoError); }
void TreeWalker::parseClassSpecifier(ClassSpecifierAST *node) { parseNode(node->winDeclSpec()); parseNode(node->classKey()); parseNode(node->baseClause()); parseAll(this, node->declarationList()); }
void TreeWalker::parseName(NameAST *node) { parseAll(this, node->classOrNamespaceNameList()); parseNode(node->unqualifiedName()); }
void TreeWalker::parseTemplateArgumentList(TemplateArgumentListAST *node) { List<AST *> *arglist = node->argumentList(); parseAll(this, arglist); }
void TreeWalker::parseExpression(AbstractExpressionAST *node) { parseAll(this, node->children()); }
void TreeWalker::parseTranslationUnit(TranslationUnitAST *node) { parseAll(this, node->declarationList()); }
void TreeWalker::parseStatementList(StatementListAST *node) { parseAll(this, node->statementList()); }
void TreeWalker::parseTemplateParameterList(TemplateParameterListAST *node) { parseAll(this, node->templateParameterList()); }
void TreeWalker::parseInitDeclaratorList(InitDeclaratorListAST *node) { parseAll(this, node->initDeclaratorList()); }
void TreeWalker::parseParameterDeclarationList(ParameterDeclarationListAST *node) { parseAll(this, node->parameterList()); }
void TreeWalker::parseLinkageBody(LinkageBodyAST *node) { parseAll(this, node->declarationList()); }
void TreeWalker::parseEnumSpecifier(EnumSpecifierAST *node) { parseAll(this, node->enumeratorList()); }
void TreeWalker::parseBaseClause(BaseClauseAST *node) { parseAll(this, node->baseSpecifierList()); }
void TreeWalker::parseAccessDeclaration(AccessDeclarationAST *node) { parseAll(this, node->accessList()); }