Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bindText(node) {
if (Tracer.enabled) {
Tracer.enter('TemplateBinder', 'bindText', slice.call(arguments));
}
const interpolation = this.exprParser.parse(node.wholeText, 2048 /* Interpolation */);
if (interpolation != null) {
const symbol = new TextSymbol(this.dom, node, interpolation);
this.manifest.childNodes.push(symbol);
processInterpolationText(symbol);
}
while (node.nextSibling != null && node.nextSibling.nodeType === 3 /* Text */) {
node = node.nextSibling;
}
if (Tracer.enabled) {
Tracer.leave();
}
return node;
}
declareTemplateController(attrSyntax, attrInfo) {
private bindText(node: Text): ChildNode {
const interpolation = this.exprParser.parse(node.wholeText, BindingType.Interpolation);
if (interpolation != null) {
const symbol = new TextSymbol(this.dom, node, interpolation);
this.manifest!.childNodes.push(symbol);
processInterpolationText(symbol);
}
while (node.nextSibling != null && node.nextSibling.nodeType === NodeType.Text) {
node = node.nextSibling as Text;
}
return node;
}