TemplateAst class abstract

Represents an AST node parsed from an Angular template.

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

Implementers

Constructors

TemplateAst.parsed(NgToken? beginToken, NgToken? endToken, SourceFile _sourceFile)
Initializes an AST node by specifying where it was parsed from.
const

Properties

beginToken NgToken?
First token that was used to form this AST.
final
childNodes List<StandaloneTemplateAst>
Child nodes, if any.
no setter
endToken NgToken?
Last token that was used to form this AST.
final
hashCode int
The hash code for this object.
no setterinherited
isParent bool
Whether this node is capable of containing children and does.
final
isStandalone bool
Whether this node needs to be 'attached' to another node to be valid.
no setter
isSynthetic bool
Whether this node did not truly originate from the parsed source.
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 setter
sourceUrl String?
no setter

Methods

accept<R, C>(TemplateAstVisitor<R, C> visitor, [C context]) → R?
Have the visitor start visiting this node.
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 other) bool
The equality operator.
inherited