From 8d0f24f2f81fb7f5d399452fa11c747716181b88 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Fri, 3 Feb 2017 15:22:45 +0100 Subject: [PATCH] Merge --- src/de/dhbwstuttgart/parser/JavaTXParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/parser/JavaTXParser.java b/src/de/dhbwstuttgart/parser/JavaTXParser.java index b16745ec..abfb5495 100644 --- a/src/de/dhbwstuttgart/parser/JavaTXParser.java +++ b/src/de/dhbwstuttgart/parser/JavaTXParser.java @@ -5,6 +5,7 @@ import de.dhbwstuttgart.parser.antlr.Java8Parser; import de.dhbwstuttgart.syntaxtree.ClassOrInterface; import de.dhbwstuttgart.syntaxtree.SourceFile; import de.dhbwstuttgart.syntaxtree.modifier.Modifier; +import de.dhbwstuttgart.typecheck.JavaClassRegistry; import org.antlr.v4.runtime.ANTLRInputStream; import org.antlr.v4.runtime.CommonTokenStream; @@ -18,7 +19,7 @@ public class JavaTXParser { 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()); return generator.convert(tree); } }