Extract reference comments out into their own diagnostics array.

Only actual parse errors are stored in parseDiagnostics.  Reference errors are stored in a separate
array now.
This commit is contained in:
Cyrus Najmabadi
2014-12-02 14:49:34 -08:00
parent ec0f5e44b8
commit 90bf48f2d4
3 changed files with 65 additions and 51 deletions

View File

@@ -732,9 +732,12 @@ module ts {
public amdDependencies: string[];
public amdModuleName: string;
public referencedFiles: FileReference[];
public referenceDiagnostics: Diagnostic[];
public parseDiagnostics: Diagnostic[];
public grammarDiagnostics: Diagnostic[];
public semanticDiagnostics: Diagnostic[];
public hasNoDefaultLib: boolean;
public externalModuleIndicator: Node; // The first node that causes this file to be an external module
public nodeCount: number;