Don't output tons of messages on apidoc.
Review URL: https://codereview.chromium.org//12642004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19662 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -7,6 +7,7 @@ library webdriver;
|
||||
import 'dart:json' as json;
|
||||
import 'dart:uri';
|
||||
import 'dart:io';
|
||||
import 'dart:async';
|
||||
|
||||
part 'src/base64decoder.dart';
|
||||
|
||||
|
||||
@@ -320,12 +320,12 @@ class LibraryLoaderTask extends LibraryLoader {
|
||||
compiler.reportMessage(
|
||||
compiler.spanFromSpannable(tag.name, uri),
|
||||
MessageKind.DUPLICATED_LIBRARY_NAME.error({'libraryName': name}),
|
||||
api.Diagnostic.WARNING);
|
||||
api.Diagnostic.VERBOSE_INFO);
|
||||
Uri existingUri = existing.entryCompilationUnit.script.uri;
|
||||
compiler.reportMessage(
|
||||
compiler.spanFromSpannable(existing.libraryTag.name, existingUri),
|
||||
MessageKind.DUPLICATED_LIBRARY_NAME.error({'libraryName': name}),
|
||||
api.Diagnostic.WARNING);
|
||||
api.Diagnostic.VERBOSE_INFO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,6 @@ class FormattingDiagnosticHandler {
|
||||
FormattingDiagnosticHandler(SourceFileProvider this.provider);
|
||||
|
||||
void info(var message, [api.Diagnostic kind = api.Diagnostic.VERBOSE_INFO]) {
|
||||
if (!verbose && identical(kind, api.Diagnostic.VERBOSE_INFO)) return;
|
||||
if (enableColors) {
|
||||
print('${colors.green("info:")} $message');
|
||||
} else {
|
||||
@@ -80,6 +79,7 @@ class FormattingDiagnosticHandler {
|
||||
api.Diagnostic kind) {
|
||||
// TODO(ahe): Remove this when source map is handled differently.
|
||||
if (identical(kind.name, 'source map')) return;
|
||||
if (!verbose && identical(kind, api.Diagnostic.VERBOSE_INFO)) return;
|
||||
|
||||
if (isAborting) return;
|
||||
isAborting = identical(kind, api.Diagnostic.CRASH);
|
||||
|
||||
Reference in New Issue
Block a user