Fixed RunParser according to new constructor.

This commit is contained in:
Jakob Herrmann 2017-02-01 12:36:23 +01:00
parent d55d6734d9
commit ade687483c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -55,7 +55,7 @@ public class SyntaxTreeGenerator{
}
}
public JavaClassRegistry getReg{
public JavaClassRegistry getReg(){
return this.reg;
}