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-12 07:00:18 +08:00
committed by Wesley Wigham
parent 3ba5aa9f60
commit b97b1a8de6
10 changed files with 45 additions and 13 deletions

View File

@@ -905,7 +905,7 @@ namespace ts {
}
function isWhiteSpaceOnlyJsxText(node: Node): boolean {
return isJsxText(node) && node.containsOnlyWhiteSpaces;
return isJsxText(node) && node.containsOnlyTriviaWhiteSpaces;
}
export function isInTemplateString(sourceFile: SourceFile, position: number) {