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

Side by Side Diff: pkg/compiler/lib/src/colors.dart

Issue 690103004: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/compiler/lib/src/code_buffer.dart ('k') | pkg/compiler/lib/src/common.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library colors; 5 library colors;
6 6
7 // See http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes 7 // See http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes
8 const String RESET = '\u001b[0m'; 8 const String RESET = '\u001b[0m';
9 9
10 // See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors 10 // See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
11 const String BLACK_COLOR = '\u001b[30m'; 11 const String BLACK_COLOR = '\u001b[30m';
12 const String RED_COLOR = '\u001b[31m'; 12 const String RED_COLOR = '\u001b[31m';
13 const String GREEN_COLOR = '\u001b[32m'; 13 const String GREEN_COLOR = '\u001b[32m';
14 const String YELLOW_COLOR = '\u001b[33m'; 14 const String YELLOW_COLOR = '\u001b[33m';
15 const String BLUE_COLOR = '\u001b[34m'; 15 const String BLUE_COLOR = '\u001b[34m';
16 const String MAGENTA_COLOR = '\u001b[35m'; 16 const String MAGENTA_COLOR = '\u001b[35m';
17 const String CYAN_COLOR = '\u001b[36m'; 17 const String CYAN_COLOR = '\u001b[36m';
18 const String WHITE_COLOR = '\u001b[37m'; 18 const String WHITE_COLOR = '\u001b[37m';
19 19
20 String wrap(String string, String color) => "${color}$string${RESET}"; 20 String wrap(String string, String color) => "${color}$string${RESET}";
21 21
22 String black(String string) => wrap(string, BLACK_COLOR); 22 String black(String string) => wrap(string, BLACK_COLOR);
23 String red(String string) => wrap(string, RED_COLOR); 23 String red(String string) => wrap(string, RED_COLOR);
24 String green(String string) => wrap(string, GREEN_COLOR); 24 String green(String string) => wrap(string, GREEN_COLOR);
25 String yellow(String string) => wrap(string, YELLOW_COLOR); 25 String yellow(String string) => wrap(string, YELLOW_COLOR);
26 String blue(String string) => wrap(string, BLUE_COLOR); 26 String blue(String string) => wrap(string, BLUE_COLOR);
27 String magenta(String string) => wrap(string, MAGENTA_COLOR); 27 String magenta(String string) => wrap(string, MAGENTA_COLOR);
28 String cyan(String string) => wrap(string, CYAN_COLOR); 28 String cyan(String string) => wrap(string, CYAN_COLOR);
29 String white(String string) => wrap(string, WHITE_COLOR); 29 String white(String string) => wrap(string, WHITE_COLOR);
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/code_buffer.dart ('k') | pkg/compiler/lib/src/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698