| OLD | NEW |
| 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 abstract class DiagnosticListener { | 7 abstract class DiagnosticListener { |
| 8 // TODO(karlklose): rename log to something like reportInfo. | 8 // TODO(karlklose): rename log to something like reportInfo. |
| 9 void log(message); | 9 void log(message); |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 void reportInfo(Spannable node, MessageKind errorCode, | 28 void reportInfo(Spannable node, MessageKind errorCode, |
| 29 [Map arguments = const {}]); | 29 [Map arguments = const {}]); |
| 30 | 30 |
| 31 // TODO(ahe): We should not expose this here. Perhaps a | 31 // TODO(ahe): We should not expose this here. Perhaps a |
| 32 // [SourceSpan] should implement [Spannable], and we should have a | 32 // [SourceSpan] should implement [Spannable], and we should have a |
| 33 // way to construct a [SourceSpan] from a [Spannable] and an | 33 // way to construct a [SourceSpan] from a [Spannable] and an |
| 34 // [Element]. | 34 // [Element]. |
| 35 withCurrentElement(Element element, f()); | 35 withCurrentElement(Element element, f()); |
| 36 } | 36 } |
| OLD | NEW |