};
return new Compiler(errorManager);
}
public JsResponse compile(JsUri jsUri, Iterable<JsContent> content, String externs) {
JsResponse exportResponse = defaultCompiler.compile(jsUri, content, externs);
content = exportResponse.getAllJsContent();
String cacheKey = makeCacheKey(exportResponse.toJsString(), externs, jsUri);
JsResponse cachedResult = cache.getElement(cacheKey);
if (cachedResult != null) {
return cachedResult;
}
// Only run actual compiler if necessary.