File tree 2 files changed +8
-2
lines changed
testing/test_package/lib/features
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,12 @@ class Typedef extends ModelElement
71
71
Map <String , CommentReferable > get referenceChildren {
72
72
if (_referenceChildren == null ) {
73
73
_referenceChildren = {};
74
- _referenceChildren
75
- .addEntriesIfAbsent (parameters.explicitOnCollisionWith (this ));
74
+
75
+ // Only consider parameters if this is a function typedef.
76
+ if (isCallable) {
77
+ _referenceChildren
78
+ .addEntriesIfAbsent (parameters.explicitOnCollisionWith (this ));
79
+ }
76
80
_referenceChildren
77
81
.addEntriesIfAbsent (typeParameters.explicitOnCollisionWith (this ));
78
82
}
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ library generalized_typedefs;
10
10
11
11
typedef T0 = void ;
12
12
typedef T1 = Function ;
13
+
14
+ /// [List] , [String]
13
15
typedef T2 <X > = List <X >;
14
16
typedef T3 <X , Y > = Map <X , Y >;
15
17
typedef T4 = void Function ();
You can’t perform that action at this time.
0 commit comments