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

Unified Diff: lib/runtime/dart/convert.js

Issue 1141663003: fixes #185, track const ctor dependencies, plus a static field fix (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/convert.js
diff --git a/lib/runtime/dart/convert.js b/lib/runtime/dart/convert.js
index fb427e537d82611e93994403017168fab6015256..862c1c219ad14fb4f1d576fecf8fd651d2a016bb 100644
--- a/lib/runtime/dart/convert.js
+++ b/lib/runtime/dart/convert.js
@@ -504,6 +504,21 @@ var collection = dart.import(collection);
},
set _nameToEncoding(_) {}
});
+ let _name = Symbol('_name');
+ class HtmlEscapeMode extends core.Object {
+ _(name, escapeLtGt, escapeQuot, escapeApos, escapeSlash) {
+ this[_name] = name;
+ this.escapeLtGt = escapeLtGt;
+ this.escapeQuot = escapeQuot;
+ this.escapeApos = escapeApos;
+ this.escapeSlash = escapeSlash;
+ }
+ toString() {
+ return this[_name];
+ }
+ }
+ dart.defineNamedConstructor(HtmlEscapeMode, '_');
+ HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode._('unknown', true, true, true, true));
let _convert = Symbol('_convert');
class HtmlEscape extends Converter$(core.String, core.String) {
HtmlEscape(mode) {
@@ -581,21 +596,6 @@ var collection = dart.import(collection);
}
}
let HTML_ESCAPE = dart.const(new HtmlEscape());
- let _name = Symbol('_name');
- class HtmlEscapeMode extends core.Object {
- _(name, escapeLtGt, escapeQuot, escapeApos, escapeSlash) {
- this[_name] = name;
- this.escapeLtGt = escapeLtGt;
- this.escapeQuot = escapeQuot;
- this.escapeApos = escapeApos;
- this.escapeSlash = escapeSlash;
- }
- toString() {
- return this[_name];
- }
- }
- dart.defineNamedConstructor(HtmlEscapeMode, '_');
- HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode._('unknown', true, true, true, true));
HtmlEscapeMode.ATTRIBUTE = dart.const(new HtmlEscapeMode._('attribute', false, true, false, false));
HtmlEscapeMode.ELEMENT = dart.const(new HtmlEscapeMode._('element', true, false, false, true));
let _escape = Symbol('_escape');
@@ -2411,9 +2411,9 @@ var collection = dart.import(collection);
exports.ChunkedConversionSink = ChunkedConversionSink;
exports.ByteConversionSink = ByteConversionSink;
exports.ByteConversionSinkBase = ByteConversionSinkBase;
+ exports.HtmlEscapeMode = HtmlEscapeMode;
exports.HtmlEscape = HtmlEscape;
exports.HTML_ESCAPE = HTML_ESCAPE;
- exports.HtmlEscapeMode = HtmlEscapeMode;
exports.JsonUnsupportedObjectError = JsonUnsupportedObjectError;
exports.JsonCyclicError = JsonCyclicError;
exports.JsonCodec = JsonCodec;
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698