Minor changes to printer to use a bit set rather than booleans for list options
This commit is contained in:
1 parent
cc1d3a7b19
commit
f0c9f82e1b
3 files changed
+105
-56
No files matched your search
@@ -10,7 +10,7 @@ simplify :: proc(file: ^ast.File) {
|
||||
|
||||
}
|
||||
|
||||
format :: proc(source: string, config: printer.Config, parser_flags := parser.Flags{}, allocator := context.allocator) -> (string, bool) {
|
||||
format :: proc(filepath: string, source: string, config: printer.Config, parser_flags := parser.Flags{}, allocator := context.allocator) -> (string, bool) {
|
||||
pkg := ast.Package {
|
||||
kind = .Normal,
|
||||
};
|
||||
@@ -18,6 +18,7 @@ format :: proc(source: string, config: printer.Config, parser_flags := parser.Fl
|
||||
file := ast.File {
|
||||
pkg = &pkg,
|
||||
src = source,
|
||||
fullpath = filepath,
|
||||
};
|
||||
|
||||
p := parser.default_parser(parser_flags);
|
||||
|
||||
Reference in new issue
Block a user