forked from JavaTX/JavaCompilerCore
Fixed RunParser according to new constructor.
This commit is contained in:
parent
d55d6734d9
commit
ade687483c
@ -25,7 +25,7 @@ public class RunParser{
|
||||
CommonTokenStream tokens = new CommonTokenStream(lexer);
|
||||
Java8Parser parser = new Java8Parser(tokens);
|
||||
Java8Parser.CompilationUnitContext tree = parser.compilationUnit();
|
||||
SyntaxTreeGenerator generator = new SyntaxTreeGenerator();
|
||||
SyntaxTreeGenerator generator = new SyntaxTreeGenerator(new JavaClassRegistry());
|
||||
SourceFile f = generator.convert((Java8Parser.CompilationUnitContext) tree);
|
||||
String pkgName = f.getPkgName();
|
||||
System.out.println(pkgName);
|
||||
|
@ -55,7 +55,7 @@ public class SyntaxTreeGenerator{
|
||||
}
|
||||
}
|
||||
|
||||
public JavaClassRegistry getReg{
|
||||
public JavaClassRegistry getReg(){
|
||||
return this.reg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user