-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstract stylist to libcst style conversion (#4749)
* Abstract codegen with stylist into a CodegenStylist trait Replace all duplicate invocations of ```rust let mut state = CodegenState { default_newline: &stylist.line_ending(), default_indent: stylist.indentation(), ..CodegenState::default() } tree.codegen(&mut state); state.to_string() ``` with ```rust tree.codegen_stylist(&stylist); ``` No functional changes.
- Loading branch information
Showing
13 changed files
with
139 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.