From 01e6b8c7ed305594eaa4f54f202c534905ccb767 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 13 Apr 2016 08:46:08 -0700 Subject: [PATCH] =?UTF-8?q?fix(build):=20ignore=20dart=20warnings=20`The?= =?UTF-8?q?=20name=20=E2=80=A6=20is=20shown,=20but=20not=20used`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/angular/angular/issues/8044 Closes #8045 --- tools/build/dartanalyzer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/build/dartanalyzer.js b/tools/build/dartanalyzer.js index 10c58ef011..53effed077 100644 --- a/tools/build/dartanalyzer.js +++ b/tools/build/dartanalyzer.js @@ -199,6 +199,12 @@ _AnalyzerOutputLine.prototype = { if (this.isHint && this.sourcePath.match(/generated/i)) { return true; } + + if (this.errorCode.match(/UNUSED_SHOWN_NAME/i)) { + // TODO: Narrow this ignore down to test code only. + // See https://github.com/angular/angular/issues/8044 + return true; + } return false; },