Use a single scanner for all parsing tasks.

This commit is contained in:
Cyrus Najmabadi
2015-04-12 14:02:58 -07:00
parent 96995e705a
commit 61951e5d94
4 changed files with 54 additions and 27 deletions
+1
View File
@@ -54,6 +54,7 @@ module ts {
}
text = "";
}
return text !== undefined ? createSourceFile(fileName, text, languageVersion, setParentNodes) : undefined;
}