Simplified TypeOf/ResolveExpression.

This commit is contained in:
Roberto Raggi
2009-06-17 11:11:21 +02:00
parent ddef96ecda
commit 873838fe3a
3 changed files with 11 additions and 16 deletions

View File

@@ -329,6 +329,8 @@ void Document::check()
for (DeclarationAST *decl = ast->declarations; decl; decl = decl->next) {
semantic.check(decl, globals);
}
} else if (ExpressionAST *ast = _translationUnit->ast()->asExpression()) {
semantic.check(ast, globals);
}
}