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

Function refsToArray

packages/compiler/src/render3/util.ts:170–173  ·  view source on GitHub ↗
(refs: R3Reference[], shouldForwardDeclare: boolean)

Source from the content-addressed store, hash-verified

168}
169
170export function refsToArray(refs: R3Reference[], shouldForwardDeclare: boolean): o.Expression {
171 const values = o.literalArr(refs.map((ref) => ref.value));
172 return shouldForwardDeclare ? o.arrowFn([], values, o.DYNAMIC_TYPE) : values;
173}
174
175export function tsIgnoreComment(): o.LeadingComment {
176 return o.leadingComment('@ts-ignore', true, true);

Callers 3

compileNgModuleFunction · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected