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

Method visitUnary

packages/compiler/src/typecheck/expression.ts:78–82  ·  view source on GitHub ↗
(ast: Unary)

Source from the content-addressed store, hash-verified

76 }
77
78 visitUnary(ast: Unary): TcbExpr {
79 const expr = this.translate(ast.expr);
80 const node = new TcbExpr(`${ast.operator}${expr.print()}`);
81 return node.wrapForTypeChecker().addParseSpanInfo(ast.sourceSpan);
82 }
83
84 visitBinary(ast: Binary): TcbExpr {
85 const lhs = this.translate(ast.left);

Callers

nothing calls this directly

Calls 4

translateMethod · 0.95
wrapForTypeCheckerMethod · 0.95
addParseSpanInfoMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected