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

Unified Diff: sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 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: sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart b/sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart
index b5914754c140f5b2e9c8fd726bf4f9e9007e5f77..7ee8828747bc7e0b709dcc04842fa84e399db509 100644
--- a/sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart
+++ b/sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart
@@ -13,7 +13,8 @@ import '../../../compiler/implementation/mirrors/dart2js_mirror.dart' as dart2js
import '../../../compiler/implementation/mirrors/mirrors.dart'
show MirrorSystem;
import '../../../compiler/implementation/source_file_provider.dart'
- show FormattingDiagnosticHandler, SourceFileProvider;
+ show FormattingDiagnosticHandler, SourceFileProvider,
+ CompilerSourceFileProvider;
import '../../../compiler/implementation/filenames.dart'
show appendSlash, currentDirectory;
@@ -29,7 +30,7 @@ Future<String> compile(String script,
{String packageRoot,
List<String> options: const <String>[],
api.DiagnosticHandler diagnosticHandler}) {
- SourceFileProvider provider = new SourceFileProvider();
+ SourceFileProvider provider = new CompilerSourceFileProvider();
if (diagnosticHandler == null) {
diagnosticHandler =
new FormattingDiagnosticHandler(provider).diagnosticHandler;
@@ -53,7 +54,7 @@ Future<MirrorSystem> analyze(List<String> libraries,
{String packageRoot,
List<String> options: const <String>[],
api.DiagnosticHandler diagnosticHandler}) {
- SourceFileProvider provider = new SourceFileProvider();
+ SourceFileProvider provider = new CompilerSourceFileProvider();
if (diagnosticHandler == null) {
diagnosticHandler =
new FormattingDiagnosticHandler(provider).diagnosticHandler;

Powered by Google App Engine
This is Rietveld 408576698