EmbeddedContentAst class abstract

Represents an <ng-content> element AST.

Embedded content is like an ElementAst, but only contains children.

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

Implemented types
Implementers

Constructors

EmbeddedContentAst([String selector, String ngProjectAs, ReferenceAst reference])
Create a synthetic embedded content AST.
factory
EmbeddedContentAst.from(TemplateAst origin, [String selector, String ngProjectAs, ReferenceAst reference])
Create a synthetic EmbeddedContentAst that originated from origin.
factory
EmbeddedContentAst.parsed(SourceFile sourceFile, NgToken startElementToken, NgToken elementIdentifierToken, NgToken endElementToken, CloseElementAst closeComplement, [AttributeAst? selectAttribute, AttributeAst? ngProjectAsAttribute, ReferenceAst? reference])
Create a new EmbeddedContentAst parsed from tokens in sourceFile.
factory

Properties

beginToken NgToken?
First token that was used to form this AST.
finalinherited
childNodes List<StandaloneTemplateAst>
Child nodes, if any.
no setterinherited
closeComplement CloseElementAst
that is paired to this
getter/setter pair
endToken NgToken?
Last token that was used to form this AST.
finalinherited
hashCode int
The hash code for this object.
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
ngProjectAs String?
A CSS selector denoting what this embedded content should be projected as.
no setter
reference ReferenceAst?
Reference assignment.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector String?
A CSS selector denoting what elements should be embedded.
no setter
sourceSpan → SourceSpan
Segment of source text from which the AST was parsed from.
no setterinherited
sourceUrl String?
no setterinherited

Methods

accept<R, C>(TemplateAstVisitor<R, C?> visitor, [C? context]) → R
Have the visitor start visiting this node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override