TemplateLiteral
Extends:
Node → Expression → TemplateLiteral
A template with no tag.
It alternates between quasis and expressions.
It should begin and end with quasis, using TemplateElement.empty if necessary.
This means that ${1}${2}
has 3 empty quasis!
Constructor Summary
Public Constructor | ||
public |
constructor(quasis: *, expressions: *) |
Member Summary
Public Members | ||
public |
|
|
public |
|
Inherited Summary
From class Node | ||
public get |
type: * For compatibility with other AST representations,
all Node instances have a 'type' property that is the name of that type.
|
|
public |
toJSON(): * Convert to JSON.
|
|
public |
toString(): * |
Public Constructors
public constructor(quasis: *, expressions: *) source
Params:
Name | Type | Attribute | Description |
quasis | * | ||
expressions | * |