EmbeddedTemplateAst class abstract
Represents an embedded template (i.e. is not directly rendered in DOM).
It shares many properties with an ElementAst, but is not one. It may be
considered invalid to a <template>
without any properties or
references.
Clients should not extend, implement, or mix-in this class.
- Implemented types
Constructors
-
EmbeddedTemplateAst({List<
AnnotationAst> annotations, List<AttributeAst> attributes, List<StandaloneTemplateAst> childNodes, List<EventAst> events, List<PropertyAst> properties, List<ReferenceAst> references, List<LetBindingAst> letBindings}) -
factory
-
EmbeddedTemplateAst.from(TemplateAst origin, {List<
AnnotationAst> annotations, List<AttributeAst> attributes, List<StandaloneTemplateAst> childNodes, List<EventAst> events, List<PropertyAst> properties, List<ReferenceAst> references, List<LetBindingAst> letBindings}) -
factory
-
EmbeddedTemplateAst.parsed(SourceFile sourceFile, NgToken beginToken, NgToken endToken, {CloseElementAst? closeComplement, List<
AnnotationAst> annotations, List<AttributeAst> attributes, List<StandaloneTemplateAst> childNodes, List<EventAst> events, List<PropertyAst> properties, List<ReferenceAst> references, List<LetBindingAst> letBindings}) -
factory
Properties
-
annotations
→ List<
AnnotationAst> -
Annotations.
no setter
-
attributes
→ List<
AttributeAst> -
Attributes.
no setter
- beginToken → NgToken?
-
First token that was used to form this AST.
finalinherited
-
childNodes
→ List<
StandaloneTemplateAst> -
Child nodes, if any.
no setterinherited
- closeComplement ↔ CloseElementAst?
-
that is paired to this
getter/setter pair
- endToken → NgToken?
-
Last token that was used to form this AST.
finalinherited
-
events
→ List<
EventAst> -
Events.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isParent → bool
-
Whether this node is capable of containing children and does.
finalinherited
- isStandalone → bool
-
Whether this node needs to be 'attached' to another node to be valid.
no setterinherited
- isSynthetic → bool
-
Whether this node did not truly originate from the parsed source.
finalinherited
-
letBindings
→ List<
LetBindingAst> -
let-
binding defined within a template.no setter -
properties
→ List<
PropertyAst> -
Property assignments.
no setter
-
references
→ List<
ReferenceAst> -
References to the template.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceSpan → SourceSpan
-
Segment of source text from which the AST was parsed from.
no setterinherited
- sourceUrl → String?
-
no setterinherited
Methods
-
accept<
R, C> (TemplateAstVisitor< R, C?> visitor, [C? context]) → R? -
Have the
visitor
start visiting this node.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override