| // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| import 'package:build/build.dart'; |
| import 'package:built_value_generator/built_value_generator.dart'; |
| import 'package:source_gen/source_gen.dart'; |
| |
| /// Returns a [Builder] to generate `.g.dart` files for `built_value`. |
| Builder builtValueBuilder(BuilderOptions _) { |
| return PartBuilder([ |
| const BuiltValueGenerator(), |
| ], '.g.dart'); |
| } |