-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove circular dependencies and unused code in preparation for further null safety migration #1664
Remove circular dependencies and unused code in preparation for further null safety migration #1664
Conversation
…ll-safety-dwds-domain
@@ -671,21 +661,6 @@ class Debugger extends Domain { | |||
logger.severe('Target crashed!'); | |||
} | |||
|
|||
/// Evaluate [expression] by calling Chrome's Runtime.evaluate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate - we already have this functionality in inspector.dart
dwds/lib/src/debugging/location.dart
Outdated
final cache = _moduleToLocations[module]; | ||
if (cache != null) return cache; | ||
if (module == null) { | ||
_logger.warning('No module for $url'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We allow some urls here that have no modules, remove the warning as it generates a lot of spam
Very high level comment - this is a large PR and from the description it sounds like there are 3 separate issues being tackled here:
Are the code changes for these 3 interdependent or would it be possible to break this into 3 separate PRs to make it easier to review? |
I can try - will do the tests first, unused code next, break dependencies last |
I've created a few PRs to be checked in before the current change. After they are all in, the current change then will just cover refactoring to break circular dependencies:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple nits. Thanks!
Break circular dependencies:
AppInspector
not inherit fromDomain
AppInspector
toChromeProxyService
and removed it from theAppInspector
to make the API consistentvm_service
API were not throwingSentinelException
when required, corrected nowAppInspectorInterface
to break circular dependencies between files in debugging and utilities directoriesTowards: #1327