(node *ast.Node)
| 142 | } |
| 143 | |
| 144 | func (s *formattingScanner) shouldRescanJsxText(node *ast.Node) bool { |
| 145 | if ast.IsJsxText(node) { |
| 146 | return true |
| 147 | } |
| 148 | if !ast.IsJsxElement(node) || s.hasLastTokenInfo == false { |
| 149 | return false |
| 150 | } |
| 151 | |
| 152 | return s.lastTokenInfo.token.Kind == ast.KindJsxText |
| 153 | } |
| 154 | |
| 155 | func shouldRescanSlashToken(container *ast.Node) bool { |
| 156 | return container.Kind == ast.KindRegularExpressionLiteral |
no test coverage detected