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

Unified Diff: lib/compiler/implementation/source_file.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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 | « lib/compiler/implementation/lib/io.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/source_file.dart
diff --git a/lib/compiler/implementation/source_file.dart b/lib/compiler/implementation/source_file.dart
index d283ab37879ac9c8e56b2b8a425e8a52f367fe32..2255620b3ec2e036cff9a707b54456a67d54bfc8 100644
--- a/lib/compiler/implementation/source_file.dart
+++ b/lib/compiler/implementation/source_file.dart
@@ -4,6 +4,8 @@
#library('source_file');
+#import('dart:math');
+
#import('colors.dart', prefix: 'colors');
/**
@@ -71,7 +73,7 @@ class SourceFile {
textLine = '${text.substring(_lineStarts[line])}\n';
}
- int toColumn = Math.min(column + (end-start), textLine.length);
+ int toColumn = min(column + (end-start), textLine.length);
buf.add(textLine.substring(0, column));
buf.add(color(textLine.substring(column, toColumn)));
buf.add(textLine.substring(toColumn));
« no previous file with comments | « lib/compiler/implementation/lib/io.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698