convertAllToBinding function
List<Binding>
convertAllToBinding(
- List<
TemplateAst> nodes, { - CompileDirectiveMetadata? compileDirectiveMetadata,
- CompileDirectiveMetadata? directive,
- CompileElement? compileElement,
Converts a list of ast.TemplateAst nodes into ir.Binding instances.
AnalyzedClass is eventually expected for all code paths, but we currently do not have it piped through properly.
CompileDirectiveMetadata should be specified with converting directive inputs that need the underlying directive for context.
Implementation
List<ir.Binding> convertAllToBinding(
List<ast.TemplateAst> nodes, {
CompileDirectiveMetadata? compileDirectiveMetadata,
CompileDirectiveMetadata? directive,
CompileElement? compileElement,
}) =>
ast.templateVisitAll(
_ToBindingVisitor(),
nodes,
_IrBindingContext(compileDirectiveMetadata, directive, compileElement),
);