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

Function propertyBase

packages/compiler/src/template/pipeline/src/instruction.ts:128–147  ·  view source on GitHub ↗
(
  instruction: o.ExternalReference,
  name: string,
  expression: o.Expression | ir.Interpolation,
  sanitizer: o.Expression | null,
  sourceSpan: ParseSourceSpan,
)

Source from the content-addressed store, hash-verified

126}
127
128function propertyBase(
129 instruction: o.ExternalReference,
130 name: string,
131 expression: o.Expression | ir.Interpolation,
132 sanitizer: o.Expression | null,
133 sourceSpan: ParseSourceSpan,
134): ir.UpdateOp {
135 const args: o.Expression[] = [o.literal(name)];
136
137 if (expression instanceof ir.Interpolation) {
138 args.push(interpolationToExpression(expression, sourceSpan));
139 } else {
140 args.push(expression);
141 }
142
143 if (sanitizer !== null) {
144 args.push(sanitizer);
145 }
146 return call(instruction, args, sourceSpan);
147}
148
149export function elementEnd(sourceSpan: ParseSourceSpan | null): ir.CreateOp {
150 return call(Identifiers.elementEnd, [], sourceSpan);

Callers 3

ariaPropertyFunction · 0.85
propertyFunction · 0.85
domPropertyFunction · 0.85

Calls 3

callFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected