test(ivy): add html to ivy ast transformer tests (#23546)
PR Close #23546
This commit is contained in:

committed by
Igor Minar

parent
c5ca5c0d9f
commit
46674d5fac
@ -111,9 +111,12 @@ export class HtmlToTemplateTransform implements html.Visitor {
|
||||
|
||||
inlineTemplateSourceSpan = attribute.valueSpan || attribute.sourceSpan;
|
||||
|
||||
const parsedVariables: ParsedVariable[] = [];
|
||||
this.bindingParser.parseInlineTemplateBinding(
|
||||
templateKey, templateValue, attribute.sourceSpan, templateMatchableAttributes,
|
||||
templateParsedProperties, templateVariables);
|
||||
templateParsedProperties, parsedVariables);
|
||||
templateVariables.push(
|
||||
...parsedVariables.map(v => new t.Variable(v.name, v.value, v.sourceSpan)));
|
||||
} else {
|
||||
// Check for variables, events, property bindings, interpolation
|
||||
hasBinding = this.parseAttribute(
|
||||
@ -272,7 +275,6 @@ export class HtmlToTemplateTransform implements html.Visitor {
|
||||
return hasBinding;
|
||||
}
|
||||
|
||||
|
||||
private parseVariable(
|
||||
identifier: string, value: string, sourceSpan: ParseSourceSpan, variables: t.Variable[]) {
|
||||
if (identifier.indexOf('-') > -1) {
|
||||
|
Reference in New Issue
Block a user