(ctx context.Context, sourceFile *ast.SourceFile, start int, end int)
| 113 | } |
| 114 | |
| 115 | func FormatSelection(ctx context.Context, sourceFile *ast.SourceFile, start int, end int) []core.TextChange { |
| 116 | return FormatSpan(ctx, core.NewTextRange(GetLineStartPositionForPosition(start, sourceFile), end), sourceFile, FormatRequestKindFormatSelection) |
| 117 | } |
| 118 | |
| 119 | func FormatOnOpeningCurly(ctx context.Context, sourceFile *ast.SourceFile, position int) []core.TextChange { |
| 120 | openingCurly := findImmediatelyPrecedingTokenOfKind(position, ast.KindOpenBraceToken, sourceFile) |