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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: lib/src/span_context.dart
diff --git a/lib/src/colors.dart b/lib/src/span_context.dart
similarity index 52%
copy from lib/src/colors.dart
copy to lib/src/span_context.dart
index 274fc92af617e0f7a06ab6c10a1d6ae95f042ef3..a6b40fa4891dbe799a5345a59ab13dcdcd0f6251 100644
--- a/lib/src/colors.dart
+++ b/lib/src/span_context.dart
@@ -2,12 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Color constants used for generating messages.
-library source_span.colors;
+library source_span.span;
-const String RED = '\u001b[31m';
-
-const String YELLOW = '\u001b[33m';
-
-const String NONE = '\u001b[0m';
+/// Information about text before and after a span to provide context.
+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.
+ /// Line containing the source-span.
+ String contextLine;
+}

Powered by Google App Engine
This is Rietveld 408576698