File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
testing/test_package/lib/features Expand file tree Collapse file tree 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
7171 Map <String , CommentReferable > get referenceChildren {
7272 if (_referenceChildren == null ) {
7373 _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+ }
7680 _referenceChildren
7781 .addEntriesIfAbsent (typeParameters.explicitOnCollisionWith (this ));
7882 }
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ library generalized_typedefs;
1010
1111typedef T0 = void ;
1212typedef T1 = Function ;
13+
14+ /// [List] , [String]
1315typedef T2 <X > = List <X >;
1416typedef T3 <X , Y > = Map <X , Y >;
1517typedef T4 = void Function ();
You can’t perform that action at this time.
0 commit comments