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

Function refsToArray

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

Source from the content-addressed store, hash-verified

94}
95
96export function refsToArray(refs: R3Reference[], shouldForwardDeclare: boolean): o.Expression {
97 const values = o.literalArr(refs.map((ref) => ref.value));
98 return shouldForwardDeclare ? o.arrowFn([], values) : values;
99}
100
101export function tsIgnoreComment(): o.LeadingComment {
102 return o.leadingComment('@ts-ignore', true, true);

Callers 3

compileNgModuleFunction · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected