Example usage for org.eclipse.jdt.core.dom ASTConverter convert

List of usage examples for org.eclipse.jdt.core.dom ASTConverter convert

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom ASTConverter convert.

Prototype

public void convert(org.eclipse.jdt.internal.compiler.ast.Javadoc javadoc, IGetJavaDoc getJ, ISetJavaDoc setJ) 

Source Link

Usage

From source file:org.rascalmpl.library.lang.java.m3.internal.EclipseJavaCompiler.java

License:Open Source License

protected IValue convertToAST(IBool collectBindings, Map<String, ISourceLocation> cache, ISourceLocation loc,
        CompilationUnit cu, TypeStore store) {
    ASTConverter converter = new ASTConverter(store, cache, collectBindings.getValue());
    converter.convert(cu, cu, loc);
    converter.insertCompilationUnitMessages(true, null);
    return converter.getValue();
}