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

Side by Side Diff: test/codegen/expect/dart/convert.js

Issue 997143003: Fix for conditional expressions (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add test case Created 5 years, 9 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 | « test/codegen/expect/dart/_native_typed_data.js ('k') | test/codegen/expect/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 var convert; 1 var convert;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let _processed = Symbol('_processed'); 4 let _processed = Symbol('_processed');
5 let _original = Symbol('_original'); 5 let _original = Symbol('_original');
6 // Function _convertJsonToDart: (dynamic, (dynamic, dynamic) → dynamic) → dyna mic 6 // Function _convertJsonToDart: (dynamic, (dynamic, dynamic) → dynamic) → dyna mic
7 function _convertJsonToDart(json, reviver) { 7 function _convertJsonToDart(json, reviver) {
8 dart.assert(reviver !== null); 8 dart.assert(reviver !== null);
9 // Function walk: (dynamic) → dynamic 9 // Function walk: (dynamic) → dynamic
10 function walk(e) { 10 function walk(e) {
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 break; 801 break;
802 } 802 }
803 if (replace !== null) { 803 if (replace !== null) {
804 if (result === null) 804 if (result === null)
805 result = new core.StringBuffer(text.substring(start, i)); 805 result = new core.StringBuffer(text.substring(start, i));
806 result.write(replace); 806 result.write(replace);
807 } else if (result !== null) { 807 } else if (result !== null) {
808 result.write(ch); 808 result.write(ch);
809 } 809 }
810 } 810 }
811 return dart.as(result !== null ? result.toString() : null, core.String); 811 return result !== null ? result.toString() : null;
812 } 812 }
813 startChunkedConversion(sink) { 813 startChunkedConversion(sink) {
814 if (!dart.is(sink, StringConversionSink)) { 814 if (!dart.is(sink, StringConversionSink)) {
815 sink = new StringConversionSink.from(sink); 815 sink = new StringConversionSink.from(sink);
816 } 816 }
817 return new _HtmlEscapeSink(this, dart.as(sink, StringConversionSink)); 817 return new _HtmlEscapeSink(this, dart.as(sink, StringConversionSink));
818 } 818 }
819 } 819 }
820 let _escape = Symbol('_escape'); 820 let _escape = Symbol('_escape');
821 class _HtmlEscapeSink extends StringConversionSinkBase { 821 class _HtmlEscapeSink extends StringConversionSinkBase {
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 exports.ClosableStringSink = ClosableStringSink; 2321 exports.ClosableStringSink = ClosableStringSink;
2322 exports.StringConversionSinkBase = StringConversionSinkBase; 2322 exports.StringConversionSinkBase = StringConversionSinkBase;
2323 exports.StringConversionSinkMixin = StringConversionSinkMixin; 2323 exports.StringConversionSinkMixin = StringConversionSinkMixin;
2324 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2324 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2325 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2325 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2326 exports.UTF8 = UTF8; 2326 exports.UTF8 = UTF8;
2327 exports.Utf8Codec = Utf8Codec; 2327 exports.Utf8Codec = Utf8Codec;
2328 exports.Utf8Encoder = Utf8Encoder; 2328 exports.Utf8Encoder = Utf8Encoder;
2329 exports.Utf8Decoder = Utf8Decoder; 2329 exports.Utf8Decoder = Utf8Decoder;
2330 })(convert || (convert = {})); 2330 })(convert || (convert = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/_native_typed_data.js ('k') | test/codegen/expect/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698