Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Color constants used for generating messages. | 5 library source_span.span; |
| 6 library source_span.colors; | |
| 7 | 6 |
| 8 const String RED = '\u001b[31m'; | 7 /// Information about text before and after a span to provide context. |
| 8 abstract class SourceSpanContext { | |
|
nweiz
2015/03/24 23:01:17
Why is this necessary? Can't FileSpan just impleme
Siggi Cherem (dart-lang)
2015/03/25 00:33:25
Done.
| |
| 9 | 9 |
| 10 const String YELLOW = '\u001b[33m'; | 10 /// Line containing the source-span. |
| 11 | 11 String contextLine; |
| 12 const String NONE = '\u001b[0m'; | 12 } |
| 13 | |
| OLD | NEW |