refactor(es/ast): Change TaggedTpl to have a Tpl (#1114)

swc_ecma_ast:
 - Make `TaggedTpl` have `Tpl`.

Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
This commit is contained in:
David Sherret 2021-03-25 07:09:36 -04:00 committed by GitHub
parent df3f3106df
commit da62c73239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
70 changed files with 28447 additions and 26657 deletions

View File

@ -11,7 +11,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc"
repository = "https://github.com/swc-project/swc.git"
version = "0.11.0"
version = "0.12.0"
[lib]
name = "swc"
@ -29,12 +29,12 @@ serde_json = "1"
sourcemap = "6"
swc_atoms = {version = "0.2", path = "./atoms"}
swc_common = {version = "0.10.10", path = "./common", features = ["sourcemap", "concurrent"]}
swc_ecma_ast = {version = "0.40.0", path = "./ecmascript/ast"}
swc_ecma_codegen = {version = "0.48.0", path = "./ecmascript/codegen"}
swc_ecma_ext_transforms = {version = "0.8.0", path = "./ecmascript/ext-transforms"}
swc_ecma_parser = {version = "0.50.0", path = "./ecmascript/parser"}
swc_ecma_preset_env = {version = "0.11.0", path = "./ecmascript/preset_env"}
swc_ecma_transforms = {version = "0.41.0", path = "./ecmascript/transforms", features = [
swc_ecma_ast = {version = "0.41.0", path = "./ecmascript/ast"}
swc_ecma_codegen = {version = "0.49.0", path = "./ecmascript/codegen"}
swc_ecma_ext_transforms = {version = "0.9.0", path = "./ecmascript/ext-transforms"}
swc_ecma_parser = {version = "0.51.0", path = "./ecmascript/parser"}
swc_ecma_preset_env = {version = "0.12.0", path = "./ecmascript/preset_env"}
swc_ecma_transforms = {version = "0.42.0", path = "./ecmascript/transforms", features = [
"compat",
"module",
"optimization",
@ -42,8 +42,8 @@ swc_ecma_transforms = {version = "0.41.0", path = "./ecmascript/transforms", fea
"react",
"typescript",
]}
swc_ecma_utils = {version = "0.31.0", path = "./ecmascript/utils"}
swc_ecma_visit = {version = "0.26.0", path = "./ecmascript/visit"}
swc_ecma_utils = {version = "0.32.0", path = "./ecmascript/utils"}
swc_ecma_visit = {version = "0.27.0", path = "./ecmascript/visit"}
swc_visit = {version = "0.2.3", path = "./visit"}
[dev-dependencies]

View File

@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"]
license = "Apache-2.0/MIT"
name = "swc_bundler"
repository = "https://github.com/swc-project/swc.git"
version = "0.28.1"
version = "0.29.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
@ -32,19 +32,19 @@ relative-path = "1.2"
retain_mut = "0.1.2"
swc_atoms = {version = "0.2.4", path = "../atoms"}
swc_common = {version = "0.10.10", path = "../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ecmascript/ast"}
swc_ecma_codegen = {version = "0.48.0", path = "../ecmascript/codegen"}
swc_ecma_parser = {version = "0.50.0", path = "../ecmascript/parser"}
swc_ecma_transforms = {version = "0.41.0", path = "../ecmascript/transforms", features = ["optimization"]}
swc_ecma_utils = {version = "0.31.0", path = "../ecmascript/utils"}
swc_ecma_visit = {version = "0.26.0", path = "../ecmascript/visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ecmascript/ast"}
swc_ecma_codegen = {version = "0.49.0", path = "../ecmascript/codegen"}
swc_ecma_parser = {version = "0.51.0", path = "../ecmascript/parser"}
swc_ecma_transforms = {version = "0.42.0", path = "../ecmascript/transforms", features = ["optimization"]}
swc_ecma_utils = {version = "0.32.0", path = "../ecmascript/utils"}
swc_ecma_visit = {version = "0.27.0", path = "../ecmascript/visit"}
[dev-dependencies]
hex = "0.4"
ntest = "0.7.2"
reqwest = {version = "0.10.8", features = ["blocking"]}
sha-1 = "0.9"
swc_ecma_transforms = {version = "0.41.0", path = "../ecmascript/transforms", features = ["react", "typescript"]}
swc_ecma_transforms = {version = "0.42.0", path = "../ecmascript/transforms", features = ["react", "typescript"]}
tempfile = "3.1.0"
testing = {version = "0.10.3", path = "../testing"}
url = "2.1.1"

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecmascript"
repository = "https://github.com/swc-project/swc.git"
version = "0.27.0"
version = "0.28.0"
[package.metadata.docs.rs]
all-features = true
@ -27,12 +27,12 @@ react = ["swc_ecma_transforms/react"]
typescript = ["swc_ecma_transforms/typescript"]
[dependencies]
swc_ecma_ast = {version = "0.40.0", path = "./ast"}
swc_ecma_codegen = {version = "0.48.0", path = "./codegen", optional = true}
swc_ecma_dep_graph = {version = "0.18.0", path = "./dep-graph", optional = true}
swc_ecma_parser = {version = "0.50.0", path = "./parser", optional = true}
swc_ecma_transforms = {version = "0.41.0", path = "./transforms", optional = true}
swc_ecma_utils = {version = "0.31.0", path = "./utils", optional = true}
swc_ecma_visit = {version = "0.26.0", path = "./visit", optional = true}
swc_ecma_ast = {version = "0.41.0", path = "./ast"}
swc_ecma_codegen = {version = "0.49.0", path = "./codegen", optional = true}
swc_ecma_dep_graph = {version = "0.19.0", path = "./dep-graph", optional = true}
swc_ecma_parser = {version = "0.51.0", path = "./parser", optional = true}
swc_ecma_transforms = {version = "0.42.0", path = "./transforms", optional = true}
swc_ecma_utils = {version = "0.32.0", path = "./utils", optional = true}
swc_ecma_visit = {version = "0.27.0", path = "./visit", optional = true}
[dev-dependencies]

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_ast"
repository = "https://github.com/swc-project/swc.git"
version = "0.40.0"
version = "0.41.0"
[features]
default = []

View File

@ -439,12 +439,11 @@ pub struct TaggedTpl {
pub tag: Box<Expr>,
#[serde(rename = "expressions")]
pub exprs: Vec<Box<Expr>>,
pub quasis: Vec<TplElement>,
#[serde(default, rename = "typeParameters")]
pub type_params: Option<TsTypeParamInstantiation>,
#[serde(rename = "template")]
pub tpl: Tpl,
}
#[ast_node("TemplateElement")]

View File

@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_codegen"
repository = "https://github.com/swc-project/swc.git"
version = "0.48.0"
version = "0.49.0"
[dependencies]
bitflags = "1"
@ -15,9 +15,9 @@ num-bigint = {version = "0.2", features = ["serde"]}
sourcemap = "6"
swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_codegen_macros = {version = "0.5.2", path = "./macros"}
swc_ecma_parser = {version = "0.50.0", path = "../parser"}
swc_ecma_parser = {version = "0.51.0", path = "../parser"}
[dev-dependencies]
swc_common = {version = "0.10.10", path = "../../common", features = ["sourcemap"]}

View File

@ -1192,26 +1192,11 @@ impl<'a> Emitter<'a> {
#[emitter]
fn emit_tagged_tpl_lit(&mut self, node: &TaggedTpl) -> Result {
debug_assert!(node.quasis.len() == node.exprs.len() + 1);
self.emit_leading_comments_of_pos(node.span().lo())?;
emit!(node.tag);
emit!(node.type_params);
punct!("`");
let i = 0;
for i in 0..(node.quasis.len() + node.exprs.len()) {
if i % 2 == 0 {
emit!(node.quasis[i / 2]);
} else {
punct!("${");
emit!(node.exprs[i / 2]);
punct!("}");
}
}
punct!("`");
emit!(node.tpl);
}
#[emitter]

View File

@ -6,14 +6,14 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_dep_graph"
repository = "https://github.com/swc-project/swc.git"
version = "0.18.0"
version = "0.19.0"
[dependencies]
swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}
[dev-dependencies]
swc_ecma_parser = {version = "0.50.0", path = "../parser"}
swc_ecma_parser = {version = "0.51.0", path = "../parser"}
testing = {version = "0.10.3", path = "../../testing"}

View File

@ -5,7 +5,7 @@ documentation = "https://swc.rs/rustdoc/swc_ecma_ext_transforms/"
edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_ext_transforms"
version = "0.8.0"
version = "0.9.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -13,7 +13,7 @@ version = "0.8.0"
phf = {version = "0.8.0", features = ["macros"]}
swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../parser"}
swc_ecma_utils = {version = "0.31.0", path = "../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../parser"}
swc_ecma_utils = {version = "0.32.0", path = "../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}

View File

@ -5,7 +5,7 @@ documentation = "https://swc.rs/rustdoc/jsdoc/"
edition = "2018"
license = "Apache-2.0/MIT"
name = "jsdoc"
version = "0.18.0"
version = "0.19.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -18,7 +18,7 @@ swc_common = {version = "0.10.10", path = "../../common"}
[dev-dependencies]
anyhow = "1"
dashmap = "3"
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../parser"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../parser"}
testing = {version = "0.10.3", path = "../../testing"}
walkdir = "2"

View File

@ -6,15 +6,15 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_loader"
repository = "https://github.com/swc-project/swc.git"
version = "0.1.0"
version = "0.2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
swc_atoms = {version = "0.2.3", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}
[dev-dependencies]
testing = {version = "0.10.3", path = "../../testing"}

View File

@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "examples/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_parser"
repository = "https://github.com/swc-project/swc.git"
version = "0.50.0"
version = "0.51.0"
[features]
default = []
@ -22,8 +22,8 @@ serde = {version = "1", features = ["derive"]}
smallvec = "1"
swc_atoms = {version = "0.2.3", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}
unicode-xid = "0.2"
[dev-dependencies]

View File

@ -773,15 +773,12 @@ impl<'a, I: Tokens> Parser<I> {
}
#[allow(clippy::vec_box)]
fn parse_tpl_elements(
&mut self,
is_tagged: bool,
) -> PResult<(Vec<Box<Expr>>, Vec<TplElement>)> {
fn parse_tpl_elements(&mut self) -> PResult<(Vec<Box<Expr>>, Vec<TplElement>)> {
trace_cur!(self, parse_tpl_elements);
let mut exprs = vec![];
let cur_elem = self.parse_tpl_element(is_tagged)?;
let cur_elem = self.parse_tpl_element()?;
let mut is_tail = cur_elem.tail;
let mut quasis = vec![cur_elem];
@ -789,7 +786,7 @@ impl<'a, I: Tokens> Parser<I> {
expect!(self, "${");
exprs.push(self.include_in_expr(true).parse_expr()?);
expect!(self, '}');
let elem = self.parse_tpl_element(is_tagged)?;
let elem = self.parse_tpl_element()?;
is_tail = elem.tail;
quasis.push(elem);
}
@ -805,19 +802,14 @@ impl<'a, I: Tokens> Parser<I> {
let tagged_tpl_start = tag.span().lo();
trace_cur!(self, parse_tagged_tpl);
assert_and_bump!(self, '`');
let (exprs, quasis) = self.parse_tpl_elements(false)?;
expect!(self, '`');
let tpl = self.parse_tpl()?;
let span = span!(self, tagged_tpl_start);
Ok(TaggedTpl {
span,
tag,
exprs,
type_params,
quasis,
tpl,
})
}
@ -827,7 +819,7 @@ impl<'a, I: Tokens> Parser<I> {
assert_and_bump!(self, '`');
let (exprs, quasis) = self.parse_tpl_elements(false)?;
let (exprs, quasis) = self.parse_tpl_elements()?;
expect!(self, '`');
@ -839,7 +831,7 @@ impl<'a, I: Tokens> Parser<I> {
})
}
pub(super) fn parse_tpl_element(&mut self, is_tagged: bool) -> PResult<TplElement> {
pub(super) fn parse_tpl_element(&mut self) -> PResult<TplElement> {
let start = cur_pos!(self);
let (raw, cooked) = match *cur!(self, true)? {

View File

@ -1672,7 +1672,7 @@ impl<I: Tokens> Parser<I> {
let mut types = vec![];
let cur_elem = self.parse_tpl_element(false)?;
let cur_elem = self.parse_tpl_element()?;
let mut is_tail = cur_elem.tail;
let mut quasis = vec![cur_elem];
@ -1680,7 +1680,7 @@ impl<I: Tokens> Parser<I> {
expect!(self, "${");
types.push(self.parse_ts_type()?);
expect!(self, '}');
let elem = self.parse_tpl_element(false)?;
let elem = self.parse_tpl_element()?;
is_tail = elem.tail;
quasis.push(elem);
}

View File

@ -46,6 +46,12 @@ warning: Ident
1 | tag`foo`
| ^^^
warning: Tpl
--> $DIR/tests/span/js/expr/tagged-tpl.js:1:4
|
1 | tag`foo`
| ^^^^^
warning: TplElement
--> $DIR/tests/span/js/expr/tagged-tpl.js:1:5
|

View File

@ -62,47 +62,55 @@
"computed": false
}
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 5,
"end": 8,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 4,
"end": 9,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 5,
"end": 8,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 8,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 8,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 8,
"ctxt": 0
},
"value": "foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -874,140 +874,148 @@
},
"computed": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": 1.0
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 413,
"end": 437,
"ctxt": 0
},
{
"type": "NumericLiteral",
"span": {
"start": 430,
"end": 431,
"ctxt": 0
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": 1.0
},
"value": 2.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 414,
"end": 418,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
{
"type": "NumericLiteral",
"span": {
"start": 430,
"end": 431,
"ctxt": 0
},
"value": 2.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 414,
"end": 418,
"ctxt": 0
},
"value": "head",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 414,
"end": 418,
"ctxt": 0
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 414,
"end": 418,
"ctxt": 0
},
"value": "head",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "head",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 414,
"end": 418,
"ctxt": 0
},
"value": "head",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 422,
"end": 428,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 422,
"end": 428,
"ctxt": 0
},
"value": "middle",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 428,
"ctxt": 0
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 428,
"ctxt": 0
},
"value": "middle",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "middle",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 428,
"ctxt": 0
},
"value": "middle",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 432,
"end": 436,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 432,
"end": 436,
"ctxt": 0
},
"value": "tail",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 432,
"end": 436,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 432,
"end": 436,
"ctxt": 0
},
"value": "tail",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "tail",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 432,
"end": 436,
"ctxt": 0
},
"value": "tail",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"definite": false
}
@ -1091,140 +1099,148 @@
},
"computed": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 484,
"end": 485,
"ctxt": 0
},
"value": 1.0
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 477,
"end": 494,
"ctxt": 0
},
{
"type": "NumericLiteral",
"span": {
"start": 491,
"end": 492,
"ctxt": 0
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 484,
"end": 485,
"ctxt": 0
},
"value": 1.0
},
"value": 2.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 478,
"end": 482,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
{
"type": "NumericLiteral",
"span": {
"start": 491,
"end": 492,
"ctxt": 0
},
"value": 2.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 478,
"end": 482,
"ctxt": 0
},
"value": "test",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 478,
"end": 482,
"ctxt": 0
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 478,
"end": 482,
"ctxt": 0
},
"value": "test",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "test",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 478,
"end": 482,
"ctxt": 0
},
"value": "test",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 486,
"end": 489,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 486,
"end": 489,
"ctxt": 0
},
"value": "and",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 486,
"end": 489,
"ctxt": 0
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 486,
"end": 489,
"ctxt": 0
},
"value": "and",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "and",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 486,
"end": 489,
"ctxt": 0
},
"value": "and",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 493,
"end": 493,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 493,
"end": 493,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 493,
"end": 493,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 493,
"end": 493,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 493,
"end": 493,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
]

