Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: tool/input_sdk/private/debugger.dart

Issue 2208533003: Get rid of library proto information for debugger libraries (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Deletion of library name caching Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/debugger.dart
diff --git a/tool/input_sdk/private/debugger.dart b/tool/input_sdk/private/debugger.dart
index cbdea128503e9f97359f1beac4e7812208c68f0e..a6bc9639f2b7b9205f002c83db3fce2bd4828552 100644
--- a/tool/input_sdk/private/debugger.dart
+++ b/tool/input_sdk/private/debugger.dart
@@ -507,17 +507,12 @@ class ObjectFormatter extends Formatter {
/// Formatter for module Dart Library objects.
class LibraryModuleFormatter implements Formatter {
- String libraryName;
-
- accept(object, config) {
- libraryName = dart.getDartLibraryName(object);
- return libraryName != null;
- }
+ accept(object, config) => dart.getDartLibraryName(object) != null;
bool hasChildren(object) => true;
String preview(object) {
- var libraryNames = libraryName.split('/');
+ var libraryNames = dart.getDartLibraryName(object).split('/');
// Library names are received with a repeat directory name, so strip the
// last directory entry here to make the path cleaner. For example, the
// library "third_party/dart/utf/utf" shoud display as
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698