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

Function templateBase

packages/compiler/src/template/pipeline/src/instruction.ts:76–103  ·  view source on GitHub ↗
(
  instruction: o.ExternalReference,
  slot: number,
  templateFnRef: o.Expression,
  decls: number,
  vars: number,
  tag: string | null,
  constIndex: number | null,
  localRefs: number | null,
  sourceSpan: ParseSourceSpan,
)

Source from the content-addressed store, hash-verified

74}
75
76function templateBase(
77 instruction: o.ExternalReference,
78 slot: number,
79 templateFnRef: o.Expression,
80 decls: number,
81 vars: number,
82 tag: string | null,
83 constIndex: number | null,
84 localRefs: number | null,
85 sourceSpan: ParseSourceSpan,
86): ir.CreateOp {
87 const args = [
88 o.literal(slot),
89 templateFnRef,
90 o.literal(decls),
91 o.literal(vars),
92 o.literal(tag),
93 o.literal(constIndex),
94 ];
95 if (localRefs !== null) {
96 args.push(o.literal(localRefs));
97 args.push(o.importExpr(Identifiers.templateRefExtractor));
98 }
99 while (args[args.length - 1].isEquivalent(o.NULL_EXPR)) {
100 args.pop();
101 }
102 return call(instruction, args, sourceSpan);
103}
104
105function propertyBase(
106 instruction: o.ExternalReference,

Callers 2

templateFunction · 0.85
domTemplateFunction · 0.85

Calls 4

callFunction · 0.85
popMethod · 0.80
pushMethod · 0.45
isEquivalentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…