ParsedReferenceAst class

Represents a real, non-synthetic reference to an element or exported directive instance.

Clients should not extend, implement, or mix-in this class.

Inheritance
Implemented types
Mixed in types

Constructors

ParsedReferenceAst(SourceFile sourceFile, NgToken prefixToken, NgToken nameToken, [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 if 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
identifier String?
Name identifier in #variable="identifier".
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
nameOffset int
Offset of variable in #variable="identifier".
no setteroverride
nameToken NgToken
final
prefixOffset int
Offset of # in #variable.
no setteroverride
prefixToken NgToken
Tokens representing the #reference element decorator
final
quotedValueOffset int?
Offset of identifier starting at left quote; may be null if 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?
Always returns null since #ref has no suffix.
no setteroverride
suffixToken NgToken?
no setteroverride
valueOffset int?
Offset of identifier in #variable="identifier"; may be null if no value.
no setteroverride
valueToken NgAttributeValueToken?
NgAttributeValueToken that represents identifier in #variable="reference".
final
variable String
Name variable in #variable="identifier".
no setteroverride

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