ParsedElementAst class
Represents a real, non-synthetic DOM element that was parsed, that could be upgraded.
Clients should not extend, implement, or mix-in this class.
- Inheritance
-
- Object
- TemplateAst
- ParsedElementAst
- Mixed in types
Constructors
-
ParsedElementAst(SourceFile sourceFile, NgToken openElementStart, NgToken identifierToken, NgToken openElementEnd, {CloseElementAst? closeComplement, List<
AttributeAst> attributes = const [], List<StandaloneTemplateAst> childNodes = const [], List<EventAst> events = const [], List<PropertyAst> properties = const [], List<ReferenceAst> references = const [], List<BananaAst> bananas = const [], List<StarAst> stars = const [], List<AnnotationAst> annotations = const []})
Properties
-
annotations
→ List<
AnnotationAst> -
Annotation assignments.
final
-
attributes
→ List<
AttributeAst> -
Attributes
final
-
bananas
→ List<
BananaAst> -
Banana assignments.
final
- beginToken → NgToken?
-
First token that was used to form this AST.
finalinherited
-
childNodes
→ List<
StandaloneTemplateAst> -
Children nodes.
final
- closeComplement ↔ CloseElementAst?
-
CloseElementAst that complements this elementAst.
getter/setter pairoverride
- endToken → NgToken?
-
Last token that was used to form this AST.
finalinherited
-
events
→ List<
EventAst> -
Event listeners.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifierToken → NgToken
-
NgToken that represents the identifier tag in
<tag ...>
.final - 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 setteroverride
- name → String
-
Name (tag) of the element.
no setteroverride
-
properties
→ List<
PropertyAst> -
Property assignments.
final
-
references
→ List<
ReferenceAst> -
Reference assignments.
final
- 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.
final
Methods
-
accept<
R, C> (TemplateAstVisitor< R, C?> visitor, [C? context]) → R? -
Have the
visitor
start visiting this node.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object o) → bool -
The equality operator.
inherited