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

Function typeWithParameters

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

Source from the content-addressed store, hash-verified

21export const LET_PATTERN = /^let\s+([\S\s]*)/;
22
23export function typeWithParameters(type: o.Expression, numParams: number): o.ExpressionType {
24 if (numParams === 0) {
25 return o.expressionType(type);
26 }
27 const params: o.Type[] = [];
28 for (let i = 0; i < numParams; i++) {
29 params.push(o.DYNAMIC_TYPE);
30 }
31 return o.expressionType(type, undefined, params);
32}
33
34export interface R3Reference {
35 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