File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
pkg/analyzer/lib/src/dart/element Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5- // ignore_for_file: analyzer_use_new_elements
6-
75import 'package:analyzer/dart/element/type.dart' ;
86import 'package:analyzer/dart/element/type_visitor.dart' ;
97import 'package:analyzer/src/dart/element/type.dart' ;
@@ -47,11 +45,11 @@ class RecursiveTypeVisitor extends UnifyingTypeVisitor<bool> {
4745 @override
4846 bool visitFunctionType (FunctionType type) => visitChildren ([
4947 type.returnType,
50- ...type.typeFormals
51- .map ((formal ) => formal .bound)
48+ ...type.typeParameters
49+ .map ((typeParameter ) => typeParameter .bound)
5250 .where ((type) => type != null )
5351 .map ((type) => type! ),
54- ...type.parameters .map ((param ) => param .type),
52+ ...type.formalParameters .map ((formalParameter ) => formalParameter .type),
5553 ]);
5654
5755 @override
You can’t perform that action at this time.
0 commit comments