Remove last vestiges of the grammar checker from the parser now that it has been entirely moved to the TypeChecker.

This commit is contained in:
Cyrus Najmabadi
2014-12-16 19:59:16 -08:00
parent c2b03b6384
commit 99a189936f
3 changed files with 24 additions and 1299 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1221,9 +1221,9 @@ module ts {
isIllegalTypeReferenceInConstraint?: boolean; // Is type reference in constraint refers to the type parameter from the same list
isVisible?: boolean; // Is this node visible
localModuleName?: string; // Local name for module instance
assignmentChecks?: Map<boolean>; // Cache of assignment checks
hasReportedStatementInAmbientContext?: boolean; // Cache boolean if we report statements in ambient context
importOnRightSide?: Symbol; // for import declarations - import that appear on the right side
assignmentChecks?: Map<boolean>; // Cache of assignment checks
hasReportedStatementInAmbientContext?: boolean; // Cache boolean if we report statements in ambient context
importOnRightSide?: Symbol; // for import declarations - import that appear on the right side
}
export const enum TypeFlags {

View File

@@ -36,7 +36,7 @@ tests/cases/compiler/constDeclarations-invalidContexts.ts(29,29): error TS1156:
with (obj)
~~~
!!! error TS2410: All symbols within a 'with' block will be resolved to 'any'.
const c5 = 0;
const c5 = 0; // No Error will be reported here since we turn off all type checking
for (var i = 0; i < 10; i++)
const c6 = 0;