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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 } 1268 }
1269 1269
1270 /// A sink that drains into /dev/null. 1270 /// A sink that drains into /dev/null.
1271 class NullSink implements EventSink<String> { 1271 class NullSink implements EventSink<String> {
1272 final String name; 1272 final String name;
1273 1273
1274 NullSink(this.name); 1274 NullSink(this.name);
1275 1275
1276 add(String value) {} 1276 add(String value) {}
1277 1277
1278 void addError(AsyncError error) {} 1278 void addError(Object error) {}
1279 1279
1280 void close() {} 1280 void close() {}
1281 1281
1282 toString() => name; 1282 toString() => name;
1283 1283
1284 /// Convenience method for getting an [api.CompilerOutputProvider]. 1284 /// Convenience method for getting an [api.CompilerOutputProvider].
1285 static NullSink outputProvider(String name, String extension) { 1285 static NullSink outputProvider(String name, String extension) {
1286 return new NullSink('$name.$extension'); 1286 return new NullSink('$name.$extension');
1287 } 1287 }
1288 } 1288 }
OLDNEW
« no previous file with comments | « runtime/tests/vm/dart/isolate_mirror_local_test.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698