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

Side by Side Diff: lib/src/span_context.dart

Issue 1028813002: Introduce span with line context (Closed) Base URL: git@github.com:dart-lang/source_span.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698