mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
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:
File diff suppressed because it is too large
Load Diff
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user