mirror of https://github.com/aamine/cbc
* 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:
parent
e50c55f673
commit
55841b6115
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue