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

Side by Side Diff: lib/runtime/dart/_debugger.js

Issue 1700153002: Wrapperless dart:html and friends (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: A couple more tweaks Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/_debugger', null, /* Imports */[ 1 dart_library.library('dart/_debugger', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 const skipDartConfig = dart.const(new core.Object()); 8 const skipDartConfig = dart.const(new core.Object());
9 exports.maxIterableChildrenToDisplay = 50; 9 exports.maxIterableChildrenToDisplay = 50;
10 dart.defineLazyProperties(exports, { 10 dart.defineLazyProperties(exports, {
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 }); 377 });
378 class MapFormatter extends ObjectFormatter { 378 class MapFormatter extends ObjectFormatter {
379 accept(object) { 379 accept(object) {
380 return dart.is(object, core.Map); 380 return dart.is(object, core.Map);
381 } 381 }
382 hasChildren(object) { 382 hasChildren(object) {
383 return true; 383 return true;
384 } 384 }
385 preview(object) { 385 preview(object) {
386 let map = dart.as(object, core.Map); 386 let map = dart.as(object, core.Map);
387 return `${getObjectTypeName(map)} length ${map.length}`; 387 return `${getObjectTypeName(map)} length ${map[dartx.length]}`;
388 } 388 }
389 children(object) { 389 children(object) {
390 let map = dart.as(object, core.Map); 390 let map = dart.as(object, core.Map);
391 let keys = map.keys[dartx.toList](); 391 let keys = map[dartx.keys][dartx.toList]();
392 let entries = dart.list([], NameValuePair); 392 let entries = dart.list([], NameValuePair);
393 map.forEach(dart.fn((key, value) => { 393 map[dartx.forEach](dart.fn((key, value) => {
394 let entryWrapper = new MapEntry({key: dart.as(key, core.String), value: value}); 394 let entryWrapper = new MapEntry({key: dart.as(key, core.String), value: value});
395 entries[dartx.add](new NameValuePair({name: dart.toString(entries[dartx. length]), value: entryWrapper})); 395 entries[dartx.add](new NameValuePair({name: dart.toString(entries[dartx. length]), value: entryWrapper}));
396 }, dart.void, [dart.dynamic, dart.dynamic])); 396 }, dart.void, [dart.dynamic, dart.dynamic]));
397 this.addMetadataChildren(object, entries); 397 this.addMetadataChildren(object, entries);
398 return entries; 398 return entries;
399 } 399 }
400 } 400 }
401 class IterableFormatter extends ObjectFormatter { 401 class IterableFormatter extends ObjectFormatter {
402 accept(object) { 402 accept(object) {
403 return dart.is(object, core.Iterable); 403 return dart.is(object, core.Iterable);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 exports.DartFormatter = DartFormatter; 556 exports.DartFormatter = DartFormatter;
557 exports.ObjectFormatter = ObjectFormatter; 557 exports.ObjectFormatter = ObjectFormatter;
558 exports.FunctionFormatter = FunctionFormatter; 558 exports.FunctionFormatter = FunctionFormatter;
559 exports.MapFormatter = MapFormatter; 559 exports.MapFormatter = MapFormatter;
560 exports.IterableFormatter = IterableFormatter; 560 exports.IterableFormatter = IterableFormatter;
561 exports.ClassMetadataFormatter = ClassMetadataFormatter; 561 exports.ClassMetadataFormatter = ClassMetadataFormatter;
562 exports.MapEntryFormatter = MapEntryFormatter; 562 exports.MapEntryFormatter = MapEntryFormatter;
563 exports.HeritageClauseFormatter = HeritageClauseFormatter; 563 exports.HeritageClauseFormatter = HeritageClauseFormatter;
564 exports.registerDevtoolsFormatter = registerDevtoolsFormatter; 564 exports.registerDevtoolsFormatter = registerDevtoolsFormatter;
565 }); 565 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698