fix(build): ignore dart warnings `The name … is shown, but not used`

See https://github.com/angular/angular/issues/8044

Closes #8045
This commit is contained in:
Tobias Bosch 2016-04-13 08:46:08 -07:00
parent 60727c4d2b
commit 01e6b8c7ed
1 changed files with 6 additions and 0 deletions

View File

@ -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;
},