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

Unified Diff: pkg/docgen/lib/src/generator.dart

Issue 1235563003: Add interfaces for a new compiler API. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/docgen/lib/src/generator.dart
diff --git a/pkg/docgen/lib/src/generator.dart b/pkg/docgen/lib/src/generator.dart
index 7df02600fd71def4975451c2698f20f7711a0342..18ed895ec673f1276e862ca580e03f3dffb59538 100644
--- a/pkg/docgen/lib/src/generator.dart
+++ b/pkg/docgen/lib/src/generator.dart
@@ -268,10 +268,10 @@ void _ensureOutputDirectory(String outputDirectory) {
Future<MirrorSystem> analyzeLibraries(List<Uri> libraries, String
libraryRoot, {String packageRoot}) {
SourceFileProvider provider = new CompilerSourceFileProvider();
- api.DiagnosticHandler diagnosticHandler = (new FormattingDiagnosticHandler(
+ api.DiagnosticHandler diagnosticHandler = new FormattingDiagnosticHandler(
provider)
..showHints = false
- ..showWarnings = false).diagnosticHandler;
+ ..showWarnings = false;
Uri libraryUri = new Uri.file(appendSlash(libraryRoot));
Uri packageUri = null;
if (packageRoot == null) {

Powered by Google App Engine
This is Rietveld 408576698