Parent: [88e13a] (diff)

Child: [c54339] (diff)

Download this file

Java.rsc    16 lines (11 with data), 491 Bytes

module Java

extend Extractors;
import lang::java::m3::Core;
import lang::java::m3::AST;

data Language(str version="") = java();

@extractor{}
rel[Language, loc, M3] javaM3(loc project, set[loc] files) {
  setEnvironmentOptions(classPathForProject(project), sourceRootsForProject(project));
  //compliance = getProjectOptions(project)["org.eclipse.jdt.core.compiler.compliance"];
  
  return {<java(), f, createM3FromFile(f, javaVersion=compliance)> | f <- files, f.extension == "java"};
}