Merge branch 'master' into layering

Conflicts:
	src/compiler/checker.ts
	src/compiler/parser.ts
This commit is contained in:
Cyrus Najmabadi
2014-12-16 23:15:57 -08:00
372 changed files with 3608 additions and 3244 deletions

View File

@@ -1166,7 +1166,17 @@ module Harness {
return errorOutput;
}
function compareDiagnostics(d1: HarnessDiagnostic, d2: HarnessDiagnostic) {
return ts.compareValues(d1.filename, d2.filename) ||
ts.compareValues(d1.start, d2.start) ||
ts.compareValues(d1.end, d2.end) ||
ts.compareValues(d1.code, d2.code) ||
ts.compareValues(d1.message, d2.message) ||
0;
}
export function getErrorBaseline(inputFiles: { unitName: string; content: string }[], diagnostics: HarnessDiagnostic[]) {
diagnostics.sort(compareDiagnostics);
var outputLines: string[] = [];
// Count up all the errors we find so we don't miss any