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

Unified Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 649873007: Remove Math and most uses of PrintStringWriter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
Index: pkg/analyzer/lib/src/generated/source.dart
diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
index 7fd0e1d20d092132c8714dcdeb0fffb0eddaa965..5d509be50a3a55ce75461e09712238c301ab226f 100644
--- a/pkg/analyzer/lib/src/generated/source.dart
+++ b/pkg/analyzer/lib/src/generated/source.dart
@@ -8,6 +8,8 @@
library engine.source;
import 'dart:collection';
+import "dart:math" as math;
+
import 'java_core.dart';
import 'sdk.dart' show DartSdk;
import 'engine.dart';
@@ -781,8 +783,8 @@ class SourceRange {
* @return the minimal [SourceRange] that cover this and the given [SourceRange]s.
*/
SourceRange getUnion(SourceRange other) {
- int newOffset = Math.min(offset, other.offset);
- int newEnd = Math.max(offset + length, other.offset + other.length);
+ int newOffset = math.min(offset, other.offset);
+ int newEnd = math.max(offset + length, other.offset + other.length);
return new SourceRange(newOffset, newEnd - newOffset);
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/utilities_collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698