View File

@ -123,47 +123,55 @@
"value": "f",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 35,
"end": 114,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 34,
"end": 115,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 35,
"end": 114,
"ctxt": 0
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 35,
"end": 114,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 35,
"end": 114,
"ctxt": 0
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 35,
"end": 114,
"ctxt": 0
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -123,47 +123,55 @@
"value": "f",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 50,
"end": 129,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 49,
"end": 130,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 50,
"end": 129,
"ctxt": 0
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 50,
"end": 129,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 50,
"end": 129,
"ctxt": 0
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 50,
"end": 129,
"ctxt": 0
},
"value": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -482,94 +482,102 @@
"value": "f",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 248,
"end": 249,
"ctxt": 0
},
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 241,
"end": 255,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 251,
"end": 254,
"start": 248,
"end": 249,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"property": {
"type": "Identifier",

View File

@ -482,94 +482,102 @@
"value": "f",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 257,
"end": 271,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 267,
"end": 270,
"start": 264,
"end": 265,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"value": "def",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"property": {
"type": "Identifier",

View File

@ -427,94 +427,102 @@
"value": "foo1",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 192,
"end": 193,
"ctxt": 0
},
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 190,
"end": 190,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 190,
"end": 190,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 190,
"end": 190,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 189,
"end": 195,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 194,
"end": 194,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 194,
"end": 194,
"start": 192,
"end": 193,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 190,
"end": 190,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 190,
"end": 190,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 190,
"end": 190,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 194,
"end": 194,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 194,
"end": 194,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 194,
"end": 194,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"definite": false
}
@ -1018,94 +1026,102 @@
"value": "foo2",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 410,
"end": 411,
"ctxt": 0
},
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 408,
"end": 408,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 408,
"end": 408,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 408,
"end": 408,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 407,
"end": 413,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 412,
"end": 412,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 412,
"end": 412,
"start": 410,
"end": 411,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 408,
"end": 408,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 408,
"end": 408,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 408,
"end": 408,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 412,
"end": 412,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 412,
"end": 412,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 412,
"end": 412,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"definite": false
}

