@@ -454,8 +454,7 @@ class _OptionValueWithContext<T> {
454454 ///
455455 /// [path] is the path where this value came from (not required to be
456456 /// canonical).
457- _OptionValueWithContext (this .value, String path, {String definingFile}) {
458- this .definingFile = definingFile;
457+ _OptionValueWithContext (this .value, String path, {this .definingFile}) {
459458 canonicalDirectoryPath = p.canonicalize (path);
460459 pathContext = p.Context (current: canonicalDirectoryPath);
461460 }
@@ -690,8 +689,7 @@ abstract class DartdocOption<T> {
690689 void _onAdd () {}
691690
692691 /// Adds a list of dartdoc options to the children of this DartdocOption.
693- void addAll (Iterable <DartdocOption <Object >> options) =>
694- options.forEach ((o) => add (o));
692+ void addAll (Iterable <DartdocOption <Object >> options) => options.forEach (add);
695693
696694 /// Get the immediate child of this node named [name] .
697695 DartdocOption <dynamic > operator [](String name) {
@@ -856,7 +854,7 @@ typedef OptionGenerator = Future<List<DartdocOption<Object>>> Function(
856854
857855/// A [DartdocOption] that only contains other [DartdocOption] s and is not an
858856/// option itself.
859- class DartdocOptionSet extends DartdocOption <Null > {
857+ class DartdocOptionSet extends DartdocOption <void > {
860858 DartdocOptionSet (String name, ResourceProvider resourceProvider)
861859 : super (name, null , null , false , false , false , null , resourceProvider);
862860
@@ -880,7 +878,7 @@ class DartdocOptionSet extends DartdocOption<Null> {
880878
881879 /// [DartdocOptionSet] always has the null value.
882880 @override
883- Null valueAt (Folder dir) => null ;
881+ void valueAt (Folder dir) => null ;
884882
885883 /// Since we have no value, [_onMissing] does nothing.
886884 @override
0 commit comments