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

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

Issue 1316723003: implement null aware ops, fixes #249 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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/collection.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.library('dart/convert', null, /* Imports */[ 1 dart_library.library('dart/convert', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core', 3 'dart/core',
4 'dart/async', 4 'dart/async',
5 'dart/typed_data', 5 'dart/typed_data',
6 'dart/_internal', 6 'dart/_internal',
7 'dart/collection' 7 'dart/collection'
8 ], /* Lazy imports */[ 8 ], /* Lazy imports */[
9 ], function(exports, dart, core, async, typed_data, _internal, collection) { 9 ], function(exports, dart, core, async, typed_data, _internal, collection) {
10 'use strict'; 10 'use strict';
(...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 } else if (dart.notNull(this.containsKey(key))) { 2658 } else if (dart.notNull(this.containsKey(key))) {
2659 let processed = this[_processed]; 2659 let processed = this[_processed];
2660 _JsonMap._setProperty(processed, dart.as(key, core.String), value); 2660 _JsonMap._setProperty(processed, dart.as(key, core.String), value);
2661 let original = this[_original]; 2661 let original = this[_original];
2662 if (!dart.notNull(core.identical(original, processed))) { 2662 if (!dart.notNull(core.identical(original, processed))) {
2663 _JsonMap._setProperty(original, dart.as(key, core.String), null); 2663 _JsonMap._setProperty(original, dart.as(key, core.String), null);
2664 } 2664 }
2665 } else { 2665 } else {
2666 this[_upgrade]().set(key, value); 2666 this[_upgrade]().set(key, value);
2667 } 2667 }
2668 return value;
2668 } 2669 }
2669 addAll(other) { 2670 addAll(other) {
2670 other.forEach(dart.fn(((key, value) => { 2671 other.forEach(dart.fn(((key, value) => {
2671 this.set(key, value); 2672 this.set(key, value);
2672 }).bind(this))); 2673 }).bind(this)));
2673 } 2674 }
2674 containsValue(value) { 2675 containsValue(value) {
2675 if (dart.notNull(this[_isUpgraded])) 2676 if (dart.notNull(this[_isUpgraded]))
2676 return this[_upgradedMap].containsValue(value); 2677 return this[_upgradedMap].containsValue(value);
2677 let keys = this[_computeKeys](); 2678 let keys = this[_computeKeys]();
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 exports.LineSplitter = LineSplitter; 2895 exports.LineSplitter = LineSplitter;
2895 exports.StringConversionSink = StringConversionSink; 2896 exports.StringConversionSink = StringConversionSink;
2896 exports.ClosableStringSink = ClosableStringSink; 2897 exports.ClosableStringSink = ClosableStringSink;
2897 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2898 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2898 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2899 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2899 exports.Utf8Codec = Utf8Codec; 2900 exports.Utf8Codec = Utf8Codec;
2900 exports.UTF8 = UTF8; 2901 exports.UTF8 = UTF8;
2901 exports.Utf8Encoder = Utf8Encoder; 2902 exports.Utf8Encoder = Utf8Encoder;
2902 exports.Utf8Decoder = Utf8Decoder; 2903 exports.Utf8Decoder = Utf8Decoder;
2903 }); 2904 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698