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

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

Issue 1047203002: compute interfaces lazily (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 | « 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 var core; 1 var core;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Object { 4 class Object {
5 constructor() { 5 constructor() {
6 var name = this.constructor.name; 6 var name = this.constructor.name;
7 var init = this[name]; 7 var init = this[name];
8 var result = void 0; 8 var result = void 0;
9 if (init) 9 if (init)
10 result = init.apply(this, arguments); 10 result = init.apply(this, arguments);
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 get second() { 308 get second() {
309 return dart.as(_js_helper.Primitives.getSeconds(this), int); 309 return dart.as(_js_helper.Primitives.getSeconds(this), int);
310 } 310 }
311 get millisecond() { 311 get millisecond() {
312 return dart.as(_js_helper.Primitives.getMilliseconds(this), int); 312 return dart.as(_js_helper.Primitives.getMilliseconds(this), int);
313 } 313 }
314 get weekday() { 314 get weekday() {
315 return dart.as(_js_helper.Primitives.getWeekday(this), int); 315 return dart.as(_js_helper.Primitives.getWeekday(this), int);
316 } 316 }
317 } 317 }
318 DateTime[dart.implements] = [Comparable]; 318 DateTime[dart.implements] = () => [Comparable];
319 dart.defineNamedConstructor(DateTime, 'utc'); 319 dart.defineNamedConstructor(DateTime, 'utc');
320 dart.defineNamedConstructor(DateTime, 'now'); 320 dart.defineNamedConstructor(DateTime, 'now');
321 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch'); 321 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch');
322 dart.defineNamedConstructor(DateTime, _internal$); 322 dart.defineNamedConstructor(DateTime, _internal$);
323 dart.defineNamedConstructor(DateTime, _now); 323 dart.defineNamedConstructor(DateTime, _now);
324 DateTime.MONDAY = 1; 324 DateTime.MONDAY = 1;
325 DateTime.TUESDAY = 2; 325 DateTime.TUESDAY = 2;
326 DateTime.WEDNESDAY = 3; 326 DateTime.WEDNESDAY = 3;
327 DateTime.THURSDAY = 4; 327 DateTime.THURSDAY = 4;
328 DateTime.FRIDAY = 5; 328 DateTime.FRIDAY = 5;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 } 365 }
366 static [_onParseErrorInt](_) { 366 static [_onParseErrorInt](_) {
367 num[_parseError] = true; 367 num[_parseError] = true;
368 return 0; 368 return 0;
369 } 369 }
370 static [_onParseErrorDouble](_) { 370 static [_onParseErrorDouble](_) {
371 num[_parseError] = true; 371 num[_parseError] = true;
372 return 0.0; 372 return 0.0;
373 } 373 }
374 } 374 }
375 num[dart.implements] = [Comparable$(num)]; 375 num[dart.implements] = () => [Comparable$(num)];
376 num._parseError = false; 376 num._parseError = false;
377 class double extends num { 377 class double extends num {
378 static parse(source, onError) { 378 static parse(source, onError) {
379 if (onError === void 0) 379 if (onError === void 0)
380 onError = null; 380 onError = null;
381 return _js_helper.Primitives.parseDouble(source, onError); 381 return _js_helper.Primitives.parseDouble(source, onError);
382 } 382 }
383 } 383 }
384 double.NAN = 0.0 / 0.0; 384 double.NAN = 0.0 / 0.0;
385 double.INFINITY = 1.0 / 0.0; 385 double.INFINITY = 1.0 / 0.0;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 get isNegative() { 488 get isNegative() {
489 return dart.notNull(this[_duration]) < 0; 489 return dart.notNull(this[_duration]) < 0;
490 } 490 }
491 abs() { 491 abs() {
492 return new Duration[_microseconds](this[_duration].abs()); 492 return new Duration[_microseconds](this[_duration].abs());
493 } 493 }
494 ['-']() { 494 ['-']() {
495 return new Duration[_microseconds](-dart.notNull(this[_duration])); 495 return new Duration[_microseconds](-dart.notNull(this[_duration]));
496 } 496 }
497 } 497 }
498 Duration[dart.implements] = [Comparable$(Duration)]; 498 Duration[dart.implements] = () => [Comparable$(Duration)];
499 dart.defineNamedConstructor(Duration, _microseconds); 499 dart.defineNamedConstructor(Duration, _microseconds);
500 Duration.MICROSECONDS_PER_MILLISECOND = 1000; 500 Duration.MICROSECONDS_PER_MILLISECOND = 1000;
501 Duration.MILLISECONDS_PER_SECOND = 1000; 501 Duration.MILLISECONDS_PER_SECOND = 1000;
502 Duration.SECONDS_PER_MINUTE = 60; 502 Duration.SECONDS_PER_MINUTE = 60;
503 Duration.MINUTES_PER_HOUR = 60; 503 Duration.MINUTES_PER_HOUR = 60;
504 Duration.HOURS_PER_DAY = 24; 504 Duration.HOURS_PER_DAY = 24;
505 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); 505 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND);
506 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); 506 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO ND) * dart.notNull(Duration.SECONDS_PER_MINUTE);
507 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR); 507 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR);
508 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY); 508 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 toString() { 714 toString() {
715 dart.assert(this[_hasValue]); 715 dart.assert(this[_hasValue]);
716 let target = Error.safeToString(this.indexable); 716 let target = Error.safeToString(this.indexable);
717 let explanation = `index should be less than ${this.length}`; 717 let explanation = `index should be less than ${this.length}`;
718 if (dart.dbinary(this.invalidValue, '<', 0)) { 718 if (dart.dbinary(this.invalidValue, '<', 0)) {
719 explanation = "index must not be negative"; 719 explanation = "index must not be negative";
720 } 720 }
721 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`; 721 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`;
722 } 722 }
723 } 723 }
724 IndexError[dart.implements] = [RangeError]; 724 IndexError[dart.implements] = () => [RangeError];
725 class FallThroughError extends Error { 725 class FallThroughError extends Error {
726 FallThroughError() { 726 FallThroughError() {
727 super.Error(); 727 super.Error();
728 } 728 }
729 } 729 }
730 let _className = dart.JsSymbol('_className'); 730 let _className = dart.JsSymbol('_className');
731 class AbstractClassInstantiationError extends Error { 731 class AbstractClassInstantiationError extends Error {
732 AbstractClassInstantiationError(className) { 732 AbstractClassInstantiationError(className) {
733 this[_className] = className; 733 this[_className] = className;
734 super.Error(); 734 super.Error();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 UnimplementedError(message) { 804 UnimplementedError(message) {
805 if (message === void 0) 805 if (message === void 0)
806 message = null; 806 message = null;
807 this.message = message; 807 this.message = message;
808 super.Error(); 808 super.Error();
809 } 809 }
810 toString() { 810 toString() {
811 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError"; 811 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError";
812 } 812 }
813 } 813 }
814 UnimplementedError[dart.implements] = [UnsupportedError]; 814 UnimplementedError[dart.implements] = () => [UnsupportedError];
815 class StateError extends Error { 815 class StateError extends Error {
816 StateError(message) { 816 StateError(message) {
817 this.message = message; 817 this.message = message;
818 super.Error(); 818 super.Error();
819 } 819 }
820 toString() { 820 toString() {
821 return `Bad state: ${this.message}`; 821 return `Bad state: ${this.message}`;
822 } 822 }
823 } 823 }
824 class ConcurrentModificationError extends Error { 824 class ConcurrentModificationError extends Error {
(...skipping 13 matching lines...) Expand all
838 class OutOfMemoryError extends Object { 838 class OutOfMemoryError extends Object {
839 OutOfMemoryError() { 839 OutOfMemoryError() {
840 } 840 }
841 toString() { 841 toString() {
842 return "Out of Memory"; 842 return "Out of Memory";
843 } 843 }
844 get stackTrace() { 844 get stackTrace() {
845 return null; 845 return null;
846 } 846 }
847 } 847 }
848 OutOfMemoryError[dart.implements] = [Error]; 848 OutOfMemoryError[dart.implements] = () => [Error];
849 class StackOverflowError extends Object { 849 class StackOverflowError extends Object {
850 StackOverflowError() { 850 StackOverflowError() {
851 } 851 }
852 toString() { 852 toString() {
853 return "Stack Overflow"; 853 return "Stack Overflow";
854 } 854 }
855 get stackTrace() { 855 get stackTrace() {
856 return null; 856 return null;
857 } 857 }
858 } 858 }
859 StackOverflowError[dart.implements] = [Error]; 859 StackOverflowError[dart.implements] = () => [Error];
860 class CyclicInitializationError extends Error { 860 class CyclicInitializationError extends Error {
861 CyclicInitializationError(variableName) { 861 CyclicInitializationError(variableName) {
862 if (variableName === void 0) 862 if (variableName === void 0)
863 variableName = null; 863 variableName = null;
864 this.variableName = variableName; 864 this.variableName = variableName;
865 super.Error(); 865 super.Error();
866 } 866 }
867 toString() { 867 toString() {
868 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`; 868 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`;
869 } 869 }
(...skipping 10 matching lines...) Expand all
880 if (message === void 0) 880 if (message === void 0)
881 message = null; 881 message = null;
882 this.message = message; 882 this.message = message;
883 } 883 }
884 toString() { 884 toString() {
885 if (this.message == null) 885 if (this.message == null)
886 return "Exception"; 886 return "Exception";
887 return `Exception: ${this.message}`; 887 return `Exception: ${this.message}`;
888 } 888 }
889 } 889 }
890 _ExceptionImplementation[dart.implements] = [Exception]; 890 _ExceptionImplementation[dart.implements] = () => [Exception];
891 class FormatException extends Object { 891 class FormatException extends Object {
892 FormatException(message, source, offset) { 892 FormatException(message, source, offset) {
893 if (message === void 0) 893 if (message === void 0)
894 message = ""; 894 message = "";
895 if (source === void 0) 895 if (source === void 0)
896 source = null; 896 source = null;
897 if (offset === void 0) 897 if (offset === void 0)
898 offset = -1; 898 offset = -1;
899 this.message = message; 899 this.message = message;
900 this.source = source; 900 this.source = source;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 start = dart.notNull(offset) - 36; 969 start = dart.notNull(offset) - 36;
970 end = dart.notNull(offset) + 36; 970 end = dart.notNull(offset) + 36;
971 prefix = postfix = "..."; 971 prefix = postfix = "...";
972 } 972 }
973 } 973 }
974 let slice = dart.as(dart.dinvoke(this.source, 'substring', start, end), St ring); 974 let slice = dart.as(dart.dinvoke(this.source, 'substring', start, end), St ring);
975 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull (prefix.length); 975 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull (prefix.length);
976 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse t)}^\n`; 976 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse t)}^\n`;
977 } 977 }
978 } 978 }
979 FormatException[dart.implements] = [Exception]; 979 FormatException[dart.implements] = () => [Exception];
980 class IntegerDivisionByZeroException extends Object { 980 class IntegerDivisionByZeroException extends Object {
981 IntegerDivisionByZeroException() { 981 IntegerDivisionByZeroException() {
982 } 982 }
983 toString() { 983 toString() {
984 return "IntegerDivisionByZeroException"; 984 return "IntegerDivisionByZeroException";
985 } 985 }
986 } 986 }
987 IntegerDivisionByZeroException[dart.implements] = [Exception]; 987 IntegerDivisionByZeroException[dart.implements] = () => [Exception];
988 let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME'); 988 let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME');
989 let _getKey = dart.JsSymbol('_getKey'); 989 let _getKey = dart.JsSymbol('_getKey');
990 let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME'); 990 let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME');
991 let _keyCount = dart.JsSymbol('_keyCount'); 991 let _keyCount = dart.JsSymbol('_keyCount');
992 let Expando$ = dart.generic(function(T) { 992 let Expando$ = dart.generic(function(T) {
993 class Expando extends Object { 993 class Expando extends Object {
994 Expando(name) { 994 Expando(name) {
995 if (name === void 0) 995 if (name === void 0)
996 name = null; 996 name = null;
997 this.name = name; 997 this.name = name;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 return new _internal.EmptyIterable(); 1137 return new _internal.EmptyIterable();
1138 let newEnd = dart.notNull(this[_start]) + dart.notNull(count); 1138 let newEnd = dart.notNull(this[_start]) + dart.notNull(count);
1139 if (dart.notNull(newEnd) >= dart.notNull(this[_end])) 1139 if (dart.notNull(newEnd) >= dart.notNull(this[_end]))
1140 return this; 1140 return this;
1141 return new _GeneratorIterable.slice(this[_start], newEnd, this[_generato r]); 1141 return new _GeneratorIterable.slice(this[_start], newEnd, this[_generato r]);
1142 } 1142 }
1143 static [_id](n) { 1143 static [_id](n) {
1144 return n; 1144 return n;
1145 } 1145 }
1146 } 1146 }
1147 _GeneratorIterable[dart.implements] = [_internal.EfficientLength]; 1147 _GeneratorIterable[dart.implements] = () => [_internal.EfficientLength];
1148 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); 1148 dart.defineNamedConstructor(_GeneratorIterable, 'slice');
1149 return _GeneratorIterable; 1149 return _GeneratorIterable;
1150 }); 1150 });
1151 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$}); 1151 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$});
1152 let _index = dart.JsSymbol('_index'); 1152 let _index = dart.JsSymbol('_index');
1153 let _current = dart.JsSymbol('_current'); 1153 let _current = dart.JsSymbol('_current');
1154 let _GeneratorIterator$ = dart.generic(function(E) { 1154 let _GeneratorIterator$ = dart.generic(function(E) {
1155 class _GeneratorIterator extends Object { 1155 class _GeneratorIterator extends Object {
1156 _GeneratorIterator(index$, end$, generator$) { 1156 _GeneratorIterator(index$, end$, generator$) {
1157 this[_index] = index$; 1157 this[_index] = index$;
1158 this[_end] = end$; 1158 this[_end] = end$;
1159 this[_generator] = generator$; 1159 this[_generator] = generator$;
1160 this[_current] = null; 1160 this[_current] = null;
1161 } 1161 }
1162 moveNext() { 1162 moveNext() {
1163 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { 1163 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) {
1164 this[_current] = this[_generator](this[_index]); 1164 this[_current] = this[_generator](this[_index]);
1165 this[_index] = dart.notNull(this[_index]) + 1; 1165 this[_index] = dart.notNull(this[_index]) + 1;
1166 return true; 1166 return true;
1167 } else { 1167 } else {
1168 this[_current] = null; 1168 this[_current] = null;
1169 return false; 1169 return false;
1170 } 1170 }
1171 } 1171 }
1172 get current() { 1172 get current() {
1173 return this[_current]; 1173 return this[_current];
1174 } 1174 }
1175 } 1175 }
1176 _GeneratorIterator[dart.implements] = [Iterator$(E)]; 1176 _GeneratorIterator[dart.implements] = () => [Iterator$(E)];
1177 return _GeneratorIterator; 1177 return _GeneratorIterator;
1178 }); 1178 });
1179 let _GeneratorIterator = _GeneratorIterator$(dart.dynamic); 1179 let _GeneratorIterator = _GeneratorIterator$(dart.dynamic);
1180 let BidirectionalIterator$ = dart.generic(function(E) { 1180 let BidirectionalIterator$ = dart.generic(function(E) {
1181 class BidirectionalIterator extends Object { 1181 class BidirectionalIterator extends Object {
1182 } 1182 }
1183 BidirectionalIterator[dart.implements] = [Iterator$(E)]; 1183 BidirectionalIterator[dart.implements] = () => [Iterator$(E)];
1184 return BidirectionalIterator; 1184 return BidirectionalIterator;
1185 }); 1185 });
1186 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic); 1186 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic);
1187 let Iterator$ = dart.generic(function(E) { 1187 let Iterator$ = dart.generic(function(E) {
1188 class Iterator extends Object { 1188 class Iterator extends Object {
1189 } 1189 }
1190 return Iterator; 1190 return Iterator;
1191 }); 1191 });
1192 let Iterator = Iterator$(dart.dynamic); 1192 let Iterator = Iterator$(dart.dynamic);
1193 let List$ = dart.generic(function(E) { 1193 let List$ = dart.generic(function(E) {
(...skipping 29 matching lines...) Expand all
1223 }).bind(this)(new List$(E).from([])); 1223 }).bind(this)(new List$(E).from([]));
1224 } else { 1224 } else {
1225 result = new List(length); 1225 result = new List(length);
1226 } 1226 }
1227 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 1227 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
1228 result.set(i, generator(i)); 1228 result.set(i, generator(i));
1229 } 1229 }
1230 return result; 1230 return result;
1231 } 1231 }
1232 } 1232 }
1233 List[dart.implements] = [Iterable$(E), _internal.EfficientLength]; 1233 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength];
1234 dart.defineNamedConstructor(List, 'filled'); 1234 dart.defineNamedConstructor(List, 'filled');
1235 dart.defineNamedConstructor(List, 'from'); 1235 dart.defineNamedConstructor(List, 'from');
1236 dart.defineNamedConstructor(List, 'generate'); 1236 dart.defineNamedConstructor(List, 'generate');
1237 return List; 1237 return List;
1238 }); 1238 });
1239 let List = List$(dart.dynamic); 1239 let List = List$(dart.dynamic);
1240 let Map$ = dart.generic(function(K, V) { 1240 let Map$ = dart.generic(function(K, V) {
1241 class Map extends Object { 1241 class Map extends Object {
1242 Map() { 1242 Map() {
1243 return new collection.LinkedHashMap(); 1243 return new collection.LinkedHashMap();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 } 1285 }
1286 class Match extends Object { 1286 class Match extends Object {
1287 } 1287 }
1288 class RegExp extends Object { 1288 class RegExp extends Object {
1289 RegExp(source, opts) { 1289 RegExp(source, opts) {
1290 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; 1290 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false;
1291 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; 1291 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true;
1292 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); 1292 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive});
1293 } 1293 }
1294 } 1294 }
1295 RegExp[dart.implements] = [Pattern]; 1295 RegExp[dart.implements] = () => [Pattern];
1296 let Set$ = dart.generic(function(E) { 1296 let Set$ = dart.generic(function(E) {
1297 class Set extends collection.IterableBase$(E) { 1297 class Set extends collection.IterableBase$(E) {
1298 Set() { 1298 Set() {
1299 return new collection.LinkedHashSet(); 1299 return new collection.LinkedHashSet();
1300 } 1300 }
1301 identity() { 1301 identity() {
1302 return new collection.LinkedHashSet.identity(); 1302 return new collection.LinkedHashSet.identity();
1303 } 1303 }
1304 from(elements) { 1304 from(elements) {
1305 return new collection.LinkedHashSet.from(elements); 1305 return new collection.LinkedHashSet.from(elements);
1306 } 1306 }
1307 } 1307 }
1308 Set[dart.implements] = [_internal.EfficientLength]; 1308 Set[dart.implements] = () => [_internal.EfficientLength];
1309 dart.defineNamedConstructor(Set, 'identity'); 1309 dart.defineNamedConstructor(Set, 'identity');
1310 dart.defineNamedConstructor(Set, 'from'); 1310 dart.defineNamedConstructor(Set, 'from');
1311 return Set; 1311 return Set;
1312 }); 1312 });
1313 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); 1313 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$});
1314 let Sink$ = dart.generic(function(T) { 1314 let Sink$ = dart.generic(function(T) {
1315 class Sink extends Object { 1315 class Sink extends Object {
1316 } 1316 }
1317 return Sink; 1317 return Sink;
1318 }); 1318 });
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNul l(i) + 1) { 1433 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNul l(i) + 1) {
1434 if (!dart.notNull(it.moveNext())) { 1434 if (!dart.notNull(it.moveNext())) {
1435 throw new RangeError.range(end, start, i); 1435 throw new RangeError.range(end, start, i);
1436 } 1436 }
1437 list.add(it.current); 1437 list.add(it.current);
1438 } 1438 }
1439 } 1439 }
1440 return _js_helper.Primitives.stringFromCharCodes(list); 1440 return _js_helper.Primitives.stringFromCharCodes(list);
1441 } 1441 }
1442 } 1442 }
1443 String[dart.implements] = [Comparable$(String), Pattern]; 1443 String[dart.implements] = () => [Comparable$(String), Pattern];
1444 dart.defineNamedConstructor(String, 'fromCharCodes'); 1444 dart.defineNamedConstructor(String, 'fromCharCodes');
1445 dart.defineNamedConstructor(String, 'fromCharCode'); 1445 dart.defineNamedConstructor(String, 'fromCharCode');
1446 dart.defineNamedConstructor(String, 'fromEnvironment'); 1446 dart.defineNamedConstructor(String, 'fromEnvironment');
1447 dart.defineLazyClass(exports, { 1447 dart.defineLazyClass(exports, {
1448 get Runes() { 1448 get Runes() {
1449 class Runes extends collection.IterableBase$(int) { 1449 class Runes extends collection.IterableBase$(int) {
1450 Runes(string) { 1450 Runes(string) {
1451 this.string = string; 1451 this.string = string;
1452 super.IterableBase(); 1452 super.IterableBase();
1453 } 1453 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 this[_position] = dart.notNull(position) - 1; 1571 this[_position] = dart.notNull(position) - 1;
1572 this[_currentCodePoint] = _combineSurrogatePair(prevCodeUnit, codeUnit ); 1572 this[_currentCodePoint] = _combineSurrogatePair(prevCodeUnit, codeUnit );
1573 return true; 1573 return true;
1574 } 1574 }
1575 } 1575 }
1576 this[_position] = position; 1576 this[_position] = position;
1577 this[_currentCodePoint] = codeUnit; 1577 this[_currentCodePoint] = codeUnit;
1578 return true; 1578 return true;
1579 } 1579 }
1580 } 1580 }
1581 RuneIterator[dart.implements] = [BidirectionalIterator$(int)]; 1581 RuneIterator[dart.implements] = () => [BidirectionalIterator$(int)];
1582 dart.defineNamedConstructor(RuneIterator, 'at'); 1582 dart.defineNamedConstructor(RuneIterator, 'at');
1583 let _contents = dart.JsSymbol('_contents'); 1583 let _contents = dart.JsSymbol('_contents');
1584 let _writeString = dart.JsSymbol('_writeString'); 1584 let _writeString = dart.JsSymbol('_writeString');
1585 class StringBuffer extends Object { 1585 class StringBuffer extends Object {
1586 StringBuffer(content) { 1586 StringBuffer(content) {
1587 if (content === void 0) 1587 if (content === void 0)
1588 content = ""; 1588 content = "";
1589 this[_contents] = `${content}`; 1589 this[_contents] = `${content}`;
1590 } 1590 }
1591 get length() { 1591 get length() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 clear() { 1630 clear() {
1631 this[_contents] = ""; 1631 this[_contents] = "";
1632 } 1632 }
1633 toString() { 1633 toString() {
1634 return _js_helper.Primitives.flattenString(this[_contents]); 1634 return _js_helper.Primitives.flattenString(this[_contents]);
1635 } 1635 }
1636 [_writeString](str) { 1636 [_writeString](str) {
1637 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten ts], dart.as(str, String)); 1637 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten ts], dart.as(str, String));
1638 } 1638 }
1639 } 1639 }
1640 StringBuffer[dart.implements] = [StringSink]; 1640 StringBuffer[dart.implements] = () => [StringSink];
1641 class StringSink extends Object { 1641 class StringSink extends Object {
1642 } 1642 }
1643 class Symbol extends Object { 1643 class Symbol extends Object {
1644 Symbol(name) { 1644 Symbol(name) {
1645 return new _internal.Symbol(name); 1645 return new _internal.Symbol(name);
1646 } 1646 }
1647 } 1647 }
1648 class Type extends Object { 1648 class Type extends Object {
1649 } 1649 }
1650 let _writeAuthority = dart.JsSymbol('_writeAuthority'); 1650 let _writeAuthority = dart.JsSymbol('_writeAuthority');
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 exports.StackTrace = StackTrace; 3089 exports.StackTrace = StackTrace;
3090 exports.Stopwatch = Stopwatch; 3090 exports.Stopwatch = Stopwatch;
3091 exports.String = String; 3091 exports.String = String;
3092 exports.RuneIterator = RuneIterator; 3092 exports.RuneIterator = RuneIterator;
3093 exports.StringBuffer = StringBuffer; 3093 exports.StringBuffer = StringBuffer;
3094 exports.StringSink = StringSink; 3094 exports.StringSink = StringSink;
3095 exports.Symbol = Symbol; 3095 exports.Symbol = Symbol;
3096 exports.Type = Type; 3096 exports.Type = Type;
3097 exports.Uri = Uri; 3097 exports.Uri = Uri;
3098 })(core || (core = {})); 3098 })(core || (core = {}));
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