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

Function refsToArray

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

Source from the content-addressed store, hash-verified

81}
82
83export function refsToArray(refs: R3Reference[], shouldForwardDeclare: boolean): o.Expression {
84 const values = o.literalArr(refs.map((ref) => ref.value));
85 return shouldForwardDeclare ? o.arrowFn([], values) : values;
86}
87
88export function tsIgnoreComment(): o.LeadingComment {
89 return o.leadingComment('@ts-ignore', true, true);

Callers 3

compileNgModuleFunction · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected