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

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

Issue 1083383006: fix ClassTypeAlias extends (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 var collection; 1 var collection;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let _source = Symbol('_source'); 4 let _source = Symbol('_source');
5 let UnmodifiableListView$ = dart.generic(function(E) { 5 let UnmodifiableListView$ = dart.generic(function(E) {
6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { 6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) {
7 UnmodifiableListView(source) { 7 UnmodifiableListView(source) {
8 this[_source] = source; 8 this[_source] = source;
9 } 9 }
10 get [core.$length]() { 10 get [core.$length]() {
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 } 1860 }
1861 toString() { 1861 toString() {
1862 return Maps.mapToString(this); 1862 return Maps.mapToString(this);
1863 } 1863 }
1864 } 1864 }
1865 MapMixin[dart.implements] = () => [core.Map$(K, V)]; 1865 MapMixin[dart.implements] = () => [core.Map$(K, V)];
1866 return MapMixin; 1866 return MapMixin;
1867 }); 1867 });
1868 let MapMixin = MapMixin$(); 1868 let MapMixin = MapMixin$();
1869 let MapBase$ = dart.generic(function(K, V) { 1869 let MapBase$ = dart.generic(function(K, V) {
1870 class MapBase extends dart.mixin(MapMixin$(K, V)) {} 1870 class MapBase extends dart.mixin(core.Object, MapMixin$(K, V)) {}
1871 return MapBase; 1871 return MapBase;
1872 }); 1872 });
1873 let MapBase = MapBase$(); 1873 let MapBase = MapBase$();
1874 let _UnmodifiableMapMixin$ = dart.generic(function(K, V) { 1874 let _UnmodifiableMapMixin$ = dart.generic(function(K, V) {
1875 class _UnmodifiableMapMixin extends core.Object { 1875 class _UnmodifiableMapMixin extends core.Object {
1876 set(key, value) { 1876 set(key, value) {
1877 throw new core.UnsupportedError("Cannot modify unmodifiable map"); 1877 throw new core.UnsupportedError("Cannot modify unmodifiable map");
1878 } 1878 }
1879 addAll(other) { 1879 addAll(other) {
1880 throw new core.UnsupportedError("Cannot modify unmodifiable map"); 1880 throw new core.UnsupportedError("Cannot modify unmodifiable map");
1881 } 1881 }
1882 clear() { 1882 clear() {
1883 throw new core.UnsupportedError("Cannot modify unmodifiable map"); 1883 throw new core.UnsupportedError("Cannot modify unmodifiable map");
1884 } 1884 }
1885 remove(key) { 1885 remove(key) {
1886 throw new core.UnsupportedError("Cannot modify unmodifiable map"); 1886 throw new core.UnsupportedError("Cannot modify unmodifiable map");
1887 } 1887 }
1888 putIfAbsent(key, ifAbsent) { 1888 putIfAbsent(key, ifAbsent) {
1889 throw new core.UnsupportedError("Cannot modify unmodifiable map"); 1889 throw new core.UnsupportedError("Cannot modify unmodifiable map");
1890 } 1890 }
1891 } 1891 }
1892 _UnmodifiableMapMixin[dart.implements] = () => [core.Map$(K, V)]; 1892 _UnmodifiableMapMixin[dart.implements] = () => [core.Map$(K, V)];
1893 return _UnmodifiableMapMixin; 1893 return _UnmodifiableMapMixin;
1894 }); 1894 });
1895 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(); 1895 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$();
1896 let UnmodifiableMapBase$ = dart.generic(function(K, V) { 1896 let UnmodifiableMapBase$ = dart.generic(function(K, V) {
1897 class UnmodifiableMapBase extends dart.mixin(_UnmodifiableMapMixin$(K, V)) { } 1897 class UnmodifiableMapBase extends dart.mixin(MapBase$(K, V), _UnmodifiableMa pMixin$(K, V)) {}
1898 return UnmodifiableMapBase; 1898 return UnmodifiableMapBase;
1899 }); 1899 });
1900 let UnmodifiableMapBase = UnmodifiableMapBase$(); 1900 let UnmodifiableMapBase = UnmodifiableMapBase$();
1901 let _map = Symbol('_map'); 1901 let _map = Symbol('_map');
1902 let _MapBaseValueIterable$ = dart.generic(function(V) { 1902 let _MapBaseValueIterable$ = dart.generic(function(V) {
1903 class _MapBaseValueIterable extends IterableBase$(V) { 1903 class _MapBaseValueIterable extends IterableBase$(V) {
1904 _MapBaseValueIterable(map) { 1904 _MapBaseValueIterable(map) {
1905 this[_map] = map; 1905 this[_map] = map;
1906 super.IterableBase(); 1906 super.IterableBase();
1907 } 1907 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 } 2004 }
2005 get values() { 2005 get values() {
2006 return this[_map].values; 2006 return this[_map].values;
2007 } 2007 }
2008 } 2008 }
2009 MapView[dart.implements] = () => [core.Map$(K, V)]; 2009 MapView[dart.implements] = () => [core.Map$(K, V)];
2010 return MapView; 2010 return MapView;
2011 }); 2011 });
2012 let MapView = MapView$(); 2012 let MapView = MapView$();
2013 let UnmodifiableMapView$ = dart.generic(function(K, V) { 2013 let UnmodifiableMapView$ = dart.generic(function(K, V) {
2014 class UnmodifiableMapView extends dart.mixin(_UnmodifiableMapMixin$(K, V)) { } 2014 class UnmodifiableMapView extends dart.mixin(MapView$(K, V), _UnmodifiableMa pMixin$(K, V)) {}
2015 return UnmodifiableMapView; 2015 return UnmodifiableMapView;
2016 }); 2016 });
2017 let UnmodifiableMapView = UnmodifiableMapView$(); 2017 let UnmodifiableMapView = UnmodifiableMapView$();
2018 let _id = Symbol('_id'); 2018 let _id = Symbol('_id');
2019 class Maps extends core.Object { 2019 class Maps extends core.Object {
2020 static containsValue(map, value) { 2020 static containsValue(map, value) {
2021 for (let v of map.values) { 2021 for (let v of map.values) {
2022 if (dart.equals(value, v)) { 2022 if (dart.equals(value, v)) {
2023 return true; 2023 return true;
2024 } 2024 }
(...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after
5007 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; 5007 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$;
5008 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; 5008 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable;
5009 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; 5009 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$;
5010 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; 5010 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator;
5011 exports.HashSetIterator$ = HashSetIterator$; 5011 exports.HashSetIterator$ = HashSetIterator$;
5012 exports.HashSetIterator = HashSetIterator; 5012 exports.HashSetIterator = HashSetIterator;
5013 exports.LinkedHashSetCell = LinkedHashSetCell; 5013 exports.LinkedHashSetCell = LinkedHashSetCell;
5014 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; 5014 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$;
5015 exports.LinkedHashSetIterator = LinkedHashSetIterator; 5015 exports.LinkedHashSetIterator = LinkedHashSetIterator;
5016 })(collection || (collection = {})); 5016 })(collection || (collection = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698