From 423fc64ac27dbfee320286e1970f25d1e58593a5 Mon Sep 17 00:00:00 2001 From: Jack Firth Date: Thu, 8 Aug 2024 18:30:48 -0700 Subject: [PATCH] WIP --- private/refactoring-result.rkt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/private/refactoring-result.rkt b/private/refactoring-result.rkt index c4d3f02..85f8fea 100644 --- a/private/refactoring-result.rkt +++ b/private/refactoring-result.rkt @@ -109,10 +109,11 @@ ;; This function is the sole integration point between Resyntax and fmt. It is used by Resyntax to ;; format any refactored code initially generated by Resyntax. (define (format-refactored-code refactored-source-code #:start start #:end end) + ;; TODO: actually use start and end to format only that range once fmt supports it. (define formatted-source-code ;; Appending a newline is needed because fmt strips the trailing newline from files for some ;; reason. - (string-append (program-format refactored-source-code #:start start #:end end) "\n")) + (string-append (program-format refactored-source-code) "\n")) ;; Formatting can change the total length of the program source code, and we want to tell the ;; caller where the new endpoint of the formatted source range is.