* net/loveruby/cflat/compiler/DereferenceChecker.java: add blanks.

git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@3908 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2008-02-17 17:30:59 +00:00
parent e50c55f673
commit 55841b6115
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Mon Feb 18 02:30:44 2008 Minero Aoki <aamine@loveruby.net>
* net/loveruby/cflat/compiler/DereferenceChecker.java: add blanks.
Tue Feb 12 06:49:39 2008 Minero Aoki <aamine@loveruby.net>
* net/loveruby/cflat/compiler/TypeResolver.java: should check

View File

@ -26,11 +26,13 @@ class DereferenceChecker extends Visitor {
DefinedVariable var = (DefinedVariable)vars.next();
checkVariable(var);
}
Iterator funcs = ast.functions();
while (funcs.hasNext()) {
DefinedFunction f = (DefinedFunction)funcs.next();
check(f.body());
}
if (errorHandler.errorOccured()) {
throw new SemanticException("compile failed.");
}
@ -46,11 +48,12 @@ class DereferenceChecker extends Visitor {
DefinedVariable var = (DefinedVariable)vars.next();
checkVariable(var);
}
Iterator stmts = node.stmts();
while (stmts.hasNext()) {
Node stmt = (Node)stmts.next();
try {
Node n = (Node)stmts.next();
check(n);
check(stmt);
}
catch (SemanticError err) {
;