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)); |