Move inspector_service.dart to root of `shared`. (#5006)
diff --git a/packages/devtools_app/lib/devtools_app.dart b/packages/devtools_app/lib/devtools_app.dart
index e03fab1..6dd3c02 100644
--- a/packages/devtools_app/lib/devtools_app.dart
+++ b/packages/devtools_app/lib/devtools_app.dart
@@ -63,13 +63,13 @@
export 'src/shared/console/console_service.dart';
export 'src/shared/console/eval/diagnostics_node.dart';
export 'src/shared/console/eval/eval_service.dart';
-export 'src/shared/console/eval/inspector_service.dart';
export 'src/shared/console/eval/inspector_tree.dart';
export 'src/shared/console/primitives/simple_items.dart';
export 'src/shared/console/widgets/description.dart';
export 'src/shared/error_badge_manager.dart';
export 'src/shared/globals.dart';
export 'src/shared/http/http_request_data.dart';
+export 'src/shared/inspector_service.dart';
export 'src/shared/notifications.dart';
export 'src/shared/object_tree.dart';
export 'src/shared/preferences.dart';
diff --git a/packages/devtools_app/lib/src/extension_points/extensions_base.dart b/packages/devtools_app/lib/src/extension_points/extensions_base.dart
index d2bc541..5459cee 100644
--- a/packages/devtools_app/lib/src/extension_points/extensions_base.dart
+++ b/packages/devtools_app/lib/src/extension_points/extensions_base.dart
@@ -4,7 +4,7 @@
import '../screens/debugger/codeview.dart';
import '../shared/common_widgets.dart';
-import '../shared/console/eval/inspector_service.dart';
+import '../shared/inspector_service.dart';
abstract class DevToolsExtensionPoints {
List<ScriptPopupMenuOption> buildExtraDebuggerScriptPopupMenuOptions();
diff --git a/packages/devtools_app/lib/src/extension_points/extensions_external.dart b/packages/devtools_app/lib/src/extension_points/extensions_external.dart
index 9db4f13..b9bdfc9 100644
--- a/packages/devtools_app/lib/src/extension_points/extensions_external.dart
+++ b/packages/devtools_app/lib/src/extension_points/extensions_external.dart
@@ -5,8 +5,8 @@
import '../screens/debugger/codeview.dart';
import '../shared/analytics/constants.dart' as gac;
import '../shared/common_widgets.dart';
-import '../shared/console/eval/inspector_service.dart';
import '../shared/globals.dart';
+import '../shared/inspector_service.dart';
import '../shared/utils.dart';
import 'extensions_base.dart';
diff --git a/packages/devtools_app/lib/src/screens/inspector/inspector_controller.dart b/packages/devtools_app/lib/src/screens/inspector/inspector_controller.dart
index 8a4398e..68fe1e9 100644
--- a/packages/devtools_app/lib/src/screens/inspector/inspector_controller.dart
+++ b/packages/devtools_app/lib/src/screens/inspector/inspector_controller.dart
@@ -25,11 +25,11 @@
import '../../shared/config_specific/logger/logger.dart';
import '../../shared/config_specific/url/url.dart';
import '../../shared/console/eval/diagnostics_node.dart';
-import '../../shared/console/eval/inspector_service.dart';
import '../../shared/console/eval/inspector_tree.dart';
import '../../shared/console/primitives/instance_ref.dart';
import '../../shared/console/primitives/simple_items.dart';
import '../../shared/globals.dart';
+import '../../shared/inspector_service.dart';
import '../../shared/primitives/auto_dispose.dart';
import '../../shared/primitives/utils.dart';
import 'inspector_screen.dart';
diff --git a/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/flex.dart b/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/flex.dart
index a57fd3f..aaf36c4 100644
--- a/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/flex.dart
+++ b/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/flex.dart
@@ -9,7 +9,7 @@
import 'package:flutter/material.dart';
import '../../../../shared/console/eval/diagnostics_node.dart';
-import '../../../../shared/console/eval/inspector_service.dart';
+import '../../../../shared/inspector_service.dart';
import '../../../../shared/primitives/math_utils.dart';
import '../../../../shared/theme.dart';
import '../../inspector_controller.dart';
diff --git a/packages/devtools_app/lib/src/screens/inspector/layout_explorer/ui/layout_explorer_widget.dart b/packages/devtools_app/lib/src/screens/inspector/layout_explorer/ui/layout_explorer_widget.dart
index 9d00cfb..73e3149 100644
--- a/packages/devtools_app/lib/src/screens/inspector/layout_explorer/ui/layout_explorer_widget.dart
+++ b/packages/devtools_app/lib/src/screens/inspector/layout_explorer/ui/layout_explorer_widget.dart
@@ -8,8 +8,8 @@
import 'package:flutter/widgets.dart';
import '../../../../shared/console/eval/diagnostics_node.dart';
-import '../../../../shared/console/eval/inspector_service.dart';
import '../../../../shared/globals.dart';
+import '../../../../shared/inspector_service.dart';
import '../../../../shared/primitives/utils.dart';
import '../../../../shared/theme.dart';
import '../../inspector_controller.dart';
diff --git a/packages/devtools_app/lib/src/screens/logging/logging_controller.dart b/packages/devtools_app/lib/src/screens/logging/logging_controller.dart
index 6c6f331..3c09f5a 100644
--- a/packages/devtools_app/lib/src/screens/logging/logging_controller.dart
+++ b/packages/devtools_app/lib/src/screens/logging/logging_controller.dart
@@ -15,9 +15,9 @@
import '../../service/vm_service_wrapper.dart';
import '../../shared/config_specific/logger/logger.dart' as logger;
import '../../shared/console/eval/diagnostics_node.dart';
-import '../../shared/console/eval/inspector_service.dart';
import '../../shared/console/eval/inspector_tree.dart';
import '../../shared/globals.dart';
+import '../../shared/inspector_service.dart';
import '../../shared/primitives/auto_dispose.dart';
import '../../shared/primitives/message_bus.dart';
import '../../shared/primitives/utils.dart';
diff --git a/packages/devtools_app/lib/src/screens/performance/performance_controller.dart b/packages/devtools_app/lib/src/screens/performance/performance_controller.dart
index d2df513..ace8def 100644
--- a/packages/devtools_app/lib/src/screens/performance/performance_controller.dart
+++ b/packages/devtools_app/lib/src/screens/performance/performance_controller.dart
@@ -7,9 +7,9 @@
import 'package:vm_service/vm_service.dart';
import '../../shared/config_specific/import_export/import_export.dart';
-import '../../shared/console/eval/inspector_service.dart';
import '../../shared/feature_flags.dart';
import '../../shared/globals.dart';
+import '../../shared/inspector_service.dart';
import '../../shared/primitives/auto_dispose.dart';
import 'panes/controls/enhance_tracing/enhance_tracing_controller.dart';
import 'panes/flutter_frames/flutter_frame_model.dart';
diff --git a/packages/devtools_app/lib/src/service/service_manager.dart b/packages/devtools_app/lib/src/service/service_manager.dart
index a2c4458..9738b24 100644
--- a/packages/devtools_app/lib/src/service/service_manager.dart
+++ b/packages/devtools_app/lib/src/service/service_manager.dart
@@ -15,9 +15,9 @@
import '../shared/config_specific/logger/logger.dart';
import '../shared/connected_app.dart';
import '../shared/console/console_service.dart';
-import '../shared/console/eval/inspector_service.dart';
import '../shared/error_badge_manager.dart';
import '../shared/globals.dart';
+import '../shared/inspector_service.dart';
import '../shared/primitives/utils.dart';
import '../shared/title.dart';
import '../shared/utils.dart';
diff --git a/packages/devtools_app/lib/src/shared/console/console_service.dart b/packages/devtools_app/lib/src/shared/console/console_service.dart
index da11949..b3d788f 100644
--- a/packages/devtools_app/lib/src/shared/console/console_service.dart
+++ b/packages/devtools_app/lib/src/shared/console/console_service.dart
@@ -9,11 +9,11 @@
import '../../service/vm_service_wrapper.dart';
import '../globals.dart';
+import '../inspector_service.dart';
import '../object_tree.dart';
import '../primitives/auto_dispose.dart';
import '../primitives/utils.dart';
import 'eval/diagnostics_node.dart';
-import 'eval/inspector_service.dart';
/// A line in the console.
///
diff --git a/packages/devtools_app/lib/src/shared/console/eval/diagnostics_node.dart b/packages/devtools_app/lib/src/shared/console/eval/diagnostics_node.dart
index 8762b23..c90d863 100644
--- a/packages/devtools_app/lib/src/shared/console/eval/diagnostics_node.dart
+++ b/packages/devtools_app/lib/src/shared/console/eval/diagnostics_node.dart
@@ -9,12 +9,12 @@
import 'package:flutter/rendering.dart';
import 'package:vm_service/vm_service.dart';
+import '../../inspector_service.dart';
import '../../primitives/enum_utils.dart';
import '../../primitives/utils.dart';
import '../../ui/icons.dart';
import '../primitives/instance_ref.dart';
import '../primitives/source_location.dart';
-import 'inspector_service.dart';
final diagnosticLevelUtils = EnumUtils<DiagnosticLevel>(DiagnosticLevel.values);
diff --git a/packages/devtools_app/lib/src/shared/eval_on_dart_library.dart b/packages/devtools_app/lib/src/shared/eval_on_dart_library.dart
index d3ad46e..a895b84 100644
--- a/packages/devtools_app/lib/src/shared/eval_on_dart_library.dart
+++ b/packages/devtools_app/lib/src/shared/eval_on_dart_library.dart
@@ -15,8 +15,8 @@
import '../service/vm_service_wrapper.dart';
import 'config_specific/logger/logger.dart';
-import 'console/eval/inspector_service.dart';
import 'globals.dart';
+import 'inspector_service.dart';
import 'primitives/auto_dispose.dart';
class Disposable {
diff --git a/packages/devtools_app/lib/src/shared/console/eval/inspector_service.dart b/packages/devtools_app/lib/src/shared/inspector_service.dart
similarity index 99%
rename from packages/devtools_app/lib/src/shared/console/eval/inspector_service.dart
rename to packages/devtools_app/lib/src/shared/inspector_service.dart
index dd92bd6..1f356f8 100644
--- a/packages/devtools_app/lib/src/shared/console/eval/inspector_service.dart
+++ b/packages/devtools_app/lib/src/shared/inspector_service.dart
@@ -15,14 +15,14 @@
import 'package:flutter/foundation.dart';
import 'package:vm_service/vm_service.dart';
-import '../../eval_on_dart_library.dart';
-import '../../globals.dart';
-import '../../primitives/auto_dispose.dart';
-import '../../primitives/utils.dart';
-import '../primitives/instance_ref.dart';
-import '../primitives/simple_items.dart';
-import '../primitives/source_location.dart';
-import 'diagnostics_node.dart';
+import 'console/eval/diagnostics_node.dart';
+import 'console/primitives/instance_ref.dart';
+import 'console/primitives/simple_items.dart';
+import 'console/primitives/source_location.dart';
+import 'eval_on_dart_library.dart';
+import 'globals.dart';
+import 'primitives/auto_dispose.dart';
+import 'primitives/utils.dart';
const inspectorLibraryUri = 'package:flutter/src/widgets/widget_inspector.dart';
diff --git a/packages/devtools_app/lib/src/shared/object_tree.dart b/packages/devtools_app/lib/src/shared/object_tree.dart
index f3b1301..3ccb23b 100644
--- a/packages/devtools_app/lib/src/shared/object_tree.dart
+++ b/packages/devtools_app/lib/src/shared/object_tree.dart
@@ -14,8 +14,8 @@
import '../screens/debugger/debugger_model.dart';
import 'config_specific/logger/logger.dart';
import 'console/eval/diagnostics_node.dart';
-import 'console/eval/inspector_service.dart';
import 'globals.dart';
+import 'inspector_service.dart';
import 'primitives/trees.dart';
import 'primitives/utils.dart';
diff --git a/packages/devtools_app/lib/src/shared/preferences.dart b/packages/devtools_app/lib/src/shared/preferences.dart
index b93788d..7427f6c 100644
--- a/packages/devtools_app/lib/src/shared/preferences.dart
+++ b/packages/devtools_app/lib/src/shared/preferences.dart
@@ -10,8 +10,8 @@
import '../service/vm_service_wrapper.dart';
import 'analytics/analytics.dart' as ga;
import 'analytics/constants.dart' as gac;
-import 'console/eval/inspector_service.dart';
import 'globals.dart';
+import 'inspector_service.dart';
import 'primitives/auto_dispose.dart';
import 'primitives/utils.dart';
diff --git a/packages/devtools_app/test/inspector/inspector_integration_test.dart b/packages/devtools_app/test/inspector/inspector_integration_test.dart
index 956fe2e..9092ae4 100644
--- a/packages/devtools_app/test/inspector/inspector_integration_test.dart
+++ b/packages/devtools_app/test/inspector/inspector_integration_test.dart
@@ -5,8 +5,8 @@
import 'package:devtools_app/src/screens/debugger/breakpoint_manager.dart';
import 'package:devtools_app/src/screens/inspector/inspector_screen.dart';
import 'package:devtools_app/src/shared/config_specific/ide_theme/ide_theme.dart';
-import 'package:devtools_app/src/shared/console/eval/inspector_service.dart';
import 'package:devtools_app/src/shared/globals.dart';
+import 'package:devtools_app/src/shared/inspector_service.dart';
import 'package:devtools_app/src/shared/notifications.dart';
import 'package:devtools_test/devtools_test.dart';
import 'package:flutter/material.dart';
diff --git a/packages/devtools_app/test/inspector/inspector_service_test.dart b/packages/devtools_app/test/inspector/inspector_service_test.dart
index 8648c5b..1b982d2 100644
--- a/packages/devtools_app/test/inspector/inspector_service_test.dart
+++ b/packages/devtools_app/test/inspector/inspector_service_test.dart
@@ -4,9 +4,9 @@
@TestOn('vm')
import 'package:devtools_app/src/shared/console/eval/diagnostics_node.dart';
-import 'package:devtools_app/src/shared/console/eval/inspector_service.dart';
import 'package:devtools_app/src/shared/console/primitives/simple_items.dart';
import 'package:devtools_app/src/shared/globals.dart';
+import 'package:devtools_app/src/shared/inspector_service.dart';
import 'package:devtools_test/devtools_test.dart';
import 'package:flutter_test/flutter_test.dart';