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

Side by Side Diff: dart/utils/compiler/source_file.dart

Issue 9717026: Copy files I'll use in a git-based CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « dart/utils/compiler/dart2js.dart ('k') | no next file » | 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) 2011, 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 // TODO(jimhug): This should be an interface to work better with tools. 5 // TODO(jimhug): This should be an interface to work better with tools.
6 /** 6 /**
7 * Represents a file of source code. 7 * Represents a file of source code.
8 */ 8 */
9 class SourceFile implements Comparable { 9 class SourceFile implements Comparable {
10 // TODO(terry): This filename for in memory buffer. May need to rework if 10 // TODO(terry): This filename for in memory buffer. May need to rework if
11 // filename is used for more than informational. 11 // filename is used for more than informational.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 /** Compares two source spans by file and position. Handles nulls. */ 178 /** Compares two source spans by file and position. Handles nulls. */
179 int compareTo(SourceSpan other) { 179 int compareTo(SourceSpan other) {
180 if (file == other.file) { 180 if (file == other.file) {
181 int d = start - other.start; 181 int d = start - other.start;
182 return d == 0 ? (end - other.end) : d; 182 return d == 0 ? (end - other.end) : d;
183 } 183 }
184 return file.compareTo(other.file); 184 return file.compareTo(other.file);
185 } 185 }
186 } 186 }
OLDNEW
« no previous file with comments | « dart/utils/compiler/dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698