use of com.github.javaparser.symbolsolver.JavaSymbolSolver in project javaparser by javaparser.
the class SymbolSolverQuickSetupTest method setUp.
@Before
public void setUp() throws IOException {
SymbolSolverQuickSetup ssr = new SymbolSolverQuickSetup(root);
TypeSolver typeSolver = ssr.walk();
parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver));
}
use of com.github.javaparser.symbolsolver.JavaSymbolSolver in project javaparser by javaparser.
the class JavaParserFacadeResolutionTest method parseWithTypeSolver.
private CompilationUnit parseWithTypeSolver(String code) {
TypeSolver typeSolver = new ReflectionTypeSolver();
ParserConfiguration parserConfiguration = new ParserConfiguration();
parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver));
JavaParser javaParser = new JavaParser(parserConfiguration);
return javaParser.parse(ParseStart.COMPILATION_UNIT, new StringProvider(code)).getResult().get();
}
Aggregations