ParsedBananaAst class
Represents a real, non-synthetic [(property)]="value"
syntax.
This AST may only exist in the parses that do not de-sugar directives (i.e. useful for tooling, but not useful for compilers). Preserves offsets.
Clients should not extend, implement, or mix-in this class.
- Inheritance
-
- Object
- TemplateAst
- ParsedBananaAst
- Implemented types
- Mixed in types
Constructors
- ParsedBananaAst(SourceFile sourceFile, NgToken prefixToken, NgToken nameToken, NgToken suffixToken, NgAttributeValueToken? valueToken, NgToken? equalSignToken)
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?
-
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
- name → String
-
Inner name
property
in[(property)]
.no setteroverride - nameOffset → int
-
Offset of
property
in[(property)]
.no setteroverride - nameToken → NgToken
-
final
- prefixOffset → int
-
Offset of banana prefix
[(
.no setteroverride - prefixToken → NgToken
-
Components of element decorator representing
(banana)
.final - quotedValueOffset → int?
-
Offset of value starting at left quote; 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
-
Offset of banana suffix
)]
.no setteroverride - suffixToken → NgToken
-
final
- value → String?
-
Value bound to banana property; may be
null
to have no value.no setteroverride - valueOffset → int?
-
Offset of value; may be
null
to have no value.no setteroverride - valueToken → NgAttributeValueToken?
-
NgAttributeValueToken that represents
"value"
; may benull
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