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

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

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen Created 5 years 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 | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.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/core', null, /* Imports */[ 1 dart_library.library('dart/core', null, /* Imports */[
2 "dart/_runtime" 2 "dart/_runtime"
3 ], /* Lazy imports */[ 3 ], /* Lazy imports */[
4 'dart/_js_helper', 4 'dart/_js_helper',
5 'dart/_internal', 5 'dart/_internal',
6 'dart/collection', 6 'dart/collection',
7 'dart/_interceptors', 7 'dart/_interceptors',
8 'dart/convert' 8 'dart/convert'
9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) { 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) {
10 'use strict'; 10 'use strict';
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 dart.setSignature(Deprecated, { 52 dart.setSignature(Deprecated, {
53 constructors: () => ({Deprecated: [Deprecated, [String]]}) 53 constructors: () => ({Deprecated: [Deprecated, [String]]})
54 }); 54 });
55 class _Override extends Object { 55 class _Override extends Object {
56 _Override() { 56 _Override() {
57 } 57 }
58 } 58 }
59 dart.setSignature(_Override, { 59 dart.setSignature(_Override, {
60 constructors: () => ({_Override: [_Override, []]}) 60 constructors: () => ({_Override: [_Override, []]})
61 }); 61 });
62 let deprecated = dart.const(new Deprecated("next release")); 62 const deprecated = dart.const(new Deprecated("next release"));
63 let override = dart.const(new _Override()); 63 const override = dart.const(new _Override());
64 class _Proxy extends Object { 64 class _Proxy extends Object {
65 _Proxy() { 65 _Proxy() {
66 } 66 }
67 } 67 }
68 dart.setSignature(_Proxy, { 68 dart.setSignature(_Proxy, {
69 constructors: () => ({_Proxy: [_Proxy, []]}) 69 constructors: () => ({_Proxy: [_Proxy, []]})
70 }); 70 });
71 let proxy = dart.const(new _Proxy()); 71 const proxy = dart.const(new _Proxy());
72 dart.defineExtensionNames([ 72 dart.defineExtensionNames([
73 'toString' 73 'toString'
74 ]); 74 ]);
75 class bool extends Object { 75 class bool extends Object {
76 static fromEnvironment(name, opts) { 76 static fromEnvironment(name, opts) {
77 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse; 77 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse;
78 dart.throw(new UnsupportedError('bool.fromEnvironment can only be used as a const constructor')); 78 dart.throw(new UnsupportedError('bool.fromEnvironment can only be used as a const constructor'));
79 } 79 }
80 toString() { 80 toString() {
81 return this ? "true" : "false"; 81 return this ? "true" : "false";
82 } 82 }
83 } 83 }
84 dart.setSignature(bool, { 84 dart.setSignature(bool, {
85 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool} ]}) 85 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool} ]})
86 }); 86 });
87 let Comparator$ = dart.generic(function(T) { 87 const Comparator$ = dart.generic(function(T) {
88 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T])); 88 const Comparator = dart.typedef('Comparator', () => dart.functionType(int, [ T, T]));
89 return Comparator; 89 return Comparator;
90 }); 90 });
91 let Comparator = Comparator$(); 91 let Comparator = Comparator$();
92 let Comparable$ = dart.generic(function(T) { 92 const Comparable$ = dart.generic(function(T) {
93 class Comparable extends Object { 93 class Comparable extends Object {
94 static compare(a, b) { 94 static compare(a, b) {
95 return a[dartx.compareTo](b); 95 return a[dartx.compareTo](b);
96 } 96 }
97 } 97 }
98 dart.setSignature(Comparable, { 98 dart.setSignature(Comparable, {
99 statics: () => ({compare: [int, [Comparable$(), Comparable$()]]}), 99 statics: () => ({compare: [int, [Comparable$(), Comparable$()]]}),
100 names: ['compare'] 100 names: ['compare']
101 }); 101 });
102 return Comparable; 102 return Comparable;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 450 }
451 dart.setSignature(double, { 451 dart.setSignature(double, {
452 statics: () => ({parse: [double, [String], [dart.functionType(double, [Strin g])]]}), 452 statics: () => ({parse: [double, [String], [dart.functionType(double, [Strin g])]]}),
453 names: ['parse'] 453 names: ['parse']
454 }); 454 });
455 double.NAN = 0.0 / 0.0; 455 double.NAN = 0.0 / 0.0;
456 double.INFINITY = 1.0 / 0.0; 456 double.INFINITY = 1.0 / 0.0;
457 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); 457 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY);
458 double.MIN_POSITIVE = 5e-324; 458 double.MIN_POSITIVE = 5e-324;
459 double.MAX_FINITE = 1.7976931348623157e+308; 459 double.MAX_FINITE = 1.7976931348623157e+308;
460 let _duration = dart.JsSymbol('_duration'); 460 const _duration = dart.JsSymbol('_duration');
461 class Duration extends Object { 461 class Duration extends Object {
462 Duration(opts) { 462 Duration(opts) {
463 let days = opts && 'days' in opts ? opts.days : 0; 463 let days = opts && 'days' in opts ? opts.days : 0;
464 let hours = opts && 'hours' in opts ? opts.hours : 0; 464 let hours = opts && 'hours' in opts ? opts.hours : 0;
465 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; 465 let minutes = opts && 'minutes' in opts ? opts.minutes : 0;
466 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; 466 let seconds = opts && 'seconds' in opts ? opts.seconds : 0;
467 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; 467 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0;
468 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; 468 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0;
469 this._microseconds(dart.notNull(days) * dart.notNull(Duration.MICROSECONDS _PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) + dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.n otNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull( milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notNu ll(microseconds)); 469 this._microseconds(dart.notNull(days) * dart.notNull(Duration.MICROSECONDS _PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) + dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.n otNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull( milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notNu ll(microseconds));
470 } 470 }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 } 646 }
647 } 647 }
648 class NullThrownError extends Error { 648 class NullThrownError extends Error {
649 NullThrownError() { 649 NullThrownError() {
650 super.Error(); 650 super.Error();
651 } 651 }
652 toString() { 652 toString() {
653 return "Throw of null."; 653 return "Throw of null.";
654 } 654 }
655 } 655 }
656 let _hasValue = dart.JsSymbol('_hasValue'); 656 const _hasValue = dart.JsSymbol('_hasValue');
657 class ArgumentError extends Error { 657 class ArgumentError extends Error {
658 ArgumentError(message) { 658 ArgumentError(message) {
659 if (message === void 0) 659 if (message === void 0)
660 message = null; 660 message = null;
661 this.message = message; 661 this.message = message;
662 this.invalidValue = null; 662 this.invalidValue = null;
663 this[_hasValue] = false; 663 this[_hasValue] = false;
664 this.name = null; 664 this.name = null;
665 super.Error(); 665 super.Error();
666 } 666 }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 constructors: () => ({IndexError: [IndexError, [int, dart.dynamic], [String, String, int]]}) 852 constructors: () => ({IndexError: [IndexError, [int, dart.dynamic], [String, String, int]]})
853 }); 853 });
854 class FallThroughError extends Error { 854 class FallThroughError extends Error {
855 FallThroughError() { 855 FallThroughError() {
856 super.Error(); 856 super.Error();
857 } 857 }
858 } 858 }
859 dart.setSignature(FallThroughError, { 859 dart.setSignature(FallThroughError, {
860 constructors: () => ({FallThroughError: [FallThroughError, []]}) 860 constructors: () => ({FallThroughError: [FallThroughError, []]})
861 }); 861 });
862 let _className = dart.JsSymbol('_className'); 862 const _className = dart.JsSymbol('_className');
863 class AbstractClassInstantiationError extends Error { 863 class AbstractClassInstantiationError extends Error {
864 AbstractClassInstantiationError(className) { 864 AbstractClassInstantiationError(className) {
865 this[_className] = className; 865 this[_className] = className;
866 super.Error(); 866 super.Error();
867 } 867 }
868 toString() { 868 toString() {
869 return `Cannot instantiate abstract class: '${this[_className]}'`; 869 return `Cannot instantiate abstract class: '${this[_className]}'`;
870 } 870 }
871 } 871 }
872 dart.setSignature(AbstractClassInstantiationError, { 872 dart.setSignature(AbstractClassInstantiationError, {
873 constructors: () => ({AbstractClassInstantiationError: [AbstractClassInstant iationError, [String]]}) 873 constructors: () => ({AbstractClassInstantiationError: [AbstractClassInstant iationError, [String]]})
874 }); 874 });
875 let _receiver = dart.JsSymbol('_receiver'); 875 const _receiver = dart.JsSymbol('_receiver');
876 let _memberName = dart.JsSymbol('_memberName'); 876 const _memberName = dart.JsSymbol('_memberName');
877 let _arguments = dart.JsSymbol('_arguments'); 877 const _arguments = dart.JsSymbol('_arguments');
878 let _namedArguments = dart.JsSymbol('_namedArguments'); 878 const _namedArguments = dart.JsSymbol('_namedArguments');
879 let _existingArgumentNames = dart.JsSymbol('_existingArgumentNames'); 879 const _existingArgumentNames = dart.JsSymbol('_existingArgumentNames');
880 class NoSuchMethodError extends Error { 880 class NoSuchMethodError extends Error {
881 NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) { 881 NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) {
882 if (existingArgumentNames === void 0) 882 if (existingArgumentNames === void 0)
883 existingArgumentNames = null; 883 existingArgumentNames = null;
884 this[_receiver] = receiver; 884 this[_receiver] = receiver;
885 this[_memberName] = memberName; 885 this[_memberName] = memberName;
886 this[_arguments] = positionalArguments; 886 this[_arguments] = positionalArguments;
887 this[_namedArguments] = namedArguments; 887 this[_namedArguments] = namedArguments;
888 this[_existingArgumentNames] = existingArgumentNames; 888 this[_existingArgumentNames] = existingArgumentNames;
889 super.Error(); 889 super.Error();
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 IntegerDivisionByZeroException() { 1149 IntegerDivisionByZeroException() {
1150 } 1150 }
1151 toString() { 1151 toString() {
1152 return "IntegerDivisionByZeroException"; 1152 return "IntegerDivisionByZeroException";
1153 } 1153 }
1154 } 1154 }
1155 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; 1155 IntegerDivisionByZeroException[dart.implements] = () => [Exception];
1156 dart.setSignature(IntegerDivisionByZeroException, { 1156 dart.setSignature(IntegerDivisionByZeroException, {
1157 constructors: () => ({IntegerDivisionByZeroException: [IntegerDivisionByZero Exception, []]}) 1157 constructors: () => ({IntegerDivisionByZeroException: [IntegerDivisionByZero Exception, []]})
1158 }); 1158 });
1159 let _getKey = dart.JsSymbol('_getKey'); 1159 const _getKey = dart.JsSymbol('_getKey');
1160 let Expando$ = dart.generic(function(T) { 1160 const Expando$ = dart.generic(function(T) {
1161 class Expando extends Object { 1161 class Expando extends Object {
1162 Expando(name) { 1162 Expando(name) {
1163 if (name === void 0) 1163 if (name === void 0)
1164 name = null; 1164 name = null;
1165 this.name = name; 1165 this.name = name;
1166 } 1166 }
1167 toString() { 1167 toString() {
1168 return `Expando:${this.name}`; 1168 return `Expando:${this.name}`;
1169 } 1169 }
1170 get(object) { 1170 get(object) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 dart.setSignature(int, { 1251 dart.setSignature(int, {
1252 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ), 1252 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ),
1253 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}), 1253 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}),
1254 names: ['parse'] 1254 names: ['parse']
1255 }); 1255 });
1256 class Invocation extends Object { 1256 class Invocation extends Object {
1257 get isAccessor() { 1257 get isAccessor() {
1258 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); 1258 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter);
1259 } 1259 }
1260 } 1260 }
1261 let Iterable$ = dart.generic(function(E) { 1261 const Iterable$ = dart.generic(function(E) {
1262 dart.defineExtensionNames([ 1262 dart.defineExtensionNames([
1263 'join' 1263 'join'
1264 ]); 1264 ]);
1265 class Iterable extends Object { 1265 class Iterable extends Object {
1266 Iterable() { 1266 Iterable() {
1267 } 1267 }
1268 static generate(count, generator) { 1268 static generate(count, generator) {
1269 if (generator === void 0) 1269 if (generator === void 0)
1270 generator = null; 1270 generator = null;
1271 if (dart.notNull(count) <= 0) 1271 if (dart.notNull(count) <= 0)
(...skipping 14 matching lines...) Expand all
1286 dart.setSignature(Iterable, { 1286 dart.setSignature(Iterable, {
1287 constructors: () => ({ 1287 constructors: () => ({
1288 Iterable: [Iterable$(E), []], 1288 Iterable: [Iterable$(E), []],
1289 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]] 1289 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]]
1290 }), 1290 }),
1291 methods: () => ({[dartx.join]: [String, [], [String]]}) 1291 methods: () => ({[dartx.join]: [String, [], [String]]})
1292 }); 1292 });
1293 return Iterable; 1293 return Iterable;
1294 }); 1294 });
1295 let Iterable = Iterable$(); 1295 let Iterable = Iterable$();
1296 let _Generator$ = dart.generic(function(E) { 1296 const _Generator$ = dart.generic(function(E) {
1297 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] )); 1297 const _Generator = dart.typedef('_Generator', () => dart.functionType(E, [in t]));
1298 return _Generator; 1298 return _Generator;
1299 }); 1299 });
1300 let _Generator = _Generator$(); 1300 let _Generator = _Generator$();
1301 let _end = dart.JsSymbol('_end'); 1301 const _end = dart.JsSymbol('_end');
1302 let _start = dart.JsSymbol('_start'); 1302 const _start = dart.JsSymbol('_start');
1303 let _generator = dart.JsSymbol('_generator'); 1303 const _generator = dart.JsSymbol('_generator');
1304 let _GeneratorIterable$ = dart.generic(function(E) { 1304 const _GeneratorIterable$ = dart.generic(function(E) {
1305 class _GeneratorIterable extends collection.IterableBase$(E) { 1305 class _GeneratorIterable extends collection.IterableBase$(E) {
1306 _GeneratorIterable(end, generator) { 1306 _GeneratorIterable(end, generator) {
1307 this[_end] = end; 1307 this[_end] = end;
1308 this[_start] = 0; 1308 this[_start] = 0;
1309 this[_generator] = dart.as(generator != null ? generator : exports._Gene ratorIterable$()._id, _Generator$(E)); 1309 this[_generator] = dart.as(generator != null ? generator : exports._Gene ratorIterable$()._id, _Generator$(E));
1310 super.IterableBase(); 1310 super.IterableBase();
1311 } 1311 }
1312 slice(start, end, generator) { 1312 slice(start, end, generator) {
1313 this[_start] = start; 1313 this[_start] = start;
1314 this[_end] = end; 1314 this[_end] = end;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 skip: [Iterable$(E), [int]], 1354 skip: [Iterable$(E), [int]],
1355 take: [Iterable$(E), [int]] 1355 take: [Iterable$(E), [int]]
1356 }), 1356 }),
1357 statics: () => ({_id: [int, [int]]}), 1357 statics: () => ({_id: [int, [int]]}),
1358 names: ['_id'] 1358 names: ['_id']
1359 }); 1359 });
1360 dart.defineExtensionMembers(_GeneratorIterable, ['skip', 'take', 'iterator', 'length']); 1360 dart.defineExtensionMembers(_GeneratorIterable, ['skip', 'take', 'iterator', 'length']);
1361 return _GeneratorIterable; 1361 return _GeneratorIterable;
1362 }); 1362 });
1363 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$}); 1363 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$});
1364 let _index = dart.JsSymbol('_index'); 1364 const _index = dart.JsSymbol('_index');
1365 let _current = dart.JsSymbol('_current'); 1365 const _current = dart.JsSymbol('_current');
1366 let _GeneratorIterator$ = dart.generic(function(E) { 1366 const _GeneratorIterator$ = dart.generic(function(E) {
1367 class _GeneratorIterator extends Object { 1367 class _GeneratorIterator extends Object {
1368 _GeneratorIterator(index, end, generator) { 1368 _GeneratorIterator(index, end, generator) {
1369 this[_index] = index; 1369 this[_index] = index;
1370 this[_end] = end; 1370 this[_end] = end;
1371 this[_generator] = generator; 1371 this[_generator] = generator;
1372 this[_current] = null; 1372 this[_current] = null;
1373 } 1373 }
1374 moveNext() { 1374 moveNext() {
1375 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { 1375 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) {
1376 this[_current] = this[_generator](this[_index]); 1376 this[_current] = this[_generator](this[_index]);
1377 this[_index] = dart.notNull(this[_index]) + 1; 1377 this[_index] = dart.notNull(this[_index]) + 1;
1378 return true; 1378 return true;
1379 } else { 1379 } else {
1380 this[_current] = null; 1380 this[_current] = null;
1381 return false; 1381 return false;
1382 } 1382 }
1383 } 1383 }
1384 get current() { 1384 get current() {
1385 return this[_current]; 1385 return this[_current];
1386 } 1386 }
1387 } 1387 }
1388 _GeneratorIterator[dart.implements] = () => [Iterator$(E)]; 1388 _GeneratorIterator[dart.implements] = () => [Iterator$(E)];
1389 dart.setSignature(_GeneratorIterator, { 1389 dart.setSignature(_GeneratorIterator, {
1390 constructors: () => ({_GeneratorIterator: [_GeneratorIterator$(E), [int, i nt, _Generator$(E)]]}), 1390 constructors: () => ({_GeneratorIterator: [_GeneratorIterator$(E), [int, i nt, _Generator$(E)]]}),
1391 methods: () => ({moveNext: [bool, []]}) 1391 methods: () => ({moveNext: [bool, []]})
1392 }); 1392 });
1393 return _GeneratorIterator; 1393 return _GeneratorIterator;
1394 }); 1394 });
1395 let _GeneratorIterator = _GeneratorIterator$(); 1395 let _GeneratorIterator = _GeneratorIterator$();
1396 let BidirectionalIterator$ = dart.generic(function(E) { 1396 const BidirectionalIterator$ = dart.generic(function(E) {
1397 class BidirectionalIterator extends Object {} 1397 class BidirectionalIterator extends Object {}
1398 BidirectionalIterator[dart.implements] = () => [Iterator$(E)]; 1398 BidirectionalIterator[dart.implements] = () => [Iterator$(E)];
1399 return BidirectionalIterator; 1399 return BidirectionalIterator;
1400 }); 1400 });
1401 let BidirectionalIterator = BidirectionalIterator$(); 1401 let BidirectionalIterator = BidirectionalIterator$();
1402 let Iterator$ = dart.generic(function(E) { 1402 const Iterator$ = dart.generic(function(E) {
1403 class Iterator extends Object {} 1403 class Iterator extends Object {}
1404 return Iterator; 1404 return Iterator;
1405 }); 1405 });
1406 let Iterator = Iterator$(); 1406 let Iterator = Iterator$();
1407 let List$ = dart.generic(function(E) { 1407 const List$ = dart.generic(function(E) {
1408 class List extends Object { 1408 class List extends Object {
1409 static new(length) { 1409 static new(length) {
1410 if (length === void 0) 1410 if (length === void 0)
1411 length = null; 1411 length = null;
1412 let list = null; 1412 let list = null;
1413 if (length == null) { 1413 if (length == null) {
1414 list = []; 1414 list = [];
1415 } else { 1415 } else {
1416 if (!(typeof length == 'number') || dart.notNull(length) < 0) { 1416 if (!(typeof length == 'number') || dart.notNull(length) < 0) {
1417 dart.throw(new ArgumentError(`Length must be a non-negative integer: ${length}`)); 1417 dart.throw(new ArgumentError(`Length must be a non-negative integer: ${length}`));
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 constructors: () => ({ 1462 constructors: () => ({
1463 new: [List$(E), [], [int]], 1463 new: [List$(E), [], [int]],
1464 filled: [List$(E), [int, E]], 1464 filled: [List$(E), [int, E]],
1465 from: [List$(E), [Iterable], {growable: bool}], 1465 from: [List$(E), [Iterable], {growable: bool}],
1466 generate: [List$(E), [int, dart.functionType(E, [int])], {growable: bool }] 1466 generate: [List$(E), [int, dart.functionType(E, [int])], {growable: bool }]
1467 }) 1467 })
1468 }); 1468 });
1469 return List; 1469 return List;
1470 }); 1470 });
1471 let List = List$(); 1471 let List = List$();
1472 let Map$ = dart.generic(function(K, V) { 1472 const Map$ = dart.generic(function(K, V) {
1473 class Map extends Object { 1473 class Map extends Object {
1474 static new() { 1474 static new() {
1475 return collection.LinkedHashMap$(K, V).new(); 1475 return collection.LinkedHashMap$(K, V).new();
1476 } 1476 }
1477 static from(other) { 1477 static from(other) {
1478 return collection.LinkedHashMap$(K, V).from(other); 1478 return collection.LinkedHashMap$(K, V).from(other);
1479 } 1479 }
1480 static identity() { 1480 static identity() {
1481 return collection.LinkedHashMap$(K, V).identity(); 1481 return collection.LinkedHashMap$(K, V).identity();
1482 } 1482 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 static new(source, opts) { 1526 static new(source, opts) {
1527 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; 1527 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false;
1528 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; 1528 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true;
1529 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); 1529 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive});
1530 } 1530 }
1531 } 1531 }
1532 RegExp[dart.implements] = () => [Pattern]; 1532 RegExp[dart.implements] = () => [Pattern];
1533 dart.setSignature(RegExp, { 1533 dart.setSignature(RegExp, {
1534 constructors: () => ({new: [RegExp, [String], {multiLine: bool, caseSensitiv e: bool}]}) 1534 constructors: () => ({new: [RegExp, [String], {multiLine: bool, caseSensitiv e: bool}]})
1535 }); 1535 });
1536 let Set$ = dart.generic(function(E) { 1536 const Set$ = dart.generic(function(E) {
1537 class Set extends collection.IterableBase$(E) { 1537 class Set extends collection.IterableBase$(E) {
1538 static new() { 1538 static new() {
1539 return collection.LinkedHashSet$(E).new(); 1539 return collection.LinkedHashSet$(E).new();
1540 } 1540 }
1541 static identity() { 1541 static identity() {
1542 return collection.LinkedHashSet$(E).identity(); 1542 return collection.LinkedHashSet$(E).identity();
1543 } 1543 }
1544 static from(elements) { 1544 static from(elements) {
1545 return collection.LinkedHashSet$(E).from(elements); 1545 return collection.LinkedHashSet$(E).from(elements);
1546 } 1546 }
1547 } 1547 }
1548 Set[dart.implements] = () => [_internal.EfficientLength]; 1548 Set[dart.implements] = () => [_internal.EfficientLength];
1549 dart.setSignature(Set, { 1549 dart.setSignature(Set, {
1550 constructors: () => ({ 1550 constructors: () => ({
1551 new: [exports.Set$(E), []], 1551 new: [exports.Set$(E), []],
1552 identity: [exports.Set$(E), []], 1552 identity: [exports.Set$(E), []],
1553 from: [exports.Set$(E), [Iterable]] 1553 from: [exports.Set$(E), [Iterable]]
1554 }) 1554 })
1555 }); 1555 });
1556 return Set; 1556 return Set;
1557 }); 1557 });
1558 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); 1558 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$});
1559 let Sink$ = dart.generic(function(T) { 1559 const Sink$ = dart.generic(function(T) {
1560 class Sink extends Object {} 1560 class Sink extends Object {}
1561 return Sink; 1561 return Sink;
1562 }); 1562 });
1563 let Sink = Sink$(); 1563 let Sink = Sink$();
1564 class StackTrace extends Object {} 1564 class StackTrace extends Object {}
1565 let _stop = dart.JsSymbol('_stop'); 1565 const _stop = dart.JsSymbol('_stop');
1566 class Stopwatch extends Object { 1566 class Stopwatch extends Object {
1567 get frequency() { 1567 get frequency() {
1568 return Stopwatch._frequency; 1568 return Stopwatch._frequency;
1569 } 1569 }
1570 Stopwatch() { 1570 Stopwatch() {
1571 this[_start] = null; 1571 this[_start] = null;
1572 this[_stop] = null; 1572 this[_stop] = null;
1573 Stopwatch._initTicker(); 1573 Stopwatch._initTicker();
1574 } 1574 }
1575 start() { 1575 start() {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 } 1740 }
1741 dart.fn(_isLeadSurrogate, bool, [int]); 1741 dart.fn(_isLeadSurrogate, bool, [int]);
1742 function _isTrailSurrogate(code) { 1742 function _isTrailSurrogate(code) {
1743 return (dart.notNull(code) & 64512) == 56320; 1743 return (dart.notNull(code) & 64512) == 56320;
1744 } 1744 }
1745 dart.fn(_isTrailSurrogate, bool, [int]); 1745 dart.fn(_isTrailSurrogate, bool, [int]);
1746 function _combineSurrogatePair(start, end) { 1746 function _combineSurrogatePair(start, end) {
1747 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1 023); 1747 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1 023);
1748 } 1748 }
1749 dart.fn(_combineSurrogatePair, int, [int, int]); 1749 dart.fn(_combineSurrogatePair, int, [int, int]);
1750 let _position = dart.JsSymbol('_position'); 1750 const _position = dart.JsSymbol('_position');
1751 let _nextPosition = dart.JsSymbol('_nextPosition'); 1751 const _nextPosition = dart.JsSymbol('_nextPosition');
1752 let _currentCodePoint = dart.JsSymbol('_currentCodePoint'); 1752 const _currentCodePoint = dart.JsSymbol('_currentCodePoint');
1753 let _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate'); 1753 const _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate');
1754 class RuneIterator extends Object { 1754 class RuneIterator extends Object {
1755 RuneIterator(string) { 1755 RuneIterator(string) {
1756 this.string = string; 1756 this.string = string;
1757 this[_position] = 0; 1757 this[_position] = 0;
1758 this[_nextPosition] = 0; 1758 this[_nextPosition] = 0;
1759 this[_currentCodePoint] = null; 1759 this[_currentCodePoint] = null;
1760 } 1760 }
1761 at(string, index) { 1761 at(string, index) {
1762 this.string = string; 1762 this.string = string;
1763 this[_position] = index; 1763 this[_position] = index;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 RuneIterator: [RuneIterator, [String]], 1848 RuneIterator: [RuneIterator, [String]],
1849 at: [RuneIterator, [String, int]] 1849 at: [RuneIterator, [String, int]]
1850 }), 1850 }),
1851 methods: () => ({ 1851 methods: () => ({
1852 [_checkSplitSurrogate]: [dart.void, [int]], 1852 [_checkSplitSurrogate]: [dart.void, [int]],
1853 reset: [dart.void, [], [int]], 1853 reset: [dart.void, [], [int]],
1854 moveNext: [bool, []], 1854 moveNext: [bool, []],
1855 movePrevious: [bool, []] 1855 movePrevious: [bool, []]
1856 }) 1856 })
1857 }); 1857 });
1858 let _contents = dart.JsSymbol('_contents'); 1858 const _contents = dart.JsSymbol('_contents');
1859 let _writeString = dart.JsSymbol('_writeString'); 1859 const _writeString = dart.JsSymbol('_writeString');
1860 class StringBuffer extends Object { 1860 class StringBuffer extends Object {
1861 StringBuffer(content) { 1861 StringBuffer(content) {
1862 if (content === void 0) 1862 if (content === void 0)
1863 content = ""; 1863 content = "";
1864 this[_contents] = `${content}`; 1864 this[_contents] = `${content}`;
1865 } 1865 }
1866 get length() { 1866 get length() {
1867 return this[_contents][dartx.length]; 1867 return this[_contents][dartx.length];
1868 } 1868 }
1869 get isEmpty() { 1869 get isEmpty() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 class StringSink extends Object {} 1927 class StringSink extends Object {}
1928 class Symbol extends Object { 1928 class Symbol extends Object {
1929 static new(name) { 1929 static new(name) {
1930 return new _internal.Symbol(name); 1930 return new _internal.Symbol(name);
1931 } 1931 }
1932 } 1932 }
1933 dart.setSignature(Symbol, { 1933 dart.setSignature(Symbol, {
1934 constructors: () => ({new: [Symbol, [String]]}) 1934 constructors: () => ({new: [Symbol, [String]]})
1935 }); 1935 });
1936 class Type extends Object {} 1936 class Type extends Object {}
1937 let _writeAuthority = dart.JsSymbol('_writeAuthority'); 1937 const _writeAuthority = dart.JsSymbol('_writeAuthority');
1938 let _userInfo = dart.JsSymbol('_userInfo'); 1938 const _userInfo = dart.JsSymbol('_userInfo');
1939 let _host = dart.JsSymbol('_host'); 1939 const _host = dart.JsSymbol('_host');
1940 let _port = dart.JsSymbol('_port'); 1940 const _port = dart.JsSymbol('_port');
1941 let _path = dart.JsSymbol('_path'); 1941 const _path = dart.JsSymbol('_path');
1942 let _query = dart.JsSymbol('_query'); 1942 const _query = dart.JsSymbol('_query');
1943 let _fragment = dart.JsSymbol('_fragment'); 1943 const _fragment = dart.JsSymbol('_fragment');
1944 let _pathSegments = dart.JsSymbol('_pathSegments'); 1944 const _pathSegments = dart.JsSymbol('_pathSegments');
1945 let _queryParameters = dart.JsSymbol('_queryParameters'); 1945 const _queryParameters = dart.JsSymbol('_queryParameters');
1946 let _merge = dart.JsSymbol('_merge'); 1946 const _merge = dart.JsSymbol('_merge');
1947 let _hasDotSegments = dart.JsSymbol('_hasDotSegments'); 1947 const _hasDotSegments = dart.JsSymbol('_hasDotSegments');
1948 let _removeDotSegments = dart.JsSymbol('_removeDotSegments'); 1948 const _removeDotSegments = dart.JsSymbol('_removeDotSegments');
1949 let _toWindowsFilePath = dart.JsSymbol('_toWindowsFilePath'); 1949 const _toWindowsFilePath = dart.JsSymbol('_toWindowsFilePath');
1950 let _toFilePath = dart.JsSymbol('_toFilePath'); 1950 const _toFilePath = dart.JsSymbol('_toFilePath');
1951 let _isPathAbsolute = dart.JsSymbol('_isPathAbsolute'); 1951 const _isPathAbsolute = dart.JsSymbol('_isPathAbsolute');
1952 class Uri extends Object { 1952 class Uri extends Object {
1953 get authority() { 1953 get authority() {
1954 if (!dart.notNull(this.hasAuthority)) 1954 if (!dart.notNull(this.hasAuthority))
1955 return ""; 1955 return "";
1956 let sb = new StringBuffer(); 1956 let sb = new StringBuffer();
1957 this[_writeAuthority](sb); 1957 this[_writeAuthority](sb);
1958 return dart.toString(sb); 1958 return dart.toString(sb);
1959 } 1959 }
1960 get userInfo() { 1960 get userInfo() {
1961 return this[_userInfo]; 1961 return this[_userInfo];
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
3366 exports.StackTrace = StackTrace; 3366 exports.StackTrace = StackTrace;
3367 exports.Stopwatch = Stopwatch; 3367 exports.Stopwatch = Stopwatch;
3368 exports.String = String; 3368 exports.String = String;
3369 exports.RuneIterator = RuneIterator; 3369 exports.RuneIterator = RuneIterator;
3370 exports.StringBuffer = StringBuffer; 3370 exports.StringBuffer = StringBuffer;
3371 exports.StringSink = StringSink; 3371 exports.StringSink = StringSink;
3372 exports.Symbol = Symbol; 3372 exports.Symbol = Symbol;
3373 exports.Type = Type; 3373 exports.Type = Type;
3374 exports.Uri = Uri; 3374 exports.Uri = Uri;
3375 }); 3375 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698