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

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

Issue 1173023004: fixes #217, Object members on extension types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/_internal.js ('k') | lib/runtime/dart/core.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('dart/convert', null, /* Imports */[ 1 dart.library('dart/convert', null, /* Imports */[
2 'dart/core', 2 'dart/core',
3 'dart/async', 3 'dart/async',
4 'dart/typed_data', 4 'dart/typed_data',
5 'dart/_internal', 5 'dart/_internal',
6 'dart/collection' 6 'dart/collection'
7 ], /* Lazy imports */[ 7 ], /* Lazy imports */[
8 ], function(exports, core, async, typed_data, _internal, collection) { 8 ], function(exports, core, async, typed_data, _internal, collection) {
9 'use strict'; 9 'use strict';
10 let Codec$ = dart.generic(function(S, T) { 10 let Codec$ = dart.generic(function(S, T) {
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 static printOn(object, output, toEncodable, indent) { 1358 static printOn(object, output, toEncodable, indent) {
1359 let stringifier = null; 1359 let stringifier = null;
1360 if (indent == null) { 1360 if (indent == null) {
1361 stringifier = new _JsonStringStringifier(output, toEncodable); 1361 stringifier = new _JsonStringStringifier(output, toEncodable);
1362 } else { 1362 } else {
1363 stringifier = new _JsonStringStringifierPretty(output, toEncodable, inde nt); 1363 stringifier = new _JsonStringStringifierPretty(output, toEncodable, inde nt);
1364 } 1364 }
1365 dart.dsend(stringifier, 'writeObject', object); 1365 dart.dsend(stringifier, 'writeObject', object);
1366 } 1366 }
1367 writeNumber(number) { 1367 writeNumber(number) {
1368 this[_sink].write(dart[dartx.toString](number)); 1368 this[_sink].write(dart.toString(number));
1369 } 1369 }
1370 writeString(string) { 1370 writeString(string) {
1371 this[_sink].write(string); 1371 this[_sink].write(string);
1372 } 1372 }
1373 writeStringSlice(string, start, end) { 1373 writeStringSlice(string, start, end) {
1374 this[_sink].write(string[dartx.substring](start, end)); 1374 this[_sink].write(string[dartx.substring](start, end));
1375 } 1375 }
1376 writeCharCode(charCode) { 1376 writeCharCode(charCode) {
1377 this[_sink].writeCharCode(charCode); 1377 this[_sink].writeCharCode(charCode);
1378 } 1378 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 stringifier.flush(); 1424 stringifier.flush();
1425 } 1425 }
1426 flush() { 1426 flush() {
1427 if (dart.notNull(this.index) > 0) { 1427 if (dart.notNull(this.index) > 0) {
1428 dart.dcall(this.addChunk, this.buffer, 0, this.index); 1428 dart.dcall(this.addChunk, this.buffer, 0, this.index);
1429 } 1429 }
1430 this.buffer = null; 1430 this.buffer = null;
1431 this.index = 0; 1431 this.index = 0;
1432 } 1432 }
1433 writeNumber(number) { 1433 writeNumber(number) {
1434 this.writeAsciiString(dart[dartx.toString](number)); 1434 this.writeAsciiString(dart.toString(number));
1435 } 1435 }
1436 writeAsciiString(string) { 1436 writeAsciiString(string) {
1437 for (let i = 0; dart.notNull(i) < dart.notNull(string[dartx.length]); i = dart.notNull(i) + 1) { 1437 for (let i = 0; dart.notNull(i) < dart.notNull(string[dartx.length]); i = dart.notNull(i) + 1) {
1438 let char = string[dartx.codeUnitAt](i); 1438 let char = string[dartx.codeUnitAt](i);
1439 dart.assert(dart.notNull(char) <= 127); 1439 dart.assert(dart.notNull(char) <= 127);
1440 this.writeByte(char); 1440 this.writeByte(char);
1441 } 1441 }
1442 } 1442 }
1443 writeString(string) { 1443 writeString(string) {
1444 this.writeStringSlice(string, 0, string[dartx.length]); 1444 this.writeStringSlice(string, 0, string[dartx.length]);
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 exports.LineSplitter = LineSplitter; 2892 exports.LineSplitter = LineSplitter;
2893 exports.StringConversionSink = StringConversionSink; 2893 exports.StringConversionSink = StringConversionSink;
2894 exports.ClosableStringSink = ClosableStringSink; 2894 exports.ClosableStringSink = ClosableStringSink;
2895 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2895 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2896 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2896 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2897 exports.Utf8Codec = Utf8Codec; 2897 exports.Utf8Codec = Utf8Codec;
2898 exports.UTF8 = UTF8; 2898 exports.UTF8 = UTF8;
2899 exports.Utf8Encoder = Utf8Encoder; 2899 exports.Utf8Encoder = Utf8Encoder;
2900 exports.Utf8Decoder = Utf8Decoder; 2900 exports.Utf8Decoder = Utf8Decoder;
2901 }); 2901 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_internal.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698