MCPcopy Create free account
hub / github.com/angular/angular / visitChain

Method visitChain

packages/compiler/src/typecheck/expression.ts:99–105  ·  view source on GitHub ↗
(ast: Chain)

Source from the content-addressed store, hash-verified

97 }
98
99 visitChain(ast: Chain): TcbExpr {
100 const elements = ast.expressions.map((expr) => this.translate(expr).print());
101 const node = new TcbExpr(elements.join(', '));
102 node.wrapForTypeChecker();
103 node.addParseSpanInfo(ast.sourceSpan);
104 return node;
105 }
106
107 visitConditional(ast: Conditional): TcbExpr {
108 const condExpr = this.translate(ast.condition);

Callers

nothing calls this directly

Calls 6

translateMethod · 0.95
wrapForTypeCheckerMethod · 0.95
addParseSpanInfoMethod · 0.95
mapMethod · 0.80
joinMethod · 0.65
printMethod · 0.45

Tested by

no test coverage detected