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

Unified Diff: test/dart_codegen/expect/core/string_buffer.dart

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 | « test/dart_codegen/expect/core/string.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/string_buffer.dart
diff --git a/test/dart_codegen/expect/core/string_buffer.dart b/test/dart_codegen/expect/core/string_buffer.dart
index 15a7b00bce766ca2cee7603aaaef7a4a01c6bb92..b2a24c1066cb229943c54e5bf165a373c0b4c1f9 100644
--- a/test/dart_codegen/expect/core/string_buffer.dart
+++ b/test/dart_codegen/expect/core/string_buffer.dart
@@ -1,18 +1,12 @@
part of dart.core;
class StringBuffer implements StringSink {
- StringBuffer([Object content = ""]) : _contents = '$content';
- int get length => DDC$RT.cast(_contents.length, dynamic, int, "CastGeneral",
- """line 23, column 21 of dart:core/string_buffer.dart: """,
- _contents.length is int, true);
+ external StringBuffer([Object content = ""]);
+ external int get length;
bool get isEmpty => length == 0;
bool get isNotEmpty => !isEmpty;
- void write(Object obj) {
- _writeString('$obj');
- }
- void writeCharCode(int charCode) {
- _writeString(new String.fromCharCode(charCode));
- }
+ external void write(Object obj);
+ external void writeCharCode(int charCode);
void writeAll(Iterable objects, [String separator = ""]) {
Iterator iterator = objects.iterator;
if (!iterator.moveNext()) return;
@@ -32,10 +26,6 @@ class StringBuffer implements StringSink {
write(obj);
write("\n");
}
- void clear() {
- _contents = "";
- }
- String toString() => ((__x40) => DDC$RT.cast(__x40, dynamic, String,
- "CastGeneral", """line 73, column 24 of dart:core/string_buffer.dart: """,
- __x40 is String, true))(Primitives.flattenString(_contents));
+ external void clear();
+ external String toString();
}
« no previous file with comments | « test/dart_codegen/expect/core/string.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698