diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-11-27 05:33:16 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-11-27 05:33:16 +0000 |
commit | cdca9771599b4c3337aaf42cf7460a27dc1719d5 (patch) | |
tree | 9617dfa2aa53d78c6bd2d3cf4428137d355faa76 /src/main/javassist/compiler/Parser.java | |
parent | ced4ae1f0e2130b36cb51faf6345d5b8e036585e (diff) | |
download | javassist-cdca9771599b4c3337aaf42cf7460a27dc1719d5.tar.gz javassist-cdca9771599b4c3337aaf42cf7460a27dc1719d5.zip |
I implemented a type checker for better code generation.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@55 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/compiler/Parser.java')
-rw-r--r-- | src/main/javassist/compiler/Parser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/compiler/Parser.java b/src/main/javassist/compiler/Parser.java index dcc14a24..46d17151 100644 --- a/src/main/javassist/compiler/Parser.java +++ b/src/main/javassist/compiler/Parser.java @@ -852,7 +852,7 @@ public final class Parser implements TokenId { case '!' : case '~' : t = lex.get(); - return new Expr(t, parseUnaryExpr(tbl)); + return Expr.make(t, parseUnaryExpr(tbl)); case '(' : return parseCast(tbl); default : @@ -1051,7 +1051,7 @@ public final class Parser implements TokenId { throw new SyntaxError(lex); } - return Expr.make(CALL, expr, parseArgumentList(tbl)); + return CallExpr.makeCall(expr, parseArgumentList(tbl)); } private String toClassName(ASTree name) |