enable piped argument on function calls (#233)

This commit is contained in:
Jabi
2021-04-14 10:00:44 +02:00
committed by GitHub
parent acdffe0121
commit 17dfbbed84
2 changed files with 12 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ import {
Binary,
LiteralMap,
LiteralArray,
Interpolation
Interpolation,
MethodCall
} from '@angular/compiler';
import { ParserInterface } from './parser.interface';
@@ -131,6 +132,10 @@ export class PipeParser implements ParserInterface {
return this.getTranslatablesFromAsts(ast.expressions);
}
if (ast instanceof MethodCall) {
return this.getTranslatablesFromAsts(ast.args);
}
return [];
}