============= utilities =============
(text string, start int)
| 291 | // ============= utilities ============= |
| 292 | |
| 293 | func hasCommentsBeforeLineBreak(text string, start int) bool { |
| 294 | for _, ch := range []rune(text[start:]) { |
| 295 | if !stringutil.IsWhiteSpaceSingleLine(ch) { |
| 296 | return ch == '/' |
| 297 | } |
| 298 | } |
| 299 | return false |
| 300 | } |
| 301 | |
| 302 | func needSemicolonBetween(a, b *ast.Node) bool { |
| 303 | return (ast.IsPropertySignatureDeclaration(a) || ast.IsPropertyDeclaration(a)) && |
no test coverage detected