File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 5
5
import 'package:analyzer/dart/element/element.dart' ;
6
6
import 'package:analyzer/source/line_info.dart' ;
7
7
import 'package:analyzer/src/dart/element/member.dart' show Member;
8
- import 'package:dartdoc/src/element_type.dart' ;
9
8
import 'package:dartdoc/src/model/model.dart' ;
10
9
11
10
class Method extends ModelElement
@@ -95,9 +94,6 @@ class Method extends ModelElement
95
94
96
95
String get linkedReturnType => modelType.createLinkedReturnTypeName ();
97
96
98
- @override
99
- DefinedElementType get modelType => super .modelType;
100
-
101
97
@override
102
98
Method get overriddenElement {
103
99
if (_enclosingContainer is Extension ) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class TypeParameter extends ModelElement {
69
69
TypeParameterElement get _typeParameter => element as TypeParameterElement ;
70
70
}
71
71
72
- abstract class TypeParameters implements ModelElement {
72
+ mixin TypeParameters implements ModelElement {
73
73
String get nameWithGenerics => '$name $genericParameters ' ;
74
74
75
75
String get nameWithLinkedGenerics => '$name $linkedGenericParameters ' ;
@@ -82,9 +82,6 @@ abstract class TypeParameters implements ModelElement {
82
82
String get linkedGenericParameters =>
83
83
_typeParametersRenderer.renderLinkedGenericParameters (this );
84
84
85
- @override
86
- DefinedElementType get modelType;
87
-
88
85
List <TypeParameter > get typeParameters;
89
86
90
87
TypeParametersRenderer get _typeParametersRenderer =>
You can’t perform that action at this time.
0 commit comments