* Returns the first token where position is in [start, end), * excluding `JsxText` tokens containing only whitespace.
(sourceFile, position)
| 127504 | * excluding `JsxText` tokens containing only whitespace. |
| 127505 | */ |
| 127506 | function findFirstNonJsxWhitespaceToken(sourceFile, position) { |
| 127507 | var tokenAtPosition = getTokenAtPosition(sourceFile, position); |
| 127508 | while (isWhiteSpaceOnlyJsxText(tokenAtPosition)) { |
| 127509 | var nextToken = findNextToken(tokenAtPosition, tokenAtPosition.parent, sourceFile); |
| 127510 | if (!nextToken) |
| 127511 | return; |
| 127512 | tokenAtPosition = nextToken; |
| 127513 | } |
| 127514 | return tokenAtPosition; |
| 127515 | } |
| 127516 | ts.findFirstNonJsxWhitespaceToken = findFirstNonJsxWhitespaceToken; |
| 127517 | /** |
| 127518 | * The token on the left of the position is the token that strictly includes the position |
nothing calls this directly
no test coverage detected