"Please correct syntax errors - build the package before trying the verifier again.");
}
Verifier a = new Verifier();
a.addPackageDescr(pkg);
a.fireAnalysis();
VerifierResult res = a.getResult();
AnalysisReport report = new AnalysisReport();
report.errors = doLines(res.getBySeverity(Severity.ERROR));
report.warnings = doLines(res.getBySeverity(Severity.WARNING));
report.notes = doLines(res.getBySeverity(Severity.NOTE));
report.factUsages = doFactUsage(res.getVerifierData());
return report;
}