View File

@ -427,94 +427,102 @@
"value": "foo1",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 206,
"end": 207,
"ctxt": 0
},
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 204,
"end": 204,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 204,
"end": 204,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 204,
"end": 204,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 203,
"end": 209,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 208,
"end": 208,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 208,
"end": 208,
"start": 206,
"end": 207,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 204,
"end": 204,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 204,
"end": 204,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 204,
"end": 204,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 208,
"end": 208,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 208,
"end": 208,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 208,
"end": 208,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"definite": false
}
@ -1018,94 +1026,102 @@
"value": "foo2",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 424,
"end": 425,
"ctxt": 0
},
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 422,
"end": 422,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 422,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 422,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 421,
"end": 427,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 426,
"end": 426,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 426,
"end": 426,
"start": 424,
"end": 425,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 422,
"end": 422,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 422,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 422,
"end": 422,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 426,
"end": 426,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 426,
"end": 426,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 426,
"end": 426,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"definite": false
}

View File

@ -159,94 +159,102 @@
"value": "declare",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 54,
"end": 73,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 65,
"end": 72,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 65,
"end": 72,
"start": 63,
"end": 64,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 65,
"end": 72,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 65,
"end": 72,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 65,
"end": 72,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -159,94 +159,102 @@
"value": "declare",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 68,
"end": 87,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 79,
"end": 86,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 79,
"end": 86,
"start": 77,
"end": 78,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 79,
"end": 86,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 79,
"end": 86,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 79,
"end": 86,
"ctxt": 0
},
"value": " world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -123,189 +123,197 @@
"value": "foo",
"optional": false
},
"expressions": [
{
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 53,
"end": 62,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 40,
"end": 81,
"ctxt": 0
},
"expressions": [
{
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 53,
"end": 62,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 54,
"start": 53,
"end": 62,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsKeywordType",
"type": "TsTypeAnnotation",
"span": {
"start": 56,
"start": 54,
"end": 62,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 43,
"end": 78,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 64,
"end": 78,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 66,
"end": 76,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 66,
"end": 75,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 66,
"end": 67,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 70,
"end": 75,
"ctxt": 0
},
"value": "bad",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 56,
"end": 62,
"ctxt": 0
},
"kind": "number"
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 41,
"end": 41,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
],
"decorators": [],
"span": {
"start": 43,
"end": 78,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 64,
"end": 78,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 66,
"end": 76,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 66,
"end": 75,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 66,
"end": 67,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 70,
"end": 75,
"ctxt": 0
},
"value": "bad",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 41,
"end": 41,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 41,
"end": 41,
"ctxt": 0
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 41,
"end": 41,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 41,
"end": 41,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 80,
"end": 80,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 80,
"end": 80,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 80,
"end": 80,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 80,
"end": 80,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 80,
"end": 80,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -123,189 +123,197 @@
"value": "foo",
"optional": false
},
"expressions": [
{
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 67,
"end": 76,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 54,
"end": 95,
"ctxt": 0
},
"expressions": [
{
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 67,
"end": 76,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 68,
"start": 67,
"end": 76,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsKeywordType",
"type": "TsTypeAnnotation",
"span": {
"start": 70,
"start": 68,
"end": 76,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 57,
"end": 92,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 78,
"end": 92,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 80,
"end": 90,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 80,
"end": 89,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 84,
"end": 89,
"ctxt": 0
},
"value": "bad",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"kind": "number"
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 55,
"end": 55,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
],
"decorators": [],
"span": {
"start": 57,
"end": 92,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 78,
"end": 92,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 80,
"end": 90,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 80,
"end": 89,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 84,
"end": 89,
"ctxt": 0
},
"value": "bad",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 55,
"end": 55,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 55,
"ctxt": 0
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 55,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 55,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 94,
"end": 94,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 94,
"end": 94,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 94,
"end": 94,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 94,
"end": 94,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 94,
"end": 94,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -89,47 +89,55 @@
"value": "tag",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 24,
"end": 36,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 23,
"end": 37,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 24,
"end": 36,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 24,
"end": 36,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 24,
"end": 36,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 24,
"end": 36,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -56,47 +56,55 @@
"value": "CtorTag",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 28,
"end": 40,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 27,
"end": 41,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 28,
"end": 40,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 28,
"end": 40,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 28,
"end": 40,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 28,
"end": 40,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -224,47 +224,55 @@
"value": "tag",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 87,
"end": 99,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 86,
"end": 100,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 87,
"end": 99,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 87,
"end": 99,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 87,
"end": 99,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 87,
"end": 99,
"ctxt": 0
},
"value": "Hello world!",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
}
],

