Skip to content

Commit c7b881e

Browse files
committed
refactor: move SqlFormatter from direct import to DeparserContext property
- Add SqlFormatter as a property of DeparserContext with default instantiation - Replace all this.formatter references with context.formatter throughout deparser - Remove direct SqlFormatter import and private formatter property from Deparser class - Update deparse() and visit() methods to create context with formatter when not provided - Maintain modular design allowing external formatter instantiation and context passing - Preserve existing formatting logic while improving context-aware formatting - All 279 test suites continue to pass Co-Authored-By: Dan Lynch <[email protected]>
1 parent 04d1885 commit c7b881e

File tree

2 files changed

+194
-178
lines changed

2 files changed

+194
-178
lines changed

0 commit comments

Comments
 (0)