@DartBlockBody({"throw new AnalysisException(\"Could not resolve dart:core\");"})
public static void missingCoreLibrary(AnalysisContext analysisContext, Source coreLibrarySource)
throws AnalysisException {
InstrumentationBuilder instrumentation = Instrumentation.builder("ErrorNoCoreLibrary");
try {
DartSdk sdk = analysisContext.getSourceFactory().getDartSdk();
if (sdk == null) {
instrumentation.data("sdkPath", "--null--");
} else if (sdk instanceof DirectoryBasedDartSdk) {
File directory = ((DirectoryBasedDartSdk) sdk).getDirectory();
if (directory == null) {