DesugarVisitor class

Desugars complex nodes such as [(banana)] into simpler forms.

Ignores non-desugrable nodes. This visitor mutates and returns the AST where the original node can be accessed by SyntheticTemplateAst.origin.

Inheritance
Implemented types

Constructors

DesugarVisitor({ExceptionHandler? exceptionHandler})
Create a new visitor.

Properties

exceptionHandler ExceptionHandler
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visitAnnotation(AnnotationAst astNode, [void _]) TemplateAst
Visits all annotation ASTs.
inherited
visitAttribute(AttributeAst astNode, [void _]) TemplateAst
Visits all attribute ASTs.
inherited
visitBanana(BananaAst astNode, [void _]) TemplateAst
Visits all banana ASTs.
inherited
visitCloseElement(CloseElementAst astNode, [void _]) TemplateAst
Visits all closeElement ASTS.
inherited
visitComment(CommentAst astNode, [void _]) TemplateAst
Visits all comment ASTs.
inherited
visitContainer(ContainerAst astNode, [void _]) TemplateAst
Visits all container ASTs.
override
visitElement(ElementAst astNode, [void _]) TemplateAst
Visits all element ASTs.
override
visitEmbeddedContent(EmbeddedContentAst astNode, [void _]) TemplateAst
Visits all embedded content ASTs.
override
visitEmbeddedTemplate(EmbeddedTemplateAst astNode, [void _]) TemplateAst
Visits all embedded template ASTs.
override
visitEvent(EventAst astNode, [void _]) TemplateAst
Visits all event ASTs.
inherited
visitInterpolation(InterpolationAst astNode, [void _]) TemplateAst
Visits all interpolation ASTs.
inherited
visitLetBinding(LetBindingAst astNode, [void _]) TemplateAst
Visits all let-binding ASTs.
inherited
visitProperty(PropertyAst astNode, [void _]) TemplateAst
Visits all property ASTs.
inherited
visitReference(ReferenceAst astNode, [void _]) TemplateAst
Visits all reference ASTs.
inherited
visitStar(StarAst astNode, [void _]) TemplateAst
Visits all star ASTs.
inherited
visitText(TextAst astNode, [void _]) TemplateAst
Visits all text ASTs.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited