mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Remove what looks like copy/paste errors in the parser.
This commit is contained in:
parent
c1dfdaa436
commit
f20fbb9726
@ -876,7 +876,10 @@ module ts {
|
||||
|
||||
var sourceFile = <SourceFile>createNode(SyntaxKind.SourceFile, /*pos*/ 0);
|
||||
|
||||
sourceFile.pos = sourceFile.end = 0;
|
||||
sourceFile.pos = 0;
|
||||
sourceFile.end = sourceText.length;
|
||||
sourceFile.text = sourceText;
|
||||
|
||||
sourceFile.referenceDiagnostics = [];
|
||||
sourceFile.parseDiagnostics = [];
|
||||
sourceFile.bindDiagnostics = [];
|
||||
@ -961,13 +964,6 @@ module ts {
|
||||
// attached to the EOF token.
|
||||
var parseErrorBeforeNextFinishedNode: boolean = false;
|
||||
|
||||
sourceFile.syntacticDiagnostics = undefined;
|
||||
sourceFile.referenceDiagnostics = [];
|
||||
sourceFile.parseDiagnostics = [];
|
||||
sourceFile.bindDiagnostics = [];
|
||||
sourceFile.end = sourceText.length;
|
||||
sourceFile.text = sourceText;
|
||||
|
||||
// Create and prime the scanner before parsing the source elements.
|
||||
scanner = createScanner(languageVersion, /*skipTrivia*/ true, sourceText, scanError);
|
||||
token = nextToken();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user