ElementAst class abstract
Represents a DOM element that was parsed, that could be upgraded.
Clients should not extend, implement, or mix-in this class.
- Implemented types
- Implementers
Constructors
-
ElementAst(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}) -
Create a synthetic element AST.
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}) -
Create a synthetic element AST from an existing AST node.
factory
-
ElementAst.parsed(SourceFile sourceFile, NgToken openElementStart, NgToken nameToken, NgToken openElementEnd, {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}) -
Create a new element AST from parsed source.
factory
Properties
-
annotations
→ List<
AnnotationAst> -
Annotation assignments.
no setter
-
attributes
→ List<
AttributeAst> -
Attributes.
no setter
-
bananas
→ List<
BananaAst> -
Bananas assignments.
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?
-
CloseElement complement
getter/setter pair
- endToken → NgToken?
-
Last token that was used to form this AST.
finalinherited
-
events
→ List<
EventAst> -
Event listeners.
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
- isVoidElement → bool
-
Determines whether the element tag name is void element.
no setter
- name → String
-
Name (tag) of the element.
no setter
-
properties
→ List<
PropertyAst> -
Property assignments.
no setter
-
references
→ List<
ReferenceAst> -
Reference assignments.
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
-
stars
→ List<
StarAst> -
Star assignments.
no setter
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? other) → bool -
The equality operator.
override