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

Unified Diff: dart/utils/compiler/source_file.dart

Issue 9834012: Use SourceFile from utils/compiler. (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/frog/leg/frog_leg.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/utils/compiler/source_file.dart
diff --git a/dart/utils/compiler/source_file.dart b/dart/utils/compiler/source_file.dart
index ce03678946baa9d115f9094365f678faba17cc83..c16d58ef2e78ff5c54a722c258ad98b8b6c9d0a4 100644
--- a/dart/utils/compiler/source_file.dart
+++ b/dart/utils/compiler/source_file.dart
@@ -42,7 +42,7 @@ class SourceFile {
for (int i=0; i < starts.length; i++) {
if (starts[i] > position) return i-1;
}
- world.internalError('bad position');
+ throw 'bad position';
}
int getColumn(int line, int position) {
« no previous file with comments | « dart/frog/leg/frog_leg.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698