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

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

Issue 25354003: Redo StreamTransformers so they work with Stack traces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two more tests. Created 7 years, 2 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 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 } 1584 }
1585 1585
1586 /// A sink that drains into /dev/null. 1586 /// A sink that drains into /dev/null.
1587 class NullSink implements EventSink<String> { 1587 class NullSink implements EventSink<String> {
1588 final String name; 1588 final String name;
1589 1589
1590 NullSink(this.name); 1590 NullSink(this.name);
1591 1591
1592 add(String value) {} 1592 add(String value) {}
1593 1593
1594 void addError(Object error) {} 1594 void addError(Object error, [StackTrace stackTrace]) {}
1595 1595
1596 void close() {} 1596 void close() {}
1597 1597
1598 toString() => name; 1598 toString() => name;
1599 1599
1600 /// Convenience method for getting an [api.CompilerOutputProvider]. 1600 /// Convenience method for getting an [api.CompilerOutputProvider].
1601 static NullSink outputProvider(String name, String extension) { 1601 static NullSink outputProvider(String name, String extension) {
1602 return new NullSink('$name.$extension'); 1602 return new NullSink('$name.$extension');
1603 } 1603 }
1604 } 1604 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698