|
1 | 1 |
|
2 | 2 | //
|
3 | 3 | // Copyright (c) Microsoft Corporation. All rights reserved.
|
4 |
| -// |
| 4 | +// |
5 | 5 | // Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | // you may not use this file except in compliance with the License.
|
7 | 7 | // You may obtain a copy of the License at
|
@@ -350,7 +350,7 @@ namespace Utils {
|
350 | 350 | assert.equal(node1.end, node2.end, "node1.end !== node2.end");
|
351 | 351 | assert.equal(node1.kind, node2.kind, "node1.kind !== node2.kind");
|
352 | 352 |
|
353 |
| - // call this on both nodes to ensure all propagated flags have been set (and thus can be |
| 353 | + // call this on both nodes to ensure all propagated flags have been set (and thus can be |
354 | 354 | // compared).
|
355 | 355 | assert.equal(ts.containsParseError(node1), ts.containsParseError(node2));
|
356 | 356 | assert.equal(node1.flags, node2.flags, "node1.flags !== node2.flags");
|
@@ -751,7 +751,7 @@ namespace Harness {
|
751 | 751 | (emittedFile: string, emittedLine: number, emittedColumn: number, sourceFile: string, sourceLine: number, sourceColumn: number, sourceName: string): void;
|
752 | 752 | }
|
753 | 753 |
|
754 |
| - // Settings |
| 754 | + // Settings |
755 | 755 | export let userSpecifiedRoot = "";
|
756 | 756 | export let lightMode = false;
|
757 | 757 |
|
@@ -790,7 +790,7 @@ namespace Harness {
|
790 | 790 | fileName: string,
|
791 | 791 | sourceText: string,
|
792 | 792 | languageVersion: ts.ScriptTarget) {
|
793 |
| - // We'll only assert invariants outside of light mode. |
| 793 | + // We'll only assert invariants outside of light mode. |
794 | 794 | const shouldAssertInvariants = !Harness.lightMode;
|
795 | 795 |
|
796 | 796 | // Only set the parent nodes if we're asserting invariants. We don't need them otherwise.
|
@@ -935,7 +935,7 @@ namespace Harness {
|
935 | 935 | libFiles?: string;
|
936 | 936 | }
|
937 | 937 |
|
938 |
| - // Additional options not already in ts.optionDeclarations |
| 938 | + // Additional options not already in ts.optionDeclarations |
939 | 939 | const harnessOptionDeclarations: ts.CommandLineOption[] = [
|
940 | 940 | { name: "allowNonTsExtensions", type: "boolean" },
|
941 | 941 | { name: "useCaseSensitiveFileNames", type: "boolean" },
|
@@ -1187,7 +1187,7 @@ namespace Harness {
|
1187 | 1187 | errLines.forEach(e => outputLines.push(e));
|
1188 | 1188 |
|
1189 | 1189 | // do not count errors from lib.d.ts here, they are computed separately as numLibraryDiagnostics
|
1190 |
| - // if lib.d.ts is explicitly included in input files and there are some errors in it (i.e. because of duplicate identifiers) |
| 1190 | + // if lib.d.ts is explicitly included in input files and there are some errors in it (i.e. because of duplicate identifiers) |
1191 | 1191 | // then they will be added twice thus triggering 'total errors' assertion with condition
|
1192 | 1192 | // 'totalErrorsReportedInNonLibraryFiles + numLibraryDiagnostics + numTest262HarnessDiagnostics, diagnostics.length
|
1193 | 1193 |
|
@@ -1497,7 +1497,7 @@ namespace Harness {
|
1497 | 1497 | };
|
1498 | 1498 | testUnitData.push(newTestFile2);
|
1499 | 1499 |
|
1500 |
| - // unit tests always list files explicitly |
| 1500 | + // unit tests always list files explicitly |
1501 | 1501 | const parseConfigHost: ts.ParseConfigHost = {
|
1502 | 1502 | readDirectory: (name) => []
|
1503 | 1503 | };
|
|
0 commit comments