Skip to content

Commit 22ed101

Browse files
Merge pull request #1899 from Microsoft/earlyErrors2
Emit even in the presence of parse errors.
2 parents 6807bf8 + e63d795 commit 22ed101

File tree

1,012 files changed

+49770
-421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,012 files changed

+49770
-421
lines changed

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10119,7 +10119,7 @@ module ts {
1011910119
return isImportResolvedToValue(getSymbolOfNode(node));
1012010120
}
1012110121

10122-
function hasSemanticErrors(sourceFile?: SourceFile) {
10122+
function hasSemanticDiagnostics(sourceFile?: SourceFile) {
1012310123
// Return true if there is any semantic error in a file or globally
1012410124
return getDiagnostics(sourceFile).length > 0 || getGlobalDiagnostics().length > 0;
1012510125
}
@@ -10218,7 +10218,7 @@ module ts {
1021810218
getNodeCheckFlags,
1021910219
getEnumMemberValue,
1022010220
isTopLevelValueImportWithEntityName,
10221-
hasSemanticErrors,
10221+
hasSemanticDiagnostics,
1022210222
isDeclarationVisible,
1022310223
isImplementationOfOverload,
1022410224
writeTypeOfDeclaration,

src/compiler/core.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ module ts {
280280
messageText: text,
281281
category: message.category,
282282
code: message.code,
283-
isEarly: message.isEarly
284283
};
285284
}
286285

@@ -299,8 +298,7 @@ module ts {
299298

300299
messageText: text,
301300
category: message.category,
302-
code: message.code,
303-
isEarly: message.isEarly
301+
code: message.code
304302
};
305303
}
306304

src/compiler/diagnosticInformationMap.generated.ts

+107-107
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)