Skip to content

Commit

Permalink
Removed dependecies on dwds.dart inside dwds code (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Gringauze authored Jun 14, 2022
1 parent 0a371d1 commit a74737f
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dwds/lib/src/debugging/classes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import 'package:vm_service/vm_service.dart';
import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart';

import '../../dwds.dart' show ChromeDebugException;
import '../../src/services/chrome_debug_exception.dart';
import '../loaders/strategy.dart';
import '../utilities/domain.dart';
import '../utilities/shared.dart';
Expand Down
10 changes: 9 additions & 1 deletion dwds/lib/src/handlers/dev_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ import '../../data/error_response.dart';
import '../../data/isolate_events.dart';
import '../../data/register_event.dart';
import '../../data/serializers.dart';
import '../../dwds.dart';

import '../connections/app_connection.dart';
import '../connections/debug_connection.dart';
import '../debugging/execution_context.dart';
import '../debugging/remote_debugger.dart';
import '../debugging/webkit_debugger.dart';
import '../dwds_vm_client.dart';
import '../events.dart';
import '../handlers/socket_connections.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../servers/devtools.dart';
import '../servers/extension_backend.dart';
import '../services/app_debug_services.dart';
import '../services/debug_service.dart';
import '../services/expression_compiler.dart';
import '../utilities/sdk_configuration.dart';
import 'injector.dart';

/// When enabled, this logs VM service protocol and Chrome debug protocol
Expand Down
1 change: 0 additions & 1 deletion dwds/lib/src/handlers/injector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import 'package:crypto/crypto.dart';
import 'package:logging/logging.dart';
import 'package:shelf/shelf.dart';

import '../../dwds.dart';
import '../loaders/strategy.dart';
import '../version.dart';

Expand Down
5 changes: 4 additions & 1 deletion dwds/lib/src/loaders/build_runner_require.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:shelf/shelf.dart';

import '../../dwds.dart';
import '../debugging/metadata/provider.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../services/expression_compiler.dart';
import 'require.dart';

/// Provides a [RequireStrategy] suitable for use with `package:build_runner`.
Expand Down
5 changes: 4 additions & 1 deletion dwds/lib/src/loaders/frontend_server_require.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

import 'package:path/path.dart' as p;

import '../../dwds.dart';
import '../debugging/metadata/provider.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../services/expression_compiler.dart';
import 'require.dart';

/// Provides a [RequireStrategy] suitable for use with Frontend Server.
Expand Down
5 changes: 4 additions & 1 deletion dwds/lib/src/loaders/legacy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

import 'package:shelf/shelf.dart';

import '../../dwds.dart';
import '../debugging/metadata/provider.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../services/expression_compiler.dart';

/// A load strategy for the legacy module system.
class LegacyStrategy extends LoadStrategy {
Expand Down
5 changes: 4 additions & 1 deletion dwds/lib/src/loaders/require.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import 'dart:convert';
import 'package:path/path.dart' as p;
import 'package:shelf/shelf.dart';

import '../../dwds.dart';
import '../debugging/metadata/provider.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../services/expression_compiler.dart';

/// Find the path we are serving from the url.
///
Expand Down
4 changes: 3 additions & 1 deletion dwds/lib/src/loaders/strategy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

import 'package:shelf/shelf.dart';

import '../../dwds.dart';
import '../debugging/metadata/provider.dart';
import '../readers/asset_reader.dart';
import '../services/expression_compiler.dart';

LoadStrategy _globalLoadStrategy;

Expand Down
3 changes: 1 addition & 2 deletions dwds/lib/src/readers/frontend_server_asset_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import 'dart:io';
import 'package:package_config/package_config.dart';
import 'package:path/path.dart' as p;

import '../../dwds.dart';
import 'asset_reader.dart';
import '../readers/asset_reader.dart';

/// A reader for Dart sources and related source maps provided by the Frontend
/// Server.
Expand Down
6 changes: 5 additions & 1 deletion dwds/lib/src/services/chrome_proxy_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart';

import '../../data/debug_event.dart';
import '../../data/register_event.dart';
import '../../dwds.dart';
import '../connections/app_connection.dart';
import '../debugging/debugger.dart';
import '../debugging/execution_context.dart';
import '../debugging/inspector.dart';
Expand All @@ -26,7 +26,11 @@ import '../debugging/remote_debugger.dart';
import '../debugging/skip_list.dart';
import '../events.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../services/chrome_debug_exception.dart';
import '../services/expression_compiler.dart';
import '../utilities/dart_uri.dart';
import '../utilities/sdk_configuration.dart';
import '../utilities/shared.dart';
import 'expression_evaluator.dart';

Expand Down
6 changes: 5 additions & 1 deletion dwds/lib/src/services/debug_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ import 'package:sse/server/sse_handler.dart';
import 'package:vm_service/vm_service.dart';
import 'package:web_socket_channel/web_socket_channel.dart';

import '../../dwds.dart';
import '../connections/app_connection.dart';
import '../loaders/strategy.dart';
import '../readers/asset_reader.dart';
import '../services/expression_compiler.dart';
import '../debugging/execution_context.dart';
import '../debugging/remote_debugger.dart';
import '../events.dart';
import '../utilities/shared.dart';
import '../utilities/sdk_configuration.dart';
import 'chrome_proxy_service.dart';

bool _acceptNewConnections = true;
Expand Down

0 comments on commit a74737f

Please sign in to comment.