(ctx context.Context, sourceFile *ast.SourceFile)
| 109 | } |
| 110 | |
| 111 | func FormatDocument(ctx context.Context, sourceFile *ast.SourceFile) []core.TextChange { |
| 112 | return FormatSpan(ctx, core.NewTextRange(0, sourceFile.End()), sourceFile, FormatRequestKindFormatDocument) |
| 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) |