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

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

Issue 1117333002: Fix some static member emits (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: reformat Created 5 years, 7 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/_native_typed_data.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 var convert; 1 var convert;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let ASCII = dart.const(new AsciiCodec()); 4 let ASCII = dart.const(new AsciiCodec());
5 let _ASCII_MASK = 127; 5 let _ASCII_MASK = 127;
6 let _allowInvalid = Symbol('_allowInvalid'); 6 let _allowInvalid = Symbol('_allowInvalid');
7 let Codec$ = dart.generic(function(S, T) { 7 let Codec$ = dart.generic(function(S, T) {
8 class Codec extends core.Object { 8 class Codec extends core.Object {
9 Codec() { 9 Codec() {
10 } 10 }
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 startChunkedConversion(sink) { 481 startChunkedConversion(sink) {
482 return this[_first].startChunkedConversion(this[_second].startChunkedCon version(sink)); 482 return this[_first].startChunkedConversion(this[_second].startChunkedCon version(sink));
483 } 483 }
484 } 484 }
485 return _FusedConverter; 485 return _FusedConverter;
486 }); 486 });
487 let _FusedConverter = _FusedConverter$(); 487 let _FusedConverter = _FusedConverter$();
488 let HTML_ESCAPE = dart.const(new HtmlEscape()); 488 let HTML_ESCAPE = dart.const(new HtmlEscape());
489 let _name = Symbol('_name'); 489 let _name = Symbol('_name');
490 let _ = Symbol('_');
491 class HtmlEscapeMode extends core.Object { 490 class HtmlEscapeMode extends core.Object {
492 _(name, escapeLtGt, escapeQuot, escapeApos, escapeSlash) { 491 _(name, escapeLtGt, escapeQuot, escapeApos, escapeSlash) {
493 this[_name] = name; 492 this[_name] = name;
494 this.escapeLtGt = escapeLtGt; 493 this.escapeLtGt = escapeLtGt;
495 this.escapeQuot = escapeQuot; 494 this.escapeQuot = escapeQuot;
496 this.escapeApos = escapeApos; 495 this.escapeApos = escapeApos;
497 this.escapeSlash = escapeSlash; 496 this.escapeSlash = escapeSlash;
498 } 497 }
499 toString() { 498 toString() {
500 return this[_name]; 499 return this[_name];
501 } 500 }
502 } 501 }
503 dart.defineNamedConstructor(HtmlEscapeMode, '_'); 502 dart.defineNamedConstructor(HtmlEscapeMode, '_');
504 HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode[_]('unknown', true, tru e, true, true)); 503 HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode._('unknown', true, true , true, true));
505 HtmlEscapeMode.ATTRIBUTE = dart.const(new HtmlEscapeMode[_]('attribute', false , true, false, false)); 504 HtmlEscapeMode.ATTRIBUTE = dart.const(new HtmlEscapeMode._('attribute', false, true, false, false));
506 HtmlEscapeMode.ELEMENT = dart.const(new HtmlEscapeMode[_]('element', true, fal se, false, true)); 505 HtmlEscapeMode.ELEMENT = dart.const(new HtmlEscapeMode._('element', true, fals e, false, true));
507 let _convert = Symbol('_convert'); 506 let _convert = Symbol('_convert');
508 class HtmlEscape extends Converter$(core.String, core.String) { 507 class HtmlEscape extends Converter$(core.String, core.String) {
509 HtmlEscape(mode) { 508 HtmlEscape(mode) {
510 if (mode === void 0) 509 if (mode === void 0)
511 mode = HtmlEscapeMode.UNKNOWN; 510 mode = HtmlEscapeMode.UNKNOWN;
512 this.mode = mode; 511 this.mode = mode;
513 super.Converter(); 512 super.Converter();
514 } 513 }
515 convert(text) { 514 convert(text) {
516 let val = this[_convert](text, 0, text.length); 515 let val = this[_convert](text, 0, text.length);
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 exports.LineSplitter = LineSplitter; 2409 exports.LineSplitter = LineSplitter;
2411 exports.StringConversionSink = StringConversionSink; 2410 exports.StringConversionSink = StringConversionSink;
2412 exports.ClosableStringSink = ClosableStringSink; 2411 exports.ClosableStringSink = ClosableStringSink;
2413 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2412 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2414 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2413 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2415 exports.UTF8 = UTF8; 2414 exports.UTF8 = UTF8;
2416 exports.Utf8Codec = Utf8Codec; 2415 exports.Utf8Codec = Utf8Codec;
2417 exports.Utf8Encoder = Utf8Encoder; 2416 exports.Utf8Encoder = Utf8Encoder;
2418 exports.Utf8Decoder = Utf8Decoder; 2417 exports.Utf8Decoder = Utf8Decoder;
2419 })(convert || (convert = {})); 2418 })(convert || (convert = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/_native_typed_data.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698