File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
pkg/analysis_server/lib/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ import 'package:analyzer/dart/ast/ast.dart';
8
8
import 'package:analyzer/dart/element/element.dart' ;
9
9
import 'package:analyzer/dart/element/type.dart' ;
10
10
import 'package:analyzer/source/source_range.dart' ;
11
- import 'package:analyzer/src/dart/ast/utilities.dart' ;
12
11
import 'package:analyzer/src/dart/element/element.dart' ;
13
12
import 'package:analyzer/src/utilities/extensions/analysis_session.dart' ;
13
+ import 'package:analyzer/src/utilities/extensions/ast.dart' ;
14
14
import 'package:collection/collection.dart' ;
15
15
16
16
/// A lazy computer for Type Hierarchies.
@@ -81,7 +81,7 @@ class DartLazyTypeHierarchyComputer {
81
81
82
82
/// Finds a target for starting type hierarchy navigation at [offset] .
83
83
TypeHierarchyItem ? findTarget (int offset) {
84
- final node = NodeLocator2 (offset). searchWithin ( _result.unit);
84
+ final node = _result.unit. nodeCovering (offset : offset );
85
85
86
86
DartType ? type;
87
87
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import 'package:analyzer/dart/ast/ast.dart';
11
11
import 'package:analyzer/dart/element/element.dart' ;
12
12
import 'package:analyzer/dart/element/type.dart' ;
13
13
import 'package:analyzer/src/dart/analysis/session_helper.dart' ;
14
- import 'package:analyzer/src/dart/ast/utilities .dart' ;
14
+ import 'package:analyzer/src/utilities/extensions/ast .dart' ;
15
15
import 'package:dart_style/dart_style.dart' ;
16
16
17
17
/// The result of [WidgetDescriptions.setPropertyValue] invocation.
@@ -144,7 +144,7 @@ class _WidgetDescriptionComputer {
144
144
Flutter get _flutter => Flutter .instance;
145
145
146
146
Future <_WidgetDescription ?> compute () async {
147
- var node = NodeLocator2 (widgetOffset). searchWithin ( resolvedUnit.unit);
147
+ var node = resolvedUnit.unit. nodeCovering (offset : widgetOffset );
148
148
if (node == null ) {
149
149
return null ;
150
150
}
You can’t perform that action at this time.
0 commit comments