ElementAst.from constructor

ElementAst.from(
  1. TemplateAst origin,
  2. String name,
  3. CloseElementAst? closeComplement, {
  4. List<AttributeAst> attributes,
  5. List<StandaloneTemplateAst> childNodes,
  6. List<EventAst> events,
  7. List<PropertyAst> properties,
  8. List<ReferenceAst> references,
  9. List<BananaAst> bananas,
  10. List<StarAst> stars,
  11. List<AnnotationAst> annotations,
})

Create a synthetic element AST from an existing AST node.

Implementation

factory ElementAst.from(
  TemplateAst origin,
  String name,
  CloseElementAst? closeComplement, {
  List<AttributeAst> attributes,
  List<StandaloneTemplateAst> childNodes,
  List<EventAst> events,
  List<PropertyAst> properties,
  List<ReferenceAst> references,
  List<BananaAst> bananas,
  List<StarAst> stars,
  List<AnnotationAst> annotations,
}) = _SyntheticElementAst.from;