mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
add 'skipTrivia' parameter to scanner
This commit is contained in:
@@ -3815,7 +3815,7 @@ module ts {
|
||||
: undefined);
|
||||
}
|
||||
|
||||
scanner = createScanner(languageVersion, sourceText, scanError, onComment);
|
||||
scanner = createScanner(languageVersion, /*skipTrivia*/ true, sourceText, scanError, onComment);
|
||||
var rootNodeFlags: NodeFlags = 0;
|
||||
if (fileExtensionIs(filename, ".d.ts")) {
|
||||
rootNodeFlags = NodeFlags.DeclarationFile;
|
||||
|
||||
Reference in New Issue
Block a user