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

Function typeWithParameters

packages/compiler/src/render3/util.ts:17–26  ·  view source on GitHub ↗
(type: o.Expression, numParams: number)

Source from the content-addressed store, hash-verified

15const UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
16
17export function typeWithParameters(type: o.Expression, numParams: number): o.ExpressionType {
18 if (numParams === 0) {
19 return o.expressionType(type);
20 }
21 const params: o.Type[] = [];
22 for (let i = 0; i < numParams; i++) {
23 params.push(o.DYNAMIC_TYPE);
24 }
25 return o.expressionType(type, undefined, params);
26}
27
28export interface R3Reference {
29 value: o.Expression;

Callers 4

createInjectableTypeFunction · 0.90
createFactoryTypeFunction · 0.90
createPipeTypeFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…