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

Function refsToArray

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

Source from the content-addressed store, hash-verified

88}
89
90export function refsToArray(refs: R3Reference[], shouldForwardDeclare: boolean): o.Expression {
91 const values = o.literalArr(refs.map((ref) => ref.value));
92 return shouldForwardDeclare ? o.arrowFn([], values) : values;
93}
94
95export function tsIgnoreComment(): o.LeadingComment {
96 return o.leadingComment('@ts-ignore', true, true);

Callers 3

compileNgModuleFunction · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…