View File

@ -240,99 +240,107 @@
}
]
},
"expressions": [
{
"type": "StringLiteral",
"span": {
"start": 47,
"end": 51,
"ctxt": 0
},
"value": "AM",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 41,
"end": 75,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 53,
"end": 74,
"ctxt": 0
},
"tail": true,
"cooked": {
"expressions": [
{
"type": "StringLiteral",
"span": {
"start": 53,
"end": 74,
"start": 47,
"end": 51,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"value": "AM",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 53,
"end": 74,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"containsQuote": true
}
}
}
],
"typeParameters": null
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 53,
"end": 74,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 53,
"end": 74,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 53,
"end": 74,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
]
}
}
}
],

View File

@ -240,99 +240,107 @@
}
]
},
"expressions": [
{
"type": "StringLiteral",
"span": {
"start": 63,
"end": 67,
"ctxt": 0
},
"value": "AM",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 57,
"end": 91,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"tail": true,
"cooked": {
"expressions": [
{
"type": "StringLiteral",
"span": {
"start": 69,
"end": 90,
"start": 63,
"end": 67,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"value": "AM",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"containsQuote": true
}
}
}
],
"typeParameters": null
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "I ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"value": " THE TEMPLATE PORTION",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
]
}
}
}
],

View File

@ -1048,94 +1048,102 @@
"value": "tag",
"optional": false
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 292,
"end": 295,
"ctxt": 0
},
"value": 123.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 283,
"end": 303,
"ctxt": 0
},
{
"type": "TemplateElement",
"span": {
"start": 296,
"end": 302,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 296,
"end": 302,
"start": 292,
"end": 295,
"ctxt": 0
},
"value": " World",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"value": 123.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"value": "Hello ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
"raw": {
"type": "StringLiteral",
{
"type": "TemplateElement",
"span": {
"start": 296,
"end": 302,
"ctxt": 0
},
"value": " World",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 296,
"end": 302,
"ctxt": 0
},
"value": " World",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 296,
"end": 302,
"ctxt": 0
},
"value": " World",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"typeAnnotation": {
"type": "TsKeywordType",
@ -1203,47 +1211,55 @@
"value": "tag",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 327,
"end": 334,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
},
"value": "Hello",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
},
"value": "Hello",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "Hello",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
},
"value": "Hello",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
},
"typeAnnotation": {
"type": "TsKeywordType",

View File

@ -182,47 +182,55 @@
"value": "as",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 80,
"end": 91,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"typeParameters": null,
"template": {
"type": "TemplateLiteral",
"span": {
"start": 79,
"end": 92,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 80,
"end": 91,
"ctxt": 0
},
"value": "Hello world",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 80,
"end": 91,
"ctxt": 0
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 80,
"end": 91,
"ctxt": 0
},
"value": "Hello world",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"value": "Hello world",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
"raw": {
"type": "StringLiteral",
"span": {
"start": 80,
"end": 91,
"ctxt": 0
},
"value": "Hello world",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
}
],
"typeParameters": null
]
}
}
},
{

View File

@ -37,46 +37,6 @@
"value": "C",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 10,
"end": 10,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 10,
"end": 10,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 10,
"end": 10,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
],
"typeParameters": {
"type": "TsTypeParameterInstantiation",
"span": {
@ -105,6 +65,54 @@
"typeParams": null
}
]
},
"template": {
"type": "TemplateLiteral",
"span": {
"start": 9,
"end": 11,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 10,
"end": 10,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 10,
"end": 10,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 10,
"end": 10,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
]
}
},
"arguments": null,

