Browse Source

changed the compiler so that multiple statements do not need to be

surrouneded by {}.  The compiler implicitly surround the statemetns
by {}.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@72 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 20 years ago
parent
commit
805dd3c4f8
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      src/main/javassist/compiler/Javac.java

+ 4
- 5
src/main/javassist/compiler/Javac.java View File

@@ -519,18 +519,17 @@ public class Javac {
* this method.
*
* <p>Local variables that are not declared
* in the compiled source text are not accessible within that
* source text. Fields and method parameters
* ($0, $1, ..) are available.
* in the compiled source text might not be accessible within that
* source text. Fields and method parameters ($0, $1, ..) are available.
*/
public void compileStmnt(String src) throws CompileError {
Parser p = new Parser(new Lex(src));
SymbolTable stb = new SymbolTable(stable);
// while (p.hasMore()) {
while (p.hasMore()) {
Stmnt s = p.parseStatement(stb);
if (s != null)
s.accept(gen);
// }
}
}

/**

Loading…
Cancel
Save