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

Function mapToVarArr

packages/compiler-cli/preprocessor/src/processor.ts:2941–2942  ·  view source on GitHub ↗
(names: nga.ReferenceMetadata[] | undefined)

Source from the content-addressed store, hash-verified

2939 const sourceText = typeof content === 'string' ? content : content?.original;
2940
2941 const mapToVarArr = (names: nga.ReferenceMetadata[] | undefined) =>
2942 names ? o.literalArr(names.map((d) => refToExpression(d))) : null;
2943
2944 const mapToRefs = (names: nga.ReferenceMetadata[] | undefined) =>
2945 names

Callers 1

compileNgModuleDefFunction · 0.85

Calls 2

refToExpressionFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected