fix(compiler): narrow the span reported for invalid pipes

fixes #13326
closes #13411
This commit is contained in:
Chuck Jazdzewski
2016-12-12 15:59:12 -08:00
committed by Victor Berchet
parent 0a7364feea
commit 307d305b2d
4 changed files with 42 additions and 6 deletions

View File

@ -344,7 +344,7 @@ export class _ParseAST {
while (this.optionalCharacter(chars.$COLON)) {
args.push(this.parseExpression());
}
result = new BindingPipe(this.span(result.span.start - this.offset), result, name, args);
result = new BindingPipe(this.span(result.span.start), result, name, args);
} while (this.optionalOperator('|'));
}