You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature: Optionally omit generated description comments in output (#720)
Related: #706.
This PR adds an optional `bool? writesDescriptions` field to the `_Builder` base class constructor.
By default, it is `true`, but if explicitly set to `false`, the generated description comments will not be included
in the generated output.
See related link for my use-case. This will be useful so that _any_ file can be generated with this tool for Dart.
Copy file name to clipboardExpand all lines: source_gen/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
- Support all the glob quotes.
11
11
- Require `analyzer: ^6.9.0`
12
12
- Require Dart 3.5.0
13
+
-`LibraryBuilder`, `PartBuilder`, and `SharedPartBuilder` now take an optional `writeDescriptions` boolean. When set to `false`, headers and generator descriptions for the files will not be included in the builder output.
0 commit comments