fix(Parser): Parse pipes in arguments

fixes #1680
This commit is contained in:
Victor Berchet
2015-06-04 19:06:09 +02:00
parent 659adf83dc
commit f9745327e6
4 changed files with 67 additions and 72 deletions

View File

@ -68,12 +68,14 @@ export class Unparser implements AstVisitor {
}
visitPipe(ast: Pipe) {
this._expression += '(';
this._visit(ast.exp);
this._expression += ` | ${ast.name}`;
ast.args.forEach(arg => {
this._expression += ':';
this._visit(arg);
})
});
this._expression += ')';
}
visitFunctionCall(ast: FunctionCall) {