Skip to content

Commit ac81f4c

Browse files
authored
Remove work-around now that dart-lang/linter#3563 is fixed (#693)
1 parent b633138 commit ac81f4c

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

source_gen/lib/src/builder.dart

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
//TODO(kevmoo): https://github.com/dart-lang/linter/issues/3563
6-
// ignore_for_file: use_super_parameters
7-
85
import 'dart:convert';
96

107
import 'package:analyzer/dart/ast/ast.dart';
@@ -219,18 +216,14 @@ class SharedPartBuilder extends _Builder {
219216
/// [allowSyntaxErrors] indicates whether to allow syntax errors in input
220217
/// libraries.
221218
SharedPartBuilder(
222-
List<Generator> generators,
219+
super.generators,
223220
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,
227224
}) : super(
228-
generators,
229-
formatOutput: formatOutput,
230225
generatedExtension: '.$partId.g.part',
231-
additionalOutputExtensions: additionalOutputExtensions,
232226
header: '',
233-
allowSyntaxErrors: allowSyntaxErrors,
234227
) {
235228
if (!_partIdRegExp.hasMatch(partId)) {
236229
throw ArgumentError.value(
@@ -278,21 +271,15 @@ class PartBuilder extends _Builder {
278271
/// If available, the `build_extensions` option will be extracted from
279272
/// [options] to allow output files to be generated into a different directory
280273
PartBuilder(
281-
List<Generator> generators,
274+
super.generators,
282275
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,
288281
}) : super(
289-
generators,
290-
formatOutput: formatOutput,
291282
generatedExtension: generatedExtension,
292-
additionalOutputExtensions: additionalOutputExtensions,
293-
header: header,
294-
allowSyntaxErrors: allowSyntaxErrors,
295-
options: options,
296283
);
297284
}
298285

0 commit comments

Comments
 (0)