11[ ![ Pub package] ( https://img.shields.io/pub/v/code_builder.svg )] ( https://pub.dev/packages/code_builder )
2- [ ![ Build status ] ( https://travis-ci.org /dart-lang/code_builder.svg )] ( https://travis-ci.org /dart-lang/code_builder )
2+ [ ![ Build Status ] ( https://github.com /dart-lang/code_builder/workflows/Dart%20CI/badge .svg?branch=master )] ( https://github.com /dart-lang/code_builder/actions?query=workflow%3A%22Dart+CI%22+branch%3Amaster )
33[ ![ Gitter chat] ( https://badges.gitter.im/dart-lang/build.svg )] ( https://gitter.im/dart-lang/build )
44
55A fluent, builder-based library for generating valid Dart code.
@@ -29,15 +29,16 @@ void main() {
2929```
3030
3131Outputs:
32+
3233``` dart
3334class Animal extends Organism {
3435 void eat() => print('Yum!');
3536}
3637```
3738
38- Have a complicated set of dependencies for your generated code?
39- ` code_builder ` supports automatic scoping of your ASTs to automatically
40- use prefixes to avoid symbol conflicts:
39+ Have a complicated set of dependencies for your generated code? ` code_builder `
40+ supports automatic scoping of your ASTs to automatically use prefixes to avoid
41+ symbol conflicts:
4142
4243``` dart
4344import 'package:code_builder/code_builder.dart';
@@ -60,6 +61,7 @@ void main() {
6061```
6162
6263Outputs:
64+
6365``` dart
6466import 'package:a/a.dart' as _i1;
6567import 'package:b/b.dart' as _i2;
@@ -70,8 +72,8 @@ _i2.Other doOther() {}
7072
7173## Contributing
7274
73- * Read and help us document common patterns over [ at the wiki] [ wiki ] .
74- * Is there a * bug * in the code? [ File an issue] [ issue ] .
75+ - Read and help us document common patterns over [ at the wiki] [ wiki ] .
76+ - Is there a _ bug _ in the code? [ File an issue] [ issue ] .
7577
7678If a feature is missing (the Dart language is always evolving) or you'd like an
7779easier or better way to do something, consider [ opening a pull request] [ pull ] .
@@ -91,9 +93,9 @@ will be on a best-effort basis.
9193
9294# ## Updating generated (`.g.dart`) files
9395
94- > ** NOTE** : There is currently a limitation in ` build_runner` that requires
95- > a workaround for developing this package. We expect this to be unnecessary
96- > in the future.
96+ > ** NOTE** : There is currently a limitation in ` build_runner` that requires a
97+ > workaround for developing this package. We expect this to be unnecessary in
98+ > the future.
9799
98100Use [` build_runner` ][build_runner]:
99101
0 commit comments