(ctx context.Context, sourceFile *ast.SourceFile, position int)
| 145 | } |
| 146 | |
| 147 | func FormatOnSemicolon(ctx context.Context, sourceFile *ast.SourceFile, position int) []core.TextChange { |
| 148 | semicolon := findImmediatelyPrecedingTokenOfKind(position, ast.KindSemicolonToken, sourceFile) |
| 149 | return formatNodeLines(ctx, sourceFile, findOutermostNodeWithinListLevel(semicolon), FormatRequestKindFormatOnSemicolon) |
| 150 | } |
| 151 | |
| 152 | func FormatOnEnter(ctx context.Context, sourceFile *ast.SourceFile, position int) []core.TextChange { |
| 153 | line := scanner.GetECMALineOfPosition(sourceFile, position) |
no test coverage detected