Fixed the AST field names.

This commit is contained in:
Roberto Raggi
2009-11-10 16:47:16 +01:00
parent e5eb88a31f
commit 0ae2d96a9b
18 changed files with 455 additions and 455 deletions

View File

@@ -413,7 +413,7 @@ void Document::check(CheckMode mode)
return; // nothing to do.
if (TranslationUnitAST *ast = _translationUnit->ast()->asTranslationUnit()) {
for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) {
for (DeclarationListAST *decl = ast->declaration_list; decl; decl = decl->next) {
semantic.check(decl->value, globals);
}
} else if (ExpressionAST *ast = _translationUnit->ast()->asExpression()) {