View File

@ -30,46 +30,6 @@
"value": "f",
"optional": false
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 5,
"end": 5,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 5,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 5,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
],
"typeParameters": {
"type": "TsTypeParameterInstantiation",
"span": {
@ -98,6 +58,54 @@
"typeParams": null
}
]
},
"template": {
"type": "TemplateLiteral",
"span": {
"start": 4,
"end": 6,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 5,
"end": 5,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 5,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 5,
"end": 5,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
]
}
}
}

View File

@ -5,7 +5,7 @@ documentation = "https://swc.rs/rustdoc/swc_ecma_preset_env/"
edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_preset_env"
version = "0.11.0"
version = "0.12.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -20,14 +20,14 @@ st-map = "0.1.2"
string_enum = {version = "0.3.1", path = "../../macros/string_enum"}
swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_transforms = {version = "0.41.0", path = "../transforms", features = ["compat", "proposal"]}
swc_ecma_utils = {version = "0.31.0", path = "../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_transforms = {version = "0.42.0", path = "../transforms", features = ["compat", "proposal"]}
swc_ecma_utils = {version = "0.32.0", path = "../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}
walkdir = "2"
[dev-dependencies]
pretty_assertions = "0.6"
swc_ecma_codegen = {version = "0.48.0", path = "../codegen"}
swc_ecma_parser = {version = "0.50.0", path = "../parser"}
swc_ecma_codegen = {version = "0.49.0", path = "../codegen"}
swc_ecma_parser = {version = "0.51.0", path = "../parser"}
testing = {version = "0.10.3", path = "../../testing"}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms"
repository = "https://github.com/swc-project/swc.git"
version = "0.41.0"
version = "0.42.0"
[package.metadata.docs.rs]
all-features = true
@ -23,24 +23,24 @@ typescript = ["swc_ecma_transforms_typescript"]
[dependencies]
swc_atoms = {version = "0.2.0", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "./base"}
swc_ecma_transforms_compat = {version = "0.9.0", path = "./compat", optional = true}
swc_ecma_transforms_module = {version = "0.9.0", path = "./module", optional = true}
swc_ecma_transforms_optimization = {version = "0.11.0", path = "./optimization", optional = true}
swc_ecma_transforms_proposal = {version = "0.9.0", path = "./proposal", optional = true}
swc_ecma_transforms_react = {version = "0.10.0", path = "./react", optional = true}
swc_ecma_transforms_typescript = {version = "0.10.0", path = "./typescript", optional = true}
swc_ecma_utils = {version = "0.31.0", path = "../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "./base"}
swc_ecma_transforms_compat = {version = "0.10.0", path = "./compat", optional = true}
swc_ecma_transforms_module = {version = "0.10.0", path = "./module", optional = true}
swc_ecma_transforms_optimization = {version = "0.12.0", path = "./optimization", optional = true}
swc_ecma_transforms_proposal = {version = "0.10.0", path = "./proposal", optional = true}
swc_ecma_transforms_react = {version = "0.11.0", path = "./react", optional = true}
swc_ecma_transforms_typescript = {version = "0.11.0", path = "./typescript", optional = true}
swc_ecma_utils = {version = "0.32.0", path = "../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}
unicode-xid = "0.2"
[dev-dependencies]
pretty_assertions = "0.6"
sourcemap = "6"
swc_ecma_codegen = {version = "0.48.0", path = "../codegen"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "./testing"}
swc_ecma_codegen = {version = "0.49.0", path = "../codegen"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "./testing"}
tempfile = "3"
testing = {version = "0.10.3", path = "../../testing"}
walkdir = "2"

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_base"
repository = "https://github.com/swc-project/swc.git"
version = "0.8.1"
version = "0.9.0"
[dependencies]
fxhash = "0.2.1"
@ -16,11 +16,11 @@ scoped-tls = "1.0.0"
smallvec = "1.6.0"
swc_atoms = {version = "0.2", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_codegen = {version = "0.48.0", path = "../../codegen"}
swc_ecma_codegen = {version = "0.49.0", path = "../../codegen"}
testing = {version = "0.10.3", path = "../../../testing"}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_compat"
repository = "https://github.com/swc-project/swc.git"
version = "0.9.0"
version = "0.10.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@ -20,13 +20,13 @@ serde = {version = "1.0.118", features = ["derive"]}
smallvec = "1.6.0"
swc_atoms = {version = "0.2.5", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_transforms_macros = {version = "0.2.1", path = "../macros"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "../testing"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "../testing"}
testing = {version = "0.10.3", path = "../../../testing"}

View File

@ -90,16 +90,19 @@ impl Fold for TemplateLiteralCaching {
let template = TaggedTpl {
span: DUMMY_SP,
tag: Box::new(Expr::Ident(helper_ident.clone())),
quasis: n.quasis,
exprs: (&n.exprs)
.into_iter()
.map(|_| {
Box::new(Expr::Lit(Lit::Num(Number {
span: DUMMY_SP,
value: 0.0,
})))
})
.collect(),
tpl: Tpl {
span: DUMMY_SP,
quasis: n.tpl.quasis,
exprs: (&n.tpl.exprs)
.into_iter()
.map(|_| {
Box::new(Expr::Lit(Lit::Num(Number {
span: DUMMY_SP,
value: 0.0,
})))
})
.collect(),
},
type_params: None,
};
@ -132,7 +135,8 @@ impl Fold for TemplateLiteralCaching {
}]
.into_iter()
.chain(
n.exprs
n.tpl
.exprs
.into_iter()
.map(|expr| ExprOrSpread { expr, spread: None }),
)

View File

@ -189,7 +189,9 @@ impl Fold for TemplateLiteral {
}
Expr::TaggedTpl(TaggedTpl {
tag, exprs, quasis, ..
tag,
tpl: Tpl { exprs, quasis, .. },
..
}) => {
assert_eq!(quasis.len(), exprs.len() + 1);

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_module"
repository = "https://github.com/swc-project/swc.git"
version = "0.9.0"
version = "0.10.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@ -16,13 +16,13 @@ indexmap = "1.6.1"
serde = {version = "1.0.118", features = ["derive"]}
swc_atoms = {version = "0.2", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_transforms_compat = {version = "0.9.0", path = "../compat"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "../testing/"}
swc_ecma_transforms_compat = {version = "0.10.0", path = "../compat"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "../testing/"}
testing = {version = "0.10.3", path = "../../../testing/"}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_optimization"
repository = "https://github.com/swc-project/swc.git"
version = "0.11.0"
version = "0.12.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@ -19,17 +19,17 @@ retain_mut = "0.1.2"
serde_json = "1.0.61"
swc_atoms = {version = "0.2", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_transforms_compat = {version = "0.9.0", path = "../compat"}
swc_ecma_transforms_module = {version = "0.9.0", path = "../module"}
swc_ecma_transforms_proposal = {version = "0.9.0", path = "../proposal"}
swc_ecma_transforms_react = {version = "0.10.0", path = "../react"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "../testing"}
swc_ecma_transforms_typescript = {version = "0.10.0", path = "../typescript"}
swc_ecma_transforms_compat = {version = "0.10.0", path = "../compat"}
swc_ecma_transforms_module = {version = "0.10.0", path = "../module"}
swc_ecma_transforms_proposal = {version = "0.10.0", path = "../proposal"}
swc_ecma_transforms_react = {version = "0.11.0", path = "../react"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "../testing"}
swc_ecma_transforms_typescript = {version = "0.11.0", path = "../typescript"}
testing = {version = "0.10.0", path = "../../../testing"}

View File

@ -1281,7 +1281,10 @@ fn ignore_result(e: Expr) -> Option<Expr> {
}
Expr::TaggedTpl(TaggedTpl {
span, tag, exprs, ..
span,
tag,
tpl: Tpl { exprs, .. },
..
}) if tag.is_pure_callee() => {
ignore_result(preserve_effects(span, *undefined(span), exprs))
}

View File

@ -811,7 +811,7 @@ impl VisitMut for Dce<'_> {
normal!(visit_mut_rest_pat, RestPat, arg);
normal!(visit_mut_seq_expr, SeqExpr, [], [exprs]);
normal!(visit_mut_setter_prop, SetterProp, key, param, body);
normal!(visit_mut_tagged_tpl, TaggedTpl, [tag], [exprs]);
normal!(visit_mut_tagged_tpl, TaggedTpl, tag, tpl);
normal!(visit_mut_tpl, Tpl, [], [exprs]);
normal!(visit_mut_yield_expr, YieldExpr, arg);
}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_proposal"
repository = "https://github.com/swc-project/swc.git"
version = "0.9.0"
version = "0.10.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -21,14 +21,14 @@ serde = {version = "1.0.118", features = ["derive"]}
smallvec = "1.6.0"
swc_atoms = {version = "0.2", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_loader = {version = "0.1.0", path = "../../loader", optional = true}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_loader = {version = "0.2.0", path = "../../loader", optional = true}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_transforms_compat = {version = "0.9.0", path = "../compat"}
swc_ecma_transforms_module = {version = "0.9.0", path = "../module"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "../testing"}
swc_ecma_transforms_compat = {version = "0.10.0", path = "../compat"}
swc_ecma_transforms_module = {version = "0.10.0", path = "../module"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "../testing"}

View File

@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_react"
repository = "https://github.com/swc-project/swc.git"
version = "0.10.0"
version = "0.11.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@ -18,14 +18,14 @@ serde = {version = "1.0.118", features = ["derive"]}
string_enum = {version = "0.3.1", path = "../../../macros/string_enum"}
swc_atoms = {version = "0.2", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_transforms_compat = {version = "0.9.0", path = "../compat/"}
swc_ecma_transforms_module = {version = "0.9.0", path = "../module"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "../testing/"}
swc_ecma_transforms_compat = {version = "0.10.0", path = "../compat/"}
swc_ecma_transforms_module = {version = "0.10.0", path = "../module"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "../testing/"}
testing = {version = "0.10.3", path = "../../../testing"}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_testing"
repository = "https://github.com/swc-project/swc.git"
version = "0.8.0"
version = "0.9.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -15,11 +15,11 @@ ansi_term = "0.12.1"
serde = "1"
serde_json = "1"
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_codegen = {version = "0.48.0", path = "../../codegen"}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_codegen = {version = "0.49.0", path = "../../codegen"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
tempfile = "3.1.0"
testing = {version = "0.10.3", path = "../../../testing"}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_typescript"
repository = "https://github.com/swc-project/swc.git"
version = "0.10.0"
version = "0.11.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@ -14,17 +14,17 @@ fxhash = "0.2.1"
serde = {version = "1.0.118", features = ["derive"]}
swc_atoms = {version = "0.2", path = "../../../atoms"}
swc_common = {version = "0.10.10", path = "../../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../../ast"}
swc_ecma_parser = {version = "0.50.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.8.0", path = "../base"}
swc_ecma_utils = {version = "0.31.0", path = "../../utils"}
swc_ecma_visit = {version = "0.26.0", path = "../../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../../ast"}
swc_ecma_parser = {version = "0.51.0", path = "../../parser"}
swc_ecma_transforms_base = {version = "0.9.0", path = "../base"}
swc_ecma_utils = {version = "0.32.0", path = "../../utils"}
swc_ecma_visit = {version = "0.27.0", path = "../../visit"}
[dev-dependencies]
swc_ecma_codegen = {version = "0.48.0", path = "../../codegen"}
swc_ecma_transforms_compat = {version = "0.9.0", path = "../compat"}
swc_ecma_transforms_module = {version = "0.9.0", path = "../module"}
swc_ecma_transforms_proposal = {version = "0.9.0", path = "../proposal/"}
swc_ecma_transforms_testing = {version = "0.8.0", path = "../testing"}
swc_ecma_codegen = {version = "0.49.0", path = "../../codegen"}
swc_ecma_transforms_compat = {version = "0.10.0", path = "../compat"}
swc_ecma_transforms_module = {version = "0.10.0", path = "../module"}
swc_ecma_transforms_proposal = {version = "0.10.0", path = "../proposal/"}
swc_ecma_transforms_testing = {version = "0.9.0", path = "../testing"}
testing = {version = "0.10.3", path = "../../../testing"}
walkdir = "2.3.1"

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_utils"
repository = "https://github.com/swc-project/swc.git"
version = "0.31.0"
version = "0.32.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -15,8 +15,8 @@ once_cell = "1"
scoped-tls = "1"
swc_atoms = {version = "0.2.0", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_visit = {version = "0.26.0", path = "../visit"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_ecma_visit = {version = "0.27.0", path = "../visit"}
unicode-xid = "0.2"
[dev-dependencies]

View File

@ -6,11 +6,11 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_visit"
repository = "https://github.com/swc-project/swc.git"
version = "0.26.0"
version = "0.27.0"
[dependencies]
num-bigint = {version = "0.2", features = ["serde"]}
swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.10.10", path = "../../common"}
swc_ecma_ast = {version = "0.40.0", path = "../ast"}
swc_ecma_ast = {version = "0.41.0", path = "../ast"}
swc_visit = {version = "0.2.3", path = "../../visit"}

View File

@ -683,9 +683,8 @@ define!({
pub struct TaggedTpl {
pub span: Span,
pub tag: Box<Expr>,
pub exprs: Vec<Box<Expr>>,
pub quasis: Vec<TplElement>,
pub type_params: Option<TsTypeParamInstantiation>,
pub tpl: Tpl,
}
pub struct TplElement {
pub span: Span,