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 authored and Wesley Wigham committed 2019-03-11 16:00:18 -07:00
1 parent 3ba5aa9f60
commit b97b1a8de6
10 files changed
+45 -13

No files matched your search

+1 -1
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) {