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

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

Issue 1700153002: Wrapperless dart:html and friends (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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
OLDNEW
1 dart_library.library('dart/js', null, /* Imports */[ 1 dart_library.library('dart/js', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core', 3 'dart/core',
4 'dart/collection', 4 'dart/collection',
5 'dart/_js_helper' 5 'dart/_js_helper'
6 ], /* Lazy imports */[ 6 ], /* Lazy imports */[
7 ], function(exports, dart, core, collection, _js_helper) { 7 ], function(exports, dart, core, collection, _js_helper) {
8 'use strict'; 8 'use strict';
9 let dartx = dart.dartx; 9 let dartx = dart.dartx;
10 const _global = dart.global; 10 const _global = dart.global;
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 static _convertDataTree(data) { 42 static _convertDataTree(data) {
43 let _convertedObjects = collection.HashMap.identity(); 43 let _convertedObjects = collection.HashMap.identity();
44 function _convert(o) { 44 function _convert(o) {
45 if (dart.notNull(_convertedObjects.containsKey(o))) { 45 if (dart.notNull(_convertedObjects.containsKey(o))) {
46 return _convertedObjects.get(o); 46 return _convertedObjects.get(o);
47 } 47 }
48 if (dart.is(o, core.Map)) { 48 if (dart.is(o, core.Map)) {
49 let convertedMap = {}; 49 let convertedMap = {};
50 _convertedObjects.set(o, convertedMap); 50 _convertedObjects.set(o, convertedMap);
51 for (let key of o.keys) { 51 for (let key of o[dartx.keys]) {
52 convertedMap[key] = _convert(o.get(key)); 52 convertedMap[key] = _convert(o[dartx.get](key));
53 } 53 }
54 return convertedMap; 54 return convertedMap;
55 } else if (dart.is(o, core.Iterable)) { 55 } else if (dart.is(o, core.Iterable)) {
56 let convertedList = []; 56 let convertedList = [];
57 _convertedObjects.set(o, convertedList); 57 _convertedObjects.set(o, convertedList);
58 convertedList[dartx.addAll](o[dartx.map](_convert)); 58 convertedList[dartx.addAll](o[dartx.map](_convert));
59 return convertedList; 59 return convertedList;
60 } else { 60 } else {
61 return _convertToJS(o); 61 return _convertToJS(o);
62 } 62 }
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 }); 408 });
409 let __CastType0 = __CastType0$(); 409 let __CastType0 = __CastType0$();
410 // Exports: 410 // Exports:
411 exports.JsObject = JsObject; 411 exports.JsObject = JsObject;
412 exports.JsFunction = JsFunction; 412 exports.JsFunction = JsFunction;
413 exports.JsArray$ = JsArray$; 413 exports.JsArray$ = JsArray$;
414 exports.JsArray = JsArray; 414 exports.JsArray = JsArray;
415 exports.allowInterop = allowInterop; 415 exports.allowInterop = allowInterop;
416 exports.allowInteropCaptureThis = allowInteropCaptureThis; 416 exports.allowInteropCaptureThis = allowInteropCaptureThis;
417 }); 417 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698