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

Side by Side Diff: utils/css/world.dart

Issue 11194025: Second round of cleanups for new optional parameter semantics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
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 /** The one true [World]. */ 5 /** The one true [World]. */
6 World world; 6 World world;
7 7
8 typedef void MessageHandler(String prefix, String message, SourceSpan span); 8 typedef void MessageHandler(String prefix, String message, SourceSpan span);
9 typedef void PrintHandler(String message); 9 typedef void PrintHandler(String message);
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void fatal(String message, 128 void fatal(String message,
129 [SourceSpan span, SourceSpan span1, SourceSpan span2]) { 129 [SourceSpan span, SourceSpan span1, SourceSpan span2]) {
130 errors++; 130 errors++;
131 seenFatal = true; 131 seenFatal = true;
132 _message(_RED_COLOR, 'fatal: ', message, 132 _message(_RED_COLOR, 'fatal: ', message,
133 span, span1, span2, options.throwOnFatal || options.throwOnErrors); 133 span, span1, span2, options.throwOnFatal || options.throwOnErrors);
134 } 134 }
135 135
136 /** [message] at [location] is about a bug in the compiler. */ 136 /** [message] at [location] is about a bug in the compiler. */
137 void internalError(String message, 137 void internalError(String message,
138 [SourceSpan span, SourceSpan span1, SourceSpan span2]) { 138 {SourceSpan span, SourceSpan span1, SourceSpan span2}) {
139 _message(_NO_COLOR, 139 _message(_NO_COLOR,
140 'We are sorry, but...', message, span, span1, span2, true); 140 'We are sorry, but...', message, span, span1, span2, true);
141 } 141 }
142 142
143 /** 143 /**
144 * [message] at [location] will tell the user about what the compiler 144 * [message] at [location] will tell the user about what the compiler
145 * is doing. 145 * is doing.
146 */ 146 */
147 void info(String message, 147 void info(String message,
148 [SourceSpan span, SourceSpan span1, SourceSpan span2]) { 148 [SourceSpan span, SourceSpan span1, SourceSpan span2]) {
(...skipping 12 matching lines...) Expand all
161 info('$name in ${sw.elapsedInMs()}msec'); 161 info('$name in ${sw.elapsedInMs()}msec');
162 return result; 162 return result;
163 } 163 }
164 } 164 }
165 165
166 // Color constants used for generating messages. 166 // Color constants used for generating messages.
167 String _GREEN_COLOR = '\u001b[32m'; 167 String _GREEN_COLOR = '\u001b[32m';
168 String _RED_COLOR = '\u001b[31m'; 168 String _RED_COLOR = '\u001b[31m';
169 String _MAGENTA_COLOR = '\u001b[35m'; 169 String _MAGENTA_COLOR = '\u001b[35m';
170 String _NO_COLOR = '\u001b[0m'; 170 String _NO_COLOR = '\u001b[0m';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698