MCPcopy Index your code
hub / github.com/angular/angular / translate

Method translate

packages/compiler/src/typecheck/expression.ts:64–76  ·  view source on GitHub ↗
(ast: AST)

Source from the content-addressed store, hash-verified

62 ) {}
63
64 translate(ast: AST): TcbExpr {
65 if (ast instanceof ASTWithSource) {
66 ast = ast.ast;
67 }
68
69 // First attempt to let any custom resolution logic provide a translation for the given node.
70 const resolved = this.maybeResolve(ast);
71 if (resolved !== null) {
72 return resolved;
73 }
74
75 return ast.visit(this);
76 }
77
78 visitUnary(ast: Unary): TcbExpr {
79 const expr = this.translate(ast.expr);

Callers 15

astToTcbExprFunction · 0.95
visitUnaryMethod · 0.95
visitBinaryMethod · 0.95
visitChainMethod · 0.95
visitConditionalMethod · 0.95
visitInterpolationMethod · 0.95
visitKeyedReadMethod · 0.95
visitLiteralArrayMethod · 0.95
visitLiteralMapMethod · 0.95
visitNonNullAssertMethod · 0.95
visitPrefixNotMethod · 0.95
visitTypeofExpressionMethod · 0.95

Calls 1

visitMethod · 0.65

Tested by

no test coverage detected