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

Unified Diff: pkg/analyzer/lib/src/error.dart

Issue 156763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/error.dart
diff --git a/pkg/analyzer/lib/src/error.dart b/pkg/analyzer/lib/src/error.dart
index 5deee450be5719691767b303bcd5b3efb00069ce..4c9b7af2045a4c860c8893927e194589f474ef85 100644
--- a/pkg/analyzer/lib/src/error.dart
+++ b/pkg/analyzer/lib/src/error.dart
@@ -7,7 +7,6 @@ import 'dart:collection';
import 'dart:math' as math;
import 'generated/error.dart';
-import 'generated/java_core.dart';
import 'generated/source.dart';
/// The maximum line length when printing extracted source code when converting
@@ -97,8 +96,6 @@ class _ContentReceiver implements Source_ContentReceiver {
String get result => _buffer.toString();
- void accept(CharBuffer contents, _) =>
- _buffer.write(contents.subSequence(0, contents.length()));
-
- void accept2(String contents, _) => _buffer.write(contents);
+ void accept(String contents, _) =>
+ _buffer.write(contents.substring(0, contents.length));
}

Powered by Google App Engine
This is Rietveld 408576698