Store scanning information whether JSXText is just an all whitespaces

This commit is contained in:
Kanchalai Tanglertsampan
2017-04-11 14:55:26 -07:00
parent 17417e9a88
commit 4562fd089c
4 changed files with 12 additions and 5 deletions

View File

@@ -3825,7 +3825,8 @@ namespace ts {
}
function parseJsxText(): JsxText {
const node = <JsxText>createNode(currentToken, scanner.getStartPos());
const node = <JsxText>createNode(SyntaxKind.JsxText, scanner.getStartPos());
node.containsOnlyWhiteSpaces = currentToken === SyntaxKind.JsxTextAllWhiteSpaces;
currentToken = scanner.scanJsxToken();
return finishNode(node);
}