Skip to content

Commit 05c229d

Browse files
committed
Expose default pretty options and rename capture rule context method
1 parent c6bb935 commit 05c229d

File tree

2 files changed

+56
-52
lines changed

2 files changed

+56
-52
lines changed

src/main/java/graphql/language/PrettyPrinter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@ private PrettyPrinterOptions(IndentType indentType, int indentWidth) {
422422
this.indentText = String.join("", Collections.nCopies(indentWidth, indentType.character));
423423
}
424424

425+
public static PrettyPrinterOptions defaultOptions() {
426+
return defaultOptions;
427+
}
428+
425429
public static Builder builder() {
426430
return new Builder();
427431
}
@@ -436,7 +440,7 @@ public enum IndentType {
436440
}
437441
}
438442

439-
private static class Builder {
443+
public static class Builder {
440444
private IndentType indentType;
441445
private int indentWidth = 1;
442446

0 commit comments

Comments
 (0)