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

Unified Diff: pkg/analyzer/lib/analyzer.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/analyzer.dart
diff --git a/pkg/analyzer/lib/analyzer.dart b/pkg/analyzer/lib/analyzer.dart
index be327176b54f458d5d4403531aaa57061342537c..557295007d8c49a7f5efab8627807e48e6db33ed 100644
--- a/pkg/analyzer/lib/analyzer.dart
+++ b/pkg/analyzer/lib/analyzer.dart
@@ -8,7 +8,6 @@ import 'dart:io';
import 'package:path/path.dart' as pathos;
-import 'src/generated/java_core.dart' show CharSequence;
import 'src/error.dart';
import 'src/generated/ast.dart';
import 'src/generated/error.dart';
@@ -37,7 +36,7 @@ CompilationUnit parseDartFile(String path) {
throw new ArgumentError("Source $source doesn't exist");
}
- var reader = new CharSequenceReader(new CharSequence(contents));
+ var reader = new CharSequenceReader(contents);
var scanner = new Scanner(source, reader, errorCollector);
var token = scanner.tokenize();
var parser = new Parser(source, errorCollector);
@@ -57,7 +56,7 @@ CompilationUnit parseCompilationUnit(String contents, {String name}) {
if (name == null) name = '<unknown source>';
var source = new StringSource(contents, name);
var errorCollector = new _ErrorCollector();
- var reader = new CharSequenceReader(new CharSequence(contents));
+ var reader = new CharSequenceReader(contents);
var scanner = new Scanner(source, reader, errorCollector);
var token = scanner.tokenize();
var parser = new Parser(source, errorCollector);

Powered by Google App Engine
This is Rietveld 408576698