ParsedAttributeAst class
Represents a real(non-synthetic) parsed AttributeAst. Preserves offsets.
Clients should not extend, implement, or mix-in this class.
- Inheritance
-
- Object
- TemplateAst
- ParsedAttributeAst
- Implemented types
- Mixed in types
Constructors
-
ParsedAttributeAst(SourceFile sourceFile, NgToken nameToken, [NgAttributeValueToken? valueToken, NgToken? equalSignToken, List<
InterpolationAst> ? mustaches])
Properties
- beginToken → NgToken?
-
First token that was used to form this AST.
finalinherited
-
childNodes
→ List<
StandaloneTemplateAst> -
Child nodes, if any.
no setterinherited
- endToken → NgToken?
-
Last token that was used to form this AST.
finalinherited
- equalSignOffset → int?
-
Static offset of equal sign; may be
null
to have no value.no setteroverride - equalSignToken → NgToken?
-
NgToken that represents the equal sign token. May be
null
to have no value.final - hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
mustaches
→ List<
InterpolationAst> ? -
Parsed static attribute parts that are mustache-expressions.
final
- name → String
-
Static attribute name.
no setteroverride
- nameOffset → int
-
Static attribute name offset.
no setteroverride
- nameToken → NgToken
-
NgToken that represents the attribute name.
final
- prefixOffset → int?
-
no setteroverride
- prefixToken → NgToken?
-
no setteroverride
- quotedValue → String?
-
Static attribute value including quotes; may be
null
to have no value.no setteroverride - quotedValueOffset → int?
-
Static attribute value including quotes offset; may be
null
to have no value.no setteroverride - 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
- suffixOffset → int?
-
no setteroverride
- suffixToken → NgToken?
-
no setteroverride
- value → String?
-
Static attribute value; may be
null
to have no value.no setteroverride - valueOffset → int?
-
Static attribute value offset; may be
null
to have no value.no setteroverride - valueToken → NgAttributeValueToken?
-
NgAttributeValueToken that represents the attribute value. May be
null
to have no value.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