MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsWhitespaceOnlyJsxText

Function IsWhitespaceOnlyJsxText

internal/ast/utilities.go:2137–2139  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

2135}
2136
2137func IsWhitespaceOnlyJsxText(node *Node) bool {
2138 return node.Kind == KindJsxText && node.AsJsxText().ContainsOnlyTriviaWhiteSpaces
2139}
2140
2141func GetNewTargetContainer(node *Node) *Node {
2142 container := GetThisContainer(node, false /*includeArrowFunctions*/, false /*includeClassComputedPropertyName*/)

Callers 4

FindPrecedingTokenExFunction · 0.92
isValidPrecedingNodeFunction · 0.92
findRightmostValidTokenFunction · 0.92
IsNonWhitespaceTokenFunction · 0.85

Calls 1

AsJsxTextMethod · 0.80

Tested by

no test coverage detected