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

Side by Side Diff: runtime/bin/common.dart

Issue 10883071: - Change "static final" to "static const" in the runtime/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « runtime/bin/base64.dart ('k') | runtime/bin/directory_impl.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 /** 5 /**
6 * An [OSError] object holds information about an error from the 6 * An [OSError] object holds information about an error from the
7 * operating system. 7 * operating system.
8 */ 8 */
9 class OSError { 9 class OSError {
10 static final int noErrorCode = -1; 10 static const int noErrorCode = -1;
11 11
12 const OSError([String this.message = "", int this.errorCode = noErrorCode]); 12 const OSError([String this.message = "", int this.errorCode = noErrorCode]);
13 13
14 String toString() { 14 String toString() {
15 StringBuffer sb = new StringBuffer(); 15 StringBuffer sb = new StringBuffer();
16 sb.add("OS Error"); 16 sb.add("OS Error");
17 if (!message.isEmpty()) { 17 if (!message.isEmpty()) {
18 sb.add(": "); 18 sb.add(": ");
19 sb.add(message); 19 sb.add(message);
20 if (errorCode != noErrorCode) { 20 if (errorCode != noErrorCode) {
(...skipping 12 matching lines...) Expand all
33 * associated with the error. 33 * associated with the error.
34 */ 34 */
35 final String message; 35 final String message;
36 36
37 /** 37 /**
38 * Error code supplied by the operating system. Will have the value 38 * Error code supplied by the operating system. Will have the value
39 * [noErrorCode] if there is no error code associated with the error. 39 * [noErrorCode] if there is no error code associated with the error.
40 */ 40 */
41 final int errorCode; 41 final int errorCode;
42 } 42 }
OLDNEW
« no previous file with comments | « runtime/bin/base64.dart ('k') | runtime/bin/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698