Skip to content

Commit cdcbf6d

Browse files
authored
Change mixin implements and remove unused Extendable. (#3709)
1 parent da7071d commit cdcbf6d

File tree

5 files changed

+3
-21
lines changed

5 files changed

+3
-21
lines changed

lib/src/model/documentation_comment.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final _htmlInjectRegExp = RegExp(r'<dartdoc-html>([a-f0-9]+)</dartdoc-html>');
3535
/// [_processCommentWithoutTools] and [processComment] are the primary
3636
/// entrypoints.
3737
mixin DocumentationComment
38-
on Canonicalization, Documentable, Warnable, Locatable, SourceCode {
38+
implements Canonicalization, Documentable, Warnable, Locatable, SourceCode {
3939
@override
4040
Element get element;
4141

lib/src/model/extendable.dart

-17
This file was deleted.

lib/src/model/has_no_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'package:dartdoc/src/model/model.dart';
66

77
/// An element which has no page documenting itself.
8-
mixin HasNoPage on ModelElement {
8+
mixin HasNoPage implements ModelElement {
99
@override
1010
String get filePath =>
1111
throw UnimplementedError('This element has no generated page');

lib/src/model/inheriting_container.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import 'package:meta/meta.dart';
1818
///
1919
/// Note that [Constructor]s are not considered to be modifiers so a
2020
/// [hasModifiers] override is not necessary for this mixin.
21-
mixin Constructable on InheritingContainer {
21+
mixin Constructable implements InheritingContainer {
2222
late final List<Constructor> constructors = element.constructors
2323
.map((e) => getModelFor(e, library) as Constructor)
2424
.toList(growable: false);

lib/src/model/model.dart

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export 'documentation_comment.dart';
1717
export 'dynamic.dart';
1818
export 'enclosed_element.dart';
1919
export 'enum.dart';
20-
export 'extendable.dart';
2120
export 'extension.dart';
2221
export 'extension_type.dart';
2322
export 'field.dart';

0 commit comments

Comments
 (0)