}
@Override
public CompilationUnit resolveCompilationUnit(Source unitSource, Source librarySource)
throws AnalysisException {
InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-resolveCompilationUnit");
checkThread(instrumentation);
try {
instrumentation.metric("contextId", contextId);
return basis.resolveCompilationUnit(unitSource, librarySource);
} catch (AnalysisException e) {
recordAnalysisException(instrumentation, e);
throw e;
} finally {
instrumentation.log();
}
}