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

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

Issue 1043003002: keep mixin and interface implementation info at runtime (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 dart.defineNamedConstructor(DateTime, 'utc'); 319 dart.defineNamedConstructor(DateTime, 'utc');
319 dart.defineNamedConstructor(DateTime, 'now'); 320 dart.defineNamedConstructor(DateTime, 'now');
320 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch'); 321 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch');
321 dart.defineNamedConstructor(DateTime, _internal$); 322 dart.defineNamedConstructor(DateTime, _internal$);
322 dart.defineNamedConstructor(DateTime, _now); 323 dart.defineNamedConstructor(DateTime, _now);
323 DateTime.MONDAY = 1; 324 DateTime.MONDAY = 1;
324 DateTime.TUESDAY = 2; 325 DateTime.TUESDAY = 2;
325 DateTime.WEDNESDAY = 3; 326 DateTime.WEDNESDAY = 3;
326 DateTime.THURSDAY = 4; 327 DateTime.THURSDAY = 4;
327 DateTime.FRIDAY = 5; 328 DateTime.FRIDAY = 5;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 365 }
365 static [_onParseErrorInt](_) { 366 static [_onParseErrorInt](_) {
366 num[_parseError] = true; 367 num[_parseError] = true;
367 return 0; 368 return 0;
368 } 369 }
369 static [_onParseErrorDouble](_) { 370 static [_onParseErrorDouble](_) {
370 num[_parseError] = true; 371 num[_parseError] = true;
371 return 0.0; 372 return 0.0;
372 } 373 }
373 } 374 }
375 num[dart.implements] = [Comparable$(num)];
374 num._parseError = false; 376 num._parseError = false;
375 class double extends num { 377 class double extends num {
376 static parse(source, onError) { 378 static parse(source, onError) {
377 if (onError === void 0) 379 if (onError === void 0)
378 onError = null; 380 onError = null;
379 return _js_helper.Primitives.parseDouble(source, onError); 381 return _js_helper.Primitives.parseDouble(source, onError);
380 } 382 }
381 } 383 }
382 double.NAN = 0.0 / 0.0; 384 double.NAN = 0.0 / 0.0;
383 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
486 get isNegative() { 488 get isNegative() {
487 return dart.notNull(this[_duration]) < 0; 489 return dart.notNull(this[_duration]) < 0;
488 } 490 }
489 abs() { 491 abs() {
490 return new Duration[_microseconds](this[_duration].abs()); 492 return new Duration[_microseconds](this[_duration].abs());
491 } 493 }
492 ['-']() { 494 ['-']() {
493 return new Duration[_microseconds](-dart.notNull(this[_duration])); 495 return new Duration[_microseconds](-dart.notNull(this[_duration]));
494 } 496 }
495 } 497 }
498 Duration[dart.implements] = [Comparable$(Duration)];
496 dart.defineNamedConstructor(Duration, _microseconds); 499 dart.defineNamedConstructor(Duration, _microseconds);
497 Duration.MICROSECONDS_PER_MILLISECOND = 1000; 500 Duration.MICROSECONDS_PER_MILLISECOND = 1000;
498 Duration.MILLISECONDS_PER_SECOND = 1000; 501 Duration.MILLISECONDS_PER_SECOND = 1000;
499 Duration.SECONDS_PER_MINUTE = 60; 502 Duration.SECONDS_PER_MINUTE = 60;
500 Duration.MINUTES_PER_HOUR = 60; 503 Duration.MINUTES_PER_HOUR = 60;
501 Duration.HOURS_PER_DAY = 24; 504 Duration.HOURS_PER_DAY = 24;
502 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);
503 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);
504 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);
505 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
711 toString() { 714 toString() {
712 dart.assert(this[_hasValue]); 715 dart.assert(this[_hasValue]);
713 let target = Error.safeToString(this.indexable); 716 let target = Error.safeToString(this.indexable);
714 let explanation = `index should be less than ${this.length}`; 717 let explanation = `index should be less than ${this.length}`;
715 if (dart.dbinary(this.invalidValue, '<', 0)) { 718 if (dart.dbinary(this.invalidValue, '<', 0)) {
716 explanation = "index must not be negative"; 719 explanation = "index must not be negative";
717 } 720 }
718 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`; 721 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`;
719 } 722 }
720 } 723 }
724 IndexError[dart.implements] = [RangeError];
721 class FallThroughError extends Error { 725 class FallThroughError extends Error {
722 FallThroughError() { 726 FallThroughError() {
723 super.Error(); 727 super.Error();
724 } 728 }
725 } 729 }
726 let _className = dart.JsSymbol('_className'); 730 let _className = dart.JsSymbol('_className');
727 class AbstractClassInstantiationError extends Error { 731 class AbstractClassInstantiationError extends Error {
728 AbstractClassInstantiationError(className) { 732 AbstractClassInstantiationError(className) {
729 this[_className] = className; 733 this[_className] = className;
730 super.Error(); 734 super.Error();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 UnimplementedError(message) { 804 UnimplementedError(message) {
801 if (message === void 0) 805 if (message === void 0)
802 message = null; 806 message = null;
803 this.message = message; 807 this.message = message;
804 super.Error(); 808 super.Error();
805 } 809 }
806 toString() { 810 toString() {
807 return this.message !== null ? `UnimplementedError: ${this.message}` : "Un implementedError"; 811 return this.message !== null ? `UnimplementedError: ${this.message}` : "Un implementedError";
808 } 812 }
809 } 813 }
814 UnimplementedError[dart.implements] = [UnsupportedError];
810 class StateError extends Error { 815 class StateError extends Error {
811 StateError(message) { 816 StateError(message) {
812 this.message = message; 817 this.message = message;
813 super.Error(); 818 super.Error();
814 } 819 }
815 toString() { 820 toString() {
816 return `Bad state: ${this.message}`; 821 return `Bad state: ${this.message}`;
817 } 822 }
818 } 823 }
819 class ConcurrentModificationError extends Error { 824 class ConcurrentModificationError extends Error {
(...skipping 13 matching lines...) Expand all
833 class OutOfMemoryError extends Object { 838 class OutOfMemoryError extends Object {
834 OutOfMemoryError() { 839 OutOfMemoryError() {
835 } 840 }
836 toString() { 841 toString() {
837 return "Out of Memory"; 842 return "Out of Memory";
838 } 843 }
839 get stackTrace() { 844 get stackTrace() {
840 return null; 845 return null;
841 } 846 }
842 } 847 }
848 OutOfMemoryError[dart.implements] = [Error];
843 class StackOverflowError extends Object { 849 class StackOverflowError extends Object {
844 StackOverflowError() { 850 StackOverflowError() {
845 } 851 }
846 toString() { 852 toString() {
847 return "Stack Overflow"; 853 return "Stack Overflow";
848 } 854 }
849 get stackTrace() { 855 get stackTrace() {
850 return null; 856 return null;
851 } 857 }
852 } 858 }
859 StackOverflowError[dart.implements] = [Error];
853 class CyclicInitializationError extends Error { 860 class CyclicInitializationError extends Error {
854 CyclicInitializationError(variableName) { 861 CyclicInitializationError(variableName) {
855 if (variableName === void 0) 862 if (variableName === void 0)
856 variableName = null; 863 variableName = null;
857 this.variableName = variableName; 864 this.variableName = variableName;
858 super.Error(); 865 super.Error();
859 } 866 }
860 toString() { 867 toString() {
861 return this.variableName === null ? "Reading static variable during its in itialization" : `Reading static variable '${this.variableName}' during its initi alization`; 868 return this.variableName === null ? "Reading static variable during its in itialization" : `Reading static variable '${this.variableName}' during its initi alization`;
862 } 869 }
(...skipping 10 matching lines...) Expand all
873 if (message === void 0) 880 if (message === void 0)
874 message = null; 881 message = null;
875 this.message = message; 882 this.message = message;
876 } 883 }
877 toString() { 884 toString() {
878 if (this.message === null) 885 if (this.message === null)
879 return "Exception"; 886 return "Exception";
880 return `Exception: ${this.message}`; 887 return `Exception: ${this.message}`;
881 } 888 }
882 } 889 }
890 _ExceptionImplementation[dart.implements] = [Exception];
883 class FormatException extends Object { 891 class FormatException extends Object {
884 FormatException(message, source, offset) { 892 FormatException(message, source, offset) {
885 if (message === void 0) 893 if (message === void 0)
886 message = ""; 894 message = "";
887 if (source === void 0) 895 if (source === void 0)
888 source = null; 896 source = null;
889 if (offset === void 0) 897 if (offset === void 0)
890 offset = -1; 898 offset = -1;
891 this.message = message; 899 this.message = message;
892 this.source = source; 900 this.source = source;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 start = dart.notNull(offset) - 36; 969 start = dart.notNull(offset) - 36;
962 end = dart.notNull(offset) + 36; 970 end = dart.notNull(offset) + 36;
963 prefix = postfix = "..."; 971 prefix = postfix = "...";
964 } 972 }
965 } 973 }
966 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);
967 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);
968 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse t)}^\n`; 976 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse t)}^\n`;
969 } 977 }
970 } 978 }
979 FormatException[dart.implements] = [Exception];
971 class IntegerDivisionByZeroException extends Object { 980 class IntegerDivisionByZeroException extends Object {
972 IntegerDivisionByZeroException() { 981 IntegerDivisionByZeroException() {
973 } 982 }
974 toString() { 983 toString() {
975 return "IntegerDivisionByZeroException"; 984 return "IntegerDivisionByZeroException";
976 } 985 }
977 } 986 }
987 IntegerDivisionByZeroException[dart.implements] = [Exception];
978 let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME'); 988 let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME');
979 let _getKey = dart.JsSymbol('_getKey'); 989 let _getKey = dart.JsSymbol('_getKey');
980 let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME'); 990 let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME');
981 let _keyCount = dart.JsSymbol('_keyCount'); 991 let _keyCount = dart.JsSymbol('_keyCount');
982 let Expando$ = dart.generic(function(T) { 992 let Expando$ = dart.generic(function(T) {
983 class Expando extends Object { 993 class Expando extends Object {
984 Expando(name) { 994 Expando(name) {
985 if (name === void 0) 995 if (name === void 0)
986 name = null; 996 name = null;
987 this.name = name; 997 this.name = name;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 return new _internal.EmptyIterable(); 1137 return new _internal.EmptyIterable();
1128 let newEnd = dart.notNull(this[_start]) + dart.notNull(count); 1138 let newEnd = dart.notNull(this[_start]) + dart.notNull(count);
1129 if (dart.notNull(newEnd) >= dart.notNull(this[_end])) 1139 if (dart.notNull(newEnd) >= dart.notNull(this[_end]))
1130 return this; 1140 return this;
1131 return new _GeneratorIterable.slice(this[_start], newEnd, this[_generato r]); 1141 return new _GeneratorIterable.slice(this[_start], newEnd, this[_generato r]);
1132 } 1142 }
1133 static [_id](n) { 1143 static [_id](n) {
1134 return n; 1144 return n;
1135 } 1145 }
1136 } 1146 }
1147 _GeneratorIterable[dart.implements] = [_internal.EfficientLength];
1137 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); 1148 dart.defineNamedConstructor(_GeneratorIterable, 'slice');
1138 return _GeneratorIterable; 1149 return _GeneratorIterable;
1139 }); 1150 });
1140 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$}); 1151 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$});
1141 let _index = dart.JsSymbol('_index'); 1152 let _index = dart.JsSymbol('_index');
1142 let _current = dart.JsSymbol('_current'); 1153 let _current = dart.JsSymbol('_current');
1143 let _GeneratorIterator$ = dart.generic(function(E) { 1154 let _GeneratorIterator$ = dart.generic(function(E) {
1144 class _GeneratorIterator extends Object { 1155 class _GeneratorIterator extends Object {
1145 _GeneratorIterator(index$, end$, generator$) { 1156 _GeneratorIterator(index$, end$, generator$) {
1146 this[_index] = index$; 1157 this[_index] = index$;
1147 this[_end] = end$; 1158 this[_end] = end$;
1148 this[_generator] = generator$; 1159 this[_generator] = generator$;
1149 this[_current] = null; 1160 this[_current] = null;
1150 } 1161 }
1151 moveNext() { 1162 moveNext() {
1152 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { 1163 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) {
1153 this[_current] = this[_generator](this[_index]); 1164 this[_current] = this[_generator](this[_index]);
1154 this[_index] = dart.notNull(this[_index]) + 1; 1165 this[_index] = dart.notNull(this[_index]) + 1;
1155 return true; 1166 return true;
1156 } else { 1167 } else {
1157 this[_current] = null; 1168 this[_current] = null;
1158 return false; 1169 return false;
1159 } 1170 }
1160 } 1171 }
1161 get current() { 1172 get current() {
1162 return this[_current]; 1173 return this[_current];
1163 } 1174 }
1164 } 1175 }
1176 _GeneratorIterator[dart.implements] = [Iterator$(E)];
1165 return _GeneratorIterator; 1177 return _GeneratorIterator;
1166 }); 1178 });
1167 let _GeneratorIterator = _GeneratorIterator$(dart.dynamic); 1179 let _GeneratorIterator = _GeneratorIterator$(dart.dynamic);
1168 let BidirectionalIterator$ = dart.generic(function(E) { 1180 let BidirectionalIterator$ = dart.generic(function(E) {
1169 class BidirectionalIterator extends Object { 1181 class BidirectionalIterator extends Object {
1170 } 1182 }
1183 BidirectionalIterator[dart.implements] = [Iterator$(E)];
1171 return BidirectionalIterator; 1184 return BidirectionalIterator;
1172 }); 1185 });
1173 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic); 1186 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic);
1174 let Iterator$ = dart.generic(function(E) { 1187 let Iterator$ = dart.generic(function(E) {
1175 class Iterator extends Object { 1188 class Iterator extends Object {
1176 } 1189 }
1177 return Iterator; 1190 return Iterator;
1178 }); 1191 });
1179 let Iterator = Iterator$(dart.dynamic); 1192 let Iterator = Iterator$(dart.dynamic);
1180 let List$ = dart.generic(function(E) { 1193 let List$ = dart.generic(function(E) {
(...skipping 29 matching lines...) Expand all
1210 }).bind(this)(new List$(E).from([])); 1223 }).bind(this)(new List$(E).from([]));
1211 } else { 1224 } else {
1212 result = new List(length); 1225 result = new List(length);
1213 } 1226 }
1214 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) {
1215 result.set(i, generator(i)); 1228 result.set(i, generator(i));
1216 } 1229 }
1217 return result; 1230 return result;
1218 } 1231 }
1219 } 1232 }
1233 List[dart.implements] = [Iterable$(E), _internal.EfficientLength];
1220 dart.defineNamedConstructor(List, 'filled'); 1234 dart.defineNamedConstructor(List, 'filled');
1221 dart.defineNamedConstructor(List, 'from'); 1235 dart.defineNamedConstructor(List, 'from');
1222 dart.defineNamedConstructor(List, 'generate'); 1236 dart.defineNamedConstructor(List, 'generate');
1223 return List; 1237 return List;
1224 }); 1238 });
1225 let List = List$(dart.dynamic); 1239 let List = List$(dart.dynamic);
1226 let Map$ = dart.generic(function(K, V) { 1240 let Map$ = dart.generic(function(K, V) {
1227 class Map extends Object { 1241 class Map extends Object {
1228 Map() { 1242 Map() {
1229 return new collection.LinkedHashMap(); 1243 return new collection.LinkedHashMap();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 } 1285 }
1272 class Match extends Object { 1286 class Match extends Object {
1273 } 1287 }
1274 class RegExp extends Object { 1288 class RegExp extends Object {
1275 RegExp(source, opts) { 1289 RegExp(source, opts) {
1276 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; 1290 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false;
1277 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; 1291 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true;
1278 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); 1292 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive});
1279 } 1293 }
1280 } 1294 }
1295 RegExp[dart.implements] = [Pattern];
1281 let Set$ = dart.generic(function(E) { 1296 let Set$ = dart.generic(function(E) {
1282 class Set extends collection.IterableBase$(E) { 1297 class Set extends collection.IterableBase$(E) {
1283 Set() { 1298 Set() {
1284 return new collection.LinkedHashSet(); 1299 return new collection.LinkedHashSet();
1285 } 1300 }
1286 identity() { 1301 identity() {
1287 return new collection.LinkedHashSet.identity(); 1302 return new collection.LinkedHashSet.identity();
1288 } 1303 }
1289 from(elements) { 1304 from(elements) {
1290 return new collection.LinkedHashSet.from(elements); 1305 return new collection.LinkedHashSet.from(elements);
1291 } 1306 }
1292 } 1307 }
1308 Set[dart.implements] = [_internal.EfficientLength];
1293 dart.defineNamedConstructor(Set, 'identity'); 1309 dart.defineNamedConstructor(Set, 'identity');
1294 dart.defineNamedConstructor(Set, 'from'); 1310 dart.defineNamedConstructor(Set, 'from');
1295 return Set; 1311 return Set;
1296 }); 1312 });
1297 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); 1313 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$});
1298 let Sink$ = dart.generic(function(T) { 1314 let Sink$ = dart.generic(function(T) {
1299 class Sink extends Object { 1315 class Sink extends Object {
1300 } 1316 }
1301 return Sink; 1317 return Sink;
1302 }); 1318 });
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 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) {
1418 if (!dart.notNull(it.moveNext())) { 1434 if (!dart.notNull(it.moveNext())) {
1419 throw new RangeError.range(end, start, i); 1435 throw new RangeError.range(end, start, i);
1420 } 1436 }
1421 list.add(it.current); 1437 list.add(it.current);
1422 } 1438 }
1423 } 1439 }
1424 return _js_helper.Primitives.stringFromCharCodes(list); 1440 return _js_helper.Primitives.stringFromCharCodes(list);
1425 } 1441 }
1426 } 1442 }
1443 String[dart.implements] = [Comparable$(String), Pattern];
1427 dart.defineNamedConstructor(String, 'fromCharCodes'); 1444 dart.defineNamedConstructor(String, 'fromCharCodes');
1428 dart.defineNamedConstructor(String, 'fromCharCode'); 1445 dart.defineNamedConstructor(String, 'fromCharCode');
1429 dart.defineNamedConstructor(String, 'fromEnvironment'); 1446 dart.defineNamedConstructor(String, 'fromEnvironment');
1430 dart.defineLazyClass(exports, { 1447 dart.defineLazyClass(exports, {
1431 get Runes() { 1448 get Runes() {
1432 class Runes extends collection.IterableBase$(int) { 1449 class Runes extends collection.IterableBase$(int) {
1433 Runes(string) { 1450 Runes(string) {
1434 this.string = string; 1451 this.string = string;
1435 super.IterableBase(); 1452 super.IterableBase();
1436 } 1453 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 this[_position] = dart.notNull(position) - 1; 1571 this[_position] = dart.notNull(position) - 1;
1555 this[_currentCodePoint] = _combineSurrogatePair(prevCodeUnit, codeUnit ); 1572 this[_currentCodePoint] = _combineSurrogatePair(prevCodeUnit, codeUnit );
1556 return true; 1573 return true;
1557 } 1574 }
1558 } 1575 }
1559 this[_position] = position; 1576 this[_position] = position;
1560 this[_currentCodePoint] = codeUnit; 1577 this[_currentCodePoint] = codeUnit;
1561 return true; 1578 return true;
1562 } 1579 }
1563 } 1580 }
1581 RuneIterator[dart.implements] = [BidirectionalIterator$(int)];
1564 dart.defineNamedConstructor(RuneIterator, 'at'); 1582 dart.defineNamedConstructor(RuneIterator, 'at');
1565 let _contents = dart.JsSymbol('_contents'); 1583 let _contents = dart.JsSymbol('_contents');
1566 let _writeString = dart.JsSymbol('_writeString'); 1584 let _writeString = dart.JsSymbol('_writeString');
1567 class StringBuffer extends Object { 1585 class StringBuffer extends Object {
1568 StringBuffer(content) { 1586 StringBuffer(content) {
1569 if (content === void 0) 1587 if (content === void 0)
1570 content = ""; 1588 content = "";
1571 this[_contents] = `${content}`; 1589 this[_contents] = `${content}`;
1572 } 1590 }
1573 get length() { 1591 get length() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 clear() { 1630 clear() {
1613 this[_contents] = ""; 1631 this[_contents] = "";
1614 } 1632 }
1615 toString() { 1633 toString() {
1616 return _js_helper.Primitives.flattenString(this[_contents]); 1634 return _js_helper.Primitives.flattenString(this[_contents]);
1617 } 1635 }
1618 [_writeString](str) { 1636 [_writeString](str) {
1619 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));
1620 } 1638 }
1621 } 1639 }
1640 StringBuffer[dart.implements] = [StringSink];
1622 class StringSink extends Object { 1641 class StringSink extends Object {
1623 } 1642 }
1624 class Symbol extends Object { 1643 class Symbol extends Object {
1625 Symbol(name) { 1644 Symbol(name) {
1626 return new _internal.Symbol(name); 1645 return new _internal.Symbol(name);
1627 } 1646 }
1628 } 1647 }
1629 class Type extends Object { 1648 class Type extends Object {
1630 } 1649 }
1631 let _writeAuthority = dart.JsSymbol('_writeAuthority'); 1650 let _writeAuthority = dart.JsSymbol('_writeAuthority');
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
3070 exports.StackTrace = StackTrace; 3089 exports.StackTrace = StackTrace;
3071 exports.Stopwatch = Stopwatch; 3090 exports.Stopwatch = Stopwatch;
3072 exports.String = String; 3091 exports.String = String;
3073 exports.RuneIterator = RuneIterator; 3092 exports.RuneIterator = RuneIterator;
3074 exports.StringBuffer = StringBuffer; 3093 exports.StringBuffer = StringBuffer;
3075 exports.StringSink = StringSink; 3094 exports.StringSink = StringSink;
3076 exports.Symbol = Symbol; 3095 exports.Symbol = Symbol;
3077 exports.Type = Type; 3096 exports.Type = Type;
3078 exports.Uri = Uri; 3097 exports.Uri = Uri;
3079 })(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