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

Function propertyBase

packages/compiler/src/template/pipeline/src/instruction.ts:105–124  ·  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

103}
104
105function propertyBase(
106 instruction: o.ExternalReference,
107 name: string,
108 expression: o.Expression | ir.Interpolation,
109 sanitizer: o.Expression | null,
110 sourceSpan: ParseSourceSpan,
111): ir.UpdateOp {
112 const args: o.Expression[] = [o.literal(name)];
113
114 if (expression instanceof ir.Interpolation) {
115 args.push(interpolationToExpression(expression, sourceSpan));
116 } else {
117 args.push(expression);
118 }
119
120 if (sanitizer !== null) {
121 args.push(sanitizer);
122 }
123 return call(instruction, args, sourceSpan);
124}
125
126export function elementEnd(sourceSpan: ParseSourceSpan | null): ir.CreateOp {
127 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…