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

Function mapToRefs

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

Source from the content-addressed store, hash-verified

2942 names ? o.literalArr(names.map((d) => refToExpression(d))) : null;
2943
2944 const mapToRefs = (names: nga.ReferenceMetadata[] | undefined) =>
2945 names
2946 ? names.map((ref) => ({
2947 value: refToExpression(ref),
2948 type: refToTypeExpression(ref),
2949 }))
2950 : [];
2951
2952 // LOCAL compilation mode emits NgModule imports/exports/declarations/bootstrap VERBATIM,
2953 // as `WrappedNodeExpr` of the raw AST node — no resolution/filtering/flattening — matching

Callers 1

compileNgModuleDefFunction · 0.85

Calls 3

refToExpressionFunction · 0.85
refToTypeExpressionFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected