add jsx factory and hold text in jsxtext node (#29439)

* add jsx factory and hold text in jsxtext node

* update jsxtext prop name and factory
This commit is contained in:
Wenlu Wang
2019-03-11 16:00:18 -07:00
committed by Wesley Wigham
parent 3ba5aa9f60
commit b97b1a8de6
10 changed files with 45 additions and 13 deletions
+2 -1
View File
@@ -4256,7 +4256,8 @@ namespace ts {
function parseJsxText(): JsxText {
const node = <JsxText>createNode(SyntaxKind.JsxText);
node.containsOnlyWhiteSpaces = currentToken === SyntaxKind.JsxTextAllWhiteSpaces;
node.text = scanner.getTokenValue();
node.containsOnlyTriviaWhiteSpaces = currentToken === SyntaxKind.JsxTextAllWhiteSpaces;
currentToken = scanner.scanJsxToken();
return finishNode(node);
}