|
2 | 2 | // for details. All rights reserved. Use of this source code is governed by a |
3 | 3 | // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
|
5 | | -//TODO(kevmoo): https://github.com/dart-lang/linter/issues/3563 |
6 | | -// ignore_for_file: use_super_parameters |
7 | | - |
8 | 5 | import 'dart:convert'; |
9 | 6 |
|
10 | 7 | import 'package:analyzer/dart/ast/ast.dart'; |
@@ -219,18 +216,14 @@ class SharedPartBuilder extends _Builder { |
219 | 216 | /// [allowSyntaxErrors] indicates whether to allow syntax errors in input |
220 | 217 | /// libraries. |
221 | 218 | SharedPartBuilder( |
222 | | - List<Generator> generators, |
| 219 | + super.generators, |
223 | 220 | String partId, { |
224 | | - String Function(String code)? formatOutput, |
225 | | - List<String> additionalOutputExtensions = const [], |
226 | | - bool allowSyntaxErrors = false, |
| 221 | + super.formatOutput, |
| 222 | + super.additionalOutputExtensions, |
| 223 | + super.allowSyntaxErrors, |
227 | 224 | }) : super( |
228 | | - generators, |
229 | | - formatOutput: formatOutput, |
230 | 225 | generatedExtension: '.$partId.g.part', |
231 | | - additionalOutputExtensions: additionalOutputExtensions, |
232 | 226 | header: '', |
233 | | - allowSyntaxErrors: allowSyntaxErrors, |
234 | 227 | ) { |
235 | 228 | if (!_partIdRegExp.hasMatch(partId)) { |
236 | 229 | throw ArgumentError.value( |
@@ -278,21 +271,15 @@ class PartBuilder extends _Builder { |
278 | 271 | /// If available, the `build_extensions` option will be extracted from |
279 | 272 | /// [options] to allow output files to be generated into a different directory |
280 | 273 | PartBuilder( |
281 | | - List<Generator> generators, |
| 274 | + super.generators, |
282 | 275 | String generatedExtension, { |
283 | | - String Function(String code)? formatOutput, |
284 | | - List<String> additionalOutputExtensions = const [], |
285 | | - String? header, |
286 | | - bool allowSyntaxErrors = false, |
287 | | - BuilderOptions? options, |
| 276 | + super.formatOutput, |
| 277 | + super.additionalOutputExtensions, |
| 278 | + super.header, |
| 279 | + super.allowSyntaxErrors, |
| 280 | + super.options, |
288 | 281 | }) : super( |
289 | | - generators, |
290 | | - formatOutput: formatOutput, |
291 | 282 | generatedExtension: generatedExtension, |
292 | | - additionalOutputExtensions: additionalOutputExtensions, |
293 | | - header: header, |
294 | | - allowSyntaxErrors: allowSyntaxErrors, |
295 | | - options: options, |
296 | 283 | ); |
297 | 284 | } |
298 | 285 |
|
|
0 commit comments