From 14bccb999f2cbf86e92790bb9f65c885e22fb13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 20:48:02 +0900 Subject: [PATCH 01/80] Declare `IdentName` --- crates/swc_ecma_ast/src/ident.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index f043fda3dbb1..13f0e73506d4 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -353,6 +353,16 @@ impl Ident { } } +#[ast_node("IdentifierName")] +#[derive(Eq, Hash, Default)] +pub struct IdentName { + #[cfg_attr(feature = "__rkyv", omit_bounds)] + pub span: Span, + + #[cfg_attr(feature = "serde-impl", serde(rename = "value"))] + pub sym: Atom, +} + /// See [Ident] for documentation. pub type Id = (Atom, SyntaxContext); From cdf3239ebc24a8dc828abcde190b31bdc8ba4a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 20:49:03 +0900 Subject: [PATCH 02/80] re-export --- crates/swc_ecma_ast/src/lib.rs | 153 +-------------------------------- 1 file changed, 2 insertions(+), 151 deletions(-) diff --git a/crates/swc_ecma_ast/src/lib.rs b/crates/swc_ecma_ast/src/lib.rs index 139d554802d4..6a88a43ae4ad 100644 --- a/crates/swc_ecma_ast/src/lib.rs +++ b/crates/swc_ecma_ast/src/lib.rs @@ -14,60 +14,8 @@ use serde::{Deserialize, Serialize}; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; pub use self::{ - class::{ - AutoAccessor, Class, ClassMember, ClassMethod, ClassProp, Constructor, Decorator, Key, - MethodKind, PrivateMethod, PrivateProp, StaticBlock, - }, - decl::{ClassDecl, Decl, FnDecl, UsingDecl, VarDecl, VarDeclKind, VarDeclarator}, - expr::*, - function::{Function, Param, ParamOrTsParamProp}, - ident::{BindingIdent, EsReserved, Id, Ident, PrivateName}, - jsx::{ - JSXAttr, JSXAttrName, JSXAttrOrSpread, JSXAttrValue, JSXClosingElement, JSXClosingFragment, - JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, - JSXFragment, JSXMemberExpr, JSXNamespacedName, JSXObject, JSXOpeningElement, - JSXOpeningFragment, JSXSpreadChild, JSXText, - }, - list::ListFormat, - lit::{BigInt, Bool, Lit, Null, Number, Regex, Str}, - module::{Module, ModuleItem, Program, ReservedUnused, Script}, - module_decl::{ - DefaultDecl, ExportAll, ExportDecl, ExportDefaultDecl, ExportDefaultExpr, - ExportDefaultSpecifier, ExportNamedSpecifier, ExportNamespaceSpecifier, ExportSpecifier, - ImportDecl, ImportDefaultSpecifier, ImportNamedSpecifier, ImportPhase, ImportSpecifier, - ImportStarAsSpecifier, ModuleDecl, ModuleExportName, NamedExport, - }, - operators::{AssignOp, BinaryOp, UnaryOp, UpdateOp}, - pat::{ - ArrayPat, AssignPat, AssignPatProp, KeyValuePatProp, ObjectPat, ObjectPatProp, Pat, RestPat, - }, - prop::{ - AssignProp, ComputedPropName, GetterProp, KeyValueProp, MethodProp, Prop, PropName, - SetterProp, - }, - source_map::{SourceMapperExt, SpanExt}, - stmt::{ - BlockStmt, BreakStmt, CatchClause, ContinueStmt, DebuggerStmt, DoWhileStmt, EmptyStmt, - ExprStmt, ForHead, ForInStmt, ForOfStmt, ForStmt, IfStmt, LabeledStmt, ReturnStmt, Stmt, - SwitchCase, SwitchStmt, ThrowStmt, TryStmt, VarDeclOrExpr, WhileStmt, WithStmt, - }, - typescript::{ - Accessibility, TruePlusMinus, TsArrayType, TsAsExpr, TsCallSignatureDecl, - TsConditionalType, TsConstAssertion, TsConstructSignatureDecl, TsConstructorType, - TsEntityName, TsEnumDecl, TsEnumMember, TsEnumMemberId, TsExportAssignment, - TsExprWithTypeArgs, TsExternalModuleRef, TsFnOrConstructorType, TsFnParam, TsFnType, - TsGetterSignature, TsImportEqualsDecl, TsImportType, TsIndexSignature, TsIndexedAccessType, - TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDecl, TsIntersectionType, - TsKeywordType, TsKeywordTypeKind, TsLit, TsLitType, TsMappedType, TsMethodSignature, - TsModuleBlock, TsModuleDecl, TsModuleName, TsModuleRef, TsNamespaceBody, TsNamespaceDecl, - TsNamespaceExportDecl, TsNonNullExpr, TsOptionalType, TsParamProp, TsParamPropParam, - TsParenthesizedType, TsPropertySignature, TsQualifiedName, TsRestType, TsSatisfiesExpr, - TsSetterSignature, TsThisType, TsThisTypeOrIdent, TsTplLitType, TsTupleElement, - TsTupleType, TsType, TsTypeAliasDecl, TsTypeAnn, TsTypeAssertion, TsTypeElement, TsTypeLit, - TsTypeOperator, TsTypeOperatorOp, TsTypeParam, TsTypeParamDecl, TsTypeParamInstantiation, - TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeRef, TsUnionOrIntersectionType, - TsUnionType, - }, + class::*, decl::*, expr::*, function::*, ident::*, jsx::*, list::*, lit::*, module::*, + module_decl::*, operators::*, pat::*, prop::*, source_map::*, stmt::*, typescript::*, }; #[macro_use] @@ -141,100 +89,3 @@ impl EsVersion { EsVersion::EsNext } } - -/// Warning: The particular implementation of serialization and deserialization -/// of the ast nodes may change in the future, and so these types would be -/// removed. It's safe to say they will be serializable in some form or another, -/// but not necessarily with these specific types underlying the implementation. -/// As such, *use these types at your own risk*. -#[cfg(feature = "rkyv-impl")] -#[doc(hidden)] -pub use self::{ - class::{ - ArchivedAutoAccessor, ArchivedClass, ArchivedClassMember, ArchivedClassMethod, - ArchivedClassProp, ArchivedConstructor, ArchivedDecorator, ArchivedKey, ArchivedMethodKind, - ArchivedPrivateMethod, ArchivedPrivateProp, ArchivedStaticBlock, - }, - decl::{ - ArchivedClassDecl, ArchivedDecl, ArchivedFnDecl, ArchivedUsingDecl, ArchivedVarDecl, - ArchivedVarDeclKind, ArchivedVarDeclarator, - }, - expr::{ - ArchivedArrayLit, ArchivedArrowExpr, ArchivedAssignExpr, ArchivedAssignTarget, - ArchivedAwaitExpr, ArchivedBinExpr, ArchivedBlockStmtOrExpr, ArchivedCallExpr, - ArchivedCallee, ArchivedClassExpr, ArchivedCondExpr, ArchivedExpr, ArchivedExprOrSpread, - ArchivedFnExpr, ArchivedImport, ArchivedMemberExpr, ArchivedMemberProp, - ArchivedMetaPropExpr, ArchivedMetaPropKind, ArchivedNewExpr, ArchivedObjectLit, - ArchivedOptCall, ArchivedOptChainBase, ArchivedOptChainExpr, ArchivedParenExpr, - ArchivedPropOrSpread, ArchivedSeqExpr, ArchivedSpreadElement, ArchivedSuper, - ArchivedSuperProp, ArchivedSuperPropExpr, ArchivedTaggedTpl, ArchivedThisExpr, ArchivedTpl, - ArchivedTplElement, ArchivedUnaryExpr, ArchivedUpdateExpr, ArchivedYieldExpr, - }, - function::{ArchivedFunction, ArchivedParam, ArchivedParamOrTsParamProp}, - ident::{ArchivedBindingIdent, ArchivedIdent, ArchivedPrivateName}, - jsx::{ - ArchivedJSXAttr, ArchivedJSXAttrName, ArchivedJSXAttrOrSpread, ArchivedJSXAttrValue, - ArchivedJSXClosingElement, ArchivedJSXClosingFragment, ArchivedJSXElement, - ArchivedJSXElementChild, ArchivedJSXElementName, ArchivedJSXEmptyExpr, ArchivedJSXExpr, - ArchivedJSXExprContainer, ArchivedJSXFragment, ArchivedJSXMemberExpr, - ArchivedJSXNamespacedName, ArchivedJSXObject, ArchivedJSXOpeningElement, - ArchivedJSXOpeningFragment, ArchivedJSXSpreadChild, ArchivedJSXText, - }, - lit::{ - ArchivedBigInt, ArchivedBool, ArchivedLit, ArchivedNull, ArchivedNumber, ArchivedRegex, - ArchivedStr, - }, - module::{ - ArchivedModule, ArchivedModuleItem, ArchivedProgram, ArchivedReservedUnused, ArchivedScript, - }, - module_decl::{ - ArchivedDefaultDecl, ArchivedExportAll, ArchivedExportDecl, ArchivedExportDefaultDecl, - ArchivedExportDefaultExpr, ArchivedExportDefaultSpecifier, ArchivedExportNamedSpecifier, - ArchivedExportNamespaceSpecifier, ArchivedExportSpecifier, ArchivedImportDecl, - ArchivedImportDefaultSpecifier, ArchivedImportNamedSpecifier, ArchivedImportSpecifier, - ArchivedImportStarAsSpecifier, ArchivedModuleDecl, ArchivedModuleExportName, - ArchivedNamedExport, - }, - operators::{ArchivedAssignOp, ArchivedBinaryOp, ArchivedUnaryOp, ArchivedUpdateOp}, - pat::{ - ArchivedArrayPat, ArchivedAssignPat, ArchivedAssignPatProp, ArchivedKeyValuePatProp, - ArchivedObjectPat, ArchivedObjectPatProp, ArchivedPat, ArchivedRestPat, - }, - prop::{ - ArchivedAssignProp, ArchivedComputedPropName, ArchivedGetterProp, ArchivedKeyValueProp, - ArchivedMethodProp, ArchivedProp, ArchivedPropName, ArchivedSetterProp, - }, - stmt::{ - ArchivedBlockStmt, ArchivedBreakStmt, ArchivedCatchClause, ArchivedContinueStmt, - ArchivedDebuggerStmt, ArchivedDoWhileStmt, ArchivedEmptyStmt, ArchivedExprStmt, - ArchivedForHead, ArchivedForInStmt, ArchivedForOfStmt, ArchivedForStmt, ArchivedIfStmt, - ArchivedLabeledStmt, ArchivedReturnStmt, ArchivedStmt, ArchivedSwitchCase, - ArchivedSwitchStmt, ArchivedThrowStmt, ArchivedTryStmt, ArchivedVarDeclOrExpr, - ArchivedWhileStmt, ArchivedWithStmt, - }, - typescript::{ - ArchivedAccessibility, ArchivedTruePlusMinus, ArchivedTsArrayType, ArchivedTsAsExpr, - ArchivedTsCallSignatureDecl, ArchivedTsConditionalType, ArchivedTsConstAssertion, - ArchivedTsConstructSignatureDecl, ArchivedTsConstructorType, ArchivedTsEntityName, - ArchivedTsEnumDecl, ArchivedTsEnumMember, ArchivedTsEnumMemberId, - ArchivedTsExportAssignment, ArchivedTsExprWithTypeArgs, ArchivedTsExternalModuleRef, - ArchivedTsFnOrConstructorType, ArchivedTsFnParam, ArchivedTsFnType, - ArchivedTsGetterSignature, ArchivedTsImportEqualsDecl, ArchivedTsImportType, - ArchivedTsIndexSignature, ArchivedTsIndexedAccessType, ArchivedTsInferType, - ArchivedTsInstantiation, ArchivedTsInterfaceBody, ArchivedTsInterfaceDecl, - ArchivedTsIntersectionType, ArchivedTsKeywordType, ArchivedTsKeywordTypeKind, - ArchivedTsLit, ArchivedTsLitType, ArchivedTsMappedType, ArchivedTsMethodSignature, - ArchivedTsModuleBlock, ArchivedTsModuleDecl, ArchivedTsModuleName, ArchivedTsModuleRef, - ArchivedTsNamespaceBody, ArchivedTsNamespaceDecl, ArchivedTsNamespaceExportDecl, - ArchivedTsNonNullExpr, ArchivedTsOptionalType, ArchivedTsParamProp, - ArchivedTsParamPropParam, ArchivedTsParenthesizedType, ArchivedTsPropertySignature, - ArchivedTsQualifiedName, ArchivedTsRestType, ArchivedTsSatisfiesExpr, - ArchivedTsSetterSignature, ArchivedTsThisType, ArchivedTsThisTypeOrIdent, - ArchivedTsTplLitType, ArchivedTsTupleElement, ArchivedTsTupleType, ArchivedTsType, - ArchivedTsTypeAliasDecl, ArchivedTsTypeAnn, ArchivedTsTypeAssertion, ArchivedTsTypeElement, - ArchivedTsTypeLit, ArchivedTsTypeOperator, ArchivedTsTypeOperatorOp, ArchivedTsTypeParam, - ArchivedTsTypeParamDecl, ArchivedTsTypeParamInstantiation, ArchivedTsTypePredicate, - ArchivedTsTypeQuery, ArchivedTsTypeQueryExpr, ArchivedTsTypeRef, - ArchivedTsUnionOrIntersectionType, ArchivedTsUnionType, - }, -}; From 02b25a2f4342599cdb5f5ac96fe50e9dff0adbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 20:51:29 +0900 Subject: [PATCH 03/80] More work for IdentName --- crates/swc_ecma_ast/src/class.rs | 5 +++-- crates/swc_ecma_ast/src/ident.rs | 29 +++++++++++++++++++++++++++-- crates/swc_ecma_ast/src/prop.rs | 4 ++-- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/crates/swc_ecma_ast/src/class.rs b/crates/swc_ecma_ast/src/class.rs index cfc67a68e91d..4574c0edb5bb 100644 --- a/crates/swc_ecma_ast/src/class.rs +++ b/crates/swc_ecma_ast/src/class.rs @@ -11,7 +11,7 @@ use crate::{ Accessibility, TsExprWithTypeArgs, TsIndexSignature, TsTypeAnn, TsTypeParamDecl, TsTypeParamInstantiation, }, - BigInt, ComputedPropName, EmptyStmt, Id, Ident, Number, + BigInt, ComputedPropName, EmptyStmt, Id, Ident, IdentName, Number, }; #[ast_node] @@ -295,7 +295,8 @@ pub enum Key { Public(PropName), } -bridge_from!(Key, PropName, Ident); +bridge_from!(Key, IdentName, Ident); +bridge_from!(Key, PropName, IdentName); bridge_from!(Key, PropName, Id); bridge_from!(Key, PropName, Number); bridge_from!(Key, PropName, ComputedPropName); diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 13f0e73506d4..baa1183cf175 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -353,8 +353,8 @@ impl Ident { } } -#[ast_node("IdentifierName")] -#[derive(Eq, Hash, Default)] +#[ast_node("Identifier")] +#[derive(Eq, Hash, Default, EqIgnoreSpan)] pub struct IdentName { #[cfg_attr(feature = "__rkyv", omit_bounds)] pub span: Span, @@ -363,6 +363,31 @@ pub struct IdentName { pub sym: Atom, } +impl Take for IdentName { + fn dummy() -> Self { + Default::default() + } +} + +impl From for IdentName { + fn from(i: Ident) -> Self { + IdentName { + span: i.span, + sym: i.sym, + } + } +} + +impl From for Ident { + fn from(i: IdentName) -> Self { + Ident { + span: i.span, + sym: i.sym, + ..Default::default() + } + } +} + /// See [Ident] for documentation. pub type Id = (Atom, SyntaxContext); diff --git a/crates/swc_ecma_ast/src/prop.rs b/crates/swc_ecma_ast/src/prop.rs index 1d28a5d9bd93..6c820fa836c9 100644 --- a/crates/swc_ecma_ast/src/prop.rs +++ b/crates/swc_ecma_ast/src/prop.rs @@ -8,7 +8,7 @@ use crate::{ lit::{BigInt, Number, Str}, stmt::BlockStmt, typescript::TsTypeAnn, - Id, MemberProp, Pat, + Id, IdentName, MemberProp, Pat, }; #[ast_node] @@ -96,7 +96,7 @@ pub struct MethodProp { #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub enum PropName { #[tag("Identifier")] - Ident(Ident), + Ident(IdentName), /// String literal. #[tag("StringLiteral")] Str(Str), From ace465fcd8eb3e4b58399b3402308a5ededd291d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 20:53:00 +0900 Subject: [PATCH 04/80] span --- crates/swc_ecma_ast/src/expr.rs | 10 ++-------- crates/swc_ecma_ast/src/jsx.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs index 6180783e8d50..3737efa12b9a 100644 --- a/crates/swc_ecma_ast/src/expr.rs +++ b/crates/swc_ecma_ast/src/expr.rs @@ -315,18 +315,12 @@ impl Expr { } /// #Note - /// - /// This preserves SyntaxContext of [`Expr::Ident`], and noop for - /// [`Expr::JSXMember`] and [`Expr::JSXNamespacedName`]. pub fn with_span(mut self, span: Span) -> Expr { self.set_span(span); self } /// # Note - /// - /// This preserves SyntaxContext of [`Expr::Ident`], and noop for - /// [`Expr::JSXMember`] and [`Expr::JSXNamespacedName`]. pub fn set_span(&mut self, span: Span) { match self { @@ -362,8 +356,8 @@ impl Expr { Expr::MetaProp(e) => e.span = span, Expr::Await(e) => e.span = span, Expr::Paren(e) => e.span = span, - Expr::JSXMember(..) => {} - Expr::JSXNamespacedName(..) => {} + Expr::JSXMember(e) => e.span = span, + Expr::JSXNamespacedName(e) => e.span = span, Expr::JSXEmpty(e) => e.span = span, Expr::JSXElement(e) => e.span = span, Expr::JSXFragment(e) => e.span = span, diff --git a/crates/swc_ecma_ast/src/jsx.rs b/crates/swc_ecma_ast/src/jsx.rs index cd94e4db1211..5c4f4f4a6b64 100644 --- a/crates/swc_ecma_ast/src/jsx.rs +++ b/crates/swc_ecma_ast/src/jsx.rs @@ -7,6 +7,7 @@ use crate::{ ident::Ident, lit::Lit, typescript::TsTypeParamInstantiation, + IdentName, }; /// Used for `obj` property of `JSXMemberExpr`. @@ -25,13 +26,13 @@ pub enum JSXObject { #[derive(Eq, Hash, EqIgnoreSpan)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct JSXMemberExpr { + pub span: Span, + #[cfg_attr(feature = "serde-impl", serde(rename = "object"))] - #[span(lo)] pub obj: JSXObject, #[cfg_attr(feature = "serde-impl", serde(rename = "property"))] - #[span(hi)] - pub prop: Ident, + pub prop: IdentName, } /// XML-based namespace syntax: @@ -39,11 +40,10 @@ pub struct JSXMemberExpr { #[derive(Eq, Hash, EqIgnoreSpan)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct JSXNamespacedName { + pub span: Span, #[cfg_attr(feature = "serde-impl", serde(rename = "namespace"))] - #[span(lo)] pub ns: Ident, - #[span(hi)] - pub name: Ident, + pub name: IdentName, } #[ast_node("JSXEmptyExpression")] From e9557eb5060e4a19ae6b9d66a21275faca0c488f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 20:57:56 +0900 Subject: [PATCH 05/80] IdentName --- crates/swc_ecma_ast/src/expr.rs | 16 ++++++++-------- crates/swc_ecma_ast/src/ident.rs | 13 +++++++++++++ crates/swc_ecma_ast/src/jsx.rs | 2 +- crates/swc_ecma_ast/src/prop.rs | 3 +-- crates/swc_ecma_ast/src/stmt.rs | 8 ++++---- crates/swc_ecma_ast/src/typescript.rs | 7 +++---- 6 files changed, 30 insertions(+), 19 deletions(-) diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs index 3737efa12b9a..9d7fd9631ade 100644 --- a/crates/swc_ecma_ast/src/expr.rs +++ b/crates/swc_ecma_ast/src/expr.rs @@ -22,8 +22,8 @@ use crate::{ TsAsExpr, TsConstAssertion, TsInstantiation, TsNonNullExpr, TsSatisfiesExpr, TsTypeAnn, TsTypeAssertion, TsTypeParamDecl, TsTypeParamInstantiation, }, - ArrayPat, BindingIdent, ComputedPropName, Id, ImportPhase, Invalid, KeyValueProp, Number, - ObjectPat, PropName, Str, + ArrayPat, BindingIdent, ComputedPropName, Id, IdentName, ImportPhase, Invalid, KeyValueProp, + Number, ObjectPat, PropName, Str, }; #[ast_node(no_clone)] @@ -532,7 +532,7 @@ impl ObjectLit { Prop::KeyValue(kv) => { let key = match &kv.key { PropName::Ident(i) => i.clone(), - PropName::Str(s) => Ident::new_no_ctxt(s.value.clone(), s.span), + PropName::Str(s) => IdentName::new_no(s.value.clone(), s.span), _ => return None, }; @@ -598,7 +598,7 @@ impl ImportWith { #[derive(Debug, Clone, PartialEq, Eq, Hash, EqIgnoreSpan)] pub struct ImportWithItem { - pub key: Ident, + pub key: IdentName, pub value: Str, } @@ -844,7 +844,7 @@ pub struct MemberExpr { #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub enum MemberProp { #[tag("Identifier")] - Ident(Ident), + Ident(IdentName), #[tag("PrivateName")] PrivateName(PrivateName), #[tag("Computed")] @@ -874,7 +874,7 @@ pub struct SuperPropExpr { #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub enum SuperProp { #[tag("Identifier")] - Ident(Ident), + Ident(IdentName), #[tag("Computed")] Computed(ComputedPropName), } @@ -897,13 +897,13 @@ impl Take for MemberProp { impl Default for MemberProp { fn default() -> Self { - MemberProp::Ident(Ident::dummy()) + MemberProp::Ident(Default::default()) } } impl Take for SuperProp { fn dummy() -> Self { - SuperProp::Ident(Ident::dummy()) + SuperProp::Ident(Default::default()) } } diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index baa1183cf175..1eeca221aca7 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -363,6 +363,18 @@ pub struct IdentName { pub sym: Atom, } +impl AsRef for IdentName { + fn as_ref(&self) -> &str { + &self.sym + } +} + +impl IdentName { + pub const fn new(sym: Atom, span: Span) -> Self { + Self { span, sym } + } +} + impl Take for IdentName { fn dummy() -> Self { Default::default() @@ -559,6 +571,7 @@ pub trait EsReserved: AsRef { } impl EsReserved for Atom {} +impl EsReserved for IdentName {} impl EsReserved for Ident {} impl EsReserved for BindingIdent {} impl EsReserved for &'_ str {} diff --git a/crates/swc_ecma_ast/src/jsx.rs b/crates/swc_ecma_ast/src/jsx.rs index 5c4f4f4a6b64..f7286b2e6f2d 100644 --- a/crates/swc_ecma_ast/src/jsx.rs +++ b/crates/swc_ecma_ast/src/jsx.rs @@ -166,7 +166,7 @@ pub struct JSXAttr { #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub enum JSXAttrName { #[tag("Identifier")] - Ident(Ident), + Ident(IdentName), #[tag("JSXNamespacedName")] JSXNamespacedName(JSXNamespacedName), } diff --git a/crates/swc_ecma_ast/src/prop.rs b/crates/swc_ecma_ast/src/prop.rs index 6c820fa836c9..29a1f409e6c2 100644 --- a/crates/swc_ecma_ast/src/prop.rs +++ b/crates/swc_ecma_ast/src/prop.rs @@ -52,9 +52,8 @@ pub struct KeyValueProp { #[derive(Eq, Hash, EqIgnoreSpan)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct AssignProp { - #[span(lo)] + pub span: Span, pub key: Ident, - #[span(hi)] pub value: Box, } diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index eb341066a167..7a6f5e8544f3 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -6,7 +6,7 @@ use crate::{ expr::Expr, ident::Ident, pat::Pat, - Lit, Str, UsingDecl, + IdentName, Lit, Str, UsingDecl, }; /// Use when only block statements are allowed. @@ -227,7 +227,7 @@ pub struct ReturnStmt { #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct LabeledStmt { pub span: Span, - pub label: Ident, + pub label: IdentName, pub body: Box, } @@ -237,7 +237,7 @@ pub struct LabeledStmt { pub struct BreakStmt { pub span: Span, #[cfg_attr(feature = "serde-impl", serde(default))] - pub label: Option, + pub label: Option, } #[ast_node("ContinueStatement")] @@ -246,7 +246,7 @@ pub struct BreakStmt { pub struct ContinueStmt { pub span: Span, #[cfg_attr(feature = "serde-impl", serde(default))] - pub label: Option, + pub label: Option, } #[ast_node("IfStatement")] diff --git a/crates/swc_ecma_ast/src/typescript.rs b/crates/swc_ecma_ast/src/typescript.rs index e94e6c7cb0d0..7380b417547a 100644 --- a/crates/swc_ecma_ast/src/typescript.rs +++ b/crates/swc_ecma_ast/src/typescript.rs @@ -21,7 +21,7 @@ use crate::{ lit::{Bool, Number, Str}, module::ModuleItem, pat::{ArrayPat, AssignPat, ObjectPat, Pat, RestPat}, - BigInt, BindingIdent, TplElement, + BigInt, BindingIdent, IdentName, TplElement, }; #[ast_node("TsTypeAnnotation")] @@ -104,10 +104,9 @@ pub enum TsParamPropParam { #[derive(Eq, Hash, EqIgnoreSpan)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct TsQualifiedName { - #[span(lo)] + pub span: Span, pub left: TsEntityName, - #[span(hi)] - pub right: Ident, + pub right: IdentName, } #[ast_node] From c100cba697774f6194af1804e81a7a477adb1a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 21:00:35 +0900 Subject: [PATCH 06/80] fix AST --- crates/swc_ecma_ast/src/expr.rs | 2 +- crates/swc_ecma_ast/src/prop.rs | 1 + crates/swc_ecma_ast/src/stmt.rs | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs index 9d7fd9631ade..49403bec8d2c 100644 --- a/crates/swc_ecma_ast/src/expr.rs +++ b/crates/swc_ecma_ast/src/expr.rs @@ -532,7 +532,7 @@ impl ObjectLit { Prop::KeyValue(kv) => { let key = match &kv.key { PropName::Ident(i) => i.clone(), - PropName::Str(s) => IdentName::new_no(s.value.clone(), s.span), + PropName::Str(s) => IdentName::new(s.value.clone(), s.span), _ => return None, }; diff --git a/crates/swc_ecma_ast/src/prop.rs b/crates/swc_ecma_ast/src/prop.rs index 29a1f409e6c2..ac6396498869 100644 --- a/crates/swc_ecma_ast/src/prop.rs +++ b/crates/swc_ecma_ast/src/prop.rs @@ -108,6 +108,7 @@ pub enum PropName { BigInt(BigInt), } +bridge_from!(PropName, IdentName, Ident); bridge_from!(PropName, Ident, Id); impl Default for PropName { diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index 7a6f5e8544f3..b1d97563962d 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -4,7 +4,6 @@ use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span, SyntaxContext, use crate::{ decl::{Decl, VarDecl}, expr::Expr, - ident::Ident, pat::Pat, IdentName, Lit, Str, UsingDecl, }; From 423c11ac94e6d81bdd35aa5adc4b407814cc1d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 21:02:01 +0900 Subject: [PATCH 07/80] Fix more --- crates/swc_ecma_codegen/src/lib.rs | 9 ++++++--- crates/swc_ecma_parser/src/parser/class_and_fn.rs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/swc_ecma_codegen/src/lib.rs b/crates/swc_ecma_codegen/src/lib.rs index f0ccfdf384a5..3f6036138e4c 100644 --- a/crates/swc_ecma_codegen/src/lib.rs +++ b/crates/swc_ecma_codegen/src/lib.rs @@ -1714,9 +1714,7 @@ where emit!(n.key); - // emit for a computed property, but not an identifier already marked as - // optional - if n.is_optional && !n.key.as_ident().map(|i| i.optional).unwrap_or(false) { + if n.is_optional { punct!("?"); } @@ -2363,6 +2361,11 @@ where self.emit_ident_like(ident.span, &ident.sym, ident.optional)?; } + #[emitter] + fn emit_ident_name(&mut self, ident: &IdentName) -> Result { + self.emit_ident_like(ident.span, &ident.sym, false)?; + } + fn emit_ident_like(&mut self, span: Span, sym: &Atom, optional: bool) -> Result { // TODO: Use write_symbol when ident is a symbol. self.emit_leading_comments_of_span(span, false)?; diff --git a/crates/swc_ecma_parser/src/parser/class_and_fn.rs b/crates/swc_ecma_parser/src/parser/class_and_fn.rs index 17f6aed4ff07..c7dc5f26288f 100644 --- a/crates/swc_ecma_parser/src/parser/class_and_fn.rs +++ b/crates/swc_ecma_parser/src/parser/class_and_fn.rs @@ -397,7 +397,7 @@ impl Parser { let declare_token = if declare { // Handle declare(){} if self.is_class_method() { - let key = Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = Key::Public(PropName::Ident(IdentName::new( "declare".into(), span!(self, start), ))); From df6dc83735c5ee9ddbd86919289298e4fd5737fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 21:07:57 +0900 Subject: [PATCH 08/80] Fix more --- .../src/parser/class_and_fn.rs | 20 ++++++++----------- crates/swc_ecma_parser/src/parser/expr.rs | 2 +- crates/swc_typescript/src/fast_dts/mod.rs | 4 +++- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/class_and_fn.rs b/crates/swc_ecma_parser/src/parser/class_and_fn.rs index c7dc5f26288f..005c02ffe737 100644 --- a/crates/swc_ecma_parser/src/parser/class_and_fn.rs +++ b/crates/swc_ecma_parser/src/parser/class_and_fn.rs @@ -423,7 +423,7 @@ impl Parser { { // Property named `declare` - let key = Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = Key::Public(PropName::Ident(IdentName::new( "declare".into(), span!(self, start), ))); @@ -471,7 +471,7 @@ impl Parser { if let Some(accessor_token) = accessor_token { // Handle accessor(){} if self.is_class_method() { - let key = Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = Key::Public(PropName::Ident(IdentName::new( "accessor".into(), accessor_token, ))); @@ -497,7 +497,7 @@ impl Parser { { // Property named `accessor` - let key = Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = Key::Public(PropName::Ident(IdentName::new( "accessor".into(), accessor_token, ))); @@ -522,7 +522,7 @@ impl Parser { if let Some(static_token) = static_token { // Handle static(){} if self.is_class_method() { - let key = Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = Key::Public(PropName::Ident(IdentName::new( "static".into(), static_token, ))); @@ -553,7 +553,7 @@ impl Parser { // {} let is_parsing_static_blocks = is!(self, '{'); if !is_parsing_static_blocks { - let key = Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = Key::Public(PropName::Ident(IdentName::new( "static".into(), static_token, ))); @@ -753,8 +753,8 @@ impl Parser { } trace_cur!(self, parse_class_member_with_is_static__normal_class_member); - let mut key = if readonly.is_some() && is_one_of!(self, '!', ':') { - Key::Public(PropName::Ident(Ident::new_no_ctxt( + let key = if readonly.is_some() && is_one_of!(self, '!', ':') { + Key::Public(PropName::Ident(IdentName::new( "readonly".into(), readonly.unwrap(), ))) @@ -763,10 +763,6 @@ impl Parser { }; let is_optional = self.input.syntax().typescript() && eat!(self, '?'); - if let Key::Public(PropName::Ident(i)) = &mut key { - i.optional = is_optional; - } - if self.is_class_method() { // handle a(){} / get(){} / set(){} / async(){} @@ -1733,7 +1729,7 @@ impl IsSimpleParameterList for Vec { fn is_constructor(key: &Key) -> bool { matches!( &key, - Key::Public(PropName::Ident(Ident { + Key::Public(PropName::Ident(IdentName { sym: constructor, .. })) | Key::Public(PropName::Str(Str { diff --git a/crates/swc_ecma_parser/src/parser/expr.rs b/crates/swc_ecma_parser/src/parser/expr.rs index 7fb932a8d14d..5edc405242a7 100644 --- a/crates/swc_ecma_parser/src/parser/expr.rs +++ b/crates/swc_ecma_parser/src/parser/expr.rs @@ -1423,7 +1423,7 @@ impl Parser { return Ok(( Box::new(match obj { callee @ Callee::Import(_) => match prop { - MemberProp::Ident(Ident { sym, .. }) => { + MemberProp::Ident(IdentName { sym, .. }) => { if !self.ctx().can_be_module { let span = span!(self, start); self.emit_err(span, SyntaxError::ImportMetaInScript); diff --git a/crates/swc_typescript/src/fast_dts/mod.rs b/crates/swc_typescript/src/fast_dts/mod.rs index 95f9758c81a7..63723aac8727 100644 --- a/crates/swc_typescript/src/fast_dts/mod.rs +++ b/crates/swc_typescript/src/fast_dts/mod.rs @@ -294,7 +294,9 @@ impl FastDts { match prop { Prop::KeyValue(key_value) => { let (key, computed) = match key_value.key { - PropName::Ident(ident) => (Expr::Ident(ident), false), + PropName::Ident(ident) => { + (Expr::Ident(ident.into()), false) + } PropName::Str(str_prop) => { (Expr::Lit(Lit::Str(str_prop)), false) } From cea42337f2ca29476084bd2a7a1fba3390d57e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 21:18:17 +0900 Subject: [PATCH 09/80] IdentName --- crates/swc_ecma_ast/src/jsx.rs | 2 +- crates/swc_ecma_parser/src/parser/jsx.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/jsx.rs b/crates/swc_ecma_ast/src/jsx.rs index f7286b2e6f2d..41055f03b864 100644 --- a/crates/swc_ecma_ast/src/jsx.rs +++ b/crates/swc_ecma_ast/src/jsx.rs @@ -42,7 +42,7 @@ pub struct JSXMemberExpr { pub struct JSXNamespacedName { pub span: Span, #[cfg_attr(feature = "serde-impl", serde(rename = "namespace"))] - pub ns: Ident, + pub ns: IdentName, pub name: IdentName, } diff --git a/crates/swc_ecma_parser/src/parser/jsx.rs b/crates/swc_ecma_parser/src/parser/jsx.rs index 1064809c03fd..3fb64e3a3eea 100644 --- a/crates/swc_ecma_parser/src/parser/jsx.rs +++ b/crates/swc_ecma_parser/src/parser/jsx.rs @@ -30,14 +30,16 @@ impl Parser { pub(super) fn parse_jsx_namespaced_name(&mut self) -> PResult { debug_assert!(self.input.syntax().jsx()); trace_cur!(self, parse_jsx_namespaced_name); + let start = cur_pos!(self); let ns = self.parse_jsx_ident()?; if !eat!(self, ':') { - return Ok(JSXAttrName::Ident(ns)); + return Ok(JSXAttrName::Ident(ns.into())); } let name = self.parse_jsx_ident()?; Ok(JSXAttrName::JSXNamespacedName(JSXNamespacedName { + span: Span::new(start, name.span.hi), ns, name, })) @@ -48,6 +50,7 @@ impl Parser { pub(super) fn parse_jsx_element_name(&mut self) -> PResult { debug_assert!(self.input.syntax().jsx()); trace_cur!(self, parse_jsx_element_name); + let start = cur_pos!(self); let mut node = match self.parse_jsx_namespaced_name()? { JSXAttrName::Ident(i) => JSXElementName::Ident(i), @@ -56,6 +59,7 @@ impl Parser { while eat!(self, '.') { let prop = self.parse_jsx_ident()?; let new_node = JSXElementName::JSXMemberExpr(JSXMemberExpr { + span: span!(self, start), obj: match node { JSXElementName::Ident(i) => JSXObject::Ident(i), JSXElementName::JSXMemberExpr(i) => JSXObject::JSXMemberExpr(Box::new(i)), From 39062851ada9da72d72501b7f1c5be00b51b7743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 21:35:28 +0900 Subject: [PATCH 10/80] More fix --- crates/swc_ecma_parser/src/parser/ident.rs | 4 ++-- crates/swc_ecma_parser/src/parser/jsx.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/ident.rs b/crates/swc_ecma_parser/src/parser/ident.rs index 80b7bf7cd6cb..03cd5bea6baa 100644 --- a/crates/swc_ecma_parser/src/parser/ident.rs +++ b/crates/swc_ecma_parser/src/parser/ident.rs @@ -52,7 +52,7 @@ impl Parser { /// Use this when spec says "IdentifierName". /// This allows idents like `catch`. - pub(super) fn parse_ident_name(&mut self) -> PResult { + pub(super) fn parse_ident_name(&mut self) -> PResult { let in_type = self.ctx().in_type; let start = cur_pos!(self); @@ -71,7 +71,7 @@ impl Parser { _ => syntax_error!(self, SyntaxError::ExpectedIdent), }; - Ok(Ident::new_no_ctxt(w, span!(self, start))) + Ok(IdentName::new(w, span!(self, start))) } // https://tc39.es/ecma262/#prod-ModuleExportName diff --git a/crates/swc_ecma_parser/src/parser/jsx.rs b/crates/swc_ecma_parser/src/parser/jsx.rs index 3fb64e3a3eea..41b74471f0d7 100644 --- a/crates/swc_ecma_parser/src/parser/jsx.rs +++ b/crates/swc_ecma_parser/src/parser/jsx.rs @@ -452,11 +452,11 @@ fn get_qualified_jsx_name(name: &JSXElementName) -> JsWord { } match *name { JSXElementName::Ident(ref i) => i.sym.clone(), - JSXElementName::JSXNamespacedName(JSXNamespacedName { ref ns, ref name }) => { - format!("{}:{}", ns.sym, name.sym).into() - } - JSXElementName::JSXMemberExpr(JSXMemberExpr { ref obj, ref prop }) => { - format!("{}.{}", get_qualified_obj_name(obj), prop.sym).into() - } + JSXElementName::JSXNamespacedName(JSXNamespacedName { + ref ns, ref name, .. + }) => format!("{}:{}", ns.sym, name.sym).into(), + JSXElementName::JSXMemberExpr(JSXMemberExpr { + ref obj, ref prop, .. + }) => format!("{}.{}", get_qualified_obj_name(obj), prop.sym).into(), } } From a018dc88367883d82fd12cf2bf6cd01b759aba3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 21:36:27 +0900 Subject: [PATCH 11/80] swc_ecma_ast/lib.rs --- crates/swc_ecma_ast/src/lib.rs | 153 ++++++++++++++++++++++++++++++++- 1 file changed, 151 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/lib.rs b/crates/swc_ecma_ast/src/lib.rs index 6a88a43ae4ad..c2454c66cdef 100644 --- a/crates/swc_ecma_ast/src/lib.rs +++ b/crates/swc_ecma_ast/src/lib.rs @@ -14,8 +14,60 @@ use serde::{Deserialize, Serialize}; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; pub use self::{ - class::*, decl::*, expr::*, function::*, ident::*, jsx::*, list::*, lit::*, module::*, - module_decl::*, operators::*, pat::*, prop::*, source_map::*, stmt::*, typescript::*, + class::{ + AutoAccessor, Class, ClassMember, ClassMethod, ClassProp, Constructor, Decorator, Key, + MethodKind, PrivateMethod, PrivateProp, StaticBlock, + }, + decl::{ClassDecl, Decl, FnDecl, UsingDecl, VarDecl, VarDeclKind, VarDeclarator}, + expr::*, + function::{Function, Param, ParamOrTsParamProp}, + ident::{BindingIdent, EsReserved, Id, Ident, IdentName, PrivateName}, + jsx::{ + JSXAttr, JSXAttrName, JSXAttrOrSpread, JSXAttrValue, JSXClosingElement, JSXClosingFragment, + JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, + JSXFragment, JSXMemberExpr, JSXNamespacedName, JSXObject, JSXOpeningElement, + JSXOpeningFragment, JSXSpreadChild, JSXText, + }, + list::ListFormat, + lit::{BigInt, Bool, Lit, Null, Number, Regex, Str}, + module::{Module, ModuleItem, Program, ReservedUnused, Script}, + module_decl::{ + DefaultDecl, ExportAll, ExportDecl, ExportDefaultDecl, ExportDefaultExpr, + ExportDefaultSpecifier, ExportNamedSpecifier, ExportNamespaceSpecifier, ExportSpecifier, + ImportDecl, ImportDefaultSpecifier, ImportNamedSpecifier, ImportPhase, ImportSpecifier, + ImportStarAsSpecifier, ModuleDecl, ModuleExportName, NamedExport, + }, + operators::{AssignOp, BinaryOp, UnaryOp, UpdateOp}, + pat::{ + ArrayPat, AssignPat, AssignPatProp, KeyValuePatProp, ObjectPat, ObjectPatProp, Pat, RestPat, + }, + prop::{ + AssignProp, ComputedPropName, GetterProp, KeyValueProp, MethodProp, Prop, PropName, + SetterProp, + }, + source_map::{SourceMapperExt, SpanExt}, + stmt::{ + BlockStmt, BreakStmt, CatchClause, ContinueStmt, DebuggerStmt, DoWhileStmt, EmptyStmt, + ExprStmt, ForHead, ForInStmt, ForOfStmt, ForStmt, IfStmt, LabeledStmt, ReturnStmt, Stmt, + SwitchCase, SwitchStmt, ThrowStmt, TryStmt, VarDeclOrExpr, WhileStmt, WithStmt, + }, + typescript::{ + Accessibility, TruePlusMinus, TsArrayType, TsAsExpr, TsCallSignatureDecl, + TsConditionalType, TsConstAssertion, TsConstructSignatureDecl, TsConstructorType, + TsEntityName, TsEnumDecl, TsEnumMember, TsEnumMemberId, TsExportAssignment, + TsExprWithTypeArgs, TsExternalModuleRef, TsFnOrConstructorType, TsFnParam, TsFnType, + TsGetterSignature, TsImportEqualsDecl, TsImportType, TsIndexSignature, TsIndexedAccessType, + TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDecl, TsIntersectionType, + TsKeywordType, TsKeywordTypeKind, TsLit, TsLitType, TsMappedType, TsMethodSignature, + TsModuleBlock, TsModuleDecl, TsModuleName, TsModuleRef, TsNamespaceBody, TsNamespaceDecl, + TsNamespaceExportDecl, TsNonNullExpr, TsOptionalType, TsParamProp, TsParamPropParam, + TsParenthesizedType, TsPropertySignature, TsQualifiedName, TsRestType, TsSatisfiesExpr, + TsSetterSignature, TsThisType, TsThisTypeOrIdent, TsTplLitType, TsTupleElement, + TsTupleType, TsType, TsTypeAliasDecl, TsTypeAnn, TsTypeAssertion, TsTypeElement, TsTypeLit, + TsTypeOperator, TsTypeOperatorOp, TsTypeParam, TsTypeParamDecl, TsTypeParamInstantiation, + TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeRef, TsUnionOrIntersectionType, + TsUnionType, + }, }; #[macro_use] @@ -89,3 +141,100 @@ impl EsVersion { EsVersion::EsNext } } + +/// Warning: The particular implementation of serialization and deserialization +/// of the ast nodes may change in the future, and so these types would be +/// removed. It's safe to say they will be serializable in some form or another, +/// but not necessarily with these specific types underlying the implementation. +/// As such, *use these types at your own risk*. +#[cfg(feature = "rkyv-impl")] +#[doc(hidden)] +pub use self::{ + class::{ + ArchivedAutoAccessor, ArchivedClass, ArchivedClassMember, ArchivedClassMethod, + ArchivedClassProp, ArchivedConstructor, ArchivedDecorator, ArchivedKey, ArchivedMethodKind, + ArchivedPrivateMethod, ArchivedPrivateProp, ArchivedStaticBlock, + }, + decl::{ + ArchivedClassDecl, ArchivedDecl, ArchivedFnDecl, ArchivedUsingDecl, ArchivedVarDecl, + ArchivedVarDeclKind, ArchivedVarDeclarator, + }, + expr::{ + ArchivedArrayLit, ArchivedArrowExpr, ArchivedAssignExpr, ArchivedAssignTarget, + ArchivedAwaitExpr, ArchivedBinExpr, ArchivedBlockStmtOrExpr, ArchivedCallExpr, + ArchivedCallee, ArchivedClassExpr, ArchivedCondExpr, ArchivedExpr, ArchivedExprOrSpread, + ArchivedFnExpr, ArchivedImport, ArchivedMemberExpr, ArchivedMemberProp, + ArchivedMetaPropExpr, ArchivedMetaPropKind, ArchivedNewExpr, ArchivedObjectLit, + ArchivedOptCall, ArchivedOptChainBase, ArchivedOptChainExpr, ArchivedParenExpr, + ArchivedPropOrSpread, ArchivedSeqExpr, ArchivedSpreadElement, ArchivedSuper, + ArchivedSuperProp, ArchivedSuperPropExpr, ArchivedTaggedTpl, ArchivedThisExpr, ArchivedTpl, + ArchivedTplElement, ArchivedUnaryExpr, ArchivedUpdateExpr, ArchivedYieldExpr, + }, + function::{ArchivedFunction, ArchivedParam, ArchivedParamOrTsParamProp}, + ident::{ArchivedBindingIdent, ArchivedIdent, ArchivedIdentName, ArchivedPrivateName}, + jsx::{ + ArchivedJSXAttr, ArchivedJSXAttrName, ArchivedJSXAttrOrSpread, ArchivedJSXAttrValue, + ArchivedJSXClosingElement, ArchivedJSXClosingFragment, ArchivedJSXElement, + ArchivedJSXElementChild, ArchivedJSXElementName, ArchivedJSXEmptyExpr, ArchivedJSXExpr, + ArchivedJSXExprContainer, ArchivedJSXFragment, ArchivedJSXMemberExpr, + ArchivedJSXNamespacedName, ArchivedJSXObject, ArchivedJSXOpeningElement, + ArchivedJSXOpeningFragment, ArchivedJSXSpreadChild, ArchivedJSXText, + }, + lit::{ + ArchivedBigInt, ArchivedBool, ArchivedLit, ArchivedNull, ArchivedNumber, ArchivedRegex, + ArchivedStr, + }, + module::{ + ArchivedModule, ArchivedModuleItem, ArchivedProgram, ArchivedReservedUnused, ArchivedScript, + }, + module_decl::{ + ArchivedDefaultDecl, ArchivedExportAll, ArchivedExportDecl, ArchivedExportDefaultDecl, + ArchivedExportDefaultExpr, ArchivedExportDefaultSpecifier, ArchivedExportNamedSpecifier, + ArchivedExportNamespaceSpecifier, ArchivedExportSpecifier, ArchivedImportDecl, + ArchivedImportDefaultSpecifier, ArchivedImportNamedSpecifier, ArchivedImportSpecifier, + ArchivedImportStarAsSpecifier, ArchivedModuleDecl, ArchivedModuleExportName, + ArchivedNamedExport, + }, + operators::{ArchivedAssignOp, ArchivedBinaryOp, ArchivedUnaryOp, ArchivedUpdateOp}, + pat::{ + ArchivedArrayPat, ArchivedAssignPat, ArchivedAssignPatProp, ArchivedKeyValuePatProp, + ArchivedObjectPat, ArchivedObjectPatProp, ArchivedPat, ArchivedRestPat, + }, + prop::{ + ArchivedAssignProp, ArchivedComputedPropName, ArchivedGetterProp, ArchivedKeyValueProp, + ArchivedMethodProp, ArchivedProp, ArchivedPropName, ArchivedSetterProp, + }, + stmt::{ + ArchivedBlockStmt, ArchivedBreakStmt, ArchivedCatchClause, ArchivedContinueStmt, + ArchivedDebuggerStmt, ArchivedDoWhileStmt, ArchivedEmptyStmt, ArchivedExprStmt, + ArchivedForHead, ArchivedForInStmt, ArchivedForOfStmt, ArchivedForStmt, ArchivedIfStmt, + ArchivedLabeledStmt, ArchivedReturnStmt, ArchivedStmt, ArchivedSwitchCase, + ArchivedSwitchStmt, ArchivedThrowStmt, ArchivedTryStmt, ArchivedVarDeclOrExpr, + ArchivedWhileStmt, ArchivedWithStmt, + }, + typescript::{ + ArchivedAccessibility, ArchivedTruePlusMinus, ArchivedTsArrayType, ArchivedTsAsExpr, + ArchivedTsCallSignatureDecl, ArchivedTsConditionalType, ArchivedTsConstAssertion, + ArchivedTsConstructSignatureDecl, ArchivedTsConstructorType, ArchivedTsEntityName, + ArchivedTsEnumDecl, ArchivedTsEnumMember, ArchivedTsEnumMemberId, + ArchivedTsExportAssignment, ArchivedTsExprWithTypeArgs, ArchivedTsExternalModuleRef, + ArchivedTsFnOrConstructorType, ArchivedTsFnParam, ArchivedTsFnType, + ArchivedTsGetterSignature, ArchivedTsImportEqualsDecl, ArchivedTsImportType, + ArchivedTsIndexSignature, ArchivedTsIndexedAccessType, ArchivedTsInferType, + ArchivedTsInstantiation, ArchivedTsInterfaceBody, ArchivedTsInterfaceDecl, + ArchivedTsIntersectionType, ArchivedTsKeywordType, ArchivedTsKeywordTypeKind, + ArchivedTsLit, ArchivedTsLitType, ArchivedTsMappedType, ArchivedTsMethodSignature, + ArchivedTsModuleBlock, ArchivedTsModuleDecl, ArchivedTsModuleName, ArchivedTsModuleRef, + ArchivedTsNamespaceBody, ArchivedTsNamespaceDecl, ArchivedTsNamespaceExportDecl, + ArchivedTsNonNullExpr, ArchivedTsOptionalType, ArchivedTsParamProp, + ArchivedTsParamPropParam, ArchivedTsParenthesizedType, ArchivedTsPropertySignature, + ArchivedTsQualifiedName, ArchivedTsRestType, ArchivedTsSatisfiesExpr, + ArchivedTsSetterSignature, ArchivedTsThisType, ArchivedTsThisTypeOrIdent, + ArchivedTsTplLitType, ArchivedTsTupleElement, ArchivedTsTupleType, ArchivedTsType, + ArchivedTsTypeAliasDecl, ArchivedTsTypeAnn, ArchivedTsTypeAssertion, ArchivedTsTypeElement, + ArchivedTsTypeLit, ArchivedTsTypeOperator, ArchivedTsTypeOperatorOp, ArchivedTsTypeParam, + ArchivedTsTypeParamDecl, ArchivedTsTypeParamInstantiation, ArchivedTsTypePredicate, + ArchivedTsTypeQuery, ArchivedTsTypeQueryExpr, ArchivedTsTypeRef, + ArchivedTsUnionOrIntersectionType, ArchivedTsUnionType, + }, +}; From 4627a17a4a8eb93e78e2dde58dd27aa2dcfb6bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 21:38:40 +0900 Subject: [PATCH 12/80] Fix more --- crates/swc_ecma_parser/src/parser/ident.rs | 4 ++-- crates/swc_ecma_parser/src/parser/jsx.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/ident.rs b/crates/swc_ecma_parser/src/parser/ident.rs index 03cd5bea6baa..f34d83995af9 100644 --- a/crates/swc_ecma_parser/src/parser/ident.rs +++ b/crates/swc_ecma_parser/src/parser/ident.rs @@ -6,7 +6,7 @@ use super::*; use crate::token::{IdentLike, Keyword}; impl Parser { - pub(super) fn parse_maybe_private_name(&mut self) -> PResult> { + pub(super) fn parse_maybe_private_name(&mut self) -> PResult> { let is_private = is!(self, '#'); if is_private { @@ -81,7 +81,7 @@ impl Parser { Lit::Str(str_lit) => ModuleExportName::Str(str_lit), _ => unreachable!(), }, - Ok(&Word(..)) => ModuleExportName::Ident(self.parse_ident_name()?), + Ok(&Word(..)) => ModuleExportName::Ident(self.parse_ident_name()?.into()), _ => { unexpected!(self, "identifier or string"); } diff --git a/crates/swc_ecma_parser/src/parser/jsx.rs b/crates/swc_ecma_parser/src/parser/jsx.rs index 41b74471f0d7..55c2da134bd7 100644 --- a/crates/swc_ecma_parser/src/parser/jsx.rs +++ b/crates/swc_ecma_parser/src/parser/jsx.rs @@ -32,12 +32,12 @@ impl Parser { trace_cur!(self, parse_jsx_namespaced_name); let start = cur_pos!(self); - let ns = self.parse_jsx_ident()?; + let ns = self.parse_jsx_ident()?.into(); if !eat!(self, ':') { - return Ok(JSXAttrName::Ident(ns.into())); + return Ok(JSXAttrName::Ident(ns)); } - let name = self.parse_jsx_ident()?; + let name = self.parse_jsx_ident().map(IdentName::from)?; Ok(JSXAttrName::JSXNamespacedName(JSXNamespacedName { span: Span::new(start, name.span.hi), ns, @@ -53,11 +53,11 @@ impl Parser { let start = cur_pos!(self); let mut node = match self.parse_jsx_namespaced_name()? { - JSXAttrName::Ident(i) => JSXElementName::Ident(i), + JSXAttrName::Ident(i) => JSXElementName::Ident(i.into()), JSXAttrName::JSXNamespacedName(i) => JSXElementName::JSXNamespacedName(i), }; while eat!(self, '.') { - let prop = self.parse_jsx_ident()?; + let prop = self.parse_jsx_ident().map(IdentName::from)?; let new_node = JSXElementName::JSXMemberExpr(JSXMemberExpr { span: span!(self, start), obj: match node { From d5fb0fe41439de9839cf153bda2b7c6fc8e8c690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 21:40:12 +0900 Subject: [PATCH 13/80] Fix more --- crates/swc_ecma_ast/src/prop.rs | 2 ++ crates/swc_ecma_parser/src/parser/object.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/prop.rs b/crates/swc_ecma_ast/src/prop.rs index ac6396498869..40318dcffd0a 100644 --- a/crates/swc_ecma_ast/src/prop.rs +++ b/crates/swc_ecma_ast/src/prop.rs @@ -37,6 +37,8 @@ pub enum Prop { Method(MethodProp), } +bridge_from!(Prop, Ident, IdentName); + #[ast_node("KeyValueProperty")] #[derive(Eq, Hash, EqIgnoreSpan)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] diff --git a/crates/swc_ecma_parser/src/parser/object.rs b/crates/swc_ecma_parser/src/parser/object.rs index 0fdb096a4879..43d0765e8ee9 100644 --- a/crates/swc_ecma_parser/src/parser/object.rs +++ b/crates/swc_ecma_parser/src/parser/object.rs @@ -77,7 +77,7 @@ impl Parser { _ => unreachable!(), }, Word(..) => match bump!(p) { - Word(w) => PropName::Ident(Ident::new_no_ctxt(w.into(), span!(p, start))), + Word(w) => PropName::Ident(IdentName::new(w.into(), span!(p, start))), _ => unreachable!(), }, tok!('[') => { @@ -251,7 +251,7 @@ impl ParseObject> for Parser { if eat!(self, '=') { let value = self.include_in_expr(true).parse_assignment_expr()?; return Ok(PropOrSpread::Prop(Box::new(Prop::Assign(AssignProp { - key: ident, + key: ident.into(), value, })))); } From 054f9211e04d5334173f35c88513b481d9bcf501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 22:25:14 +0900 Subject: [PATCH 14/80] Fix more --- crates/swc_ecma_parser/src/parser/ident.rs | 4 ++-- crates/swc_ecma_parser/src/parser/stmt/module_item.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/ident.rs b/crates/swc_ecma_parser/src/parser/ident.rs index f34d83995af9..c08cf9e72ce2 100644 --- a/crates/swc_ecma_parser/src/parser/ident.rs +++ b/crates/swc_ecma_parser/src/parser/ident.rs @@ -44,10 +44,10 @@ impl Parser { } /// LabelIdentifier - pub(super) fn parse_label_ident(&mut self) -> PResult { + pub(super) fn parse_label_ident(&mut self) -> PResult { let ctx = self.ctx(); - self.parse_ident(!ctx.in_generator, !ctx.in_async) + Ok(self.parse_ident(!ctx.in_generator, !ctx.in_async)?.into()) } /// Use this when spec says "IdentifierName". diff --git a/crates/swc_ecma_parser/src/parser/stmt/module_item.rs b/crates/swc_ecma_parser/src/parser/stmt/module_item.rs index 210a707083cf..74b932581433 100644 --- a/crates/swc_ecma_parser/src/parser/stmt/module_item.rs +++ b/crates/swc_ecma_parser/src/parser/stmt/module_item.rs @@ -215,7 +215,7 @@ impl Parser { // `import { type as as } from 'mod'` // `import { type as as as } from 'mod'` if self.syntax().typescript() && orig_name.sym == "type" && is!(self, IdentName) { - let possibly_orig_name = self.parse_ident_name()?; + let possibly_orig_name = self.parse_ident_name().map(Ident::from)?; if possibly_orig_name.sym == "as" { // `import { type as } from 'mod'` if !is!(self, IdentName) { From 8400f9954aaa32444e88a9180390da451d63e08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 22:26:44 +0900 Subject: [PATCH 15/80] Fix more --- crates/swc_ecma_parser/src/parser/stmt.rs | 4 ++-- crates/swc_ecma_parser/src/parser/stmt/module_item.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/stmt.rs b/crates/swc_ecma_parser/src/parser/stmt.rs index 90511c02954d..11e3f1b45440 100644 --- a/crates/swc_ecma_parser/src/parser/stmt.rs +++ b/crates/swc_ecma_parser/src/parser/stmt.rs @@ -397,7 +397,7 @@ impl<'a, I: Tokens> Parser { let expr = match *expr { Expr::Ident(ident) => { if eat!(self, ':') { - return self.parse_labelled_stmt(ident); + return self.parse_labelled_stmt(ident.into()); } Box::new(Expr::Ident(ident)) } @@ -1126,7 +1126,7 @@ impl<'a, I: Tokens> Parser { }) } - fn parse_labelled_stmt(&mut self, l: Ident) -> PResult { + fn parse_labelled_stmt(&mut self, l: IdentName) -> PResult { let ctx = Context { is_break_allowed: true, allow_using_decl: false, diff --git a/crates/swc_ecma_parser/src/parser/stmt/module_item.rs b/crates/swc_ecma_parser/src/parser/stmt/module_item.rs index 74b932581433..5807800da59a 100644 --- a/crates/swc_ecma_parser/src/parser/stmt/module_item.rs +++ b/crates/swc_ecma_parser/src/parser/stmt/module_item.rs @@ -740,7 +740,7 @@ impl Parser { // `export { type as as }` // `export { type as as as }` if self.syntax().typescript() && orig_ident.sym == "type" && is!(self, IdentName) { - let possibly_orig = self.parse_ident_name()?; + let possibly_orig = self.parse_ident_name().map(Ident::from)?; if possibly_orig.sym == "as" { // `export { type as }` if !is!(self, IdentName) { @@ -756,12 +756,12 @@ impl Parser { }); } - let maybe_as = self.parse_ident_name()?; + let maybe_as = self.parse_ident_name().map(Ident::from)?; if maybe_as.sym == "as" { if is!(self, IdentName) { // `export { type as as as }` // `export { type as as foo }` - let exported = self.parse_ident_name()?; + let exported = self.parse_ident_name().map(Ident::from)?; if type_only { self.emit_err(orig_ident.span, SyntaxError::TS2207); From 9d8783488dc410c1e375900cae2ecc3a394daab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4/Donny?= Date: Tue, 9 Jul 2024 23:15:54 +0900 Subject: [PATCH 16/80] Fix more --- crates/swc_ecma_parser/src/parser/typescript.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_parser/src/parser/typescript.rs b/crates/swc_ecma_parser/src/parser/typescript.rs index bc32a21e35b2..7803de5e0cc2 100644 --- a/crates/swc_ecma_parser/src/parser/typescript.rs +++ b/crates/swc_ecma_parser/src/parser/typescript.rs @@ -205,7 +205,7 @@ impl Parser { let right = if allow_reserved_words { self.parse_ident_name()? } else { - self.parse_ident(false, false)? + self.parse_ident(false, false)?.into() }; entity = TsEntityName::TsQualifiedName(Box::new(TsQualifiedName { left, right })); } From 81d7b8f5bdf007a9f720a38c2e108a615109599b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 23:44:09 +0900 Subject: [PATCH 17/80] More from impl --- crates/swc_ecma_ast/src/ident.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 1eeca221aca7..bc5a5379ccc4 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -400,6 +400,24 @@ impl From for Ident { } } +impl From for IdentName { + fn from(i: BindingIdent) -> Self { + IdentName { + span: i.span, + sym: i.sym, + } + } +} + +impl From for BindingIdent { + fn from(i: IdentName) -> Self { + BindingIdent { + id: i.into(), + ..Default::default() + } + } +} + /// See [Ident] for documentation. pub type Id = (Atom, SyntaxContext); From 8abbc4d4da8a66c05e932eadc4eda4784c22c75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 23:44:45 +0900 Subject: [PATCH 18/80] More from impl --- crates/swc_ecma_ast/src/ident.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index bc5a5379ccc4..ae90dca1a17c 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -402,9 +402,10 @@ impl From for Ident { impl From for IdentName { fn from(i: BindingIdent) -> Self { + let id = i.id; IdentName { - span: i.span, - sym: i.sym, + span: id.span, + sym: id.sym, } } } From 6f8a0948c67ddcda8d349ed200777ae64871fe0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 9 Jul 2024 23:47:30 +0900 Subject: [PATCH 19/80] More from impl --- crates/swc_ecma_parser/src/parser/object.rs | 2 ++ .../src/parser/stmt/module_item.rs | 9 +++-- .../swc_ecma_parser/src/parser/typescript.rs | 35 +++++++++++-------- 3 files changed, 29 insertions(+), 17 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/object.rs b/crates/swc_ecma_parser/src/parser/object.rs index 43d0765e8ee9..ed9b3608f2bf 100644 --- a/crates/swc_ecma_parser/src/parser/object.rs +++ b/crates/swc_ecma_parser/src/parser/object.rs @@ -250,7 +250,9 @@ impl ParseObject> for Parser { if eat!(self, '=') { let value = self.include_in_expr(true).parse_assignment_expr()?; + let span = span!(self, start); return Ok(PropOrSpread::Prop(Box::new(Prop::Assign(AssignProp { + span, key: ident.into(), value, })))); diff --git a/crates/swc_ecma_parser/src/parser/stmt/module_item.rs b/crates/swc_ecma_parser/src/parser/stmt/module_item.rs index 5807800da59a..bf249256141b 100644 --- a/crates/swc_ecma_parser/src/parser/stmt/module_item.rs +++ b/crates/swc_ecma_parser/src/parser/stmt/module_item.rs @@ -96,7 +96,7 @@ impl Parser { local = self.parse_imported_default_binding()?; } else if peeked_is!(self, '=') { type_only = true; - local = self.parse_ident_name()?; + local = self.parse_ident_name().map(From::from)?; } } } @@ -400,7 +400,12 @@ impl Parser { // export import A = B return self - .parse_ts_import_equals_decl(start, id, /* is_export */ true, is_type_only) + .parse_ts_import_equals_decl( + start, + id.into(), + /* is_export */ true, + is_type_only, + ) .map(From::from); } diff --git a/crates/swc_ecma_parser/src/parser/typescript.rs b/crates/swc_ecma_parser/src/parser/typescript.rs index 7803de5e0cc2..cde1e30cbdec 100644 --- a/crates/swc_ecma_parser/src/parser/typescript.rs +++ b/crates/swc_ecma_parser/src/parser/typescript.rs @@ -186,6 +186,7 @@ impl Parser { fn parse_ts_entity_name(&mut self, allow_reserved_words: bool) -> PResult { debug_assert!(self.input.syntax().typescript()); trace_cur!(self, parse_ts_entity_name); + let start = cur_pos!(self); let init = self.parse_ident_name()?; if &*init.sym == "void" { @@ -193,7 +194,7 @@ impl Parser { let dot_span = span!(self, dot_start); self.emit_err(dot_span, SyntaxError::TS1005) } - let mut entity = TsEntityName::Ident(init); + let mut entity = TsEntityName::Ident(init.into()); while eat!(self, '.') { let dot_start = cur_pos!(self); if !is!(self, '#') && !is!(self, IdentName) { @@ -207,7 +208,8 @@ impl Parser { } else { self.parse_ident(false, false)?.into() }; - entity = TsEntityName::TsQualifiedName(Box::new(TsQualifiedName { left, right })); + let span = span!(self, start); + entity = TsEntityName::TsQualifiedName(Box::new(TsQualifiedName { span, left, right })); } Ok(entity) @@ -430,7 +432,7 @@ impl Parser { }; } - let name = self.in_type().parse_ident_name()?; + let name = self.in_type().parse_ident_name()?.into(); let constraint = self.eat_then_parse_ts_type(&tok!("extends"))?; let default = self.eat_then_parse_ts_type(&tok!('='))?; @@ -525,7 +527,7 @@ impl Parser { let node = Box::new(TsType::TsTypePredicate(TsTypePredicate { span: span!(p, type_pred_start), asserts: has_type_pred_asserts, - param_name: TsThisTypeOrIdent::Ident(type_pred_var), + param_name: TsThisTypeOrIdent::Ident(type_pred_var.into()), type_ann, })); @@ -761,7 +763,10 @@ impl Parser { TsEnumMemberId::Ident(Ident::new_no_ctxt(js_word!(""), span!(self, start))) } - _ => self.parse_ident_name().map(TsEnumMemberId::from)?, + _ => self + .parse_ident_name() + .map(Ident::from) + .map(TsEnumMemberId::from)?, }; let init = if eat!(self, '=') { @@ -801,7 +806,7 @@ impl Parser { span: span!(self, start), declare: false, is_const, - id, + id: id.into(), members, })) } @@ -854,7 +859,7 @@ impl Parser { Ok(Box::new(TsModuleDecl { span: span!(self, start), declare: false, - id: TsModuleName::Ident(id), + id: TsModuleName::Ident(id.into()), body: Some(body), global: false, })) @@ -869,7 +874,7 @@ impl Parser { let (global, id) = if is!(self, "global") { let id = self.parse_ident_name()?; - (true, TsModuleName::Ident(id)) + (true, TsModuleName::Ident(id.into())) } else if matches!(*cur!(self, true), Token::Str { .. }) { let id = self.parse_lit().map(|lit| match lit { Lit::Str(s) => TsModuleName::Str(s), @@ -1022,7 +1027,7 @@ impl Parser { // Note: TS uses parseLeftHandSideExpressionOrHigher, // then has grammar errors later if it's not an EntityName. - let ident = Box::new(Expr::Ident(self.parse_ident_name()?)); + let ident = Box::new(Expr::Ident(self.parse_ident_name()?.into())); let expr = self.parse_subscripts(Callee::Expr(ident), true, true)?; if !matches!( &*expr, @@ -1099,7 +1104,7 @@ impl Parser { Ok(Box::new(TsInterfaceDecl { span: span!(self, start), declare: false, - id, + id: id.into(), type_params, extends, body, @@ -1120,7 +1125,7 @@ impl Parser { Ok(Box::new(TsTypeAliasDecl { declare: false, span: span!(self, start), - id, + id: id.into(), type_params, type_ann, })) @@ -1387,7 +1392,7 @@ impl Parser { Box::new(Expr::PrivateName(e)) } - Either::Right(e) => Box::new(Expr::Ident(e)), + Either::Right(e) => Box::new(Expr::Ident(e.into())), }), }; @@ -1604,7 +1609,7 @@ impl Parser { Ok(TsTypeParam { span: span!(self, start), - name, + name: name.into(), is_in: false, is_out: false, is_const: false, @@ -1723,7 +1728,7 @@ impl Parser { None }; - let mut ident = p.parse_ident_name()?; + let mut ident = p.parse_ident_name().map(Ident::from)?; if eat!(p, '?') { ident.optional = true; ident.span = ident.span.with_hi(p.input.prev_span().hi); @@ -2254,7 +2259,7 @@ impl Parser { }); let type_param = TsTypeParam { span: type_param_name.span(), - name: type_param_name, + name: type_param_name.into(), is_in: false, is_out: false, is_const: false, From ff46240311ef21d474200e2fa65a11399560c870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:38:15 +0900 Subject: [PATCH 20/80] Fix visitor --- crates/swc_ecma_visit/src/lib.rs | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs index 9cc56dcc342e..98c7fb4de948 100644 --- a/crates/swc_ecma_visit/src/lib.rs +++ b/crates/swc_ecma_visit/src/lib.rs @@ -771,7 +771,7 @@ define!({ pub prop: MemberProp, } pub enum MemberProp { - Ident(Ident), + Ident(IdentName), PrivateName(PrivateName), Computed(ComputedPropName), } @@ -781,7 +781,7 @@ define!({ pub prop: SuperProp, } pub enum SuperProp { - Ident(Ident), + Ident(IdentName), Computed(ComputedPropName), } pub struct CondExpr { @@ -962,12 +962,14 @@ define!({ Ident(Ident), } pub struct JSXMemberExpr { + pub span: Span, pub obj: JSXObject, - pub prop: Ident, + pub prop: IdentName, } pub struct JSXNamespacedName { - pub ns: Ident, - pub name: Ident, + pub span:Span + pub ns: IdentName, + pub name: IdentName, } pub struct JSXEmptyExpr { pub span: Span, @@ -1010,7 +1012,7 @@ define!({ pub value: Option, } pub enum JSXAttrName { - Ident(Ident), + Ident(IdentName), JSXNamespacedName(JSXNamespacedName), } pub enum JSXAttrValue { @@ -1316,7 +1318,7 @@ define!({ pub value: Box, } pub struct AssignProp { - pub key: Ident, + pub key: IdentName, pub value: Box, } pub struct GetterProp { @@ -1337,7 +1339,7 @@ define!({ pub function: Box, } pub enum PropName { - Ident(Ident), + Ident(IdentName), Str(Str), Num(Number), BigInt(BigInt), @@ -1394,16 +1396,16 @@ define!({ } pub struct LabeledStmt { pub span: Span, - pub label: Ident, + pub label: IdentName, pub body: Box, } pub struct BreakStmt { pub span: Span, - pub label: Option, + pub label: Option, } pub struct ContinueStmt { pub span: Span, - pub label: Option, + pub label: Option, } pub struct IfStmt { pub span: Span, @@ -1509,8 +1511,9 @@ define!({ Assign(AssignPat), } pub struct TsQualifiedName { + pub span: Span, pub left: TsEntityName, - pub right: Ident, + pub right: IdentName, } pub enum TsEntityName { TsQualifiedName(Box), From 208aad2d4a7c8dd80ad0098e4a4274dfc88d72ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:39:09 +0900 Subject: [PATCH 21/80] Fix visitor --- crates/swc_ecma_visit/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs index 98c7fb4de948..d925d01a84b0 100644 --- a/crates/swc_ecma_visit/src/lib.rs +++ b/crates/swc_ecma_visit/src/lib.rs @@ -967,7 +967,7 @@ define!({ pub prop: IdentName, } pub struct JSXNamespacedName { - pub span:Span + pub span: Span, pub ns: IdentName, pub name: IdentName, } From e3eee03003c944d1821f31606636fc2bb3789823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:39:58 +0900 Subject: [PATCH 22/80] Fix quote --- crates/swc_ecma_quote_macros/src/ast/id.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/swc_ecma_quote_macros/src/ast/id.rs b/crates/swc_ecma_quote_macros/src/ast/id.rs index a35e6a90d124..2382a1a651dc 100644 --- a/crates/swc_ecma_quote_macros/src/ast/id.rs +++ b/crates/swc_ecma_quote_macros/src/ast/id.rs @@ -20,4 +20,5 @@ impl ToCode for swc_ecma_ast::Ident { } } +impl_struct!(IdentName, [span, sym]); impl_struct!(PrivateName, [span, name]); From 935453c2d508b4145ea0f6dab5ea0c81bdde35a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:41:06 +0900 Subject: [PATCH 23/80] Fix visitor --- crates/swc_ecma_visit/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs index d925d01a84b0..46b3a9e5675a 100644 --- a/crates/swc_ecma_visit/src/lib.rs +++ b/crates/swc_ecma_visit/src/lib.rs @@ -1318,7 +1318,8 @@ define!({ pub value: Box, } pub struct AssignProp { - pub key: IdentName, + pub span: Span, + pub key: Ident, pub value: Box, } pub struct GetterProp { From a1ec71a5551660e6cc2536e9bdeea13c9818441d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:42:28 +0900 Subject: [PATCH 24/80] Fix more --- crates/swc_ecma_parser/src/parser/expr/tests.rs | 4 ++-- crates/swc_ecma_parser/src/parser/jsx/tests.rs | 4 ++-- crates/swc_ecma_parser/tests/common/mod.rs | 2 +- crates/swc_ecma_utils/src/factory.rs | 9 +++------ 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/expr/tests.rs b/crates/swc_ecma_parser/src/parser/expr/tests.rs index ec57fa81c139..b6a3a6d4961e 100644 --- a/crates/swc_ecma_parser/src/parser/expr/tests.rs +++ b/crates/swc_ecma_parser/src/parser/expr/tests.rs @@ -173,7 +173,7 @@ fn new_expr_should_not_eat_too_much() { Box::new(Expr::Member(MemberExpr { span, obj: member_expr("new Date()"), - prop: MemberProp::Ident(Ident::new_no_ctxt("toString".into(), span)), + prop: MemberProp::Ident(IdentName::new("toString".into(), span)), })) ); } @@ -439,7 +439,7 @@ fn super_expr() { callee: Callee::Expr(Box::new(Expr::SuperProp(SuperPropExpr { span, obj: Super { span }, - prop: SuperProp::Ident(Ident { + prop: SuperProp::Ident(IdentName { span, sym: "foo".into(), ..Default::default() diff --git a/crates/swc_ecma_parser/src/parser/jsx/tests.rs b/crates/swc_ecma_parser/src/parser/jsx/tests.rs index d0b053e74eb7..8db4229470d8 100644 --- a/crates/swc_ecma_parser/src/parser/jsx/tests.rs +++ b/crates/swc_ecma_parser/src/parser/jsx/tests.rs @@ -69,7 +69,7 @@ fn escape_in_attr() { span, attrs: vec![JSXAttrOrSpread::JSXAttr(JSXAttr { span, - name: JSXAttrName::Ident(Ident::new_no_ctxt("id".into(), span)), + name: JSXAttrName::Ident(IdentName::new("id".into(), span)), value: Some(JSXAttrValue::Lit(Lit::Str(Str { span, value: "w < w".into(), @@ -97,7 +97,7 @@ fn issue_584() { name: JSXElementName::Ident(Ident::new_no_ctxt("test".into(), span)), attrs: vec![JSXAttrOrSpread::JSXAttr(JSXAttr { span, - name: JSXAttrName::Ident(Ident::new_no_ctxt("other".into(), span)), + name: JSXAttrName::Ident(IdentName::new("other".into(), span)), value: Some(JSXAttrValue::JSXExprContainer(JSXExprContainer { span, expr: JSXExpr::Expr(Box::new(Expr::Lit(Lit::Num(Number { diff --git a/crates/swc_ecma_parser/tests/common/mod.rs b/crates/swc_ecma_parser/tests/common/mod.rs index 51e60b91d560..a4ad97001873 100644 --- a/crates/swc_ecma_parser/tests/common/mod.rs +++ b/crates/swc_ecma_parser/tests/common/mod.rs @@ -102,7 +102,7 @@ impl Fold for Normalizer { } match n { - PropName::Ident(Ident { span, sym, .. }) => PropName::Str(Str { + PropName::Ident(IdentName { span, sym, .. }) => PropName::Str(Str { span, value: sym, raw: None, diff --git a/crates/swc_ecma_utils/src/factory.rs b/crates/swc_ecma_utils/src/factory.rs index fb870626bce4..25b687034d99 100644 --- a/crates/swc_ecma_utils/src/factory.rs +++ b/crates/swc_ecma_utils/src/factory.rs @@ -160,7 +160,7 @@ pub trait ExprFactory: Into> { span, args, callee: self - .make_member(Ident::new_no_ctxt("call".into(), span)) + .make_member(IdentName::new("call".into(), span)) .as_callee(), ..Default::default() }) @@ -252,14 +252,11 @@ pub trait ExprFactory: Into> { } #[cfg_attr(not(debug_assertions), inline(always))] - fn make_member(self, prop: T) -> MemberExpr - where - T: Into, - { + fn make_member(self, prop: IdentName) -> MemberExpr { MemberExpr { obj: self.into(), span: DUMMY_SP, - prop: MemberProp::Ident(prop.into()), + prop: MemberProp::Ident(prop), } } From 322400ec4e879fa1d372139fe2084473786dfde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:45:16 +0900 Subject: [PATCH 25/80] More from impl --- crates/swc_ecma_ast/src/ident.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index ae90dca1a17c..d8401f95cd46 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -1,4 +1,5 @@ use std::{ + borrow::Cow, fmt::Display, ops::{Deref, DerefMut}, }; @@ -363,6 +364,19 @@ pub struct IdentName { pub sym: Atom, } +impl From for IdentName { + fn from(sym: Atom) -> Self { + IdentName { + span: DUMMY_SP, + sym, + } + } +} + +bridge_from!(IdentName, Atom, &'_ str); +bridge_from!(IdentName, Atom, Cow<'_, str>); +bridge_from!(IdentName, Atom, String); + impl AsRef for IdentName { fn as_ref(&self) -> &str { &self.sym From 50cc436df5ce6b679d93199850cb148f61c02a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:46:03 +0900 Subject: [PATCH 26/80] More fix --- crates/swc_ecma_parser/src/parser/expr/tests.rs | 1 - crates/swc_ecma_parser/src/parser/pat.rs | 8 ++++++-- crates/swc_ecma_utils/src/factory.rs | 6 +++--- crates/swc_ecma_utils/src/function/fn_env_hoister.rs | 6 +++--- crates/swc_ecma_utils/src/lib.rs | 10 +++++----- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/crates/swc_ecma_parser/src/parser/expr/tests.rs b/crates/swc_ecma_parser/src/parser/expr/tests.rs index b6a3a6d4961e..b85cf39ab682 100644 --- a/crates/swc_ecma_parser/src/parser/expr/tests.rs +++ b/crates/swc_ecma_parser/src/parser/expr/tests.rs @@ -442,7 +442,6 @@ fn super_expr() { prop: SuperProp::Ident(IdentName { span, sym: "foo".into(), - ..Default::default() }) }))), ..Default::default() diff --git a/crates/swc_ecma_parser/src/parser/pat.rs b/crates/swc_ecma_parser/src/parser/pat.rs index 323813fcdc98..4e296431f0d5 100644 --- a/crates/swc_ecma_parser/src/parser/pat.rs +++ b/crates/swc_ecma_parser/src/parser/pat.rs @@ -935,6 +935,10 @@ mod tests { Ident::new_no_ctxt(s.into(), span) } + fn ident_name(s: &str) -> IdentName { + IdentName::new(s.into(), span) + } + fn rest() -> Option { Some(Pat::Rest(RestPat { span, @@ -1173,7 +1177,7 @@ mod tests { span, props: vec![ prop( - PropName::Ident(ident("$")), + PropName::Ident(ident_name("$")), "num", Expr::Lit(Lit::Num(Number { span, @@ -1208,7 +1212,7 @@ mod tests { })) ), prop( - PropName::Ident(ident("_")), + PropName::Ident(ident_name("_")), "under", Expr::Array(ArrayLit { span, diff --git a/crates/swc_ecma_utils/src/factory.rs b/crates/swc_ecma_utils/src/factory.rs index 25b687034d99..0707ac597ea7 100644 --- a/crates/swc_ecma_utils/src/factory.rs +++ b/crates/swc_ecma_utils/src/factory.rs @@ -143,7 +143,7 @@ pub trait ExprFactory: Into> { #[cfg_attr(not(debug_assertions), inline(always))] fn apply(self, span: Span, this: Box, args: Vec) -> Expr { - let apply = self.make_member(Ident::new_no_ctxt("apply".into(), span)); + let apply = self.make_member(IdentName::new("apply".into(), span)); Expr::Call(CallExpr { span, @@ -252,11 +252,11 @@ pub trait ExprFactory: Into> { } #[cfg_attr(not(debug_assertions), inline(always))] - fn make_member(self, prop: IdentName) -> MemberExpr { + fn make_member(self, prop: impl Into) -> MemberExpr { MemberExpr { obj: self.into(), span: DUMMY_SP, - prop: MemberProp::Ident(prop), + prop: MemberProp::Ident(prop.into()), } } diff --git a/crates/swc_ecma_utils/src/function/fn_env_hoister.rs b/crates/swc_ecma_utils/src/function/fn_env_hoister.rs index 4151dd4ad63e..0c3db3db468f 100644 --- a/crates/swc_ecma_utils/src/function/fn_env_hoister.rs +++ b/crates/swc_ecma_utils/src/function/fn_env_hoister.rs @@ -520,7 +520,7 @@ impl VisitMut for FnEnvHoister { callee: self.super_update_computed(*span).as_callee(), ..Default::default() }) - .make_member(quote_ident!("_")) + .make_member("_") .into() } else { Expr::Call(CallExpr { @@ -644,7 +644,7 @@ fn extend_super( props: vec![ Prop::Getter(GetterProp { span: DUMMY_SP, - key: PropName::Ident(quote_ident!("_")), + key: PropName::Ident("_".into()), type_ann: None, body: Some(BlockStmt { stmts: vec![Expr::Ident( @@ -662,7 +662,7 @@ fn extend_super( }), Prop::Setter(SetterProp { span: DUMMY_SP, - key: PropName::Ident(quote_ident!("_")), + key: PropName::Ident("_".into()), this_param: None, param: value.clone().into(), body: Some(BlockStmt { diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index b9364df6c44b..0107f359db79 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -1080,7 +1080,7 @@ pub trait ExprExt { Expr::Member(MemberExpr { obj, - prop: MemberProp::Ident(Ident { sym: length, .. }), + prop: MemberProp::Ident(IdentName { sym: length, .. }), .. }) if &**length == "length" => match &**obj { Expr::Array(ArrayLit { .. }) | Expr::Lit(Lit::Str(..)) => Known(Type::Num), @@ -1379,7 +1379,7 @@ pub trait ExprExt { Prop::Shorthand(Ident { sym, .. }) | Prop::KeyValue(KeyValueProp { key: - PropName::Ident(Ident { sym, .. }) + PropName::Ident(IdentName { sym, .. }) | PropName::Str(Str { value: sym, .. }), .. }) => &**sym == "__proto__", @@ -2107,7 +2107,7 @@ pub fn alias_if_required(expr: &Expr, default: &str) -> (Ident, bool) { pub fn prop_name_to_expr(p: PropName) -> Expr { match p { - PropName::Ident(i) => Expr::Ident(i), + PropName::Ident(i) => Expr::Ident(i.into()), PropName::Str(s) => Expr::Lit(Lit::Str(s)), PropName::Num(n) => Expr::Lit(Lit::Num(n)), PropName::BigInt(b) => Expr::Lit(Lit::BigInt(b)), @@ -2704,7 +2704,7 @@ impl VisitMut for IdentReplacer<'_> { i.visit_mut_with(self); if i.sym != cloned.sym || i.ctxt != cloned.ctxt { *node = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt(cloned.sym, cloned.span)), + key: PropName::Ident(IdentName::new(cloned.sym, cloned.span)), value: Box::new(Expr::Ident(i.clone())), }); } @@ -3069,7 +3069,7 @@ impl VisitMut for IdentRenamer<'_> { i.visit_mut_with(self); if i.sym != cloned.sym || i.ctxt != cloned.ctxt { *node = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt(cloned.sym, cloned.span)), + key: PropName::Ident(IdentName::new(cloned.sym, cloned.span)), value: Box::new(Expr::Ident(i.clone())), }); } From 250ddbe8839437918d9e1b48fa2f08528544801d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:48:14 +0900 Subject: [PATCH 27/80] More fix --- crates/swc_ecma_utils/src/function/fn_env_hoister.rs | 8 ++++---- crates/swc_ecma_utils/src/lib.rs | 2 +- crates/swc_ecma_utils/src/macros.rs | 9 +++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/crates/swc_ecma_utils/src/function/fn_env_hoister.rs b/crates/swc_ecma_utils/src/function/fn_env_hoister.rs index 0c3db3db468f..b0941507b1e8 100644 --- a/crates/swc_ecma_utils/src/function/fn_env_hoister.rs +++ b/crates/swc_ecma_utils/src/function/fn_env_hoister.rs @@ -702,7 +702,7 @@ fn extend_super( props: vec![ Prop::Getter(GetterProp { span: DUMMY_SP, - key: PropName::Ident(quote_ident!("_")), + key: PropName::Ident("_".into()), type_ann: None, body: Some(BlockStmt { stmts: vec![Expr::Ident( @@ -719,7 +719,7 @@ fn extend_super( }), Prop::Setter(SetterProp { span: DUMMY_SP, - key: PropName::Ident(quote_ident!("_")), + key: PropName::Ident("_".into()), this_param: None, param: value.clone().into(), body: Some(BlockStmt { @@ -755,7 +755,7 @@ fn extend_super( body: Box::new(BlockStmtOrExpr::Expr(Box::new(Expr::SuperProp( SuperPropExpr { obj: Super { span: DUMMY_SP }, - prop: SuperProp::Ident(quote_ident!(key)), + prop: SuperProp::Ident(key.into()), span: DUMMY_SP, }, )))), @@ -798,7 +798,7 @@ fn extend_super( span: DUMMY_SP, left: SuperPropExpr { obj: Super { span: DUMMY_SP }, - prop: SuperProp::Ident(quote_ident!(key)), + prop: SuperProp::Ident(key.into()), span: DUMMY_SP, } .into(), diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index 0107f359db79..77997990da91 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -2157,7 +2157,7 @@ pub fn default_constructor(has_super: bool) -> Constructor { Constructor { span: DUMMY_SP, - key: PropName::Ident(quote_ident!("constructor")), + key: PropName::Ident("constructor".into()), is_optional: false, params: if has_super { vec![ParamOrTsParamProp::Param(Param { diff --git a/crates/swc_ecma_utils/src/macros.rs b/crates/swc_ecma_utils/src/macros.rs index b745ca563d99..5123758ea520 100644 --- a/crates/swc_ecma_utils/src/macros.rs +++ b/crates/swc_ecma_utils/src/macros.rs @@ -74,7 +74,8 @@ macro_rules! member_expr { (@EXT, $span:expr, $obj:expr, $first:ident . $($rest:tt)* ) => {{ use $crate::swc_ecma_ast::MemberProp; - let prop = MemberProp::Ident($crate::quote_ident!(Default::default(), $span, stringify!($first))); + use $crate::swc_ecma_ast::IdentName; + let prop = MemberProp::Ident(IdentName::new(stringify!($first).into(), $span)); member_expr!(@EXT, $span, Box::new(Expr::Member(MemberExpr{ span: $crate::swc_common::DUMMY_SP, @@ -85,7 +86,7 @@ macro_rules! member_expr { (@EXT, $span:expr, $obj:expr, $first:ident) => {{ use $crate::swc_ecma_ast::*; - let prop = MemberProp::Ident($crate::quote_ident!(Default::default(), $span, stringify!($first))); + let prop = MemberProp::Ident(IdentName::new(stringify!($first).into(), $span)); MemberExpr{ span: $crate::swc_common::DUMMY_SP, @@ -118,9 +119,9 @@ mod tests { obj: Box::new(Expr::Member(MemberExpr { span, obj: member_expr!(Default::default(), Default::default(), Function), - prop: MemberProp::Ident(quote_ident!("prototype")), + prop: MemberProp::Ident("prototype".into()), })), - prop: MemberProp::Ident(quote_ident!("bind")), + prop: MemberProp::Ident("bind".into()), })) ); } From 1a6fa5332149f77969528a8021e730d685ff7254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:49:44 +0900 Subject: [PATCH 28/80] More fix --- crates/swc_ecma_compat_es3/src/member_expr_lits.rs | 2 +- crates/swc_ecma_compat_es3/src/prop_lits.rs | 6 +++--- crates/swc_ecma_lints/src/rules/no_alert.rs | 2 +- crates/swc_ecma_lints/src/rules/no_console.rs | 2 +- crates/swc_ecma_lints/src/rules/radix.rs | 2 +- crates/swc_ecma_transforms_base/src/helpers/mod.rs | 2 +- crates/swc_ecma_transforms_base/src/rename/ops.rs | 5 ++--- crates/swc_ecma_transforms_classes/src/super_field.rs | 2 +- 8 files changed, 11 insertions(+), 12 deletions(-) diff --git a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs index a1ce9eab0c87..6afe99b8b84c 100644 --- a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs +++ b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs @@ -52,7 +52,7 @@ impl Fold for MemberExprLit { }; } else { return MemberExpr { - prop: MemberProp::Ident(swc_ecma_utils::quote_ident!(i.ctxt, i.span, i.sym)), + prop: MemberProp::Ident(swc_ecma_utils::quote_ident!(i.span, i.sym)), ..e }; } diff --git a/crates/swc_ecma_compat_es3/src/prop_lits.rs b/crates/swc_ecma_compat_es3/src/prop_lits.rs index d78104d3af57..37bbd306f20c 100644 --- a/crates/swc_ecma_compat_es3/src/prop_lits.rs +++ b/crates/swc_ecma_compat_es3/src/prop_lits.rs @@ -50,11 +50,11 @@ impl Fold for PropertyLiteral { if value.is_reserved() || !is_valid_ident(&value) { PropName::Str(Str { span, raw, value }) } else { - PropName::Ident(Ident::new_no_ctxt(value, span)) + PropName::Ident(IdentName::new(value, span)) } } PropName::Ident(i) => { - let Ident { sym, span, .. } = i; + let IdentName { sym, span, .. } = i; if sym.is_reserved() || sym.contains('-') || sym.contains('.') { PropName::Str(Str { span, @@ -62,7 +62,7 @@ impl Fold for PropertyLiteral { value: sym, }) } else { - PropName::Ident(Ident { span, sym, ..i }) + PropName::Ident(IdentName { span, sym, ..i }) } } _ => n, diff --git a/crates/swc_ecma_lints/src/rules/no_alert.rs b/crates/swc_ecma_lints/src/rules/no_alert.rs index b2604a96a962..48b53def043f 100644 --- a/crates/swc_ecma_lints/src/rules/no_alert.rs +++ b/crates/swc_ecma_lints/src/rules/no_alert.rs @@ -117,7 +117,7 @@ impl NoAlert { fn handle_member_prop(&mut self, prop: &MemberProp) { match prop { - MemberProp::Ident(Ident { sym, .. }) => { + MemberProp::Ident(IdentName { sym, .. }) => { self.prop = Some(sym.clone()); } MemberProp::Computed(comp) => { diff --git a/crates/swc_ecma_lints/src/rules/no_console.rs b/crates/swc_ecma_lints/src/rules/no_console.rs index 1367da7445db..2523f2c4279f 100644 --- a/crates/swc_ecma_lints/src/rules/no_console.rs +++ b/crates/swc_ecma_lints/src/rules/no_console.rs @@ -74,7 +74,7 @@ impl Visit for NoConsole { fn visit_member_expr(&mut self, member: &MemberExpr) { if let Expr::Ident(ident) = member.obj.as_ref() { match &member.prop { - MemberProp::Ident(Ident { sym, .. }) => { + MemberProp::Ident(IdentName { sym, .. }) => { self.check(member.span, ident, sym); } MemberProp::Computed(ComputedPropName { expr, .. }) => { diff --git a/crates/swc_ecma_lints/src/rules/radix.rs b/crates/swc_ecma_lints/src/rules/radix.rs index 7299a9ceeb62..107dd4fa086d 100644 --- a/crates/swc_ecma_lints/src/rules/radix.rs +++ b/crates/swc_ecma_lints/src/rules/radix.rs @@ -187,7 +187,7 @@ impl Radix { fn extract_prop_value(&mut self, prop: &MemberProp) -> Option { match prop { - MemberProp::Ident(Ident { sym, .. }) => Some(sym.clone()), + MemberProp::Ident(IdentName { sym, .. }) => Some(sym.clone()), MemberProp::Computed(ComputedPropName { expr, .. }) => { if let Expr::Lit(Lit::Str(Str { value, .. })) = expr.as_ref() { return Some(value.clone()); diff --git a/crates/swc_ecma_transforms_base/src/helpers/mod.rs b/crates/swc_ecma_transforms_base/src/helpers/mod.rs index f0c2a8d4a731..c383a253939b 100644 --- a/crates/swc_ecma_transforms_base/src/helpers/mod.rs +++ b/crates/swc_ecma_transforms_base/src/helpers/mod.rs @@ -477,7 +477,7 @@ impl InjectHelpers { MemberExpr { span: ref_ident.span, obj: Box::new(ident.into()), - prop: quote_ident!("_").into(), + prop: MemberProp::Ident("_".into()), } .into() }) diff --git a/crates/swc_ecma_transforms_base/src/rename/ops.rs b/crates/swc_ecma_transforms_base/src/rename/ops.rs index c560701a7092..49aca529b815 100644 --- a/crates/swc_ecma_transforms_base/src/rename/ops.rs +++ b/crates/swc_ecma_transforms_base/src/rename/ops.rs @@ -495,11 +495,10 @@ where } *prop = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident { + key: PropName::Ident(IdentName { // clear mark span: i.span, - ctxt: SyntaxContext::empty(), - ..i.clone() + sym: i.sym.clone(), }), value: Box::new(Expr::Ident(renamed)), }) diff --git a/crates/swc_ecma_transforms_classes/src/super_field.rs b/crates/swc_ecma_transforms_classes/src/super_field.rs index 7eff105abee1..b6d99b23028b 100644 --- a/crates/swc_ecma_transforms_classes/src/super_field.rs +++ b/crates/swc_ecma_transforms_classes/src/super_field.rs @@ -482,7 +482,7 @@ fn is_assign_to_super_prop(left: &AssignTarget) -> bool { fn prop_arg(prop: SuperProp) -> Expr { match prop { - SuperProp::Ident(Ident { + SuperProp::Ident(IdentName { sym: value, span, .. }) => Expr::Lit(Lit::Str(Str { span, From d5a28083b576c4748df4a7bac4290040348232af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:51:13 +0900 Subject: [PATCH 29/80] More fix --- crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs | 8 ++++---- crates/swc_ecma_compat_es2015/src/classes/mod.rs | 2 +- crates/swc_ecma_compat_es2015/src/classes/prop_name.rs | 2 +- crates/swc_ecma_compat_es2015/src/computed_props.rs | 2 +- crates/swc_ecma_transforms_module/src/amd.rs | 2 +- .../src/inline_globals.rs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs b/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs index ea807bef4f5e..a52195e5b9ab 100644 --- a/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs @@ -653,8 +653,8 @@ struct FlowHelper<'a> { } enum Label { - Break(Ident), - Continue(Ident), + Break(IdentName), + Continue(IdentName), } impl<'a> FlowHelper<'a> { @@ -667,7 +667,7 @@ impl<'a> FlowHelper<'a> { } } - fn has_outer_label(&self, label: &Option) -> bool { + fn has_outer_label(&self, label: &Option) -> bool { match label { Some(l) => !self.inner_label.contains(&l.sym), None => false, @@ -808,7 +808,7 @@ impl VisitMut for FlowHelper<'_> { arg: Some(Box::new(Expr::Object(ObjectLit { span, props: vec![PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("v".into(), DUMMY_SP)), + key: PropName::Ident(IdentName::new("v".into(), DUMMY_SP)), value: s.arg.take().unwrap_or_else(|| { Box::new(Expr::Unary(UnaryExpr { span: DUMMY_SP, diff --git a/crates/swc_ecma_compat_es2015/src/classes/mod.rs b/crates/swc_ecma_compat_es2015/src/classes/mod.rs index 238bd2bce106..598f918dfed6 100644 --- a/crates/swc_ecma_compat_es2015/src/classes/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/classes/mod.rs @@ -303,7 +303,7 @@ where if let Expr::Class(c @ ClassExpr { ident: None, .. }) = &mut *n.value { match &n.key { PropName::Ident(ident) => { - c.ident = Some(ident.clone().into_private()); + c.ident = Some(Ident::from(ident.clone()).into_private()); } PropName::Str(Str { value, span, .. }) => { if is_valid_prop_ident(value) { diff --git a/crates/swc_ecma_compat_es2015/src/classes/prop_name.rs b/crates/swc_ecma_compat_es2015/src/classes/prop_name.rs index b84f14ed206a..0a8e46f67650 100644 --- a/crates/swc_ecma_compat_es2015/src/classes/prop_name.rs +++ b/crates/swc_ecma_compat_es2015/src/classes/prop_name.rs @@ -12,7 +12,7 @@ pub enum HashKey { impl From<&PropName> for HashKey { fn from(p: &PropName) -> Self { match p { - PropName::Ident(Ident { sym: value, .. }) | PropName::Str(Str { value, .. }) => { + PropName::Ident(IdentName { sym: value, .. }) | PropName::Str(Str { value, .. }) => { HashKey::Str(value.clone()) } PropName::Num(Number { value, .. }) => HashKey::Str(value.to_string().into()), diff --git a/crates/swc_ecma_compat_es2015/src/computed_props.rs b/crates/swc_ecma_compat_es2015/src/computed_props.rs index dcc818471ca7..234ab8b0d499 100644 --- a/crates/swc_ecma_compat_es2015/src/computed_props.rs +++ b/crates/swc_ecma_compat_es2015/src/computed_props.rs @@ -379,7 +379,7 @@ fn prop_name_to_expr(p: PropName, loose: bool) -> (Expr, bool) { match p { PropName::Ident(i) => ( if loose { - Expr::Ident(i) + Expr::Ident(i.into()) } else { Expr::Lit(Lit::Str(Str { raw: None, diff --git a/crates/swc_ecma_transforms_module/src/amd.rs b/crates/swc_ecma_transforms_module/src/amd.rs index 8d82a9a7b228..efe57419cf46 100644 --- a/crates/swc_ecma_transforms_module/src/amd.rs +++ b/crates/swc_ecma_transforms_module/src/amd.rs @@ -559,7 +559,7 @@ fn amd_import_meta_url(span: Span, module: Ident) -> Expr { member_expr!(Default::default(), DUMMY_SP, document.baseURI).as_arg(), ]), ))), - prop: quote_ident!("href").into(), + prop: MemberProp::Ident("href".into()), } .into() } diff --git a/crates/swc_ecma_transforms_optimization/src/inline_globals.rs b/crates/swc_ecma_transforms_optimization/src/inline_globals.rs index e05a40cd5d5e..7f0f868b4f70 100644 --- a/crates/swc_ecma_transforms_optimization/src/inline_globals.rs +++ b/crates/swc_ecma_transforms_optimization/src/inline_globals.rs @@ -135,7 +135,7 @@ impl VisitMut for InlineGlobals { } } - MemberProp::Ident(Ident { sym, .. }) => { + MemberProp::Ident(IdentName { sym, .. }) => { if let Some(env) = self.envs.get(sym) { *expr = env.clone(); } From da31112164d3a8e901b538c3505f5ef86ef7e190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:53:07 +0900 Subject: [PATCH 30/80] More fix --- crates/swc_ecma_compat_es2015/src/destructuring.rs | 2 +- crates/swc_ecma_compat_es2015/src/for_of.rs | 2 +- crates/swc_ecma_compat_es2015/src/function_name.rs | 2 +- crates/swc_ecma_transforms_module/src/system_js.rs | 6 ++++-- crates/swc_ecma_transforms_module/src/util.rs | 6 +++--- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/destructuring.rs b/crates/swc_ecma_compat_es2015/src/destructuring.rs index 3dd0ad1ed8d3..3ac140824d31 100644 --- a/crates/swc_ecma_compat_es2015/src/destructuring.rs +++ b/crates/swc_ecma_compat_es2015/src/destructuring.rs @@ -1169,7 +1169,7 @@ fn make_ref_prop_expr(ref_ident: &Ident, prop: Box, mut computed: bool) -> expr: prop, }) } else { - MemberProp::Ident(prop.ident().unwrap()) + MemberProp::Ident(prop.ident().unwrap().into()) }, }) } diff --git a/crates/swc_ecma_compat_es2015/src/for_of.rs b/crates/swc_ecma_compat_es2015/src/for_of.rs index e6cce3991bc8..9265b625d786 100644 --- a/crates/swc_ecma_compat_es2015/src/for_of.rs +++ b/crates/swc_ecma_compat_es2015/src/for_of.rs @@ -77,7 +77,7 @@ struct ForOf { impl ForOf { fn fold_for_stmt( &mut self, - label: Option, + label: Option, ForOfStmt { span, left, diff --git a/crates/swc_ecma_compat_es2015/src/function_name.rs b/crates/swc_ecma_compat_es2015/src/function_name.rs index 35b807e744bc..724b91c9637e 100644 --- a/crates/swc_ecma_compat_es2015/src/function_name.rs +++ b/crates/swc_ecma_compat_es2015/src/function_name.rs @@ -77,7 +77,7 @@ impl VisitMut for FnName { // p.value = if let PropName::Ident(ref i) = p.key { Box::new(Expr::Fn(FnExpr { - ident: Some(prepare(i.clone())), + ident: Some(prepare(i.clone().into())), ..expr.take() })) } else { diff --git a/crates/swc_ecma_transforms_module/src/system_js.rs b/crates/swc_ecma_transforms_module/src/system_js.rs index a58356aac409..acda549d3025 100644 --- a/crates/swc_ecma_transforms_module/src/system_js.rs +++ b/crates/swc_ecma_transforms_module/src/system_js.rs @@ -599,7 +599,7 @@ impl Fold for SystemJs { match prop { Prop::Shorthand(shorthand) => Prop::KeyValue(KeyValueProp { - key: PropName::Ident(shorthand.clone()), + key: PropName::Ident(shorthand.clone().into()), value: Box::new(self.fold_module_name_ident(shorthand)), }), Prop::KeyValue(key_value_prop) => Prop::KeyValue(KeyValueProp { @@ -680,7 +680,9 @@ impl Fold for SystemJs { ))), prop: match specifier.imported { Some(m) => get_module_export_member_prop(&m), - None => MemberProp::Ident(specifier.local), + None => { + MemberProp::Ident(specifier.local.into()) + } }, })), } diff --git a/crates/swc_ecma_transforms_module/src/util.rs b/crates/swc_ecma_transforms_module/src/util.rs index f07977aec120..43b5a7ce4e36 100644 --- a/crates/swc_ecma_transforms_module/src/util.rs +++ b/crates/swc_ecma_transforms_module/src/util.rs @@ -372,16 +372,16 @@ pub(crate) fn emit_export_stmts(exports: Ident, mut prop_list: Vec) -> } } -pub(crate) fn prop_name(key: &str, (span, ctxt): SpanCtx) -> IdentOrStr { +pub(crate) fn prop_name(key: &str, (span, _): SpanCtx) -> IdentOrStr { if is_valid_prop_ident(key) { - IdentOrStr::Ident(quote_ident!(ctxt, span, key)) + IdentOrStr::Ident(IdentName::new(key.into(), span)) } else { IdentOrStr::Str(quote_str!(span, key)) } } pub(crate) enum IdentOrStr { - Ident(Ident), + Ident(IdentName), Str(Str), } From 791cd9dae25e555269c9e83adfbefeed7486e68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:54:02 +0900 Subject: [PATCH 31/80] More fix --- crates/swc_ecma_compat_es2015/src/generator.rs | 2 +- crates/swc_ecma_compat_es2015/src/object_super.rs | 2 +- crates/swc_ecma_transforms_react/src/refresh/util.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/generator.rs b/crates/swc_ecma_compat_es2015/src/generator.rs index 8f5570213569..906cc4c303b2 100644 --- a/crates/swc_ecma_compat_es2015/src/generator.rs +++ b/crates/swc_ecma_compat_es2015/src/generator.rs @@ -1216,7 +1216,7 @@ impl Generator { left: MemberExpr { span: DUMMY_SP, obj: Box::new(Expr::Ident(temp.clone())), - prop: MemberProp::Ident(p.clone()), + prop: MemberProp::Ident(p.clone().into()), } .into(), right: Box::new(Expr::Ident(p)), diff --git a/crates/swc_ecma_compat_es2015/src/object_super.rs b/crates/swc_ecma_compat_es2015/src/object_super.rs index d0593cefd58a..d0e92ef86b37 100644 --- a/crates/swc_ecma_compat_es2015/src/object_super.rs +++ b/crates/swc_ecma_compat_es2015/src/object_super.rs @@ -189,7 +189,7 @@ impl SuperReplacer { // .a -> "a" fn normalize_computed_expr(&mut self, prop: &mut SuperProp) -> Box { match prop.take() { - SuperProp::Ident(Ident { + SuperProp::Ident(IdentName { sym: value, span, .. }) => Box::new(Expr::Lit(Lit::Str(Str { raw: None, diff --git a/crates/swc_ecma_transforms_react/src/refresh/util.rs b/crates/swc_ecma_transforms_react/src/refresh/util.rs index b038c2b92175..0c410c1b5136 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/util.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/util.rs @@ -96,15 +96,15 @@ impl Visit for UsedInJsx { if let Callee::Expr(expr) = &n.callee { let ident = match expr.as_ref() { - Expr::Ident(ident) => ident, + Expr::Ident(ident) => ident.to_id(), Expr::Member(MemberExpr { prop: MemberProp::Ident(ident), .. - }) => ident, + }) => (ident.sym.clone(), SyntaxContext::empty()), _ => return, }; if matches!( - ident.sym.as_ref(), + ident.0.as_ref(), "createElement" | "jsx" | "jsxDEV" | "jsxs" ) { if let Some(ExprOrSpread { expr, .. }) = n.args.first() { From 8aba0d0638ccec23f69787c13ac8500b429c4e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:54:34 +0900 Subject: [PATCH 32/80] More fix --- crates/swc_ecma_compat_es2015/src/shorthand_property.rs | 2 +- crates/swc_ecma_compat_es2015/src/spread.rs | 2 +- crates/swc_ecma_compat_es2015/src/template_literal.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/shorthand_property.rs b/crates/swc_ecma_compat_es2015/src/shorthand_property.rs index 1d3106aab5a5..98dbd098732e 100644 --- a/crates/swc_ecma_compat_es2015/src/shorthand_property.rs +++ b/crates/swc_ecma_compat_es2015/src/shorthand_property.rs @@ -78,7 +78,7 @@ impl VisitMut for Shorthand { } Prop::Method(MethodProp { key, function }) => { let key = match key.take() { - PropName::Ident(Ident { span, sym, .. }) if sym == "__proto__" => { + PropName::Ident(IdentName { span, sym, .. }) if sym == "__proto__" => { ComputedPropName { span, expr: sym.into(), diff --git a/crates/swc_ecma_compat_es2015/src/spread.rs b/crates/swc_ecma_compat_es2015/src/spread.rs index 913e11c37520..eec35c735c40 100644 --- a/crates/swc_ecma_compat_es2015/src/spread.rs +++ b/crates/swc_ecma_compat_es2015/src/spread.rs @@ -150,7 +150,7 @@ impl VisitMut for Spread { let apply = MemberExpr { span: DUMMY_SP, obj: callee_updated.unwrap_or_else(|| callee.take()), - prop: MemberProp::Ident(Ident::new_no_ctxt("apply".into(), *span)), + prop: MemberProp::Ident(IdentName::new("apply".into(), *span)), }; *e = Expr::Call(CallExpr { diff --git a/crates/swc_ecma_compat_es2015/src/template_literal.rs b/crates/swc_ecma_compat_es2015/src/template_literal.rs index b798605615b4..fe74887975d1 100644 --- a/crates/swc_ecma_compat_es2015/src/template_literal.rs +++ b/crates/swc_ecma_compat_es2015/src/template_literal.rs @@ -169,7 +169,7 @@ impl VisitMut for TemplateLiteral { callee: MemberExpr { span: DUMMY_SP, obj, - prop: MemberProp::Ident(Ident::new_no_ctxt( + prop: MemberProp::Ident(IdentName::new( "concat".into(), expr_span, )), @@ -210,7 +210,7 @@ impl VisitMut for TemplateLiteral { callee: MemberExpr { span: DUMMY_SP, obj, - prop: MemberProp::Ident(Ident::new_no_ctxt( + prop: MemberProp::Ident(IdentName::new( "concat".into(), expr_span, )), From d833aaa576d3944cdb6b678763da75a2256c43c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:55:19 +0900 Subject: [PATCH 33/80] More trait impl --- crates/swc_ecma_ast/src/ident.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index d8401f95cd46..04643b4ab882 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -448,6 +448,12 @@ impl Display for Ident { } } +impl Display for IdentName { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.sym) + } +} + impl Display for BindingIdent { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}{:?}", self.sym, self.ctxt) From b57343a854cb911d9025c08806e8e1daa456c8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:55:21 +0900 Subject: [PATCH 34/80] More fix --- crates/swc_ecma_transforms_module/src/system_js.rs | 2 +- crates/swc_ecma_transforms_optimization/src/inline_globals.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_transforms_module/src/system_js.rs b/crates/swc_ecma_transforms_module/src/system_js.rs index acda549d3025..030980c82430 100644 --- a/crates/swc_ecma_transforms_module/src/system_js.rs +++ b/crates/swc_ecma_transforms_module/src/system_js.rs @@ -1132,7 +1132,7 @@ fn get_module_export_expr(module_export_name: &ModuleExportName) -> Expr { #[inline] fn get_module_export_member_prop(module_export_name: &ModuleExportName) -> MemberProp { match &module_export_name { - ModuleExportName::Ident(ident) => MemberProp::Ident(ident.clone()), + ModuleExportName::Ident(ident) => MemberProp::Ident(ident.clone().into()), ModuleExportName::Str(s) => MemberProp::Computed(ComputedPropName { span: s.span, expr: Box::new(Expr::Lit(Lit::Str(quote_str!(s.value.clone())))), diff --git a/crates/swc_ecma_transforms_optimization/src/inline_globals.rs b/crates/swc_ecma_transforms_optimization/src/inline_globals.rs index 7f0f868b4f70..7d7283d670ca 100644 --- a/crates/swc_ecma_transforms_optimization/src/inline_globals.rs +++ b/crates/swc_ecma_transforms_optimization/src/inline_globals.rs @@ -168,7 +168,7 @@ impl VisitMut for InlineGlobals { if let Some(mut value) = self.globals.get(&i.sym).cloned().map(Box::new) { value.visit_mut_with(self); *p = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(i.clone()), + key: PropName::Ident(i.clone().into()), value, }); } From a13851c0886439aa48ab9fb34c5dec2d77847162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:56:33 +0900 Subject: [PATCH 35/80] More fix --- crates/swc_bundler/src/bundler/chunk/cjs.rs | 2 +- crates/swc_bundler/src/bundler/chunk/computed_key.rs | 4 +--- crates/swc_bundler/src/bundler/finalize.rs | 4 ++-- crates/swc_ecma_compat_es3/src/member_expr_lits.rs | 4 ++-- .../src/simplify/const_propagation.rs | 2 +- .../swc_ecma_transforms_optimization/src/simplify/expr/mod.rs | 4 ++-- crates/swc_ecma_transforms_proposal/src/decorators/mod.rs | 4 +--- 7 files changed, 10 insertions(+), 14 deletions(-) diff --git a/crates/swc_bundler/src/bundler/chunk/cjs.rs b/crates/swc_bundler/src/bundler/chunk/cjs.rs index d63e43ec877e..45d9fd93225e 100644 --- a/crates/swc_bundler/src/bundler/chunk/cjs.rs +++ b/crates/swc_bundler/src/bundler/chunk/cjs.rs @@ -284,7 +284,7 @@ where }, ImportSpecifier::Default(s) => { props.push(ObjectPatProp::KeyValue(KeyValuePatProp { - key: PropName::Ident(Ident::new_no_ctxt("default".into(), DUMMY_SP)), + key: PropName::Ident(IdentName::new("default".into(), DUMMY_SP)), value: Box::new(s.local.into()), })); } diff --git a/crates/swc_bundler/src/bundler/chunk/computed_key.rs b/crates/swc_bundler/src/bundler/chunk/computed_key.rs index 98598b6ce642..fefa496165d9 100644 --- a/crates/swc_bundler/src/bundler/chunk/computed_key.rs +++ b/crates/swc_bundler/src/bundler/chunk/computed_key.rs @@ -205,11 +205,9 @@ impl ExportToReturn { } fn export_key_value(&mut self, mut key: Ident, value: Ident) { - key.ctxt = SyntaxContext::empty(); - self.return_props .push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { - key: PropName::Ident(key), + key: PropName::Ident(key.into()), value: Box::new(Expr::Ident(value)), })))); } diff --git a/crates/swc_bundler/src/bundler/finalize.rs b/crates/swc_bundler/src/bundler/finalize.rs index e8bdfe332040..e777694dfac7 100644 --- a/crates/swc_bundler/src/bundler/finalize.rs +++ b/crates/swc_bundler/src/bundler/finalize.rs @@ -206,7 +206,7 @@ where ExportSpecifier::Default(s) => { props.push(PropOrSpread::Prop(Box::new(Prop::KeyValue( KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt( + key: PropName::Ident(IdentName::new( "default".into(), DUMMY_SP, )), @@ -224,7 +224,7 @@ where }; props.push(PropOrSpread::Prop(Box::new( Prop::KeyValue(KeyValueProp { - key: PropName::Ident(exported), + key: PropName::Ident(exported.into()), value: Box::new(Expr::Ident(orig)), }), ))); diff --git a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs index 6afe99b8b84c..76f346b09495 100644 --- a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs +++ b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs @@ -1,5 +1,5 @@ use swc_ecma_ast::*; -use swc_ecma_utils::is_valid_ident; +use swc_ecma_utils::{is_valid_ident, quote_ident}; use swc_ecma_visit::{noop_fold_type, Fold, FoldWith}; use swc_trace_macro::swc_trace; @@ -52,7 +52,7 @@ impl Fold for MemberExprLit { }; } else { return MemberExpr { - prop: MemberProp::Ident(swc_ecma_utils::quote_ident!(i.span, i.sym)), + prop: MemberProp::Ident(quote_ident!(i.span, i.sym)), ..e }; } diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/const_propagation.rs b/crates/swc_ecma_transforms_optimization/src/simplify/const_propagation.rs index 1ac6d1c3f3a0..80d33fceb62f 100644 --- a/crates/swc_ecma_transforms_optimization/src/simplify/const_propagation.rs +++ b/crates/swc_ecma_transforms_optimization/src/simplify/const_propagation.rs @@ -102,7 +102,7 @@ impl VisitMut for ConstPropagation<'_> { if let Prop::Shorthand(i) = p { if let Some(expr) = self.scope.find_var(&i.to_id()) { *p = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(i.take()), + key: PropName::Ident(i.take().into()), value: expr.clone(), }); } diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs index 486f845bda46..82d4bd5bd4a2 100644 --- a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs +++ b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs @@ -127,10 +127,10 @@ impl SimplifyExpr { IndexStr(JsWord), } let op = match prop { - MemberProp::Ident(Ident { sym, .. }) if &**sym == "length" && !obj.is_object() => { + MemberProp::Ident(IdentName { sym, .. }) if &**sym == "length" && !obj.is_object() => { KnownOp::Len } - MemberProp::Ident(Ident { sym, .. }) => { + MemberProp::Ident(IdentName { sym, .. }) => { if self.in_callee { return; } diff --git a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs index 85d1be416ebb..77c479c48eef 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs @@ -431,9 +431,7 @@ impl Decorators { ClassMember::Method(method) => { let fn_name = match method.key { PropName::Ident(ref i) => Some(i.clone()), - PropName::Str(ref s) => { - Some(Ident::new_no_ctxt(s.value.clone(), s.span)) - } + PropName::Str(ref s) => Some(IdentName::new(s.value.clone(), s.span)), _ => None, }; let key_prop_value = Box::new(prop_name_to_expr_value(method.key.clone())); From 87a61d231311f4f6a16dad4e25eadb5f1e041b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:57:30 +0900 Subject: [PATCH 36/80] More fix --- crates/swc_bundler/src/bundler/finalize.rs | 2 +- crates/swc_ecma_compat_es3/src/member_expr_lits.rs | 2 +- crates/swc_ecma_compat_es3/src/prop_lits.rs | 2 +- crates/swc_ecma_minifier/src/compress/optimize/arguments.rs | 3 +-- crates/swc_ecma_minifier/src/compress/pure/properties.rs | 3 +-- crates/swc_ecma_transforms_proposal/src/decorators/mod.rs | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/crates/swc_bundler/src/bundler/finalize.rs b/crates/swc_bundler/src/bundler/finalize.rs index e777694dfac7..7ff051dd1427 100644 --- a/crates/swc_bundler/src/bundler/finalize.rs +++ b/crates/swc_bundler/src/bundler/finalize.rs @@ -258,7 +258,7 @@ where props.push(PropOrSpread::Prop(Box::new(Prop::KeyValue( KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt( + key: PropName::Ident(IdentName::new( "default".into(), export.span, )), diff --git a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs index 76f346b09495..56c52cfb6488 100644 --- a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs +++ b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs @@ -52,7 +52,7 @@ impl Fold for MemberExprLit { }; } else { return MemberExpr { - prop: MemberProp::Ident(quote_ident!(i.span, i.sym)), + prop: MemberProp::Ident(IdentName::new(i.sym, i.span)), ..e }; } diff --git a/crates/swc_ecma_compat_es3/src/prop_lits.rs b/crates/swc_ecma_compat_es3/src/prop_lits.rs index 37bbd306f20c..1ca0958c0cf2 100644 --- a/crates/swc_ecma_compat_es3/src/prop_lits.rs +++ b/crates/swc_ecma_compat_es3/src/prop_lits.rs @@ -62,7 +62,7 @@ impl Fold for PropertyLiteral { value: sym, }) } else { - PropName::Ident(IdentName { span, sym, ..i }) + PropName::Ident(IdentName { span, sym }) } } _ => n, diff --git a/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs b/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs index 6212ecba7b69..d734867782ba 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs @@ -31,10 +31,9 @@ impl Optimizer<'_> { self.changed = true; report_change!("arguments: Optimizing computed access to arguments"); - *prop = MemberProp::Ident(Ident { + *prop = MemberProp::Ident(IdentName { span: s.span, sym: s.take().value, - ..Default::default() }) } } diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs index 296273f74082..e455ffcc931e 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs @@ -89,10 +89,9 @@ impl Pure<'_> { { self.changed = true; report_change!("misc: Optimizing string property name"); - *name = PropName::Ident(Ident { + *name = PropName::Ident(IdentName { span: s.span, sym: s.value.clone(), - ..Default::default() }); return; } diff --git a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs index 77c479c48eef..8c08674f2e03 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs @@ -402,7 +402,7 @@ impl Decorators { key: PropName::Ident(quote_ident!("value")), value: Box::new( FnExpr { - ident: fn_name.map(Ident::into_private), + ident: fn_name.map(Ident::from).map(Ident::into_private), function: Function { decorators: vec![], ..*method.function From eb59dc6f70e35d16d8f26b1afd04934a2e71bcaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 10:58:54 +0900 Subject: [PATCH 37/80] More fix --- crates/swc_bundler/src/bundler/finalize.rs | 2 +- crates/swc_bundler/src/bundler/import/mod.rs | 4 ++-- crates/swc_bundler/src/bundler/keywords.rs | 2 +- crates/swc_bundler/src/inline.rs | 2 +- crates/swc_bundler/src/modules/sort/stmt.rs | 2 +- .../swc_ecma_compat_es3/src/member_expr_lits.rs | 2 +- crates/swc_ecma_transforms_react/src/jsx/mod.rs | 16 +++++++++++----- 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/crates/swc_bundler/src/bundler/finalize.rs b/crates/swc_bundler/src/bundler/finalize.rs index 7ff051dd1427..20d8b7801bf4 100644 --- a/crates/swc_bundler/src/bundler/finalize.rs +++ b/crates/swc_bundler/src/bundler/finalize.rs @@ -279,7 +279,7 @@ where props.push(PropOrSpread::Prop(Box::new(Prop::KeyValue( KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt( + key: PropName::Ident(IdentName::new( "default".into(), export.span, )), diff --git a/crates/swc_bundler/src/bundler/import/mod.rs b/crates/swc_bundler/src/bundler/import/mod.rs index 399d07d5671c..bbfe810ad85d 100644 --- a/crates/swc_bundler/src/bundler/import/mod.rs +++ b/crates/swc_bundler/src/bundler/import/mod.rs @@ -312,7 +312,7 @@ where }; let prop = match &e.prop { MemberProp::Ident(i) => { - let mut i = i.clone(); + let mut i = Ident::from(i.clone()); i.ctxt = exported_ctxt; i } @@ -351,7 +351,7 @@ where }; let mut prop = match &me.prop { - MemberProp::Ident(v) => v.clone(), + MemberProp::Ident(v) => Ident::from(v.clone()), _ => return, }; prop.ctxt = self.imported_idents.get(&obj.to_id()).copied().unwrap(); diff --git a/crates/swc_bundler/src/bundler/keywords.rs b/crates/swc_bundler/src/bundler/keywords.rs index 692263058f98..071638d35799 100644 --- a/crates/swc_bundler/src/bundler/keywords.rs +++ b/crates/swc_bundler/src/bundler/keywords.rs @@ -133,7 +133,7 @@ impl VisitMut for KeywordRenamer { Prop::Shorthand(i) => { if let Some(renamed) = self.renamed(i) { *n = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(i.clone()), + key: PropName::Ident(i.clone().into()), value: Box::new(Expr::Ident(renamed)), }); } diff --git a/crates/swc_bundler/src/inline.rs b/crates/swc_bundler/src/inline.rs index 7faea18bbd31..7cb7390f1f2c 100644 --- a/crates/swc_bundler/src/inline.rs +++ b/crates/swc_bundler/src/inline.rs @@ -120,7 +120,7 @@ impl VisitMut for Inliner { } if i.sym != orig.sym { *n = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(orig), + key: PropName::Ident(orig.into()), value: Box::new(Expr::Ident(i.clone())), }); } diff --git a/crates/swc_bundler/src/modules/sort/stmt.rs b/crates/swc_bundler/src/modules/sort/stmt.rs index e692e97319a0..15c3a18abd1b 100644 --- a/crates/swc_bundler/src/modules/sort/stmt.rs +++ b/crates/swc_bundler/src/modules/sort/stmt.rs @@ -410,7 +410,7 @@ impl Visit for FieldInitFinder { if let Expr::Member(callee) = &**callee { if callee.obj.is_ident_ref_to("Object") { match &callee.prop { - MemberProp::Ident(Ident { sym: prop_sym, .. }) + MemberProp::Ident(IdentName { sym: prop_sym, .. }) if *prop_sym == *"assign" => { let old = self.in_object_assign; diff --git a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs index 56c52cfb6488..5f839a95f969 100644 --- a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs +++ b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs @@ -1,5 +1,5 @@ use swc_ecma_ast::*; -use swc_ecma_utils::{is_valid_ident, quote_ident}; +use swc_ecma_utils::is_valid_ident; use swc_ecma_visit::{noop_fold_type, Fold, FoldWith}; use swc_trace_macro::swc_trace; diff --git a/crates/swc_ecma_transforms_react/src/jsx/mod.rs b/crates/swc_ecma_transforms_react/src/jsx/mod.rs index a5df9d322c8c..b7794858d1f2 100644 --- a/crates/swc_ecma_transforms_react/src/jsx/mod.rs +++ b/crates/swc_ecma_transforms_react/src/jsx/mod.rs @@ -702,7 +702,11 @@ where Prop::KeyValue(KeyValueProp { key, value }), ))); } - JSXAttrName::JSXNamespacedName(JSXNamespacedName { ns, name }) => { + JSXAttrName::JSXNamespacedName(JSXNamespacedName { + ns, + name, + .. + }) => { if self.throw_if_namespace { HANDLER.with(|handler| { handler @@ -1140,7 +1144,7 @@ fn add_require(imports: Vec<(Ident, Ident)>, src: &str, unresolved_mark: Mark) - .map(|(local, imported)| { if imported.sym != local.sym { ObjectPatProp::KeyValue(KeyValuePatProp { - key: PropName::Ident(imported), + key: PropName::Ident(imported.into()), value: Box::new(Pat::Ident(local.into())), }) } else { @@ -1203,7 +1207,9 @@ where Box::new(Expr::Ident(i)) } } - JSXElementName::JSXNamespacedName(JSXNamespacedName { ref ns, ref name }) => { + JSXElementName::JSXNamespacedName(JSXNamespacedName { + ref ns, ref name, .. + }) => { if self.throw_if_namespace { HANDLER.with(|handler| { handler @@ -1226,7 +1232,7 @@ where value: value.into(), }))) } - JSXElementName::JSXMemberExpr(JSXMemberExpr { obj, prop }) => { + JSXElementName::JSXMemberExpr(JSXMemberExpr { obj, prop, .. }) => { fn convert_obj(obj: JSXObject) -> Box { let span = obj.span(); @@ -1271,7 +1277,7 @@ fn to_prop_name(n: JSXAttrName) -> PropName { PropName::Ident(i) } } - JSXAttrName::JSXNamespacedName(JSXNamespacedName { ns, name }) => { + JSXAttrName::JSXNamespacedName(JSXNamespacedName { ns, name, .. }) => { let value = format!("{}:{}", ns.sym, name.sym); PropName::Str(Str { From 3ebd3f12c30e4d407eb64bd0cdf6f2f1f1c4d5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:02:15 +0900 Subject: [PATCH 38/80] More fix --- crates/swc_bundler/src/modules/sort/stmt.rs | 4 +++- crates/swc_bundler/src/util.rs | 4 ++-- crates/swc_ecma_minifier/src/compress/optimize/arguments.rs | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/swc_bundler/src/modules/sort/stmt.rs b/crates/swc_bundler/src/modules/sort/stmt.rs index 15c3a18abd1b..7315f61327d7 100644 --- a/crates/swc_bundler/src/modules/sort/stmt.rs +++ b/crates/swc_bundler/src/modules/sort/stmt.rs @@ -441,7 +441,9 @@ impl Visit for FieldInitFinder { if !self.in_rhs || self.in_object_assign { if let Expr::Ident(obj) = &*e.obj { match &e.prop { - MemberProp::Ident(Ident { sym: prop_sym, .. }) if *prop_sym == *"prototype" => { + MemberProp::Ident(IdentName { sym: prop_sym, .. }) + if *prop_sym == *"prototype" => + { self.accessed.insert(obj.into()); } _ => {} diff --git a/crates/swc_bundler/src/util.rs b/crates/swc_bundler/src/util.rs index d2e0473a7f4d..fbbbe250f8f3 100644 --- a/crates/swc_bundler/src/util.rs +++ b/crates/swc_bundler/src/util.rs @@ -183,7 +183,7 @@ impl IntoParallelIterator for T where T: IntoIterator {} fn metadata(key: &str, value: &str) -> PropOrSpread { PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt(key.into(), DUMMY_SP)), + key: PropName::Ident(IdentName::new(key.into(), DUMMY_SP)), value: Box::new(Expr::Lit(Lit::Str(Str { span: DUMMY_SP, value: value.into(), @@ -242,7 +242,7 @@ impl ExportMetadata { for prop in &with.props { if let PropOrSpread::Prop(p) = prop { if let Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident { sym, .. }), + key: PropName::Ident(IdentName { sym, .. }), value, .. }) = &**p diff --git a/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs b/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs index d734867782ba..fbdb38768cdb 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/arguments.rs @@ -52,10 +52,9 @@ impl Optimizer<'_> { self.changed = true; report_change!("arguments: Optimizing computed access to arguments"); - *prop = SuperProp::Ident(Ident { + *prop = SuperProp::Ident(IdentName { span: s.span, sym: s.take().value, - ..Default::default() }) } } From f181641caa21365cad7d1c58ee2d3f9fff602ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:03:32 +0900 Subject: [PATCH 39/80] More fix --- .../swc_ecma_minifier/src/compress/optimize/util.rs | 2 +- crates/swc_ecma_minifier/src/util/mod.rs | 5 +++-- crates/swc_ecma_transforms_react/src/refresh/hook.rs | 12 ++++++------ crates/swc_ecma_transforms_react/src/refresh/util.rs | 5 +++-- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/crates/swc_ecma_minifier/src/compress/optimize/util.rs b/crates/swc_ecma_minifier/src/compress/optimize/util.rs index 479acaaec917..8bbbedd495f7 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/util.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/util.rs @@ -592,7 +592,7 @@ impl VisitMut for ExprReplacer { unreachable!("`{}` is already taken", i) }; *p = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(i.clone()), + key: PropName::Ident(i.clone().into()), value, }); } diff --git a/crates/swc_ecma_minifier/src/util/mod.rs b/crates/swc_ecma_minifier/src/util/mod.rs index fd94193a3643..abff8482bbcd 100644 --- a/crates/swc_ecma_minifier/src/util/mod.rs +++ b/crates/swc_ecma_minifier/src/util/mod.rs @@ -3,6 +3,7 @@ use std::time::Instant; use rustc_hash::FxHashSet; +use swc_atoms::Atom; use swc_common::{util::take::Take, Span, Spanned, DUMMY_SP}; use swc_ecma_ast::*; use swc_ecma_utils::{stack_size::maybe_grow_default, ModuleItemLike, StmtLike, Value}; @@ -179,7 +180,7 @@ impl ExprOptExt for Expr { } } -pub(crate) fn contains_leaping_continue_with_label(n: &N, label: Id) -> bool +pub(crate) fn contains_leaping_continue_with_label(n: &N, label: Atom) -> bool where N: VisitWith, { @@ -206,7 +207,7 @@ pub(crate) struct LeapFinder { found_await: bool, found_yield: bool, found_continue_with_label: bool, - target_label: Option, + target_label: Option, } impl Visit for LeapFinder { diff --git a/crates/swc_ecma_transforms_react/src/refresh/hook.rs b/crates/swc_ecma_transforms_react/src/refresh/hook.rs index 65650529a60e..bf94652dc242 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/hook.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/hook.rs @@ -37,7 +37,7 @@ struct Hook { #[allow(clippy::large_enum_variant)] enum HookCall { Ident(Ident), - Member(Expr, Ident), // for obj and prop + Member(Expr, IdentName), // for obj and prop } pub struct HookRegister<'a> { pub options: &'a RefreshOptions, @@ -83,15 +83,15 @@ impl<'a> HookRegister<'a> { for hook in hooks { let name = match &hook.callee { - HookCall::Ident(i) => i, - HookCall::Member(_, i) => i, + HookCall::Ident(i) => i.clone(), + HookCall::Member(_, i) => i.clone().into(), }; sign.push(format!("{}{{{}}}", name.sym, hook.key)); match &hook.callee { - HookCall::Ident(ident) if !is_builtin_hook(ident) => { + HookCall::Ident(ident) if !is_builtin_hook(&ident.sym) => { custom_hook.push(hook.callee); } - HookCall::Member(Expr::Ident(obj_ident), prop) if !is_builtin_hook(prop) => { + HookCall::Member(Expr::Ident(obj_ident), prop) if !is_builtin_hook(&prop.sym) => { if obj_ident.sym.as_ref() != "React" { custom_hook.push(hook.callee); } @@ -154,7 +154,7 @@ impl<'a> HookRegister<'a> { HookCall::Member(obj, prop) => Expr::Member(MemberExpr { span: DUMMY_SP, obj: Box::new(obj), - prop: MemberProp::Ident(prop), + prop: MemberProp::Ident(prop.into()), }), } .as_arg(), diff --git a/crates/swc_ecma_transforms_react/src/refresh/util.rs b/crates/swc_ecma_transforms_react/src/refresh/util.rs index 0c410c1b5136..0b59c7c3adf7 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/util.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/util.rs @@ -1,11 +1,12 @@ +use swc_atoms::Atom; use swc_common::{collections::AHashSet, Spanned, SyntaxContext, DUMMY_SP}; use swc_ecma_ast::*; use swc_ecma_utils::ExprFactory; use swc_ecma_visit::{noop_visit_type, Visit, VisitWith}; -pub fn is_builtin_hook(name: &Ident) -> bool { +pub fn is_builtin_hook(name: &str) -> bool { matches!( - name.sym.as_ref(), + name, "useState" | "useReducer" | "useEffect" From 8e708fe51e97f31c59b9ea086ccc2940df361344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:04:46 +0900 Subject: [PATCH 40/80] More fix --- crates/swc_ecma_minifier/src/compress/optimize/mod.rs | 4 ++-- crates/swc_ecma_transforms_react/src/refresh/hook.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs index 4c4b9b64a81b..99ec3a05d7e2 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs @@ -2235,7 +2235,7 @@ impl VisitMut for Optimizer<'_> { let ctx = Ctx { dont_use_prepend_nor_append: contains_leaping_continue_with_label( &n.body, - n.label.to_id(), + n.label.sym.clone(), ), ..self.ctx }; @@ -2397,7 +2397,7 @@ impl VisitMut for Optimizer<'_> { e.visit_mut_with(self); *n = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(i.clone()), + key: PropName::Ident(i.clone().into()), value: e, }); } diff --git a/crates/swc_ecma_transforms_react/src/refresh/hook.rs b/crates/swc_ecma_transforms_react/src/refresh/hook.rs index bf94652dc242..2a7299f67f82 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/hook.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/hook.rs @@ -391,7 +391,7 @@ impl<'a> HookCollector<'a> { let ident = match callee { Expr::Ident(ident) => { hook_call = Some(HookCall::Ident(ident.clone())); - Some(ident) + Some(&ident.sym) } // hook cannot be used in class, so we're fine without SuperProp Expr::Member(MemberExpr { @@ -400,11 +400,11 @@ impl<'a> HookCollector<'a> { .. }) => { hook_call = Some(HookCall::Member(*obj.clone(), ident.clone())); - Some(ident) + Some(&ident.sym) } _ => None, }?; - let name = if is_hook_like(&ident.sym) { + let name = if is_hook_like(&ident) { Some(ident) } else { None @@ -415,7 +415,7 @@ impl<'a> HookCollector<'a> { String::new() }; // Some built-in Hooks reset on edits to arguments. - if &name.sym == "useState" && !expr.args.is_empty() { + if *name == "useState" && !expr.args.is_empty() { // useState first argument is initial state. let _ = write!( key, @@ -424,7 +424,7 @@ impl<'a> HookCollector<'a> { .span_to_snippet(expr.args[0].span()) .unwrap_or_default() ); - } else if &name.sym == "useReducer" && expr.args.len() > 1 { + } else if name == "useReducer" && expr.args.len() > 1 { // useReducer second argument is initial state. let _ = write!( key, From f619264bdc7dd360c70f4faa8ad382dfe3fbde71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:06:14 +0900 Subject: [PATCH 41/80] More fix --- crates/swc_ecma_minifier/src/compress/optimize/mod.rs | 2 +- crates/swc_ecma_minifier/src/compress/optimize/util.rs | 2 +- crates/swc_ecma_minifier/src/compress/pure/dead_code.rs | 6 +++--- crates/swc_ecma_minifier/src/compress/pure/member_expr.rs | 6 +++--- crates/swc_ecma_minifier/src/compress/pure/misc.rs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs index 99ec3a05d7e2..5f00f27d1940 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs @@ -2534,7 +2534,7 @@ impl VisitMut for Optimizer<'_> { match s { Stmt::Labeled(LabeledStmt { - label: Ident { sym, .. }, + label: IdentName { sym, .. }, body, .. }) if sym.is_empty() => { diff --git a/crates/swc_ecma_minifier/src/compress/optimize/util.rs b/crates/swc_ecma_minifier/src/compress/optimize/util.rs index 8bbbedd495f7..1f39f5c1cb4b 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/util.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/util.rs @@ -525,7 +525,7 @@ impl VisitMut for NormalMultiReplacer<'_> { self.changed = true; *p = Prop::KeyValue(KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt(i.sym.clone(), i.span)), + key: PropName::Ident(IdentName::new(i.sym.clone(), i.span)), value, }); } diff --git a/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs b/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs index 2fdf23ab2fad..8ea8ed41f6c3 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs @@ -150,7 +150,7 @@ impl Pure<'_> { /// Returns [Some] if the whole statement should be replaced fn drop_useless_continue_inner( &mut self, - label: Option, + label: Option, loop_stmt: &mut Stmt, ) -> Option { let body = match loop_stmt { @@ -585,7 +585,7 @@ impl Pure<'_> { } } -fn contains_label(node: &N, label: &Ident) -> bool +fn contains_label(node: &N, label: &IdentName) -> bool where for<'aa> N: VisitWith>, { @@ -598,7 +598,7 @@ where } struct LabelFinder<'a> { - label: &'a Ident, + label: &'a IdentName, found: bool, } impl Visit for LabelFinder<'_> { diff --git a/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs b/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs index be001c7ec5a0..6c6c982b22a6 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs @@ -2,7 +2,7 @@ use phf::phf_set; use swc_atoms::{Atom, JsWord}; use swc_common::Spanned; use swc_ecma_ast::{ - ArrayLit, Expr, ExprOrSpread, Ident, Lit, MemberExpr, MemberProp, ObjectLit, Prop, + ArrayLit, Expr, ExprOrSpread, Ident, IdentName, Lit, MemberExpr, MemberProp, ObjectLit, Prop, PropOrSpread, SeqExpr, Str, }; use swc_ecma_utils::{prop_name_eq, ExprExt, Known}; @@ -269,7 +269,7 @@ impl Pure<'_> { } let op = match prop { - MemberProp::Ident(Ident { sym, .. }) => { + MemberProp::Ident(IdentName { sym, .. }) => { if self.ctx.is_callee { return None; } @@ -533,7 +533,7 @@ impl Pure<'_> { span: *span, props: vec![], })), - prop: MemberProp::Ident(Ident::new_no_ctxt(key, *span)), + prop: MemberProp::Ident(IdentName::new(key, *span)), }) } else { // Invalid key. Replace with side effects plus `undefined`. diff --git a/crates/swc_ecma_minifier/src/compress/pure/misc.rs b/crates/swc_ecma_minifier/src/compress/pure/misc.rs index 3404a5ef79ff..ec2322d3b88b 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/misc.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/misc.rs @@ -168,7 +168,7 @@ impl Pure<'_> { let arr = match callee { Expr::Member(MemberExpr { obj, - prop: MemberProp::Ident(Ident { sym, .. }), + prop: MemberProp::Ident(IdentName { sym, .. }), .. }) if *sym == *"join" => { if let Expr::Array(arr) = &mut **obj { From 5e6df97ae8cdf8e151ce0cc90944445c0eac4f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:08:05 +0900 Subject: [PATCH 42/80] More fix --- .../src/compress/pure/properties.rs | 4 ++-- crates/swc_estree_compat/src/babelify/ident.rs | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs index e455ffcc931e..5c97a79af210 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs @@ -10,7 +10,7 @@ impl Pure<'_> { &mut self, obj: Option<&Expr>, c: &mut ComputedPropName, - ) -> Option { + ) -> Option { if !self.options.props { return None; } @@ -113,7 +113,7 @@ impl Pure<'_> { pub(super) fn handle_known_computed_member_expr( &mut self, c: &mut ComputedPropName, - ) -> Option { + ) -> Option { if !self.options.props || !self.options.evaluate { return None; } diff --git a/crates/swc_estree_compat/src/babelify/ident.rs b/crates/swc_estree_compat/src/babelify/ident.rs index f482649df122..3b6d7fe0f8d9 100644 --- a/crates/swc_estree_compat/src/babelify/ident.rs +++ b/crates/swc_estree_compat/src/babelify/ident.rs @@ -1,5 +1,5 @@ use copyless::BoxHelper; -use swc_ecma_ast::{BindingIdent, Ident, PrivateName}; +use swc_ecma_ast::{BindingIdent, Ident, IdentName, PrivateName}; use swc_estree_ast::{Identifier, PrivateName as BabelPrivateName}; use crate::babelify::{Babelify, Context}; @@ -31,6 +31,20 @@ impl Babelify for Ident { } } +impl Babelify for IdentName { + type Output = Identifier; + + fn babelify(self, ctx: &Context) -> Self::Output { + Identifier { + base: ctx.base(self.span), + name: self.sym, + optional: Default::default(), + decorators: Default::default(), + type_annotation: Default::default(), + } + } +} + impl Babelify for PrivateName { type Output = BabelPrivateName; From bf12e6dbe7003960a4fad908a9a8a28142af0d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:11:15 +0900 Subject: [PATCH 43/80] More fix --- .../src/compress/pure/properties.rs | 12 +++--------- .../swc_ecma_minifier/src/pass/mangle_names/mod.rs | 2 +- crates/swc_ecma_minifier/src/pass/mangle_props.rs | 8 ++++---- crates/swc_ecma_minifier/src/util/mod.rs | 2 +- .../src/decorator_2022_03.rs | 2 +- crates/swc_estree_compat/src/swcify/expr.rs | 7 +++++-- crates/swc_estree_compat/src/swcify/jsx.rs | 5 +++-- 7 files changed, 18 insertions(+), 20 deletions(-) diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs index 5c97a79af210..3c382f0458c3 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs @@ -32,11 +32,9 @@ impl Pure<'_> { "properties: Computed member => member expr with identifier as a prop" ); - Some(Ident { + Some(IdentName { span: s.span, - ctxt: Default::default(), sym: s.value.clone(), - optional: false, }) } @@ -62,11 +60,7 @@ impl Pure<'_> { || s.value.is_reserved_in_es3() || is_valid_identifier(&s.value, false) { - *p = PropName::Ident(Ident::new( - s.value.clone(), - s.span, - SyntaxContext::empty(), - )); + *p = PropName::Ident(IdentName::new(s.value.clone(), s.span)); } else { *p = PropName::Str(s.clone()); } @@ -130,7 +124,7 @@ impl Pure<'_> { self.changed = true; - Some(Ident::new_no_ctxt(s.value.clone(), s.span)) + Some(IdentName::new(s.value.clone(), s.span)) } _ => None, } diff --git a/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs b/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs index 31bc4aa7e38e..95cd5f2b86db 100644 --- a/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs +++ b/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs @@ -65,7 +65,7 @@ struct LabelMangler { } impl LabelMangler { - fn mangle(&mut self, label: &mut Ident) { + fn mangle(&mut self, label: &mut IdentName) { let v = self .cache .entry(label.sym.clone()) diff --git a/crates/swc_ecma_minifier/src/pass/mangle_props.rs b/crates/swc_ecma_minifier/src/pass/mangle_props.rs index 49fe53a09e94..4595236dcabf 100644 --- a/crates/swc_ecma_minifier/src/pass/mangle_props.rs +++ b/crates/swc_ecma_minifier/src/pass/mangle_props.rs @@ -4,7 +4,7 @@ use once_cell::sync::Lazy; use swc_atoms::JsWord; use swc_common::collections::{AHashMap, AHashSet}; use swc_ecma_ast::{ - CallExpr, Callee, Expr, Ident, KeyValueProp, Lit, MemberExpr, MemberProp, Program, Prop, + CallExpr, Callee, Expr, IdentName, KeyValueProp, Lit, MemberExpr, MemberProp, Program, Prop, PropName, Str, SuperProp, SuperPropExpr, }; use swc_ecma_visit::{noop_visit_mut_type, VisitMut, VisitMutWith}; @@ -188,7 +188,7 @@ fn is_object_property_call(call: &CallExpr) -> bool { match &**callee { Expr::Member(MemberExpr { obj, - prop: MemberProp::Ident(Ident { sym, .. }), + prop: MemberProp::Ident(IdentName { sym, .. }), .. }) if *sym == *"defineProperty" => { if obj.is_ident_ref_to("Object") { @@ -223,7 +223,7 @@ struct Mangler<'a> { } impl Mangler<'_> { - fn mangle_ident(&mut self, ident: &mut Ident) { + fn mangle_ident(&mut self, ident: &mut IdentName) { if let Some(mangled) = self.state.gen_name(&ident.sym) { ident.sym = mangled; } @@ -260,7 +260,7 @@ impl VisitMut for Mangler<'_> { prop.visit_mut_children_with(self); if let Prop::Shorthand(ident) = prop { - let mut new_ident = ident.clone(); + let mut new_ident = IdentName::from(ident.clone()); self.mangle_ident(&mut new_ident); diff --git a/crates/swc_ecma_minifier/src/util/mod.rs b/crates/swc_ecma_minifier/src/util/mod.rs index abff8482bbcd..8da2b7f1ab0a 100644 --- a/crates/swc_ecma_minifier/src/util/mod.rs +++ b/crates/swc_ecma_minifier/src/util/mod.rs @@ -232,7 +232,7 @@ impl Visit for LeapFinder { self.found_continue_with_label |= self .target_label .as_ref() - .map_or(false, |l| *l == label.to_id()); + .map_or(false, |l| *l == label.sym); } } diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs index dc3884c10bf2..580daf6c84d8 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs @@ -164,7 +164,7 @@ impl Decorator2022_03 { None } else { Some(ObjectPatProp::KeyValue(KeyValuePatProp { - key: PropName::Ident(quote_ident!("e")), + key: PropName::Ident("e".into()), value: Box::new(Pat::Array(ArrayPat { span: DUMMY_SP, elems: e_lhs, diff --git a/crates/swc_estree_compat/src/swcify/expr.rs b/crates/swc_estree_compat/src/swcify/expr.rs index 468cc5acf092..87dfd00c3f99 100644 --- a/crates/swc_estree_compat/src/swcify/expr.rs +++ b/crates/swc_estree_compat/src/swcify/expr.rs @@ -874,8 +874,9 @@ impl Swcify for JSXMemberExpression { fn swcify(self, ctx: &Context) -> Self::Output { JSXMemberExpr { + span: ctx.span(&self.base), obj: self.object.swcify(ctx), - prop: self.property.swcify(ctx), + prop: self.property.swcify(ctx).into(), } } } @@ -921,7 +922,9 @@ impl Swcify for swc_estree_ast::JSXAttrName { fn swcify(self, ctx: &Context) -> Self::Output { match self { - swc_estree_ast::JSXAttrName::Id(v) => swc_ecma_ast::JSXAttrName::Ident(v.swcify(ctx)), + swc_estree_ast::JSXAttrName::Id(v) => { + swc_ecma_ast::JSXAttrName::Ident(v.swcify(ctx).into()) + } swc_estree_ast::JSXAttrName::Name(v) => { swc_ecma_ast::JSXAttrName::JSXNamespacedName(v.swcify(ctx)) } diff --git a/crates/swc_estree_compat/src/swcify/jsx.rs b/crates/swc_estree_compat/src/swcify/jsx.rs index 1555cb0d4ccc..41a597b3d67d 100644 --- a/crates/swc_estree_compat/src/swcify/jsx.rs +++ b/crates/swc_estree_compat/src/swcify/jsx.rs @@ -7,8 +7,9 @@ impl Swcify for swc_estree_ast::JSXNamespacedName { fn swcify(self, ctx: &Context) -> Self::Output { swc_ecma_ast::JSXNamespacedName { - ns: self.namespace.swcify(ctx), - name: self.name.swcify(ctx), + span: ctx.span(&self.base), + ns: self.namespace.swcify(ctx).into(), + name: self.name.swcify(ctx).into(), } } } From 8efd3be2ad01d641e4685b4d095b6dd7e3902b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:11:56 +0900 Subject: [PATCH 44/80] More fix --- crates/swc_ecma_compat_es2018/src/object_rest.rs | 5 +---- crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs | 2 +- crates/swc_estree_compat/src/swcify/typescript.rs | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/swc_ecma_compat_es2018/src/object_rest.rs b/crates/swc_ecma_compat_es2018/src/object_rest.rs index 47844d3b1a1f..6e923d4b0d1e 100644 --- a/crates/swc_ecma_compat_es2018/src/object_rest.rs +++ b/crates/swc_ecma_compat_es2018/src/object_rest.rs @@ -754,10 +754,7 @@ impl ObjectRest { ref value, span, .. }) => { let value = value.clone(); - ( - key, - MemberProp::Ident(quote_ident!(Default::default(), span, value)), - ) + (key, MemberProp::Ident(IdentName::new(value, span))) } PropName::Num(Number { span, value, .. }) => ( key, diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs index 580daf6c84d8..2f1749d37f1e 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs @@ -178,7 +178,7 @@ impl Decorator2022_03 { None } else { Some(ObjectPatProp::KeyValue(KeyValuePatProp { - key: PropName::Ident(quote_ident!("c")), + key: PropName::Ident("c".into()), value: Box::new(Pat::Array(ArrayPat { span: DUMMY_SP, elems: self.state.class_lhs.take(), diff --git a/crates/swc_estree_compat/src/swcify/typescript.rs b/crates/swc_estree_compat/src/swcify/typescript.rs index 1c7e97edb0f2..22c5d692e5b1 100644 --- a/crates/swc_estree_compat/src/swcify/typescript.rs +++ b/crates/swc_estree_compat/src/swcify/typescript.rs @@ -140,6 +140,7 @@ impl Swcify for TSQualifiedName { fn swcify(self, ctx: &Context) -> Self::Output { TsQualifiedName { + span: ctx.span(&self.base), left: self.left.swcify(ctx), right: self.right.swcify(ctx).into(), } From 715e5d5d3bb7e2dbf6a9aa67235f65af108243d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:12:32 +0900 Subject: [PATCH 45/80] More fix --- crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs | 2 +- crates/swc_ecma_transforms_react/src/display_name/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs index 2f1749d37f1e..385bc582ab4f 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs @@ -333,7 +333,7 @@ impl Decorator2022_03 { insert_index, ClassMember::Constructor(Constructor { span: DUMMY_SP, - key: PropName::Ident(quote_ident!("constructor")), + key: PropName::Ident("constructor".into()), params: vec![], body: Some(BlockStmt { span: DUMMY_SP, diff --git a/crates/swc_ecma_transforms_react/src/display_name/mod.rs b/crates/swc_ecma_transforms_react/src/display_name/mod.rs index e4704c64124c..5cd7d010da8b 100644 --- a/crates/swc_ecma_transforms_react/src/display_name/mod.rs +++ b/crates/swc_ecma_transforms_react/src/display_name/mod.rs @@ -167,7 +167,7 @@ fn add_display_name(call: &mut CallExpr, name: Box) { } props.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { - key: PropName::Ident(quote_ident!("displayName")), + key: PropName::Ident("displayName".into()), value: name, })))); } From 2d4ddb9effeb9c20208faf4bb11f704c0bb4a6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:15:33 +0900 Subject: [PATCH 46/80] More form impl --- crates/swc_ecma_ast/src/ident.rs | 16 ++++++++++++++++ crates/swc_ecma_utils/src/lib.rs | 5 +++-- crates/swc_ecma_utils/src/macros.rs | 12 ++++++++---- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 04643b4ab882..1f2638477674 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -180,6 +180,16 @@ impl From<&'_ str> for Ident { } } +impl From<(Atom, Span)> for Ident { + fn from((sym, span): (Atom, Span)) -> Self { + Ident { + span, + sym, + ..Default::default() + } + } +} + impl EqIgnoreSpan for Ident { fn eq_ignore_span(&self, other: &Self) -> bool { if self.sym != other.sym { @@ -373,6 +383,12 @@ impl From for IdentName { } } +impl From<(Atom, Span)> for IdentName { + fn from((sym, span): (Atom, Span)) -> Self { + IdentName { span, sym } + } +} + bridge_from!(IdentName, Atom, &'_ str); bridge_from!(IdentName, Atom, Cow<'_, str>); bridge_from!(IdentName, Atom, String); diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index 77997990da91..884f07563118 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -6,10 +6,11 @@ #![cfg_attr(not(feature = "concurrent"), allow(unused))] #[doc(hidden)] -pub extern crate swc_ecma_ast; - +pub extern crate swc_atoms; #[doc(hidden)] pub extern crate swc_common; +#[doc(hidden)] +pub extern crate swc_ecma_ast; use std::{borrow::Cow, hash::Hash, num::FpCategory, ops::Add}; diff --git a/crates/swc_ecma_utils/src/macros.rs b/crates/swc_ecma_utils/src/macros.rs index 5123758ea520..7f4e0186057d 100644 --- a/crates/swc_ecma_utils/src/macros.rs +++ b/crates/swc_ecma_utils/src/macros.rs @@ -13,11 +13,15 @@ macro_rules! private_ident { #[macro_export] macro_rules! quote_ident { - ($s:expr) => { - quote_ident!(Default::default(), $crate::swc_common::DUMMY_SP, $s) - }; + ($s:expr) => {{ + let sym: $crate::swc_atoms::Atom = $s.into(); + + sym.into() + }}; ($ctxt:expr, $s:expr) => {{ - quote_ident!($ctxt, $crate::swc_common::DUMMY_SP, $s) + let sym: $crate::swc_atoms::Atom = $s.into(); + + (sym, ctxt).into() }}; ($ctxt:expr, $span:expr, $s:expr) => {{ From 1783104ff5462b5fbe423b74df36fe5fca1dfa03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:17:24 +0900 Subject: [PATCH 47/80] more from impl --- crates/swc_ecma_ast/src/ident.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 1f2638477674..52b86547f9ad 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -174,11 +174,14 @@ impl From for Ident { } } -impl From<&'_ str> for Ident { - fn from(bi: &str) -> Self { - Ident::new_no_ctxt(bi.into(), DUMMY_SP) +impl From for Ident { + fn from(bi: Atom) -> Self { + Ident::new_no_ctxt(bi, DUMMY_SP) } } +bridge_from!(Ident, Atom, &'_ str); +bridge_from!(Ident, Atom, Cow<'_, str>); +bridge_from!(Ident, Atom, String); impl From<(Atom, Span)> for Ident { fn from((sym, span): (Atom, Span)) -> Self { From e19a7020ab5e43fc74dbc5a2f5c369454a92c6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:17:32 +0900 Subject: [PATCH 48/80] More fix --- crates/swc_ecma_utils/src/factory.rs | 4 ++-- crates/swc_ecma_utils/src/function/fn_env_hoister.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/swc_ecma_utils/src/factory.rs b/crates/swc_ecma_utils/src/factory.rs index 0707ac597ea7..4658f877e258 100644 --- a/crates/swc_ecma_utils/src/factory.rs +++ b/crates/swc_ecma_utils/src/factory.rs @@ -252,11 +252,11 @@ pub trait ExprFactory: Into> { } #[cfg_attr(not(debug_assertions), inline(always))] - fn make_member(self, prop: impl Into) -> MemberExpr { + fn make_member(self, prop: IdentName) -> MemberExpr { MemberExpr { obj: self.into(), span: DUMMY_SP, - prop: MemberProp::Ident(prop.into()), + prop: MemberProp::Ident(prop), } } diff --git a/crates/swc_ecma_utils/src/function/fn_env_hoister.rs b/crates/swc_ecma_utils/src/function/fn_env_hoister.rs index b0941507b1e8..0690492a30fe 100644 --- a/crates/swc_ecma_utils/src/function/fn_env_hoister.rs +++ b/crates/swc_ecma_utils/src/function/fn_env_hoister.rs @@ -520,7 +520,7 @@ impl VisitMut for FnEnvHoister { callee: self.super_update_computed(*span).as_callee(), ..Default::default() }) - .make_member("_") + .make_member("_".into()) .into() } else { Expr::Call(CallExpr { From b41bbeeeafb1118c9b06a9af9d5093758c3cbd7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:19:26 +0900 Subject: [PATCH 49/80] More work --- crates/swc_ecma_ast/src/ident.rs | 4 ++++ crates/swc_ecma_utils/src/function/function_wrapper.rs | 2 +- crates/swc_ecma_utils/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 52b86547f9ad..b9b99d627807 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -442,6 +442,10 @@ impl From for IdentName { } } } +bridge_from!(BindingIdent, Ident, Atom); +bridge_from!(BindingIdent, Atom, &'_ str); +bridge_from!(BindingIdent, Atom, Cow<'_, str>); +bridge_from!(BindingIdent, Atom, String); impl From for BindingIdent { fn from(i: IdentName) -> Self { diff --git a/crates/swc_ecma_utils/src/function/function_wrapper.rs b/crates/swc_ecma_utils/src/function/function_wrapper.rs index 240c3784acd8..dd5fbb126068 100644 --- a/crates/swc_ecma_utils/src/function/function_wrapper.rs +++ b/crates/swc_ecma_utils/src/function/function_wrapper.rs @@ -236,7 +236,7 @@ impl FunctionWrapper { arg: Some(Box::new(ref_ident.apply( DUMMY_SP, Box::new(Expr::This(ThisExpr { span: DUMMY_SP })), - vec![quote_ident!("arguments").as_arg()], + vec!["arguments".as_arg()], ))), }); diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index 884f07563118..5988e1cd1911 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -2167,7 +2167,7 @@ pub fn default_constructor(has_super: bool) -> Constructor { pat: Pat::Rest(RestPat { span: DUMMY_SP, dot3_token: DUMMY_SP, - arg: Box::new(Pat::Ident(quote_ident!("args").into())), + arg: Box::new(Pat::Ident(quote_ident!("args"))), type_ann: Default::default(), }), })] From 263da588fe9391500b260b0fb797fbd124823c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:20:13 +0900 Subject: [PATCH 50/80] More fix --- crates/swc_ecma_compat_common/src/regexp.rs | 2 +- crates/swc_ecma_compat_es2015/src/for_of.rs | 2 +- .../swc_ecma_compat_es2015/src/generator.rs | 4 +-- crates/swc_ecma_transforms_module/src/amd.rs | 2 +- crates/swc_ecma_transforms_module/src/util.rs | 2 +- .../src/decorator_2022_03.rs | 2 +- .../src/decorators/legacy/metadata.rs | 36 +++++++++---------- 7 files changed, 24 insertions(+), 26 deletions(-) diff --git a/crates/swc_ecma_compat_common/src/regexp.rs b/crates/swc_ecma_compat_common/src/regexp.rs index a29cf1fba750..d9e8aff650fd 100644 --- a/crates/swc_ecma_compat_common/src/regexp.rs +++ b/crates/swc_ecma_compat_common/src/regexp.rs @@ -1,6 +1,6 @@ use swc_common::util::take::Take; use swc_ecma_ast::{CallExpr, Expr, Lit, Regex}; -use swc_ecma_utils::{quote_ident, ExprFactory}; +use swc_ecma_utils::quote_ident; use swc_ecma_visit::{as_folder, noop_visit_mut_type, Fold, VisitMut, VisitMutWith}; pub fn regexp(config: Config) -> impl Fold + VisitMut { diff --git a/crates/swc_ecma_compat_es2015/src/for_of.rs b/crates/swc_ecma_compat_es2015/src/for_of.rs index 9265b625d786..f225b0b8a731 100644 --- a/crates/swc_ecma_compat_es2015/src/for_of.rs +++ b/crates/swc_ecma_compat_es2015/src/for_of.rs @@ -493,7 +493,7 @@ impl ForOf { }, handler: Some(CatchClause { span: DUMMY_SP, - param: Some(quote_ident!("err").into()), + param: Some(quote_ident!("err")), // _didIteratorError = true; // _iteratorError = err; body: BlockStmt { diff --git a/crates/swc_ecma_compat_es2015/src/generator.rs b/crates/swc_ecma_compat_es2015/src/generator.rs index 906cc4c303b2..02e132a82e28 100644 --- a/crates/swc_ecma_compat_es2015/src/generator.rs +++ b/crates/swc_ecma_compat_es2015/src/generator.rs @@ -1260,7 +1260,7 @@ impl Generator { span: DUMMY_SP, props: getter .map(|g| KeyValueProp { - key: quote_ident!("get").into(), + key: quote_ident!("get"), value: Function { params: vec![], span: g.span, @@ -1274,7 +1274,7 @@ impl Generator { .into_iter() .chain(setter.map(|s| { KeyValueProp { - key: quote_ident!("set").into(), + key: quote_ident!("set"), value: Function { params: vec![(*s.param).into()], span: s.span, diff --git a/crates/swc_ecma_transforms_module/src/amd.rs b/crates/swc_ecma_transforms_module/src/amd.rs index efe57419cf46..ade765ceae37 100644 --- a/crates/swc_ecma_transforms_module/src/amd.rs +++ b/crates/swc_ecma_transforms_module/src/amd.rs @@ -541,7 +541,7 @@ pub(crate) fn amd_dynamic_import( NewExpr { span, - callee: Box::new(quote_ident!("Promise").into()), + callee: Box::new(quote_ident!("Promise")), args: Some(vec![promise_executer.as_arg()]), ..Default::default() } diff --git a/crates/swc_ecma_transforms_module/src/util.rs b/crates/swc_ecma_transforms_module/src/util.rs index 43b5a7ce4e36..4d9ca12fba8a 100644 --- a/crates/swc_ecma_transforms_module/src/util.rs +++ b/crates/swc_ecma_transforms_module/src/util.rs @@ -284,7 +284,7 @@ pub(crate) fn esm_export() -> Function { let name = private_ident!("name"); let getter = KeyValueProp { - key: quote_ident!("get").into(), + key: quote_ident!("get"), value: all.clone().computed_member(Expr::from(name.clone())).into(), }; diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs index 385bc582ab4f..529e7871c040 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs @@ -1521,7 +1521,7 @@ impl VisitMut for Decorator2022_03 { .push(ExportSpecifier::Named(ExportNamedSpecifier { span: *span, orig: ModuleExportName::Ident(ident), - exported: Some(quote_ident!("default").into()), + exported: Some(quote_ident!("default")), is_type_only: false, })); diff --git a/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs b/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs index d13d66e776fc..f49ccfc52c06 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs @@ -322,9 +322,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr match &ty.type_name { // We should omit references to self (class) since it will throw a ReferenceError at // runtime due to babel transpile output. - TsEntityName::Ident(i) if &*i.sym == class_name => { - return quote_ident!("Object").into() - } + TsEntityName::Ident(i) if &*i.sym == class_name => return quote_ident!("Object"), _ => {} } @@ -339,7 +337,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr Expr::Cond(CondExpr { span: DUMMY_SP, test: check_object_existed(Box::new(member_expr.clone())), - cons: Box::new(quote_ident!("Object").into()), + cons: Box::new(quote_ident!("Object")), alt: Box::new(member_expr), }) } @@ -371,7 +369,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr kind: TsKeywordTypeKind::TsUndefinedKeyword, .. }) => { - return quote_ident!("Object").into(); + return quote_ident!("Object"); } _ => {} @@ -399,10 +397,10 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr match prev { Expr::Ident(prev) => match &item { Expr::Ident(item) if prev.sym == item.sym => {} - _ => return quote_ident!("Object").into(), + _ => return quote_ident!("Object"), }, - _ => return quote_ident!("Object").into(), + _ => return quote_ident!("Object"), } } } @@ -410,7 +408,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr match u { Some(i) => i, - _ => quote_ident!("Object").into(), + _ => quote_ident!("Object"), } } @@ -436,9 +434,9 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr TsType::TsParenthesizedType(ty) => serialize_type_node(class_name, &ty.type_ann), - TsType::TsFnOrConstructorType(_) => quote_ident!("Function").into(), + TsType::TsFnOrConstructorType(_) => quote_ident!("Function"), - TsType::TsArrayType(_) | TsType::TsTupleType(_) => quote_ident!("Array").into(), + TsType::TsArrayType(_) | TsType::TsTupleType(_) => quote_ident!("Array"), TsType::TsLitType(TsLitType { lit: TsLit::Bool(..), @@ -448,14 +446,14 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr | TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsBooleanKeyword, .. - }) => quote_ident!("Boolean").into(), + }) => quote_ident!("Boolean"), - ty if is_str(ty) => quote_ident!("String").into(), + ty if is_str(ty) => quote_ident!("String"), TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsObjectKeyword, .. - }) => quote_ident!("Object").into(), + }) => quote_ident!("Object"), TsType::TsLitType(TsLitType { lit: TsLit::Number(..), @@ -464,16 +462,16 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr | TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsNumberKeyword, .. - }) => quote_ident!("Number").into(), + }) => quote_ident!("Number"), TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsBigIntKeyword, .. }) => Expr::Cond(CondExpr { span: DUMMY_SP, - test: check_object_existed(quote_ident!("BigInt").into()), - cons: quote_ident!("Object").into(), - alt: quote_ident!("BigInt").into(), + test: check_object_existed(quote_ident!("BigInt")), + cons: quote_ident!("Object"), + alt: quote_ident!("BigInt"), }), TsType::TsLitType(ty) => { @@ -484,7 +482,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsSymbolKeyword, .. - }) => quote_ident!("Symbol").into(), + }) => quote_ident!("Symbol"), TsType::TsTypeQuery(_) | TsType::TsTypeOperator(_) @@ -499,7 +497,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr kind: TsKeywordTypeKind::TsUnknownKeyword, .. }) - | TsType::TsThisType(..) => quote_ident!("Object").into(), + | TsType::TsThisType(..) => quote_ident!("Object"), TsType::TsUnionOrIntersectionType(ty) => match ty { TsUnionOrIntersectionType::TsUnionType(ty) => { From 4a8289b7f55d1f2f3ab5bc83145afd8168e4b8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:23:05 +0900 Subject: [PATCH 51/80] More fix --- crates/swc_ecma_utils/src/lib.rs | 4 ++-- crates/swc_ecma_utils/src/macros.rs | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index 5988e1cd1911..3783a6c42858 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -2167,7 +2167,7 @@ pub fn default_constructor(has_super: bool) -> Constructor { pat: Pat::Rest(RestPat { span: DUMMY_SP, dot3_token: DUMMY_SP, - arg: Box::new(Pat::Ident(quote_ident!("args"))), + arg: Box::new(Pat::Ident(quote_ident!("args").into())), type_ann: Default::default(), }), })] @@ -2181,7 +2181,7 @@ pub fn default_constructor(has_super: bool) -> Constructor { callee: Callee::Super(Super { span: DUMMY_SP }), args: vec![ExprOrSpread { spread: Some(DUMMY_SP), - expr: Box::new(Expr::Ident(quote_ident!("args"))), + expr: Box::new(Expr::Ident(quote_ident!("args").into())), }], ..Default::default() } diff --git a/crates/swc_ecma_utils/src/macros.rs b/crates/swc_ecma_utils/src/macros.rs index 7f4e0186057d..09fc1ade1551 100644 --- a/crates/swc_ecma_utils/src/macros.rs +++ b/crates/swc_ecma_utils/src/macros.rs @@ -15,13 +15,16 @@ macro_rules! private_ident { macro_rules! quote_ident { ($s:expr) => {{ let sym: $crate::swc_atoms::Atom = $s.into(); + let id: $crate::swc_ecma_ast::IdentName = sym.into(); - sym.into() + id }}; ($ctxt:expr, $s:expr) => {{ let sym: $crate::swc_atoms::Atom = $s.into(); + let id: $crate::swc_ecma_ast::Ident = + $crate::swc_ecma_ast::Ident::new(sym, DUMMY_SP, $ctxt); - (sym, ctxt).into() + id.into() }}; ($ctxt:expr, $span:expr, $s:expr) => {{ From 4f9f7d141b4ccdc91d8a987a010a254cfbc8da23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:23:52 +0900 Subject: [PATCH 52/80] More from impl --- crates/swc_ecma_ast/src/expr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs index 49403bec8d2c..e302ac6f89ac 100644 --- a/crates/swc_ecma_ast/src/expr.rs +++ b/crates/swc_ecma_ast/src/expr.rs @@ -428,6 +428,7 @@ impl Default for Expr { } } +bridge_expr_from!(Ident, IdentName); bridge_expr_from!(Ident, Id); bridge_expr_from!(FnExpr, Function); bridge_expr_from!(ClassExpr, Class); From 6e272c16228e558accd8589b5435642c9e9e40b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:25:34 +0900 Subject: [PATCH 53/80] More from impl --- crates/swc_ecma_ast/src/module_decl.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/swc_ecma_ast/src/module_decl.rs b/crates/swc_ecma_ast/src/module_decl.rs index 1a6550c3468e..076ce6711e14 100644 --- a/crates/swc_ecma_ast/src/module_decl.rs +++ b/crates/swc_ecma_ast/src/module_decl.rs @@ -8,7 +8,7 @@ use crate::{ ident::Ident, lit::Str, typescript::{TsExportAssignment, TsImportEqualsDecl, TsInterfaceDecl, TsNamespaceExportDecl}, - ObjectLit, + BindingIdent, IdentName, ObjectLit, }; #[ast_node] @@ -359,6 +359,9 @@ pub enum ModuleExportName { Str(Str), } +bridge_from!(ModuleExportName, Ident, BindingIdent); +bridge_from!(ModuleExportName, Ident, IdentName); + impl ModuleExportName { /// Get the atom of the export name. pub fn atom(&self) -> &Atom { From 357cdb7bd4fa6fa8992952f274d1a635c798eef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:26:45 +0900 Subject: [PATCH 54/80] More from impl --- crates/swc_ecma_ast/src/pat.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/swc_ecma_ast/src/pat.rs b/crates/swc_ecma_ast/src/pat.rs index 4262dcf4cc29..993c7edc3572 100644 --- a/crates/swc_ecma_ast/src/pat.rs +++ b/crates/swc_ecma_ast/src/pat.rs @@ -6,7 +6,7 @@ use crate::{ ident::{BindingIdent, Ident}, prop::PropName, typescript::TsTypeAnn, - Id, Invalid, + Id, IdentName, Invalid, }; #[ast_node(no_clone)] @@ -65,6 +65,7 @@ impl Take for Pat { } bridge_pat_from!(BindingIdent, Ident); +bridge_pat_from!(BindingIdent, IdentName); bridge_pat_from!(BindingIdent, Id); macro_rules! pat_to_other { From 98adc763112d1f430873a7eac24af94f5a19d091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:27:41 +0900 Subject: [PATCH 55/80] More fix --- crates/swc_ecma_compat_common/src/regexp.rs | 2 +- crates/swc_ecma_transforms_base/src/hygiene/tests.rs | 2 +- crates/swc_ecma_utils/src/macros.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_compat_common/src/regexp.rs b/crates/swc_ecma_compat_common/src/regexp.rs index d9e8aff650fd..a29cf1fba750 100644 --- a/crates/swc_ecma_compat_common/src/regexp.rs +++ b/crates/swc_ecma_compat_common/src/regexp.rs @@ -1,6 +1,6 @@ use swc_common::util::take::Take; use swc_ecma_ast::{CallExpr, Expr, Lit, Regex}; -use swc_ecma_utils::quote_ident; +use swc_ecma_utils::{quote_ident, ExprFactory}; use swc_ecma_visit::{as_folder, noop_visit_mut_type, Fold, VisitMut, VisitMutWith}; pub fn regexp(config: Config) -> impl Fold + VisitMut { diff --git a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs index 298ab74f236f..b98849f3a1bf 100644 --- a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs +++ b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs @@ -413,7 +413,7 @@ fn mark_root() { Ok(vec![ tester.parse_stmt("actual1.js", "var foo = 'bar';")?, Stmt::Decl(Decl::Fn(FnDecl { - ident: quote_ident!("Foo"), + ident: quote_ident!("Foo").into(), function: Box::new(Function { span: DUMMY_SP, is_async: false, diff --git a/crates/swc_ecma_utils/src/macros.rs b/crates/swc_ecma_utils/src/macros.rs index 09fc1ade1551..762a3a25b79c 100644 --- a/crates/swc_ecma_utils/src/macros.rs +++ b/crates/swc_ecma_utils/src/macros.rs @@ -11,6 +11,8 @@ macro_rules! private_ident { }}; } +/// As we have multiple identifier types, the expected usage is +/// `quote_ident!("foo").into()`. #[macro_export] macro_rules! quote_ident { ($s:expr) => {{ From cb14a2be6b97dfe70aa58b758815590015998433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:28:50 +0900 Subject: [PATCH 56/80] More fix --- crates/swc_bundler/src/bundler/chunk/cjs.rs | 2 +- crates/swc_bundler/src/bundler/chunk/merge.rs | 2 +- crates/swc_ecma_compat_es2018/src/object_rest.rs | 2 +- crates/swc_ecma_transforms_base/src/hygiene/tests.rs | 4 ++-- crates/swc_ecma_transforms_module/src/common_js.rs | 2 +- crates/swc_ecma_utils/src/macros.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/swc_bundler/src/bundler/chunk/cjs.rs b/crates/swc_bundler/src/bundler/chunk/cjs.rs index 45d9fd93225e..08d43b9e6b1b 100644 --- a/crates/swc_bundler/src/bundler/chunk/cjs.rs +++ b/crates/swc_bundler/src/bundler/chunk/cjs.rs @@ -159,7 +159,7 @@ fn wrap_module( init: Some(Box::new(Expr::Call(CallExpr { span: DUMMY_SP, callee: Ident::new("__swcpack_require__".into(), DUMMY_SP, helper_ctxt) - .make_member(Ident::new_no_ctxt("bind".into(), DUMMY_SP)) + .make_member(quote_ident!("bind")) .as_callee(), args: vec![Expr::undefined(DUMMY_SP).as_arg(), module_fn.as_arg()], ..Default::default() diff --git a/crates/swc_bundler/src/bundler/chunk/merge.rs b/crates/swc_bundler/src/bundler/chunk/merge.rs index 225a095a5a95..169503d66954 100644 --- a/crates/swc_bundler/src/bundler/chunk/merge.rs +++ b/crates/swc_bundler/src/bundler/chunk/merge.rs @@ -1048,7 +1048,7 @@ where init: Some( mod_var .clone() - .make_member(orig.clone()) + .make_member(orig.clone().into()) .into(), ), definite: Default::default(), diff --git a/crates/swc_ecma_compat_es2018/src/object_rest.rs b/crates/swc_ecma_compat_es2018/src/object_rest.rs index 6e923d4b0d1e..3ecd3f721e3c 100644 --- a/crates/swc_ecma_compat_es2018/src/object_rest.rs +++ b/crates/swc_ecma_compat_es2018/src/object_rest.rs @@ -950,7 +950,7 @@ fn object_without_properties( span: DUMMY_SP, elems: excluded_props, } - .make_member(Ident::new_no_ctxt("map".into(), DUMMY_SP)) + .make_member(quote_ident!("map").into()) .as_callee(), args: vec![helper_expr!(to_property_key).as_arg()], ..Default::default() diff --git a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs index b98849f3a1bf..4329c7c4827f 100644 --- a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs +++ b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs @@ -499,7 +499,7 @@ fn fn_args() { let mark2 = Mark::fresh(Mark::root()); Ok(vec![Stmt::Decl(Decl::Fn(FnDecl { - ident: quote_ident!("Foo"), + ident: quote_ident!("Foo").into(), function: Box::new(Function { span: DUMMY_SP, is_async: false, @@ -539,7 +539,7 @@ fn block_in_fn() { let mark2 = Mark::fresh(mark1); Ok(vec![Stmt::Decl(Decl::Fn(FnDecl { - ident: quote_ident!("Foo"), + ident: quote_ident!("Foo").into(), function: Box::new(Function { span: DUMMY_SP, is_async: false, diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs index bae05f0f3647..78788e121843 100644 --- a/crates/swc_ecma_transforms_module/src/common_js.rs +++ b/crates/swc_ecma_transforms_module/src/common_js.rs @@ -437,7 +437,7 @@ where let assign_expr = AssignExpr { span, op: op!("="), - left: self.exports().make_member(id).into(), + left: self.exports().make_member(id.into()).into(), right: Box::new(require), }; diff --git a/crates/swc_ecma_utils/src/macros.rs b/crates/swc_ecma_utils/src/macros.rs index 762a3a25b79c..248c57030867 100644 --- a/crates/swc_ecma_utils/src/macros.rs +++ b/crates/swc_ecma_utils/src/macros.rs @@ -26,7 +26,7 @@ macro_rules! quote_ident { let id: $crate::swc_ecma_ast::Ident = $crate::swc_ecma_ast::Ident::new(sym, DUMMY_SP, $ctxt); - id.into() + id }}; ($ctxt:expr, $span:expr, $s:expr) => {{ From 7c4738f57e5d6302204a844be59e1034cee64ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:29:48 +0900 Subject: [PATCH 57/80] More fix --- crates/swc_ecma_compat_es2015/src/computed_props.rs | 2 +- crates/swc_ecma_compat_es2015/src/destructuring.rs | 2 +- crates/swc_ecma_transforms_classes/src/super_field.rs | 2 +- crates/swc_ecma_transforms_module/src/system_js.rs | 2 +- crates/swc_ecma_transforms_module/src/umd.rs | 2 +- crates/swc_ecma_transforms_react/src/jsx/mod.rs | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/computed_props.rs b/crates/swc_ecma_compat_es2015/src/computed_props.rs index 234ab8b0d499..9d33e4bdba9f 100644 --- a/crates/swc_ecma_compat_es2015/src/computed_props.rs +++ b/crates/swc_ecma_compat_es2015/src/computed_props.rs @@ -247,7 +247,7 @@ impl VisitMut for ComputedProps { let left = if is_compute { obj_ident.clone().computed_member(key) } else { - obj_ident.clone().make_member(key.ident().unwrap()) + obj_ident.clone().make_member(key.ident().unwrap().into()) }; Box::new(Expr::Assign(AssignExpr { span, diff --git a/crates/swc_ecma_compat_es2015/src/destructuring.rs b/crates/swc_ecma_compat_es2015/src/destructuring.rs index 3ac140824d31..25e3903617ee 100644 --- a/crates/swc_ecma_compat_es2015/src/destructuring.rs +++ b/crates/swc_ecma_compat_es2015/src/destructuring.rs @@ -320,7 +320,7 @@ impl AssignFolder { decls.push(VarDeclarator { span: decl.span, name: p.key.clone().into(), - init: Some(decl.init.unwrap().make_member(p.key.clone()).into()), + init: Some(decl.init.unwrap().make_member(p.key.clone().into()).into()), definite: false, }); return; diff --git a/crates/swc_ecma_transforms_classes/src/super_field.rs b/crates/swc_ecma_transforms_classes/src/super_field.rs index b6d99b23028b..efe2c7daafcf 100644 --- a/crates/swc_ecma_transforms_classes/src/super_field.rs +++ b/crates/swc_ecma_transforms_classes/src/super_field.rs @@ -309,7 +309,7 @@ impl<'a> SuperFieldAccessFolder<'a> { span: super_token, obj: Box::new({ let name = self.super_class.clone().unwrap_or_else(|| { - quote_ident!(if self.is_static { "Function" } else { "Object" }) + quote_ident!(if self.is_static { "Function" } else { "Object" }).into() }); // in static default super class is Function.prototype if self.is_static && self.super_class.is_some() { diff --git a/crates/swc_ecma_transforms_module/src/system_js.rs b/crates/swc_ecma_transforms_module/src/system_js.rs index 030980c82430..c8a07a571d26 100644 --- a/crates/swc_ecma_transforms_module/src/system_js.rs +++ b/crates/swc_ecma_transforms_module/src/system_js.rs @@ -290,7 +290,7 @@ impl SystemJs { ..Default::default() } .into(), - right: Box::new(Expr::Ident(target.clone())), + right: Box::new(Expr::Ident(target.clone().into())), body: Box::new(Stmt::Block(BlockStmt { span: DUMMY_SP, diff --git a/crates/swc_ecma_transforms_module/src/umd.rs b/crates/swc_ecma_transforms_module/src/umd.rs index e79432bbeab9..c2cd642fb62d 100644 --- a/crates/swc_ecma_transforms_module/src/umd.rs +++ b/crates/swc_ecma_transforms_module/src/umd.rs @@ -408,7 +408,7 @@ where if !is_export_assign && self.exports.is_some() { let filename = self.cm.span_to_filename(module_span); let exported_name = self.config.determine_export_name(filename); - let global_lib = global.clone().make_member(exported_name); + let global_lib = global.clone().make_member(exported_name.into()); cjs_args.push(quote_ident!("exports").as_arg()); amd_dep_list.push(Some(quote_str!("exports").as_arg())); diff --git a/crates/swc_ecma_transforms_react/src/jsx/mod.rs b/crates/swc_ecma_transforms_react/src/jsx/mod.rs index b7794858d1f2..512c4308912a 100644 --- a/crates/swc_ecma_transforms_react/src/jsx/mod.rs +++ b/crates/swc_ecma_transforms_react/src/jsx/mod.rs @@ -406,7 +406,7 @@ where where T: StmtLike, // Fn(Vec<(local, imported)>, src, body) - F: Fn(Vec<(Ident, Ident)>, &str, &mut Vec), + F: Fn(Vec<(Ident, IdentName)>, &str, &mut Vec), { if self.runtime == Runtime::Automatic { if let Some(local) = self.import_create_element.take() { @@ -1081,7 +1081,7 @@ where ImportSpecifier::Named(ImportNamedSpecifier { span: DUMMY_SP, local, - imported: Some(ModuleExportName::Ident(imported)), + imported: Some(ModuleExportName::Ident(imported.into())), is_type_only: false, }) }) @@ -1130,7 +1130,7 @@ where // const { createElement } = require('react') // const { jsx: jsx } = require('react/jsx-runtime') -fn add_require(imports: Vec<(Ident, Ident)>, src: &str, unresolved_mark: Mark) -> Stmt { +fn add_require(imports: Vec<(Ident, IdentName)>, src: &str, unresolved_mark: Mark) -> Stmt { Stmt::Decl(Decl::Var(Box::new(VarDecl { span: DUMMY_SP, kind: VarDeclKind::Const, From 469dd2c97b3c490fd5c9b078919ee9bcbdc304d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:30:43 +0900 Subject: [PATCH 58/80] More fix --- crates/swc_ecma_compat_es2015/src/destructuring.rs | 2 +- crates/swc_ecma_compat_es2015/src/generator.rs | 2 +- crates/swc_ecma_compat_es2015/src/parameters.rs | 2 +- crates/swc_ecma_compat_es2015/src/spread.rs | 2 +- crates/swc_ecma_compat_es2022/src/class_properties/mod.rs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/destructuring.rs b/crates/swc_ecma_compat_es2015/src/destructuring.rs index 25e3903617ee..def12804210e 100644 --- a/crates/swc_ecma_compat_es2015/src/destructuring.rs +++ b/crates/swc_ecma_compat_es2015/src/destructuring.rs @@ -868,7 +868,7 @@ impl VisitMut for AssignFolder { span: *span, op: op!("="), left: p.key.clone().into(), - right: right.take().make_member(p.key.clone()).into(), + right: right.take().make_member(p.key.clone().into()).into(), }); return; } diff --git a/crates/swc_ecma_compat_es2015/src/generator.rs b/crates/swc_ecma_compat_es2015/src/generator.rs index 02e132a82e28..4c8ccd0c8c31 100644 --- a/crates/swc_ecma_compat_es2015/src/generator.rs +++ b/crates/swc_ecma_compat_es2015/src/generator.rs @@ -773,7 +773,7 @@ impl VisitMut for Generator { let mut args = node.args.take().into_iter().map(Some).collect::>(); let arg = self.visit_elements(&mut args, None, None); - let apply = callee.make_member(Ident::new_no_ctxt("apply".into(), node.span)); + let apply = callee.make_member(IdentName::new("apply".into(), node.span)); *node = CallExpr { span: node.span, diff --git a/crates/swc_ecma_compat_es2015/src/parameters.rs b/crates/swc_ecma_compat_es2015/src/parameters.rs index d84c7c9c17df..b319c5b94828 100644 --- a/crates/swc_ecma_compat_es2015/src/parameters.rs +++ b/crates/swc_ecma_compat_es2015/src/parameters.rs @@ -790,7 +790,7 @@ fn make_arg_nth(n: usize) -> MemberExpr { fn check_arg_len(n: usize) -> Expr { Expr::Bin(BinExpr { left: Expr::Ident(Ident::new_no_ctxt("arguments".into(), DUMMY_SP)) - .make_member(Ident::new_no_ctxt("length".into(), DUMMY_SP)) + .make_member(IdentName::new("length".into(), DUMMY_SP)) .into(), op: op!(">"), right: n.into(), diff --git a/crates/swc_ecma_compat_es2015/src/spread.rs b/crates/swc_ecma_compat_es2015/src/spread.rs index eec35c735c40..9bcd7dbcc6cb 100644 --- a/crates/swc_ecma_compat_es2015/src/spread.rs +++ b/crates/swc_ecma_compat_es2015/src/spread.rs @@ -414,7 +414,7 @@ impl Spread { let callee = buf .remove(0) .expr - .make_member(Ident::new_no_ctxt("concat".into(), DUMMY_SP)) + .make_member(IdentName::new("concat".into(), DUMMY_SP)) .as_callee(); return Expr::Call(CallExpr { diff --git a/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs b/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs index 793b5d390b3d..6ede36645ce9 100644 --- a/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs +++ b/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs @@ -869,7 +869,7 @@ impl ClassProperties { }, })); if inserted && self.c.private_as_properties { - Some(Ident::dummy()) + Some(IdentName::default()) } else { None } @@ -894,7 +894,7 @@ impl ClassProperties { name: weak_coll_var.clone(), fn_name: fn_name.clone(), })); - Some(Ident::dummy()) + Some(Default::default()) } else { None } From 726c06403b9d8ffe759b45a2b62185f866a8cdb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:33:13 +0900 Subject: [PATCH 59/80] More from impl --- crates/swc_ecma_ast/src/ident.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index b9b99d627807..58f49428f092 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -395,6 +395,8 @@ impl From<(Atom, Span)> for IdentName { bridge_from!(IdentName, Atom, &'_ str); bridge_from!(IdentName, Atom, Cow<'_, str>); bridge_from!(IdentName, Atom, String); +bridge_from!(IdentName, Ident, &BindingIdent); +bridge_from!(IdentName, Ident, BindingIdent); impl AsRef for IdentName { fn as_ref(&self) -> &str { From c5d5485dd7c5b8e618e89b7125df927fbd75afb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:33:16 +0900 Subject: [PATCH 60/80] More fix --- crates/swc_ecma_compat_es2015/src/spread.rs | 2 +- .../src/class_properties/mod.rs | 4 +-- .../src/compress/pure/properties.rs | 1 - .../src/decorator_2022_03.rs | 2 +- .../src/decorators/legacy/metadata.rs | 36 ++++++++++--------- .../src/decorators/mod.rs | 16 ++++++--- .../swc_ecma_transforms_react/src/jsx/mod.rs | 2 +- .../src/refresh/hook.rs | 11 +++--- .../src/transform.rs | 2 +- 9 files changed, 41 insertions(+), 35 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/spread.rs b/crates/swc_ecma_compat_es2015/src/spread.rs index 9bcd7dbcc6cb..f65254531e84 100644 --- a/crates/swc_ecma_compat_es2015/src/spread.rs +++ b/crates/swc_ecma_compat_es2015/src/spread.rs @@ -440,7 +440,7 @@ impl Spread { elems: vec![], }) }) - .make_member(Ident::new_no_ctxt("concat".into(), span)) + .make_member(IdentName::new("concat".into(), span)) .as_callee(), args: buf, diff --git a/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs b/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs index 6ede36645ce9..5726086d8569 100644 --- a/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs +++ b/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs @@ -779,7 +779,7 @@ impl ClassProperties { name: ident.into(), init: Some(Box::new(Expr::from(NewExpr { span, - callee: Box::new(Expr::Ident(quote_ident!("WeakMap"))), + callee: Box::new(Expr::Ident(quote_ident!("WeakMap").into())), args: Some(Default::default()), ..Default::default() }))), @@ -923,7 +923,7 @@ impl ClassProperties { } else { Expr::New(NewExpr { span, - callee: Box::new(Expr::Ident(extra)), + callee: Box::new(Expr::Ident(extra.into())), args: Some(Default::default()), ..Default::default() }) diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs index 3c382f0458c3..d14438857062 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs @@ -1,5 +1,4 @@ use swc_atoms::js_word; -use swc_common::SyntaxContext; use swc_ecma_ast::*; use super::Pure; diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs index 529e7871c040..385bc582ab4f 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_2022_03.rs @@ -1521,7 +1521,7 @@ impl VisitMut for Decorator2022_03 { .push(ExportSpecifier::Named(ExportNamedSpecifier { span: *span, orig: ModuleExportName::Ident(ident), - exported: Some(quote_ident!("default")), + exported: Some(quote_ident!("default").into()), is_type_only: false, })); diff --git a/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs b/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs index f49ccfc52c06..d13d66e776fc 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorators/legacy/metadata.rs @@ -322,7 +322,9 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr match &ty.type_name { // We should omit references to self (class) since it will throw a ReferenceError at // runtime due to babel transpile output. - TsEntityName::Ident(i) if &*i.sym == class_name => return quote_ident!("Object"), + TsEntityName::Ident(i) if &*i.sym == class_name => { + return quote_ident!("Object").into() + } _ => {} } @@ -337,7 +339,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr Expr::Cond(CondExpr { span: DUMMY_SP, test: check_object_existed(Box::new(member_expr.clone())), - cons: Box::new(quote_ident!("Object")), + cons: Box::new(quote_ident!("Object").into()), alt: Box::new(member_expr), }) } @@ -369,7 +371,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr kind: TsKeywordTypeKind::TsUndefinedKeyword, .. }) => { - return quote_ident!("Object"); + return quote_ident!("Object").into(); } _ => {} @@ -397,10 +399,10 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr match prev { Expr::Ident(prev) => match &item { Expr::Ident(item) if prev.sym == item.sym => {} - _ => return quote_ident!("Object"), + _ => return quote_ident!("Object").into(), }, - _ => return quote_ident!("Object"), + _ => return quote_ident!("Object").into(), } } } @@ -408,7 +410,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr match u { Some(i) => i, - _ => quote_ident!("Object"), + _ => quote_ident!("Object").into(), } } @@ -434,9 +436,9 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr TsType::TsParenthesizedType(ty) => serialize_type_node(class_name, &ty.type_ann), - TsType::TsFnOrConstructorType(_) => quote_ident!("Function"), + TsType::TsFnOrConstructorType(_) => quote_ident!("Function").into(), - TsType::TsArrayType(_) | TsType::TsTupleType(_) => quote_ident!("Array"), + TsType::TsArrayType(_) | TsType::TsTupleType(_) => quote_ident!("Array").into(), TsType::TsLitType(TsLitType { lit: TsLit::Bool(..), @@ -446,14 +448,14 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr | TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsBooleanKeyword, .. - }) => quote_ident!("Boolean"), + }) => quote_ident!("Boolean").into(), - ty if is_str(ty) => quote_ident!("String"), + ty if is_str(ty) => quote_ident!("String").into(), TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsObjectKeyword, .. - }) => quote_ident!("Object"), + }) => quote_ident!("Object").into(), TsType::TsLitType(TsLitType { lit: TsLit::Number(..), @@ -462,16 +464,16 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr | TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsNumberKeyword, .. - }) => quote_ident!("Number"), + }) => quote_ident!("Number").into(), TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsBigIntKeyword, .. }) => Expr::Cond(CondExpr { span: DUMMY_SP, - test: check_object_existed(quote_ident!("BigInt")), - cons: quote_ident!("Object"), - alt: quote_ident!("BigInt"), + test: check_object_existed(quote_ident!("BigInt").into()), + cons: quote_ident!("Object").into(), + alt: quote_ident!("BigInt").into(), }), TsType::TsLitType(ty) => { @@ -482,7 +484,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr TsType::TsKeywordType(TsKeywordType { kind: TsKeywordTypeKind::TsSymbolKeyword, .. - }) => quote_ident!("Symbol"), + }) => quote_ident!("Symbol").into(), TsType::TsTypeQuery(_) | TsType::TsTypeOperator(_) @@ -497,7 +499,7 @@ fn serialize_type(class_name: Option<&Ident>, param: Option<&TsTypeAnn>) -> Expr kind: TsKeywordTypeKind::TsUnknownKeyword, .. }) - | TsType::TsThisType(..) => quote_ident!("Object"), + | TsType::TsThisType(..) => quote_ident!("Object").into(), TsType::TsUnionOrIntersectionType(ty) => match ty { TsUnionOrIntersectionType::TsUnionType(ty) => { diff --git a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs index 8c08674f2e03..37f296eae80a 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs @@ -133,7 +133,10 @@ impl Fold for Decorators { return Expr::Class(ClassExpr { ident, class }); } - self.fold_class_inner(ident.unwrap_or_else(|| quote_ident!("_class")), class) + self.fold_class_inner( + ident.unwrap_or_else(|| quote_ident!("_class").into()), + class, + ) } _ => expr, } @@ -148,9 +151,10 @@ impl Fold for Decorators { decl: DefaultDecl::Class(ClassExpr { ident, class }), .. }) => { - let decorate_call = Box::new( - self.fold_class_inner(ident.unwrap_or_else(|| quote_ident!("_class")), class), - ); + let decorate_call = Box::new(self.fold_class_inner( + ident.unwrap_or_else(|| quote_ident!("_class").into()), + class, + )); ModuleDecl::ExportDefaultExpr(ExportDefaultExpr { span, @@ -205,7 +209,9 @@ impl Fold for Decorators { specifiers: vec![ExportNamedSpecifier { span: DUMMY_SP, orig: ModuleExportName::Ident(ident), - exported: Some(ModuleExportName::Ident(quote_ident!("default"))), + exported: Some(ModuleExportName::Ident( + quote_ident!("default").into(), + )), is_type_only: false, } .into()], diff --git a/crates/swc_ecma_transforms_react/src/jsx/mod.rs b/crates/swc_ecma_transforms_react/src/jsx/mod.rs index 512c4308912a..0cc64be33f01 100644 --- a/crates/swc_ecma_transforms_react/src/jsx/mod.rs +++ b/crates/swc_ecma_transforms_react/src/jsx/mod.rs @@ -1144,7 +1144,7 @@ fn add_require(imports: Vec<(Ident, IdentName)>, src: &str, unresolved_mark: Mar .map(|(local, imported)| { if imported.sym != local.sym { ObjectPatProp::KeyValue(KeyValuePatProp { - key: PropName::Ident(imported.into()), + key: PropName::Ident(imported), value: Box::new(Pat::Ident(local.into())), }) } else { diff --git a/crates/swc_ecma_transforms_react/src/refresh/hook.rs b/crates/swc_ecma_transforms_react/src/refresh/hook.rs index 2a7299f67f82..95f5af103463 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/hook.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/hook.rs @@ -60,10 +60,9 @@ impl<'a> HookRegister<'a> { .map(|id| VarDeclarator { span: DUMMY_SP, name: id.into(), - init: Some(Box::new(make_call_expr(quote_ident!(self - .options - .refresh_sig - .clone())))), + init: Some(Box::new(make_call_expr( + quote_ident!(self.options.refresh_sig.clone()).into(), + ))), definite: false, }) .collect(), @@ -154,7 +153,7 @@ impl<'a> HookRegister<'a> { HookCall::Member(obj, prop) => Expr::Member(MemberExpr { span: DUMMY_SP, obj: Box::new(obj), - prop: MemberProp::Ident(prop.into()), + prop: MemberProp::Ident(prop), }), } .as_arg(), @@ -404,7 +403,7 @@ impl<'a> HookCollector<'a> { } _ => None, }?; - let name = if is_hook_like(&ident) { + let name = if is_hook_like(ident) { Some(ident) } else { None diff --git a/crates/swc_ecma_transforms_typescript/src/transform.rs b/crates/swc_ecma_transforms_typescript/src/transform.rs index bf6ff2a30f00..dd584723ff0d 100644 --- a/crates/swc_ecma_transforms_typescript/src/transform.rs +++ b/crates/swc_ecma_transforms_typescript/src/transform.rs @@ -155,7 +155,7 @@ impl VisitMut for Transform { let (pat, expr, id) = match param { TsParamPropParam::Ident(binding_ident) => { let id = binding_ident.to_id(); - let prop_name = PropName::Ident(Ident::from(&*binding_ident)); + let prop_name = PropName::Ident(IdentName::from(&*binding_ident)); let value = Ident::from(&*binding_ident).into(); ( From b89088640efe8382d94ecc24b579d26b825d2745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:34:00 +0900 Subject: [PATCH 61/80] More fix --- crates/swc_ecma_ast/src/ident.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 58f49428f092..2c0a3de7e4f7 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -395,7 +395,7 @@ impl From<(Atom, Span)> for IdentName { bridge_from!(IdentName, Atom, &'_ str); bridge_from!(IdentName, Atom, Cow<'_, str>); bridge_from!(IdentName, Atom, String); -bridge_from!(IdentName, Ident, &BindingIdent); +bridge_from!(IdentName, Ident, &'_ BindingIdent); bridge_from!(IdentName, Ident, BindingIdent); impl AsRef for IdentName { @@ -435,15 +435,6 @@ impl From for Ident { } } -impl From for IdentName { - fn from(i: BindingIdent) -> Self { - let id = i.id; - IdentName { - span: id.span, - sym: id.sym, - } - } -} bridge_from!(BindingIdent, Ident, Atom); bridge_from!(BindingIdent, Atom, &'_ str); bridge_from!(BindingIdent, Atom, Cow<'_, str>); From 0b4c4226323148c26a13820541f7777853f8e187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:35:19 +0900 Subject: [PATCH 62/80] More fix --- crates/swc_ecma_transforms_base/src/hygiene/tests.rs | 2 +- .../swc_ecma_transforms_typescript/src/transform.rs | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs index 4329c7c4827f..4037ea80ff30 100644 --- a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs +++ b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs @@ -591,7 +591,7 @@ fn flat_in_fn() { let mark2 = Mark::fresh(mark1); Ok(vec![Stmt::Decl(Decl::Fn(FnDecl { - ident: quote_ident!("Foo"), + ident: quote_ident!("Foo").into(), function: Box::new(Function { span: DUMMY_SP, is_async: false, diff --git a/crates/swc_ecma_transforms_typescript/src/transform.rs b/crates/swc_ecma_transforms_typescript/src/transform.rs index dd584723ff0d..7106f10d1909 100644 --- a/crates/swc_ecma_transforms_typescript/src/transform.rs +++ b/crates/swc_ecma_transforms_typescript/src/transform.rs @@ -172,7 +172,7 @@ impl VisitMut for Transform { }; let id = binding_ident.id.to_id(); - let prop_name = PropName::Ident(binding_ident.id.clone()); + let prop_name = PropName::Ident(binding_ident.id.clone().into()); let value = binding_ident.id.clone().into(); ( @@ -468,7 +468,7 @@ impl Transform { let stmt = if decl.is_export { // Foo.foo = bar.baz mutable_export_ids.insert(decl.id.to_id()); - let left = id.clone().make_member(decl.id.clone()); + let left = id.clone().make_member(decl.id.clone().into()); let expr = init.make_assign_to(op!("="), left.into()); ExprStmt { @@ -804,7 +804,7 @@ impl Transform { prop_list .into_iter() .map(Ident::from) - .map(PropName::Ident) + .map(PropName::from) .map(|key| ClassProp { span: DUMMY_SP, key, @@ -974,10 +974,10 @@ impl Transform { match n { TsEntityName::Ident(i) => i.into(), TsEntityName::TsQualifiedName(q) => { - let TsQualifiedName { left, right } = *q; + let TsQualifiedName { span, left, right } = *q; MemberExpr { - span: DUMMY_SP, + span, obj: Box::new(Self::ts_entity_name_to_expr(left)), prop: MemberProp::Ident(right), } @@ -1255,6 +1255,7 @@ impl QueryRef for ExportQuery { fn query_jsx(&self, ident: &Ident) -> Option { self.export_id_list.contains(&ident.to_id()).then(|| { JSXMemberExpr { + span: DUMMY_SP, obj: JSXObject::Ident(self.namesapce_id.clone().into()), prop: ident.clone(), } From ff9a23af98e9c67ea404910b74f721c955ac96db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:36:59 +0900 Subject: [PATCH 63/80] More fix --- crates/swc_bundler/examples/bundle.rs | 4 +-- .../src/bundler/chunk/computed_key.rs | 2 +- .../swc_ecma_compat_es2018/src/object_rest.rs | 2 +- .../src/private_in_object.rs | 2 +- .../src/compress/pure/member_expr.rs | 2 +- crates/swc_ecma_transforms_module/src/amd.rs | 2 +- .../src/common_js.rs | 3 +- .../src/system_js.rs | 24 +++++++------- crates/swc_ecma_transforms_module/src/util.rs | 2 +- .../src/display_name/mod.rs | 1 - .../src/transform.rs | 31 +++++++++++++------ .../src/ts_enum.rs | 6 +++- 12 files changed, 49 insertions(+), 32 deletions(-) diff --git a/crates/swc_bundler/examples/bundle.rs b/crates/swc_bundler/examples/bundle.rs index 36765ebe32e0..06c5b7ad1934 100644 --- a/crates/swc_bundler/examples/bundle.rs +++ b/crates/swc_bundler/examples/bundle.rs @@ -190,7 +190,7 @@ impl swc_bundler::Hook for Hook { Ok(vec![ KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("url".into(), span)), + key: PropName::Ident(IdentName::new("url".into(), span)), value: Box::new(Expr::Lit(Lit::Str(Str { span, raw: None, @@ -198,7 +198,7 @@ impl swc_bundler::Hook for Hook { }))), }, KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("main".into(), span)), + key: PropName::Ident(IdentName::new("main".into(), span)), value: Box::new(if module_record.is_entry { Expr::Member(MemberExpr { span, diff --git a/crates/swc_bundler/src/bundler/chunk/computed_key.rs b/crates/swc_bundler/src/bundler/chunk/computed_key.rs index fefa496165d9..10e4b7cbb750 100644 --- a/crates/swc_bundler/src/bundler/chunk/computed_key.rs +++ b/crates/swc_bundler/src/bundler/chunk/computed_key.rs @@ -204,7 +204,7 @@ impl ExportToReturn { .push(PropOrSpread::Prop(Box::new(Prop::Shorthand(i)))); } - fn export_key_value(&mut self, mut key: Ident, value: Ident) { + fn export_key_value(&mut self, key: Ident, value: Ident) { self.return_props .push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { key: PropName::Ident(key.into()), diff --git a/crates/swc_ecma_compat_es2018/src/object_rest.rs b/crates/swc_ecma_compat_es2018/src/object_rest.rs index 3ecd3f721e3c..0114d5b7044c 100644 --- a/crates/swc_ecma_compat_es2018/src/object_rest.rs +++ b/crates/swc_ecma_compat_es2018/src/object_rest.rs @@ -950,7 +950,7 @@ fn object_without_properties( span: DUMMY_SP, elems: excluded_props, } - .make_member(quote_ident!("map").into()) + .make_member(quote_ident!("map")) .as_callee(), args: vec![helper_expr!(to_property_key).as_arg()], ..Default::default() diff --git a/crates/swc_ecma_compat_es2022/src/private_in_object.rs b/crates/swc_ecma_compat_es2022/src/private_in_object.rs index 4c17455b512f..9cac6966ed14 100644 --- a/crates/swc_ecma_compat_es2022/src/private_in_object.rs +++ b/crates/swc_ecma_compat_es2022/src/private_in_object.rs @@ -338,7 +338,7 @@ impl VisitMut for PrivateInObject { var_name.clone(), Some(Box::new(Expr::New(NewExpr { span: DUMMY_SP, - callee: Box::new(Expr::Ident(quote_ident!("WeakSet"))), + callee: Box::new(Expr::Ident(quote_ident!("WeakSet").into())), args: Some(Default::default()), ..Default::default() }))), diff --git a/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs b/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs index 6c6c982b22a6..4a136ba541ef 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/member_expr.rs @@ -2,7 +2,7 @@ use phf::phf_set; use swc_atoms::{Atom, JsWord}; use swc_common::Spanned; use swc_ecma_ast::{ - ArrayLit, Expr, ExprOrSpread, Ident, IdentName, Lit, MemberExpr, MemberProp, ObjectLit, Prop, + ArrayLit, Expr, ExprOrSpread, IdentName, Lit, MemberExpr, MemberProp, ObjectLit, Prop, PropOrSpread, SeqExpr, Str, }; use swc_ecma_utils::{prop_name_eq, ExprExt, Known}; diff --git a/crates/swc_ecma_transforms_module/src/amd.rs b/crates/swc_ecma_transforms_module/src/amd.rs index ade765ceae37..efe57419cf46 100644 --- a/crates/swc_ecma_transforms_module/src/amd.rs +++ b/crates/swc_ecma_transforms_module/src/amd.rs @@ -541,7 +541,7 @@ pub(crate) fn amd_dynamic_import( NewExpr { span, - callee: Box::new(quote_ident!("Promise")), + callee: Box::new(quote_ident!("Promise").into()), args: Some(vec![promise_executer.as_arg()]), ..Default::default() } diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs index 78788e121843..455d2f749990 100644 --- a/crates/swc_ecma_transforms_module/src/common_js.rs +++ b/crates/swc_ecma_transforms_module/src/common_js.rs @@ -543,7 +543,8 @@ where self.resolver .make_require_call(self.unresolved_mark, src.clone(), DUMMY_SP); - Expr::Ident(quote_ident!("__export")).as_call(DUMMY_SP, vec![import_expr.as_arg()]) + Expr::Ident(quote_ident!("__export").into()) + .as_call(DUMMY_SP, vec![import_expr.as_arg()]) }) .reduce(|left, right| { BinExpr { diff --git a/crates/swc_ecma_transforms_module/src/system_js.rs b/crates/swc_ecma_transforms_module/src/system_js.rs index c8a07a571d26..93e08d3012ab 100644 --- a/crates/swc_ecma_transforms_module/src/system_js.rs +++ b/crates/swc_ecma_transforms_module/src/system_js.rs @@ -675,9 +675,9 @@ impl Fold for SystemJs { left: specifier.local.clone().into(), right: Box::new(Expr::Member(MemberExpr { span: DUMMY_SP, - obj: Box::new(Expr::Ident(quote_ident!( - source_alias.clone() - ))), + obj: Box::new(Expr::Ident( + quote_ident!(source_alias.clone()).into(), + )), prop: match specifier.imported { Some(m) => get_module_export_member_prop(&m), None => { @@ -697,9 +697,9 @@ impl Fold for SystemJs { span: specifier.span, op: op!("="), left: specifier.local.into(), - right: Box::new(Expr::Ident(quote_ident!( - source_alias.clone() - ))), + right: Box::new(Expr::Ident( + quote_ident!(source_alias.clone()).into(), + )), } .into_stmt(), ); @@ -739,9 +739,9 @@ impl Fold for SystemJs { }); export_values.push(Box::new(Expr::Member(MemberExpr { span: DUMMY_SP, - obj: Box::new(Expr::Ident(quote_ident!( - source_alias.clone() - ))), + obj: Box::new(Expr::Ident( + quote_ident!(source_alias.clone()).into(), + )), prop: get_module_export_member_prop(&specifier.orig), }))); } @@ -756,9 +756,9 @@ impl Fold for SystemJs { ExportSpecifier::Namespace(specifier) => { export_names .push(get_module_export_name(&specifier.name).0); - export_values.push(Box::new(Expr::Ident(quote_ident!( - source_alias.clone() - )))); + export_values.push(Box::new(Expr::Ident( + quote_ident!(source_alias.clone()).into(), + ))); } } diff --git a/crates/swc_ecma_transforms_module/src/util.rs b/crates/swc_ecma_transforms_module/src/util.rs index 4d9ca12fba8a..43b5a7ce4e36 100644 --- a/crates/swc_ecma_transforms_module/src/util.rs +++ b/crates/swc_ecma_transforms_module/src/util.rs @@ -284,7 +284,7 @@ pub(crate) fn esm_export() -> Function { let name = private_ident!("name"); let getter = KeyValueProp { - key: quote_ident!("get"), + key: quote_ident!("get").into(), value: all.clone().computed_member(Expr::from(name.clone())).into(), }; diff --git a/crates/swc_ecma_transforms_react/src/display_name/mod.rs b/crates/swc_ecma_transforms_react/src/display_name/mod.rs index 5cd7d010da8b..0edd08f0f191 100644 --- a/crates/swc_ecma_transforms_react/src/display_name/mod.rs +++ b/crates/swc_ecma_transforms_react/src/display_name/mod.rs @@ -2,7 +2,6 @@ use std::ops::DerefMut; use swc_common::DUMMY_SP; use swc_ecma_ast::*; -use swc_ecma_utils::quote_ident; use swc_ecma_visit::{as_folder, noop_visit_mut_type, Fold, VisitMut, VisitMutWith}; #[cfg(test)] diff --git a/crates/swc_ecma_transforms_typescript/src/transform.rs b/crates/swc_ecma_transforms_typescript/src/transform.rs index 7106f10d1909..7783f13d64dd 100644 --- a/crates/swc_ecma_transforms_typescript/src/transform.rs +++ b/crates/swc_ecma_transforms_typescript/src/transform.rs @@ -829,7 +829,7 @@ impl Transform { // Foo.x = x; fn assign_prop(id: &Id, prop: &Ident, span: Span) -> Stmt { let expr = Expr::Ident(prop.clone()) - .make_assign_to(op!("="), id.clone().make_member(prop.clone()).into()); + .make_assign_to(op!("="), id.clone().make_member(prop.clone().into()).into()); Stmt::Expr(ExprStmt { span, @@ -883,7 +883,7 @@ impl Transform { if is_export { if let Some(id) = container_name.clone() { - left = Ident::from(id).make_member(ident).into(); + left = Ident::from(id).make_member(ident.into()).into(); assign_left = left.clone(); } } @@ -1039,7 +1039,10 @@ impl Transform { if decl.is_export { init = init.make_assign_to( op!("="), - cjs_exports.clone().make_member(decl.id.clone()).into(), + cjs_exports + .clone() + .make_member(decl.id.clone().into()) + .into(), ) } @@ -1203,7 +1206,12 @@ impl VisitMut for ExportedPatRewriter { fn visit_mut_pat(&mut self, n: &mut Pat) { if let Pat::Ident(bid) = n { - *n = Pat::Expr(self.id.clone().make_member(Ident::from(take(bid))).into()); + *n = Pat::Expr( + self.id + .clone() + .make_member(IdentName::from(take(bid))) + .into(), + ); return; } @@ -1212,7 +1220,9 @@ impl VisitMut for ExportedPatRewriter { fn visit_mut_object_pat_prop(&mut self, n: &mut ObjectPatProp) { if let ObjectPatProp::Assign(AssignPatProp { key, value, .. }) = n { - let left = Box::new(Pat::Expr(self.id.clone().make_member(key.clone()).into())); + let left = Box::new(Pat::Expr( + self.id.clone().make_member(key.clone().into()).into(), + )); let value = if let Some(right) = value.take() { AssignPat { @@ -1243,9 +1253,12 @@ struct ExportQuery { impl QueryRef for ExportQuery { fn query_ref(&self, ident: &Ident) -> Option> { - self.export_id_list - .contains(&ident.to_id()) - .then(|| self.namesapce_id.clone().make_member(ident.clone()).into()) + self.export_id_list.contains(&ident.to_id()).then(|| { + self.namesapce_id + .clone() + .make_member(ident.clone().into()) + .into() + }) } fn query_lhs(&self, ident: &Ident) -> Option> { @@ -1257,7 +1270,7 @@ impl QueryRef for ExportQuery { JSXMemberExpr { span: DUMMY_SP, obj: JSXObject::Ident(self.namesapce_id.clone().into()), - prop: ident.clone(), + prop: ident.clone().into(), } .into() }) diff --git a/crates/swc_ecma_transforms_typescript/src/ts_enum.rs b/crates/swc_ecma_transforms_typescript/src/ts_enum.rs index 992afef097fc..cf2be72f7f2a 100644 --- a/crates/swc_ecma_transforms_typescript/src/ts_enum.rs +++ b/crates/swc_ecma_transforms_typescript/src/ts_enum.rs @@ -300,7 +300,11 @@ impl<'a> VisitMut for EnumValueComputer<'a> { member_name: ident.sym.clone(), }) => { - *expr = self.enum_id.clone().make_member(ident.clone()).into(); + *expr = self + .enum_id + .clone() + .make_member(ident.clone().into()) + .into(); } Expr::Member(MemberExpr { obj, From 08436d379fb2f3c0450190df729d068748823ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:39:11 +0900 Subject: [PATCH 64/80] More fix --- crates/swc_bundler/examples/bundle.rs | 2 +- crates/swc_bundler/tests/deno.rs | 6 +++--- crates/swc_bundler/tests/fixture.rs | 8 ++++---- crates/swc_ecma_compat_es2015/src/classes/mod.rs | 9 +++++---- crates/swc_ecma_compat_es2015/src/for_of.rs | 4 ++-- crates/swc_ecma_compat_es2015/src/generator.rs | 4 ++-- crates/swc_ecma_transforms_base/src/hygiene/tests.rs | 2 +- crates/swc_ecma_transforms_module/src/umd/config.rs | 4 ++-- crates/swc_ecma_transforms_react/src/refresh/util.rs | 1 - 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/crates/swc_bundler/examples/bundle.rs b/crates/swc_bundler/examples/bundle.rs index 06c5b7ad1934..17e1e9efd018 100644 --- a/crates/swc_bundler/examples/bundle.rs +++ b/crates/swc_bundler/examples/bundle.rs @@ -206,7 +206,7 @@ impl swc_bundler::Hook for Hook { span, kind: MetaPropKind::ImportMeta, })), - prop: MemberProp::Ident(Ident::new_no_ctxt("main".into(), span)), + prop: MemberProp::Ident(IdentName::new("main".into(), span)), }) } else { Expr::Lit(Lit::Bool(Bool { span, value: false })) diff --git a/crates/swc_bundler/tests/deno.rs b/crates/swc_bundler/tests/deno.rs index a5441154969e..b587134570d3 100644 --- a/crates/swc_bundler/tests/deno.rs +++ b/crates/swc_bundler/tests/deno.rs @@ -1112,7 +1112,7 @@ impl swc_bundler::Hook for Hook { Ok(vec![ KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("url".into(), span)), + key: PropName::Ident(IdentName::new("url".into(), span)), value: Box::new(Expr::Lit(Lit::Str(Str { span, raw: None, @@ -1120,7 +1120,7 @@ impl swc_bundler::Hook for Hook { }))), }, KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("main".into(), span)), + key: PropName::Ident(IdentName::new("main".into(), span)), value: Box::new(if module_record.is_entry { Expr::Member(MemberExpr { span, @@ -1128,7 +1128,7 @@ impl swc_bundler::Hook for Hook { span, kind: MetaPropKind::ImportMeta, })), - prop: MemberProp::Ident(Ident::new_no_ctxt("main".into(), span)), + prop: MemberProp::Ident(IdentName::new("main".into(), span)), }) } else { Expr::Lit(Lit::Bool(Bool { span, value: false })) diff --git a/crates/swc_bundler/tests/fixture.rs b/crates/swc_bundler/tests/fixture.rs index 4f10c72641ba..a2e00ead8257 100644 --- a/crates/swc_bundler/tests/fixture.rs +++ b/crates/swc_bundler/tests/fixture.rs @@ -9,7 +9,7 @@ use anyhow::Error; use swc_bundler::{BundleKind, Bundler, Config, ModuleRecord}; use swc_common::{errors::HANDLER, FileName, Globals, Span}; use swc_ecma_ast::{ - Bool, Expr, Ident, KeyValueProp, Lit, MemberExpr, MemberProp, MetaPropExpr, MetaPropKind, + Bool, Expr, IdentName, KeyValueProp, Lit, MemberExpr, MemberProp, MetaPropExpr, MetaPropKind, PropName, Str, }; use swc_ecma_codegen::{text_writer::JsWriter, Emitter}; @@ -150,7 +150,7 @@ impl swc_bundler::Hook for Hook { Ok(vec![ KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("url".into(), span)), + key: PropName::Ident(IdentName::new("url".into(), span)), value: Box::new(Expr::Lit(Lit::Str(Str { span, raw: None, @@ -158,7 +158,7 @@ impl swc_bundler::Hook for Hook { }))), }, KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("main".into(), span)), + key: PropName::Ident(IdentName::new("main".into(), span)), value: Box::new(if module_record.is_entry { Expr::Member(MemberExpr { span, @@ -166,7 +166,7 @@ impl swc_bundler::Hook for Hook { span, kind: MetaPropKind::ImportMeta, })), - prop: MemberProp::Ident(Ident::new_no_ctxt("main".into(), span)), + prop: MemberProp::Ident(IdentName::new("main".into(), span)), }) } else { Expr::Lit(Lit::Bool(Bool { span, value: false })) diff --git a/crates/swc_ecma_compat_es2015/src/classes/mod.rs b/crates/swc_ecma_compat_es2015/src/classes/mod.rs index 598f918dfed6..2298ceee1b09 100644 --- a/crates/swc_ecma_compat_es2015/src/classes/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/classes/mod.rs @@ -133,7 +133,8 @@ where decl: DefaultDecl::Class(ClassExpr { ident, class }), .. }) => { - let ident = ident.unwrap_or_else(|| quote_ident!("_default")); + let ident = + ident.unwrap_or_else(|| quote_ident!("_default").into()); let mut decl = self.fold_class_as_var_decl(ident.clone(), class); decl.visit_mut_children_with(self); @@ -147,7 +148,7 @@ where span: DUMMY_SP, orig: ModuleExportName::Ident(ident), exported: Some(ModuleExportName::Ident( - quote_ident!("default"), + quote_ident!("default").into(), )), is_type_only: false, } @@ -527,7 +528,7 @@ where super_class_ident: Option, class: Box, ) -> Vec { - let class_name = class_name.unwrap_or_else(|| quote_ident!("_class")); + let class_name = class_name.unwrap_or_else(|| quote_ident!("_class").into()); let mut stmts = vec![]; let mut methods = vec![]; @@ -900,7 +901,7 @@ where /// { key: "prop" } fn mk_key_prop(key: PropName) -> Box { Box::new(Prop::KeyValue(KeyValueProp { - key: PropName::Ident(quote_ident!(Default::default(), key.span(), "key")), + key: PropName::Ident(quote_ident!(Default::default(), key.span(), "key").into()), value: match key { PropName::Ident(i) => Box::new(Expr::Lit(Lit::Str(quote_str!(i.span, i.sym)))), PropName::Str(s) => Box::new(Expr::from(s)), diff --git a/crates/swc_ecma_compat_es2015/src/for_of.rs b/crates/swc_ecma_compat_es2015/src/for_of.rs index f225b0b8a731..9b0a37c34258 100644 --- a/crates/swc_ecma_compat_es2015/src/for_of.rs +++ b/crates/swc_ecma_compat_es2015/src/for_of.rs @@ -493,7 +493,7 @@ impl ForOf { }, handler: Some(CatchClause { span: DUMMY_SP, - param: Some(quote_ident!("err")), + param: Some(quote_ident!("err").into()), // _didIteratorError = true; // _iteratorError = err; body: BlockStmt { @@ -511,7 +511,7 @@ impl ForOf { span: DUMMY_SP, left: error_ident.clone().into(), op: op!("="), - right: Box::new(Expr::Ident(quote_ident!("err"))), + right: Box::new(Expr::Ident(quote_ident!("err").into())), } .into_stmt(), ], diff --git a/crates/swc_ecma_compat_es2015/src/generator.rs b/crates/swc_ecma_compat_es2015/src/generator.rs index 4c8ccd0c8c31..ea11f8fb6151 100644 --- a/crates/swc_ecma_compat_es2015/src/generator.rs +++ b/crates/swc_ecma_compat_es2015/src/generator.rs @@ -1260,7 +1260,7 @@ impl Generator { span: DUMMY_SP, props: getter .map(|g| KeyValueProp { - key: quote_ident!("get"), + key: quote_ident!("get").into(), value: Function { params: vec![], span: g.span, @@ -1274,7 +1274,7 @@ impl Generator { .into_iter() .chain(setter.map(|s| { KeyValueProp { - key: quote_ident!("set"), + key: quote_ident!("set").into(), value: Function { params: vec![(*s.param).into()], span: s.span, diff --git a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs index 4037ea80ff30..ded15291d58f 100644 --- a/crates/swc_ecma_transforms_base/src/hygiene/tests.rs +++ b/crates/swc_ecma_transforms_base/src/hygiene/tests.rs @@ -632,7 +632,7 @@ fn params_in_fn() { let mark2 = Mark::fresh(Mark::root()); Ok(vec![Stmt::Decl(Decl::Fn(FnDecl { - ident: quote_ident!("Foo"), + ident: quote_ident!("Foo").into(), function: Box::new(Function { span: DUMMY_SP, is_async: false, diff --git a/crates/swc_ecma_transforms_module/src/umd/config.rs b/crates/swc_ecma_transforms_module/src/umd/config.rs index 113506197e6a..7094a6433951 100644 --- a/crates/swc_ecma_transforms_module/src/umd/config.rs +++ b/crates/swc_ecma_transforms_module/src/umd/config.rs @@ -78,11 +78,11 @@ impl BuiltConfig { None => self.global_name(&path.display().to_string()), }; - quote_ident!(s) + quote_ident!(s).into() } FileName::Custom(s) => { let s = self.global_name(s); - quote_ident!(s) + quote_ident!(s).into() } _ => unimplemented!("determine_export_name({:?})", filename), } diff --git a/crates/swc_ecma_transforms_react/src/refresh/util.rs b/crates/swc_ecma_transforms_react/src/refresh/util.rs index 0b59c7c3adf7..8400e0c0e344 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/util.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/util.rs @@ -1,4 +1,3 @@ -use swc_atoms::Atom; use swc_common::{collections::AHashSet, Spanned, SyntaxContext, DUMMY_SP}; use swc_ecma_ast::*; use swc_ecma_utils::ExprFactory; From 5f9a6eb07dd02e0618767efec94ce31b877d6846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:39:54 +0900 Subject: [PATCH 65/80] More fi --- crates/swc_node_bundler/src/loaders/json.rs | 2 +- crates/swc_node_bundler/tests/fixture.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/swc_node_bundler/src/loaders/json.rs b/crates/swc_node_bundler/src/loaders/json.rs index e92663ba36e5..726f6e73382a 100644 --- a/crates/swc_node_bundler/src/loaders/json.rs +++ b/crates/swc_node_bundler/src/loaders/json.rs @@ -17,7 +17,7 @@ pub(super) fn load_json_as_module(fm: &Arc) -> Result left: MemberExpr { span: DUMMY_SP, obj: Box::new(Expr::Ident(Ident::new_no_ctxt("module".into(), DUMMY_SP))), - prop: MemberProp::Ident(Ident::new_no_ctxt("exports".into(), DUMMY_SP)), + prop: MemberProp::Ident(IdentName::new("exports".into(), DUMMY_SP)), } .into(), right: expr, diff --git a/crates/swc_node_bundler/tests/fixture.rs b/crates/swc_node_bundler/tests/fixture.rs index 708d0be29b8c..35d1b7375996 100644 --- a/crates/swc_node_bundler/tests/fixture.rs +++ b/crates/swc_node_bundler/tests/fixture.rs @@ -11,7 +11,7 @@ use swc::{resolver::environment_resolver, PrintArgs}; use swc_bundler::{BundleKind, Bundler, Config, ModuleRecord}; use swc_common::{errors::HANDLER, FileName, Globals, Span, GLOBALS}; use swc_ecma_ast::{ - Bool, EsVersion, Expr, Ident, KeyValueProp, Lit, MemberExpr, MemberProp, MetaPropExpr, + Bool, EsVersion, Expr, IdentName, KeyValueProp, Lit, MemberExpr, MemberProp, MetaPropExpr, MetaPropKind, PropName, Str, }; use swc_ecma_loader::{TargetEnv, NODE_BUILTINS}; @@ -155,7 +155,7 @@ impl swc_bundler::Hook for Hook { Ok(vec![ KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("url".into(), span)), + key: PropName::Ident(IdentName::new("url".into(), span)), value: Box::new(Expr::Lit(Lit::Str(Str { span, raw: None, @@ -163,7 +163,7 @@ impl swc_bundler::Hook for Hook { }))), }, KeyValueProp { - key: PropName::Ident(Ident::new_no_ctxt("main".into(), span)), + key: PropName::Ident(IdentName::new("main".into(), span)), value: Box::new(if module_record.is_entry { Expr::Member(MemberExpr { span, @@ -171,7 +171,7 @@ impl swc_bundler::Hook for Hook { span, kind: MetaPropKind::ImportMeta, })), - prop: MemberProp::Ident(Ident::new_no_ctxt("main".into(), span)), + prop: MemberProp::Ident(IdentName::new("main".into(), span)), }) } else { Expr::Lit(Lit::Bool(Bool { span, value: false })) From b16a824d5122d144cde5068f98e6e1a869f04906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:42:54 +0900 Subject: [PATCH 66/80] Fix visitor --- crates/swc_ecma_visit/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs index 46b3a9e5675a..ee9c264d1186 100644 --- a/crates/swc_ecma_visit/src/lib.rs +++ b/crates/swc_ecma_visit/src/lib.rs @@ -952,6 +952,11 @@ define!({ pub optional: bool, } + pub struct IdentName { + pub span: Span, + pub sym: Atom, + } + pub struct PrivateName { pub span: Span, pub name: Atom, From 8626b19d12a18b36ad192ec6f5d94aa5ac980c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:43:33 +0900 Subject: [PATCH 67/80] Update test refs --- .../array/blockStmt/input.js.span.swc-stderr | 6 - .../paren-pure/1/input.js.span.swc-stderr | 5 - .../issue-4876/input.js.span.swc-stderr | 7 - .../attributes-declaration/input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 12 +- .../input.js.json | 8 +- .../string-literal/input.js.json | 8 +- .../trailing-comma-dynamic/input.js.json | 8 +- .../trailing-comma/input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../without-plugin/input.js.json | 4 +- .../input.js.json | 8 +- .../string-literal/input.js.json | 8 +- .../trailing-comma-dynamic/input.js.json | 8 +- .../trailing-comma/input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../without-plugin/input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../incorrect-arity/input.js.json | 8 +- .../string-literal/input.js.json | 8 +- .../trailing-comma-dynamic/input.js.json | 8 +- .../trailing-comma/input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../without-plugin/input.js.json | 4 +- .../input.js.json | 8 +- .../string-literal/input.js.json | 8 +- .../trailing-comma-dynamic/input.js.json | 8 +- .../trailing-comma/input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 4 +- .../input.js.json | 12 +- .../input.js.json | 4 +- .../input.js.json | 8 +- .../without-plugin/input.js.json | 4 +- .../tests/js/issue-5276/input.js.json | 4 +- .../tests/js/jssue-7428/1/input.js.json | 12 +- .../js/optional-chaining/1/input.js.json | 12 +- .../js/optional-chaining/2/input.js.json | 8 +- .../js/optional-chaining/3/input.js.json | 8 +- .../js/optional-chaining/4/input.js.json | 8 +- .../js/optional-chaining/5/input.js.json | 4 +- .../attributes-declaration/input.js.json | 4 +- .../attributes-expression/input.js.json | 8 +- .../tests/js/stack-overflow/1.js.json | 4 +- .../tests/jsx/basic/13/input.js.json | 8 +- .../tests/jsx/basic/14/input.js.json | 16 +- .../tests/jsx/basic/15/input.js.json | 32 +- .../tests/jsx/basic/18/input.js.json | 4 +- .../tests/jsx/basic/19/input.js.json | 8 +- .../tests/jsx/basic/2/input.js.json | 24 +- .../tests/jsx/basic/20/input.js.json | 28 +- .../tests/jsx/basic/3/input.js.json | 12 +- .../tests/jsx/basic/4/input.js.json | 16 +- .../tests/jsx/basic/7/input.js.json | 4 +- .../tests/jsx/basic/8/input.js.json | 4 +- .../jsx/basic/custom/issue-614/input.js.json | 8 +- .../jsx/basic/custom/issue-615/input.js.json | 4 +- .../jsx/basic/issue-2075/case1/input.js.json | 8 +- .../issue-2075/not-keyword/input.js.json | 8 +- .../tests/jsx/basic/issue-6522/input.js.json | 4 +- .../tests/jsx/basic/issue-812/input.js.json | 4 +- .../jsx/basic/namespace-tag/input.js.json | 36 +- .../tests/jsx/basic/string/input.js.json | 16 +- .../tests/jsx/basic/template/input.js.json | 16 +- .../span/js/decl/accessor.js.span.swc-stderr | 26 - .../class-no-close-brace.js.span.swc-stderr | 6 - .../span/js/decl/class.js.span.swc-stderr | 27 - .../js/decl/constructor.js.span.swc-stderr | 6 - .../span/js/expr/arrow-2.js.span.swc-stderr | 6 - .../span/js/expr/member.js.span.swc-stderr | 6 - .../tests/span/js/expr/new.js.span.swc-stderr | 6 - .../span/js/expr/object.js.span.swc-stderr | 10 - .../expr/optional-chaining.js.span.swc-stderr | 12 - .../span/js/expr/paren.js.span.swc-stderr | 5 - .../span/js/stmt/label.js.span.swc-stderr | 13 - .../span/js/super/obj3.js.span.swc-stderr | 21 - .../decl/decorated-class.ts.span.swc-stderr | 62 - ...tFunctionWithTheSameNameAndCommonRoot.json | 4 +- ...leAndAmbientWithSameNameAndCommonRoot.json | 24 +- ...AmbientClassWithSameNameAndCommonRoot.json | 16 +- ...tFunctionWithTheSameNameAndCommonRoot.json | 12 +- ...oduleMemberThatUsesClassTypeParameter.json | 48 +- ...nericClassStaticFunctionOfTheSameName.json | 12 +- ...nericClassStaticFunctionOfTheSameName.json | 12 +- ...taticFunctionUsingClassPrivateStatics.json | 16 +- ...tionAndExportedFunctionThatShareAName.json | 32 +- ...nAndNonExportedFunctionThatShareAName.json | 32 +- ...cVariableAndExportedVarThatShareAName.json | 32 +- ...riableAndNonExportedVarThatShareAName.json | 32 +- ...assAndModuleWithSameNameAndCommonRoot.json | 48 +- ...AndModuleWithSameNameAndCommonRootES6.json | 48 +- .../swc_ecma_parser/tests/tsc/ES5For-of1.json | 4 +- .../tests/tsc/ES5For-of10.json | 16 +- .../tests/tsc/ES5For-of22.json | 4 +- .../tests/tsc/ES5For-of23.json | 4 +- .../tests/tsc/ES5For-of27.json | 8 +- .../tests/tsc/ES5For-of29.json | 8 +- .../tests/tsc/ES5For-of31.json | 8 +- .../tests/tsc/ES5For-of33.json | 4 +- .../tests/tsc/ES5For-of34.json | 12 +- .../tests/tsc/ES5For-of35.json | 8 +- .../tests/tsc/ES5For-of37.json | 8 +- .../swc_ecma_parser/tests/tsc/ES5For-of8.json | 12 +- .../swc_ecma_parser/tests/tsc/ES5For-of9.json | 16 +- .../tests/tsc/ES5For-ofTypeCheck10.json | 16 +- .../tests/tsc/ES5For-ofTypeCheck13.json | 8 +- .../tests/tsc/ES5SymbolProperty1.json | 8 +- .../tests/tsc/ES5SymbolProperty2.json | 16 +- .../tests/tsc/ES5SymbolProperty3.json | 8 +- .../tests/tsc/ES5SymbolProperty4.json | 8 +- .../tests/tsc/ES5SymbolProperty5.json | 8 +- .../tests/tsc/ES5SymbolProperty6.json | 8 +- .../tests/tsc/ES5SymbolProperty7.json | 8 +- .../tests/tsc/ES5SymbolType1.json | 4 +- ...numAndModuleWithSameNameAndCommonRoot.json | 12 +- ...hExtendsInterfaceWithInaccessibleType.json | 8 +- ...lassHeritageListMemberTypeAnnotations.json | 36 +- ...ccessibleTypeInIndexerTypeAnnotations.json | 8 +- ...cessibleTypeInTypeParameterConstraint.json | 40 +- ...pesInParameterAndReturnTypeAnnotation.json | 20 +- ...essibleTypesInParameterTypeAnnotation.json | 20 +- ...accessibleTypesInReturnTypeAnnotation.json | 20 +- ...lassHeritageListMemberTypeAnnotations.json | 20 +- ...cessibleTypeInTypeParameterConstraint.json | 20 +- ...thAccessibleTypesOnItsExportedMembers.json | 20 +- ...ccessibleTypesInMemberTypeAnnotations.json | 20 +- ...bleTypesInNestedMemberTypeAnnotations.json | 4 +- ...ypeWithInaccessibleTypeAsTypeArgument.json | 4 +- ...bleWithAccessibleTypeInTypeAnnotation.json | 8 +- ...eWithInaccessibleTypeInTypeAnnotation.json | 20 +- ...ionAndModuleWithSameNameAndCommonRoot.json | 64 +- ...uleWithSameNameAndDifferentCommonRoot.json | 28 +- .../tsc/FunctionPropertyAssignments1_es6.json | 4 +- .../tsc/MemberFunctionDeclaration1_es6.json | 4 +- .../tsc/MemberFunctionDeclaration2_es6.json | 4 +- .../tsc/MemberFunctionDeclaration7_es6.json | 4 +- ...duleAndClassWithSameNameAndCommonRoot.json | 24 +- ...oduleAndEnumWithSameNameAndCommonRoot.json | 12 +- ...eAndFunctionWithSameNameAndCommonRoot.json | 32 +- ...duleWithExportedAndNonExportedClasses.json | 48 +- ...ModuleWithExportedAndNonExportedEnums.json | 24 +- ...leWithExportedAndNonExportedFunctions.json | 16 +- ...WithExportedAndNonExportedImportAlias.json | 88 +- ...leWithExportedAndNonExportedVariables.json | 8 +- .../swc_ecma_parser/tests/tsc/Protected3.json | 4 +- .../swc_ecma_parser/tests/tsc/Protected5.json | 4 +- .../swc_ecma_parser/tests/tsc/Protected9.json | 4 +- ...tedAndNonExportedClassesOfTheSameName.json | 76 +- ...AndNonExportedInterfacesOfTheSameName.json | 88 +- ...dAndNonExportedLocalVarsOfTheSameName.json | 96 +- ...eEachWithExportedClassesOfTheSameName.json | 24 +- ...chWithExportedInterfacesOfTheSameName.json | 112 +- ...achWithExportedLocalVarsOfTheSameName.json | 36 +- ...eEachWithExportedModulesOfTheSameName.json | 40 +- ...WithTheSameNameAndDifferentCommonRoot.json | 76 +- ...dulesWithTheSameNameAndSameCommonRoot.json | 96 +- .../tests/tsc/TypeGuardWithArrayUnion.json | 8 +- .../tests/tsc/YieldExpression10_es6.json | 4 +- .../tests/tsc/YieldExpression11_es6.json | 4 +- .../tests/tsc/abstractProperty.json | 24 +- .../tests/tsc/accessorWithES5.json | 16 +- ...rWithMismatchedAccessibilityModifiers.json | 32 +- .../tsc/accessorsAreNotContextuallyTyped.json | 12 +- .../tests/tsc/accessorsOverrideMethod.json | 8 +- .../tests/tsc/accessorsOverrideProperty.json | 32 +- .../tests/tsc/accessorsOverrideProperty2.json | 24 +- .../tests/tsc/accessorsOverrideProperty3.json | 24 +- .../tests/tsc/accessorsOverrideProperty4.json | 24 +- .../tests/tsc/accessorsOverrideProperty5.json | 8 +- .../tests/tsc/accessorsOverrideProperty6.json | 32 +- .../tests/tsc/accessorsOverrideProperty8.json | 20 +- .../tests/tsc/accessorsOverrideProperty9.json | 16 +- .../additionOperatorWithAnyAndEveryType.json | 16 +- .../additionOperatorWithInvalidOperands.json | 24 +- ...eratorWithNullValueAndInvalidOperator.json | 4 +- ...OperatorWithNullValueAndValidOperator.json | 8 +- .../additionOperatorWithNumberAndEnum.json | 12 +- ...dditionOperatorWithStringAndEveryType.json | 8 +- ...rWithUndefinedValueAndInvalidOperands.json | 4 +- ...torWithUndefinedValueAndValidOperator.json | 8 +- .../tsc/allowImportingTypesDtsExtension.json | 4 +- crates/swc_ecma_parser/tests/tsc/ambient.json | 4 +- .../tests/tsc/ambientAccessors.json | 32 +- .../tests/tsc/ambientDeclarations.json | 36 +- .../tsc/ambientDeclarationsExternal.json | 4 +- .../ambientDeclarationsPatterns_merging3.json | 4 +- .../tsc/ambientExternalModuleMerging.json | 8 +- .../tsc/amdImportAsPrimaryExpression.json | 8 +- .../tsc/amdImportNotAsPrimaryExpression.json | 72 +- ...edThisPropertyInitializerDoesntNarrow.json | 16 +- .../tests/tsc/anyAsGenericFunctionCall.json | 4 +- .../tsc/anyAssignabilityInInheritance.json | 12 +- .../tests/tsc/anyAssignableToEveryType.json | 4 +- .../tests/tsc/anyAssignableToEveryType2.json | 12 +- .../tests/tsc/anyPropertyAccess.json | 20 +- .../tests/tsc/apparentTypeSubtyping.json | 20 +- .../tests/tsc/apparentTypeSupertype.json | 8 +- .../argumentExpressionContextualTyping.json | 80 +- .../tests/tsc/arithmeticOperatorWithEnum.json | 320 +- .../tsc/arithmeticOperatorWithEnumUnion.json | 320 +- ...arithmeticOperatorWithInvalidOperands.json | 480 +- .../tests/tsc/arrayLiteralInference.json | 48 +- .../tests/tsc/arrayLiterals.json | 64 +- .../arrayLiteralsWithRecursiveGenerics.json | 20 +- .../tests/tsc/arrayOfFunctionTypes3.json | 4 +- .../tests/tsc/arraySpreadInCall.json | 4 +- .../tests/tsc/arrowFunctionExpressions.json | 48 +- .../tests/tsc/asOpEmitParens.json | 4 +- .../tests/tsc/asOperator1.json | 4 +- .../tests/tsc/asOperatorAmbiguity.json | 4 +- .../tests/tsc/assertionTypePredicates2.json | 8 +- .../assertionsAndNonReturningFunctions.json | 12 +- .../tests/tsc/assignAnyToEveryType.json | 8 +- .../tests/tsc/assignEveryTypeToAny.json | 20 +- .../tests/tsc/assignObjectToNonPrimitive.json | 4 +- ...erPropertyToPropertyDeclarationES2022.json | 176 +- ...erPropertyToPropertyDeclarationESNext.json | 176 +- .../assignmentCompatWithCallSignatures2.json | 28 +- .../assignmentCompatWithCallSignatures3.json | 16 +- .../assignmentCompatWithCallSignatures4.json | 16 +- .../assignmentCompatWithCallSignatures5.json | 16 +- .../assignmentCompatWithCallSignatures6.json | 72 +- ...hCallSignaturesWithOptionalParameters.json | 120 +- ...ignmentCompatWithConstructSignatures3.json | 16 +- ...ignmentCompatWithConstructSignatures4.json | 16 +- ...ignmentCompatWithConstructSignatures5.json | 16 +- ...ignmentCompatWithConstructSignatures6.json | 72 +- ...tructSignaturesWithOptionalParameters.json | 120 +- ...ssignmentCompatWithDiscriminatedUnion.json | 48 +- ...cCallSignaturesWithOptionalParameters.json | 432 +- .../assignmentCompatWithObjectMembers.json | 32 +- .../assignmentCompatWithObjectMembers2.json | 16 +- .../assignmentCompatWithObjectMembers3.json | 16 +- .../assignmentCompatWithObjectMembers4.json | 56 +- .../assignmentCompatWithObjectMembers5.json | 4 +- ...tCompatWithObjectMembersAccessibility.json | 24 +- ...entCompatWithObjectMembersOptionality.json | 20 +- ...ntCompatWithObjectMembersOptionality2.json | 20 +- .../assignmentGenericLookupTypeNarrowing.json | 12 +- .../tests/tsc/assignmentLHSIsReference.json | 8 +- .../assignmentToParenthesizedIdentifiers.json | 100 +- .../tests/tsc/assignmentToVoidZero1.json | 16 +- .../tests/tsc/assignmentToVoidZero2.json | 40 +- .../tests/tsc/assignmentTypeNarrowing.json | 36 +- .../tests/tsc/assignments.json | 4 +- .../tests/tsc/asyncArrowFunction11_es5.json | 8 +- ...ArrowFunctionCapturesArguments_es2017.json | 8 +- ...yncArrowFunctionCapturesArguments_es5.json | 8 +- ...yncArrowFunctionCapturesArguments_es6.json | 12 +- ...asyncArrowFunctionCapturesThis_es2017.json | 4 +- .../asyncArrowFunctionCapturesThis_es5.json | 4 +- .../asyncArrowFunctionCapturesThis_es6.json | 4 +- .../tsc/asyncAwaitIsolatedModules_es2017.json | 36 +- .../tsc/asyncAwaitIsolatedModules_es5.json | 36 +- .../tsc/asyncAwaitIsolatedModules_es6.json | 36 +- .../tsc/asyncAwaitNestedClasses_es5.json | 32 +- .../tests/tsc/asyncAwait_es2017.json | 44 +- .../tests/tsc/asyncAwait_es5.json | 44 +- .../tests/tsc/asyncAwait_es6.json | 44 +- .../tsc/asyncFunctionDeclaration16_es5.json | 4 +- ...ctionDeclarationCapturesArguments_es5.json | 8 +- .../asyncGeneratorParameterEvaluation.json | 12 +- .../tests/tsc/asyncImportedPromise_es5.json | 4 +- .../tests/tsc/asyncImportedPromise_es6.json | 4 +- .../tsc/asyncMethodWithSuperConflict_es6.json | 52 +- .../tsc/asyncMethodWithSuper_es2017.json | 52 +- .../tests/tsc/asyncMethodWithSuper_es5.json | 52 +- .../tests/tsc/asyncMethodWithSuper_es6.json | 268 +- .../tests/tsc/asyncWithVarShadowing_es6.json | 20 +- .../tests/tsc/autoAccessor1.json | 16 +- .../tests/tsc/autoAccessor10.json | 20 +- .../tests/tsc/autoAccessor11.json | 32 +- .../tests/tsc/autoAccessor2.json | 4 +- .../tests/tsc/autoAccessor6.json | 16 +- .../tests/tsc/autoAccessor7.json | 12 +- .../tests/tsc/autoAccessor8.json | 24 +- .../tests/tsc/autoAccessor9.json | 52 +- .../tsc/autoAccessorAllowedModifiers.json | 52 +- ...autoAccessorNoUseDefineForClassFields.json | 16 +- .../tsc/awaitBinaryExpression5_es2017.json | 4 +- .../tests/tsc/awaitBinaryExpression5_es5.json | 4 +- .../tests/tsc/awaitBinaryExpression5_es6.json | 4 +- .../tsc/awaitCallExpression5_es2017.json | 4 +- .../tests/tsc/awaitCallExpression5_es5.json | 4 +- .../tests/tsc/awaitCallExpression5_es6.json | 4 +- .../tsc/awaitCallExpression6_es2017.json | 4 +- .../tests/tsc/awaitCallExpression6_es5.json | 4 +- .../tests/tsc/awaitCallExpression6_es6.json | 4 +- .../tsc/awaitCallExpression7_es2017.json | 4 +- .../tests/tsc/awaitCallExpression7_es5.json | 4 +- .../tests/tsc/awaitCallExpression7_es6.json | 4 +- .../tsc/awaitCallExpression8_es2017.json | 4 +- .../tests/tsc/awaitCallExpression8_es5.json | 4 +- .../tests/tsc/awaitCallExpression8_es6.json | 4 +- .../tests/tsc/awaitUsingDeclarations.1.json | 100 +- .../tests/tsc/awaitUsingDeclarations.15.json | 4 +- .../tests/tsc/awaitUsingDeclarations.2.json | 8 +- .../tests/tsc/awaitUsingDeclarations.3.json | 8 +- ...itUsingDeclarationsTopLevelOfModule.1.json | 8 +- ...estCommonTypeOfConditionalExpressions.json | 12 +- ...stCommonTypeOfConditionalExpressions2.json | 12 +- .../tests/tsc/bestCommonTypeOfTuple.json | 16 +- .../tests/tsc/bestCommonTypeOfTuple2.json | 32 +- .../tests/tsc/binaryIntegerLiteral.json | 16 +- .../tests/tsc/binaryIntegerLiteralES6.json | 16 +- ...rUninitializedModuleExportsAssignment.json | 4 +- .../bitwiseNotOperatorWithBooleanType.json | 36 +- .../tsc/bitwiseNotOperatorWithEnumType.json | 12 +- .../tsc/bitwiseNotOperatorWithNumberType.json | 52 +- .../tsc/bitwiseNotOperatorWithStringType.json | 48 +- .../tests/tsc/bivariantInferences.json | 4 +- .../tests/tsc/booleanLiteralTypes1.json | 24 +- .../tests/tsc/booleanLiteralTypes2.json | 24 +- .../tests/tsc/booleanPropertyAccess.json | 4 +- .../tests/tsc/bundlerSyntaxRestrictions.json | 4 +- .../tests/tsc/callChain.2.json | 12 +- .../tests/tsc/callChain.3.json | 48 +- .../swc_ecma_parser/tests/tsc/callChain.json | 96 +- .../tests/tsc/callChainInference.json | 8 +- .../tests/tsc/callChainWithSuper.json | 16 +- ...ionWithIncorrectNumberOfTypeArguments.json | 40 +- ...lGenericFunctionWithZeroTypeArguments.json | 24 +- ...llNonGenericFunctionWithTypeArguments.json | 24 +- ...lSignatureAssignabilityInInheritance2.json | 16 +- ...lSignatureAssignabilityInInheritance3.json | 16 +- ...lSignatureAssignabilityInInheritance4.json | 16 +- ...lSignatureAssignabilityInInheritance5.json | 16 +- ...lSignatureAssignabilityInInheritance6.json | 16 +- ...callSignatureWithoutAnnotationsOrBody.json | 8 +- ...eWithoutReturnTypeAnnotationInference.json | 20 +- ...SignaturesThatDifferOnlyByReturnType2.json | 8 +- ...ithAccessibilityModifiersOnParameters.json | 24 +- ...callSignaturesWithDuplicateParameters.json | 24 +- .../callSignaturesWithOptionalParameters.json | 64 +- ...callSignaturesWithOptionalParameters2.json | 60 +- .../tests/tsc/callWithMissingVoid.json | 36 +- ...ithMissingVoidUndefinedUnknownAnyInJs.json | 32 +- .../tests/tsc/callWithSpread.json | 120 +- .../tests/tsc/callWithSpreadES6.json | 72 +- .../tests/tsc/callbackCrossModule.json | 12 +- .../tests/tsc/callbackOnConstructor.json | 12 +- .../tests/tsc/callbackTag1.json | 4 +- .../tests/tsc/callbackTag2.json | 8 +- .../tests/tsc/callbackTagNestedParameter.json | 4 +- .../tests/tsc/castingTuple.json | 28 +- crates/swc_ecma_parser/tests/tsc/chained.json | 4 +- .../swc_ecma_parser/tests/tsc/chained2.json | 28 +- .../tests/tsc/chainedPrototypeAssignment.json | 44 +- .../tsc/checkExportsObjectAssignProperty.json | 244 +- ...kExportsObjectAssignPrototypeProperty.json | 148 +- .../tests/tsc/checkJsdocSatisfiesTag1.json | 32 +- .../tests/tsc/checkJsdocSatisfiesTag10.json | 32 +- .../tests/tsc/checkJsdocSatisfiesTag11.json | 4 +- .../tests/tsc/checkJsdocSatisfiesTag12.json | 28 +- .../tests/tsc/checkJsdocSatisfiesTag13.json | 12 +- .../tests/tsc/checkJsdocSatisfiesTag14.json | 8 +- .../tests/tsc/checkJsdocSatisfiesTag2.json | 8 +- .../tests/tsc/checkJsdocSatisfiesTag3.json | 12 +- .../tests/tsc/checkJsdocSatisfiesTag4.json | 4 +- .../tests/tsc/checkJsdocSatisfiesTag5.json | 12 +- .../tests/tsc/checkJsdocSatisfiesTag6.json | 20 +- .../tests/tsc/checkJsdocSatisfiesTag7.json | 32 +- .../tests/tsc/checkJsdocSatisfiesTag8.json | 8 +- .../tests/tsc/checkJsdocSatisfiesTag9.json | 48 +- .../tests/tsc/checkJsdocTypeTag2.json | 4 +- .../tests/tsc/checkJsdocTypeTag6.json | 4 +- .../tests/tsc/checkJsdocTypeTag7.json | 8 +- .../checkJsdocTypeTagOnObjectProperty1.json | 40 +- .../checkJsdocTypeTagOnObjectProperty2.json | 24 +- .../tsc/checkJsdocTypedefInParamTag1.json | 24 +- .../tsc/checkJsdocTypedefOnlySourceFile.json | 4 +- .../tests/tsc/checkObjectDefineProperty.json | 132 +- .../tsc/checkOtherObjectAssignProperty.json | 108 +- .../tsc/checkSpecialPropertyAssignments.json | 8 +- .../swc_ecma_parser/tests/tsc/circular4.json | 32 +- .../tests/tsc/circularImportAlias.json | 20 +- .../tsc/circularIndexedAccessErrors.json | 20 +- ...circularMultipleAssignmentDeclaration.json | 24 +- .../tests/tsc/circularReference.json | 124 +- .../circularTypeAliasForUnionWithClass.json | 4 +- .../tsc/circularTypeofWithVarOrFunc.json | 8 +- .../tests/tsc/classAbstractAsIdentifier.json | 4 +- ...classAbstractClinterfaceAssignability.json | 8 +- .../tsc/classAbstractImportInstantiation.json | 8 +- .../tests/tsc/classAbstractInAModule.json | 8 +- .../tests/tsc/classAbstractOverloads.json | 64 +- .../tests/tsc/classAbstractSuperCalls.json | 64 +- .../classAbstractUsingAbstractMethod1.json | 20 +- ...ssAndInterfaceMergeConflictingMembers.json | 12 +- .../tsc/classAndInterfaceWithSameName.json | 8 +- .../tsc/classAndVariableWithSameName.json | 8 +- .../classAppearsToHaveMembersOfObject.json | 12 +- .../classCanExtendConstructorFunction.json | 132 +- .../tsc/classConstructorAccessibility.json | 24 +- .../tsc/classConstructorAccessibility2.json | 76 +- .../tsc/classConstructorAccessibility3.json | 16 +- .../tsc/classConstructorAccessibility4.json | 24 +- .../tsc/classConstructorAccessibility5.json | 12 +- ...lassConstructorOverloadsAccessibility.json | 52 +- ...assConstructorParametersAccessibility.json | 32 +- ...ssConstructorParametersAccessibility2.json | 32 +- ...ssConstructorParametersAccessibility3.json | 16 +- .../tests/tsc/classDeclarationLoop.json | 8 +- .../classDoesNotDependOnPrivateMember.json | 4 +- .../tests/tsc/classExpression.json | 4 +- .../tests/tsc/classExpression3.json | 24 +- .../tests/tsc/classExpression4.json | 8 +- .../tests/tsc/classExpression5.json | 8 +- .../tests/tsc/classExpressionES63.json | 24 +- .../tests/tsc/classExpressionLoop.json | 8 +- .../tests/tsc/classExtendingClass.json | 64 +- .../tsc/classExtendingClassLikeType.json | 36 +- .../tsc/classExtendingNonConstructor.json | 4 +- .../tests/tsc/classExtendingNull.json | 8 +- .../tsc/classExtendsItselfIndirectly.json | 24 +- .../tsc/classExtendsItselfIndirectly2.json | 40 +- .../tsc/classExtendsItselfIndirectly3.json | 24 +- ...assExtendsShadowedConstructorFunction.json | 8 +- .../classImplementsMergedClassInterface.json | 20 +- .../tests/tsc/classIsSubtypeOfBaseType.json | 12 +- .../tests/tsc/classPropertyAsPrivate.json | 64 +- .../tests/tsc/classPropertyAsProtected.json | 64 +- .../tsc/classPropertyIsPublicByDefault.json | 64 +- .../tests/tsc/classStaticBlock11.json | 4 +- .../tests/tsc/classStaticBlock13.json | 8 +- .../tests/tsc/classStaticBlock15.json | 4 +- .../tests/tsc/classStaticBlock17.json | 32 +- .../tests/tsc/classStaticBlock18.json | 8 +- .../tests/tsc/classStaticBlock24.json | 8 +- .../tests/tsc/classStaticBlock27.json | 40 +- .../tests/tsc/classStaticBlock28.json | 4 +- .../tests/tsc/classStaticBlock3.json | 44 +- .../tests/tsc/classStaticBlock4.json | 32 +- .../tests/tsc/classStaticBlock5.json | 32 +- .../tests/tsc/classStaticBlock9.json | 16 +- .../tsc/classStaticBlockUseBeforeDef2.json | 8 +- .../tsc/classStaticBlockUseBeforeDef3.json | 28 +- .../classWithBaseClassButNoConstructor.json | 24 +- .../tests/tsc/classWithConstructors.json | 32 +- .../tests/tsc/classWithEmptyBody.json | 12 +- .../classWithNoConstructorOrBaseClass.json | 12 +- ...nlyPublicMembersEquivalentToInterface.json | 16 +- ...lyPublicMembersEquivalentToInterface2.json | 20 +- .../tests/tsc/classWithOptionalParameter.json | 16 +- .../tests/tsc/classWithPrivateProperty.json | 64 +- .../tests/tsc/classWithProtectedProperty.json | 68 +- .../tests/tsc/classWithPublicProperty.json | 64 +- ...taticFieldInParameterBindingPattern.2.json | 16 +- ...taticFieldInParameterBindingPattern.3.json | 16 +- ...hStaticFieldInParameterBindingPattern.json | 8 +- ...thStaticFieldInParameterInitializer.2.json | 8 +- ...thStaticFieldInParameterInitializer.3.json | 8 +- ...WithStaticFieldInParameterInitializer.json | 4 +- .../tests/tsc/classWithStaticMembers.json | 48 +- .../classWithTwoConstructorDefinitions.json | 16 +- .../tsc/classWithoutExplicitConstructor.json | 16 +- ...commaOperatorWithSecondOperandAnyType.json | 16 +- ...maOperatorWithSecondOperandNumberType.json | 8 +- ...maOperatorWithSecondOperandObjectType.json | 20 +- ...maOperatorWithSecondOperandStringType.json | 8 +- .../tsc/commaOperatorsMultipleOperators.json | 8 +- .../tests/tsc/commonJSAliasedExport.json | 12 +- .../commonJSImportAsPrimaryExpression.json | 16 +- .../tsc/commonJSImportClassTypeReference.json | 12 +- ...commonJSImportExportedClassExpression.json | 12 +- ...ommonJSImportNestedClassTypeReference.json | 24 +- .../commonJSImportNotAsPrimaryExpression.json | 72 +- .../tests/tsc/commonJSReexport.json | 20 +- ...omparisonOperatorWithIdenticalObjects.json | 56 +- ...hNoRelationshipObjectsOnCallSignature.json | 12 +- ...tionshipObjectsOnConstructorSignature.json | 12 +- ...NoRelationshipObjectsOnIndexSignature.json | 12 +- ...hipObjectsOnInstantiatedCallSignature.json | 12 +- ...ctsOnInstantiatedConstructorSignature.json | 12 +- ...orWithNoRelationshipObjectsOnProperty.json | 16 +- ...risonOperatorWithSubtypeEnumAndNumber.json | 128 +- ...ratorWithSubtypeObjectOnCallSignature.json | 8 +- ...thSubtypeObjectOnConstructorSignature.json | 8 +- ...atorWithSubtypeObjectOnIndexSignature.json | 8 +- ...typeObjectOnInstantiatedCallSignature.json | 8 +- ...ectOnInstantiatedConstructorSignature.json | 8 +- ...onOperatorWithSubtypeObjectOnProperty.json | 32 +- ...undAdditionAssignmentLHSCanBeAssigned.json | 16 +- ...AdditionAssignmentWithInvalidOperands.json | 12 +- .../tsc/compoundAssignmentLHSIsReference.json | 16 +- ...xponentiationAssignmentLHSIsReference.json | 8 +- .../tsc/computedPropertyNames18_ES5.json | 4 +- .../tsc/computedPropertyNames18_ES6.json | 4 +- .../tsc/computedPropertyNames19_ES5.json | 4 +- .../tsc/computedPropertyNames19_ES6.json | 4 +- .../tsc/computedPropertyNames20_ES5.json | 4 +- .../tsc/computedPropertyNames20_ES6.json | 4 +- .../tsc/computedPropertyNames21_ES5.json | 8 +- .../tsc/computedPropertyNames21_ES6.json | 8 +- .../tsc/computedPropertyNames22_ES5.json | 8 +- .../tsc/computedPropertyNames22_ES6.json | 8 +- .../tsc/computedPropertyNames23_ES5.json | 8 +- .../tsc/computedPropertyNames23_ES6.json | 8 +- .../tsc/computedPropertyNames24_ES5.json | 8 +- .../tsc/computedPropertyNames24_ES6.json | 8 +- .../tsc/computedPropertyNames25_ES5.json | 12 +- .../tsc/computedPropertyNames25_ES6.json | 12 +- .../tsc/computedPropertyNames26_ES5.json | 8 +- .../tsc/computedPropertyNames26_ES6.json | 8 +- .../tsc/computedPropertyNames28_ES5.json | 4 +- .../tsc/computedPropertyNames28_ES6.json | 4 +- .../tsc/computedPropertyNames29_ES5.json | 8 +- .../tsc/computedPropertyNames29_ES6.json | 8 +- .../tsc/computedPropertyNames30_ES5.json | 4 +- .../tsc/computedPropertyNames30_ES6.json | 4 +- .../tsc/computedPropertyNames31_ES5.json | 12 +- .../tsc/computedPropertyNames31_ES6.json | 12 +- .../tsc/computedPropertyNames32_ES5.json | 4 +- .../tsc/computedPropertyNames32_ES6.json | 4 +- .../tsc/computedPropertyNames33_ES5.json | 4 +- .../tsc/computedPropertyNames33_ES6.json | 4 +- .../tsc/computedPropertyNames34_ES5.json | 4 +- .../tsc/computedPropertyNames34_ES6.json | 4 +- .../tsc/computedPropertyNames36_ES5.json | 12 +- .../tsc/computedPropertyNames36_ES6.json | 12 +- .../tsc/computedPropertyNames37_ES5.json | 12 +- .../tsc/computedPropertyNames37_ES6.json | 12 +- .../tsc/computedPropertyNames38_ES5.json | 12 +- .../tsc/computedPropertyNames38_ES6.json | 12 +- .../tsc/computedPropertyNames39_ES5.json | 12 +- .../tsc/computedPropertyNames39_ES6.json | 12 +- .../tsc/computedPropertyNames40_ES5.json | 12 +- .../tsc/computedPropertyNames40_ES6.json | 12 +- .../tsc/computedPropertyNames41_ES5.json | 12 +- .../tsc/computedPropertyNames41_ES6.json | 12 +- .../tsc/computedPropertyNames42_ES5.json | 12 +- .../tsc/computedPropertyNames42_ES6.json | 12 +- .../tsc/computedPropertyNames43_ES5.json | 12 +- .../tsc/computedPropertyNames43_ES6.json | 12 +- .../tsc/computedPropertyNames44_ES5.json | 12 +- .../tsc/computedPropertyNames44_ES6.json | 12 +- .../tsc/computedPropertyNames45_ES5.json | 12 +- .../tsc/computedPropertyNames45_ES6.json | 12 +- .../tsc/computedPropertyNames47_ES5.json | 8 +- .../tsc/computedPropertyNames47_ES6.json | 8 +- .../tsc/computedPropertyNames48_ES5.json | 4 +- .../tsc/computedPropertyNames48_ES6.json | 4 +- .../tests/tsc/computedPropertyNames7_ES5.json | 4 +- .../tests/tsc/computedPropertyNames7_ES6.json | 4 +- ...putedPropertyNamesContextualType1_ES5.json | 8 +- ...putedPropertyNamesContextualType1_ES6.json | 8 +- ...putedPropertyNamesContextualType2_ES5.json | 8 +- ...putedPropertyNamesContextualType2_ES6.json | 8 +- ...putedPropertyNamesContextualType3_ES5.json | 8 +- ...putedPropertyNamesContextualType3_ES6.json | 8 +- ...putedPropertyNamesContextualType6_ES5.json | 4 +- ...putedPropertyNamesContextualType6_ES6.json | 4 +- ...putedPropertyNamesContextualType7_ES5.json | 4 +- ...putedPropertyNamesContextualType7_ES6.json | 4 +- ...mputedPropertyNamesWithStaticProperty.json | 32 +- ...ditionalOperatorConditionIsNumberType.json | 8 +- ...conditionalOperatorConditoinIsAnyType.json | 24 +- ...ditionalOperatorConditoinIsStringType.json | 12 +- .../conditionalOperatorWithIdenticalBCT.json | 92 +- ...onditionalOperatorWithoutIdenticalBCT.json | 52 +- .../tests/tsc/conditionalTypes1.json | 84 +- .../tests/tsc/conditionalTypes2.json | 24 +- .../tsc/conditionalTypesExcessProperties.json | 20 +- .../tsc/conflictingCommonJSES2015Exports.json | 4 +- .../swc_ecma_parser/tests/tsc/constEnum2.json | 16 +- .../swc_ecma_parser/tests/tsc/constEnum3.json | 8 +- ...stEnumNoObjectPrototypePropertyAccess.json | 56 +- .../tests/tsc/constEnumPropertyAccess1.json | 20 +- .../tests/tsc/constEnumPropertyAccess2.json | 8 +- .../tests/tsc/constEnumPropertyAccess3.json | 52 +- .../tsc/constLocalsInFunctionExpressions.json | 20 +- .../tsc/constraintSatisfactionWithAny.json | 12 +- ...constraintSatisfactionWithEmptyObject.json | 8 +- .../tests/tsc/constructBigint.json | 8 +- ...ctSignatureAssignabilityInInheritance.json | 4 +- ...tSignatureAssignabilityInInheritance2.json | 16 +- ...tSignatureAssignabilityInInheritance3.json | 16 +- ...tSignatureAssignabilityInInheritance4.json | 16 +- ...tSignatureAssignabilityInInheritance5.json | 16 +- ...tSignatureAssignabilityInInheritance6.json | 16 +- ...ithAccessibilityModifiersOnParameters.json | 12 +- ...thAccessibilityModifiersOnParameters2.json | 24 +- ...tructSignaturesWithIdenticalOverloads.json | 24 +- .../tsc/constructSignaturesWithOverloads.json | 24 +- .../constructSignaturesWithOverloads2.json | 24 +- ...thOverloadsThatDifferOnlyByReturnType.json | 8 +- .../constructorFunctionMergeWithClass.json | 8 +- ...nstructorFunctionMethodTypeParameters.json | 28 +- ...torFunctionTypeIsAssignableToBaseType.json | 12 +- ...orFunctionTypeIsAssignableToBaseType2.json | 24 +- .../tests/tsc/constructorFunctions.json | 12 +- .../tests/tsc/constructorFunctions2.json | 36 +- .../tests/tsc/constructorFunctions3.json | 48 +- .../tests/tsc/constructorFunctionsStrict.json | 36 +- .../tsc/constructorHasPrototypeProperty.json | 56 +- ...ructorImplementationWithDefaultValues.json | 24 +- ...uctorImplementationWithDefaultValues2.json | 24 +- ...onstructorNameInObjectLiteralAccessor.json | 8 +- ...constructorOverloadsWithDefaultValues.json | 24 +- ...ructorOverloadsWithOptionalParameters.json | 24 +- .../tsc/constructorParameterProperties.json | 44 +- .../tsc/constructorParameterProperties2.json | 48 +- ...onstructorParameterShadowsOuterScopes.json | 16 +- ...nstructorParameterShadowsOuterScopes2.json | 24 +- .../tsc/constructorTagOnClassConstructor.json | 4 +- ...onstructorTagOnNestedBinaryExpression.json | 4 +- .../constructorTagOnObjectLiteralMethod.json | 16 +- .../tests/tsc/constructorTagWithThisTag.json | 8 +- ...tructorWithAssignableReturnExpression.json | 48 +- .../constructorWithExpressionLessReturn.json | 20 +- .../tests/tsc/contextualIntersectionType.json | 8 +- .../tests/tsc/contextualThisType.json | 8 +- .../tsc/contextualThisTypeInJavascript.json | 20 +- .../tests/tsc/contextualTypeFromJSDoc.json | 32 +- .../tests/tsc/contextualTypeTupleEnd.json | 24 +- .../tests/tsc/contextualTypeWithTuple.json | 12 +- ...extualTypeWithUnionTypeCallSignatures.json | 16 +- ...xtualTypeWithUnionTypeIndexSignatures.json | 28 +- .../contextualTypeWithUnionTypeMembers.json | 184 +- ...textualTypeWithUnionTypeObjectLiteral.json | 60 +- .../tsc/contextualTypedSpecialAssignment.json | 148 +- ...extuallyTypeAsyncFunctionAwaitOperand.json | 12 +- ...ntextuallyTypeAsyncFunctionReturnType.json | 36 +- .../contextuallyTypedBindingInitializer.json | 28 +- ...tuallyTypedBindingInitializerNegative.json | 24 +- ...pedClassExpressionMethodDeclaration01.json | 48 +- ...pedClassExpressionMethodDeclaration02.json | 48 +- ...nctionExpressionsAndReturnAnnotations.json | 8 +- .../tests/tsc/contextuallyTypedIife.json | 44 +- .../tsc/contextuallyTypedIifeStrict.json | 44 +- ...TypedObjectLiteralMethodDeclaration01.json | 48 +- .../tests/tsc/controlFlowAliasing.json | 276 +- .../controlFlowAliasingCatchVariables.json | 16 +- .../tsc/controlFlowAssignmentExpression.json | 20 +- .../tsc/controlFlowBinaryOrExpression.json | 12 +- .../tests/tsc/controlFlowBindingElement.json | 32 +- .../tsc/controlFlowComputedPropertyNames.json | 28 +- .../tests/tsc/controlFlowDeleteOperator.json | 44 +- .../controlFlowDestructuringDeclaration.json | 28 +- .../tsc/controlFlowDoWhileStatement.json | 4 +- .../tests/tsc/controlFlowElementAccess.json | 4 +- .../tests/tsc/controlFlowElementAccess2.json | 28 +- .../tsc/controlFlowElementAccessNoCrash1.json | 12 +- .../tests/tsc/controlFlowForOfStatement.json | 4 +- .../tests/tsc/controlFlowForStatement.json | 8 +- .../tests/tsc/controlFlowGenericTypes.json | 96 +- .../tests/tsc/controlFlowIIFE.json | 16 +- .../tests/tsc/controlFlowIfStatement.json | 16 +- .../tests/tsc/controlFlowInOperator.json | 4 +- .../controlFlowInstanceOfGuardPrimitives.json | 24 +- .../controlFlowInstanceofExtendsFunction.json | 40 +- .../tests/tsc/controlFlowIteration.json | 8 +- .../tests/tsc/controlFlowIterationErrors.json | 4 +- .../tsc/controlFlowIterationErrorsAsync.json | 8 +- .../tests/tsc/controlFlowNullishCoalesce.json | 4 +- .../tests/tsc/controlFlowOptionalChain.json | 1066 +- .../tests/tsc/controlFlowOptionalChain2.json | 48 +- .../tests/tsc/controlFlowParameter.json | 4 +- .../tests/tsc/controlFlowStringIndex.json | 20 +- .../tsc/controlFlowSuperPropertyAccess.json | 16 +- .../tests/tsc/controlFlowWhileStatement.json | 4 +- .../tsc/controlFlowWithTemplateLiterals.json | 12 +- ...IdentifierPredicatesWithPrivateName01.json | 4 +- .../tests/tsc/declarationEmitReadonly.json | 4 +- .../tsc/declarationEmitThisPredicates01.json | 4 +- .../tsc/declarationEmitThisPredicates02.json | 16 +- ...onEmitThisPredicatesWithPrivateName01.json | 4 +- ...onEmitThisPredicatesWithPrivateName02.json | 16 +- ...declarationEmitWorkWithInlineComments.json | 12 +- .../tests/tsc/declarationFiles.json | 100 +- .../tests/tsc/declarationsAndAssignments.json | 184 +- .../tsc/decoratedClassExportsCommonJS1.json | 16 +- .../tsc/decoratedClassExportsCommonJS2.json | 4 +- .../tsc/decoratedClassExportsSystem1.json | 16 +- .../tsc/decoratedClassExportsSystem2.json | 4 +- .../tests/tsc/decoratorMetadata.json | 8 +- .../decoratorMetadataWithTypeOnlyImport.json | 8 +- .../decoratorMetadataWithTypeOnlyImport2.json | 12 +- .../tests/tsc/decoratorOnClass9.json | 20 +- .../tsc/decoratorOnClassConstructor4.json | 4 +- .../tests/tsc/decoratorOnClassMethod11.json | 12 +- .../tests/tsc/decoratorOnClassMethod14.json | 8 +- .../tests/tsc/decoratorOnClassMethod15.json | 8 +- .../tests/tsc/decoratorOnClassMethod16.json | 8 +- .../tests/tsc/decoratorOnClassMethod18.json | 8 +- .../decrementOperatorWithAnyOtherType.json | 60 +- .../tsc/decrementOperatorWithEnumType.json | 4 +- ...OperatorWithEnumTypeInvalidOperations.json | 8 +- .../tsc/decrementOperatorWithNumberType.json | 52 +- ...eratorWithNumberTypeInvalidOperations.json | 48 +- ...entOperatorWithUnsupportedBooleanType.json | 96 +- ...mentOperatorWithUnsupportedStringType.json | 96 +- .../tsc/defaultExportsCannotMerge01.json | 16 +- .../tsc/defaultExportsCannotMerge02.json | 16 +- .../tsc/defaultExportsCannotMerge03.json | 16 +- ...ultPropertyAssignedClassWithPrototype.json | 28 +- .../tests/tsc/defineProperty.json | 64 +- .../tests/tsc/deleteChain.json | 136 +- .../tsc/deleteOperatorWithAnyOtherType.json | 52 +- .../tsc/deleteOperatorWithBooleanType.json | 36 +- .../tests/tsc/deleteOperatorWithEnumType.json | 4 +- .../tsc/deleteOperatorWithNumberType.json | 52 +- .../tsc/deleteOperatorWithStringType.json | 48 +- .../tsc/dependentDestructuredVariables.json | 284 +- ...structuredVariablesFromNestedPatterns.json | 32 +- ...rivedClassConstructorWithoutSuperCall.json | 24 +- ...assFunctionOverridesBaseClassAccessor.json | 12 +- .../derivedClassIncludesInheritedMembers.json | 68 +- .../tsc/derivedClassOverridesPrivates.json | 16 +- ...derivedClassOverridesProtectedMembers.json | 88 +- ...erivedClassOverridesProtectedMembers2.json | 128 +- ...erivedClassOverridesProtectedMembers3.json | 124 +- ...erivedClassOverridesProtectedMembers4.json | 12 +- .../derivedClassOverridesPublicMembers.json | 128 +- .../derivedClassOverridesWithoutSubtype.json | 16 +- .../tests/tsc/derivedClassTransitivity.json | 20 +- .../tests/tsc/derivedClassTransitivity2.json | 20 +- .../tests/tsc/derivedClassTransitivity3.json | 20 +- .../tests/tsc/derivedClassTransitivity4.json | 20 +- .../tests/tsc/derivedClassWithAny.json | 76 +- ...ateInstanceShadowingProtectedInstance.json | 32 +- ...rivateInstanceShadowingPublicInstance.json | 64 +- ...PrivateStaticShadowingProtectedStatic.json | 32 +- ...ithPrivateStaticShadowingPublicStatic.json | 64 +- ...erivedClassWithoutExplicitConstructor.json | 40 +- ...rivedClassWithoutExplicitConstructor2.json | 56 +- ...rivedClassWithoutExplicitConstructor3.json | 64 +- .../tests/tsc/derivedGenericClassWithAny.json | 52 +- ...sHiddenBaseCallViaSuperPropertyAccess.json | 44 +- ...erivedTypeDoesNotRequireExtendsClause.json | 16 +- .../tests/tsc/destructuringCatch.json | 20 +- .../tests/tsc/destructuringControlFlow.json | 20 +- .../tsc/destructuringEvaluationOrder.json | 8 +- .../tsc/destructuringInFunctionType.json | 16 +- ...jectAssignmentPatternWithNestedSpread.json | 16 +- ...ObjectBindingPatternAndAssignment1ES5.json | 32 +- ...ObjectBindingPatternAndAssignment1ES6.json | 32 +- ...ingObjectBindingPatternAndAssignment6.json | 4 +- ...ingObjectBindingPatternAndAssignment7.json | 20 +- ...ingObjectBindingPatternAndAssignment8.json | 28 +- ...tternAndAssignment9SiblingInitializer.json | 32 +- ...destructuringParameterDeclaration1ES5.json | 168 +- ...uringParameterDeclaration1ES5iterable.json | 168 +- ...destructuringParameterDeclaration1ES6.json | 172 +- ...destructuringParameterDeclaration3ES5.json | 12 +- ...uringParameterDeclaration3ES5iterable.json | 12 +- ...destructuringParameterDeclaration3ES6.json | 12 +- .../destructuringParameterDeclaration5.json | 88 +- .../destructuringParameterDeclaration8.json | 40 +- .../destructuringReassignsRightHandSide.json | 8 +- .../tests/tsc/destructuringSameNames.json | 148 +- .../tests/tsc/destructuringSpread.json | 36 +- .../destructuringVariableDeclaration1ES5.json | 108 +- ...turingVariableDeclaration1ES5iterable.json | 108 +- .../destructuringVariableDeclaration1ES6.json | 108 +- .../destructuringVariableDeclaration2.json | 48 +- .../destructuringWithLiteralInitializers.json | 124 +- .../tsc/discriminatedUnionInference.json | 16 +- .../tests/tsc/discriminatedUnionTypes1.json | 172 +- .../tests/tsc/discriminatedUnionTypes2.json | 144 +- .../tests/tsc/discriminatedUnionTypes3.json | 8 +- .../tests/tsc/doWhileBreakStatements.json | 56 +- .../tests/tsc/doWhileContinueStatements.json | 56 +- .../tests/tsc/duplicateExportAssignments.json | 4 +- .../tests/tsc/elementAccessChain.2.json | 16 +- .../tests/tsc/elementAccessChain.3.json | 56 +- .../tests/tsc/elementAccessChain.json | 76 +- .../tests/tsc/emitArrowFunctionES6.json | 12 +- .../tsc/emitArrowFunctionThisCapturing.json | 12 +- .../emitArrowFunctionThisCapturingES6.json | 12 +- ...emitArrowFunctionWhenUsingArguments14.json | 4 +- ...ArrowFunctionWhenUsingArguments14_ES6.json | 4 +- ...emitArrowFunctionWhenUsingArguments15.json | 4 +- ...ArrowFunctionWhenUsingArguments15_ES6.json | 4 +- ...emitArrowFunctionWhenUsingArguments16.json | 4 +- ...ArrowFunctionWhenUsingArguments16_ES6.json | 4 +- ...emitArrowFunctionWhenUsingArguments17.json | 8 +- ...ArrowFunctionWhenUsingArguments17_ES6.json | 8 +- ...emitArrowFunctionWhenUsingArguments18.json | 8 +- ...ArrowFunctionWhenUsingArguments18_ES6.json | 8 +- .../emitClassDeclarationOverloadInES6.json | 16 +- ...tClassDeclarationWithConstructorInES6.json | 48 +- ...tionWithExtensionAndTypeArgumentInES6.json | 12 +- ...mitClassDeclarationWithExtensionInES6.json | 36 +- ...ClassDeclarationWithGetterSetterInES6.json | 24 +- ...clarationWithLiteralPropertyNameInES6.json | 4 +- .../emitClassDeclarationWithMethodInES6.json | 32 +- ...onWithPropertyAccessInHeritageClause1.json | 8 +- ...eclarationWithPropertyAssignmentInES6.json | 40 +- ...tionWithStaticPropertyAssignmentInES6.json | 12 +- ...ClassDeclarationWithSuperMethodCall01.json | 12 +- ...tClassDeclarationWithThisKeywordInES6.json | 44 +- ...ationWithTypeArgumentAndOverloadInES6.json | 60 +- ...ClassDeclarationWithTypeArgumentInES6.json | 40 +- ...entiationAssignmentWithIndexingOnLHS4.json | 28 +- ...AssignmentWithPropertyAccessingOnLHS1.json | 44 +- ...emitDefaultParametersFunctionProperty.json | 16 +- ...tDefaultParametersFunctionPropertyES6.json | 16 +- .../tsc/emitDefaultParametersMethod.json | 28 +- .../tsc/emitDefaultParametersMethodES6.json | 28 +- .../emitRestParametersFunctionProperty.json | 4 +- ...emitRestParametersFunctionPropertyES6.json | 4 +- .../tests/tsc/emitRestParametersMethod.json | 24 +- .../tsc/emitRestParametersMethodES6.json | 24 +- .../tsc/emitStatementsBeforeSuperCall.json | 24 +- ...ementsBeforeSuperCallWithDefineFields.json | 24 +- ...r.asyncGenerators.classMethods.es2015.json | 52 +- ...r.asyncGenerators.classMethods.es2018.json | 52 +- ...tter.asyncGenerators.classMethods.es5.json | 52 +- ...enerators.objectLiteralMethods.es2015.json | 28 +- ...enerators.objectLiteralMethods.es2018.json | 28 +- ...ncGenerators.objectLiteralMethods.es5.json | 28 +- .../tests/tsc/emitter.forAwait.json | 16 +- .../emptyObjectBindingPatternParameter04.json | 12 +- ...iableDeclarationBindingPatterns01_ES5.json | 32 +- ...larationBindingPatterns01_ES5iterable.json | 32 +- ...iableDeclarationBindingPatterns01_ES6.json | 32 +- .../tests/tsc/enumAssignability.json | 12 +- .../tsc/enumAssignabilityInInheritance.json | 80 +- .../swc_ecma_parser/tests/tsc/enumBasics.json | 96 +- .../tests/tsc/enumClassification.json | 8 +- ...numConstantMemberWithTemplateLiterals.json | 8 +- ...erWithTemplateLiteralsEmitDeclaration.json | 4 +- .../enumIsNotASubtypeOfAnythingButNumber.json | 12 +- .../tests/tsc/enumLiteralTypes1.json | 204 +- .../tests/tsc/enumLiteralTypes2.json | 204 +- .../tests/tsc/enumLiteralTypes3.json | 208 +- .../tests/tsc/enumMergeWithExpando.json | 20 +- .../tests/tsc/enumMerging.json | 88 +- .../tests/tsc/enumMergingErrors.json | 12 +- crates/swc_ecma_parser/tests/tsc/enumTag.json | 56 +- .../tests/tsc/enumTagCircularReference.json | 4 +- .../tests/tsc/enumTagImported.json | 12 +- .../tests/tsc/enumTagOnExports.json | 12 +- .../tests/tsc/enumTagOnExports2.json | 4 +- crates/swc_ecma_parser/tests/tsc/enums.json | 28 +- .../tsc/equalityWithIntersectionTypes01.json | 12 +- .../tests/tsc/equalityWithUnionTypes01.json | 8 +- ...alityWithtNullishCoalescingAssignment.json | 8 +- .../tests/tsc/errorIsolation.json | 8 +- .../tests/tsc/errorOnFunctionReturnType.json | 20 +- .../tests/tsc/errorSuperPropertyAccess.json | 240 +- .../tests/tsc/es2016IntlAPIs.json | 28 +- .../tests/tsc/es2017DateAPIs.json | 4 +- .../tests/tsc/es2018IntlAPIs.json | 40 +- .../tests/tsc/es2020IntlAPIs.json | 212 +- .../tsc/es2021LocalesObjectArgument.json | 36 +- .../tests/tsc/es2022IntlAPIs.json | 16 +- .../tsc/es2022LocalesObjectArgument.json | 36 +- .../tests/tsc/es2022SharedMemory.json | 28 +- .../tests/tsc/es5DateAPIs.json | 4 +- .../tests/tsc/es6modulekind.json | 8 +- .../tsc/es6modulekindWithES2015Target.json | 8 +- .../tests/tsc/es6modulekindWithES5Target.json | 24 +- .../tsc/es6modulekindWithES5Target11.json | 20 +- .../tsc/es6modulekindWithES5Target2.json | 12 +- .../tsc/es6modulekindWithES5Target3.json | 12 +- ...-classDeclaration-accessors-nonStatic.json | 8 +- ...ors-classDeclaration-accessors-static.json | 8 +- ...orators-classDeclaration-classSuper.1.json | 12 +- ...orators-classDeclaration-classSuper.2.json | 12 +- ...orators-classDeclaration-classSuper.3.json | 64 +- ...orators-classDeclaration-classSuper.4.json | 36 +- ...orators-classDeclaration-classSuper.5.json | 172 +- ...orators-classDeclaration-classSuper.6.json | 72 +- ...orators-classDeclaration-classSuper.7.json | 36 +- ...assDeclaration-classThisReference.es5.json | 12 +- ...s-classDeclaration-classThisReference.json | 16 +- ...-classDeclaration-commentPreservation.json | 20 +- ...laration-commonjs-classNamespaceMerge.json | 8 +- ...sDecorators-classDeclaration-commonjs.json | 8 +- ...ors-classDeclaration-fields-nonStatic.json | 4 +- ...sDeclaration-fields-nonStaticAccessor.json | 4 +- ...rators-classDeclaration-fields-static.json | 4 +- ...lassDeclaration-fields-staticAccessor.json | 16 +- ...rs-classDeclaration-methods-nonStatic.json | 4 +- ...ators-classDeclaration-methods-static.json | 4 +- ...s-classDeclaration-outerThisReference.json | 12 +- ...-classDeclaration-parameterProperties.json | 8 +- ...Decorators-classDeclaration-sourceMap.json | 20 +- ...corators-classExpression-classSuper.1.json | 12 +- ...corators-classExpression-classSuper.2.json | 12 +- ...corators-classExpression-classSuper.3.json | 64 +- ...corators-classExpression-classSuper.4.json | 36 +- ...corators-classExpression-classSuper.5.json | 172 +- ...corators-classExpression-classSuper.6.json | 72 +- ...s-classExpression-commentPreservation.json | 20 +- ...-missingEmitHelpers-classDecorator.15.json | 4 +- ...n-missingEmitHelpers-classDecorator.6.json | 4 +- ...n-missingEmitHelpers-classDecorator.7.json | 4 +- ...ors-classExpression-namedEvaluation.1.json | 16 +- ...rs-classExpression-namedEvaluation.10.json | 48 +- ...rs-classExpression-namedEvaluation.11.json | 8 +- ...ors-classExpression-namedEvaluation.2.json | 36 +- ...ors-classExpression-namedEvaluation.3.json | 12 +- ...ors-classExpression-namedEvaluation.4.json | 20 +- ...ors-classExpression-namedEvaluation.5.json | 4 +- ...ors-classExpression-namedEvaluation.6.json | 12 +- ...ors-classExpression-namedEvaluation.7.json | 4 +- ...ors-classExpression-namedEvaluation.8.json | 4 +- ...ors-classExpression-namedEvaluation.9.json | 4 +- .../tsc/esDecorators-contextualTypes.2.json | 48 +- .../tsc/esDecorators-contextualTypes.json | 40 +- .../esDecorators-decoratorExpression.2.json | 100 +- .../esDecorators-emitDecoratorMetadata.json | 56 +- .../tests/tsc/esDecoratorsMetadata1.json | 24 +- .../tests/tsc/esDecoratorsMetadata2.json | 44 +- .../tests/tsc/esDecoratorsMetadata3.json | 24 +- .../tests/tsc/esDecoratorsMetadata4.json | 44 +- .../tests/tsc/esDecoratorsMetadata5.json | 4 +- .../tests/tsc/esnextmodulekind.json | 8 +- .../tsc/esnextmodulekindWithES2015Target.json | 8 +- .../tsc/esnextmodulekindWithES5Target.json | 24 +- .../tsc/esnextmodulekindWithES5Target11.json | 20 +- .../tsc/esnextmodulekindWithES5Target2.json | 12 +- .../tsc/esnextmodulekindWithES5Target3.json | 12 +- .../tests/tsc/everyTypeAssignableToAny.json | 4 +- ...everyTypeWithAnnotationAndInitializer.json | 48 +- ...peWithAnnotationAndInvalidInitializer.json | 56 +- .../tests/tsc/everyTypeWithInitializer.json | 36 +- .../tsc/exhaustiveSwitchStatements1.json | 192 +- .../tests/tsc/expandoOnAlias.json | 24 +- .../tsc/exponentiationOperatorWithEnum.json | 32 +- .../exponentiationOperatorWithEnumUnion.json | 32 +- ...nentiationOperatorWithInvalidOperands.json | 48 +- .../tests/tsc/exportAsNamespace1.json | 24 +- .../tests/tsc/exportAsNamespace2.json | 24 +- .../tests/tsc/exportAsNamespace3.json | 40 +- .../tests/tsc/exportAsNamespace4.json | 16 +- .../tests/tsc/exportAsNamespace5.json | 12 +- .../tests/tsc/exportAssignDottedName.json | 4 +- .../tsc/exportAssignImportedIdentifier.json | 4 +- .../tests/tsc/exportAssignTypes.json | 8 +- .../tsc/exportAssignmentCircularModules.json | 12 +- ...xportAssignmentConstrainedGenericType.json | 24 +- .../tsc/exportAssignmentGenericType.json | 8 +- .../tsc/exportAssignmentMergedInterface.json | 20 +- .../tsc/exportAssignmentMergedModule.json | 20 +- .../tsc/exportAssignmentTopLevelClodule.json | 8 +- .../tsc/exportAssignmentTopLevelEnumdule.json | 8 +- .../tsc/exportAssignmentTopLevelFundule.json | 4 +- .../exportAssignmentTopLevelIdentifier.json | 4 +- .../tests/tsc/exportCodeGen.json | 8 +- .../tests/tsc/exportDeclaredModule.json | 4 +- ...assWithStaticPropertyAssignmentsInES6.json | 4 +- .../tests/tsc/exportDefaultNamespace.json | 4 +- .../tests/tsc/exportImportAlias.json | 100 +- .../tests/tsc/exportNamespace10.json | 12 +- .../tests/tsc/exportNamespace11.json | 12 +- .../tests/tsc/exportNamespace12.json | 12 +- .../tests/tsc/exportNamespace3.json | 4 +- .../tests/tsc/exportNamespace4.json | 4 +- .../tests/tsc/exportNestedNamespaces.json | 52 +- .../tests/tsc/exportNestedNamespaces2.json | 36 +- .../tests/tsc/exportNonVisibleType.json | 16 +- ...xportPropertyAssignmentNameResolution.json | 8 +- ...rtTypeMergedWithExportStarAsNamespace.json | 20 +- .../tests/tsc/exportedAliasedEnumTag.json | 12 +- .../tests/tsc/exportedEnumTypeAndValue.json | 12 +- .../tests/tsc/exportsAndImports1-amd.json | 8 +- .../tests/tsc/exportsAndImports1-es6.json | 8 +- .../tests/tsc/exportsAndImports1.json | 8 +- .../tests/tsc/exportsAndImports3-amd.json | 8 +- .../tests/tsc/exportsAndImports3-es6.json | 8 +- .../tests/tsc/exportsAndImports3.json | 8 +- .../tests/tsc/exportsAndImports4-amd.json | 24 +- .../tests/tsc/exportsAndImports4-es6.json | 24 +- .../tests/tsc/exportsAndImports4.json | 24 +- ...ndImportsWithContextualKeywordNames02.json | 8 +- .../exportsAndImportsWithUnderscores4.json | 28 +- .../tests/tsc/extendBooleanInterface.json | 8 +- .../tests/tsc/extendNumberInterface.json | 8 +- .../tests/tsc/extendStringInterface.json | 8 +- .../tests/tsc/extendsTag2.json | 8 +- .../tests/tsc/extendsTag3.json | 8 +- .../tests/tsc/extendsTag4.json | 4 +- .../tests/tsc/extendsTag5.json | 4 +- .../tests/tsc/filterNamespace_import.json | 48 +- .../tests/tsc/fixSignatureCaching.json | 1172 +- .../tests/tsc/fluentClasses.json | 24 +- .../tests/tsc/fluentInterfaces.json | 12 +- .../tests/tsc/for-inStatements.json | 56 +- .../tsc/for-inStatementsArrayErrors.json | 4 +- .../tsc/for-inStatementsAsyncIdentifier.json | 8 +- .../tests/tsc/for-inStatementsInvalid.json | 44 +- .../swc_ecma_parser/tests/tsc/for-of12.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of13.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of14.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of15.json | 8 +- .../swc_ecma_parser/tests/tsc/for-of16.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of17.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of18.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of19.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of20.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of21.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of22.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of23.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of25.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of26.json | 8 +- .../swc_ecma_parser/tests/tsc/for-of27.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of28.json | 8 +- .../swc_ecma_parser/tests/tsc/for-of29.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of30.json | 20 +- .../swc_ecma_parser/tests/tsc/for-of31.json | 12 +- .../swc_ecma_parser/tests/tsc/for-of33.json | 4 +- .../swc_ecma_parser/tests/tsc/for-of34.json | 8 +- .../swc_ecma_parser/tests/tsc/for-of35.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of41.json | 20 +- .../swc_ecma_parser/tests/tsc/for-of42.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of43.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of47.json | 16 +- .../swc_ecma_parser/tests/tsc/for-of48.json | 12 +- .../swc_ecma_parser/tests/tsc/for-of58.json | 8 +- .../forAwaitPerIterationBindingDownlevel.json | 4 +- .../tests/tsc/forBreakStatements.json | 56 +- .../tests/tsc/forContinueStatements.json | 56 +- .../tests/tsc/forInBreakStatements.json | 56 +- .../tests/tsc/forInContinueStatements.json | 56 +- .../tests/tsc/forStatements.json | 48 +- .../tsc/forStatementsMultipleInvalidDecl.json | 36 +- .../tsc/forStatementsMultipleValidDecl.json | 40 +- .../tests/tsc/forgottenNew.json | 4 +- .../tsc/functionConstraintSatisfaction.json | 8 +- .../tsc/functionConstraintSatisfaction2.json | 8 +- .../tsc/functionConstraintSatisfaction3.json | 8 +- .../functionExpressionContextualTyping1.json | 24 +- .../tsc/functionImplementationErrors.json | 16 +- .../tests/tsc/functionImplementations.json | 28 +- .../tsc/functionLiteralForOverloads2.json | 24 +- .../tests/tsc/functionLiterals.json | 128 +- .../tests/tsc/functionOverloadErrors.json | 24 +- .../tests/tsc/generatedContextualTyping.json | 744 +- .../tests/tsc/generatorAssignability.json | 4 +- .../tests/tsc/generatorInAmbientContext5.json | 4 +- .../tests/tsc/generatorNoImplicitReturns.json | 4 +- .../tests/tsc/generatorOverloads4.json | 12 +- .../tsc/generatorReturnContextualType.json | 48 +- .../tsc/generatorReturnTypeInference.json | 12 +- ...generatorReturnTypeInferenceNonStrict.json | 12 +- .../tests/tsc/generatorTypeCheck17.json | 8 +- .../tests/tsc/generatorTypeCheck18.json | 8 +- .../tests/tsc/generatorTypeCheck19.json | 8 +- .../tests/tsc/generatorTypeCheck20.json | 8 +- .../tests/tsc/generatorTypeCheck21.json | 8 +- .../tests/tsc/generatorTypeCheck22.json | 12 +- .../tests/tsc/generatorTypeCheck23.json | 12 +- .../tests/tsc/generatorTypeCheck24.json | 12 +- .../tests/tsc/generatorTypeCheck25.json | 12 +- .../tests/tsc/generatorTypeCheck26.json | 12 +- .../tests/tsc/generatorTypeCheck27.json | 4 +- .../tests/tsc/generatorTypeCheck28.json | 8 +- .../tests/tsc/generatorTypeCheck29.json | 4 +- .../tests/tsc/generatorTypeCheck30.json | 4 +- .../tests/tsc/generatorTypeCheck31.json | 4 +- .../tests/tsc/generatorTypeCheck45.json | 4 +- .../tests/tsc/generatorTypeCheck46.json | 8 +- .../tests/tsc/generatorTypeCheck52.json | 8 +- .../tests/tsc/generatorTypeCheck53.json | 8 +- .../tests/tsc/generatorTypeCheck54.json | 8 +- .../tests/tsc/generatorTypeCheck59.json | 4 +- .../tests/tsc/generatorTypeCheck62.json | 4 +- .../tests/tsc/generatorTypeCheck63.json | 4 +- .../tsc/generatorYieldContextualType.json | 20 +- crates/swc_ecma_parser/tests/tsc/generic.json | 16 +- ...erloadedMethodWithOverloadedArguments.json | 24 +- .../tsc/genericCallTypeArgumentInference.json | 100 +- ...lWithConstraintsTypeArgumentInference.json | 120 +- ...ricCallWithConstructorTypedArguments5.json | 8 +- ...enericCallWithFunctionTypedArguments4.json | 8 +- ...enericCallWithFunctionTypedArguments5.json | 32 +- ...ricCallWithGenericSignatureArguments2.json | 24 +- ...ricCallWithGenericSignatureArguments3.json | 12 +- .../tsc/genericCallWithObjectLiteralArgs.json | 32 +- .../tsc/genericCallWithObjectTypeArgs.json | 12 +- .../tsc/genericCallWithObjectTypeArgs2.json | 48 +- ...cCallWithObjectTypeArgsAndConstraints.json | 16 +- ...CallWithObjectTypeArgsAndConstraints2.json | 24 +- ...CallWithObjectTypeArgsAndConstraints3.json | 36 +- ...CallWithObjectTypeArgsAndConstraints4.json | 20 +- ...CallWithObjectTypeArgsAndConstraints5.json | 12 +- .../tests/tsc/genericCallWithTupleType.json | 60 +- .../tsc/genericClassExpressionInFunction.json | 36 +- ...ClassWithFunctionTypedMemberArguments.json | 80 +- ...ClassWithObjectTypeArgsAndConstraints.json | 56 +- .../tests/tsc/genericContextualTypes1.json | 20 +- .../tests/tsc/genericContextualTypes2.json | 20 +- .../tests/tsc/genericContextualTypes3.json | 20 +- .../tests/tsc/genericFunctionParameters.json | 4 +- .../tests/tsc/genericObjectRest.json | 12 +- .../tests/tsc/genericRestParameters1.json | 16 +- .../tests/tsc/genericSetterInClassType.json | 28 +- .../tsc/genericSetterInClassTypeJsDoc.json | 16 +- .../tests/tsc/genericTypeAliases.json | 60 +- .../tsc/getSetAccessorContextualTyping.json | 32 +- ...ergeWithCommonJSAssignmentDeclaration.json | 12 +- .../tests/tsc/globalThisAmbientModules.json | 16 +- .../tsc/globalThisBlockscopedProperties.json | 20 +- .../tsc/globalThisPropertyAssignment.json | 12 +- .../tsc/globalThisReadonlyProperties.json | 12 +- .../tests/tsc/globalThisUnknown.json | 12 +- .../tsc/globalThisUnknownNoImplicitAny.json | 12 +- .../tests/tsc/globalThisVarDeclaration.json | 80 +- .../tests/tsc/heterogeneousArrayLiterals.json | 60 +- .../tests/tsc/ifDoWhileStatements.json | 72 +- ...AnInterfaceExtendingClassWithPrivates.json | 24 +- ...nInterfaceExtendingClassWithPrivates2.json | 96 +- ...InterfaceExtendingClassWithProtecteds.json | 40 +- .../tests/tsc/implementsClause.json | 12 +- .../tests/tsc/importAliasIdentifiers.json | 80 +- .../tests/tsc/importAliasModuleExports.json | 56 +- .../tests/tsc/importAssertion2.json | 28 +- .../tests/tsc/importAssertion3.json | 16 +- .../tests/tsc/importAttributes2.json | 28 +- .../tests/tsc/importAttributes3.json | 16 +- .../tests/tsc/importAttributes6.json | 36 +- .../tests/tsc/importAttributes8.json | 12 +- .../tsc/importCallExpression1ES2020.json | 8 +- .../tsc/importCallExpression2ES2020.json | 16 +- .../tsc/importCallExpression3ES2020.json | 12 +- .../tsc/importCallExpression4ES2020.json | 40 +- .../tsc/importCallExpression5ES2020.json | 4 +- .../tsc/importCallExpression6ES2020.json | 4 +- .../tsc/importCallExpressionAsyncES2020.json | 16 +- .../tsc/importCallExpressionAsyncES5AMD.json | 16 +- .../tsc/importCallExpressionAsyncES5CJS.json | 16 +- .../importCallExpressionAsyncES5System.json | 16 +- .../tsc/importCallExpressionAsyncES5UMD.json | 16 +- .../tsc/importCallExpressionAsyncES6AMD.json | 16 +- .../tsc/importCallExpressionAsyncES6CJS.json | 16 +- .../importCallExpressionAsyncES6System.json | 16 +- .../tsc/importCallExpressionAsyncES6UMD.json | 16 +- .../tests/tsc/importCallExpressionES5AMD.json | 16 +- .../tests/tsc/importCallExpressionES5CJS.json | 16 +- .../tsc/importCallExpressionES5System.json | 16 +- .../tests/tsc/importCallExpressionES5UMD.json | 16 +- .../tests/tsc/importCallExpressionES6AMD.json | 16 +- .../tests/tsc/importCallExpressionES6CJS.json | 16 +- .../tsc/importCallExpressionES6System.json | 16 +- .../tests/tsc/importCallExpressionES6UMD.json | 16 +- .../importCallExpressionErrorInES2015.json | 8 +- .../tests/tsc/importCallExpressionInAMD1.json | 8 +- .../tests/tsc/importCallExpressionInAMD2.json | 16 +- .../tests/tsc/importCallExpressionInAMD3.json | 12 +- .../tests/tsc/importCallExpressionInAMD4.json | 76 +- .../tests/tsc/importCallExpressionInCJS1.json | 8 +- .../tests/tsc/importCallExpressionInCJS2.json | 8 +- .../tests/tsc/importCallExpressionInCJS3.json | 16 +- .../tests/tsc/importCallExpressionInCJS4.json | 12 +- .../tests/tsc/importCallExpressionInCJS5.json | 76 +- .../tsc/importCallExpressionInSystem1.json | 8 +- .../tsc/importCallExpressionInSystem2.json | 16 +- .../tsc/importCallExpressionInSystem3.json | 12 +- .../tsc/importCallExpressionInSystem4.json | 76 +- .../tests/tsc/importCallExpressionInUMD1.json | 8 +- .../tests/tsc/importCallExpressionInUMD2.json | 16 +- .../tests/tsc/importCallExpressionInUMD3.json | 12 +- .../tests/tsc/importCallExpressionInUMD4.json | 76 +- .../tsc/importCallExpressionNestedAMD.json | 4 +- .../tsc/importCallExpressionNestedAMD2.json | 4 +- .../tsc/importCallExpressionNestedCJS.json | 4 +- .../tsc/importCallExpressionNestedCJS2.json | 4 +- .../tsc/importCallExpressionNestedES2015.json | 4 +- .../importCallExpressionNestedES20152.json | 4 +- .../tsc/importCallExpressionNestedES2020.json | 4 +- .../importCallExpressionNestedES20202.json | 4 +- .../tsc/importCallExpressionNestedSystem.json | 4 +- .../importCallExpressionNestedSystem2.json | 4 +- .../tsc/importCallExpressionNestedUMD.json | 4 +- .../tsc/importCallExpressionNestedUMD2.json | 4 +- ...rtCallExpressionNoModuleKindSpecified.json | 40 +- ...mportCallExpressionReturnPromiseOfAny.json | 8 +- ...importCallExpressionShouldNotGetParen.json | 8 +- ...ExpressionSpecifierNotStringTypeError.json | 8 +- .../tests/tsc/importClause_default.json | 8 +- .../tsc/importElisionConstEnumMerge1.json | 4 +- .../tests/tsc/importEquals2.json | 4 +- .../tests/tsc/importEqualsDeclaration.json | 12 +- .../tests/tsc/importImportOnlyModule.json | 8 +- .../tests/tsc/importNonExternalModule.json | 4 +- .../tests/tsc/importStatements.json | 44 +- .../tests/tsc/importStatementsInterfaces.json | 56 +- .../tests/tsc/importTsBeforeDTs.json | 8 +- .../tests/tsc/importTypeAmbient.json | 60 +- .../tests/tsc/importTypeAmbientMissing.json | 8 +- .../tests/tsc/importTypeAmdBundleRewrite.json | 8 +- .../tests/tsc/importTypeGenericTypes.json | 76 +- .../tests/tsc/importTypeInJSDoc.json | 32 +- .../tests/tsc/importTypeLocal.json | 60 +- .../tests/tsc/importTypeLocalMissing.json | 76 +- .../tests/tsc/importsImplicitlyReadonly.json | 24 +- .../tsc/importsNotUsedAsValues_error.json | 64 +- .../incrementOperatorWithAnyOtherType.json | 60 +- .../tsc/incrementOperatorWithEnumType.json | 8 +- .../tsc/incrementOperatorWithNumberType.json | 52 +- ...eratorWithNumberTypeInvalidOperations.json | 48 +- ...entOperatorWithUnsupportedBooleanType.json | 96 +- ...mentOperatorWithUnsupportedStringType.json | 96 +- .../tests/tsc/indexersInClassType.json | 12 +- .../tests/tsc/inferFromBindingPattern.json | 4 +- .../swc_ecma_parser/tests/tsc/inferThis.json | 16 +- .../inferringClassMembersFromAssignments.json | 252 +- ...inferringClassMembersFromAssignments2.json | 16 +- ...inferringClassMembersFromAssignments3.json | 16 +- ...inferringClassMembersFromAssignments4.json | 16 +- ...inferringClassMembersFromAssignments5.json | 24 +- ...inferringClassMembersFromAssignments6.json | 40 +- ...inferringClassMembersFromAssignments7.json | 40 +- ...inferringClassMembersFromAssignments8.json | 4 +- ...ringClassStaticMembersFromAssignments.json | 80 +- .../tests/tsc/initializationOrdering1.json | 28 +- ...itializerReferencingConstructorLocals.json | 64 +- ...lizerReferencingConstructorParameters.json | 64 +- .../innerTypeParameterShadowingOuterOne.json | 16 +- .../innerTypeParameterShadowingOuterOne2.json | 32 +- ...instanceMemberAssignsToClassPrototype.json | 40 +- .../tsc/instanceMemberInitialization.json | 28 +- ...nstanceMemberWithComputedPropertyName.json | 12 +- ...tancePropertiesInheritedIntoClassType.json | 88 +- .../tsc/instancePropertyInClassType.json | 80 +- ...eofOperatorWithInvalidOperands.es2015.json | 12 +- ...instanceofOperatorWithInvalidOperands.json | 4 +- ...ceofOperatorWithInvalidStaticToString.json | 12 +- ...ofOperatorWithRHSHasSymbolHasInstance.json | 80 +- ...icClassWithWrongNumberOfTypeArguments.json | 12 +- ...iateGenericClassWithZeroTypeArguments.json | 12 +- ...ntiateNonGenericTypeWithTypeArguments.json | 4 +- .../tests/tsc/instantiatedModule.json | 132 +- .../interfaceDoesNotDependOnBaseTypes.json | 8 +- .../tests/tsc/interfaceExtendingClass.json | 24 +- .../interfaceExtendingClassWithPrivates.json | 12 +- .../interfaceExtendingClassWithPrivates2.json | 24 +- ...interfaceExtendingClassWithProtecteds.json | 12 +- ...nterfaceExtendingClassWithProtecteds2.json | 24 +- .../interfaceExtendsObjectIntersection.json | 48 +- ...erfaceExtendsObjectIntersectionErrors.json | 20 +- .../tsc/interfaceWithPropertyOfEveryType.json | 68 +- ...ceWithPropertyThatIsPrivateInBaseType.json | 8 +- ...eWithPropertyThatIsPrivateInBaseType2.json | 8 +- .../tsc/intersectionAsWeakTypeSource.json | 24 +- ...onIncludingPropFromGlobalAugmentation.json | 8 +- ...rsectionMemberOfUnionNarrowsCorrectly.json | 4 +- .../tsc/intersectionOfUnionNarrowing.json | 20 +- .../tsc/intersectionOfUnionOfUnitTypes.json | 360 +- .../tests/tsc/intersectionReduction.json | 44 +- .../tsc/intersectionReductionStrict.json | 20 +- .../tests/tsc/intersectionThisTypes.json | 56 +- .../tests/tsc/intersectionTypeInference.json | 24 +- .../tests/tsc/intersectionTypeInference3.json | 16 +- .../tests/tsc/intersectionTypeMembers.json | 108 +- .../tests/tsc/intersectionTypeReadonly.json | 20 +- .../tsc/intersectionWithIndexSignatures.json | 12 +- .../tsc/intersectionsAndEmptyObjects.json | 8 +- .../tsc/intlDateTimeFormatRangeES2021.json | 16 +- .../tests/tsc/intlNumberFormatES2020.json | 92 +- .../tests/tsc/intlNumberFormatES2023.json | 144 +- .../tsc/intlNumberFormatES5UseGrouping.json | 32 +- .../tests/tsc/intraExpressionInferences.json | 388 +- .../tests/tsc/intrinsicKeyword.json | 8 +- .../tests/tsc/invalidAssignmentsToVoid.json | 4 +- .../tests/tsc/invalidBooleanAssignments.json | 4 +- .../tests/tsc/invalidEnumAssignments.json | 8 +- .../tsc/invalidImportAliasIdentifiers.json | 4 +- .../tests/tsc/invalidInstantiatedModule.json | 16 +- .../invalidMultipleVariableDeclarations.json | 36 +- .../tests/tsc/invalidNestedModules.json | 20 +- .../tests/tsc/invalidNumberAssignments.json | 4 +- .../tests/tsc/invalidReturnStatements.json | 16 +- .../tests/tsc/invalidStringAssignments.json | 4 +- .../tsc/invalidUndefinedAssignments.json | 8 +- .../tests/tsc/invalidUndefinedValues.json | 12 +- .../tests/tsc/invalidVoidAssignments.json | 12 +- .../tests/tsc/invalidVoidValues.json | 12 +- .../tsc/isomorphicMappedTypeInference.json | 192 +- .../tests/tsc/iterableArrayPattern1.json | 16 +- .../tests/tsc/iterableArrayPattern10.json | 24 +- .../tests/tsc/iterableArrayPattern11.json | 24 +- .../tests/tsc/iterableArrayPattern12.json | 24 +- .../tests/tsc/iterableArrayPattern13.json | 24 +- .../tests/tsc/iterableArrayPattern14.json | 24 +- .../tests/tsc/iterableArrayPattern15.json | 24 +- .../tests/tsc/iterableArrayPattern16.json | 40 +- .../tests/tsc/iterableArrayPattern17.json | 24 +- .../tests/tsc/iterableArrayPattern18.json | 24 +- .../tests/tsc/iterableArrayPattern19.json | 24 +- .../tests/tsc/iterableArrayPattern2.json | 16 +- .../tests/tsc/iterableArrayPattern20.json | 24 +- .../tests/tsc/iterableArrayPattern3.json | 24 +- .../tests/tsc/iterableArrayPattern4.json | 24 +- .../tests/tsc/iterableArrayPattern5.json | 24 +- .../tests/tsc/iterableArrayPattern6.json | 24 +- .../tests/tsc/iterableArrayPattern7.json | 24 +- .../tests/tsc/iterableArrayPattern8.json | 24 +- .../tests/tsc/iterableArrayPattern9.json | 24 +- .../tests/tsc/iterableContextualTyping1.json | 4 +- .../tests/tsc/iteratorSpreadInArray.json | 16 +- .../tests/tsc/iteratorSpreadInArray10.json | 4 +- .../tests/tsc/iteratorSpreadInArray2.json | 32 +- .../tests/tsc/iteratorSpreadInArray3.json | 16 +- .../tests/tsc/iteratorSpreadInArray4.json | 16 +- .../tests/tsc/iteratorSpreadInArray5.json | 16 +- .../tests/tsc/iteratorSpreadInArray6.json | 20 +- .../tests/tsc/iteratorSpreadInArray7.json | 20 +- .../tests/tsc/iteratorSpreadInArray8.json | 12 +- .../tests/tsc/iteratorSpreadInArray9.json | 12 +- .../tests/tsc/iteratorSpreadInCall.json | 16 +- .../tests/tsc/iteratorSpreadInCall10.json | 16 +- .../tests/tsc/iteratorSpreadInCall11.json | 16 +- .../tests/tsc/iteratorSpreadInCall12.json | 36 +- .../tests/tsc/iteratorSpreadInCall2.json | 16 +- .../tests/tsc/iteratorSpreadInCall3.json | 16 +- .../tests/tsc/iteratorSpreadInCall4.json | 16 +- .../tests/tsc/iteratorSpreadInCall5.json | 32 +- .../tests/tsc/iteratorSpreadInCall6.json | 32 +- .../tests/tsc/iteratorSpreadInCall7.json | 32 +- .../tests/tsc/iteratorSpreadInCall8.json | 36 +- .../tests/tsc/iteratorSpreadInCall9.json | 36 +- .../tsc/jsContainerMergeJsContainer.json | 12 +- .../tsc/jsContainerMergeTsDeclaration.json | 4 +- .../tsc/jsContainerMergeTsDeclaration2.json | 8 +- .../tsc/jsContainerMergeTsDeclaration3.json | 4 +- .../tsc/jsDeclarationsClassAccessor.json | 32 +- .../jsDeclarationsClassExtendsVisibility.json | 24 +- ...sClassImplementsGenericsSerialization.json | 4 +- .../jsDeclarationsClassLeadingOptional.json | 4 +- .../tsc/jsDeclarationsClassLikeHeuristic.json | 8 +- .../tests/tsc/jsDeclarationsClassMethod.json | 32 +- .../tests/tsc/jsDeclarationsClassStatic.json | 32 +- .../tests/tsc/jsDeclarationsClassStatic2.json | 12 +- ...arationsClassStaticMethodAugmentation.json | 12 +- .../tests/tsc/jsDeclarationsClasses.json | 136 +- .../tests/tsc/jsDeclarationsClassesErr.json | 8 +- .../jsDeclarationsCommonjsRelativePath.json | 12 +- .../tsc/jsDeclarationsComputedNames.json | 20 +- ...tionsConstsAsNamespacesWithReferences.json | 12 +- .../tsc/jsDeclarationsCrossfileMerge.json | 16 +- .../tests/tsc/jsDeclarationsDefault.json | 8 +- .../tests/tsc/jsDeclarationsDefaultsErr.json | 8 +- .../jsDeclarationsDocCommentsOnConsts.json | 4 +- .../tests/tsc/jsDeclarationsEnumTag.json | 40 +- ...arationsExportAssignedClassExpression.json | 12 +- ...xportAssignedClassExpressionAnonymous.json | 12 +- ...signedClassExpressionAnonymousWithSub.json | 32 +- ...xportAssignedClassExpressionShadowing.json | 28 +- ...larationsExportAssignedClassInstance1.json | 4 +- ...larationsExportAssignedClassInstance2.json | 12 +- ...larationsExportAssignedClassInstance3.json | 20 +- ...ionsExportAssignedConstructorFunction.json | 28 +- ...ortAssignedConstructorFunctionWithSub.json | 36 +- ...sDeclarationsExportAssignedVisibility.json | 24 +- ...portAssignmentExpressionPlusSecondary.json | 36 +- ...ationsExportAssignmentWithKeywordName.json | 16 +- ...sDeclarationsExportDefinePropertyEmit.json | 204 +- ...ationsExportDoubleAssignmentInClosure.json | 8 +- .../tests/tsc/jsDeclarationsExportForms.json | 24 +- .../jsDeclarationsExportSubAssignments.json | 20 +- .../jsDeclarationsExportedClassAliases.json | 12 +- ...onsFunctionClassesCjsExportAssignment.json | 36 +- .../tsc/jsDeclarationsFunctionJSDoc.json | 12 +- .../jsDeclarationsFunctionKeywordProp.json | 20 +- ...arationsFunctionKeywordPropExhaustive.json | 312 +- .../jsDeclarationsFunctionLikeClasses.json | 20 +- .../jsDeclarationsFunctionLikeClasses2.json | 116 +- ...jsDeclarationsFunctionPrototypeStatic.json | 20 +- ...ionsFunctionWithDefaultAssignedMember.json | 12 +- .../tests/tsc/jsDeclarationsFunctions.json | 28 +- .../tests/tsc/jsDeclarationsFunctionsCjs.json | 172 +- .../tests/tsc/jsDeclarationsGetterSetter.json | 152 +- ...sImportAliasExposedWithinNamespaceCjs.json | 8 +- .../tsc/jsDeclarationsImportTypeBundled.json | 16 +- .../jsDeclarationsJSDocRedirectedLookups.json | 8 +- .../tests/tsc/jsDeclarationsNestedParams.json | 8 +- ...onsParameterTagReusesInputNodeInEmit1.json | 12 +- ...onsParameterTagReusesInputNodeInEmit2.json | 12 +- .../tsc/jsDeclarationsPrivateFields01.json | 8 +- ...rationsReexportAliasesEsModuleInterop.json | 4 +- .../tsc/jsDeclarationsReexportedCjsAlias.json | 16 +- ...ionsReferenceToClassInstanceCrossFile.json | 48 +- ...nsRestArgsWithThisTypeInJSDocFunction.json | 4 +- ...arationsReusesExistingTypeAnnotations.json | 112 +- ...lassWithExplicitNoArgumentConstructor.json | 8 +- .../tests/tsc/jsDeclarationsThisTypes.json | 8 +- .../tests/tsc/jsDeclarationsTypeAliases.json | 16 +- ...ationsTypeReassignmentFromDeclaration.json | 4 +- ...tionsTypeReassignmentFromDeclaration2.json | 4 +- .../tsc/jsDeclarationsTypeReferences.json | 8 +- .../tsc/jsDeclarationsTypeReferences2.json | 16 +- .../tsc/jsDeclarationsTypeReferences3.json | 28 +- .../tsc/jsDeclarationsTypeReferences4.json | 4 +- .../jsDeclarationsTypedefAndImportTypes.json | 36 +- .../jsDeclarationsTypedefAndLatebound.json | 16 +- ...onsTypedefPropertyAndExportAssignment.json | 36 +- .../tests/tsc/jsObjectsMarkedAsOpenEnded.json | 72 +- .../tests/tsc/jsdocAccessibilityTags.json | 128 +- .../jsdocAccessibilityTagsDeclarations.json | 68 +- .../tests/tsc/jsdocAugmentsMissingType.json | 16 +- .../tests/tsc/jsdocAugments_noExtends.json | 16 +- .../tsc/jsdocAugments_withTypeParameter.json | 12 +- .../jsdocCatchClauseWithTypeAnnotation.json | 56 +- ...jsdocConstructorFunctionTypeReference.json | 16 +- .../tests/tsc/jsdocFunctionType.json | 32 +- .../tests/tsc/jsdocImplements_class.json | 48 +- .../tests/tsc/jsdocImplements_interface.json | 8 +- .../jsdocImplements_interface_multiple.json | 12 +- .../tsc/jsdocImplements_missingType.json | 8 +- .../jsdocImplements_namespacedInterface.json | 8 +- .../tests/tsc/jsdocImplements_properties.json | 20 +- .../tests/tsc/jsdocImportType.json | 20 +- .../tests/tsc/jsdocImportType2.json | 20 +- .../jsdocImportTypeReferenceToClassAlias.json | 16 +- ...ocImportTypeReferenceToCommonjsModule.json | 4 +- .../jsdocImportTypeReferenceToESModule.json | 4 +- .../tests/tsc/jsdocIndexSignature.json | 8 +- .../tests/tsc/jsdocLinkTag6.json | 8 +- .../tests/tsc/jsdocLinkTag7.json | 8 +- .../tests/tsc/jsdocOuterTypeParameters1.json | 12 +- .../tests/tsc/jsdocOuterTypeParameters2.json | 12 +- .../tests/tsc/jsdocOuterTypeParameters3.json | 16 +- .../tests/tsc/jsdocOverrideTag1.json | 28 +- .../tests/tsc/jsdocParamTag2.json | 4 +- .../tests/tsc/jsdocParamTagTypeLiteral.json | 76 +- .../jsdocParseDotDotDotInJSDocFunction.json | 4 +- ...jsdocParseParenthesizedJSDocParameter.json | 4 +- .../jsdocPrototypePropertyAccessWithType.json | 16 +- .../tests/tsc/jsdocReadonly.json | 28 +- .../tests/tsc/jsdocReadonlyDeclarations.json | 28 +- .../tests/tsc/jsdocTemplateClass.json | 20 +- .../tsc/jsdocTemplateConstructorFunction.json | 36 +- .../jsdocTemplateConstructorFunction2.json | 48 +- .../tests/tsc/jsdocTemplateTag.json | 8 +- .../tests/tsc/jsdocTemplateTag2.json | 4 +- .../tests/tsc/jsdocTemplateTag3.json | 56 +- .../tests/tsc/jsdocTemplateTag4.json | 56 +- .../tests/tsc/jsdocTemplateTag5.json | 56 +- .../tests/tsc/jsdocTemplateTag6.json | 120 +- .../tests/tsc/jsdocTemplateTag8.json | 24 +- .../tsc/jsdocTemplateTagNameResolution.json | 4 +- .../tests/tsc/jsdocThisType.json | 24 +- .../tsc/jsdocTypeFromChainedAssignment.json | 64 +- .../tsc/jsdocTypeFromChainedAssignment2.json | 40 +- .../tsc/jsdocTypeFromChainedAssignment3.json | 396 +- .../tests/tsc/jsdocTypeReferenceExports.json | 4 +- .../tests/tsc/jsdocTypeReferenceToImport.json | 32 +- ...ypeReferenceToImportOfClassExpression.json | 20 +- ...ReferenceToImportOfFunctionExpression.json | 16 +- .../tsc/jsdocTypeReferenceToMergedClass.json | 20 +- .../tests/tsc/jsdocTypeTagCast.json | 32 +- .../tests/tsc/keyofAndIndexedAccess.json | 528 +- .../tests/tsc/keyofAndIndexedAccess2.json | 52 +- .../tsc/keyofAndIndexedAccessErrors.json | 40 +- ...keyofInferenceLowerPriorityThanReturn.json | 24 +- ...ateBoundAssignmentDeclarationSupport1.json | 8 +- ...ateBoundAssignmentDeclarationSupport2.json | 20 +- ...ateBoundAssignmentDeclarationSupport3.json | 36 +- ...ateBoundAssignmentDeclarationSupport4.json | 32 +- ...ateBoundAssignmentDeclarationSupport5.json | 28 +- ...ateBoundAssignmentDeclarationSupport6.json | 56 +- ...ateBoundAssignmentDeclarationSupport7.json | 28 +- .../tsc/lateBoundClassMemberAssignmentJS.json | 8 +- .../lateBoundClassMemberAssignmentJS2.json | 8 +- .../lateBoundClassMemberAssignmentJS3.json | 8 +- .../tsc/leaveOptionalParameterAsWritten.json | 24 +- .../tests/tsc/libReferenceNoLib.json | 4 +- .../tests/tsc/libReferenceNoLibBundle.json | 4 +- .../tests/tsc/library-reference-1.json | 4 +- .../tests/tsc/library-reference-14.json | 4 +- .../tests/tsc/library-reference-15.json | 8 +- .../tests/tsc/library-reference-3.json | 4 +- .../tests/tsc/library-reference-6.json | 4 +- .../tests/tsc/library-reference-7.json | 4 +- .../tests/tsc/library-reference-8.json | 8 +- .../tests/tsc/literalTypeWidening.json | 28 +- .../tests/tsc/literalTypes2.json | 208 +- .../tsc/literalTypesAndDestructuring.json | 32 +- .../tsc/literalTypesAndTypeAssertions.json | 28 +- .../literalTypesWidenInParameterPosition.json | 16 +- .../tests/tsc/localTypes1.json | 104 +- .../tests/tsc/localTypes2.json | 44 +- .../tests/tsc/localTypes3.json | 44 +- .../tests/tsc/localTypes4.json | 12 +- .../tests/tsc/localTypes5.json | 8 +- .../tests/tsc/localesObjectArgument.json | 240 +- .../tests/tsc/logicalAssignment11.json | 8 +- .../tests/tsc/logicalAssignment2.json | 132 +- .../tests/tsc/logicalAssignment3.json | 24 +- .../tests/tsc/logicalAssignment4.json | 48 +- .../tests/tsc/logicalAssignment5.json | 12 +- .../tests/tsc/logicalAssignment6.json | 12 +- .../tests/tsc/logicalAssignment7.json | 12 +- .../tests/tsc/logicalAssignment8.json | 24 +- .../tests/tsc/logicalAssignment9.json | 8 +- .../logicalNotOperatorWithAnyOtherType.json | 44 +- .../logicalNotOperatorWithBooleanType.json | 36 +- .../tsc/logicalNotOperatorWithEnumType.json | 12 +- .../tsc/logicalNotOperatorWithNumberType.json | 52 +- .../tsc/logicalNotOperatorWithStringType.json | 48 +- ...ogicalOrExpressionIsContextuallyTyped.json | 16 +- ...calOrExpressionIsNotContextuallyTyped.json | 4 +- .../logicalOrOperatorWithTypeParameters.json | 4 +- .../tests/tsc/looseThisTypeInFunctions.json | 120 +- .../tests/tsc/malformedTags.json | 4 +- .../tests/tsc/mappedTypeAsClauses.json | 4 +- .../tests/tsc/mappedTypeConstraints.json | 36 +- .../tests/tsc/mappedTypeConstraints2.json | 4 +- .../tests/tsc/mappedTypeErrors.json | 240 +- .../tests/tsc/mappedTypeInferenceErrors.json | 28 +- .../tests/tsc/mappedTypeModifiers.json | 36 +- .../mappedTypeOverlappingStringEnumKeys.json | 48 +- .../tests/tsc/mappedTypeRelationships.json | 12 +- .../tests/tsc/mappedTypeWithAny.json | 4 +- .../tests/tsc/mappedTypes2.json | 56 +- .../tests/tsc/mappedTypes3.json | 36 +- .../tests/tsc/mappedTypes4.json | 4 +- .../tests/tsc/mappedTypes5.json | 16 +- .../tests/tsc/mappedTypes6.json | 136 +- .../tests/tsc/mappedTypesAndObjects.json | 4 +- .../tests/tsc/mappedTypesArraysTuples.json | 8 +- .../tests/tsc/mappedTypesGenericTuples2.json | 12 +- ...nctionOverloadMixingStaticAndInstance.json | 32 +- .../memberFunctionsWithPrivateOverloads.json | 128 +- .../memberFunctionsWithPublicOverloads.json | 112 +- ...erFunctionsWithPublicPrivateOverloads.json | 172 +- .../tests/tsc/mergeThreeInterfaces.json | 48 +- .../tests/tsc/mergeThreeInterfaces2.json | 52 +- .../tests/tsc/mergeTwoInterfaces.json | 32 +- .../tests/tsc/mergeTwoInterfaces2.json | 32 +- .../tests/tsc/mergedClassInterface.json | 20 +- .../tsc/mergedInheritedClassInterface.json | 72 +- ...edInheritedMembersSatisfyAbstractBase.json | 8 +- ...mergedInterfacesWithInheritedPrivates.json | 32 +- ...ergedInterfacesWithInheritedPrivates2.json | 40 +- ...ergedInterfacesWithInheritedPrivates3.json | 24 +- .../mergedInterfacesWithMultipleBases.json | 52 +- .../mergedInterfacesWithMultipleBases2.json | 84 +- .../mergedInterfacesWithMultipleBases3.json | 40 +- .../mergedInterfacesWithMultipleBases4.json | 40 +- .../tests/tsc/mergedWithLocalValue.json | 4 +- .../tsc/methodSignaturesWithOverloads2.json | 32 +- .../tests/tsc/methodsReturningThis.json | 84 +- .../tests/tsc/missingAndExcessProperties.json | 80 +- ...rtyElementAccessAssignmentDeclaration.json | 4 +- .../tests/tsc/mixinAbstractClasses.json | 32 +- ...xinAbstractClassesReturnTypeInference.json | 16 +- .../tests/tsc/mixinAccessModifiers.json | 224 +- .../tests/tsc/mixinClassesAnnotated.json | 76 +- .../tests/tsc/mixinClassesAnonymous.json | 80 +- .../tests/tsc/mixinClassesMembers.json | 168 +- ...ierOnClassDeclarationMemberInFunction.json | 12 +- ...fierOnClassExpressionMemberInFunction.json | 12 +- .../tests/tsc/moduleExportAlias.json | 244 +- .../tests/tsc/moduleExportAlias2.json | 16 +- .../tests/tsc/moduleExportAlias3.json | 4 +- .../tests/tsc/moduleExportAlias4.json | 12 +- .../tests/tsc/moduleExportAlias5.json | 12 +- .../tests/tsc/moduleExportAliasExports.json | 12 +- .../tests/tsc/moduleExportAliasImported.json | 8 +- .../tests/tsc/moduleExportAliasUnknown.json | 12 +- .../tests/tsc/moduleExportAssignment.json | 52 +- .../tests/tsc/moduleExportAssignment2.json | 16 +- .../tests/tsc/moduleExportAssignment3.json | 8 +- .../tests/tsc/moduleExportAssignment4.json | 16 +- .../tests/tsc/moduleExportAssignment5.json | 24 +- .../tests/tsc/moduleExportAssignment6.json | 28 +- .../tests/tsc/moduleExportAssignment7.json | 72 +- .../tests/tsc/moduleExportDuplicateAlias.json | 16 +- .../tsc/moduleExportDuplicateAlias2.json | 32 +- .../tsc/moduleExportDuplicateAlias3.json | 36 +- .../tsc/moduleExportNestedNamespaces.json | 64 +- ...moduleExportPropertyAssignmentDefault.json | 12 +- ...uleExportWithExportPropertyAssignment.json | 16 +- ...leExportWithExportPropertyAssignment2.json | 20 +- ...leExportWithExportPropertyAssignment3.json | 72 +- ...leExportWithExportPropertyAssignment4.json | 76 +- .../tests/tsc/moduleExportsAliasLoop1.json | 12 +- .../tests/tsc/moduleExportsAliasLoop2.json | 16 +- .../moduleExportsElementAccessAssignment.json | 56 +- ...moduleExportsElementAccessAssignment2.json | 8 +- .../moduleResolutionWithoutExtension5.json | 4 +- .../moduleResolutionWithoutExtension8.json | 4 +- .../tests/tsc/moduleScoping.json | 12 +- .../tsc/moduleWithStatementsOfEveryKind.json | 72 +- .../tests/tsc/multipleDeclarations.json | 104 +- .../tests/tsc/multipleExportDefault1.json | 4 +- .../tests/tsc/multipleExportDefault2.json | 4 +- .../tests/tsc/multipleExportDefault3.json | 4 +- .../tests/tsc/multipleExportDefault4.json | 4 +- .../tests/tsc/multipleExportDefault6.json | 8 +- .../tests/tsc/multipleStringIndexers.json | 4 +- .../tests/tsc/nameCollision.json | 4 +- .../tests/tsc/nameDelimitedBySlashes.json | 4 +- .../tests/tsc/nameWithFileExtension.json | 4 +- .../tests/tsc/nameWithRelativePaths.json | 16 +- .../namespaceAssignmentToRequireAlias.json | 16 +- .../tests/tsc/namespaceImportTypeQuery.json | 24 +- .../tests/tsc/namespaceImportTypeQuery2.json | 8 +- .../tests/tsc/namespaceImportTypeQuery3.json | 8 +- .../tests/tsc/namespaceImportTypeQuery4.json | 8 +- .../tests/tsc/namespaceMemberAccess.json | 8 +- .../narrowExceptionVariableInCatchClause.json | 16 +- .../tsc/narrowFromAnyWithInstanceof.json | 24 +- .../tsc/narrowFromAnyWithTypePredicate.json | 28 +- .../tsc/narrowingConstrainedTypeVariable.json | 4 +- .../narrowingGenericTypeFromInstanceof01.json | 4 +- .../tsc/negateOperatorWithBooleanType.json | 36 +- .../tests/tsc/negateOperatorWithEnumType.json | 4 +- .../tsc/negateOperatorWithNumberType.json | 52 +- .../tsc/negateOperatorWithStringType.json | 48 +- .../tsc/nestedDestructuringOfRequire.json | 16 +- .../tests/tsc/nestedModules.json | 40 +- .../tests/tsc/nestedNamespace.json | 8 +- .../tests/tsc/nestedPrototypeAssignment.json | 16 +- .../tests/tsc/neverInference.json | 8 +- .../tests/tsc/neverReturningFunctions1.json | 188 +- .../swc_ecma_parser/tests/tsc/neverType.json | 16 +- .../tests/tsc/neverTypeErrors1.json | 4 +- .../tests/tsc/neverTypeErrors2.json | 4 +- .../tests/tsc/newOperatorConformance.json | 8 +- .../tests/tsc/newTarget.es5.json | 20 +- .../tests/tsc/newTarget.es6.json | 20 +- .../tests/tsc/newTargetNarrowing.json | 12 +- .../tests/tsc/newWithSpread.json | 52 +- .../tests/tsc/newWithSpreadES5.json | 52 +- .../tests/tsc/newWithSpreadES6.json | 52 +- crates/swc_ecma_parser/tests/tsc/noInfer.json | 72 +- .../noPropertyAccessFromIndexSignature1.json | 24 +- .../tests/tsc/noUncheckedIndexedAccess.json | 44 +- ...noUncheckedIndexedAccessDestructuring.json | 76 +- .../tsc/nodeModulesAllowJsCjsFromJs.json | 8 +- .../tests/tsc/nodeModulesAtTypesPriority.json | 8 +- .../tests/tsc/nonInstantiatedModule.json | 36 +- .../tests/tsc/nonIterableRestElement3.json | 4 +- .../tests/tsc/nonPrimitiveAccessProperty.json | 8 +- .../tests/tsc/nonPrimitiveAndEmptyObject.json | 4 +- .../tsc/nonPrimitiveAndTypeVariables.json | 8 +- .../tests/tsc/nonPrimitiveAsProperty.json | 12 +- .../tests/tsc/nonPrimitiveAssignError.json | 4 +- .../tests/tsc/nonPrimitiveNarrow.json | 20 +- .../tsc/nonPrimitiveUnionIntersection.json | 8 +- .../tests/tsc/nullAssignableToEveryType.json | 4 +- ...nullIsSubtypeOfEverythingButUndefined.json | 28 +- .../tests/tsc/nullPropertyName.json | 312 +- .../tests/tsc/nullishCoalescingOperator1.json | 16 +- .../tsc/nullishCoalescingOperator11.json | 4 +- .../tsc/nullishCoalescingOperator12.json | 8 +- .../tests/tsc/nullishCoalescingOperator4.json | 8 +- .../tests/tsc/nullishCoalescingOperator8.json | 20 +- .../tests/tsc/nullishCoalescingOperator9.json | 8 +- ...ishCoalescingOperatorInAsyncGenerator.json | 4 +- .../tests/tsc/numberPropertyAccess.json | 8 +- ...IndexerConstrainsPropertyDeclarations.json | 72 +- ...ndexerConstrainsPropertyDeclarations2.json | 8 +- .../tests/tsc/numericLiteralTypes1.json | 32 +- .../tests/tsc/numericLiteralTypes2.json | 32 +- ...ectBindingPatternKeywordIdentifiers05.json | 4 +- ...ectBindingPatternKeywordIdentifiers06.json | 8 +- .../tsc/objectLiteralContextualTyping.json | 24 +- .../tests/tsc/objectLiteralNormalization.json | 224 +- .../tsc/objectLiteralShorthandProperties.json | 12 +- .../objectLiteralShorthandPropertiesES6.json | 12 +- ...alShorthandPropertiesFunctionArgument.json | 8 +- ...tLiteralShorthandPropertiesWithModule.json | 4 +- ...teralShorthandPropertiesWithModuleES6.json | 4 +- .../tests/tsc/objectLiteralWidened.json | 48 +- .../swc_ecma_parser/tests/tsc/objectRest.json | 108 +- .../tests/tsc/objectRest2.json | 8 +- .../tests/tsc/objectRestAssignment.json | 24 +- .../tests/tsc/objectRestForOf.json | 20 +- .../tests/tsc/objectRestNegative.json | 8 +- .../tests/tsc/objectRestParameter.json | 56 +- .../tests/tsc/objectRestParameterES5.json | 56 +- .../tsc/objectRestPropertyMustBeLast.json | 16 +- .../tests/tsc/objectRestReadonly.json | 16 +- .../tests/tsc/objectSpread.json | 276 +- .../tests/tsc/objectSpreadIndexSignature.json | 8 +- .../tests/tsc/objectSpreadNoTransform.json | 12 +- .../tsc/objectSpreadRepeatedComplexity.json | 148 +- .../objectSpreadRepeatedNullCheckPerf.json | 428 +- .../tsc/objectSpreadSetonlyAccessor.json | 16 +- .../tests/tsc/objectSpreadStrictNull.json | 12 +- ...jectTypeHidingMembersOfExtendedObject.json | 52 +- .../tsc/objectTypeHidingMembersOfObject.json | 24 +- ...HidingMembersOfObjectAssignmentCompat.json | 8 +- ...idingMembersOfObjectAssignmentCompat2.json | 8 +- .../tests/tsc/objectTypePropertyAccess.json | 32 +- ...hCallSignatureAppearsToBeFunctionType.json | 8 +- ...natureHidingMembersOfExtendedFunction.json | 32 +- ...hCallSignatureHidingMembersOfFunction.json | 24 +- ...tructSignatureAppearsToBeFunctionType.json | 8 +- ...natureHidingMembersOfExtendedFunction.json | 32 +- ...tructSignatureHidingMembersOfFunction.json | 24 +- ...bjectTypeWithRecursiveWrappedProperty.json | 8 +- ...jectTypeWithRecursiveWrappedProperty2.json | 8 +- ...ursiveWrappedPropertyCheckedNominally.json | 16 +- ...eWithStringIndexerHidingObjectIndexer.json | 4 +- .../tests/tsc/objectTypesIdentity.json | 16 +- .../tests/tsc/objectTypesIdentity2.json | 20 +- ...objectTypesIdentityWithCallSignatures.json | 16 +- ...bjectTypesIdentityWithCallSignatures2.json | 16 +- ...ithCallSignaturesDifferingParamCounts.json | 16 +- ...entityWithCallSignaturesWithOverloads.json | 44 +- ...tTypesIdentityWithConstructSignatures.json | 12 +- ...TypesIdentityWithConstructSignatures2.json | 12 +- ...nstructSignaturesDifferingParamCounts.json | 12 +- ...ypesIdentityWithGenericCallSignatures.json | 16 +- ...pesIdentityWithGenericCallSignatures2.json | 16 +- ...cCallSignaturesDifferingByConstraints.json | 16 +- ...CallSignaturesDifferingByConstraints2.json | 20 +- ...CallSignaturesDifferingByConstraints3.json | 28 +- ...icCallSignaturesDifferingByReturnType.json | 16 +- ...cCallSignaturesDifferingByReturnType2.json | 16 +- ...ignaturesDifferingTypeParameterCounts.json | 16 +- ...SignaturesDifferingTypeParameterNames.json | 16 +- ...thGenericCallSignaturesOptionalParams.json | 16 +- ...hGenericCallSignaturesOptionalParams2.json | 16 +- ...hGenericCallSignaturesOptionalParams3.json | 16 +- ...tructSignaturesDifferingByConstraints.json | 12 +- ...ructSignaturesDifferingByConstraints2.json | 16 +- ...ructSignaturesDifferingByConstraints3.json | 24 +- ...structSignaturesDifferingByReturnType.json | 12 +- ...tructSignaturesDifferingByReturnType2.json | 12 +- ...ignaturesDifferingTypeParameterCounts.json | 12 +- ...SignaturesDifferingTypeParameterNames.json | 12 +- ...ericConstructSignaturesOptionalParams.json | 12 +- ...ricConstructSignaturesOptionalParams2.json | 12 +- ...ricConstructSignaturesOptionalParams3.json | 12 +- ...jectTypesIdentityWithNumericIndexers2.json | 8 +- .../objectTypesIdentityWithOptionality.json | 16 +- .../tsc/objectTypesIdentityWithPrivates.json | 16 +- .../tsc/objectTypesIdentityWithPrivates2.json | 4 +- .../tsc/objectTypesIdentityWithPrivates3.json | 16 +- .../tsc/objectTypesIdentityWithPublics.json | 16 +- ...objectTypesIdentityWithStringIndexers.json | 4 +- ...bjectTypesIdentityWithStringIndexers2.json | 12 +- .../tests/tsc/octalIntegerLiteral.json | 16 +- .../tests/tsc/octalIntegerLiteralES6.json | 16 +- .../tsc/operatorsAndIntersectionTypes.json | 8 +- .../tests/tsc/optionalBindingParameters2.json | 24 +- ...optionalBindingParametersInOverloads2.json | 24 +- .../tests/tsc/optionalChainingInArrow.json | 4 +- .../tests/tsc/optionalChainingInLoop.json | 44 +- ...alChainingInParameterBindingPattern.2.json | 8 +- ...onalChainingInParameterBindingPattern.json | 4 +- ...ionalChainingInParameterInitializer.2.json | 8 +- ...ptionalChainingInParameterInitializer.json | 4 +- .../tsc/optionalChainingInTypeAssertions.json | 44 +- .../tests/tsc/optionalChainingInference.json | 60 +- .../tests/tsc/optionalMethod.json | 4 +- .../tests/tsc/optionalMethodDeclarations.json | 4 +- .../tests/tsc/optionalMethods.json | 144 +- .../tests/tsc/optionalProperties01.json | 12 +- .../tests/tsc/optionalProperties02.json | 4 +- .../tests/tsc/optionalProperty.json | 4 +- .../tests/tsc/overloadResolution.json | 28 +- .../overloadResolutionClassConstructors.json | 92 +- .../tsc/overloadResolutionConstructors.json | 28 +- .../tests/tsc/overloadTag2.json | 4 +- .../tests/tsc/overloadTag3.json | 8 +- .../swc_ecma_parser/tests/tsc/override1.json | 64 +- .../swc_ecma_parser/tests/tsc/override10.json | 16 +- .../swc_ecma_parser/tests/tsc/override12.json | 24 +- .../swc_ecma_parser/tests/tsc/override13.json | 40 +- .../swc_ecma_parser/tests/tsc/override14.json | 8 +- .../swc_ecma_parser/tests/tsc/override15.json | 8 +- .../swc_ecma_parser/tests/tsc/override16.json | 8 +- .../swc_ecma_parser/tests/tsc/override17.json | 24 +- .../swc_ecma_parser/tests/tsc/override18.json | 8 +- .../swc_ecma_parser/tests/tsc/override19.json | 12 +- .../swc_ecma_parser/tests/tsc/override2.json | 40 +- .../swc_ecma_parser/tests/tsc/override20.json | 24 +- .../swc_ecma_parser/tests/tsc/override3.json | 40 +- .../swc_ecma_parser/tests/tsc/override4.json | 56 +- .../swc_ecma_parser/tests/tsc/override6.json | 16 +- .../swc_ecma_parser/tests/tsc/override8.json | 28 +- .../tests/tsc/overrideInterfaceProperty.json | 8 +- .../overrideWithoutNoImplicitOverride1.json | 44 +- .../tests/tsc/override_js1.json | 32 +- .../tests/tsc/override_js2.json | 32 +- .../tests/tsc/override_js3.json | 16 +- .../tests/tsc/override_js4.json | 8 +- .../paramTagNestedWithoutTopLevelObject.json | 4 +- .../paramTagNestedWithoutTopLevelObject2.json | 8 +- .../paramTagNestedWithoutTopLevelObject3.json | 8 +- .../paramTagNestedWithoutTopLevelObject4.json | 8 +- .../tests/tsc/paramTagOnCallExpression.json | 4 +- .../tsc/paramTagOnFunctionUsingArguments.json | 4 +- .../tests/tsc/paramTagTypeResolution.json | 4 +- .../tests/tsc/paramTagTypeResolution2.json | 12 +- ...ameterInitializersBackwardReferencing.json | 4 +- ...rameterInitializersForwardReferencing.json | 8 +- ...ameterInitializersForwardReferencing1.json | 4 +- ...erInitializersForwardReferencing1_es6.json | 4 +- .../tsc/parametersWithNoAnnotationAreAny.json | 16 +- .../tests/tsc/parentheses.json | 16 +- .../tsc/parenthesizedContexualTyping1.json | 32 +- .../tsc/parenthesizedContexualTyping2.json | 32 +- .../tests/tsc/parser15.4.4.14-9-2.json | 20 +- .../tests/tsc/parser509534.json | 24 +- .../tests/tsc/parser509546.json | 4 +- .../tests/tsc/parser509546_1.json | 4 +- .../tests/tsc/parser509546_2.json | 4 +- .../tests/tsc/parser509693.json | 8 +- .../tests/tsc/parser630933.json | 4 +- .../tests/tsc/parser768531.json | 4 +- .../tsc/parserAccessibilityAfterStatic11.json | 4 +- .../tsc/parserAccessibilityAfterStatic14.json | 4 +- .../tsc/parserAccessibilityAfterStatic2.json | 4 +- .../tsc/parserAccessibilityAfterStatic3.json | 4 +- .../tsc/parserAccessibilityAfterStatic4.json | 4 +- .../tsc/parserAccessibilityAfterStatic5.json | 4 +- .../tests/tsc/parserAccessors1.json | 4 +- .../tests/tsc/parserAccessors2.json | 4 +- .../tests/tsc/parserAccessors3.json | 4 +- .../tests/tsc/parserAccessors4.json | 4 +- .../tests/tsc/parserAdditiveExpression1.json | 8 +- .../tests/tsc/parserArgumentList1.json | 20 +- .../tsc/parserArrowFunctionExpression6.json | 4 +- .../tsc/parserArrowFunctionExpression7.json | 4 +- .../tests/tsc/parserAstSpans1.json | 400 +- .../tests/tsc/parserClass1.json | 24 +- .../tests/tsc/parserClass2.json | 16 +- .../tests/tsc/parserClassDeclaration10.json | 8 +- .../tests/tsc/parserClassDeclaration11.json | 8 +- .../tests/tsc/parserClassDeclaration12.json | 8 +- .../tests/tsc/parserClassDeclaration13.json | 8 +- .../tests/tsc/parserClassDeclaration14.json | 8 +- .../tests/tsc/parserClassDeclaration15.json | 8 +- .../tests/tsc/parserClassDeclaration16.json | 8 +- .../tests/tsc/parserClassDeclaration17.json | 16 +- .../tests/tsc/parserClassDeclaration19.json | 4 +- .../tests/tsc/parserClassDeclaration25.json | 8 +- .../tests/tsc/parserClassDeclaration26.json | 8 +- .../tests/tsc/parserClassDeclaration8.json | 4 +- .../tests/tsc/parserClassDeclaration9.json | 4 +- .../tsc/parserCommaInTypeMemberList2.json | 12 +- .../tsc/parserConditionalExpression1.json | 24 +- .../tsc/parserConstructorDeclaration1.json | 4 +- .../tsc/parserConstructorDeclaration5.json | 4 +- .../tests/tsc/parserES3Accessors1.json | 4 +- .../tests/tsc/parserES3Accessors2.json | 4 +- .../tests/tsc/parserES3Accessors3.json | 4 +- .../tests/tsc/parserES3Accessors4.json | 4 +- .../tests/tsc/parserES5SymbolProperty1.json | 4 +- .../tests/tsc/parserES5SymbolProperty2.json | 4 +- .../tests/tsc/parserES5SymbolProperty3.json | 4 +- .../tests/tsc/parserES5SymbolProperty6.json | 4 +- .../tests/tsc/parserES5SymbolProperty7.json | 4 +- .../tests/tsc/parserES5SymbolProperty8.json | 4 +- .../tests/tsc/parserES5SymbolProperty9.json | 4 +- ...rorRecovery_IncompleteMemberVariable1.json | 44 +- .../parserErrorRecovery_ParameterList6.json | 4 +- .../tsc/parserExportAsFunctionIdentifier.json | 4 +- .../tests/tsc/parserForInStatement8.json | 8 +- .../tests/tsc/parserForOfStatement25.json | 8 +- .../tests/tsc/parserForStatement3.json | 8 +- .../tests/tsc/parserForStatement9.json | 8 +- .../parserFunctionPropertyAssignment1.json | 4 +- .../tsc/parserGenericsInTypeContexts1.json | 24 +- .../tsc/parserGenericsInTypeContexts2.json | 24 +- .../tests/tsc/parserImportDeclaration1.json | 8 +- .../tests/tsc/parserInExpression1.json | 4 +- .../tsc/parserIndexMemberDeclaration2.json | 4 +- .../tsc/parserIndexMemberDeclaration3.json | 4 +- .../tsc/parserIndexMemberDeclaration4.json | 4 +- ...rAccessOffOfObjectCreationExpression1.json | 4 +- .../tsc/parserKeywordsAsIdentifierName1.json | 12 +- .../tests/tsc/parserMemberAccessor1.json | 8 +- .../tsc/parserMemberAccessorDeclaration1.json | 4 +- .../parserMemberAccessorDeclaration15.json | 4 +- .../tsc/parserMemberAccessorDeclaration4.json | 4 +- ...MemberFunctionDeclarationAmbiguities1.json | 32 +- .../tsc/parserMemberVariableDeclaration5.json | 4 +- .../tests/tsc/parserModule1.json | 4 +- .../tests/tsc/parserModuleDeclaration11.json | 12 +- ...erNoASIOnCallAfterFunctionExpression1.json | 4 +- .../tests/tsc/parserNotHexLiteral1.json | 24 +- .../tests/tsc/parserObjectLiterals1.json | 8 +- .../tests/tsc/parserParameterList14.json | 4 +- .../tests/tsc/parserParameterList16.json | 8 +- .../tests/tsc/parserParameterList17.json | 8 +- .../tests/tsc/parserParameterList6.json | 4 +- .../tests/tsc/parserParameterList7.json | 12 +- .../tests/tsc/parserParameterList8.json | 12 +- .../tests/tsc/parserRealSource1.json | 228 +- .../tests/tsc/parserRealSource12.json | 2716 +-- .../tests/tsc/parserRealSource13.json | 36 +- .../tests/tsc/parserRealSource14.json | 3852 ++-- .../tests/tsc/parserRealSource2.json | 12 +- .../tests/tsc/parserRealSource5.json | 136 +- .../tests/tsc/parserRealSource6.json | 580 +- .../tests/tsc/parserRealSource8.json | 1572 +- .../tests/tsc/parserRegularExpression2.json | 4 +- .../tests/tsc/parserRegularExpression4.json | 60 +- .../tests/tsc/parserRegularExpression5.json | 8 +- ...rserRegularExpressionDivideAmbiguity1.json | 4 +- ...rserRegularExpressionDivideAmbiguity2.json | 4 +- ...rserRegularExpressionDivideAmbiguity5.json | 12 +- .../tests/tsc/parserReturnStatement4.json | 4 +- .../tests/tsc/parserSuperExpression1.json | 16 +- .../tests/tsc/parserSuperExpression2.json | 4 +- .../tests/tsc/parserSuperExpression3.json | 8 +- .../tests/tsc/parserSuperExpression4.json | 16 +- .../tests/tsc/parserSymbolProperty1.json | 4 +- .../tests/tsc/parserSymbolProperty2.json | 4 +- .../tests/tsc/parserSymbolProperty3.json | 4 +- .../tests/tsc/parserSymbolProperty4.json | 4 +- .../tests/tsc/parserSymbolProperty5.json | 4 +- .../tests/tsc/parserSymbolProperty6.json | 4 +- .../tests/tsc/parserSymbolProperty7.json | 4 +- .../tests/tsc/parserSymbolProperty8.json | 4 +- .../tests/tsc/parserSymbolProperty9.json | 4 +- .../tsc/parserTernaryAndCommaOperators1.json | 4 +- .../tests/tsc/parserTypeQuery5.json | 8 +- .../tests/tsc/parserTypeQuery6.json | 8 +- .../parserUsingConstructorAsIdentifier.json | 68 +- .../tests/tsc/parserVariableDeclaration2.json | 4 +- .../tests/tsc/parserVariableDeclaration3.json | 28 +- .../tests/tsc/parser_breakTarget1.json | 8 +- .../tests/tsc/parser_breakTarget2.json | 8 +- .../tests/tsc/parser_breakTarget3.json | 12 +- .../tests/tsc/parser_breakTarget4.json | 12 +- .../tests/tsc/parser_continueLabel.json | 8 +- .../tests/tsc/parser_continueTarget2.json | 8 +- .../tests/tsc/parser_continueTarget3.json | 12 +- .../tests/tsc/parser_continueTarget4.json | 12 +- .../tests/tsc/parser_duplicateLabel3.json | 8 +- .../tests/tsc/parser_duplicateLabel4.json | 8 +- .../tests/tsc/parserindenter.json | 1780 +- .../tests/tsc/parservoidInQualifiedName2.json | 8 +- ...tiallyAnnotatedFunctionInferenceError.json | 8 +- ...tedFunctionInferenceWithTypeParameter.json | 16 +- .../tests/tsc/partiallyNamedTuples2.json | 4 +- .../tests/tsc/plainJSGrammarErrors4.json | 4 +- .../tests/tsc/plainJSRedeclare.json | 4 +- .../tests/tsc/plainJSRedeclare2.json | 4 +- .../tests/tsc/plainJSRedeclare3.json | 4 +- .../tsc/plusOperatorWithBooleanType.json | 36 +- .../tests/tsc/plusOperatorWithEnumType.json | 4 +- .../tests/tsc/plusOperatorWithNumberType.json | 52 +- .../tests/tsc/plusOperatorWithStringType.json | 48 +- ...ateClassPropertyAccessibleWithinClass.json | 144 +- ...ssPropertyAccessibleWithinNestedClass.json | 128 +- .../tests/tsc/privateConstructorFunction.json | 4 +- .../tests/tsc/privateIdentifierExpando.json | 4 +- .../tests/tsc/privateNameAccessors.json | 12 +- .../privateNameAccessorsCallExpression.json | 20 +- .../tests/tsc/privateNameAndAny.json | 12 +- .../tsc/privateNameAndIndexSignature.json | 4 +- .../tsc/privateNameAndObjectRestSpread.json | 4 +- .../tsc/privateNameAndStaticInitializer.json | 4 +- .../tsc/privateNameClassExpressionLoop.json | 4 +- .../tsc/privateNameComputedPropertyName1.json | 40 +- .../tsc/privateNameComputedPropertyName2.json | 4 +- .../tsc/privateNameComputedPropertyName3.json | 16 +- .../tsc/privateNameConstructorSignature.json | 8 +- .../tests/tsc/privateNameDeclaration.json | 12 +- .../tsc/privateNameDeclarationMerging.json | 4 +- .../tests/tsc/privateNameES5Ban.json | 4 +- .../tests/tsc/privateNameField.json | 4 +- .../tests/tsc/privateNameFieldAccess.json | 8 +- .../tests/tsc/privateNameFieldAssignment.json | 60 +- .../tsc/privateNameFieldCallExpression.json | 20 +- .../tsc/privateNameFieldClassExpression.json | 16 +- .../privateNameFieldDestructuredBinding.json | 72 +- ...ateNameFieldParenthesisLeftAssignment.json | 20 +- .../tsc/privateNameFieldUnaryMutation.json | 124 +- .../tests/tsc/privateNameFieldsESNext.json | 32 +- .../tsc/privateNameImplicitDeclaration.json | 4 +- .../tsc/privateNameInInExpressionUnused.json | 4 +- .../privateNameInLhsReceiverExpression.json | 20 +- .../tests/tsc/privateNameLateSuper.json | 4 +- ...eNameLateSuperUseDefineForClassFields.json | 4 +- .../tests/tsc/privateNameMethod.json | 4 +- .../tsc/privateNameMethodAssignment.json | 12 +- .../tests/tsc/privateNameMethodAsync.json | 40 +- .../tsc/privateNameMethodCallExpression.json | 32 +- .../privateNameMethodInStaticFieldInit.json | 12 +- .../privateNameNestedClassNameConflict.json | 4 +- .../tests/tsc/privateNameReadonly.json | 16 +- .../tsc/privateNameSetterExprReturnValue.json | 12 +- .../tests/tsc/privateNameSetterNoGetter.json | 12 +- .../tests/tsc/privateNameStaticAccessors.json | 12 +- ...vateNameStaticAccessorsCallExpression.json | 12 +- ...ateNameStaticAccessorssDerivedClasses.json | 16 +- .../tsc/privateNameStaticFieldAccess.json | 12 +- .../tsc/privateNameStaticFieldAssignment.json | 60 +- .../privateNameStaticFieldCallExpression.json | 20 +- ...privateNameStaticFieldClassExpression.json | 40 +- ...ateNameStaticFieldDestructuredBinding.json | 72 +- .../privateNameStaticFieldUnaryMutation.json | 68 +- .../tests/tsc/privateNameStaticMethod.json | 4 +- .../privateNameStaticMethodAssignment.json | 12 +- ...privateNameStaticMethodCallExpression.json | 32 +- ...vateNameStaticMethodInStaticFieldInit.json | 12 +- .../privateNameStaticsAndStaticMethods.json | 8 +- .../tests/tsc/privateNameUnused.json | 24 +- ...henNotUseDefineForClassFieldsInEsNext.json | 48 +- .../tests/tsc/privateNamesAndFields.json | 8 +- .../tests/tsc/privateNamesAndMethods.json | 8 +- .../tsc/privateNamesAndStaticMethods.json | 8 +- .../tests/tsc/privateNamesAndkeyof.json | 8 +- .../tests/tsc/privateNamesAssertion.json | 8 +- .../tsc/privateNamesConstructorChain-1.json | 4 +- .../tsc/privateNamesConstructorChain-2.json | 8 +- .../tests/tsc/privateNamesUnique-2.json | 8 +- .../tests/tsc/privateNamesUnique-3.json | 4 +- ...dMembersAreNotAccessibleDestructuring.json | 48 +- .../tsc/privateStaticMemberAccessibility.json | 20 +- .../tests/tsc/privateStaticNameShadowing.json | 4 +- .../privateStaticNotAccessibleInClodule.json | 12 +- .../privateStaticNotAccessibleInClodule2.json | 16 +- .../tsc/privateWriteOnlyAccessorRead.json | 48 +- ...opertiesOfGenericConstructorFunctions.json | 76 +- .../tests/tsc/propertyAccess.json | 88 +- .../tests/tsc/propertyAccessChain.2.json | 20 +- .../tests/tsc/propertyAccessChain.3.json | 120 +- .../tests/tsc/propertyAccessChain.json | 76 +- ...yAccessOnTypeParameterWithConstraints.json | 40 +- ...AccessOnTypeParameterWithConstraints2.json | 64 +- ...AccessOnTypeParameterWithConstraints3.json | 64 +- ...AccessOnTypeParameterWithConstraints4.json | 52 +- ...AccessOnTypeParameterWithConstraints5.json | 64 +- ...cessOnTypeParameterWithoutConstraints.json | 40 +- .../propertyAccessStringIndexSignature.json | 16 +- ...cessStringIndexSignatureNoImplicitAny.json | 16 +- .../tests/tsc/propertyAccessWidening.json | 36 +- .../tsc/propertyAndAccessorWithSameName.json | 28 +- .../tsc/propertyAndFunctionWithSameName.json | 16 +- .../propertyAssignmentOnImportedSymbol.json | 4 +- ...yAssignmentOnUnresolvedImportedSymbol.json | 4 +- .../tsc/propertyAssignmentUseParentType1.json | 12 +- .../tsc/propertyAssignmentUseParentType2.json | 12 +- .../tsc/propertyAssignmentUseParentType3.json | 20 +- .../propertyNameWithoutTypeAnnotation.json | 24 +- .../tests/tsc/propertyNamedPrototype.json | 8 +- .../tests/tsc/propertyOverridesAccessors.json | 32 +- .../tsc/propertyOverridesAccessors2.json | 24 +- .../tsc/propertyOverridesAccessors3.json | 44 +- .../tsc/propertyOverridesAccessors4.json | 12 +- .../tsc/propertyOverridesAccessors5.json | 8 +- .../tests/tsc/propertyOverridesMethod.json | 8 +- ...tedClassPropertyAccessibleWithinClass.json | 144 +- ...ssPropertyAccessibleWithinNestedClass.json | 128 +- ...ropertyAccessibleWithinNestedSubclass.json | 120 +- ...opertyAccessibleWithinNestedSubclass1.json | 168 +- ...ClassPropertyAccessibleWithinSubclass.json | 80 +- ...lassPropertyAccessibleWithinSubclass2.json | 148 +- ...lassPropertyAccessibleWithinSubclass3.json | 24 +- .../protectedInstanceMemberAccessibility.json | 100 +- ...ClassPropertyAccessibleWithinSubclass.json | 104 +- ...lassPropertyAccessibleWithinSubclass2.json | 40 +- ...protectedStaticNotAccessibleInClodule.json | 16 +- ...ypePropertyAssignmentMergeAcrossFiles.json | 16 +- ...pePropertyAssignmentMergeAcrossFiles2.json | 36 +- ...rtyAssignmentMergeWithInterfaceMethod.json | 40 +- ...PropertyAssignmentMergedTypeReference.json | 8 +- .../tests/tsc/quotedConstructors.json | 20 +- .../tsc/reExportAliasMakesInstantiated.json | 24 +- .../tests/tsc/reExportJsFromTs.json | 8 +- .../tests/tsc/readonlyArraysAndTuples2.json | 8 +- .../tsc/readonlyConstructorAssignment.json | 40 +- .../tests/tsc/readonlyInAmbientClass.json | 8 +- .../tests/tsc/recursiveIntersectionTypes.json | 40 +- .../tests/tsc/recursiveMappedTypes.json | 8 +- .../tsc/recursiveTypeInGenericConstraint.json | 12 +- .../tests/tsc/recursiveTypeReferences1.json | 124 +- ...ecursiveTypesUsedAsFunctionParameters.json | 16 +- .../tests/tsc/recursiveTypesWithTypeof.json | 16 +- .../tests/tsc/redeclaredProperty.json | 24 +- .../tsc/redefinedPararameterProperty.json | 16 +- .../tests/tsc/reexportClassDefinition.json | 8 +- .../tests/tsc/relativePathMustResolve.json | 4 +- .../tsc/relativePathToDeclarationFile.json | 24 +- crates/swc_ecma_parser/tests/tsc/renamed.json | 4 +- .../tsc/requireOfESWithPropertyAccess.json | 20 +- .../tests/tsc/requireTwoPropertyAccesses.json | 24 +- .../tsc/restTuplesFromContextualTypes.json | 4 +- .../tests/tsc/returnStatements.json | 16 +- .../tests/tsc/returnTagTypeGuard.json | 36 +- .../tests/tsc/scannerAdditiveExpression1.json | 8 +- .../tests/tsc/scannerClass2.json | 16 +- .../tests/tsc/scannerImportDeclaration1.json | 8 +- .../tests/tsc/scannertest1.json | 60 +- .../tests/tsc/scopeResolutionIdentifiers.json | 20 +- .../tests/tsc/shadowedInternalModule.json | 60 +- ...IsNotSubtypeOfNonSpecializedSignature.json | 36 +- ...ureIsSubtypeOfNonSpecializedSignature.json | 44 +- .../tests/tsc/spellingUncheckedJS.json | 64 +- .../tests/tsc/spreadDuplicate.json | 32 +- .../tests/tsc/spreadDuplicateExact.json | 32 +- .../tests/tsc/spreadExcessProperty.json | 12 +- .../tests/tsc/spreadMethods.json | 108 +- .../tests/tsc/spreadNonObject1.json | 12 +- .../tests/tsc/spreadNonPrimitive.json | 8 +- .../tests/tsc/spreadObjectOrFalsy.json | 24 +- .../tests/tsc/spreadOverwritesProperty.json | 16 +- .../tsc/spreadOverwritesPropertyStrict.json | 60 +- .../tests/tsc/spreadUnion.json | 4 +- .../tests/tsc/spreadUnion3.json | 8 +- .../staticAndNonStaticPropertiesSameName.json | 16 +- .../tests/tsc/staticAutoAccessors.json | 8 +- .../staticAutoAccessorsWithDecorators.json | 8 +- .../tests/tsc/staticFactory1.json | 20 +- .../tests/tsc/staticIndexSignature1.json | 4 +- .../tests/tsc/staticIndexSignature2.json | 4 +- .../tests/tsc/staticIndexSignature6.json | 16 +- .../tests/tsc/staticIndexSignature7.json | 8 +- ...erAssignsToConstructorFunctionMembers.json | 24 +- .../tests/tsc/staticMemberInitialization.json | 8 +- .../staticMembersUsingClassTypeParameter.json | 24 +- ...staticPropertyAndFunctionWithSameName.json | 16 +- ...PropertyNameConflictsInAmbientContext.json | 80 +- .../tsc/staticPropertyNotInClassType.json | 72 +- .../tests/tsc/strictBindCallApply1.json | 312 +- .../tests/tsc/strictBindCallApply2.json | 8 +- .../tsc/strictPropertyInitialization.json | 188 +- .../tests/tsc/strictTupleLength.json | 16 +- .../tests/tsc/stringEnumLiteralTypes1.json | 196 +- .../tests/tsc/stringEnumLiteralTypes2.json | 196 +- .../tests/tsc/stringEnumLiteralTypes3.json | 208 +- ...IndexerConstrainsPropertyDeclarations.json | 76 +- ...ndexerConstrainsPropertyDeclarations2.json | 32 +- .../tests/tsc/stringIndexingResults.json | 8 +- .../stringLiteralTypeIsSubtypeOfString.json | 84 +- .../tests/tsc/stringLiteralTypesAsTags01.json | 12 +- .../tests/tsc/stringLiteralTypesAsTags02.json | 12 +- .../tests/tsc/stringLiteralTypesAsTags03.json | 12 +- ...iteralTypesInImplementationSignatures.json | 16 +- ...teralTypesInImplementationSignatures2.json | 16 +- .../tests/tsc/stringPropertyAccess.json | 8 +- .../tests/tsc/subtypesOfAny.json | 12 +- .../tests/tsc/subtypesOfTypeParameter.json | 36 +- ...ubtypesOfTypeParameterWithConstraints.json | 120 +- ...btypesOfTypeParameterWithConstraints2.json | 28 +- ...btypesOfTypeParameterWithConstraints4.json | 44 +- ...TypeParameterWithRecursiveConstraints.json | 84 +- .../tests/tsc/subtypesOfUnion.json | 12 +- .../tsc/subtypingWithCallSignatures2.json | 20 +- .../tsc/subtypingWithCallSignatures3.json | 16 +- .../tsc/subtypingWithCallSignatures4.json | 16 +- .../subtypingWithConstructSignatures2.json | 16 +- .../subtypingWithConstructSignatures3.json | 16 +- .../subtypingWithConstructSignatures4.json | 16 +- .../subtypingWithConstructSignatures5.json | 16 +- .../subtypingWithConstructSignatures6.json | 16 +- .../tests/tsc/subtypingWithObjectMembers.json | 44 +- .../tsc/subtypingWithObjectMembers4.json | 16 +- .../tsc/subtypingWithObjectMembers5.json | 8 +- ...btypingWithObjectMembersAccessibility.json | 16 +- ...typingWithObjectMembersAccessibility2.json | 24 +- ...subtypingWithObjectMembersOptionality.json | 8 +- .../tsc/subtypingWithOptionalProperties.json | 16 +- .../tsc/superCallBeforeThisAccessing1.json | 24 +- .../tsc/superCallBeforeThisAccessing2.json | 16 +- .../tsc/superCallBeforeThisAccessing5.json | 12 +- .../tsc/superCallBeforeThisAccessing8.json | 24 +- ...sNoBaseTypeButWithSameSymbolInterface.json | 4 +- .../superCallInConstructorWithNoBaseType.json | 8 +- .../superCallParameterContextualTyping1.json | 12 +- .../superCallParameterContextualTyping2.json | 8 +- .../superCallParameterContextualTyping3.json | 32 +- .../swc_ecma_parser/tests/tsc/superCalls.json | 16 +- .../tests/tsc/superInStaticMembers1.json | 572 +- .../tests/tsc/superMethodCall.json | 20 +- .../tests/tsc/superPropertyAccessNoError.json | 88 +- .../tests/tsc/superSymbolIndexedAccess1.json | 4 +- .../tests/tsc/superSymbolIndexedAccess2.json | 12 +- .../tests/tsc/superSymbolIndexedAccess3.json | 4 +- .../tests/tsc/superSymbolIndexedAccess4.json | 4 +- .../tests/tsc/switchBreakStatements.json | 56 +- .../tests/tsc/switchStatements.json | 28 +- .../switchWithConstrainedTypeVariable.json | 8 +- .../tests/tsc/symbolDeclarationEmit1.json | 4 +- .../tests/tsc/symbolDeclarationEmit10.json | 8 +- .../tests/tsc/symbolDeclarationEmit11.json | 16 +- .../tests/tsc/symbolDeclarationEmit12.json | 20 +- .../tests/tsc/symbolDeclarationEmit13.json | 8 +- .../tests/tsc/symbolDeclarationEmit14.json | 8 +- .../tests/tsc/symbolDeclarationEmit2.json | 4 +- .../tests/tsc/symbolDeclarationEmit3.json | 12 +- .../tests/tsc/symbolDeclarationEmit4.json | 8 +- .../tests/tsc/symbolDeclarationEmit5.json | 4 +- .../tests/tsc/symbolDeclarationEmit6.json | 4 +- .../tests/tsc/symbolDeclarationEmit7.json | 4 +- .../tests/tsc/symbolDeclarationEmit8.json | 4 +- .../tests/tsc/symbolDeclarationEmit9.json | 4 +- .../tests/tsc/symbolProperty10.json | 8 +- .../tests/tsc/symbolProperty11.json | 4 +- .../tests/tsc/symbolProperty12.json | 8 +- .../tests/tsc/symbolProperty13.json | 8 +- .../tests/tsc/symbolProperty14.json | 8 +- .../tests/tsc/symbolProperty15.json | 4 +- .../tests/tsc/symbolProperty16.json | 8 +- .../tests/tsc/symbolProperty17.json | 8 +- .../tests/tsc/symbolProperty18.json | 24 +- .../tests/tsc/symbolProperty19.json | 24 +- .../tests/tsc/symbolProperty20.json | 16 +- .../tests/tsc/symbolProperty21.json | 20 +- .../tests/tsc/symbolProperty22.json | 12 +- .../tests/tsc/symbolProperty23.json | 8 +- .../tests/tsc/symbolProperty24.json | 8 +- .../tests/tsc/symbolProperty25.json | 8 +- .../tests/tsc/symbolProperty26.json | 8 +- .../tests/tsc/symbolProperty27.json | 8 +- .../tests/tsc/symbolProperty28.json | 16 +- .../tests/tsc/symbolProperty29.json | 8 +- .../tests/tsc/symbolProperty30.json | 8 +- .../tests/tsc/symbolProperty31.json | 8 +- .../tests/tsc/symbolProperty32.json | 8 +- .../tests/tsc/symbolProperty33.json | 8 +- .../tests/tsc/symbolProperty34.json | 8 +- .../tests/tsc/symbolProperty35.json | 8 +- .../tests/tsc/symbolProperty37.json | 8 +- .../tests/tsc/symbolProperty38.json | 8 +- .../tests/tsc/symbolProperty39.json | 16 +- .../tests/tsc/symbolProperty40.json | 20 +- .../tests/tsc/symbolProperty41.json | 20 +- .../tests/tsc/symbolProperty42.json | 12 +- .../tests/tsc/symbolProperty43.json | 8 +- .../tests/tsc/symbolProperty44.json | 8 +- .../tests/tsc/symbolProperty45.json | 8 +- .../tests/tsc/symbolProperty46.json | 16 +- .../tests/tsc/symbolProperty47.json | 16 +- .../tests/tsc/symbolProperty48.json | 4 +- .../tests/tsc/symbolProperty49.json | 4 +- .../tests/tsc/symbolProperty5.json | 12 +- .../tests/tsc/symbolProperty50.json | 4 +- .../tests/tsc/symbolProperty51.json | 4 +- .../tests/tsc/symbolProperty52.json | 8 +- .../tests/tsc/symbolProperty53.json | 8 +- .../tests/tsc/symbolProperty54.json | 4 +- .../tests/tsc/symbolProperty55.json | 8 +- .../tests/tsc/symbolProperty56.json | 4 +- .../tests/tsc/symbolProperty57.json | 4 +- .../tests/tsc/symbolProperty58.json | 4 +- .../tests/tsc/symbolProperty6.json | 16 +- .../tests/tsc/symbolProperty60.json | 8 +- .../tests/tsc/symbolProperty61.json | 32 +- .../tests/tsc/symbolProperty8.json | 8 +- .../tests/tsc/symbolProperty9.json | 8 +- .../tests/tsc/symbolType10.json | 4 +- .../tests/tsc/symbolType11.json | 4 +- .../tests/tsc/symbolType12.json | 4 +- .../tests/tsc/symbolType16.json | 4 +- .../tests/tsc/symbolType2.json | 8 +- .../tests/tsc/symbolType3.json | 12 +- .../tests/tsc/symbolType4.json | 4 +- .../tests/tsc/symbolType5.json | 4 +- .../tests/tsc/symbolType6.json | 4 +- .../tests/tsc/symbolType7.json | 4 +- .../tests/tsc/symbolType8.json | 4 +- .../tests/tsc/symbolType9.json | 4 +- .../tests/tsc/syntaxErrors.json | 24 +- ...dTemplateStringsTypeArgumentInference.json | 28 +- ...mplateStringsTypeArgumentInferenceES6.json | 28 +- ...plateStringsWithIncompatibleTypedTags.json | 28 +- ...teStringsWithIncompatibleTypedTagsES6.json | 28 +- ...ringsWithManyCallAndMemberExpressions.json | 4 +- ...gsWithManyCallAndMemberExpressionsES6.json | 4 +- ...emplateStringsWithOverloadResolution3.json | 12 +- ...ateStringsWithOverloadResolution3_ES6.json | 12 +- ...ggedTemplateStringsWithTagsTypedAsAny.json | 40 +- ...dTemplateStringsWithTagsTypedAsAnyES6.json | 40 +- .../taggedTemplateStringsWithTypedTags.json | 24 +- ...taggedTemplateStringsWithTypedTagsES6.json | 24 +- .../taggedTemplatesWithTypeArguments1.json | 76 +- .../tests/tsc/templateInsideCallback.json | 8 +- .../tests/tsc/templateLiteralTypes2.json | 8 +- .../tests/tsc/templateLiteralTypes3.json | 12 +- .../tests/tsc/templateLiteralTypes4.json | 40 +- .../tsc/templateLiteralTypesPatterns.json | 12 +- .../tests/tsc/templateStringInInOperator.json | 8 +- .../tsc/templateStringInInOperatorES6.json | 8 +- .../templateStringInPropertyAssignment.json | 4 +- ...templateStringInPropertyAssignmentES6.json | 4 +- .../templateStringWithEmbeddedInOperator.json | 8 +- ...mplateStringWithEmbeddedInOperatorES6.json | 8 +- ...mplateStringWithEmbeddedObjectLiteral.json | 8 +- ...ateStringWithEmbeddedObjectLiteralES6.json | 8 +- .../tsc/templateStringWithPropertyAccess.json | 4 +- .../templateStringWithPropertyAccessES6.json | 4 +- .../tsc/thisAndSuperInStaticMembers1.json | 224 +- .../tsc/thisAndSuperInStaticMembers2.json | 224 +- .../tsc/thisAndSuperInStaticMembers3.json | 84 +- .../tsc/thisAndSuperInStaticMembers4.json | 84 +- .../tsc/thisInInstanceMemberInitializer.json | 12 +- .../tests/tsc/thisInObjectLiterals.json | 28 +- .../tests/tsc/thisMethodCall.json | 12 +- .../tests/tsc/thisPropertyAssignment.json | 32 +- .../tsc/thisPropertyAssignmentCircular.json | 48 +- .../tsc/thisPropertyAssignmentInherited.json | 32 +- .../tsc/thisPropertyOverridesAccessors.json | 16 +- ...thisPrototypeMethodCompoundAssignment.json | 16 +- ...isPrototypeMethodCompoundAssignmentJs.json | 32 +- .../swc_ecma_parser/tests/tsc/thisTag1.json | 16 +- .../swc_ecma_parser/tests/tsc/thisTag3.json | 8 +- .../tests/tsc/thisTypeAccessibility.json | 168 +- .../tests/tsc/thisTypeAndConstraints.json | 28 +- .../tests/tsc/thisTypeErrors.json | 48 +- .../tests/tsc/thisTypeErrors2.json | 16 +- .../tests/tsc/thisTypeInAccessors.json | 112 +- .../tsc/thisTypeInAccessorsNegative.json | 32 +- .../tests/tsc/thisTypeInClasses.json | 64 +- .../tests/tsc/thisTypeInFunctions.json | 484 +- .../tests/tsc/thisTypeInFunctions2.json | 60 +- .../tests/tsc/thisTypeInFunctions3.json | 12 +- .../tests/tsc/thisTypeInFunctions4.json | 4 +- .../tests/tsc/thisTypeInObjectLiterals.json | 64 +- .../tests/tsc/thisTypeInObjectLiterals2.json | 420 +- .../tsc/thisTypeInTaggedTemplateCall.json | 12 +- .../tests/tsc/thisTypeInTuples.json | 12 +- .../tsc/thisTypeOfConstructorFunctions.json | 64 +- .../tests/tsc/thisTypeOptionalCall.json | 4 +- .../tests/tsc/thisTypeSyntacticContext.json | 32 +- .../tests/tsc/throwInEnclosingStatements.json | 24 +- .../tests/tsc/throwStatements.json | 44 +- .../tests/tsc/topLevelAmbientModule.json | 4 +- .../tests/tsc/topLevelFileModule.json | 8 +- .../tests/tsc/topLevelFileModuleMissing.json | 4 +- .../tsc/topLevelModuleDeclarationAndFile.json | 8 +- .../tests/tsc/topLevelThisAssignment.json | 12 +- .../tests/tsc/topLevelVarHoistingSystem.json | 4 +- .../tests/tsc/ts-expect-error.json | 32 +- .../tests/tsc/tsNoCheckForTypescript.json | 4 +- .../tsc/tsNoCheckForTypescriptComments1.json | 4 +- .../tsc/tsNoCheckForTypescriptComments2.json | 4 +- .../tests/tsc/twoAccessorsWithSameName2.json | 24 +- .../tsc/twoInterfacesDifferentRootModule.json | 16 +- .../twoInterfacesDifferentRootModule2.json | 32 +- ...ergedInterfacesWithDifferingOverloads.json | 12 +- .../tests/tsc/typeAliases.json | 16 +- .../tests/tsc/typeAliasesForObjectTypes.json | 4 +- .../tsc/typeAndNamespaceExportMerge.json | 4 +- .../tests/tsc/typeArgumentInference.json | 60 +- ...eArgumentInferenceConstructSignatures.json | 60 +- ...ArgumentInferenceWithClassExpression1.json | 12 +- ...ArgumentInferenceWithClassExpression2.json | 12 +- ...ArgumentInferenceWithClassExpression3.json | 12 +- .../typeArgumentInferenceWithConstraints.json | 60 +- ...ypeArgumentInferenceWithObjectLiteral.json | 80 +- ...typeAssertionsWithIntersectionTypes01.json | 12 +- .../tsc/typeAssertionsWithUnionTypes01.json | 8 +- .../tests/tsc/typeFromContextualThisType.json | 24 +- .../tests/tsc/typeFromJSConstructor.json | 100 +- .../tests/tsc/typeFromJSInitializer.json | 92 +- .../tests/tsc/typeFromJSInitializer4.json | 8 +- .../tsc/typeFromParamTagForFunction.json | 84 +- .../typeFromPrivatePropertyAssignment.json | 4 +- .../typeFromPrivatePropertyAssignmentJs.json | 4 +- .../tests/tsc/typeFromPropertyAssignment.json | 20 +- .../tsc/typeFromPropertyAssignment10.json | 104 +- .../tsc/typeFromPropertyAssignment10_1.json | 104 +- .../tsc/typeFromPropertyAssignment11.json | 44 +- .../tsc/typeFromPropertyAssignment12.json | 24 +- .../tsc/typeFromPropertyAssignment13.json | 64 +- .../tsc/typeFromPropertyAssignment14.json | 40 +- .../tsc/typeFromPropertyAssignment15.json | 36 +- .../tsc/typeFromPropertyAssignment16.json | 40 +- .../tsc/typeFromPropertyAssignment17.json | 44 +- .../tsc/typeFromPropertyAssignment18.json | 40 +- .../tsc/typeFromPropertyAssignment19.json | 16 +- .../tsc/typeFromPropertyAssignment2.json | 24 +- .../tsc/typeFromPropertyAssignment20.json | 16 +- .../tsc/typeFromPropertyAssignment21.json | 12 +- .../tsc/typeFromPropertyAssignment22.json | 28 +- .../tsc/typeFromPropertyAssignment23.json | 56 +- .../tsc/typeFromPropertyAssignment24.json | 28 +- .../tsc/typeFromPropertyAssignment25.json | 48 +- .../tsc/typeFromPropertyAssignment26.json | 40 +- .../tsc/typeFromPropertyAssignment27.json | 20 +- .../tsc/typeFromPropertyAssignment28.json | 24 +- .../tsc/typeFromPropertyAssignment29.json | 176 +- .../tsc/typeFromPropertyAssignment3.json | 24 +- .../tsc/typeFromPropertyAssignment30.json | 4 +- .../tsc/typeFromPropertyAssignment31.json | 72 +- .../tsc/typeFromPropertyAssignment32.json | 72 +- .../tsc/typeFromPropertyAssignment33.json | 72 +- .../tsc/typeFromPropertyAssignment34.json | 20 +- .../tsc/typeFromPropertyAssignment35.json | 36 +- .../tsc/typeFromPropertyAssignment36.json | 108 +- .../tsc/typeFromPropertyAssignment37.json | 16 +- .../tsc/typeFromPropertyAssignment4.json | 36 +- .../tsc/typeFromPropertyAssignment40.json | 8 +- .../tsc/typeFromPropertyAssignment5.json | 12 +- .../tsc/typeFromPropertyAssignment6.json | 20 +- .../tsc/typeFromPropertyAssignment7.json | 8 +- .../tsc/typeFromPropertyAssignment8.json | 52 +- .../tsc/typeFromPropertyAssignment8_1.json | 52 +- .../tsc/typeFromPropertyAssignment9.json | 140 +- .../tsc/typeFromPropertyAssignment9_1.json | 140 +- .../typeFromPropertyAssignmentOutOfOrder.json | 20 +- .../typeFromPropertyAssignmentWithExport.json | 8 +- .../tsc/typeFromPrototypeAssignment.json | 104 +- .../tsc/typeFromPrototypeAssignment2.json | 104 +- .../tsc/typeFromPrototypeAssignment3.json | 20 +- .../tsc/typeFromPrototypeAssignment4.json | 24 +- .../tests/tsc/typeGuardFunction.json | 32 +- .../tests/tsc/typeGuardFunctionGenerics.json | 20 +- .../tsc/typeGuardFunctionOfFormThis.json | 184 +- .../typeGuardFunctionOfFormThisErrors.json | 64 +- .../tests/tsc/typeGuardInClass.json | 8 +- .../tests/tsc/typeGuardIntersectionTypes.json | 28 +- .../tsc/typeGuardOfFormExpr1AndExpr2.json | 4 +- .../tsc/typeGuardOfFormExpr1OrExpr2.json | 4 +- .../tests/tsc/typeGuardOfFormInstanceOf.json | 76 +- .../typeGuardOfFormInstanceOfOnInterface.json | 28 +- .../tests/tsc/typeGuardOfFormIsType.json | 40 +- .../typeGuardOfFormIsTypeOnInterfaces.json | 28 +- .../tsc/typeGuardOfFormTypeOfBoolean.json | 4 +- ...uardOfFormTypeOfEqualEqualHasNoEffect.json | 4 +- .../tsc/typeGuardOfFormTypeOfFunction.json | 8 +- ...eGuardOfFormTypeOfNotEqualHasNoEffect.json | 4 +- .../tsc/typeGuardOfFormTypeOfNumber.json | 4 +- .../tests/tsc/typeGuardOfFormTypeOfOther.json | 4 +- .../tsc/typeGuardOfFormTypeOfString.json | 4 +- .../typeGuardOfFromPropNameInUnionType.json | 180 +- .../tests/tsc/typeGuardRedundancy.json | 32 +- .../tests/tsc/typeGuardsAsAssertions.json | 48 +- .../tests/tsc/typeGuardsDefeat.json | 12 +- .../tests/tsc/typeGuardsInClassAccessors.json | 112 +- .../tests/tsc/typeGuardsInClassMethods.json | 80 +- .../typeGuardsInConditionalExpression.json | 20 +- .../tests/tsc/typeGuardsInExternalModule.json | 4 +- .../tests/tsc/typeGuardsInFunction.json | 72 +- .../typeGuardsInFunctionAndModuleBlock.json | 48 +- .../tests/tsc/typeGuardsInGlobal.json | 4 +- .../tests/tsc/typeGuardsInIfStatement.json | 28 +- .../tests/tsc/typeGuardsInModule.json | 28 +- .../tests/tsc/typeGuardsInProperties.json | 64 +- ...eGuardsInRightOperandOfAndAndOperator.json | 12 +- ...ypeGuardsInRightOperandOfOrOrOperator.json | 12 +- .../tsc/typeGuardsNestedAssignments.json | 16 +- .../tests/tsc/typeGuardsObjectMethods.json | 60 +- .../tests/tsc/typeGuardsOnClassProperty.json | 64 +- .../tests/tsc/typeGuardsTypeParameters.json | 16 +- .../tests/tsc/typeGuardsWithAny.json | 44 +- .../tests/tsc/typeGuardsWithInstanceOf.json | 16 +- ...sWithInstanceOfByConstructorSignature.json | 172 +- ...ardsWithInstanceOfBySymbolHasInstance.json | 204 +- .../tests/tsc/typeInferenceWithTupleType.json | 16 +- .../tests/tsc/typeOfThisGeneral.json | 156 +- .../tests/tsc/typeOfThisInAccessor.json | 24 +- .../tsc/typeOfThisInConstructorParamList.json | 4 +- .../tsc/typeOfThisInFunctionExpression.json | 8 +- .../tests/tsc/typeOfThisInInstanceMember.json | 72 +- .../tsc/typeOfThisInInstanceMember2.json | 84 +- .../tsc/typeOfThisInMemberFunctions.json | 32 +- .../tests/tsc/typeOfThisInStaticMembers.json | 52 +- .../tsc/typeOfThisInStaticMembers10.json | 152 +- .../tsc/typeOfThisInStaticMembers11.json | 152 +- .../tests/tsc/typeOfThisInStaticMembers2.json | 8 +- .../tests/tsc/typeOfThisInStaticMembers3.json | 36 +- .../tests/tsc/typeOfThisInStaticMembers4.json | 36 +- .../tests/tsc/typeOfThisInStaticMembers5.json | 8 +- .../tests/tsc/typeOfThisInStaticMembers6.json | 8 +- .../tests/tsc/typeOfThisInStaticMembers7.json | 36 +- .../tests/tsc/typeOfThisInStaticMembers8.json | 56 +- .../tests/tsc/typeOfThisInStaticMembers9.json | 56 +- ...tanceMemberNarrowedWithLoopAntecedent.json | 64 +- .../tests/tsc/typeOnlyMerge3.json | 4 +- .../tsc/typeParameterAsTypeArgument.json | 4 +- ...ypeParameterAsTypeParameterConstraint.json | 24 +- ...peParameterAsTypeParameterConstraint2.json | 8 +- ...AsTypeParameterConstraintTransitively.json | 48 +- ...sTypeParameterConstraintTransitively2.json | 36 +- .../tsc/typeParameterAssignability3.json | 32 +- ...meterConstModifiersReverseMappedTypes.json | 40 +- ...rameterConstModifiersWithIntersection.json | 16 +- ...rameterUsedAsTypeParameterConstraint4.json | 8 +- ...ypeParametersAreIdenticalToThemselves.json | 84 +- .../typeParametersAvailableInNestedScope.json | 28 +- .../tests/tsc/typeQueryOnClass.json | 88 +- .../tests/tsc/typeQueryWithReservedWords.json | 60 +- .../tests/tsc/typeRelationships.json | 164 +- .../typeSatisfaction_contextualTyping1.json | 8 +- .../typeSatisfaction_contextualTyping2.json | 12 +- .../typeSatisfaction_contextualTyping3.json | 8 +- .../typeSatisfaction_ensureInterfaceImpl.json | 12 +- ...atisfaction_optionalMemberConformance.json | 20 +- ...typeSatisfaction_propNameConstraining.json | 32 +- ...eSatisfaction_propertyNameFulfillment.json | 32 +- ...atisfaction_propertyValueConformance1.json | 24 +- ...atisfaction_propertyValueConformance2.json | 24 +- ...atisfaction_propertyValueConformance3.json | 48 +- ..._vacuousIntersectionOfContextualTypes.json | 4 +- ...ircularReferenceOnConstructorFunction.json | 4 +- .../tests/tsc/typeTagModuleExports.json | 4 +- .../tsc/typeTagOnPropertyAssignment.json | 16 +- .../tests/tsc/typeTagPrototypeAssignment.json | 4 +- .../tests/tsc/typedefCrossModule.json | 28 +- .../tests/tsc/typedefCrossModule2.json | 28 +- .../tests/tsc/typedefCrossModule3.json | 8 +- .../tests/tsc/typedefCrossModule4.json | 8 +- .../tests/tsc/typedefInnerNamepaths.json | 4 +- .../tsc/typedefOnSemicolonClassElement.json | 4 +- .../tsc/typedefTagExtraneousProperty.json | 8 +- .../tests/tsc/typedefTagNested.json | 40 +- .../tests/tsc/typedefTagWrapping.json | 28 +- .../tests/tsc/typeofANonExportedType.json | 40 +- .../tests/tsc/typeofAnExportedType.json | 40 +- .../tests/tsc/typeofClass2.json | 36 +- .../tests/tsc/typeofClassWithPrivates.json | 16 +- .../tests/tsc/typeofImportTypeOnlyExport.json | 4 +- .../tests/tsc/typeofModuleWithoutExports.json | 4 +- .../tsc/typeofOperatorWithAnyOtherType.json | 88 +- .../tsc/typeofOperatorWithBooleanType.json | 84 +- .../tests/tsc/typeofOperatorWithEnumType.json | 12 +- .../tsc/typeofOperatorWithNumberType.json | 104 +- .../tsc/typeofOperatorWithStringType.json | 100 +- .../swc_ecma_parser/tests/tsc/typeofThis.json | 316 +- .../tests/tsc/typeofThisWithImplicitThis.json | 8 +- .../tsc/types.asyncGenerators.es2018.1.json | 64 +- .../tsc/types.asyncGenerators.es2018.2.json | 4 +- .../tests/tsc/typesWithOptionalProperty.json | 24 +- .../tsc/typesWithPrivateConstructor.json | 20 +- .../tsc/typesWithProtectedConstructor.json | 20 +- .../tests/tsc/typesWithPublicConstructor.json | 20 +- .../typesWithSpecializedCallSignatures.json | 40 +- ...pesWithSpecializedConstructSignatures.json | 28 +- .../tsc/unannotatedParametersAreOptional.json | 40 +- .../tsc/undefinedAssignableToEveryType.json | 4 +- .../tsc/undefinedIsSubtypeOfEverything.json | 96 +- .../tsc/unionAndIntersectionInference1.json | 36 +- .../tsc/unionAndIntersectionInference3.json | 4 +- ...ubtypeIfEveryConstituentTypeIsSubtype.json | 12 +- .../tests/tsc/unionThisTypeInFunctions.json | 4 +- .../tests/tsc/unionTypeCallSignatures6.json | 24 +- .../tests/tsc/unionTypeEquivalence.json | 4 +- .../tests/tsc/unionTypeFromArrayLiteral.json | 16 +- .../tests/tsc/unionTypeInference.json | 4 +- .../tests/tsc/unionTypeMembers.json | 56 +- .../tsc/unionTypePropertyAccessibility.json | 76 +- .../tests/tsc/unionTypeReadonly.json | 20 +- .../tests/tsc/unionTypeReduction2.json | 36 +- .../tsc/unionTypeWithIndexSignature.json | 24 +- .../tests/tsc/unionTypesAssignability.json | 8 +- .../tests/tsc/uniqueSymbols.json | 448 +- .../tests/tsc/uniqueSymbolsDeclarations.json | 432 +- .../tsc/uniqueSymbolsDeclarationsErrors.json | 16 +- .../tsc/uniqueSymbolsDeclarationsInJs.json | 24 +- .../uniqueSymbolsDeclarationsInJsErrors.json | 12 +- .../tests/tsc/unknownControlFlow.json | 24 +- .../tests/tsc/unknownType1.json | 40 +- .../tests/tsc/unknownType2.json | 208 +- .../tsc/untypedModuleImport_allowJs.json | 12 +- .../tests/tsc/useObjectValuesAndEntries1.json | 84 +- .../tests/tsc/useObjectValuesAndEntries2.json | 16 +- .../tests/tsc/useObjectValuesAndEntries3.json | 16 +- .../tests/tsc/useObjectValuesAndEntries4.json | 16 +- .../tests/tsc/usePromiseFinally.json | 4 +- .../tests/tsc/useRegexpGroups.json | 40 +- .../tests/tsc/useSharedArrayBuffer1.json | 8 +- .../tests/tsc/useSharedArrayBuffer2.json | 8 +- .../tests/tsc/useSharedArrayBuffer3.json | 8 +- .../tests/tsc/useSharedArrayBuffer4.json | 16 +- .../tests/tsc/useSharedArrayBuffer5.json | 8 +- .../tests/tsc/useSharedArrayBuffer6.json | 8 +- .../tests/tsc/usingDeclarations.1.json | 176 +- .../tests/tsc/usingDeclarations.11.json | 28 +- .../tests/tsc/usingDeclarations.12.json | 16 +- .../tests/tsc/usingDeclarations.15.json | 4 +- .../tests/tsc/usingDeclarations.2.json | 8 +- .../tests/tsc/usingDeclarations.3.json | 8 +- .../usingDeclarationsDeclarationEmit.1.json | 8 +- .../usingDeclarationsDeclarationEmit.2.json | 8 +- .../tsc/usingDeclarationsInForAwaitOf.json | 4 +- .../tests/tsc/usingDeclarationsInForOf.1.json | 4 +- ...medEvaluationDecoratorsAndClassFields.json | 24 +- .../usingDeclarationsTopLevelOfModule.1.json | 8 +- .../usingDeclarationsTopLevelOfModule.2.json | 8 +- .../usingDeclarationsTopLevelOfModule.3.json | 8 +- .../tests/tsc/validEnumAssignments.json | 16 +- .../validMultipleVariableDeclarations.json | 40 +- .../tests/tsc/validNullAssignments.json | 8 +- .../tests/tsc/validNumberAssignments.json | 4 +- .../tests/tsc/validUndefinedAssignments.json | 4 +- .../tests/tsc/valuesMergingAcrossModules.json | 4 +- .../tests/tsc/varRequireFromJavascript.json | 28 +- .../tests/tsc/varRequireFromTypescript.json | 28 +- .../tests/tsc/variadicTuples1.json | 4 +- .../swc_ecma_parser/tests/tsc/variance.json | 24 +- .../verbatimModuleSyntaxConstEnumUsage.json | 8 +- ...batimModuleSyntaxInternalImportEquals.json | 16 +- .../verbatimModuleSyntaxRestrictionsCJS.json | 4 +- .../tsc/voidOperatorWithAnyOtherType.json | 44 +- .../tsc/voidOperatorWithBooleanType.json | 36 +- .../tests/tsc/voidOperatorWithEnumType.json | 4 +- .../tests/tsc/voidOperatorWithNumberType.json | 52 +- .../tests/tsc/voidOperatorWithStringType.json | 48 +- .../tsc/voidParamAssignmentCompatibility.json | 4 +- .../tests/tsc/whileBreakStatements.json | 56 +- .../tests/tsc/whileContinueStatements.json | 64 +- crates/swc_ecma_parser/tests/tsc/witness.json | 76 +- .../tsc/wrappedAndRecursiveConstraints.json | 12 +- .../tsc/wrappedAndRecursiveConstraints2.json | 4 +- .../tsc/wrappedAndRecursiveConstraints3.json | 24 +- .../tsc/wrappedAndRecursiveConstraints4.json | 24 +- .../tests/typescript/case1/input.ts.json | 4 +- .../cast/need-parentheses/input.ts.json | 12 +- .../input.ts.json | 4 +- .../typescript/class/abstract/input.ts.json | 20 +- .../class/auto-accessor/input.ts.json | 40 +- .../input.ts.json | 8 +- .../class/constructor/input.ts.json | 12 +- .../typescript/class/declare/input.ts.json | 16 +- .../typescript/class/decorators/input.ts.json | 20 +- .../input.ts.json | 8 +- .../class/expression-implements/input.ts.json | 8 +- .../class/extends-implements/input.ts.json | 4 +- .../class/get-generic/input.ts.json | 4 +- .../class/get-set-asi-issue/input.ts.json | 8 +- .../typescript/class/implements/input.ts.json | 4 +- .../members-with-modifier-names/input.ts.json | 16 +- .../members-with-reserved-names/input.ts.json | 4 +- .../class/method-computed/input.ts.json | 8 +- .../class/method-generic/input.ts.json | 8 +- .../class/method-no-body/input.ts.json | 8 +- .../class/method-optional/input.ts.json | 4 +- .../class/method-return-type/input.ts.json | 16 +- .../input.ts.json | 4 +- .../input.ts.json | 8 +- .../class/modifier-override/input.ts.json | 32 +- .../class/modifiers-accessors/input.ts.json | 28 +- .../modifiers-methods-async/input.ts.json | 28 +- .../class/modifiers-properties/input.ts.json | 80 +- .../override-parameter-property/input.ts.json | 20 +- .../typescript/class/override/input.ts.json | 16 +- .../typescript/class/properties/input.ts.json | 32 +- .../class/property-computed/input.ts.json | 8 +- .../class/property-declare/input.ts.json | 16 +- .../class/property-private/input.ts.json | 8 +- .../typescript/class/static/input.ts.json | 16 +- .../tests/typescript/cts/1.cts.json | 4 +- .../custom/arrow/complex-tsc/input.ts.json | 4 +- .../custom/arrow/complex/input.ts.json | 16 +- .../dynamic-import-expr-ctx/input.ts.json | 8 +- .../dynamic-import-top-level/input.ts.json | 4 +- .../typescript/custom/issue-236/input.ts.json | 24 +- .../typescript/custom/issue-259/input.ts.json | 4 +- .../custom/issue-327-1/input.ts.json | 12 +- .../custom/issue-327-2/input.ts.json | 12 +- .../typescript/custom/issue-338/input.ts.json | 8 +- .../typescript/custom/issue-374/input.ts.json | 4 +- .../input.ts.json | 4 +- .../input.ts.json | 4 +- .../typescript/custom/issue-496/input.ts.json | 24 +- .../custom/issue-709-2/input.ts.json | 4 +- .../custom/issue-709-3/input.ts.json | 4 +- .../custom/issue-709/input.d.ts.json | 4 +- .../typescript/custom/issue-716/input.ts.json | 4 +- .../decorators/parameter/input.ts.json | 8 +- .../typescript/deno-1671/case1/input.ts.json | 4 +- .../typescript/deno-8925/case1/input.ts.json | 4 +- .../typescript/deno-8925/case2/input.ts.json | 4 +- .../2021-02-17/case2/input.tsx.json | 4 +- .../typescript/deno/dso/reflect/input.ts.json | 1000 +- .../dynamic-import/expr/input.ts.json | 8 +- .../dynamic-import/top/input.ts.json | 16 +- .../export/test1/input.ts.json | 4 +- .../export/test2/input.tsx.json | 4 +- .../export/test3/input.ts.json | 4 +- .../stmt/test1/input.ts.json | 4 +- .../stmt/test2/input.ts.json | 4 +- .../typescript/import/equals/input.ts.json | 8 +- .../import/export-import/input.ts.json | 8 +- .../instantiation-expr/asi/input.ts.json | 36 +- .../instantiation-expr/base/input.ts.json | 12 +- .../interface/extends/input.ts.json | 4 +- .../interface/method-computed/input.ts.json | 8 +- .../interface/property-computed/input.ts.json | 8 +- .../typescript/issue-1066/case1/input.ts.json | 4 +- .../tests/typescript/issue-1449/input.ts.json | 4 +- .../typescript/issue-1454/case2/input.ts.json | 4 +- .../typescript/issue-1454/case3/input.ts.json | 4 +- .../tests/typescript/issue-1503/input.ts.json | 4 +- .../issue-1505/case1/input.tsx.json | 4 +- .../issue-1505/case2/input.tsx.json | 196 +- .../typescript/issue-1514/case1/input.ts.json | 4 +- .../typescript/issue-1558/case1/input.ts.json | 24 +- .../typescript/issue-1708/case1/input.ts.json | 4 +- .../typescript/issue-1751/case1/input.ts.json | 4 +- .../typescript/issue-2160/case1/input.ts.json | 12 +- .../typescript/issue-2160/case2/input.ts.json | 8 +- .../typescript/issue-2160/case3/input.ts.json | 4 +- .../issue-2161/case1/input.tsx.json | 20 +- .../typescript/issue-2196/ts/input.ts.json | 4 +- .../typescript/issue-2196/tsx/input.ts.json | 4 +- .../issue-2237/case1/input.tsx.json | 4 +- .../issue-2237/case2/input.tsx.json | 4 +- .../tests/typescript/issue-2417/input.ts.json | 60 +- .../typescript/issue-3241/1/input.tsx.json | 4 +- .../typescript/issue-3241/2/input.tsx.json | 4 +- .../tests/typescript/issue-3337/input.ts.json | 16 +- .../tests/typescript/issue-3341/input.ts.json | 20 +- .../tests/typescript/issue-4132/index.ts.json | 4 +- .../typescript/issue-4296/1/input.tsx.json | 20 +- .../typescript/issue-4911/2/input.ts.json | 4 +- .../typescript/issue-4911/3/input.ts.json | 16 +- .../tests/typescript/issue-4937/index.ts.json | 4 +- .../tests/typescript/issue-6430/index.ts.json | 4 +- .../typescript/issue-6601/index.tsx.json | 136 +- .../tests/typescript/issue-6739/1.ts.json | 4 +- .../tests/typescript/issue-6739/2.tsx.json | 4 +- .../typescript/issue-6976/1/input.ts.json | 4 +- .../typescript/issue-7042/case1/input.ts.json | 4 +- .../typescript/issue-7042/case2/input.ts.json | 4 +- .../typescript/issue-7042/case3/input.ts.json | 4 +- .../typescript/issue-7224/1/input.tsx.json | 12 +- .../typescript/issue-7580/input.tsx.json | 4 +- .../tests/typescript/issue-8073/input.ts.json | 8 +- .../tests/typescript/issue-812/input.ts.json | 4 +- .../tests/typescript/issue-8209/input.ts.json | 4 +- .../tests/typescript/issue-8526/input.ts.json | 12 +- .../typescript/issue-8735/1/input.ts.json | 4 +- .../typescript/issue-8735/2/input.tsx.json | 4 +- .../tests/typescript/issue-913/input.ts.json | 1148 +- .../tests/typescript/issue-915/input.ts.json | 8 +- .../tests/typescript/issue-944/input.ts.json | 4 +- .../tests/typescript/issue-947/input.ts.json | 4 +- .../typescript/jssue-7428/1/input.ts.json | 12 +- .../typescript/jssue-7428/2/input.tsx.json | 12 +- .../new-target/in-class/input.ts.json | 8 +- .../tests/typescript/mts/1.mts.json | 4 +- .../tests/typescript/next/0001/input.tsx.json | 4 +- .../next/stack-overflow/1/input.ts.json | 17636 ++++------------ .../object/getter-prop/input.ts.json | 8 +- .../method-async-generator/input.ts.json | 4 +- .../input.ts.json | 36 +- .../constructor-call/input.ts.json | 8 +- .../function-call/input.ts.json | 12 +- .../member-access-bracket/input.ts.json | 8 +- .../member-access/input.ts.json | 20 +- .../optioanl-chain-expression/input.ts.json | 8 +- .../input.ts.json | 4 +- .../parenthised-chain/input.ts.json | 32 +- .../separated-chaining/input.ts.json | 40 +- .../super-method-class/input.ts.json | 8 +- .../type-arguments/input.ts.json | 8 +- .../tests/typescript/stack-size/input.ts.json | 4 +- .../types/object-shorthand/input.ts.json | 4 +- .../typescript/types/typeof/input.ts.json | 8 +- .../variance-annotations/1/input.ts.json | 44 +- .../with_jsx/input.tsx.json | 44 +- .../typescript/vercel/web-875/input.ts.json | 60 +- 2792 files changed, 29759 insertions(+), 83043 deletions(-) diff --git a/crates/swc_ecma_parser/tests/comments/exprs/array/blockStmt/input.js.span.swc-stderr b/crates/swc_ecma_parser/tests/comments/exprs/array/blockStmt/input.js.span.swc-stderr index a7ab0804ca9b..ebb70f6e2011 100644 --- a/crates/swc_ecma_parser/tests/comments/exprs/array/blockStmt/input.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/comments/exprs/array/blockStmt/input.js.span.swc-stderr @@ -62,12 +62,6 @@ ,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] 1 | React.useEffect(() => { : ^^^^^ - 2 | // @refresh reset - `---- - x Ident - ,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] - 1 | React.useEffect(() => { - : ^^^^^^^^^ 2 | // @refresh reset `---- x ExprOrSpread diff --git a/crates/swc_ecma_parser/tests/comments/exprs/paren-pure/1/input.js.span.swc-stderr b/crates/swc_ecma_parser/tests/comments/exprs/paren-pure/1/input.js.span.swc-stderr index 93a38ac855b0..af7464b5d1d1 100644 --- a/crates/swc_ecma_parser/tests/comments/exprs/paren-pure/1/input.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/comments/exprs/paren-pure/1/input.js.span.swc-stderr @@ -63,11 +63,6 @@ 1 | /*#__PURE__*/ (console.log('simple')) : ^^^^^^^ `---- - x Ident - ,-[$DIR/tests/comments/exprs/paren-pure/1/input.js:1:1] - 1 | /*#__PURE__*/ (console.log('simple')) - : ^^^ - `---- x ExprOrSpread ,-[$DIR/tests/comments/exprs/paren-pure/1/input.js:1:1] 1 | /*#__PURE__*/ (console.log('simple')) diff --git a/crates/swc_ecma_parser/tests/comments/issue-4876/input.js.span.swc-stderr b/crates/swc_ecma_parser/tests/comments/issue-4876/input.js.span.swc-stderr index 3f5df22816df..124e51f7e116 100644 --- a/crates/swc_ecma_parser/tests/comments/issue-4876/input.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/comments/issue-4876/input.js.span.swc-stderr @@ -73,13 +73,6 @@ 9 | // a 10 | console.log(1); : ^^^^^^^ - 11 | // b - `---- - x Ident - ,-[$DIR/tests/comments/issue-4876/input.js:10:1] - 9 | // a - 10 | console.log(1); - : ^^^ 11 | // b `---- x ExprOrSpread diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json index 3a527ea6b7dc..65afc9fb0211 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json @@ -55,9 +55,7 @@ "start": 38, "end": 42 }, - "ctxt": 0, - "value": "attr", - "optional": false + "value": "attr" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json index f565bb1a0633..98cef32d451d 100644 --- a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json +++ b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json @@ -66,9 +66,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -125,9 +123,7 @@ "start": 56, "end": 59 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -203,9 +199,7 @@ "start": 81, "end": 84 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json index 8c56ec3b8314..25be528ffe0b 100644 --- a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json +++ b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json @@ -70,9 +70,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -132,9 +130,7 @@ "start": 56, "end": 59 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -213,9 +209,7 @@ "start": 81, "end": 84 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json index 7fda3f55f5cc..76618b5c2f62 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json @@ -56,9 +56,7 @@ "start": 22, "end": 26 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" }, "value": { "type": "ObjectExpression", @@ -75,9 +73,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json index 817e4040025b..699a698fb5fc 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", @@ -125,9 +123,7 @@ "start": 86, "end": 89 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json index 93f3d21d17da..63c9fbdbd3a7 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json @@ -94,9 +94,7 @@ "start": 41, "end": 45 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" }, "value": { "type": "ObjectExpression", @@ -113,9 +111,7 @@ "start": 49, "end": 53 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json index 2a877d7e1a2b..877776ea0c3c 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json @@ -55,9 +55,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -134,9 +132,7 @@ "start": 90, "end": 94 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json index 996ba16c101d..7e1abf581ab9 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json @@ -55,9 +55,7 @@ "start": 40, "end": 44 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json index 25f400be5cf3..b2c9673661e3 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json @@ -36,9 +36,7 @@ "start": 33, "end": 37 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json index f02189fa0f71..ca675fc2c71f 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json @@ -66,9 +66,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json index 4354085f10b1..8f2a980bd82a 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json @@ -65,9 +65,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json index 2b4edecaecff..f1180fa514e4 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json @@ -66,9 +66,7 @@ "start": 50, "end": 54 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json index cb1e586150ae..7c56f265818c 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json @@ -57,9 +57,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 57, "end": 61 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -100,9 +96,7 @@ "start": 69, "end": 80 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json index 96fb664123bb..98c3ea980ec3 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json @@ -57,9 +57,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json index af122d09937f..97f955a35ce6 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json @@ -57,9 +57,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 57, "end": 71 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json index d2cce8a7e3cf..132387fb0a6e 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json @@ -37,9 +37,7 @@ "start": 19, "end": 23 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json index 1f093dba366a..14f33663844e 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json @@ -37,9 +37,7 @@ "start": 19, "end": 23 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json index 48da9c52fc20..c00ad7da95d1 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json index 58c6420966e9..a78a3a94d1f3 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 49, "end": 53 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -98,9 +94,7 @@ "start": 61, "end": 72 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json index e4f4a8784c25..fd09c30f38b7 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json index 643dad1f80c5..2368ee8be68c 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 49, "end": 63 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json index 48da9c52fc20..c00ad7da95d1 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json index 93421932a022..17ce1ffb1e7d 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json @@ -56,9 +56,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -75,9 +73,7 @@ "start": 32, "end": 36 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json index 18375d096e2f..64f047363b84 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 40 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", @@ -125,9 +123,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json index b13f3e30adbd..db1596ac9b36 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json @@ -94,9 +94,7 @@ "start": 41, "end": 47 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -113,9 +111,7 @@ "start": 51, "end": 55 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json index f256fbe07c57..5c37a557c3bc 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json @@ -55,9 +55,7 @@ "start": 32, "end": 36 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -134,9 +132,7 @@ "start": 94, "end": 98 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json index 0f79b30c2e05..da07ec3915b4 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json @@ -55,9 +55,7 @@ "start": 42, "end": 46 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json index b2ae58b091fd..60bbb5ab5ae3 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json @@ -36,9 +36,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json index 36fe636f341c..9a0cded887e5 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json @@ -66,9 +66,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json index 7c7fb640cdd5..7e330b8308af 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json @@ -65,9 +65,7 @@ "start": 47, "end": 51 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json index 87784fe4a791..4cca6b786b2f 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json @@ -66,9 +66,7 @@ "start": 52, "end": 56 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json index d5026a503b64..57d5bac276e8 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json @@ -57,9 +57,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 59, "end": 63 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -100,9 +96,7 @@ "start": 71, "end": 82 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json index c9c7ef6f2563..22de30777e2f 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json @@ -57,9 +57,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json index 949eca33a431..e7b9515ff184 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json @@ -57,9 +57,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 59, "end": 73 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json index 56492b00c86e..164c550e8c48 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json @@ -37,9 +37,7 @@ "start": 21, "end": 25 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json index 61004ea148d7..533d59458118 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json @@ -37,9 +37,7 @@ "start": 21, "end": 25 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json index 03b9fb222025..220cc8596f51 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json index 062a6365426f..95ff1de60f37 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 51, "end": 55 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -98,9 +94,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json index 0f13fae4170a..b950c290c167 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json index c4ce7a55fafe..083867b540d7 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 51, "end": 65 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json index 03b9fb222025..220cc8596f51 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json index 51035e5ca5ec..a534c98a131e 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json @@ -37,9 +37,7 @@ "start": 23, "end": 27 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json index 93421932a022..17ce1ffb1e7d 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json @@ -56,9 +56,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -75,9 +73,7 @@ "start": 32, "end": 36 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json index ef519e2960f0..2d82c05c91d9 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json @@ -81,9 +81,7 @@ "start": 34, "end": 40 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -100,9 +98,7 @@ "start": 44, "end": 48 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json index 18375d096e2f..64f047363b84 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 40 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", @@ -125,9 +123,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json index b13f3e30adbd..db1596ac9b36 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json @@ -94,9 +94,7 @@ "start": 41, "end": 47 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -113,9 +111,7 @@ "start": 51, "end": 55 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json index f256fbe07c57..5c37a557c3bc 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json @@ -55,9 +55,7 @@ "start": 32, "end": 36 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -134,9 +132,7 @@ "start": 94, "end": 98 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json index 0f79b30c2e05..da07ec3915b4 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json @@ -55,9 +55,7 @@ "start": 42, "end": 46 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json index b2ae58b091fd..60bbb5ab5ae3 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json @@ -36,9 +36,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json index 36fe636f341c..9a0cded887e5 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json @@ -66,9 +66,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json index 7c7fb640cdd5..7e330b8308af 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json @@ -65,9 +65,7 @@ "start": 47, "end": 51 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json index 87784fe4a791..4cca6b786b2f 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json @@ -66,9 +66,7 @@ "start": 52, "end": 56 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json index d5026a503b64..57d5bac276e8 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json @@ -57,9 +57,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 59, "end": 63 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -100,9 +96,7 @@ "start": 71, "end": 82 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json index c9c7ef6f2563..22de30777e2f 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json @@ -57,9 +57,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json index 949eca33a431..e7b9515ff184 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json @@ -57,9 +57,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 59, "end": 73 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json index 56492b00c86e..164c550e8c48 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json @@ -37,9 +37,7 @@ "start": 21, "end": 25 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json index 61004ea148d7..533d59458118 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json @@ -37,9 +37,7 @@ "start": 21, "end": 25 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json index 03b9fb222025..220cc8596f51 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json index 062a6365426f..95ff1de60f37 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 51, "end": 55 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -98,9 +94,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json index 0f13fae4170a..b950c290c167 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json index c4ce7a55fafe..083867b540d7 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 51, "end": 65 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json index 03b9fb222025..220cc8596f51 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json @@ -55,9 +55,7 @@ "start": 37, "end": 41 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json index 7fda3f55f5cc..76618b5c2f62 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json @@ -56,9 +56,7 @@ "start": 22, "end": 26 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" }, "value": { "type": "ObjectExpression", @@ -75,9 +73,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json index 817e4040025b..699a698fb5fc 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", @@ -125,9 +123,7 @@ "start": 86, "end": 89 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json index 93f3d21d17da..63c9fbdbd3a7 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json @@ -94,9 +94,7 @@ "start": 41, "end": 45 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" }, "value": { "type": "ObjectExpression", @@ -113,9 +111,7 @@ "start": 49, "end": 53 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json index 2a877d7e1a2b..877776ea0c3c 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json @@ -55,9 +55,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -134,9 +132,7 @@ "start": 90, "end": 94 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json index 996ba16c101d..7e1abf581ab9 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json @@ -55,9 +55,7 @@ "start": 40, "end": 44 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json index 25f400be5cf3..b2c9673661e3 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json @@ -36,9 +36,7 @@ "start": 33, "end": 37 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json index f02189fa0f71..ca675fc2c71f 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json @@ -66,9 +66,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json index 4354085f10b1..8f2a980bd82a 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json @@ -65,9 +65,7 @@ "start": 45, "end": 49 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json index 2b4edecaecff..f1180fa514e4 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json @@ -66,9 +66,7 @@ "start": 50, "end": 54 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json index cb1e586150ae..7c56f265818c 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json @@ -57,9 +57,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 57, "end": 61 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -100,9 +96,7 @@ "start": 69, "end": 80 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json index 96fb664123bb..98c3ea980ec3 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json @@ -57,9 +57,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json index af122d09937f..97f955a35ce6 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json @@ -57,9 +57,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -79,9 +77,7 @@ "start": 57, "end": 71 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json index d2cce8a7e3cf..132387fb0a6e 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json @@ -37,9 +37,7 @@ "start": 19, "end": 23 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json index 1f093dba366a..14f33663844e 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json @@ -37,9 +37,7 @@ "start": 19, "end": 23 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json index 48da9c52fc20..c00ad7da95d1 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json index 58c6420966e9..a78a3a94d1f3 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 49, "end": 53 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "BooleanLiteral", @@ -98,9 +94,7 @@ "start": 61, "end": 72 }, - "ctxt": 0, - "value": "startAtLine", - "optional": false + "value": "startAtLine" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json index e4f4a8784c25..fd09c30f38b7 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "lazy", - "optional": false + "value": "lazy" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json index 643dad1f80c5..2368ee8be68c 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -77,9 +75,7 @@ "start": 49, "end": 63 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json index 48da9c52fc20..c00ad7da95d1 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json @@ -55,9 +55,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/issue-5276/input.js.json b/crates/swc_ecma_parser/tests/js/issue-5276/input.js.json index c453c7ac7a3b..855d491739c5 100644 --- a/crates/swc_ecma_parser/tests/js/issue-5276/input.js.json +++ b/crates/swc_ecma_parser/tests/js/issue-5276/input.js.json @@ -43,9 +43,7 @@ "start": 47, "end": 53 }, - "ctxt": 0, - "value": "export", - "optional": false + "value": "export" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/js/jssue-7428/1/input.js.json b/crates/swc_ecma_parser/tests/js/jssue-7428/1/input.js.json index 56ada52f3884..1c1ed8311a3a 100644 --- a/crates/swc_ecma_parser/tests/js/jssue-7428/1/input.js.json +++ b/crates/swc_ecma_parser/tests/js/jssue-7428/1/input.js.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -100,9 +98,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ClassExpression", @@ -126,9 +122,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/js/optional-chaining/1/input.js.json b/crates/swc_ecma_parser/tests/js/optional-chaining/1/input.js.json index 95e1fc26223c..abf438a94be2 100644 --- a/crates/swc_ecma_parser/tests/js/optional-chaining/1/input.js.json +++ b/crates/swc_ecma_parser/tests/js/optional-chaining/1/input.js.json @@ -80,9 +80,7 @@ "start": 6, "end": 7 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -92,9 +90,7 @@ "start": 9, "end": 10 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -104,9 +100,7 @@ "start": 12, "end": 13 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, diff --git a/crates/swc_ecma_parser/tests/js/optional-chaining/2/input.js.json b/crates/swc_ecma_parser/tests/js/optional-chaining/2/input.js.json index 9171f156c8c2..7fb6f78863a9 100644 --- a/crates/swc_ecma_parser/tests/js/optional-chaining/2/input.js.json +++ b/crates/swc_ecma_parser/tests/js/optional-chaining/2/input.js.json @@ -109,9 +109,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -129,9 +127,7 @@ "start": 11, "end": 12 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, diff --git a/crates/swc_ecma_parser/tests/js/optional-chaining/3/input.js.json b/crates/swc_ecma_parser/tests/js/optional-chaining/3/input.js.json index 3c3f07189d15..3bf9b413e293 100644 --- a/crates/swc_ecma_parser/tests/js/optional-chaining/3/input.js.json +++ b/crates/swc_ecma_parser/tests/js/optional-chaining/3/input.js.json @@ -53,9 +53,7 @@ "start": 10, "end": 15 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } } }, @@ -65,9 +63,7 @@ "start": 16, "end": 20 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } diff --git a/crates/swc_ecma_parser/tests/js/optional-chaining/4/input.js.json b/crates/swc_ecma_parser/tests/js/optional-chaining/4/input.js.json index e25556fda782..3a59824c9fe5 100644 --- a/crates/swc_ecma_parser/tests/js/optional-chaining/4/input.js.json +++ b/crates/swc_ecma_parser/tests/js/optional-chaining/4/input.js.json @@ -53,9 +53,7 @@ "start": 6, "end": 7 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -65,9 +63,7 @@ "start": 8, "end": 9 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/js/optional-chaining/5/input.js.json b/crates/swc_ecma_parser/tests/js/optional-chaining/5/input.js.json index f2f2edc244fa..6fa37984e3ae 100644 --- a/crates/swc_ecma_parser/tests/js/optional-chaining/5/input.js.json +++ b/crates/swc_ecma_parser/tests/js/optional-chaining/5/input.js.json @@ -47,9 +47,7 @@ "start": 5, "end": 6 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json index 91e60c76e179..ae15a1a63257 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json @@ -55,9 +55,7 @@ "start": 33, "end": 37 }, - "ctxt": 0, - "value": "attr", - "optional": false + "value": "attr" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json index 7a87a1d05d0e..98639579abf9 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json @@ -56,9 +56,7 @@ "start": 22, "end": 26 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" }, "value": { "type": "ObjectExpression", @@ -75,9 +73,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "attr", - "optional": false + "value": "attr" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/js/stack-overflow/1.js.json b/crates/swc_ecma_parser/tests/js/stack-overflow/1.js.json index 81fa23f82510..2908043bd97f 100644 --- a/crates/swc_ecma_parser/tests/js/stack-overflow/1.js.json +++ b/crates/swc_ecma_parser/tests/js/stack-overflow/1.js.json @@ -2240,9 +2240,7 @@ "start": 21409, "end": 21412 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/jsx/basic/13/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/13/input.js.json index 4a0d93815885..bba75865701b 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/13/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/13/input.js.json @@ -46,9 +46,7 @@ "start": 12, "end": 16 }, - "ctxt": 0, - "value": "left", - "optional": false + "value": "left" }, "value": { "type": "JSXElement", @@ -92,9 +90,7 @@ "start": 23, "end": 28 }, - "ctxt": 0, - "value": "right", - "optional": false + "value": "right" }, "value": { "type": "JSXElement", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/14/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/14/input.js.json index 6759abc7e874..842390ab515b 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/14/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/14/input.js.json @@ -21,6 +21,10 @@ "type": "JSXOpeningElement", "name": { "type": "JSXMemberExpression", + "span": { + "start": 2, + "end": 5 + }, "object": { "type": "Identifier", "span": { @@ -37,9 +41,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "span": { @@ -59,6 +61,10 @@ }, "name": { "type": "JSXMemberExpression", + "span": { + "start": 8, + "end": 11 + }, "object": { "type": "Identifier", "span": { @@ -75,9 +81,7 @@ "start": 10, "end": 11 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/15/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/15/input.js.json index 021e834193dd..be8f6a627a32 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/15/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/15/input.js.json @@ -21,8 +21,16 @@ "type": "JSXOpeningElement", "name": { "type": "JSXMemberExpression", + "span": { + "start": 2, + "end": 7 + }, "object": { "type": "JSXMemberExpression", + "span": { + "start": 2, + "end": 5 + }, "object": { "type": "Identifier", "span": { @@ -39,9 +47,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -50,9 +56,7 @@ "start": 6, "end": 7 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "span": { @@ -72,8 +76,16 @@ }, "name": { "type": "JSXMemberExpression", + "span": { + "start": 10, + "end": 15 + }, "object": { "type": "JSXMemberExpression", + "span": { + "start": 10, + "end": 13 + }, "object": { "type": "Identifier", "span": { @@ -90,9 +102,7 @@ "start": 12, "end": 13 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -101,9 +111,7 @@ "start": 14, "end": 15 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json index e17f07821d80..03dbb841c0c9 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json @@ -63,9 +63,7 @@ "start": 17, "end": 21 }, - "ctxt": 0, - "value": "post", - "optional": false + "value": "post" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json index 84e6e571d3bf..805f51354da8 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json @@ -46,9 +46,7 @@ "start": 6, "end": 9 }, - "ctxt": 0, - "value": "pre", - "optional": false + "value": "pre" }, "value": { "type": "StringLiteral", @@ -72,9 +70,7 @@ "start": 20, "end": 24 }, - "ctxt": 0, - "value": "pre2", - "optional": false + "value": "pre2" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/2/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/2/input.js.json index ae12ba214707..8c663abd7196 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/2/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/2/input.js.json @@ -21,15 +21,17 @@ "type": "JSXOpeningElement", "name": { "type": "JSXNamespacedName", + "span": { + "start": 2, + "end": 5 + }, "namespace": { "type": "Identifier", "span": { "start": 2, "end": 3 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "name": { "type": "Identifier", @@ -37,9 +39,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "span": { @@ -55,15 +55,17 @@ }, "name": { "type": "JSXNamespacedName", + "span": { + "start": 6, + "end": 9 + }, "namespace": { "type": "Identifier", "span": { "start": 6, "end": 7 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "name": { "type": "Identifier", @@ -71,9 +73,7 @@ "start": 8, "end": 9 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" } }, "value": null diff --git a/crates/swc_ecma_parser/tests/jsx/basic/20/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/20/input.js.json index 8ee128752ea8..8ca28a3f4ae4 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/20/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/20/input.js.json @@ -46,9 +46,7 @@ "start": 4, "end": 6 }, - "ctxt": 0, - "value": "aa", - "optional": false + "value": "aa" }, "value": { "type": "JSXExpressionContainer", @@ -84,9 +82,7 @@ "start": 11, "end": 13 }, - "ctxt": 0, - "value": "bb", - "optional": false + "value": "bb" } }, "property": { @@ -95,9 +91,7 @@ "start": 14, "end": 16 }, - "ctxt": 0, - "value": "cc", - "optional": false + "value": "cc" } } } @@ -114,9 +108,7 @@ "start": 18, "end": 20 }, - "ctxt": 0, - "value": "bb", - "optional": false + "value": "bb" }, "value": { "type": "JSXExpressionContainer", @@ -152,9 +144,7 @@ "start": 25, "end": 27 }, - "ctxt": 0, - "value": "cc", - "optional": false + "value": "cc" } }, "property": { @@ -163,9 +153,7 @@ "start": 28, "end": 30 }, - "ctxt": 0, - "value": "dd", - "optional": false + "value": "dd" } } } @@ -230,9 +218,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json index bf3ad1271219..3a53923360cd 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json @@ -42,15 +42,17 @@ }, "name": { "type": "JSXNamespacedName", + "span": { + "start": 4, + "end": 9 + }, "namespace": { "type": "Identifier", "span": { "start": 4, "end": 5 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "name": { "type": "Identifier", @@ -58,9 +60,7 @@ "start": 6, "end": 9 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "value": { diff --git a/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json index b65568a0072b..955f83a12228 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json @@ -46,9 +46,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "JSXExpressionContainer", @@ -79,9 +77,7 @@ "start": 12, "end": 13 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -105,9 +101,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -131,9 +125,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json index 71556015c930..06325336b42c 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json @@ -46,9 +46,7 @@ "start": 12, "end": 16 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/8/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/8/input.js.json index a071666cdec2..180778bd4a14 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/8/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/8/input.js.json @@ -46,9 +46,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "JSXExpressionContainer", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json index de02f352ea2e..52efdb831d18 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json @@ -67,9 +67,7 @@ "start": 17, "end": 21 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "StringLiteral", @@ -93,9 +91,7 @@ "start": 29, "end": 34 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "value": { "type": "JSXExpressionContainer", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json index 545985bc7a8b..1cecf5d33029 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json @@ -67,9 +67,7 @@ "start": 15, "end": 21 }, - "ctxt": 0, - "value": "attrib", - "optional": false + "value": "attrib" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/case1/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/case1/input.js.json index d28953ddb631..406e0fe2ce7e 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/case1/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/case1/input.js.json @@ -67,9 +67,7 @@ "start": 16, "end": 23 }, - "ctxt": 0, - "value": "onclick", - "optional": false + "value": "onclick" }, "value": { "type": "JSXExpressionContainer", @@ -92,9 +90,7 @@ "start": 27, "end": 35 }, - "ctxt": 0, - "value": "function", - "optional": false + "value": "function" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/not-keyword/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/not-keyword/input.js.json index 91158361faf8..4535df76725c 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/not-keyword/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-2075/not-keyword/input.js.json @@ -67,9 +67,7 @@ "start": 16, "end": 23 }, - "ctxt": 0, - "value": "onclick", - "optional": false + "value": "onclick" }, "value": { "type": "JSXExpressionContainer", @@ -92,9 +90,7 @@ "start": 27, "end": 30 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json index cce9901130a2..ae413c796ca9 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json @@ -548,9 +548,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-812/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-812/input.js.json index 41a655ac9d47..732cc342b8f3 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-812/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-812/input.js.json @@ -37,9 +37,7 @@ "start": 15, "end": 22 }, - "ctxt": 0, - "value": "declare", - "optional": false + "value": "declare" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/namespace-tag/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/namespace-tag/input.js.json index 693bbc0bff9e..b3c4d0a29b2c 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/namespace-tag/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/namespace-tag/input.js.json @@ -21,15 +21,17 @@ "type": "JSXOpeningElement", "name": { "type": "JSXNamespacedName", + "span": { + "start": 2, + "end": 9 + }, "namespace": { "type": "Identifier", "span": { "start": 2, "end": 5 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "name": { "type": "Identifier", @@ -37,9 +39,7 @@ "start": 6, "end": 9 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" } }, "span": { @@ -70,15 +70,17 @@ "type": "JSXOpeningElement", "name": { "type": "JSXNamespacedName", + "span": { + "start": 15, + "end": 22 + }, "namespace": { "type": "Identifier", "span": { "start": 15, "end": 18 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "name": { "type": "Identifier", @@ -86,9 +88,7 @@ "start": 19, "end": 22 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" } }, "span": { @@ -108,15 +108,17 @@ }, "name": { "type": "JSXNamespacedName", + "span": { + "start": 25, + "end": 32 + }, "namespace": { "type": "Identifier", "span": { "start": 25, "end": 28 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "name": { "type": "Identifier", @@ -124,9 +126,7 @@ "start": 29, "end": 32 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" } } } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json index e50b4eee07d4..4bc945beb1c8 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json @@ -67,9 +67,7 @@ "start": 16, "end": 23 }, - "ctxt": 0, - "value": "onclick", - "optional": false + "value": "onclick" }, "value": { "type": "JSXExpressionContainer", @@ -92,9 +90,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", @@ -199,9 +195,7 @@ "start": 65, "end": 72 }, - "ctxt": 0, - "value": "onclick", - "optional": false + "value": "onclick" }, "value": { "type": "JSXExpressionContainer", @@ -224,9 +218,7 @@ "start": 76, "end": 77 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json index 559f391d7b5b..5c7d67be35aa 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json @@ -67,9 +67,7 @@ "start": 16, "end": 23 }, - "ctxt": 0, - "value": "onclick", - "optional": false + "value": "onclick" }, "value": { "type": "JSXExpressionContainer", @@ -92,9 +90,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "TemplateLiteral", @@ -210,9 +206,7 @@ "start": 65, "end": 72 }, - "ctxt": 0, - "value": "onclick", - "optional": false + "value": "onclick" }, "value": { "type": "JSXExpressionContainer", @@ -235,9 +229,7 @@ "start": 76, "end": 77 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "TemplateLiteral", diff --git a/crates/swc_ecma_parser/tests/span/js/decl/accessor.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/decl/accessor.js.span.swc-stderr index 3663e995a084..6f6147e90f98 100644 --- a/crates/swc_ecma_parser/tests/span/js/decl/accessor.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/decl/accessor.js.span.swc-stderr @@ -94,12 +94,6 @@ x PropName ,-[$DIR/tests/span/js/decl/accessor.js:2:1] 1 | class Foo { - 2 | get a() { - : ^ - `---- - x Ident - ,-[$DIR/tests/span/js/decl/accessor.js:2:1] - 1 | class Foo { 2 | get a() { : ^ `---- @@ -138,12 +132,6 @@ x PropName ,-[$DIR/tests/span/js/decl/accessor.js:5:1] 4 | } - 5 | set a(v) { - : ^ - `---- - x Ident - ,-[$DIR/tests/span/js/decl/accessor.js:5:1] - 4 | } 5 | set a(v) { : ^ `---- @@ -275,13 +263,6 @@ x PropName ,-[$DIR/tests/span/js/decl/accessor.js:11:1] 10 | let obj = { - 11 | get a() { }, - : ^ - 12 | set a(v) { }, - `---- - x Ident - ,-[$DIR/tests/span/js/decl/accessor.js:11:1] - 10 | let obj = { 11 | get a() { }, : ^ 12 | set a(v) { }, @@ -317,13 +298,6 @@ x PropName ,-[$DIR/tests/span/js/decl/accessor.js:12:1] 11 | get a() { }, - 12 | set a(v) { }, - : ^ - 13 | } - `---- - x Ident - ,-[$DIR/tests/span/js/decl/accessor.js:12:1] - 11 | get a() { }, 12 | set a(v) { }, : ^ 13 | } diff --git a/crates/swc_ecma_parser/tests/span/js/decl/class-no-close-brace.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/decl/class-no-close-brace.js.span.swc-stderr index 3eadd871eb4e..a9b158b59b36 100644 --- a/crates/swc_ecma_parser/tests/span/js/decl/class-no-close-brace.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/decl/class-no-close-brace.js.span.swc-stderr @@ -54,12 +54,6 @@ x PropName ,-[$DIR/tests/span/js/decl/class-no-close-brace.js:3:1] 2 | - 3 | method() {} - : ^^^^^^ - `---- - x Ident - ,-[$DIR/tests/span/js/decl/class-no-close-brace.js:3:1] - 2 | 3 | method() {} : ^^^^^^ `---- diff --git a/crates/swc_ecma_parser/tests/span/js/decl/class.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/decl/class.js.span.swc-stderr index 7526b659c886..dc3c0e129ee9 100644 --- a/crates/swc_ecma_parser/tests/span/js/decl/class.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/decl/class.js.span.swc-stderr @@ -87,13 +87,6 @@ x PropName ,-[$DIR/tests/span/js/decl/class.js:2:1] 1 | class Foo extends A { - 2 | foo = '1'; - : ^^^ - 3 | static bar = 2; - `---- - x Ident - ,-[$DIR/tests/span/js/decl/class.js:2:1] - 1 | class Foo extends A { 2 | foo = '1'; : ^^^ 3 | static bar = 2; @@ -134,12 +127,6 @@ x PropName ,-[$DIR/tests/span/js/decl/class.js:3:1] 2 | foo = '1'; - 3 | static bar = 2; - : ^^^ - `---- - x Ident - ,-[$DIR/tests/span/js/decl/class.js:3:1] - 2 | foo = '1'; 3 | static bar = 2; : ^^^ `---- @@ -192,13 +179,6 @@ x PropName ,-[$DIR/tests/span/js/decl/class.js:6:1] 5 | static { } - 6 | method() { } - : ^^^^^^ - 7 | async asyncMethod() { } - `---- - x Ident - ,-[$DIR/tests/span/js/decl/class.js:6:1] - 5 | static { } 6 | method() { } : ^^^^^^ 7 | async asyncMethod() { } @@ -234,13 +214,6 @@ x PropName ,-[$DIR/tests/span/js/decl/class.js:7:1] 6 | method() { } - 7 | async asyncMethod() { } - : ^^^^^^^^^^^ - 8 | } - `---- - x Ident - ,-[$DIR/tests/span/js/decl/class.js:7:1] - 6 | method() { } 7 | async asyncMethod() { } : ^^^^^^^^^^^ 8 | } diff --git a/crates/swc_ecma_parser/tests/span/js/decl/constructor.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/decl/constructor.js.span.swc-stderr index fbb78f48812c..a0da7de10ac5 100644 --- a/crates/swc_ecma_parser/tests/span/js/decl/constructor.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/decl/constructor.js.span.swc-stderr @@ -71,12 +71,6 @@ x PropName ,-[$DIR/tests/span/js/decl/constructor.js:2:1] 1 | class Cons { - 2 | constructor(foo) { - : ^^^^^^^^^^^ - `---- - x Ident - ,-[$DIR/tests/span/js/decl/constructor.js:2:1] - 1 | class Cons { 2 | constructor(foo) { : ^^^^^^^^^^^ `---- diff --git a/crates/swc_ecma_parser/tests/span/js/expr/arrow-2.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/expr/arrow-2.js.span.swc-stderr index 092e36d09b6c..d962698bc401 100644 --- a/crates/swc_ecma_parser/tests/span/js/expr/arrow-2.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/expr/arrow-2.js.span.swc-stderr @@ -62,12 +62,6 @@ ,-[$DIR/tests/span/js/expr/arrow-2.js:1:1] 1 | React.useEffect(() => { : ^^^^^ - 2 | // @refresh reset - `---- - x Ident - ,-[$DIR/tests/span/js/expr/arrow-2.js:1:1] - 1 | React.useEffect(() => { - : ^^^^^^^^^ 2 | // @refresh reset `---- x ExprOrSpread diff --git a/crates/swc_ecma_parser/tests/span/js/expr/member.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/expr/member.js.span.swc-stderr index 5f5b01b5ef70..d0f99cdab973 100644 --- a/crates/swc_ecma_parser/tests/span/js/expr/member.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/expr/member.js.span.swc-stderr @@ -43,12 +43,6 @@ ,-[$DIR/tests/span/js/expr/member.js:1:1] 1 | a.b : ^ - 2 | c[d] - `---- - x Ident - ,-[$DIR/tests/span/js/expr/member.js:1:1] - 1 | a.b - : ^ 2 | c[d] `---- x ModuleItem diff --git a/crates/swc_ecma_parser/tests/span/js/expr/new.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/expr/new.js.span.swc-stderr index 99e58074e51a..ace5501058e0 100644 --- a/crates/swc_ecma_parser/tests/span/js/expr/new.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/expr/new.js.span.swc-stderr @@ -129,9 +129,3 @@ 2 | (new Date).toString() : ^^^^ `---- - x Ident - ,-[$DIR/tests/span/js/expr/new.js:2:1] - 1 | new Date(); - 2 | (new Date).toString() - : ^^^^^^^^ - `---- diff --git a/crates/swc_ecma_parser/tests/span/js/expr/object.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/expr/object.js.span.swc-stderr index b738b0a2bdd0..53efe61efbc2 100644 --- a/crates/swc_ecma_parser/tests/span/js/expr/object.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/expr/object.js.span.swc-stderr @@ -85,11 +85,6 @@ `---- x PropName ,-[$DIR/tests/span/js/expr/object.js:1:1] - 1 | ({ a, b, c: d, ...rest, afterRest: true }) - : ^ - `---- - x Ident - ,-[$DIR/tests/span/js/expr/object.js:1:1] 1 | ({ a, b, c: d, ...rest, afterRest: true }) : ^ `---- @@ -140,11 +135,6 @@ `---- x PropName ,-[$DIR/tests/span/js/expr/object.js:1:1] - 1 | ({ a, b, c: d, ...rest, afterRest: true }) - : ^^^^^^^^^ - `---- - x Ident - ,-[$DIR/tests/span/js/expr/object.js:1:1] 1 | ({ a, b, c: d, ...rest, afterRest: true }) : ^^^^^^^^^ `---- diff --git a/crates/swc_ecma_parser/tests/span/js/expr/optional-chaining.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/expr/optional-chaining.js.span.swc-stderr index 290c8de79f36..8e4529d43df2 100644 --- a/crates/swc_ecma_parser/tests/span/js/expr/optional-chaining.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/expr/optional-chaining.js.span.swc-stderr @@ -79,18 +79,6 @@ ,-[$DIR/tests/span/js/expr/optional-chaining.js:1:1] 1 | a?.b?.c : ^ - 2 | A?.['B']?.() - `---- - x Ident - ,-[$DIR/tests/span/js/expr/optional-chaining.js:1:1] - 1 | a?.b?.c - : ^ - 2 | A?.['B']?.() - `---- - x Ident - ,-[$DIR/tests/span/js/expr/optional-chaining.js:1:1] - 1 | a?.b?.c - : ^ 2 | A?.['B']?.() `---- x ModuleItem diff --git a/crates/swc_ecma_parser/tests/span/js/expr/paren.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/expr/paren.js.span.swc-stderr index 215c9f6e253b..97ced7da43f8 100644 --- a/crates/swc_ecma_parser/tests/span/js/expr/paren.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/expr/paren.js.span.swc-stderr @@ -53,11 +53,6 @@ 1 | console.log(((((((a))))))) : ^^^^^^^ `---- - x Ident - ,-[$DIR/tests/span/js/expr/paren.js:1:1] - 1 | console.log(((((((a))))))) - : ^^^ - `---- x ExprOrSpread ,-[$DIR/tests/span/js/expr/paren.js:1:1] 1 | console.log(((((((a))))))) diff --git a/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr index 668c604e1d52..c0c27514ff59 100644 --- a/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr @@ -22,12 +22,6 @@ 2 | | break a 3 | `-> } `---- - x Ident - ,-[$DIR/tests/span/js/stmt/label.js:1:1] - 1 | a: while (true) { - : ^ - 2 | break a - `---- x Stmt ,-[$DIR/tests/span/js/stmt/label.js:1:1] 1 | ,-> a: while (true) { @@ -84,10 +78,3 @@ : ^^^^^^^ 3 | } `---- - x Ident - ,-[$DIR/tests/span/js/stmt/label.js:2:1] - 1 | a: while (true) { - 2 | break a - : ^ - 3 | } - `---- diff --git a/crates/swc_ecma_parser/tests/span/js/super/obj3.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/super/obj3.js.span.swc-stderr index 52cbbf0e8ff0..8494c3937560 100644 --- a/crates/swc_ecma_parser/tests/span/js/super/obj3.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/super/obj3.js.span.swc-stderr @@ -101,13 +101,6 @@ x PropName ,-[$DIR/tests/span/js/super/obj3.js:2:1] 1 | let o = { - 2 | a() { - : ^ - 3 | let o1 = { b: super.b }; - `---- - x Ident - ,-[$DIR/tests/span/js/super/obj3.js:2:1] - 1 | let o = { 2 | a() { : ^ 3 | let o1 = { b: super.b }; @@ -208,13 +201,6 @@ x PropName ,-[$DIR/tests/span/js/super/obj3.js:3:1] 2 | a() { - 3 | let o1 = { b: super.b }; - : ^ - 4 | }, - `---- - x Ident - ,-[$DIR/tests/span/js/super/obj3.js:3:1] - 2 | a() { 3 | let o1 = { b: super.b }; : ^ 4 | }, @@ -233,10 +219,3 @@ : ^^^^^ 4 | }, `---- - x Ident - ,-[$DIR/tests/span/js/super/obj3.js:3:1] - 2 | a() { - 3 | let o1 = { b: super.b }; - : ^ - 4 | }, - `---- diff --git a/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr b/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr index 5fcb8d022c3d..7ac7b48beb95 100644 --- a/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/ts/decl/decorated-class.ts.span.swc-stderr @@ -351,12 +351,6 @@ x PropName ,-[$DIR/tests/span/ts/decl/decorated-class.ts:5:1] 4 | export class CommentController { - 5 | constructor(private commentService: CommentService) { } - : ^^^^^^^^^^^ - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:5:1] - 4 | export class CommentController { 5 | constructor(private commentService: CommentService) { } : ^^^^^^^^^^^ `---- @@ -451,13 +445,6 @@ 8 | @Put(COMMENT_UPDATE_ENDPOINT) 9 | public updateComment( : ^^^^^^^^^^^^^ - 10 | @Param('id') id: string, - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:9:1] - 8 | @Put(COMMENT_UPDATE_ENDPOINT) - 9 | public updateComment( - : ^^^^^^^^^^^^^ 10 | @Param('id') id: string, `---- x Function @@ -989,20 +976,6 @@ 13 | ) { 14 | return this.commentService.update(id, updateCommentDto, user.id); : ^^^^ - 15 | } - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:14:1] - 13 | ) { - 14 | return this.commentService.update(id, updateCommentDto, user.id); - : ^^^^^^^^^^^^^^ - 15 | } - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:14:1] - 13 | ) { - 14 | return this.commentService.update(id, updateCommentDto, user.id); - : ^^^^^^ 15 | } `---- x ExprOrSpread @@ -1080,13 +1053,6 @@ 13 | ) { 14 | return this.commentService.update(id, updateCommentDto, user.id); : ^^^^ - 15 | } - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:14:1] - 13 | ) { - 14 | return this.commentService.update(id, updateCommentDto, user.id); - : ^^ 15 | } `---- x ClassMember @@ -1112,13 +1078,6 @@ x PropName ,-[$DIR/tests/span/ts/decl/decorated-class.ts:19:1] 18 | @Delete(COMMENT_DELETE_ENDPOINT) - 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - : ^^^^^^^^^^^^^ - 20 | return this.commentService.delete(id, user.id); - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:19:1] - 18 | @Delete(COMMENT_DELETE_ENDPOINT) 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { : ^^^^^^^^^^^^^ 20 | return this.commentService.delete(id, user.id); @@ -1552,20 +1511,6 @@ 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { 20 | return this.commentService.delete(id, user.id); : ^^^^ - 21 | } - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:20:1] - 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - 20 | return this.commentService.delete(id, user.id); - : ^^^^^^^^^^^^^^ - 21 | } - `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:20:1] - 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - 20 | return this.commentService.delete(id, user.id); - : ^^^^^^ 21 | } `---- x ExprOrSpread @@ -1624,10 +1569,3 @@ : ^^^^ 21 | } `---- - x Ident - ,-[$DIR/tests/span/ts/decl/decorated-class.ts:20:1] - 19 | public deleteComment(@Param('id') id: string, @User() user: UserType) { - 20 | return this.commentService.delete(id, user.id); - : ^^ - 21 | } - `---- diff --git a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.json index 709b675152a7..a5996cee42f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.json @@ -485,9 +485,7 @@ "start": 272, "end": 278 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json index 254239e2a05a..eff5fc3e927b 100644 --- a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientWithSameNameAndCommonRoot.json @@ -256,9 +256,7 @@ "start": 243, "end": 254 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -344,9 +342,7 @@ "start": 286, "end": 287 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -386,9 +382,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -599,9 +593,7 @@ "start": 390, "end": 395 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -610,9 +602,7 @@ "start": 396, "end": 402 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -675,9 +665,7 @@ "start": 418, "end": 423 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json index 1a5be8d66e8e..2a8a39a285db 100644 --- a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.json @@ -256,9 +256,7 @@ "start": 238, "end": 249 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -529,9 +527,7 @@ "start": 364, "end": 369 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -540,9 +536,7 @@ "start": 370, "end": 376 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -605,9 +599,7 @@ "start": 392, "end": 397 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.json index ed27aa3b7a3c..26ee2154b71c 100644 --- a/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.json @@ -206,9 +206,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -228,9 +226,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -469,9 +465,7 @@ "start": 266, "end": 272 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json index 60dea7e4d20c..0656a7ad9c7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.json @@ -37,9 +37,7 @@ "start": 55, "end": 57 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 71, "end": 76 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -294,9 +290,7 @@ "start": 154, "end": 156 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -336,9 +330,7 @@ "start": 170, "end": 175 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -526,9 +518,7 @@ "start": 250, "end": 252 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -568,9 +558,7 @@ "start": 270, "end": 275 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -697,9 +685,7 @@ "start": 313, "end": 315 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -739,9 +725,7 @@ "start": 329, "end": 334 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -889,9 +873,7 @@ "start": 381, "end": 383 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "Identifier", @@ -946,9 +928,7 @@ "start": 417, "end": 419 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -988,9 +968,7 @@ "start": 433, "end": 438 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -1122,9 +1100,7 @@ "start": 486, "end": 490 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json index aaa01e2fe25c..b7d077e16ef0 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.json @@ -37,9 +37,7 @@ "start": 24, "end": 26 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 40, "end": 45 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -131,9 +127,7 @@ "start": 62, "end": 64 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json index 6987beeb61f4..afde6b1c9d6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.json @@ -37,9 +37,7 @@ "start": 24, "end": 26 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 40, "end": 45 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -131,9 +127,7 @@ "start": 62, "end": 64 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json index 220cba1c2b3b..975c206899c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json @@ -37,9 +37,7 @@ "start": 24, "end": 26 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 40, "end": 45 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -131,9 +127,7 @@ "start": 70, "end": 73 }, - "ctxt": 0, - "value": "sfn", - "optional": false + "value": "sfn" }, "function": { "params": [ @@ -433,9 +427,7 @@ "start": 236, "end": 239 }, - "ctxt": 0, - "value": "sfn", - "optional": false + "value": "sfn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json index d55c20c38bf0..04314371a17a 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json @@ -38,9 +38,7 @@ "start": 19, "end": 30 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -140,9 +138,7 @@ "start": 83, "end": 89 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "function": { "params": [], @@ -181,9 +177,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -203,9 +197,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -413,9 +405,7 @@ "start": 312, "end": 323 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -515,9 +505,7 @@ "start": 380, "end": 386 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "function": { "params": [], @@ -556,9 +544,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -578,9 +564,7 @@ "start": 413, "end": 414 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json index 084d0ee1efa4..c794c1078cd4 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json @@ -38,9 +38,7 @@ "start": 19, "end": 30 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -140,9 +138,7 @@ "start": 83, "end": 89 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "function": { "params": [], @@ -181,9 +177,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -203,9 +197,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -408,9 +400,7 @@ "start": 264, "end": 275 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -510,9 +500,7 @@ "start": 332, "end": 338 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "function": { "params": [], @@ -551,9 +539,7 @@ "start": 359, "end": 360 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -573,9 +559,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json index 4172ab79ef8e..f0de5ce7dfbc 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json @@ -38,9 +38,7 @@ "start": 19, "end": 30 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -140,9 +138,7 @@ "start": 83, "end": 89 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "value": { "type": "ObjectExpression", @@ -159,9 +155,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -181,9 +175,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -378,9 +370,7 @@ "start": 247, "end": 258 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -480,9 +470,7 @@ "start": 315, "end": 321 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "value": { "type": "ObjectExpression", @@ -499,9 +487,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -521,9 +507,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json index 25ffecbacd34..9148afda2879 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json @@ -38,9 +38,7 @@ "start": 19, "end": 30 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -140,9 +138,7 @@ "start": 83, "end": 89 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "value": { "type": "ObjectExpression", @@ -159,9 +155,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -181,9 +175,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -371,9 +363,7 @@ "start": 238, "end": 249 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -473,9 +463,7 @@ "start": 306, "end": 312 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "value": { "type": "ObjectExpression", @@ -492,9 +480,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -514,9 +500,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json index 4e798b535f74..802fdcb450c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRoot.json @@ -87,9 +87,7 @@ "start": 70, "end": 81 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -199,9 +197,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -248,9 +244,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -282,9 +276,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -324,9 +316,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -593,9 +583,7 @@ "start": 401, "end": 402 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "property": { @@ -604,9 +592,7 @@ "start": 403, "end": 408 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ @@ -702,9 +688,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "property": { @@ -713,9 +697,7 @@ "start": 428, "end": 433 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -724,9 +706,7 @@ "start": 434, "end": 440 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -765,9 +745,7 @@ "start": 529, "end": 531 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -937,9 +915,7 @@ "start": 639, "end": 647 }, - "ctxt": 0, - "value": "Instance", - "optional": false + "value": "Instance" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json index cc5f180725c8..84d47bef0c6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleWithSameNameAndCommonRootES6.json @@ -87,9 +87,7 @@ "start": 86, "end": 97 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -199,9 +197,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -248,9 +244,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -282,9 +276,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -324,9 +316,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -593,9 +583,7 @@ "start": 417, "end": 418 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "property": { @@ -604,9 +592,7 @@ "start": 419, "end": 424 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ @@ -702,9 +688,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "property": { @@ -713,9 +697,7 @@ "start": 444, "end": 449 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -724,9 +706,7 @@ "start": 450, "end": 456 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -765,9 +745,7 @@ "start": 545, "end": 547 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -937,9 +915,7 @@ "start": 655, "end": 663 }, - "ctxt": 0, - "value": "Instance", - "optional": false + "value": "Instance" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json index de39d8cc0479..4a8e745b9947 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json @@ -132,9 +132,7 @@ "start": 65, "end": 68 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of10.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of10.json index 890cc8b42a14..00e4f229726e 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of10.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of10.json @@ -54,9 +54,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -117,9 +115,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -177,9 +173,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -249,9 +243,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of22.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of22.json index 8552ac2b162b..89dfbd77eb93 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of22.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of22.json @@ -172,9 +172,7 @@ "start": 56, "end": 59 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of23.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of23.json index ab2172b328f2..708fc8379b72 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of23.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of23.json @@ -172,9 +172,7 @@ "start": 56, "end": 59 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of27.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of27.json index 179056efbd04..35d21e0f4d4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of27.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of27.json @@ -43,9 +43,7 @@ "start": 11, "end": 12 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -83,9 +81,7 @@ "start": 21, "end": 22 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of29.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of29.json index 206dc32b861c..8555b511c1df 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of29.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of29.json @@ -43,9 +43,7 @@ "start": 13, "end": 14 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -83,9 +81,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json index f0ccaf1b1a59..521668db244c 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json @@ -107,9 +107,7 @@ "start": 35, "end": 36 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -147,9 +145,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json index 15adb96f2f1e..a063d33e02a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json @@ -132,9 +132,7 @@ "start": 93, "end": 96 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json index 608076fcb6d3..ab71a68dc3f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json @@ -54,9 +54,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -117,9 +115,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -234,9 +230,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of35.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of35.json index 23fe11a20d45..bf06a64d1e63 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of35.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of35.json @@ -43,9 +43,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -83,9 +81,7 @@ "start": 70, "end": 71 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json index 27e0ad68e774..2b6d751dc12e 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json @@ -350,9 +350,7 @@ "start": 355, "end": 358 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -435,9 +433,7 @@ "start": 399, "end": 402 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json index 90cf7a68905c..7c57768c7350 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json @@ -54,9 +54,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -117,9 +115,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -234,9 +230,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of9.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of9.json index bcbbccc37a0b..e642edca81a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of9.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of9.json @@ -54,9 +54,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -117,9 +115,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -177,9 +173,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -257,9 +251,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json index 0319b52faf4a..dd524c07acf5 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json @@ -37,9 +37,7 @@ "start": 105, "end": 109 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 143, "end": 147 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -99,9 +95,7 @@ "start": 167, "end": 172 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -164,9 +158,7 @@ "start": 206, "end": 214 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json index d0c97adf8712..821dd07b0361 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json @@ -131,9 +131,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -188,9 +186,7 @@ "start": 93, "end": 96 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty1.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty1.json index 2dfc538135fa..4740486d158b 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty1.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty1.json @@ -189,9 +189,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -261,9 +259,7 @@ "start": 143, "end": 146 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty2.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty2.json index 4b609cb3f01e..e24cd8c543b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty2.json @@ -136,9 +136,7 @@ "start": 86, "end": 94 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -246,9 +244,7 @@ "start": 127, "end": 135 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } @@ -304,9 +300,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "arguments": null, @@ -341,9 +335,7 @@ "start": 158, "end": 166 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty3.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty3.json index 872121b1ac2b..ab5f7cc9dc33 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty3.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty3.json @@ -105,9 +105,7 @@ "start": 56, "end": 64 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -214,9 +212,7 @@ "start": 90, "end": 98 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty4.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty4.json index ecaf87f9155b..ce75c213830e 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty4.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty4.json @@ -141,9 +141,7 @@ "start": 73, "end": 81 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -250,9 +248,7 @@ "start": 107, "end": 115 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty5.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty5.json index aa3ed8d8c874..dd0b61d30464 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty5.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty5.json @@ -141,9 +141,7 @@ "start": 73, "end": 81 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -257,9 +255,7 @@ "start": 107, "end": 115 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty6.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty6.json index 8ff1a90d0567..fb934b44fd8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty6.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -168,9 +166,7 @@ "start": 72, "end": 80 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty7.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty7.json index d517f29e1b13..807f992de9b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty7.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty7.json @@ -141,9 +141,7 @@ "start": 70, "end": 78 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -250,9 +248,7 @@ "start": 104, "end": 112 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5SymbolType1.json b/crates/swc_ecma_parser/tests/tsc/ES5SymbolType1.json index 01cca00985d0..586263ec31fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5SymbolType1.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5SymbolType1.json @@ -86,9 +86,7 @@ "start": 33, "end": 41 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json index 37a001d190dd..3351eafa6fec 100644 --- a/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/EnumAndModuleWithSameNameAndCommonRoot.json @@ -126,9 +126,7 @@ "start": 86, "end": 97 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -332,9 +330,7 @@ "start": 181, "end": 184 }, - "ctxt": 0, - "value": "Red", - "optional": false + "value": "Red" } }, "definite": false @@ -514,9 +510,7 @@ "start": 241, "end": 246 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json index 7147e32c0dfb..4dd151ffc8f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWhichExtendsInterfaceWithInaccessibleType.json @@ -240,9 +240,7 @@ "start": 171, "end": 182 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -342,9 +340,7 @@ "start": 232, "end": 242 }, - "ctxt": 0, - "value": "fromOrigin", - "optional": false + "value": "fromOrigin" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json index bf68b83ab510..e8d129de998e 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json @@ -68,9 +68,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 65, "end": 66 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -220,9 +216,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -242,9 +236,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -301,9 +293,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -420,9 +410,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -442,9 +430,7 @@ "start": 241, "end": 242 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -464,9 +450,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -524,9 +508,7 @@ "start": 309, "end": 320 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.json index 9d9002abac06..87723400a882 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.json @@ -62,9 +62,7 @@ "start": 39, "end": 40 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -104,9 +102,7 @@ "start": 58, "end": 59 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json index 6b4ecf6a7542..7de7f1b2d052 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportClassWithInaccessibleTypeInTypeParameterConstraint.json @@ -62,9 +62,7 @@ "start": 39, "end": 40 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -104,9 +102,7 @@ "start": 58, "end": 59 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -213,9 +209,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -235,9 +229,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -294,9 +286,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -413,9 +403,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -435,9 +423,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -457,9 +443,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -517,9 +501,7 @@ "start": 302, "end": 313 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -639,9 +621,7 @@ "start": 376, "end": 388 }, - "ctxt": 0, - "value": "fromorigin2d", - "optional": false + "value": "fromorigin2d" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json index 3fd81f4ae1fc..61c3adfb632b 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.json @@ -68,9 +68,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 65, "end": 66 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -187,9 +183,7 @@ "start": 115, "end": 126 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -424,9 +418,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -446,9 +438,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json index 764cafeb64f0..b6541ec3d77d 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.json @@ -62,9 +62,7 @@ "start": 39, "end": 40 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -104,9 +102,7 @@ "start": 58, "end": 59 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -180,9 +176,7 @@ "start": 108, "end": 119 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -417,9 +411,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -439,9 +431,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json index 2b01026580c7..cbe132b74792 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.json @@ -68,9 +68,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 65, "end": 66 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -181,9 +177,7 @@ "start": 108, "end": 119 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -417,9 +411,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -439,9 +431,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json index f05a776578e5..592746ade98a 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.json @@ -208,9 +208,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -230,9 +228,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -413,9 +409,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -435,9 +429,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -457,9 +449,7 @@ "start": 255, "end": 256 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json index 37b01bf7defe..94180e89245b 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.json @@ -201,9 +201,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -223,9 +221,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -406,9 +402,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -428,9 +422,7 @@ "start": 242, "end": 243 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -450,9 +442,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json b/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json index 74e1f1b4e7ea..640380b05754 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportModuleWithAccessibleTypesOnItsExportedMembers.json @@ -69,9 +69,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -344,9 +342,7 @@ "start": 220, "end": 231 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -460,9 +456,7 @@ "start": 295, "end": 305 }, - "ctxt": 0, - "value": "fromOrigin", - "optional": false + "value": "fromOrigin" }, "function": { "params": [ @@ -565,9 +559,7 @@ "start": 352, "end": 353 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -587,9 +579,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json index 638483025dd4..19fb6b7a6e08 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.json @@ -63,9 +63,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -232,9 +230,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -254,9 +250,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -323,9 +317,7 @@ "start": 171, "end": 176 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" }, "value": { "type": "NewExpression", @@ -381,9 +373,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json index 79dbffd6aee7..5c730d9d43d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.json @@ -63,9 +63,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.json b/crates/swc_ecma_parser/tests/tsc/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.json index 3f08e3e4ddd4..b5c703ea07ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.json @@ -62,9 +62,7 @@ "start": 34, "end": 36 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/ExportVariableWithAccessibleTypeInTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportVariableWithAccessibleTypeInTypeAnnotation.json index 080e252748d1..7d43827cfdb7 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportVariableWithAccessibleTypeInTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportVariableWithAccessibleTypeInTypeAnnotation.json @@ -208,9 +208,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -230,9 +228,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ExportVariableWithInaccessibleTypeInTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/ExportVariableWithInaccessibleTypeInTypeAnnotation.json index 7dccf0e47f42..4b535a8df9b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/ExportVariableWithInaccessibleTypeInTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/ExportVariableWithInaccessibleTypeInTypeAnnotation.json @@ -208,9 +208,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -230,9 +228,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -406,9 +402,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -428,9 +422,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -450,9 +442,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndCommonRoot.json index d70ad6bdaee3..362d71e36482 100644 --- a/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndCommonRoot.json @@ -85,9 +85,7 @@ "start": 85, "end": 86 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -107,9 +105,7 @@ "start": 91, "end": 92 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -239,9 +235,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -261,9 +255,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -471,9 +463,7 @@ "start": 295, "end": 300 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -653,9 +643,7 @@ "start": 348, "end": 353 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [], @@ -720,9 +708,7 @@ "start": 368, "end": 373 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -731,9 +717,7 @@ "start": 374, "end": 380 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -820,9 +804,7 @@ "start": 499, "end": 500 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -842,9 +824,7 @@ "start": 505, "end": 506 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -946,9 +926,7 @@ "start": 576, "end": 577 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -968,9 +946,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1178,9 +1154,7 @@ "start": 650, "end": 655 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -1360,9 +1334,7 @@ "start": 806, "end": 811 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [], @@ -1427,9 +1399,7 @@ "start": 826, "end": 831 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -1438,9 +1408,7 @@ "start": 832, "end": 838 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndDifferentCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndDifferentCommonRoot.json index 2ade52d608ae..3ade6e99ecb6 100644 --- a/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndDifferentCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/FunctionAndModuleWithSameNameAndDifferentCommonRoot.json @@ -85,9 +85,7 @@ "start": 85, "end": 86 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -107,9 +105,7 @@ "start": 91, "end": 92 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -239,9 +235,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -261,9 +255,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -471,9 +463,7 @@ "start": 295, "end": 300 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -652,9 +642,7 @@ "start": 348, "end": 353 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "property": { @@ -663,9 +651,7 @@ "start": 354, "end": 360 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/FunctionPropertyAssignments1_es6.json b/crates/swc_ecma_parser/tests/tsc/FunctionPropertyAssignments1_es6.json index fcd0b56bcab3..bd63a91e0e42 100644 --- a/crates/swc_ecma_parser/tests/tsc/FunctionPropertyAssignments1_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/FunctionPropertyAssignments1_es6.json @@ -47,9 +47,7 @@ "start": 28, "end": 31 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration1_es6.json b/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration1_es6.json index 033ee747d703..725cae333a3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration1_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration1_es6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration2_es6.json b/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration2_es6.json index 0e6993940cd3..e7695987dbef 100644 --- a/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration2_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration2_es6.json @@ -37,9 +37,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration7_es6.json b/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration7_es6.json index b8ed10a20e3f..166b46f3729d 100644 --- a/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration7_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/MemberFunctionDeclaration7_es6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json index a2722a7cfb00..1e2fbb5e43a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleAndClassWithSameNameAndCommonRoot.json @@ -252,9 +252,7 @@ "start": 220, "end": 231 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -364,9 +362,7 @@ "start": 273, "end": 274 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -413,9 +409,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -447,9 +441,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -489,9 +481,7 @@ "start": 341, "end": 342 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -649,9 +639,7 @@ "start": 472, "end": 474 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json index 93be33efe159..4d4ec77352d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleAndEnumWithSameNameAndCommonRoot.json @@ -69,9 +69,7 @@ "start": 53, "end": 64 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -332,9 +330,7 @@ "start": 181, "end": 184 }, - "ctxt": 0, - "value": "Red", - "optional": false + "value": "Red" } }, "definite": false @@ -514,9 +510,7 @@ "start": 241, "end": 246 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleAndFunctionWithSameNameAndCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/ModuleAndFunctionWithSameNameAndCommonRoot.json index 9916454b7a26..385d601a8f19 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleAndFunctionWithSameNameAndCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleAndFunctionWithSameNameAndCommonRoot.json @@ -109,9 +109,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -131,9 +129,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -239,9 +235,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -261,9 +255,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -393,9 +385,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -415,9 +405,7 @@ "start": 354, "end": 355 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -495,9 +483,7 @@ "start": 450, "end": 451 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -517,9 +503,7 @@ "start": 456, "end": 457 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedClasses.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedClasses.json index 6d3f9bb77ead..c61459878662 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedClasses.json @@ -68,9 +68,7 @@ "start": 41, "end": 43 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 61, "end": 65 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -186,9 +182,7 @@ "start": 117, "end": 119 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -238,9 +232,7 @@ "start": 132, "end": 136 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -370,9 +362,7 @@ "start": 171, "end": 173 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -412,9 +402,7 @@ "start": 191, "end": 195 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -481,9 +469,7 @@ "start": 241, "end": 243 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -533,9 +519,7 @@ "start": 256, "end": 260 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -808,9 +792,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -876,9 +858,7 @@ "start": 392, "end": 394 }, - "ctxt": 0, - "value": "AG", - "optional": false + "value": "AG" } }, "arguments": [], @@ -968,9 +948,7 @@ "start": 472, "end": 474 }, - "ctxt": 0, - "value": "A2", - "optional": false + "value": "A2" } }, "arguments": [], @@ -1036,9 +1014,7 @@ "start": 494, "end": 496 }, - "ctxt": 0, - "value": "A2", - "optional": false + "value": "A2" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedEnums.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedEnums.json index 367a6a4e7da2..fa30894852a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedEnums.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedEnums.json @@ -193,6 +193,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 122, + "end": 129 + }, "left": { "type": "Identifier", "span": { @@ -209,9 +213,7 @@ "start": 124, "end": 129 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "typeParams": null @@ -246,9 +248,7 @@ "start": 134, "end": 139 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "property": { @@ -257,9 +257,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "Red", - "optional": false + "value": "Red" } }, "definite": false @@ -321,9 +319,7 @@ "start": 178, "end": 181 }, - "ctxt": 0, - "value": "Day", - "optional": false + "value": "Day" } }, "property": { @@ -332,9 +328,7 @@ "start": 182, "end": 188 }, - "ctxt": 0, - "value": "Monday", - "optional": false + "value": "Monday" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json index 3d85279bba2b..634cdde5e686 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedFunctions.json @@ -690,9 +690,7 @@ "start": 376, "end": 378 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "definite": false @@ -908,9 +906,7 @@ "start": 421, "end": 424 }, - "ctxt": 0, - "value": "fng", - "optional": false + "value": "fng" } }, "definite": false @@ -966,9 +962,7 @@ "start": 516, "end": 519 }, - "ctxt": 0, - "value": "fn2", - "optional": false + "value": "fn2" } }, "definite": false @@ -1024,9 +1018,7 @@ "start": 534, "end": 538 }, - "ctxt": 0, - "value": "fng2", - "optional": false + "value": "fng2" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json index fdb491b566f3..2a58ca50e90f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedImportAlias.json @@ -286,9 +286,7 @@ "start": 195, "end": 206 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -324,6 +322,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 221, + "end": 228 + }, "left": { "type": "Identifier", "span": { @@ -340,9 +342,7 @@ "start": 223, "end": 228 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -383,6 +383,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 242, + "end": 249 + }, "left": { "type": "Identifier", "span": { @@ -399,9 +403,7 @@ "start": 244, "end": 249 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -561,6 +563,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 358, + "end": 370 + }, "left": { "type": "Identifier", "span": { @@ -577,9 +583,7 @@ "start": 365, "end": 370 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -601,9 +605,7 @@ "start": 375, "end": 376 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -623,9 +625,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -689,6 +689,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 475, + "end": 485 + }, "left": { "type": "Identifier", "span": { @@ -705,9 +709,7 @@ "start": 481, "end": 485 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "typeParams": null @@ -743,9 +745,7 @@ "start": 498, "end": 502 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "arguments": [ @@ -779,9 +779,7 @@ "start": 513, "end": 514 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -801,9 +799,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -985,8 +981,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 614, + "end": 635 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 614, + "end": 629 + }, "left": { "type": "Identifier", "span": { @@ -1003,9 +1007,7 @@ "start": 623, "end": 629 }, - "ctxt": 0, - "value": "Points", - "optional": false + "value": "Points" } }, "right": { @@ -1014,9 +1016,7 @@ "start": 630, "end": 635 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1077,9 +1077,7 @@ "start": 654, "end": 660 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -1394,9 +1392,7 @@ "start": 762, "end": 766 }, - "ctxt": 0, - "value": "Unit", - "optional": false + "value": "Unit" } }, "definite": false @@ -1458,9 +1454,7 @@ "start": 836, "end": 841 }, - "ctxt": 0, - "value": "Lines", - "optional": false + "value": "Lines" } }, "property": { @@ -1469,9 +1463,7 @@ "start": 842, "end": 846 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json index 446e7839b325..57ac952a2561 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json @@ -215,9 +215,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -273,9 +271,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/Protected3.json b/crates/swc_ecma_parser/tests/tsc/Protected3.json index 6a53bf932293..f4e0008fa24f 100644 --- a/crates/swc_ecma_parser/tests/tsc/Protected3.json +++ b/crates/swc_ecma_parser/tests/tsc/Protected3.json @@ -38,9 +38,7 @@ "start": 23, "end": 34 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/Protected5.json b/crates/swc_ecma_parser/tests/tsc/Protected5.json index 8fc9d4a395cd..604cd3c7b4c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/Protected5.json +++ b/crates/swc_ecma_parser/tests/tsc/Protected5.json @@ -37,9 +37,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/Protected9.json b/crates/swc_ecma_parser/tests/tsc/Protected9.json index 0dd62d8d82bd..836f2c2fd4f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/Protected9.json +++ b/crates/swc_ecma_parser/tests/tsc/Protected9.json @@ -38,9 +38,7 @@ "start": 14, "end": 25 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json index 01c97fca4db3..0f10f7259ae9 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.json @@ -68,9 +68,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -208,9 +204,7 @@ "start": 121, "end": 135 }, - "ctxt": 0, - "value": "fromCarthesian", - "optional": false + "value": "fromCarthesian" }, "function": { "params": [ @@ -244,6 +238,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 139, + "end": 146 + }, "left": { "type": "Identifier", "span": { @@ -260,9 +258,7 @@ "start": 141, "end": 146 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -306,9 +302,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -332,9 +326,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -346,9 +338,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -372,9 +362,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -561,6 +549,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 278, + "end": 285 + }, "left": { "type": "Identifier", "span": { @@ -577,9 +569,7 @@ "start": 280, "end": 285 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -690,9 +680,7 @@ "start": 335, "end": 341 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -852,9 +840,7 @@ "start": 460, "end": 464 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -1021,10 +1007,22 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 570, + "end": 580 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 570, + "end": 575 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 570, + "end": 573 + }, "left": { "type": "Identifier", "span": { @@ -1041,9 +1039,7 @@ "start": 572, "end": 573 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "right": { @@ -1052,9 +1048,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } }, "right": { @@ -1063,9 +1057,7 @@ "start": 576, "end": 580 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json index d13c3f207f40..1f42a9c05ec2 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.json @@ -429,6 +429,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 255, + "end": 262 + }, "left": { "type": "Identifier", "span": { @@ -445,9 +449,7 @@ "start": 257, "end": 262 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -503,6 +505,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 274, + "end": 281 + }, "left": { "type": "Identifier", "span": { @@ -519,9 +525,7 @@ "start": 276, "end": 281 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -656,6 +660,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 347, + "end": 354 + }, "left": { "type": "Identifier", "span": { @@ -672,9 +680,7 @@ "start": 349, "end": 354 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -704,6 +710,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 361, + "end": 368 + }, "left": { "type": "Identifier", "span": { @@ -720,9 +730,7 @@ "start": 363, "end": 368 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -875,6 +883,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 459, + "end": 466 + }, "left": { "type": "Identifier", "span": { @@ -891,9 +903,7 @@ "start": 461, "end": 466 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -933,6 +943,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 485, + "end": 492 + }, "left": { "type": "Identifier", "span": { @@ -949,9 +963,7 @@ "start": 487, "end": 492 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1037,6 +1049,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 559, + "end": 566 + }, "left": { "type": "Identifier", "span": { @@ -1053,9 +1069,7 @@ "start": 561, "end": 566 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1085,6 +1099,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 571, + "end": 578 + }, "left": { "type": "Identifier", "span": { @@ -1101,9 +1119,7 @@ "start": 573, "end": 578 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1162,10 +1178,22 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 590, + "end": 600 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 590, + "end": 595 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 590, + "end": 593 + }, "left": { "type": "Identifier", "span": { @@ -1182,9 +1210,7 @@ "start": 592, "end": 593 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "right": { @@ -1193,9 +1219,7 @@ "start": 594, "end": 595 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } }, "right": { @@ -1204,9 +1228,7 @@ "start": 596, "end": 600 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json index 3f98f1e14908..c02c1be4dcf6 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json @@ -266,9 +266,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -292,9 +290,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -306,9 +302,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -332,9 +326,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -472,9 +464,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -494,9 +484,7 @@ "start": 284, "end": 285 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -667,9 +655,7 @@ "start": 474, "end": 485 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -948,6 +934,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 644, + "end": 651 + }, "left": { "type": "Identifier", "span": { @@ -964,9 +954,7 @@ "start": 646, "end": 651 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1027,9 +1015,7 @@ "start": 663, "end": 669 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -1098,9 +1084,7 @@ "start": 681, "end": 686 }, - "ctxt": 0, - "value": "Utils", - "optional": false + "value": "Utils" } }, "property": { @@ -1109,9 +1093,7 @@ "start": 687, "end": 693 }, - "ctxt": 0, - "value": "mirror", - "optional": false + "value": "mirror" } }, "arguments": [ @@ -1206,6 +1188,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 712, + "end": 719 + }, "left": { "type": "Identifier", "span": { @@ -1222,9 +1208,7 @@ "start": 714, "end": 719 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1264,6 +1248,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 725, + "end": 732 + }, "left": { "type": "Identifier", "span": { @@ -1280,9 +1268,7 @@ "start": 727, "end": 732 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1337,8 +1323,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 743, + "end": 756 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 743, + "end": 750 + }, "left": { "type": "Identifier", "span": { @@ -1355,9 +1349,7 @@ "start": 745, "end": 750 }, - "ctxt": 0, - "value": "Utils", - "optional": false + "value": "Utils" } }, "right": { @@ -1366,9 +1358,7 @@ "start": 751, "end": 756 }, - "ctxt": 0, - "value": "Plane", - "optional": false + "value": "Plane" } }, "typeParams": null @@ -1442,9 +1432,7 @@ "start": 772, "end": 777 }, - "ctxt": 0, - "value": "Utils", - "optional": false + "value": "Utils" } }, "property": { @@ -1453,9 +1441,7 @@ "start": 778, "end": 783 }, - "ctxt": 0, - "value": "Plane", - "optional": false + "value": "Plane" } }, "arguments": [ @@ -1489,9 +1475,7 @@ "start": 789, "end": 790 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1511,9 +1495,7 @@ "start": 795, "end": 796 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.json index 2b2edfdc74dc..9aa99a4ae3d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.json @@ -68,9 +68,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -214,9 +210,7 @@ "start": 149, "end": 155 }, - "ctxt": 0, - "value": "origin", - "optional": false + "value": "origin" }, "value": null, "typeAnnotation": { @@ -256,9 +250,7 @@ "start": 173, "end": 178 }, - "ctxt": 0, - "value": "angle", - "optional": false + "value": "angle" }, "value": null, "typeAnnotation": { @@ -396,9 +388,7 @@ "start": 244, "end": 250 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -564,9 +554,7 @@ "start": 406, "end": 410 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json index cf83091cfa27..da4d3eba13b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.json @@ -436,6 +436,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 262, + "end": 269 + }, "left": { "type": "Identifier", "span": { @@ -452,9 +456,7 @@ "start": 264, "end": 269 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -495,6 +497,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 284, + "end": 291 + }, "left": { "type": "Identifier", "span": { @@ -511,9 +517,7 @@ "start": 286, "end": 291 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -569,6 +573,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 303, + "end": 310 + }, "left": { "type": "Identifier", "span": { @@ -585,9 +593,7 @@ "start": 305, "end": 310 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -722,6 +728,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 376, + "end": 383 + }, "left": { "type": "Identifier", "span": { @@ -738,9 +748,7 @@ "start": 378, "end": 383 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -770,6 +778,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 390, + "end": 397 + }, "left": { "type": "Identifier", "span": { @@ -786,9 +798,7 @@ "start": 392, "end": 397 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -947,6 +957,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 495, + "end": 502 + }, "left": { "type": "Identifier", "span": { @@ -963,9 +977,7 @@ "start": 497, "end": 502 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1005,6 +1017,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 521, + "end": 528 + }, "left": { "type": "Identifier", "span": { @@ -1021,9 +1037,7 @@ "start": 523, "end": 528 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1113,6 +1127,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 594, + "end": 601 + }, "left": { "type": "Identifier", "span": { @@ -1129,9 +1147,7 @@ "start": 596, "end": 601 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1171,6 +1187,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 608, + "end": 615 + }, "left": { "type": "Identifier", "span": { @@ -1187,9 +1207,7 @@ "start": 610, "end": 615 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1226,6 +1244,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 625, + "end": 632 + }, "left": { "type": "Identifier", "span": { @@ -1242,9 +1264,7 @@ "start": 627, "end": 632 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1274,6 +1294,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 637, + "end": 644 + }, "left": { "type": "Identifier", "span": { @@ -1290,9 +1314,7 @@ "start": 639, "end": 644 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1351,10 +1373,22 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 656, + "end": 666 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 656, + "end": 661 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 656, + "end": 659 + }, "left": { "type": "Identifier", "span": { @@ -1371,9 +1405,7 @@ "start": 658, "end": 659 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "right": { @@ -1382,9 +1414,7 @@ "start": 660, "end": 661 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } }, "right": { @@ -1393,9 +1423,7 @@ "start": 662, "end": 666 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json index 62627744e798..c04f9d7007c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.json @@ -272,9 +272,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -298,9 +296,7 @@ "start": 223, "end": 224 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -312,9 +308,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -338,9 +332,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -478,9 +470,7 @@ "start": 286, "end": 287 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -500,9 +490,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -628,9 +616,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -650,9 +636,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -741,9 +725,7 @@ "start": 524, "end": 535 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.json index c6db95061a10..def2f5b876af 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.json @@ -315,9 +315,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "property": { @@ -326,9 +324,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -434,9 +430,7 @@ "start": 227, "end": 233 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -596,9 +590,7 @@ "start": 352, "end": 356 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -765,10 +757,22 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 472, + "end": 482 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 472, + "end": 477 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 472, + "end": 475 + }, "left": { "type": "Identifier", "span": { @@ -785,9 +789,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "right": { @@ -796,9 +798,7 @@ "start": 476, "end": 477 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } }, "right": { @@ -807,9 +807,7 @@ "start": 478, "end": 482 }, - "ctxt": 0, - "value": "Line", - "optional": false + "value": "Line" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json index e2a4ed13e807..eebfa989928a 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.json @@ -297,9 +297,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -323,9 +321,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -337,9 +333,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -363,9 +357,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -539,8 +531,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 467, + "end": 479 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 467, + "end": 473 + }, "left": { "type": "Identifier", "span": { @@ -557,9 +557,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -568,9 +566,7 @@ "start": 474, "end": 479 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -592,9 +588,7 @@ "start": 484, "end": 485 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -614,9 +608,7 @@ "start": 490, "end": 491 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -705,9 +697,7 @@ "start": 578, "end": 589 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -743,8 +733,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 601, + "end": 613 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 601, + "end": 607 + }, "left": { "type": "Identifier", "span": { @@ -761,9 +759,7 @@ "start": 606, "end": 607 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -772,9 +768,7 @@ "start": 608, "end": 613 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -815,8 +809,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 626, + "end": 638 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 626, + "end": 632 + }, "left": { "type": "Identifier", "span": { @@ -833,9 +835,7 @@ "start": 631, "end": 632 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -844,9 +844,7 @@ "start": 633, "end": 638 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json index 5b666ce38a60..2861e585a76b 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesWithTheSameNameAndSameCommonRoot.json @@ -266,9 +266,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -292,9 +290,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -306,9 +302,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -332,9 +326,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -500,9 +492,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -522,9 +512,7 @@ "start": 320, "end": 321 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -613,9 +601,7 @@ "start": 396, "end": 407 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -894,6 +880,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 566, + "end": 573 + }, "left": { "type": "Identifier", "span": { @@ -910,9 +900,7 @@ "start": 568, "end": 573 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -973,9 +961,7 @@ "start": 585, "end": 591 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "definite": false @@ -1044,9 +1030,7 @@ "start": 603, "end": 608 }, - "ctxt": 0, - "value": "Utils", - "optional": false + "value": "Utils" } }, "property": { @@ -1055,9 +1039,7 @@ "start": 609, "end": 615 }, - "ctxt": 0, - "value": "mirror", - "optional": false + "value": "mirror" } }, "arguments": [ @@ -1152,6 +1134,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 634, + "end": 641 + }, "left": { "type": "Identifier", "span": { @@ -1168,9 +1154,7 @@ "start": 636, "end": 641 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1210,6 +1194,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 647, + "end": 654 + }, "left": { "type": "Identifier", "span": { @@ -1226,9 +1214,7 @@ "start": 649, "end": 654 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1283,8 +1269,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 665, + "end": 678 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 665, + "end": 672 + }, "left": { "type": "Identifier", "span": { @@ -1301,9 +1295,7 @@ "start": 667, "end": 672 }, - "ctxt": 0, - "value": "Utils", - "optional": false + "value": "Utils" } }, "right": { @@ -1312,9 +1304,7 @@ "start": 673, "end": 678 }, - "ctxt": 0, - "value": "Plane", - "optional": false + "value": "Plane" } }, "typeParams": null @@ -1388,9 +1378,7 @@ "start": 694, "end": 699 }, - "ctxt": 0, - "value": "Utils", - "optional": false + "value": "Utils" } }, "property": { @@ -1399,9 +1387,7 @@ "start": 700, "end": 705 }, - "ctxt": 0, - "value": "Plane", - "optional": false + "value": "Plane" } }, "arguments": [ @@ -1435,9 +1421,7 @@ "start": 711, "end": 712 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1457,9 +1441,7 @@ "start": 717, "end": 718 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json index 50384aeef6dc..9db08013599d 100644 --- a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithArrayUnion.json @@ -37,9 +37,7 @@ "start": 21, "end": 26 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -250,9 +248,7 @@ "start": 147, "end": 153 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/YieldExpression10_es6.json b/crates/swc_ecma_parser/tests/tsc/YieldExpression10_es6.json index ab6e87ce2841..c12736267006 100644 --- a/crates/swc_ecma_parser/tests/tsc/YieldExpression10_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/YieldExpression10_es6.json @@ -47,9 +47,7 @@ "start": 29, "end": 32 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/YieldExpression11_es6.json b/crates/swc_ecma_parser/tests/tsc/YieldExpression11_es6.json index edfbf8b4e5a0..cd54dd4a12a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/YieldExpression11_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/YieldExpression11_es6.json @@ -37,9 +37,7 @@ "start": 30, "end": 33 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/abstractProperty.json b/crates/swc_ecma_parser/tests/tsc/abstractProperty.json index 459d2de2bcc8..a2ab366757af 100644 --- a/crates/swc_ecma_parser/tests/tsc/abstractProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/abstractProperty.json @@ -37,9 +37,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -134,9 +130,7 @@ "start": 149, "end": 152 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -161,9 +155,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -224,9 +216,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -296,9 +286,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/accessorWithES5.json b/crates/swc_ecma_parser/tests/tsc/accessorWithES5.json index 46ff3317aa98..0e7d93aa95dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorWithES5.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorWithES5.json @@ -37,9 +37,7 @@ "start": 36, "end": 37 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -232,9 +228,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "typeAnnotation": null, "body": { @@ -316,9 +310,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "thisParam": null, "param": { diff --git a/crates/swc_ecma_parser/tests/tsc/accessorWithMismatchedAccessibilityModifiers.json b/crates/swc_ecma_parser/tests/tsc/accessorWithMismatchedAccessibilityModifiers.json index 54e498845ab1..150c0d040281 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorWithMismatchedAccessibilityModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorWithMismatchedAccessibilityModifiers.json @@ -37,9 +37,7 @@ "start": 36, "end": 37 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -191,9 +187,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -253,9 +247,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -345,9 +337,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -410,9 +400,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -499,9 +487,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -564,9 +550,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json index 782833c36c50..ac11e3c34b4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json @@ -37,9 +37,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -158,9 +156,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -366,9 +362,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideMethod.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideMethod.json index 2eb7440cde0e..55fd87395a9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideMethod.json @@ -37,9 +37,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json index 9c8544b4f543..fb4debebae67 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json @@ -37,9 +37,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", @@ -100,9 +98,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -198,9 +194,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -261,9 +255,7 @@ "start": 190, "end": 197 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" }, "value": { "type": "NumericLiteral", @@ -297,9 +289,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -342,9 +332,7 @@ "start": 229, "end": 236 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" } } } @@ -374,9 +362,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -446,9 +432,7 @@ "start": 272, "end": 279 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json index aac165f66ba0..7e20d86d9028 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json @@ -37,9 +37,7 @@ "start": 69, "end": 70 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -162,9 +158,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -237,9 +231,7 @@ "start": 179, "end": 182 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -407,9 +399,7 @@ "start": 268, "end": 271 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -437,9 +427,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json index f426a5206bea..d598379c1405 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json @@ -37,9 +37,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 129, "end": 135 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" }, "value": { "type": "StringLiteral", @@ -142,9 +138,7 @@ "start": 153, "end": 158 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [], @@ -187,9 +181,7 @@ "start": 175, "end": 181 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } } } @@ -219,9 +211,7 @@ "start": 206, "end": 211 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [ @@ -291,9 +281,7 @@ "start": 224, "end": 230 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json index 3931445eca6b..38698c34bc09 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json @@ -37,9 +37,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 130, "end": 136 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" }, "value": { "type": "StringLiteral", @@ -142,9 +138,7 @@ "start": 154, "end": 159 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [], @@ -187,9 +181,7 @@ "start": 184, "end": 190 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } } } @@ -233,9 +225,7 @@ "start": 201, "end": 206 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [ @@ -319,9 +309,7 @@ "start": 227, "end": 233 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty5.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty5.json index d6afaadb2bad..2f7df468025d 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty5.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty5.json @@ -174,9 +174,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -236,9 +234,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json index b45a76d23dd9..b1b02e74d6c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json @@ -37,9 +37,7 @@ "start": 69, "end": 70 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", @@ -100,9 +98,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -198,9 +194,7 @@ "start": 156, "end": 157 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -261,9 +255,7 @@ "start": 191, "end": 198 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" }, "value": { "type": "NumericLiteral", @@ -297,9 +289,7 @@ "start": 212, "end": 213 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -342,9 +332,7 @@ "start": 230, "end": 237 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" } } } @@ -374,9 +362,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -446,9 +432,7 @@ "start": 273, "end": 280 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json index ffad213deaa9..d2bd56160a40 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json @@ -1083,9 +1083,7 @@ "start": 533, "end": 534 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": null, "body": { @@ -1130,9 +1128,7 @@ "start": 572, "end": 573 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1214,9 +1210,7 @@ "start": 643, "end": 644 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -1275,9 +1269,7 @@ "start": 685, "end": 686 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -1441,9 +1433,7 @@ "start": 767, "end": 768 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json index 756b58df0508..c3125774739a 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty9.json @@ -454,9 +454,7 @@ "start": 351, "end": 358 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" }, "function": { "params": [], @@ -819,9 +817,7 @@ "start": 840, "end": 851 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -943,9 +939,7 @@ "start": 914, "end": 921 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" }, "function": { "params": [], @@ -1306,9 +1300,7 @@ "start": 1153, "end": 1160 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json index 3218b279fcde..ff16738b4540 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json @@ -71,9 +71,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -113,9 +111,7 @@ "start": 63, "end": 66 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1447,9 +1443,7 @@ "start": 600, "end": 601 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1691,9 +1685,7 @@ "start": 673, "end": 674 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithInvalidOperands.json index d88f9d6fbedf..323c004fb347 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithInvalidOperands.json @@ -71,9 +71,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -113,9 +111,7 @@ "start": 63, "end": 66 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1555,9 +1551,7 @@ "start": 680, "end": 681 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1641,9 +1635,7 @@ "start": 705, "end": 706 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1675,9 +1667,7 @@ "start": 711, "end": 714 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1744,9 +1734,7 @@ "start": 730, "end": 731 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json index 3a403e75a5c2..1261c1894834 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json @@ -777,9 +777,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json index e510381fd123..f00a72b99eb3 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json @@ -644,9 +644,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -956,9 +954,7 @@ "start": 436, "end": 437 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json index acdc04330b30..ae71bdca2a3b 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json @@ -654,9 +654,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -729,9 +727,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -756,9 +752,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json index 5448f05d7004..effb9a98834f 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json @@ -1419,9 +1419,7 @@ "start": 531, "end": 532 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1604,9 +1602,7 @@ "start": 585, "end": 586 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json index 1d65735705c3..cb51d755bd61 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json @@ -804,9 +804,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json index adf2a50ab3fa..7b70a11c38b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json @@ -662,9 +662,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -986,9 +984,7 @@ "start": 496, "end": 497 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json b/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json index 827301974195..ad67b62dc3d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json +++ b/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json @@ -226,9 +226,7 @@ "start": 352, "end": 356 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/ambient.json b/crates/swc_ecma_parser/tests/tsc/ambient.json index a9148538d9af..dd666201e012 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambient.json +++ b/crates/swc_ecma_parser/tests/tsc/ambient.json @@ -43,9 +43,7 @@ "start": 38, "end": 39 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json b/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json index 4c242f9733cd..8f0ae05a040f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientAccessors.json @@ -37,9 +37,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -88,9 +86,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -159,9 +155,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -210,9 +204,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -281,9 +273,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -332,9 +322,7 @@ "start": 271, "end": 272 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -403,9 +391,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -454,9 +440,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json index d72abf604d7b..db7960ac6239 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json @@ -900,9 +900,7 @@ "start": 705, "end": 716 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": null, @@ -921,9 +919,7 @@ "start": 724, "end": 730 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -982,9 +978,7 @@ "start": 750, "end": 756 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" }, "function": { "params": [ @@ -1053,9 +1047,7 @@ "start": 780, "end": 781 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": null, "typeAnnotation": null, @@ -1081,9 +1073,7 @@ "start": 795, "end": 797 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -1118,9 +1108,7 @@ "start": 820, "end": 823 }, - "ctxt": 0, - "value": "fns", - "optional": false + "value": "fns" }, "function": { "params": [], @@ -1500,9 +1488,7 @@ "start": 1144, "end": 1145 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "definite": false @@ -1658,9 +1644,7 @@ "start": 1315, "end": 1316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1723,9 +1707,7 @@ "start": 1329, "end": 1331 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json index 577ff24eee68..f0827b48286f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json @@ -273,9 +273,7 @@ "start": 533, "end": 534 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json index bf2fe014d8a6..db284b865a4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json @@ -325,9 +325,7 @@ "start": 238, "end": 239 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json index 280572de0e99..5ed09679e7de 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json @@ -89,9 +89,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -147,9 +145,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json index 76380be0370d..df21e6bc3ba7 100644 --- a/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json @@ -163,9 +163,7 @@ "start": 130, "end": 132 }, - "ctxt": 0, - "value": "E1", - "optional": false + "value": "E1" } }, "property": { @@ -174,9 +172,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json index 0b00a7c0f664..eca2d93fd093 100644 --- a/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json @@ -43,9 +43,7 @@ "start": 59, "end": 61 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 76, "end": 78 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "value": { "type": "BooleanLiteral", @@ -459,6 +455,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 365, + "end": 371 + }, "left": { "type": "Identifier", "span": { @@ -475,9 +475,7 @@ "start": 369, "end": 371 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } } }, @@ -520,6 +518,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 380, + "end": 384 + }, "left": { "type": "Identifier", "span": { @@ -536,9 +538,7 @@ "start": 382, "end": 384 }, - "ctxt": 0, - "value": "I2", - "optional": false + "value": "I2" } }, "typeParams": null @@ -589,6 +589,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 393, + "end": 399 + }, "left": { "type": "Identifier", "span": { @@ -605,9 +609,7 @@ "start": 397, "end": 399 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "typeParams": null @@ -716,8 +718,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 434, + "end": 443 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 434, + "end": 440 + }, "left": { "type": "Identifier", "span": { @@ -734,9 +744,7 @@ "start": 438, "end": 440 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "right": { @@ -745,9 +753,7 @@ "start": 441, "end": 443 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" } }, "typeArguments": null @@ -805,8 +811,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 460, + "end": 469 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 460, + "end": 466 + }, "left": { "type": "Identifier", "span": { @@ -823,9 +837,7 @@ "start": 464, "end": 466 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } }, "right": { @@ -834,9 +846,7 @@ "start": 467, "end": 469 }, - "ctxt": 0, - "value": "I2", - "optional": false + "value": "I2" } }, "typeParams": null @@ -912,6 +922,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 488, + "end": 494 + }, "left": { "type": "Identifier", "span": { @@ -928,9 +942,7 @@ "start": 492, "end": 494 }, - "ctxt": 0, - "value": "E1", - "optional": false + "value": "E1" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/annotatedThisPropertyInitializerDoesntNarrow.json b/crates/swc_ecma_parser/tests/tsc/annotatedThisPropertyInitializerDoesntNarrow.json index 1aa778dd449d..0a5d588a8e6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/annotatedThisPropertyInitializerDoesntNarrow.json +++ b/crates/swc_ecma_parser/tests/tsc/annotatedThisPropertyInitializerDoesntNarrow.json @@ -98,9 +98,7 @@ "start": 227, "end": 238 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -143,9 +141,7 @@ "start": 310, "end": 316 }, - "ctxt": 0, - "value": "assets", - "optional": false + "value": "assets" } }, "right": { @@ -175,9 +171,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -240,9 +234,7 @@ "start": 358, "end": 364 }, - "ctxt": 0, - "value": "assets", - "optional": false + "value": "assets" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json b/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json index 2c58b751a853..218534218cfb 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json @@ -230,9 +230,7 @@ "start": 182, "end": 185 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json index d6b122225245..6c1cb3d7910d 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAssignabilityInInheritance.json @@ -2112,9 +2112,7 @@ "start": 1242, "end": 1245 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2414,9 +2412,7 @@ "start": 1367, "end": 1370 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4068,9 +4064,7 @@ "start": 2017, "end": 2020 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json index 9cc7d67b5e34..866f61f8a684 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType.json @@ -83,9 +83,7 @@ "start": 28, "end": 31 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json index 500b860a326c..24fdcb69092f 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAssignableToEveryType2.json @@ -1145,9 +1145,7 @@ "start": 655, "end": 658 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1339,9 +1337,7 @@ "start": 737, "end": 740 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2337,9 +2333,7 @@ "start": 1135, "end": 1138 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json index c2ae49c144ae..32c7e5d70e82 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json @@ -100,9 +100,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -302,9 +300,7 @@ "start": 75, "end": 78 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -313,9 +309,7 @@ "start": 79, "end": 82 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false @@ -394,9 +388,7 @@ "start": 97, "end": 100 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -475,9 +467,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/apparentTypeSubtyping.json b/crates/swc_ecma_parser/tests/tsc/apparentTypeSubtyping.json index 5ee756d9afd3..4dfc754fc2b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/apparentTypeSubtyping.json +++ b/crates/swc_ecma_parser/tests/tsc/apparentTypeSubtyping.json @@ -37,9 +37,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -163,9 +161,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -297,9 +293,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -349,9 +343,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -428,9 +420,7 @@ "start": 715, "end": 716 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/apparentTypeSupertype.json b/crates/swc_ecma_parser/tests/tsc/apparentTypeSupertype.json index 9d58f8dc42e8..9d6337c91b91 100644 --- a/crates/swc_ecma_parser/tests/tsc/apparentTypeSupertype.json +++ b/crates/swc_ecma_parser/tests/tsc/apparentTypeSupertype.json @@ -37,9 +37,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json index 2f753060ae03..3828d52915a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json @@ -41,9 +41,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -87,9 +85,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -222,9 +218,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -284,9 +278,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -365,9 +357,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "NumericLiteral", @@ -572,9 +562,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayExpression", @@ -618,9 +606,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -637,9 +623,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -658,9 +642,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -680,9 +662,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -969,9 +949,7 @@ "start": 406, "end": 407 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayExpression", @@ -1015,9 +993,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -1034,9 +1010,7 @@ "start": 429, "end": 430 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -1055,9 +1029,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -1077,9 +1049,7 @@ "start": 450, "end": 451 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -1182,9 +1152,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayExpression", @@ -1228,9 +1196,7 @@ "start": 567, "end": 568 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -1247,9 +1213,7 @@ "start": 572, "end": 573 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -1268,9 +1232,7 @@ "start": 581, "end": 582 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -1290,9 +1252,7 @@ "start": 593, "end": 594 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnum.json b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnum.json index d07ad248f9f7..d6067cb7f2ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnum.json +++ b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnum.json @@ -561,9 +561,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -637,9 +635,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -713,9 +709,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -740,9 +734,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -806,9 +798,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -891,9 +881,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -967,9 +955,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1042,9 +1028,7 @@ "start": 376, "end": 377 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1403,9 +1387,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1479,9 +1461,7 @@ "start": 510, "end": 511 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1555,9 +1535,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1582,9 +1560,7 @@ "start": 535, "end": 536 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1648,9 +1624,7 @@ "start": 550, "end": 551 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1733,9 +1707,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1809,9 +1781,7 @@ "start": 594, "end": 595 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1884,9 +1854,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2245,9 +2213,7 @@ "start": 729, "end": 730 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2321,9 +2287,7 @@ "start": 748, "end": 749 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2397,9 +2361,7 @@ "start": 767, "end": 768 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2424,9 +2386,7 @@ "start": 773, "end": 774 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2490,9 +2450,7 @@ "start": 788, "end": 789 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2575,9 +2533,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2651,9 +2607,7 @@ "start": 832, "end": 833 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2726,9 +2680,7 @@ "start": 852, "end": 853 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3087,9 +3039,7 @@ "start": 967, "end": 968 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3163,9 +3113,7 @@ "start": 986, "end": 987 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3239,9 +3187,7 @@ "start": 1005, "end": 1006 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3266,9 +3212,7 @@ "start": 1011, "end": 1012 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3332,9 +3276,7 @@ "start": 1026, "end": 1027 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3417,9 +3359,7 @@ "start": 1050, "end": 1051 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3493,9 +3433,7 @@ "start": 1070, "end": 1071 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3568,9 +3506,7 @@ "start": 1090, "end": 1091 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3929,9 +3865,7 @@ "start": 1211, "end": 1212 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4005,9 +3939,7 @@ "start": 1231, "end": 1232 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4081,9 +4013,7 @@ "start": 1251, "end": 1252 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4108,9 +4038,7 @@ "start": 1258, "end": 1259 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4174,9 +4102,7 @@ "start": 1273, "end": 1274 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4259,9 +4185,7 @@ "start": 1299, "end": 1300 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4335,9 +4259,7 @@ "start": 1320, "end": 1321 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4410,9 +4332,7 @@ "start": 1341, "end": 1342 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4771,9 +4691,7 @@ "start": 1462, "end": 1463 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4847,9 +4765,7 @@ "start": 1482, "end": 1483 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4923,9 +4839,7 @@ "start": 1502, "end": 1503 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4950,9 +4864,7 @@ "start": 1509, "end": 1510 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5016,9 +4928,7 @@ "start": 1524, "end": 1525 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5101,9 +5011,7 @@ "start": 1550, "end": 1551 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5177,9 +5085,7 @@ "start": 1571, "end": 1572 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5252,9 +5158,7 @@ "start": 1592, "end": 1593 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5613,9 +5517,7 @@ "start": 1719, "end": 1720 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5689,9 +5591,7 @@ "start": 1740, "end": 1741 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5765,9 +5665,7 @@ "start": 1761, "end": 1762 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5792,9 +5690,7 @@ "start": 1769, "end": 1770 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5858,9 +5754,7 @@ "start": 1784, "end": 1785 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5943,9 +5837,7 @@ "start": 1812, "end": 1813 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6019,9 +5911,7 @@ "start": 1834, "end": 1835 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6094,9 +5984,7 @@ "start": 1856, "end": 1857 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6455,9 +6343,7 @@ "start": 1971, "end": 1972 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6531,9 +6417,7 @@ "start": 1990, "end": 1991 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6607,9 +6491,7 @@ "start": 2009, "end": 2010 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6634,9 +6516,7 @@ "start": 2015, "end": 2016 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6700,9 +6580,7 @@ "start": 2030, "end": 2031 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6785,9 +6663,7 @@ "start": 2054, "end": 2055 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6861,9 +6737,7 @@ "start": 2074, "end": 2075 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6936,9 +6810,7 @@ "start": 2094, "end": 2095 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7297,9 +7169,7 @@ "start": 2209, "end": 2210 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7373,9 +7243,7 @@ "start": 2228, "end": 2229 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7449,9 +7317,7 @@ "start": 2247, "end": 2248 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7476,9 +7342,7 @@ "start": 2253, "end": 2254 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7542,9 +7406,7 @@ "start": 2268, "end": 2269 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7627,9 +7489,7 @@ "start": 2292, "end": 2293 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7703,9 +7563,7 @@ "start": 2312, "end": 2313 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7778,9 +7636,7 @@ "start": 2332, "end": 2333 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8139,9 +7995,7 @@ "start": 2447, "end": 2448 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8215,9 +8069,7 @@ "start": 2466, "end": 2467 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8291,9 +8143,7 @@ "start": 2485, "end": 2486 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8318,9 +8168,7 @@ "start": 2491, "end": 2492 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8384,9 +8232,7 @@ "start": 2506, "end": 2507 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8469,9 +8315,7 @@ "start": 2530, "end": 2531 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8545,9 +8389,7 @@ "start": 2550, "end": 2551 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8620,9 +8462,7 @@ "start": 2570, "end": 2571 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnumUnion.json b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnumUnion.json index 2870ac528b06..38289c84234c 100644 --- a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnumUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithEnumUnion.json @@ -645,9 +645,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -721,9 +719,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -797,9 +793,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -824,9 +818,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -890,9 +882,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -975,9 +965,7 @@ "start": 364, "end": 365 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1051,9 +1039,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1126,9 +1112,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1487,9 +1471,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1563,9 +1545,7 @@ "start": 538, "end": 539 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1639,9 +1619,7 @@ "start": 557, "end": 558 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1666,9 +1644,7 @@ "start": 563, "end": 564 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1732,9 +1708,7 @@ "start": 578, "end": 579 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1817,9 +1791,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1893,9 +1865,7 @@ "start": 622, "end": 623 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1968,9 +1938,7 @@ "start": 642, "end": 643 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2329,9 +2297,7 @@ "start": 757, "end": 758 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2405,9 +2371,7 @@ "start": 776, "end": 777 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2481,9 +2445,7 @@ "start": 795, "end": 796 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2508,9 +2470,7 @@ "start": 801, "end": 802 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2574,9 +2534,7 @@ "start": 816, "end": 817 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2659,9 +2617,7 @@ "start": 840, "end": 841 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2735,9 +2691,7 @@ "start": 860, "end": 861 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2810,9 +2764,7 @@ "start": 880, "end": 881 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3171,9 +3123,7 @@ "start": 995, "end": 996 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3247,9 +3197,7 @@ "start": 1014, "end": 1015 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3323,9 +3271,7 @@ "start": 1033, "end": 1034 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3350,9 +3296,7 @@ "start": 1039, "end": 1040 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3416,9 +3360,7 @@ "start": 1054, "end": 1055 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3501,9 +3443,7 @@ "start": 1078, "end": 1079 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3577,9 +3517,7 @@ "start": 1098, "end": 1099 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3652,9 +3590,7 @@ "start": 1118, "end": 1119 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4013,9 +3949,7 @@ "start": 1239, "end": 1240 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4089,9 +4023,7 @@ "start": 1259, "end": 1260 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4165,9 +4097,7 @@ "start": 1279, "end": 1280 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4192,9 +4122,7 @@ "start": 1286, "end": 1287 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4258,9 +4186,7 @@ "start": 1301, "end": 1302 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4343,9 +4269,7 @@ "start": 1327, "end": 1328 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4419,9 +4343,7 @@ "start": 1348, "end": 1349 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4494,9 +4416,7 @@ "start": 1369, "end": 1370 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -4855,9 +4775,7 @@ "start": 1490, "end": 1491 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4931,9 +4849,7 @@ "start": 1510, "end": 1511 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5007,9 +4923,7 @@ "start": 1530, "end": 1531 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5034,9 +4948,7 @@ "start": 1537, "end": 1538 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5100,9 +5012,7 @@ "start": 1552, "end": 1553 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5185,9 +5095,7 @@ "start": 1578, "end": 1579 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5261,9 +5169,7 @@ "start": 1599, "end": 1600 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5336,9 +5242,7 @@ "start": 1620, "end": 1621 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5697,9 +5601,7 @@ "start": 1747, "end": 1748 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5773,9 +5675,7 @@ "start": 1768, "end": 1769 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5849,9 +5749,7 @@ "start": 1789, "end": 1790 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5876,9 +5774,7 @@ "start": 1797, "end": 1798 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5942,9 +5838,7 @@ "start": 1812, "end": 1813 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6027,9 +5921,7 @@ "start": 1840, "end": 1841 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6103,9 +5995,7 @@ "start": 1862, "end": 1863 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6178,9 +6068,7 @@ "start": 1884, "end": 1885 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6539,9 +6427,7 @@ "start": 1999, "end": 2000 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6615,9 +6501,7 @@ "start": 2018, "end": 2019 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6691,9 +6575,7 @@ "start": 2037, "end": 2038 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6718,9 +6600,7 @@ "start": 2043, "end": 2044 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6784,9 +6664,7 @@ "start": 2058, "end": 2059 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6869,9 +6747,7 @@ "start": 2082, "end": 2083 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6945,9 +6821,7 @@ "start": 2102, "end": 2103 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7020,9 +6894,7 @@ "start": 2122, "end": 2123 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7381,9 +7253,7 @@ "start": 2237, "end": 2238 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7457,9 +7327,7 @@ "start": 2256, "end": 2257 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7533,9 +7401,7 @@ "start": 2275, "end": 2276 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7560,9 +7426,7 @@ "start": 2281, "end": 2282 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7626,9 +7490,7 @@ "start": 2296, "end": 2297 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7711,9 +7573,7 @@ "start": 2320, "end": 2321 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7787,9 +7647,7 @@ "start": 2340, "end": 2341 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -7862,9 +7720,7 @@ "start": 2360, "end": 2361 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8223,9 +8079,7 @@ "start": 2475, "end": 2476 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8299,9 +8153,7 @@ "start": 2494, "end": 2495 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8375,9 +8227,7 @@ "start": 2513, "end": 2514 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8402,9 +8252,7 @@ "start": 2519, "end": 2520 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8468,9 +8316,7 @@ "start": 2534, "end": 2535 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8553,9 +8399,7 @@ "start": 2558, "end": 2559 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8629,9 +8473,7 @@ "start": 2578, "end": 2579 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8704,9 +8546,7 @@ "start": 2598, "end": 2599 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithInvalidOperands.json index 1c036c9a2489..48de77908dae 100644 --- a/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/arithmeticOperatorWithInvalidOperands.json @@ -2582,9 +2582,7 @@ "start": 987, "end": 988 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2658,9 +2656,7 @@ "start": 1012, "end": 1013 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2734,9 +2730,7 @@ "start": 1032, "end": 1033 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2810,9 +2804,7 @@ "start": 1057, "end": 1058 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2886,9 +2878,7 @@ "start": 1077, "end": 1078 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2962,9 +2952,7 @@ "start": 1097, "end": 1098 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3048,9 +3036,7 @@ "start": 1122, "end": 1123 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3124,9 +3110,7 @@ "start": 1147, "end": 1148 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3200,9 +3184,7 @@ "start": 1167, "end": 1168 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3276,9 +3258,7 @@ "start": 1192, "end": 1193 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3352,9 +3332,7 @@ "start": 1212, "end": 1213 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3428,9 +3406,7 @@ "start": 1232, "end": 1233 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5618,9 +5594,7 @@ "start": 1937, "end": 1938 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5694,9 +5668,7 @@ "start": 1962, "end": 1963 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5770,9 +5742,7 @@ "start": 1982, "end": 1983 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5846,9 +5816,7 @@ "start": 2007, "end": 2008 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5922,9 +5890,7 @@ "start": 2027, "end": 2028 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -5998,9 +5964,7 @@ "start": 2047, "end": 2048 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6084,9 +6048,7 @@ "start": 2072, "end": 2073 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6160,9 +6122,7 @@ "start": 2097, "end": 2098 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6236,9 +6196,7 @@ "start": 2117, "end": 2118 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6312,9 +6270,7 @@ "start": 2142, "end": 2143 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6388,9 +6344,7 @@ "start": 2162, "end": 2163 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6464,9 +6418,7 @@ "start": 2182, "end": 2183 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -8654,9 +8606,7 @@ "start": 2887, "end": 2888 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8730,9 +8680,7 @@ "start": 2912, "end": 2913 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8806,9 +8754,7 @@ "start": 2932, "end": 2933 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8882,9 +8828,7 @@ "start": 2957, "end": 2958 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8958,9 +8902,7 @@ "start": 2977, "end": 2978 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -9034,9 +8976,7 @@ "start": 2997, "end": 2998 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -9120,9 +9060,7 @@ "start": 3022, "end": 3023 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -9196,9 +9134,7 @@ "start": 3047, "end": 3048 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -9272,9 +9208,7 @@ "start": 3067, "end": 3068 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -9348,9 +9282,7 @@ "start": 3092, "end": 3093 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -9424,9 +9356,7 @@ "start": 3112, "end": 3113 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -9500,9 +9430,7 @@ "start": 3132, "end": 3133 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -11690,9 +11618,7 @@ "start": 3837, "end": 3838 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -11766,9 +11692,7 @@ "start": 3862, "end": 3863 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -11842,9 +11766,7 @@ "start": 3882, "end": 3883 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -11918,9 +11840,7 @@ "start": 3907, "end": 3908 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -11994,9 +11914,7 @@ "start": 3927, "end": 3928 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -12070,9 +11988,7 @@ "start": 3947, "end": 3948 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -12156,9 +12072,7 @@ "start": 3972, "end": 3973 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -12232,9 +12146,7 @@ "start": 3997, "end": 3998 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -12308,9 +12220,7 @@ "start": 4017, "end": 4018 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -12384,9 +12294,7 @@ "start": 4042, "end": 4043 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -12460,9 +12368,7 @@ "start": 4062, "end": 4063 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -12536,9 +12442,7 @@ "start": 4082, "end": 4083 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -14726,9 +14630,7 @@ "start": 4824, "end": 4825 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -14802,9 +14704,7 @@ "start": 4850, "end": 4851 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -14878,9 +14778,7 @@ "start": 4871, "end": 4872 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -14954,9 +14852,7 @@ "start": 4897, "end": 4898 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -15030,9 +14926,7 @@ "start": 4918, "end": 4919 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -15106,9 +15000,7 @@ "start": 4939, "end": 4940 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -15192,9 +15084,7 @@ "start": 4966, "end": 4967 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -15268,9 +15158,7 @@ "start": 4992, "end": 4993 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -15344,9 +15232,7 @@ "start": 5013, "end": 5014 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -15420,9 +15306,7 @@ "start": 5039, "end": 5040 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -15496,9 +15380,7 @@ "start": 5060, "end": 5061 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -15572,9 +15454,7 @@ "start": 5081, "end": 5082 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -17762,9 +17642,7 @@ "start": 5823, "end": 5824 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -17838,9 +17716,7 @@ "start": 5849, "end": 5850 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -17914,9 +17790,7 @@ "start": 5870, "end": 5871 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -17990,9 +17864,7 @@ "start": 5896, "end": 5897 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -18066,9 +17938,7 @@ "start": 5917, "end": 5918 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -18142,9 +18012,7 @@ "start": 5938, "end": 5939 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -18228,9 +18096,7 @@ "start": 5965, "end": 5966 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -18304,9 +18170,7 @@ "start": 5991, "end": 5992 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -18380,9 +18244,7 @@ "start": 6012, "end": 6013 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -18456,9 +18318,7 @@ "start": 6038, "end": 6039 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -18532,9 +18392,7 @@ "start": 6059, "end": 6060 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -18608,9 +18466,7 @@ "start": 6080, "end": 6081 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -20798,9 +20654,7 @@ "start": 6859, "end": 6860 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -20874,9 +20728,7 @@ "start": 6886, "end": 6887 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -20950,9 +20802,7 @@ "start": 6908, "end": 6909 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -21026,9 +20876,7 @@ "start": 6935, "end": 6936 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -21102,9 +20950,7 @@ "start": 6957, "end": 6958 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -21178,9 +21024,7 @@ "start": 6979, "end": 6980 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -21264,9 +21108,7 @@ "start": 7008, "end": 7009 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -21340,9 +21182,7 @@ "start": 7035, "end": 7036 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -21416,9 +21256,7 @@ "start": 7057, "end": 7058 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -21492,9 +21330,7 @@ "start": 7084, "end": 7085 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -21568,9 +21404,7 @@ "start": 7106, "end": 7107 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -21644,9 +21478,7 @@ "start": 7128, "end": 7129 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -23834,9 +23666,7 @@ "start": 7833, "end": 7834 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -23910,9 +23740,7 @@ "start": 7858, "end": 7859 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -23986,9 +23814,7 @@ "start": 7878, "end": 7879 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -24062,9 +23888,7 @@ "start": 7903, "end": 7904 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -24138,9 +23962,7 @@ "start": 7923, "end": 7924 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -24214,9 +24036,7 @@ "start": 7943, "end": 7944 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -24300,9 +24120,7 @@ "start": 7968, "end": 7969 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -24376,9 +24194,7 @@ "start": 7993, "end": 7994 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -24452,9 +24268,7 @@ "start": 8013, "end": 8014 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -24528,9 +24342,7 @@ "start": 8038, "end": 8039 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -24604,9 +24416,7 @@ "start": 8058, "end": 8059 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -24680,9 +24490,7 @@ "start": 8078, "end": 8079 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -26870,9 +26678,7 @@ "start": 8783, "end": 8784 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -26946,9 +26752,7 @@ "start": 8808, "end": 8809 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -27022,9 +26826,7 @@ "start": 8828, "end": 8829 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -27098,9 +26900,7 @@ "start": 8853, "end": 8854 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -27174,9 +26974,7 @@ "start": 8873, "end": 8874 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -27250,9 +27048,7 @@ "start": 8893, "end": 8894 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -27336,9 +27132,7 @@ "start": 8918, "end": 8919 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -27412,9 +27206,7 @@ "start": 8943, "end": 8944 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -27488,9 +27280,7 @@ "start": 8963, "end": 8964 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -27564,9 +27354,7 @@ "start": 8988, "end": 8989 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -27640,9 +27428,7 @@ "start": 9008, "end": 9009 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -27716,9 +27502,7 @@ "start": 9028, "end": 9029 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -29906,9 +29690,7 @@ "start": 9770, "end": 9771 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -29982,9 +29764,7 @@ "start": 9796, "end": 9797 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -30058,9 +29838,7 @@ "start": 9817, "end": 9818 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -30134,9 +29912,7 @@ "start": 9843, "end": 9844 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -30210,9 +29986,7 @@ "start": 9864, "end": 9865 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -30286,9 +30060,7 @@ "start": 9885, "end": 9886 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -30372,9 +30144,7 @@ "start": 9911, "end": 9912 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -30448,9 +30218,7 @@ "start": 9937, "end": 9938 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -30524,9 +30292,7 @@ "start": 9958, "end": 9959 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -30600,9 +30366,7 @@ "start": 9984, "end": 9985 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -30676,9 +30440,7 @@ "start": 10005, "end": 10006 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -30752,9 +30514,7 @@ "start": 10026, "end": 10027 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json b/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json index 018409b1fdd5..c3f847e74967 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json @@ -566,9 +566,7 @@ "start": 558, "end": 566 }, - "ctxt": 0, - "value": "Standard", - "optional": false + "value": "Standard" } } }, @@ -605,9 +603,7 @@ "start": 578, "end": 586 }, - "ctxt": 0, - "value": "Standard", - "optional": false + "value": "Standard" } } }, @@ -635,9 +631,7 @@ "start": 597, "end": 604 }, - "ctxt": 0, - "value": "MiniApp", - "optional": false + "value": "MiniApp" } } } @@ -680,9 +674,7 @@ "start": 621, "end": 633 }, - "ctxt": 0, - "value": "Relationship", - "optional": false + "value": "Relationship" } } }, @@ -719,9 +711,7 @@ "start": 645, "end": 653 }, - "ctxt": 0, - "value": "Standard", - "optional": false + "value": "Standard" } } }, @@ -749,9 +739,7 @@ "start": 664, "end": 668 }, - "ctxt": 0, - "value": "Tree", - "optional": false + "value": "Tree" } } }, @@ -779,9 +767,7 @@ "start": 679, "end": 689 }, - "ctxt": 0, - "value": "TreeEntity", - "optional": false + "value": "TreeEntity" } } } @@ -824,9 +810,7 @@ "start": 706, "end": 718 }, - "ctxt": 0, - "value": "AdvancedList", - "optional": false + "value": "AdvancedList" } } }, @@ -863,9 +847,7 @@ "start": 730, "end": 738 }, - "ctxt": 0, - "value": "Standard", - "optional": false + "value": "Standard" } } }, @@ -893,9 +875,7 @@ "start": 749, "end": 756 }, - "ctxt": 0, - "value": "MiniApp", - "optional": false + "value": "MiniApp" } } } @@ -1184,9 +1164,7 @@ "start": 863, "end": 864 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -1217,9 +1195,7 @@ "start": 876, "end": 877 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json b/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json index e7d5759d5737..47a2cd265855 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json @@ -570,9 +570,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": null, @@ -1028,9 +1026,7 @@ "start": 669, "end": 670 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1050,9 +1046,7 @@ "start": 676, "end": 677 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1072,9 +1066,7 @@ "start": 682, "end": 683 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -1106,9 +1098,7 @@ "start": 693, "end": 694 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1128,9 +1118,7 @@ "start": 700, "end": 701 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1150,9 +1138,7 @@ "start": 706, "end": 707 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -1224,9 +1210,7 @@ "start": 733, "end": 734 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1246,9 +1230,7 @@ "start": 740, "end": 741 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1268,9 +1250,7 @@ "start": 746, "end": 747 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -1302,9 +1282,7 @@ "start": 757, "end": 758 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1324,9 +1302,7 @@ "start": 764, "end": 765 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1346,9 +1322,7 @@ "start": 770, "end": 771 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -1401,9 +1375,7 @@ "start": 912, "end": 913 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": null, @@ -1456,9 +1428,7 @@ "start": 955, "end": 956 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -1527,9 +1497,7 @@ "start": 998, "end": 999 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiteralsWithRecursiveGenerics.json b/crates/swc_ecma_parser/tests/tsc/arrayLiteralsWithRecursiveGenerics.json index 3b040f407357..6c8b3892cf27 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiteralsWithRecursiveGenerics.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiteralsWithRecursiveGenerics.json @@ -37,9 +37,7 @@ "start": 21, "end": 25 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 34, "end": 38 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { @@ -250,9 +246,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -394,9 +388,7 @@ "start": 161, "end": 165 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -446,9 +438,7 @@ "start": 174, "end": 178 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json b/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json index ffb455956aea..77a35e7b539b 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json @@ -201,9 +201,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json b/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json index 9670310f54a7..56f76c3d8b34 100644 --- a/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json +++ b/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json @@ -2906,9 +2906,7 @@ "start": 1078, "end": 1081 }, - "ctxt": 0, - "value": "run", - "optional": false + "value": "run" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json b/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json index 6888a19bd444..7acdc7bdb4f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json @@ -88,9 +88,7 @@ "start": 150, "end": 156 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -199,9 +197,7 @@ "start": 192, "end": 198 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1240,9 +1236,7 @@ "start": 699, "end": 700 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectPattern", @@ -1440,9 +1434,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -1503,9 +1495,7 @@ "start": 777, "end": 778 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1690,9 +1680,7 @@ "start": 953, "end": 954 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -1769,9 +1757,7 @@ "start": 975, "end": 976 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ArrowFunctionExpression", @@ -1846,9 +1832,7 @@ "start": 1002, "end": 1004 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -2613,9 +2597,7 @@ "start": 1368, "end": 1381 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], @@ -2812,9 +2794,7 @@ "start": 1496, "end": 1502 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -3579,9 +3559,7 @@ "start": 2093, "end": 2099 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -3778,9 +3756,7 @@ "start": 2192, "end": 2205 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asOpEmitParens.json b/crates/swc_ecma_parser/tests/tsc/asOpEmitParens.json index d075b3d7f6e3..52ad76b5fbb3 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOpEmitParens.json +++ b/crates/swc_ecma_parser/tests/tsc/asOpEmitParens.json @@ -160,9 +160,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/asOperator1.json b/crates/swc_ecma_parser/tests/tsc/asOperator1.json index a71a8a6c0266..abc4f33ecc6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperator1.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperator1.json @@ -169,9 +169,7 @@ "start": 68, "end": 74 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/asOperatorAmbiguity.json b/crates/swc_ecma_parser/tests/tsc/asOperatorAmbiguity.json index 755f49de9ee6..7b163f3dc955 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperatorAmbiguity.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperatorAmbiguity.json @@ -390,9 +390,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/assertionTypePredicates2.json b/crates/swc_ecma_parser/tests/tsc/assertionTypePredicates2.json index 2dcfb235fd19..4d9b58bb44f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/assertionTypePredicates2.json +++ b/crates/swc_ecma_parser/tests/tsc/assertionTypePredicates2.json @@ -102,9 +102,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -265,9 +263,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json b/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json index 00a9a0983736..8c299d545e92 100644 --- a/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json @@ -614,9 +614,7 @@ "start": 736, "end": 742 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -756,9 +754,7 @@ "start": 818, "end": 824 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -873,9 +869,7 @@ "start": 887, "end": 893 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json b/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json index 49b3c7109755..ab6ba69edb5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/assignAnyToEveryType.json @@ -575,9 +575,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -652,9 +650,7 @@ "start": 233, "end": 236 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json b/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json index 97c9edb17cf1..e69efd39495d 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json +++ b/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json @@ -718,9 +718,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -774,9 +772,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -1007,9 +1003,7 @@ "start": 324, "end": 327 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -1282,9 +1276,7 @@ "start": 394, "end": 395 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -1367,9 +1359,7 @@ "start": 420, "end": 421 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json b/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json index fa61a1015c2b..19c60ddd0395 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json +++ b/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json @@ -86,9 +86,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json index 801fde6b5a91..d3650e2e6d7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json +++ b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json @@ -37,9 +37,7 @@ "start": 68, "end": 71 }, - "ctxt": 0, - "value": "qux", - "optional": false + "value": "qux" }, "value": { "type": "MemberExpression", @@ -60,9 +58,7 @@ "start": 79, "end": 82 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "typeAnnotation": null, @@ -88,9 +84,7 @@ "start": 103, "end": 106 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "MemberExpression", @@ -111,9 +105,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -139,9 +131,7 @@ "start": 138, "end": 142 }, - "ctxt": 0, - "value": "quiz", - "optional": false + "value": "quiz" }, "value": { "type": "MemberExpression", @@ -162,9 +152,7 @@ "start": 150, "end": 153 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "typeAnnotation": null, @@ -190,9 +178,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "quench", - "optional": false + "value": "quench" }, "value": { "type": "CallExpression", @@ -220,9 +206,7 @@ "start": 178, "end": 180 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "arguments": [], @@ -251,9 +235,7 @@ "start": 193, "end": 199 }, - "ctxt": 0, - "value": "quanch", - "optional": false + "value": "quanch" }, "value": { "type": "CallExpression", @@ -281,9 +263,7 @@ "start": 207, "end": 209 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" } }, "arguments": [], @@ -312,9 +292,7 @@ "start": 232, "end": 234 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -357,9 +335,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -389,9 +365,7 @@ "start": 272, "end": 274 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "value": { "type": "FunctionExpression", @@ -441,9 +415,7 @@ "start": 296, "end": 307 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -507,9 +479,7 @@ "start": 335, "end": 339 }, - "ctxt": 0, - "value": "quim", - "optional": false + "value": "quim" }, "value": { "type": "MemberExpression", @@ -530,9 +500,7 @@ "start": 347, "end": 350 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "typeAnnotation": null, @@ -558,9 +526,7 @@ "start": 371, "end": 374 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "MemberExpression", @@ -581,9 +547,7 @@ "start": 382, "end": 385 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -609,9 +573,7 @@ "start": 407, "end": 411 }, - "ctxt": 0, - "value": "quid", - "optional": false + "value": "quid" }, "value": { "type": "MemberExpression", @@ -632,9 +594,7 @@ "start": 419, "end": 422 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "typeAnnotation": null, @@ -660,9 +620,7 @@ "start": 433, "end": 435 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -705,9 +663,7 @@ "start": 453, "end": 456 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -764,9 +720,7 @@ "start": 496, "end": 501 }, - "ctxt": 0, - "value": "quill", - "optional": false + "value": "quill" }, "value": { "type": "MemberExpression", @@ -787,9 +741,7 @@ "start": 509, "end": 512 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -851,9 +803,7 @@ "start": 536, "end": 539 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ArrowFunctionExpression", @@ -889,9 +839,7 @@ "start": 553, "end": 557 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } }, "right": { @@ -913,9 +861,7 @@ "start": 565, "end": 569 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } }, @@ -947,9 +893,7 @@ "start": 586, "end": 590 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "value": { "type": "StringLiteral", @@ -984,9 +928,7 @@ "start": 601, "end": 612 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1077,9 +1019,7 @@ "start": 654, "end": 659 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" }, "value": { "type": "ClassExpression", @@ -1103,9 +1043,7 @@ "start": 688, "end": 690 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "MemberExpression", @@ -1126,9 +1064,7 @@ "start": 698, "end": 700 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "typeAnnotation": null, @@ -1181,9 +1117,7 @@ "start": 711, "end": 713 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -1244,9 +1178,7 @@ "start": 734, "end": 739 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" }, "value": { "type": "ClassExpression", @@ -1270,9 +1202,7 @@ "start": 768, "end": 770 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "MemberExpression", @@ -1293,9 +1223,7 @@ "start": 778, "end": 780 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "typeAnnotation": null, @@ -1349,9 +1277,7 @@ "start": 791, "end": 802 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1443,9 +1369,7 @@ "start": 841, "end": 852 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1519,9 +1443,7 @@ "start": 882, "end": 884 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrowFunctionExpression", @@ -1570,9 +1492,7 @@ "start": 915, "end": 917 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "property": { @@ -1581,9 +1501,7 @@ "start": 918, "end": 921 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -1617,9 +1535,7 @@ "start": 941, "end": 943 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": { "type": "ArrowFunctionExpression", @@ -1654,9 +1570,7 @@ "start": 957, "end": 959 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "property": { @@ -1665,9 +1579,7 @@ "start": 960, "end": 963 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json index 801fde6b5a91..d3650e2e6d7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json +++ b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json @@ -37,9 +37,7 @@ "start": 68, "end": 71 }, - "ctxt": 0, - "value": "qux", - "optional": false + "value": "qux" }, "value": { "type": "MemberExpression", @@ -60,9 +58,7 @@ "start": 79, "end": 82 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "typeAnnotation": null, @@ -88,9 +84,7 @@ "start": 103, "end": 106 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "MemberExpression", @@ -111,9 +105,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -139,9 +131,7 @@ "start": 138, "end": 142 }, - "ctxt": 0, - "value": "quiz", - "optional": false + "value": "quiz" }, "value": { "type": "MemberExpression", @@ -162,9 +152,7 @@ "start": 150, "end": 153 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "typeAnnotation": null, @@ -190,9 +178,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "quench", - "optional": false + "value": "quench" }, "value": { "type": "CallExpression", @@ -220,9 +206,7 @@ "start": 178, "end": 180 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "arguments": [], @@ -251,9 +235,7 @@ "start": 193, "end": 199 }, - "ctxt": 0, - "value": "quanch", - "optional": false + "value": "quanch" }, "value": { "type": "CallExpression", @@ -281,9 +263,7 @@ "start": 207, "end": 209 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" } }, "arguments": [], @@ -312,9 +292,7 @@ "start": 232, "end": 234 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -357,9 +335,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -389,9 +365,7 @@ "start": 272, "end": 274 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "value": { "type": "FunctionExpression", @@ -441,9 +415,7 @@ "start": 296, "end": 307 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -507,9 +479,7 @@ "start": 335, "end": 339 }, - "ctxt": 0, - "value": "quim", - "optional": false + "value": "quim" }, "value": { "type": "MemberExpression", @@ -530,9 +500,7 @@ "start": 347, "end": 350 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "typeAnnotation": null, @@ -558,9 +526,7 @@ "start": 371, "end": 374 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "MemberExpression", @@ -581,9 +547,7 @@ "start": 382, "end": 385 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -609,9 +573,7 @@ "start": 407, "end": 411 }, - "ctxt": 0, - "value": "quid", - "optional": false + "value": "quid" }, "value": { "type": "MemberExpression", @@ -632,9 +594,7 @@ "start": 419, "end": 422 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "typeAnnotation": null, @@ -660,9 +620,7 @@ "start": 433, "end": 435 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -705,9 +663,7 @@ "start": 453, "end": 456 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -764,9 +720,7 @@ "start": 496, "end": 501 }, - "ctxt": 0, - "value": "quill", - "optional": false + "value": "quill" }, "value": { "type": "MemberExpression", @@ -787,9 +741,7 @@ "start": 509, "end": 512 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -851,9 +803,7 @@ "start": 536, "end": 539 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ArrowFunctionExpression", @@ -889,9 +839,7 @@ "start": 553, "end": 557 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } }, "right": { @@ -913,9 +861,7 @@ "start": 565, "end": 569 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } }, @@ -947,9 +893,7 @@ "start": 586, "end": 590 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "value": { "type": "StringLiteral", @@ -984,9 +928,7 @@ "start": 601, "end": 612 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1077,9 +1019,7 @@ "start": 654, "end": 659 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" }, "value": { "type": "ClassExpression", @@ -1103,9 +1043,7 @@ "start": 688, "end": 690 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "MemberExpression", @@ -1126,9 +1064,7 @@ "start": 698, "end": 700 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "typeAnnotation": null, @@ -1181,9 +1117,7 @@ "start": 711, "end": 713 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -1244,9 +1178,7 @@ "start": 734, "end": 739 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" }, "value": { "type": "ClassExpression", @@ -1270,9 +1202,7 @@ "start": 768, "end": 770 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "MemberExpression", @@ -1293,9 +1223,7 @@ "start": 778, "end": 780 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "typeAnnotation": null, @@ -1349,9 +1277,7 @@ "start": 791, "end": 802 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1443,9 +1369,7 @@ "start": 841, "end": 852 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1519,9 +1443,7 @@ "start": 882, "end": 884 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrowFunctionExpression", @@ -1570,9 +1492,7 @@ "start": 915, "end": 917 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "property": { @@ -1581,9 +1501,7 @@ "start": 918, "end": 921 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -1617,9 +1535,7 @@ "start": 941, "end": 943 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": { "type": "ArrowFunctionExpression", @@ -1654,9 +1570,7 @@ "start": 957, "end": 959 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "property": { @@ -1665,9 +1579,7 @@ "start": 960, "end": 963 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json index 1a8ec15655e0..fbb234d0c3ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json @@ -772,9 +772,7 @@ "start": 331, "end": 332 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -842,9 +840,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -978,9 +974,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "FunctionExpression", @@ -1076,9 +1070,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { @@ -1195,9 +1187,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -1265,9 +1255,7 @@ "start": 470, "end": 471 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -1401,9 +1389,7 @@ "start": 497, "end": 498 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json index 0f24abf89a92..691ebf5d421f 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures3.json @@ -37,9 +37,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 212, "end": 215 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 261, "end": 265 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json index c853ed5437f8..f22fa05019e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures4.json @@ -62,9 +62,7 @@ "start": 126, "end": 129 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 226, "end": 229 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 279, "end": 283 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json index f44866d80b90..929884394bc3 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures5.json @@ -37,9 +37,7 @@ "start": 88, "end": 91 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 132, "end": 135 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 229, "end": 233 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json index 4a1c79fcc288..e4a47fb43013 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures6.json @@ -37,9 +37,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 136, "end": 139 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 184, "end": 187 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 233, "end": 237 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { @@ -2245,9 +2237,7 @@ "start": 672, "end": 673 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2308,9 +2298,7 @@ "start": 685, "end": 686 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2485,9 +2473,7 @@ "start": 722, "end": 724 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -2548,9 +2534,7 @@ "start": 738, "end": 740 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -2728,9 +2712,7 @@ "start": 768, "end": 770 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -2791,9 +2773,7 @@ "start": 784, "end": 786 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -3018,9 +2998,7 @@ "start": 829, "end": 831 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -3081,9 +3059,7 @@ "start": 845, "end": 847 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -3335,9 +3311,7 @@ "start": 891, "end": 893 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -3398,9 +3372,7 @@ "start": 907, "end": 909 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -3752,9 +3724,7 @@ "start": 977, "end": 980 }, - "ctxt": 0, - "value": "a11", - "optional": false + "value": "a11" } }, "right": { @@ -3815,9 +3785,7 @@ "start": 996, "end": 999 }, - "ctxt": 0, - "value": "a11", - "optional": false + "value": "a11" } } } @@ -4083,9 +4051,7 @@ "start": 1044, "end": 1047 }, - "ctxt": 0, - "value": "a16", - "optional": false + "value": "a16" } }, "right": { @@ -4146,9 +4112,7 @@ "start": 1063, "end": 1066 }, - "ctxt": 0, - "value": "a16", - "optional": false + "value": "a16" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json index f6406bede424..b1f903452079 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignaturesWithOptionalParameters.json @@ -905,9 +905,7 @@ "start": 561, "end": 562 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -958,9 +956,7 @@ "start": 580, "end": 582 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -1011,9 +1007,7 @@ "start": 600, "end": 602 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -1064,9 +1058,7 @@ "start": 623, "end": 625 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -1117,9 +1109,7 @@ "start": 646, "end": 648 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -1170,9 +1160,7 @@ "start": 666, "end": 668 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -1507,9 +1495,7 @@ "start": 902, "end": 903 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1560,9 +1546,7 @@ "start": 922, "end": 924 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -1613,9 +1597,7 @@ "start": 943, "end": 945 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -1666,9 +1648,7 @@ "start": 987, "end": 989 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -1719,9 +1699,7 @@ "start": 1044, "end": 1046 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -1772,9 +1750,7 @@ "start": 1065, "end": 1067 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -2208,9 +2184,7 @@ "start": 1365, "end": 1366 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2261,9 +2235,7 @@ "start": 1385, "end": 1387 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -2314,9 +2286,7 @@ "start": 1406, "end": 1408 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -2367,9 +2337,7 @@ "start": 1427, "end": 1429 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -2420,9 +2388,7 @@ "start": 1448, "end": 1450 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -2473,9 +2439,7 @@ "start": 1469, "end": 1471 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -2959,9 +2923,7 @@ "start": 1785, "end": 1786 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3012,9 +2974,7 @@ "start": 1805, "end": 1807 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -3065,9 +3025,7 @@ "start": 1826, "end": 1828 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -3118,9 +3076,7 @@ "start": 1847, "end": 1849 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -3171,9 +3127,7 @@ "start": 1868, "end": 1870 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -3224,9 +3178,7 @@ "start": 1889, "end": 1891 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -3710,9 +3662,7 @@ "start": 2219, "end": 2220 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3763,9 +3713,7 @@ "start": 2239, "end": 2241 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -3816,9 +3764,7 @@ "start": 2260, "end": 2262 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -3869,9 +3815,7 @@ "start": 2303, "end": 2305 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -3922,9 +3866,7 @@ "start": 2347, "end": 2349 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -3975,9 +3917,7 @@ "start": 2368, "end": 2370 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json index f7be6c7a66e9..25aed083f5d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures3.json @@ -37,9 +37,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 150, "end": 153 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 247, "end": 251 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json index 6bf001925122..0a6342620942 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures4.json @@ -62,9 +62,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 150, "end": 153 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 202, "end": 205 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 255, "end": 259 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json index 49ae77cbe7dd..36839dc25791 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures5.json @@ -37,9 +37,7 @@ "start": 75, "end": 78 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 119, "end": 122 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 167, "end": 170 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 216, "end": 220 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json index 6337e589f3b4..99b09c68f117 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures6.json @@ -37,9 +37,7 @@ "start": 93, "end": 96 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 234, "end": 238 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { @@ -2255,9 +2247,7 @@ "start": 715, "end": 716 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2318,9 +2308,7 @@ "start": 728, "end": 729 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2496,9 +2484,7 @@ "start": 769, "end": 771 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -2559,9 +2545,7 @@ "start": 785, "end": 787 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -2740,9 +2724,7 @@ "start": 819, "end": 821 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -2803,9 +2785,7 @@ "start": 835, "end": 837 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -3031,9 +3011,7 @@ "start": 884, "end": 886 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -3094,9 +3072,7 @@ "start": 900, "end": 902 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -3349,9 +3325,7 @@ "start": 950, "end": 952 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -3412,9 +3386,7 @@ "start": 966, "end": 968 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -3767,9 +3739,7 @@ "start": 1040, "end": 1043 }, - "ctxt": 0, - "value": "a11", - "optional": false + "value": "a11" } }, "right": { @@ -3830,9 +3800,7 @@ "start": 1059, "end": 1062 }, - "ctxt": 0, - "value": "a11", - "optional": false + "value": "a11" } } } @@ -4099,9 +4067,7 @@ "start": 1111, "end": 1114 }, - "ctxt": 0, - "value": "a16", - "optional": false + "value": "a16" } }, "right": { @@ -4162,9 +4128,7 @@ "start": 1130, "end": 1133 }, - "ctxt": 0, - "value": "a16", - "optional": false + "value": "a16" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json index 065da7c40d33..50c33192f33e 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json @@ -716,9 +716,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -769,9 +767,7 @@ "start": 428, "end": 430 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -822,9 +818,7 @@ "start": 448, "end": 450 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -875,9 +869,7 @@ "start": 471, "end": 473 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -928,9 +920,7 @@ "start": 494, "end": 496 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -981,9 +971,7 @@ "start": 514, "end": 516 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -1123,9 +1111,7 @@ "start": 576, "end": 577 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1176,9 +1162,7 @@ "start": 596, "end": 598 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -1229,9 +1213,7 @@ "start": 617, "end": 619 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -1282,9 +1264,7 @@ "start": 638, "end": 640 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -1335,9 +1315,7 @@ "start": 659, "end": 661 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -1388,9 +1366,7 @@ "start": 680, "end": 682 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -1530,9 +1506,7 @@ "start": 741, "end": 742 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1583,9 +1557,7 @@ "start": 761, "end": 763 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -1636,9 +1608,7 @@ "start": 782, "end": 784 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -1689,9 +1659,7 @@ "start": 803, "end": 805 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -1742,9 +1710,7 @@ "start": 824, "end": 826 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -1795,9 +1761,7 @@ "start": 845, "end": 847 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -1962,9 +1926,7 @@ "start": 917, "end": 918 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2015,9 +1977,7 @@ "start": 937, "end": 939 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -2068,9 +2028,7 @@ "start": 958, "end": 960 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -2121,9 +2079,7 @@ "start": 979, "end": 981 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -2174,9 +2130,7 @@ "start": 1000, "end": 1002 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -2227,9 +2181,7 @@ "start": 1021, "end": 1023 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } @@ -2394,9 +2346,7 @@ "start": 1091, "end": 1092 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2447,9 +2397,7 @@ "start": 1111, "end": 1113 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -2500,9 +2448,7 @@ "start": 1132, "end": 1134 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -2553,9 +2499,7 @@ "start": 1153, "end": 1155 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -2606,9 +2550,7 @@ "start": 1174, "end": 1176 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -2659,9 +2601,7 @@ "start": 1195, "end": 1197 }, - "ctxt": 0, - "value": "a6", - "optional": false + "value": "a6" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json index 098bd9a44285..3fe6a90e0df9 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json @@ -4693,9 +4693,7 @@ "start": 2694, "end": 2698 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -4715,9 +4713,7 @@ "start": 2705, "end": 2709 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "StringLiteral", @@ -4819,9 +4815,7 @@ "start": 2749, "end": 2753 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -4853,9 +4847,7 @@ "start": 2774, "end": 2778 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -5316,9 +5308,7 @@ "start": 3150, "end": 3155 }, - "ctxt": 0, - "value": "color", - "optional": false + "value": "color" }, "value": { "type": "Identifier", @@ -5851,9 +5841,7 @@ "start": 3644, "end": 3648 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "CallExpression", @@ -5948,9 +5936,7 @@ "start": 3693, "end": 3697 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "Identifier", @@ -6004,9 +5990,7 @@ "start": 3721, "end": 3725 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -6420,9 +6404,7 @@ "start": 4106, "end": 4110 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "Identifier", @@ -6801,9 +6783,7 @@ "start": 4392, "end": 4396 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "ParenthesisExpression", @@ -7229,9 +7209,7 @@ "start": 4701, "end": 4705 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "MemberExpression", @@ -7255,9 +7233,7 @@ "start": 4712, "end": 4716 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json index 187afbbcf5c1..78a07e402348 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.json @@ -62,9 +62,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -130,9 +128,7 @@ "start": 187, "end": 189 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": null, "typeAnnotation": { @@ -234,9 +230,7 @@ "start": 213, "end": 215 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" }, "value": null, "typeAnnotation": { @@ -338,9 +332,7 @@ "start": 238, "end": 240 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" }, "value": null, "typeAnnotation": { @@ -477,9 +469,7 @@ "start": 270, "end": 272 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" }, "value": null, "typeAnnotation": { @@ -616,9 +606,7 @@ "start": 304, "end": 308 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" }, "value": { "type": "ArrowFunctionExpression", @@ -668,9 +656,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -727,9 +713,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -822,9 +806,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -917,9 +899,7 @@ "start": 546, "end": 548 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -976,9 +956,7 @@ "start": 613, "end": 615 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -1071,9 +1049,7 @@ "start": 685, "end": 687 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -1166,9 +1142,7 @@ "start": 753, "end": 755 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -1225,9 +1199,7 @@ "start": 816, "end": 818 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -1320,9 +1292,7 @@ "start": 884, "end": 886 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -1415,9 +1385,7 @@ "start": 955, "end": 957 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -1545,9 +1513,7 @@ "start": 1036, "end": 1038 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -1604,9 +1570,7 @@ "start": 1099, "end": 1101 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -1734,9 +1698,7 @@ "start": 1174, "end": 1176 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -1829,9 +1791,7 @@ "start": 1245, "end": 1247 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -1959,9 +1919,7 @@ "start": 1321, "end": 1323 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -2018,9 +1976,7 @@ "start": 1384, "end": 1386 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -2148,9 +2104,7 @@ "start": 1459, "end": 1461 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -2243,9 +2197,7 @@ "start": 1529, "end": 1531 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -2456,9 +2408,7 @@ "start": 1666, "end": 1667 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -2554,9 +2504,7 @@ "start": 1689, "end": 1691 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": null, "typeAnnotation": { @@ -2688,9 +2636,7 @@ "start": 1718, "end": 1720 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" }, "value": null, "typeAnnotation": { @@ -2822,9 +2768,7 @@ "start": 1746, "end": 1748 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" }, "value": null, "typeAnnotation": { @@ -2991,9 +2935,7 @@ "start": 1781, "end": 1783 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" }, "value": null, "typeAnnotation": { @@ -3187,9 +3129,7 @@ "start": 1846, "end": 1847 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -3255,9 +3195,7 @@ "start": 1866, "end": 1868 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": null, "typeAnnotation": { @@ -3359,9 +3297,7 @@ "start": 1892, "end": 1894 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" }, "value": null, "typeAnnotation": { @@ -3463,9 +3399,7 @@ "start": 1917, "end": 1919 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" }, "value": null, "typeAnnotation": { @@ -3602,9 +3536,7 @@ "start": 1949, "end": 1951 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" }, "value": null, "typeAnnotation": { @@ -3967,9 +3899,7 @@ "start": 2087, "end": 2088 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3994,9 +3924,7 @@ "start": 2093, "end": 2094 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4036,9 +3964,7 @@ "start": 2106, "end": 2107 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4063,9 +3989,7 @@ "start": 2112, "end": 2114 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -4105,9 +4029,7 @@ "start": 2126, "end": 2127 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4132,9 +4054,7 @@ "start": 2132, "end": 2134 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -4174,9 +4094,7 @@ "start": 2146, "end": 2147 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4201,9 +4119,7 @@ "start": 2152, "end": 2154 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -4243,9 +4159,7 @@ "start": 2166, "end": 2167 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -4270,9 +4184,7 @@ "start": 2172, "end": 2174 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -4312,9 +4224,7 @@ "start": 2187, "end": 2189 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -4339,9 +4249,7 @@ "start": 2194, "end": 2195 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4381,9 +4289,7 @@ "start": 2207, "end": 2209 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -4408,9 +4314,7 @@ "start": 2214, "end": 2216 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -4450,9 +4354,7 @@ "start": 2228, "end": 2230 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -4477,9 +4379,7 @@ "start": 2235, "end": 2237 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -4519,9 +4419,7 @@ "start": 2249, "end": 2251 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -4546,9 +4444,7 @@ "start": 2256, "end": 2258 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -4588,9 +4484,7 @@ "start": 2270, "end": 2272 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -4615,9 +4509,7 @@ "start": 2277, "end": 2279 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -4657,9 +4549,7 @@ "start": 2292, "end": 2294 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -4684,9 +4574,7 @@ "start": 2299, "end": 2300 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4726,9 +4614,7 @@ "start": 2312, "end": 2314 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -4753,9 +4639,7 @@ "start": 2319, "end": 2321 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -4795,9 +4679,7 @@ "start": 2333, "end": 2335 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -4822,9 +4704,7 @@ "start": 2340, "end": 2342 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -4864,9 +4744,7 @@ "start": 2354, "end": 2356 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -4891,9 +4769,7 @@ "start": 2361, "end": 2363 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -4933,9 +4809,7 @@ "start": 2375, "end": 2377 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -4960,9 +4834,7 @@ "start": 2382, "end": 2384 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -5002,9 +4874,7 @@ "start": 2397, "end": 2399 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -5029,9 +4899,7 @@ "start": 2404, "end": 2405 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -5071,9 +4939,7 @@ "start": 2417, "end": 2419 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -5098,9 +4964,7 @@ "start": 2424, "end": 2426 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -5140,9 +5004,7 @@ "start": 2438, "end": 2440 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -5167,9 +5029,7 @@ "start": 2445, "end": 2447 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -5209,9 +5069,7 @@ "start": 2459, "end": 2461 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -5236,9 +5094,7 @@ "start": 2466, "end": 2468 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -5278,9 +5134,7 @@ "start": 2480, "end": 2482 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -5305,9 +5159,7 @@ "start": 2487, "end": 2489 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -5347,9 +5199,7 @@ "start": 2502, "end": 2504 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -5374,9 +5224,7 @@ "start": 2509, "end": 2510 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -5416,9 +5264,7 @@ "start": 2522, "end": 2524 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -5443,9 +5289,7 @@ "start": 2529, "end": 2531 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } } } @@ -5485,9 +5329,7 @@ "start": 2543, "end": 2545 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -5512,9 +5354,7 @@ "start": 2550, "end": 2552 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } } } @@ -5554,9 +5394,7 @@ "start": 2564, "end": 2566 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -5581,9 +5419,7 @@ "start": 2571, "end": 2573 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } } } @@ -5623,9 +5459,7 @@ "start": 2585, "end": 2587 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -5650,9 +5484,7 @@ "start": 2592, "end": 2594 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } } } @@ -5754,9 +5586,7 @@ "start": 2664, "end": 2665 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -5852,9 +5682,7 @@ "start": 2687, "end": 2689 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": null, "typeAnnotation": { @@ -5986,9 +5814,7 @@ "start": 2716, "end": 2718 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" }, "value": null, "typeAnnotation": { @@ -6120,9 +5946,7 @@ "start": 2744, "end": 2746 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" }, "value": null, "typeAnnotation": { @@ -6289,9 +6113,7 @@ "start": 2779, "end": 2781 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" }, "value": null, "typeAnnotation": { @@ -6458,9 +6280,7 @@ "start": 2816, "end": 2820 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" }, "value": { "type": "ArrowFunctionExpression", @@ -6510,9 +6330,7 @@ "start": 2848, "end": 2849 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6599,9 +6417,7 @@ "start": 2917, "end": 2918 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6724,9 +6540,7 @@ "start": 2991, "end": 2992 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6849,9 +6663,7 @@ "start": 3067, "end": 3069 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -6938,9 +6750,7 @@ "start": 3137, "end": 3139 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -7063,9 +6873,7 @@ "start": 3212, "end": 3214 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" } }, "right": { @@ -7188,9 +6996,7 @@ "start": 3283, "end": 3285 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -7277,9 +7083,7 @@ "start": 3349, "end": 3351 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -7402,9 +7206,7 @@ "start": 3420, "end": 3422 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -7527,9 +7329,7 @@ "start": 3494, "end": 3496 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" } }, "right": { @@ -7687,9 +7487,7 @@ "start": 3578, "end": 3580 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -7776,9 +7574,7 @@ "start": 3644, "end": 3646 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -7936,9 +7732,7 @@ "start": 3722, "end": 3724 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -8061,9 +7855,7 @@ "start": 3796, "end": 3798 }, - "ctxt": 0, - "value": "a4", - "optional": false + "value": "a4" } }, "right": { @@ -8221,9 +8013,7 @@ "start": 3875, "end": 3877 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -8310,9 +8100,7 @@ "start": 3941, "end": 3943 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -8470,9 +8258,7 @@ "start": 4019, "end": 4021 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { @@ -8595,9 +8381,7 @@ "start": 4092, "end": 4094 }, - "ctxt": 0, - "value": "a5", - "optional": false + "value": "a5" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json index 1d22a8018a73..dfdd07e6a559 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json @@ -62,9 +62,7 @@ "start": 175, "end": 178 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 204, "end": 207 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -726,9 +722,7 @@ "start": 421, "end": 424 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -788,9 +782,7 @@ "start": 447, "end": 450 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -1552,9 +1544,7 @@ "start": 729, "end": 732 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1631,9 +1621,7 @@ "start": 753, "end": 756 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2276,9 +2264,7 @@ "start": 961, "end": 964 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -2339,9 +2325,7 @@ "start": 987, "end": 990 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json index 8ef447507188..c261a951fe83 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json @@ -37,9 +37,7 @@ "start": 182, "end": 185 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 207, "end": 210 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -841,9 +837,7 @@ "start": 440, "end": 443 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -903,9 +897,7 @@ "start": 462, "end": 465 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json index d9e91fe56c30..c4472286e63e 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json @@ -37,9 +37,7 @@ "start": 196, "end": 199 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -125,9 +123,7 @@ "start": 235, "end": 238 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -903,9 +899,7 @@ "start": 472, "end": 475 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -989,9 +983,7 @@ "start": 498, "end": 501 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers4.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers4.json index 1324d88c7b6c..6d7d61c8a3d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers4.json @@ -62,9 +62,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 257, "end": 260 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 287, "end": 290 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -366,9 +358,7 @@ "start": 317, "end": 320 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1011,9 +1001,7 @@ "start": 542, "end": 545 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NewExpression", @@ -1084,9 +1072,7 @@ "start": 579, "end": 582 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NewExpression", @@ -1859,9 +1845,7 @@ "start": 1026, "end": 1029 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1928,9 +1912,7 @@ "start": 1074, "end": 1077 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -2006,9 +1988,7 @@ "start": 1123, "end": 1126 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -2084,9 +2064,7 @@ "start": 1153, "end": 1156 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2163,9 +2141,7 @@ "start": 1180, "end": 1183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2808,9 +2784,7 @@ "start": 1399, "end": 1402 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NewExpression", @@ -2881,9 +2855,7 @@ "start": 1433, "end": 1436 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers5.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers5.json index b3911bbca35a..0fa8881f76f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers5.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers5.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersAccessibility.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersAccessibility.json index 3c53ca76afbe..faaa8733c727 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersAccessibility.json @@ -62,9 +62,7 @@ "start": 189, "end": 192 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -389,9 +387,7 @@ "start": 359, "end": 362 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -458,9 +454,7 @@ "start": 409, "end": 412 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1423,9 +1417,7 @@ "start": 845, "end": 848 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1733,9 +1725,7 @@ "start": 1007, "end": 1010 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1802,9 +1792,7 @@ "start": 1057, "end": 1060 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality.json index fbad659754de..267dcf330652 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality.json @@ -37,9 +37,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 126, "end": 129 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -543,9 +537,7 @@ "start": 341, "end": 344 }, - "ctxt": 0, - "value": "opt", - "optional": false + "value": "opt" }, "value": { "type": "NewExpression", @@ -1724,9 +1716,7 @@ "start": 855, "end": 858 }, - "ctxt": 0, - "value": "opt", - "optional": false + "value": "opt" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality2.json index c23a9c12c5b7..cc32e0eeede7 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersOptionality2.json @@ -37,9 +37,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -543,9 +537,7 @@ "start": 410, "end": 413 }, - "ctxt": 0, - "value": "opt", - "optional": false + "value": "opt" }, "value": { "type": "NewExpression", @@ -1724,9 +1716,7 @@ "start": 965, "end": 968 }, - "ctxt": 0, - "value": "opt", - "optional": false + "value": "opt" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json b/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json index 4d2012b8ce78..0075ba6786a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json @@ -161,9 +161,7 @@ "start": 79, "end": 82 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -180,9 +178,7 @@ "start": 85, "end": 86 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -595,9 +591,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json index d793ef308638..1d1b4f8bfbf7 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json @@ -355,9 +355,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -624,9 +622,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json index 0b64d331ab4b..c4c4efece34a 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json @@ -319,9 +319,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -377,9 +375,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -434,9 +430,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -486,9 +480,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -544,9 +536,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -601,9 +591,7 @@ "start": 212, "end": 213 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -657,9 +645,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -720,9 +706,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -890,9 +874,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -946,9 +928,7 @@ "start": 385, "end": 387 }, - "ctxt": 0, - "value": "M3", - "optional": false + "value": "M3" } }, "right": { @@ -966,9 +946,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1026,9 +1004,7 @@ "start": 411, "end": 413 }, - "ctxt": 0, - "value": "M3", - "optional": false + "value": "M3" } }, "right": { @@ -1046,9 +1022,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1105,9 +1079,7 @@ "start": 436, "end": 438 }, - "ctxt": 0, - "value": "M3", - "optional": false + "value": "M3" } } }, @@ -1126,9 +1098,7 @@ "start": 444, "end": 445 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1179,9 +1149,7 @@ "start": 462, "end": 464 }, - "ctxt": 0, - "value": "M3", - "optional": false + "value": "M3" } }, "right": { @@ -1199,9 +1167,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1259,9 +1225,7 @@ "start": 492, "end": 494 }, - "ctxt": 0, - "value": "M3", - "optional": false + "value": "M3" } }, "right": { @@ -1279,9 +1243,7 @@ "start": 499, "end": 500 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1338,9 +1300,7 @@ "start": 521, "end": 523 }, - "ctxt": 0, - "value": "M3", - "optional": false + "value": "M3" } } }, @@ -1359,9 +1319,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1838,9 +1796,7 @@ "start": 799, "end": 800 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -1895,9 +1851,7 @@ "start": 819, "end": 820 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } } }, @@ -1954,9 +1908,7 @@ "start": 841, "end": 842 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -2011,9 +1963,7 @@ "start": 865, "end": 866 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero1.json b/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero1.json index c020e5373870..9749562d9d5c 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero1.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero1.json @@ -40,9 +40,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -74,9 +72,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -134,9 +130,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -185,9 +179,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json b/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json index 9e0e4541baa8..a87b3b3def37 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json @@ -40,9 +40,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { @@ -91,9 +89,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } }, "right": { @@ -189,9 +185,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -240,9 +234,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -299,9 +291,7 @@ "start": 229, "end": 230 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -326,9 +316,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -393,9 +381,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -441,9 +427,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -558,9 +542,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -585,9 +567,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json b/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json index aaf783b43780..234b6df71121 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json @@ -375,9 +375,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -444,9 +442,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -479,9 +475,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -587,9 +581,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -656,9 +648,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -707,9 +697,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1088,9 +1076,7 @@ "start": 436, "end": 437 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1146,9 +1132,7 @@ "start": 465, "end": 469 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -1169,9 +1153,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/assignments.json b/crates/swc_ecma_parser/tests/tsc/assignments.json index c5485e1b5f34..bbe1028ac1ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignments.json +++ b/crates/swc_ecma_parser/tests/tsc/assignments.json @@ -231,9 +231,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json index 00f69dc1f068..1d3b0584325d 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json @@ -37,9 +37,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -143,9 +141,7 @@ "start": 191, "end": 198 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es2017.json index 62a3deb52458..211ac78b5f8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es2017.json @@ -37,9 +37,7 @@ "start": 57, "end": 63 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -161,9 +159,7 @@ "start": 133, "end": 138 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es5.json index 3dbd2f776635..08128509f46c 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es5.json @@ -37,9 +37,7 @@ "start": 82, "end": 88 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -161,9 +159,7 @@ "start": 158, "end": 163 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es6.json index 0b403389bb96..b720939c9505 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesArguments_es6.json @@ -37,9 +37,7 @@ "start": 54, "end": 60 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -161,9 +159,7 @@ "start": 130, "end": 135 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -296,9 +292,7 @@ "start": 221, "end": 227 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": true, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es2017.json index 5108776f62eb..cde5410cc65b 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es2017.json @@ -37,9 +37,7 @@ "start": 57, "end": 63 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es5.json index 0f3ef646a052..7a988887ea03 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es5.json @@ -37,9 +37,7 @@ "start": 82, "end": 88 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es6.json index 254725fb7a18..9044f355897f 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunctionCapturesThis_es6.json @@ -37,9 +37,7 @@ "start": 54, "end": 60 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json index 10775d91d64a..bd5a654fed28 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json @@ -1193,9 +1193,7 @@ "start": 647, "end": 649 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -1226,9 +1224,7 @@ "start": 664, "end": 666 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1299,9 +1295,7 @@ "start": 696, "end": 698 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "params": [], "decorators": [], @@ -1402,9 +1396,7 @@ "start": 743, "end": 745 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -1447,9 +1439,7 @@ "start": 759, "end": 761 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -1532,9 +1522,7 @@ "start": 790, "end": 792 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -1617,9 +1605,7 @@ "start": 830, "end": 832 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "function": { "params": [], @@ -1662,9 +1648,7 @@ "start": 853, "end": 855 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" }, "function": { "params": [], @@ -1747,9 +1731,7 @@ "start": 891, "end": 893 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json index ec6731f6c317..fee4c6ca37b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json @@ -1193,9 +1193,7 @@ "start": 671, "end": 673 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -1226,9 +1224,7 @@ "start": 688, "end": 690 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1299,9 +1295,7 @@ "start": 720, "end": 722 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "params": [], "decorators": [], @@ -1402,9 +1396,7 @@ "start": 767, "end": 769 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -1447,9 +1439,7 @@ "start": 783, "end": 785 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -1532,9 +1522,7 @@ "start": 814, "end": 816 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -1617,9 +1605,7 @@ "start": 854, "end": 856 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "function": { "params": [], @@ -1662,9 +1648,7 @@ "start": 877, "end": 879 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" }, "function": { "params": [], @@ -1747,9 +1731,7 @@ "start": 915, "end": 917 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json index 220ec6e143eb..8b1f27092939 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json @@ -1193,9 +1193,7 @@ "start": 644, "end": 646 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -1226,9 +1224,7 @@ "start": 661, "end": 663 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1299,9 +1295,7 @@ "start": 693, "end": 695 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "params": [], "decorators": [], @@ -1402,9 +1396,7 @@ "start": 740, "end": 742 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -1447,9 +1439,7 @@ "start": 756, "end": 758 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -1532,9 +1522,7 @@ "start": 787, "end": 789 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -1617,9 +1605,7 @@ "start": 827, "end": 829 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "function": { "params": [], @@ -1662,9 +1648,7 @@ "start": 850, "end": 852 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" }, "function": { "params": [], @@ -1747,9 +1731,7 @@ "start": 888, "end": 890 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitNestedClasses_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitNestedClasses_es5.json index d334d47b5085..ddc9357ed030 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitNestedClasses_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitNestedClasses_es5.json @@ -37,9 +37,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": { "type": "ClassExpression", @@ -72,9 +70,7 @@ "start": 175, "end": 180 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" }, "function": { "params": [], @@ -262,9 +258,7 @@ "start": 290, "end": 291 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" }, "value": { "type": "ClassExpression", @@ -297,9 +291,7 @@ "start": 329, "end": 333 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "function": { "params": [], @@ -358,9 +350,7 @@ "start": 362, "end": 367 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } }, "arguments": [], @@ -472,9 +462,7 @@ "start": 406, "end": 407 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "property": { @@ -483,9 +471,7 @@ "start": 408, "end": 409 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "property": { @@ -494,9 +480,7 @@ "start": 410, "end": 414 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json index 49f07106dfc5..44bf2456fb28 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json @@ -1302,9 +1302,7 @@ "start": 653, "end": 655 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -1335,9 +1333,7 @@ "start": 670, "end": 672 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1408,9 +1404,7 @@ "start": 702, "end": 704 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "params": [], "decorators": [], @@ -1511,9 +1505,7 @@ "start": 749, "end": 751 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -1556,9 +1548,7 @@ "start": 765, "end": 767 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -1641,9 +1631,7 @@ "start": 796, "end": 798 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -1726,9 +1714,7 @@ "start": 836, "end": 838 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "function": { "params": [], @@ -1771,9 +1757,7 @@ "start": 859, "end": 861 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" }, "function": { "params": [], @@ -1856,9 +1840,7 @@ "start": 897, "end": 899 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" }, "function": { "params": [], @@ -2045,9 +2027,7 @@ "start": 999, "end": 1004 }, - "ctxt": 0, - "value": "block", - "optional": false + "value": "block" }, "body": { "type": "BlockStatement", @@ -2092,9 +2072,7 @@ "start": 1039, "end": 1044 }, - "ctxt": 0, - "value": "block", - "optional": false + "value": "block" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json index 8baad24a1e96..c5f689c80ec2 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json @@ -1302,9 +1302,7 @@ "start": 678, "end": 680 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -1335,9 +1333,7 @@ "start": 695, "end": 697 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1408,9 +1404,7 @@ "start": 727, "end": 729 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "params": [], "decorators": [], @@ -1511,9 +1505,7 @@ "start": 774, "end": 776 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -1556,9 +1548,7 @@ "start": 790, "end": 792 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -1641,9 +1631,7 @@ "start": 821, "end": 823 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -1726,9 +1714,7 @@ "start": 861, "end": 863 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "function": { "params": [], @@ -1771,9 +1757,7 @@ "start": 884, "end": 886 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" }, "function": { "params": [], @@ -1856,9 +1840,7 @@ "start": 922, "end": 924 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" }, "function": { "params": [], @@ -2045,9 +2027,7 @@ "start": 1024, "end": 1029 }, - "ctxt": 0, - "value": "block", - "optional": false + "value": "block" }, "body": { "type": "BlockStatement", @@ -2092,9 +2072,7 @@ "start": 1064, "end": 1069 }, - "ctxt": 0, - "value": "block", - "optional": false + "value": "block" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json index 77c358ebe494..bbec8bc328fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json @@ -1302,9 +1302,7 @@ "start": 650, "end": 652 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -1335,9 +1333,7 @@ "start": 667, "end": 669 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1408,9 +1404,7 @@ "start": 699, "end": 701 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "params": [], "decorators": [], @@ -1511,9 +1505,7 @@ "start": 746, "end": 748 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -1556,9 +1548,7 @@ "start": 762, "end": 764 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -1641,9 +1631,7 @@ "start": 793, "end": 795 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -1726,9 +1714,7 @@ "start": 833, "end": 835 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "function": { "params": [], @@ -1771,9 +1757,7 @@ "start": 856, "end": 858 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" }, "function": { "params": [], @@ -1856,9 +1840,7 @@ "start": 894, "end": 896 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" }, "function": { "params": [], @@ -2045,9 +2027,7 @@ "start": 996, "end": 1001 }, - "ctxt": 0, - "value": "block", - "optional": false + "value": "block" }, "body": { "type": "BlockStatement", @@ -2092,9 +2072,7 @@ "start": 1036, "end": 1041 }, - "ctxt": 0, - "value": "block", - "optional": false + "value": "block" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclaration16_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclaration16_es5.json index 8fcd922a052d..ad124f311035 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclaration16_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclaration16_es5.json @@ -37,9 +37,7 @@ "start": 174, "end": 178 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclarationCapturesArguments_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclarationCapturesArguments_es5.json index 9d9302c291ee..f90dd5f6691e 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclarationCapturesArguments_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclarationCapturesArguments_es5.json @@ -37,9 +37,7 @@ "start": 82, "end": 88 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -160,9 +158,7 @@ "start": 171, "end": 176 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/asyncGeneratorParameterEvaluation.json b/crates/swc_ecma_parser/tests/tsc/asyncGeneratorParameterEvaluation.json index 5852650818d0..e5df83727aba 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncGeneratorParameterEvaluation.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncGeneratorParameterEvaluation.json @@ -212,9 +212,7 @@ "start": 246, "end": 249 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -290,9 +288,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -440,9 +436,7 @@ "start": 329, "end": 332 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json index 94a495f9d24e..1854dd6e31f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json @@ -175,9 +175,7 @@ "start": 209, "end": 216 }, - "ctxt": 0, - "value": "example", - "optional": false + "value": "example" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json index 7a9150b4d7d9..cc335251f0bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json @@ -175,9 +175,7 @@ "start": 181, "end": 188 }, - "ctxt": 0, - "value": "example", - "optional": false + "value": "example" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json index f0c6033beb16..7ae002b86c32 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 47, "end": 48 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -154,9 +150,7 @@ "start": 169, "end": 175 }, - "ctxt": 0, - "value": "simple", - "optional": false + "value": "simple" }, "function": { "params": [], @@ -282,9 +276,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -323,9 +315,7 @@ "start": 350, "end": 351 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -425,9 +415,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -521,9 +509,7 @@ "start": 637, "end": 645 }, - "ctxt": 0, - "value": "advanced", - "optional": false + "value": "advanced" }, "function": { "params": [], @@ -702,9 +688,7 @@ "start": 793, "end": 794 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -804,9 +788,7 @@ "start": 916, "end": 917 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -906,9 +888,7 @@ "start": 1034, "end": 1035 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1012,9 +992,7 @@ "start": 1166, "end": 1167 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -1035,9 +1013,7 @@ "start": 1175, "end": 1176 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1101,9 +1077,7 @@ "start": 1253, "end": 1254 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json index e3f5bca8b0e9..83ef1a1fc8a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json @@ -37,9 +37,7 @@ "start": 58, "end": 59 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -154,9 +150,7 @@ "start": 196, "end": 202 }, - "ctxt": 0, - "value": "simple", - "optional": false + "value": "simple" }, "function": { "params": [], @@ -206,9 +200,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -247,9 +239,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -349,9 +339,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -445,9 +433,7 @@ "start": 601, "end": 609 }, - "ctxt": 0, - "value": "advanced", - "optional": false + "value": "advanced" }, "function": { "params": [], @@ -550,9 +536,7 @@ "start": 694, "end": 695 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -652,9 +636,7 @@ "start": 817, "end": 818 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -754,9 +736,7 @@ "start": 935, "end": 936 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -860,9 +840,7 @@ "start": 1067, "end": 1068 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -883,9 +861,7 @@ "start": 1076, "end": 1077 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -949,9 +925,7 @@ "start": 1154, "end": 1155 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json index 7dc4c4ed78c8..152b5e6dc81f 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json @@ -37,9 +37,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -154,9 +150,7 @@ "start": 221, "end": 227 }, - "ctxt": 0, - "value": "simple", - "optional": false + "value": "simple" }, "function": { "params": [], @@ -206,9 +200,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -247,9 +239,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -349,9 +339,7 @@ "start": 462, "end": 463 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -445,9 +433,7 @@ "start": 626, "end": 634 }, - "ctxt": 0, - "value": "advanced", - "optional": false + "value": "advanced" }, "function": { "params": [], @@ -550,9 +536,7 @@ "start": 719, "end": 720 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -652,9 +636,7 @@ "start": 842, "end": 843 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -754,9 +736,7 @@ "start": 960, "end": 961 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -860,9 +840,7 @@ "start": 1092, "end": 1093 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -883,9 +861,7 @@ "start": 1101, "end": 1102 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -949,9 +925,7 @@ "start": 1179, "end": 1180 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json index 23932b3651b0..8f9fe567b574 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json @@ -37,9 +37,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -154,9 +150,7 @@ "start": 209, "end": 215 }, - "ctxt": 0, - "value": "simple", - "optional": false + "value": "simple" }, "function": { "params": [], @@ -206,9 +200,7 @@ "start": 271, "end": 272 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -247,9 +239,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -349,9 +339,7 @@ "start": 450, "end": 451 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -445,9 +433,7 @@ "start": 614, "end": 622 }, - "ctxt": 0, - "value": "advanced", - "optional": false + "value": "advanced" }, "function": { "params": [], @@ -550,9 +536,7 @@ "start": 707, "end": 708 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -652,9 +636,7 @@ "start": 830, "end": 831 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -754,9 +736,7 @@ "start": 948, "end": 949 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -860,9 +840,7 @@ "start": 1080, "end": 1081 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -883,9 +861,7 @@ "start": 1089, "end": 1090 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -949,9 +925,7 @@ "start": 1167, "end": 1168 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -1056,9 +1030,7 @@ "start": 1251, "end": 1252 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -1184,9 +1156,7 @@ "start": 1393, "end": 1394 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -1292,9 +1262,7 @@ "start": 1494, "end": 1524 }, - "ctxt": 0, - "value": "property_access_only_read_only", - "optional": false + "value": "property_access_only_read_only" }, "function": { "params": [], @@ -1344,9 +1312,7 @@ "start": 1580, "end": 1581 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -1399,9 +1365,7 @@ "start": 1644, "end": 1645 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1454,9 +1418,7 @@ "start": 1705, "end": 1706 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -1515,9 +1477,7 @@ "start": 1781, "end": 1782 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -1556,9 +1516,7 @@ "start": 1804, "end": 1835 }, - "ctxt": 0, - "value": "property_access_only_write_only", - "optional": false + "value": "property_access_only_write_only" }, "function": { "params": [], @@ -1661,9 +1619,7 @@ "start": 1919, "end": 1920 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1712,9 +1668,7 @@ "start": 1991, "end": 1992 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -1735,9 +1689,7 @@ "start": 2000, "end": 2001 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1813,9 +1765,7 @@ "start": 2081, "end": 2082 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1882,9 +1832,7 @@ "start": 2168, "end": 2169 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1931,9 +1879,7 @@ "start": 2193, "end": 2222 }, - "ctxt": 0, - "value": "element_access_only_read_only", - "optional": false + "value": "element_access_only_read_only" }, "function": { "params": [], @@ -2219,9 +2165,7 @@ "start": 2510, "end": 2540 }, - "ctxt": 0, - "value": "element_access_only_write_only", - "optional": false + "value": "element_access_only_write_only" }, "function": { "params": [], @@ -2381,9 +2325,7 @@ "start": 2697, "end": 2698 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -2618,9 +2560,7 @@ "start": 2908, "end": 2951 }, - "ctxt": 0, - "value": "property_access_only_read_only_in_generator", - "optional": false + "value": "property_access_only_read_only_in_generator" }, "function": { "params": [], @@ -2670,9 +2610,7 @@ "start": 3007, "end": 3008 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -2725,9 +2663,7 @@ "start": 3071, "end": 3072 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -2780,9 +2716,7 @@ "start": 3132, "end": 3133 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -2841,9 +2775,7 @@ "start": 3208, "end": 3209 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -2882,9 +2814,7 @@ "start": 3233, "end": 3277 }, - "ctxt": 0, - "value": "property_access_only_write_only_in_generator", - "optional": false + "value": "property_access_only_write_only_in_generator" }, "function": { "params": [], @@ -2987,9 +2917,7 @@ "start": 3361, "end": 3362 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -3038,9 +2966,7 @@ "start": 3433, "end": 3434 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -3061,9 +2987,7 @@ "start": 3442, "end": 3443 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -3139,9 +3063,7 @@ "start": 3523, "end": 3524 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -3208,9 +3130,7 @@ "start": 3610, "end": 3611 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -3257,9 +3177,7 @@ "start": 3637, "end": 3679 }, - "ctxt": 0, - "value": "element_access_only_read_only_in_generator", - "optional": false + "value": "element_access_only_read_only_in_generator" }, "function": { "params": [], @@ -3545,9 +3463,7 @@ "start": 3969, "end": 4012 }, - "ctxt": 0, - "value": "element_access_only_write_only_in_generator", - "optional": false + "value": "element_access_only_write_only_in_generator" }, "function": { "params": [], @@ -3707,9 +3623,7 @@ "start": 4169, "end": 4170 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "SuperPropExpression", @@ -3980,9 +3894,7 @@ "start": 4447, "end": 4453 }, - "ctxt": 0, - "value": "setter", - "optional": false + "value": "setter" }, "function": { "params": [ @@ -4059,9 +3971,7 @@ "start": 4473, "end": 4479 }, - "ctxt": 0, - "value": "getter", - "optional": false + "value": "getter" }, "function": { "params": [], @@ -4127,9 +4037,7 @@ "start": 4503, "end": 4509 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -4220,9 +4128,7 @@ "start": 4545, "end": 4551 }, - "ctxt": 0, - "value": "setter", - "optional": false + "value": "setter" }, "function": { "params": [ @@ -4299,9 +4205,7 @@ "start": 4578, "end": 4584 }, - "ctxt": 0, - "value": "getter", - "optional": false + "value": "getter" }, "function": { "params": [], @@ -4367,9 +4271,7 @@ "start": 4615, "end": 4621 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -4487,9 +4389,7 @@ "start": 4677, "end": 4678 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -4547,9 +4447,7 @@ "start": 4708, "end": 4714 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [ @@ -4600,9 +4498,7 @@ "start": 4725, "end": 4726 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -4653,9 +4549,7 @@ "start": 4756, "end": 4762 }, - "ctxt": 0, - "value": "getter", - "optional": false + "value": "getter" } }, "async": true, @@ -4690,9 +4584,7 @@ "start": 4769, "end": 4770 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -4750,9 +4642,7 @@ "start": 4800, "end": 4806 }, - "ctxt": 0, - "value": "setter", - "optional": false + "value": "setter" } }, "right": { @@ -4797,9 +4687,7 @@ "start": 4818, "end": 4819 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "function": { "params": [], @@ -4916,9 +4804,7 @@ "start": 4869, "end": 4870 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "function": { "params": [], @@ -5012,9 +4898,7 @@ "start": 4916, "end": 4917 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -5125,9 +5009,7 @@ "start": 4975, "end": 4976 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -5185,9 +5067,7 @@ "start": 5006, "end": 5012 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [ @@ -5238,9 +5118,7 @@ "start": 5030, "end": 5031 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -5291,9 +5169,7 @@ "start": 5061, "end": 5067 }, - "ctxt": 0, - "value": "getter", - "optional": false + "value": "getter" } }, "async": true, @@ -5328,9 +5204,7 @@ "start": 5081, "end": 5082 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -5388,9 +5262,7 @@ "start": 5112, "end": 5118 }, - "ctxt": 0, - "value": "setter", - "optional": false + "value": "setter" } }, "right": { @@ -5435,9 +5307,7 @@ "start": 5137, "end": 5138 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "function": { "params": [], @@ -5554,9 +5424,7 @@ "start": 5195, "end": 5196 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "function": { "params": [], @@ -5650,9 +5518,7 @@ "start": 5249, "end": 5250 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json index f351630c764f..92ccc612e3fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json @@ -880,9 +880,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -1000,9 +998,7 @@ "start": 510, "end": 511 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -1139,9 +1135,7 @@ "start": 564, "end": 565 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "AssignmentPattern", @@ -4680,9 +4674,7 @@ "start": 2379, "end": 2382 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "body": { "type": "BlockStatement", @@ -4736,9 +4728,7 @@ "start": 2415, "end": 2418 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor1.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor1.json index f74dbf3df3a4..3a02b6ce3985 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor1.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor1.json @@ -37,9 +37,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -76,9 +74,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -109,9 +105,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -148,9 +142,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor10.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor10.json index d0123ad9b887..93a6f0422254 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor10.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor10.json @@ -37,9 +37,7 @@ "start": 45, "end": 47 }, - "ctxt": 0, - "value": "a0", - "optional": false + "value": "a0" }, "value": { "type": "NumericLiteral", @@ -130,9 +128,7 @@ "start": 110, "end": 112 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "NumericLiteral", @@ -257,9 +253,7 @@ "start": 228, "end": 230 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "NumericLiteral", @@ -377,9 +371,7 @@ "start": 367, "end": 369 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" }, "value": { "type": "NumericLiteral", @@ -437,9 +429,7 @@ "start": 411, "end": 413 }, - "ctxt": 0, - "value": "a3", - "optional": false + "value": "a3" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor11.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor11.json index 02ba6681bb11..f883d0c9ab92 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor11.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor11.json @@ -37,9 +37,7 @@ "start": 35, "end": 43 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 48, "end": 49 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": null, @@ -93,9 +89,7 @@ "start": 62, "end": 70 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "value": null, "typeAnnotation": null, @@ -121,9 +115,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": null, @@ -149,9 +141,7 @@ "start": 93, "end": 101 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "value": null, "typeAnnotation": null, @@ -177,9 +167,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": null, @@ -205,9 +193,7 @@ "start": 122, "end": 130 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "value": null, "typeAnnotation": null, @@ -230,9 +216,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor2.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor2.json index 23f3c2a7298f..f45295e45975 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor2.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor2.json @@ -174,9 +174,7 @@ "start": 153, "end": 164 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor6.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor6.json index 4c53e9f62c02..e75d4ff469e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor6.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor6.json @@ -37,9 +37,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -103,9 +101,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -175,9 +171,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -220,9 +214,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor7.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor7.json index e8380f73b708..a553877796b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor7.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor7.json @@ -37,9 +37,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -103,9 +101,7 @@ "start": 156, "end": 157 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -172,9 +168,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor8.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor8.json index 5f7739fcb4ae..ae418743442e 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor8.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor8.json @@ -37,9 +37,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -76,9 +74,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -142,9 +138,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -181,9 +175,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -275,9 +267,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -314,9 +304,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor9.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor9.json index 47ea7260a14d..93764d812be4 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor9.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor9.json @@ -37,9 +37,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -97,9 +95,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -133,9 +129,7 @@ "start": 417, "end": 418 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -166,9 +160,7 @@ "start": 428, "end": 429 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -262,9 +254,7 @@ "start": 589, "end": 590 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -322,9 +312,7 @@ "start": 743, "end": 744 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -391,9 +379,7 @@ "start": 766, "end": 767 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -487,9 +473,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -520,9 +504,7 @@ "start": 823, "end": 824 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -583,9 +565,7 @@ "start": 901, "end": 902 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -643,9 +623,7 @@ "start": 970, "end": 971 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -679,9 +657,7 @@ "start": 997, "end": 998 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -712,9 +688,7 @@ "start": 1015, "end": 1016 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json b/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json index f41291c6b9c6..6546ca5ffb58 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json @@ -37,9 +37,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -76,9 +74,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -115,9 +111,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -154,9 +148,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -193,9 +185,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -232,9 +222,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -271,9 +259,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": null, "typeAnnotation": { @@ -310,9 +296,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": null, "typeAnnotation": { @@ -349,9 +333,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": null, "typeAnnotation": { @@ -546,9 +528,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": { @@ -612,9 +592,7 @@ "start": 510, "end": 511 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -651,9 +629,7 @@ "start": 547, "end": 548 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": null, "typeAnnotation": { @@ -726,9 +702,7 @@ "start": 590, "end": 591 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessorNoUseDefineForClassFields.json b/crates/swc_ecma_parser/tests/tsc/autoAccessorNoUseDefineForClassFields.json index cf9bb39aa823..19e548d48c4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessorNoUseDefineForClassFields.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessorNoUseDefineForClassFields.json @@ -37,9 +37,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -244,9 +242,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -362,9 +358,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -487,9 +481,7 @@ "start": 570, "end": 571 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es2017.json index 2342604d2163..60c709a22c96 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es2017.json @@ -375,9 +375,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es5.json index 70f564466be0..ba467175beeb 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es5.json @@ -375,9 +375,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es6.json index baa25da3a738..17d38b63140d 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitBinaryExpression5_es6.json @@ -375,9 +375,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json index a892e9a77ab9..ad5d744304d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es2017.json @@ -971,9 +971,7 @@ "start": 549, "end": 551 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json index 7b42906cf796..6b1e3457ed59 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es5.json @@ -971,9 +971,7 @@ "start": 574, "end": 576 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json index 47517a6d12e4..0e5fcd217ca3 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression5_es6.json @@ -971,9 +971,7 @@ "start": 546, "end": 548 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json index 47043202c721..a8e6c88c36e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es2017.json @@ -971,9 +971,7 @@ "start": 549, "end": 551 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json index cc93866abe63..3d3fe86a90a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es5.json @@ -971,9 +971,7 @@ "start": 574, "end": 576 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json index ef3e22aeae34..791c117b6833 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression6_es6.json @@ -971,9 +971,7 @@ "start": 546, "end": 548 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json index 2a62871f2ee3..3cfd2d3f402f 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es2017.json @@ -971,9 +971,7 @@ "start": 549, "end": 551 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json index e7913be3fa4e..201337f22a22 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es5.json @@ -971,9 +971,7 @@ "start": 574, "end": 576 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json index 8c416bb83d30..e782046faa5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression7_es6.json @@ -971,9 +971,7 @@ "start": 546, "end": 548 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json index 5dc3f1cca498..675005a6406e 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es2017.json @@ -985,9 +985,7 @@ "start": 558, "end": 560 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json index a56dbb9190bb..d48b8b638d49 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es5.json @@ -985,9 +985,7 @@ "start": 583, "end": 585 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json index 15d01432353c..30fd2b9a3c74 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitCallExpression8_es6.json @@ -985,9 +985,7 @@ "start": 555, "end": 557 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.1.json b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.1.json index b2c6467a6817..6a3bdf18d7c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.1.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.1.json @@ -67,9 +67,7 @@ "start": 142, "end": 154 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -197,9 +195,7 @@ "start": 224, "end": 236 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -355,9 +351,7 @@ "start": 326, "end": 338 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -544,9 +538,7 @@ "start": 439, "end": 451 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -627,9 +619,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -709,9 +699,7 @@ "start": 539, "end": 551 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -779,9 +767,7 @@ "start": 579, "end": 581 }, - "ctxt": 0, - "value": "am", - "optional": false + "value": "am" }, "function": { "params": [], @@ -861,9 +847,7 @@ "start": 628, "end": 640 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -948,9 +932,7 @@ "start": 689, "end": 691 }, - "ctxt": 0, - "value": "ag", - "optional": false + "value": "ag" }, "function": { "params": [], @@ -1030,9 +1012,7 @@ "start": 738, "end": 750 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -1198,9 +1178,7 @@ "start": 844, "end": 856 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -1275,9 +1253,7 @@ "start": 882, "end": 888 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1362,9 +1338,7 @@ "start": 948, "end": 960 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -1490,9 +1464,7 @@ "start": 1040, "end": 1052 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -1650,9 +1622,7 @@ "start": 1169, "end": 1181 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -1780,9 +1750,7 @@ "start": 1261, "end": 1273 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -1899,9 +1867,7 @@ "start": 1331, "end": 1343 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2012,9 +1978,7 @@ "start": 1403, "end": 1415 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2139,9 +2103,7 @@ "start": 1478, "end": 1490 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2251,9 +2213,7 @@ "start": 1547, "end": 1559 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2378,9 +2338,7 @@ "start": 1625, "end": 1637 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2513,9 +2471,7 @@ "start": 1704, "end": 1716 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2643,9 +2599,7 @@ "start": 1803, "end": 1815 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2810,9 +2764,7 @@ "start": 1899, "end": 1911 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -2970,9 +2922,7 @@ "start": 1984, "end": 1996 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.15.json b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.15.json index bc769f83014e..9d3b2ac9311f 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.15.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.15.json @@ -95,9 +95,7 @@ "start": 166, "end": 178 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.2.json b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.2.json index 35d6573ad6a6..bfc9fde50dd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.2.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.2.json @@ -75,9 +75,7 @@ "start": 148, "end": 160 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -160,9 +158,7 @@ "start": 207, "end": 219 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.3.json b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.3.json index f9a5e2793368..15157caaab1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.3.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarations.3.json @@ -75,9 +75,7 @@ "start": 148, "end": 160 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -215,9 +213,7 @@ "start": 260, "end": 267 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarationsTopLevelOfModule.1.json b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarationsTopLevelOfModule.1.json index dd2da8c9d49e..6c1ca7622b0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarationsTopLevelOfModule.1.json +++ b/crates/swc_ecma_parser/tests/tsc/awaitUsingDeclarationsTopLevelOfModule.1.json @@ -145,9 +145,7 @@ "start": 186, "end": 198 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, @@ -323,9 +321,7 @@ "start": 271, "end": 274 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json index dcfcf87a8286..283d16626a00 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions.json @@ -271,9 +271,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -340,9 +338,7 @@ "start": 298, "end": 301 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -418,9 +414,7 @@ "start": 343, "end": 346 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json index ec9cc8a6c909..2d2406306d0b 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json @@ -37,9 +37,7 @@ "start": 178, "end": 181 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 222, "end": 225 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 267, "end": 270 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json index ec65094b5448..0d69ca3be0cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json @@ -951,9 +951,7 @@ "start": 343, "end": 346 }, - "ctxt": 0, - "value": "one", - "optional": false + "value": "one" } } }, @@ -981,9 +979,7 @@ "start": 351, "end": 354 }, - "ctxt": 0, - "value": "two", - "optional": false + "value": "two" } } } @@ -1106,9 +1102,7 @@ "start": 387, "end": 390 }, - "ctxt": 0, - "value": "one", - "optional": false + "value": "one" } } }, @@ -1136,9 +1130,7 @@ "start": 395, "end": 398 }, - "ctxt": 0, - "value": "two", - "optional": false + "value": "two" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json index 66514c80f38e..98b580b21809 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json @@ -115,9 +115,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": null, @@ -189,9 +187,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": null, @@ -263,9 +259,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": null, @@ -337,9 +331,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": null, @@ -401,9 +393,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "StringLiteral", @@ -437,9 +427,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": null, @@ -511,9 +499,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "StringLiteral", @@ -547,9 +533,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json index 6b3b69457efe..f308a9d51b29 100644 --- a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json @@ -228,9 +228,7 @@ "start": 4230, "end": 4231 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -261,9 +259,7 @@ "start": 4253, "end": 4254 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -364,9 +360,7 @@ "start": 8341, "end": 8342 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -397,9 +391,7 @@ "start": 8364, "end": 8365 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json index 226cd4890c00..ad8ac00a4e74 100644 --- a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json +++ b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json @@ -228,9 +228,7 @@ "start": 4230, "end": 4231 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -261,9 +259,7 @@ "start": 4253, "end": 4254 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -364,9 +360,7 @@ "start": 8341, "end": 8342 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -397,9 +391,7 @@ "start": 8364, "end": 8365 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/binderUninitializedModuleExportsAssignment.json b/crates/swc_ecma_parser/tests/tsc/binderUninitializedModuleExportsAssignment.json index eb438a6735aa..8b11b7dabf3b 100644 --- a/crates/swc_ecma_parser/tests/tsc/binderUninitializedModuleExportsAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/binderUninitializedModuleExportsAssignment.json @@ -122,9 +122,7 @@ "start": 122, "end": 129 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithBooleanType.json index cba72dc076a9..7832a3b72f0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 172, "end": 175 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 400, "end": 401 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 497, "end": 498 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 555, "end": 558 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1045,9 +1031,7 @@ "start": 695, "end": 696 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1087,9 +1071,7 @@ "start": 701, "end": 702 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json index 0819f2c77a27..7e5c02cadf2f 100644 --- a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json @@ -276,9 +276,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -437,9 +435,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -566,9 +562,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithNumberType.json index b2fec9cfbdca..792444f7ca4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 196, "end": 199 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 436, "end": 437 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 571, "end": 572 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 599, "end": 600 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 693, "end": 696 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1531,9 +1513,7 @@ "start": 909, "end": 910 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1573,9 +1553,7 @@ "start": 915, "end": 916 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1622,9 +1600,7 @@ "start": 924, "end": 925 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1650,9 +1626,7 @@ "start": 929, "end": 930 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json index d7bb6665920f..27ec1adbf962 100644 --- a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 205, "end": 208 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 454, "end": 455 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 586, "end": 587 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 708, "end": 711 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 789, "end": 795 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1627,9 +1607,7 @@ "start": 965, "end": 966 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1655,9 +1633,7 @@ "start": 969, "end": 970 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json b/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json index fc0a888d3fba..b9be299647fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json +++ b/crates/swc_ecma_parser/tests/tsc/bivariantInferences.json @@ -571,9 +571,7 @@ "start": 292, "end": 305 }, - "ctxt": 0, - "value": "equalsShallow", - "optional": false + "value": "equalsShallow" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json index ccc529d8e322..b57be5d56658 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json @@ -3096,9 +3096,7 @@ "start": 1365, "end": 1369 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3145,9 +3143,7 @@ "start": 1401, "end": 1402 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3196,9 +3192,7 @@ "start": 1433, "end": 1434 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -3313,9 +3307,7 @@ "start": 1483, "end": 1487 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3362,9 +3354,7 @@ "start": 1519, "end": 1520 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3413,9 +3403,7 @@ "start": 1551, "end": 1552 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json index 939927fd688b..5ff435553b47 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json @@ -3096,9 +3096,7 @@ "start": 1393, "end": 1397 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3145,9 +3143,7 @@ "start": 1429, "end": 1430 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3196,9 +3192,7 @@ "start": 1461, "end": 1462 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -3313,9 +3307,7 @@ "start": 1511, "end": 1515 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3362,9 +3354,7 @@ "start": 1547, "end": 1548 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3413,9 +3403,7 @@ "start": 1579, "end": 1580 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json index 8f94457410fa..9898bbaaac22 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json @@ -100,9 +100,7 @@ "start": 26, "end": 34 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json b/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json index 5a643517820e..e37c8fc54d7c 100644 --- a/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json +++ b/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json @@ -563,9 +563,7 @@ "start": 578, "end": 579 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/callChain.2.json b/crates/swc_ecma_parser/tests/tsc/callChain.2.json index b86d58f6b41e..cb4e3ce60856 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChain.2.json +++ b/crates/swc_ecma_parser/tests/tsc/callChain.2.json @@ -290,9 +290,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -514,9 +512,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -529,9 +525,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/callChain.3.json b/crates/swc_ecma_parser/tests/tsc/callChain.3.json index 1a76684d7373..e4f3a4af3f5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChain.3.json +++ b/crates/swc_ecma_parser/tests/tsc/callChain.3.json @@ -381,9 +381,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -405,9 +403,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -514,9 +510,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -538,9 +532,7 @@ "start": 238, "end": 239 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "CallExpression", @@ -675,9 +667,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -699,9 +689,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -825,9 +813,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -849,9 +835,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "CallExpression", @@ -955,9 +939,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -979,9 +961,7 @@ "start": 464, "end": 465 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1070,9 +1050,7 @@ "start": 481, "end": 482 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -1094,9 +1072,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/callChain.json b/crates/swc_ecma_parser/tests/tsc/callChain.json index 94d7d4579c6b..62c7bef83c34 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChain.json +++ b/crates/swc_ecma_parser/tests/tsc/callChain.json @@ -602,9 +602,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -662,9 +660,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -735,9 +731,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -835,9 +829,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1549,9 +1541,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -1564,9 +1554,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1626,9 +1614,7 @@ "start": 430, "end": 431 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -1654,9 +1640,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1716,9 +1700,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -1771,9 +1753,7 @@ "start": 458, "end": 459 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1833,9 +1813,7 @@ "start": 464, "end": 465 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -1912,9 +1890,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1974,9 +1950,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -2057,9 +2031,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -2153,9 +2125,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -2276,9 +2246,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -2444,9 +2412,7 @@ "start": 585, "end": 586 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -2540,9 +2506,7 @@ "start": 601, "end": 602 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -2663,9 +2627,7 @@ "start": 625, "end": 626 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -2810,9 +2772,7 @@ "start": 655, "end": 656 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -3470,9 +3430,7 @@ "start": 902, "end": 903 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3487,9 +3445,7 @@ "start": 907, "end": 915 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } } } @@ -3568,9 +3524,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3585,9 +3539,7 @@ "start": 926, "end": 934 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/callChainInference.json b/crates/swc_ecma_parser/tests/tsc/callChainInference.json index 060003ec62de..94468f610e3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChainInference.json +++ b/crates/swc_ecma_parser/tests/tsc/callChainInference.json @@ -395,9 +395,7 @@ "start": 190, "end": 193 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -472,9 +470,7 @@ "start": 210, "end": 213 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json b/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json index 6ed9ec96a9d9..1eaab763ffdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json +++ b/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json @@ -37,9 +37,7 @@ "start": 91, "end": 97 }, - "ctxt": 0, - "value": "method", - "optional": true + "value": "method" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 139, "end": 146 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -168,9 +164,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -204,9 +198,7 @@ "start": 182, "end": 189 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json index 77362ba8f52e..2b6a4fdccff1 100644 --- a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json @@ -1268,9 +1268,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -1559,9 +1557,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -1685,9 +1681,7 @@ "start": 584, "end": 585 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2064,9 +2058,7 @@ "start": 684, "end": 685 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2173,9 +2165,7 @@ "start": 714, "end": 715 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2274,9 +2264,7 @@ "start": 770, "end": 771 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -2565,9 +2553,7 @@ "start": 838, "end": 839 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2691,9 +2677,7 @@ "start": 877, "end": 878 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3094,9 +3078,7 @@ "start": 997, "end": 998 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3203,9 +3185,7 @@ "start": 1028, "end": 1029 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json index 699a83a19716..4f54b3bc5c10 100644 --- a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithZeroTypeArguments.json @@ -681,9 +681,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -907,9 +905,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -1185,9 +1181,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -1242,9 +1236,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -1468,9 +1460,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -1762,9 +1752,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json index 70564b88d2ba..bbe0a1035e9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callNonGenericFunctionWithTypeArguments.json @@ -551,9 +551,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -713,9 +711,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -957,9 +953,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -1030,9 +1024,7 @@ "start": 479, "end": 480 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -1192,9 +1184,7 @@ "start": 543, "end": 544 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -1422,9 +1412,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json index 8887058efdd7..77b73348c538 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance2.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json index e98dcbdb3bda..27604a41f46a 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance3.json @@ -62,9 +62,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 199, "end": 202 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 304, "end": 308 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json index 8760765da213..61d35d78e8d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance4.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json index 77806778bf5e..e959fd14246c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance5.json @@ -37,9 +37,7 @@ "start": 221, "end": 224 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 265, "end": 268 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 313, "end": 316 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 362, "end": 366 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json index c0e8bd390908..c65eb1da1d9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureAssignabilityInInheritance6.json @@ -37,9 +37,7 @@ "start": 236, "end": 239 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 280, "end": 283 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 328, "end": 331 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 377, "end": 381 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutAnnotationsOrBody.json b/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutAnnotationsOrBody.json index 12f7f558e605..87fde1afd526 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutAnnotationsOrBody.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutAnnotationsOrBody.json @@ -347,9 +347,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -545,9 +543,7 @@ "start": 279, "end": 280 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json b/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json index 643f9390c84d..94a7ad8312c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignatureWithoutReturnTypeAnnotationInference.json @@ -1219,9 +1219,7 @@ "start": 735, "end": 736 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -1610,9 +1608,7 @@ "start": 891, "end": 894 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1963,9 +1959,7 @@ "start": 1039, "end": 1042 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2655,9 +2649,7 @@ "start": 1400, "end": 1403 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2698,9 +2690,7 @@ "start": 1417, "end": 1428 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json index 1c668bf289b3..a1eeefa1f5ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json @@ -345,9 +345,7 @@ "start": 299, "end": 302 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -426,9 +424,7 @@ "start": 330, "end": 333 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json index bbec888a4f71..3505c44b532c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithAccessibilityModifiersOnParameters.json @@ -1149,9 +1149,7 @@ "start": 561, "end": 564 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1233,9 +1231,7 @@ "start": 594, "end": 598 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1345,9 +1341,7 @@ "start": 644, "end": 648 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2073,9 +2067,7 @@ "start": 978, "end": 981 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -2145,9 +2137,7 @@ "start": 1004, "end": 1005 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", @@ -2258,9 +2248,7 @@ "start": 1059, "end": 1060 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json index 5936397a4a90..a188eb8e742b 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithDuplicateParameters.json @@ -1149,9 +1149,7 @@ "start": 409, "end": 412 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1233,9 +1231,7 @@ "start": 427, "end": 431 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1345,9 +1341,7 @@ "start": 462, "end": 466 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2073,9 +2067,7 @@ "start": 691, "end": 694 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -2145,9 +2137,7 @@ "start": 710, "end": 711 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", @@ -2258,9 +2248,7 @@ "start": 757, "end": 758 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json index 17279312fc75..1f2799d3cdfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters.json @@ -533,9 +533,7 @@ "start": 229, "end": 232 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -698,9 +696,7 @@ "start": 264, "end": 267 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -742,9 +738,7 @@ "start": 273, "end": 276 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1060,9 +1054,7 @@ "start": 372, "end": 375 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1117,9 +1109,7 @@ "start": 382, "end": 385 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1384,9 +1374,7 @@ "start": 458, "end": 461 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1428,9 +1416,7 @@ "start": 467, "end": 470 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1492,9 +1478,7 @@ "start": 490, "end": 493 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -1559,9 +1543,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", @@ -1672,9 +1654,7 @@ "start": 563, "end": 564 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -1766,9 +1746,7 @@ "start": 591, "end": 594 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1810,9 +1788,7 @@ "start": 600, "end": 603 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1867,9 +1843,7 @@ "start": 610, "end": 611 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [ @@ -1924,9 +1898,7 @@ "start": 618, "end": 619 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [ @@ -1993,9 +1965,7 @@ "start": 629, "end": 630 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -2037,9 +2007,7 @@ "start": 636, "end": 637 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json index 65eb2645c9ff..1fb0e9a53511 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesWithOptionalParameters2.json @@ -578,9 +578,7 @@ "start": 278, "end": 281 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -649,9 +647,7 @@ "start": 299, "end": 302 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -728,9 +724,7 @@ "start": 324, "end": 328 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -799,9 +793,7 @@ "start": 345, "end": 349 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -903,9 +895,7 @@ "start": 378, "end": 382 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1101,9 +1091,7 @@ "start": 425, "end": 428 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1145,9 +1133,7 @@ "start": 434, "end": 437 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1202,9 +1188,7 @@ "start": 445, "end": 449 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -1259,9 +1243,7 @@ "start": 456, "end": 460 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -1800,9 +1782,7 @@ "start": 642, "end": 645 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1857,9 +1837,7 @@ "start": 652, "end": 655 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1926,9 +1904,7 @@ "start": 665, "end": 668 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2441,9 +2417,7 @@ "start": 838, "end": 841 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2498,9 +2472,7 @@ "start": 848, "end": 851 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2567,9 +2539,7 @@ "start": 861, "end": 864 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json index 21cc2d90b4ac..fe801f3e5de3 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json @@ -37,9 +37,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -122,9 +120,7 @@ "start": 77, "end": 78 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -298,9 +294,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -431,9 +425,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -488,9 +480,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -604,9 +594,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -720,9 +708,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -836,9 +822,7 @@ "start": 510, "end": 511 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -878,9 +862,7 @@ "start": 688, "end": 699 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json index c3aeb3909dc4..d47d57d0f1e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoidUndefinedUnknownAnyInJs.json @@ -782,9 +782,7 @@ "start": 482, "end": 483 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -907,9 +905,7 @@ "start": 598, "end": 599 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -951,9 +947,7 @@ "start": 606, "end": 607 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -995,9 +989,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1066,9 +1058,7 @@ "start": 708, "end": 709 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1191,9 +1181,7 @@ "start": 761, "end": 762 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1235,9 +1223,7 @@ "start": 769, "end": 770 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1279,9 +1265,7 @@ "start": 777, "end": 778 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread.json index d52d3e9f1947..badad095f38a 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread.json @@ -800,9 +800,7 @@ "start": 248, "end": 251 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -881,9 +879,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -966,9 +962,7 @@ "start": 291, "end": 294 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1076,9 +1070,7 @@ "start": 320, "end": 323 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1131,9 +1123,7 @@ "start": 336, "end": 339 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1225,9 +1215,7 @@ "start": 358, "end": 361 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1280,9 +1268,7 @@ "start": 374, "end": 377 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1378,9 +1364,7 @@ "start": 395, "end": 398 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1433,9 +1417,7 @@ "start": 411, "end": 414 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1536,9 +1518,7 @@ "start": 441, "end": 444 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1624,9 +1604,7 @@ "start": 465, "end": 468 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1716,9 +1694,7 @@ "start": 488, "end": 491 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1839,9 +1815,7 @@ "start": 520, "end": 523 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1895,9 +1869,7 @@ "start": 537, "end": 540 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2002,9 +1974,7 @@ "start": 562, "end": 565 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2058,9 +2028,7 @@ "start": 579, "end": 582 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2169,9 +2137,7 @@ "start": 603, "end": 606 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2225,9 +2191,7 @@ "start": 620, "end": 623 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2346,9 +2310,7 @@ "start": 652, "end": 655 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2450,9 +2412,7 @@ "start": 676, "end": 679 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2558,9 +2518,7 @@ "start": 699, "end": 702 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2690,9 +2648,7 @@ "start": 741, "end": 744 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": { @@ -2804,9 +2760,7 @@ "start": 780, "end": 791 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2968,9 +2922,7 @@ "start": 845, "end": 848 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3036,9 +2988,7 @@ "start": 869, "end": 872 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3105,9 +3055,7 @@ "start": 896, "end": 899 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -3297,9 +3245,7 @@ "start": 973, "end": 984 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3441,9 +3387,7 @@ "start": 1047, "end": 1050 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -3493,9 +3437,7 @@ "start": 1069, "end": 1072 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3559,9 +3501,7 @@ "start": 1094, "end": 1097 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json b/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json index 7edc2834ae3c..ab4647562d19 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json @@ -776,9 +776,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -857,9 +855,7 @@ "start": 284, "end": 287 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -942,9 +938,7 @@ "start": 305, "end": 308 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1045,9 +1039,7 @@ "start": 335, "end": 338 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1133,9 +1125,7 @@ "start": 359, "end": 362 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1225,9 +1215,7 @@ "start": 382, "end": 385 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1346,9 +1334,7 @@ "start": 414, "end": 417 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1450,9 +1436,7 @@ "start": 438, "end": 441 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1558,9 +1542,7 @@ "start": 461, "end": 464 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1690,9 +1672,7 @@ "start": 503, "end": 506 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": { @@ -1804,9 +1784,7 @@ "start": 542, "end": 553 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1968,9 +1946,7 @@ "start": 607, "end": 610 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2036,9 +2012,7 @@ "start": 631, "end": 634 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2105,9 +2079,7 @@ "start": 658, "end": 661 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2297,9 +2269,7 @@ "start": 735, "end": 746 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2441,9 +2411,7 @@ "start": 809, "end": 812 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -2493,9 +2461,7 @@ "start": 831, "end": 834 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2559,9 +2525,7 @@ "start": 856, "end": 859 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/callbackCrossModule.json b/crates/swc_ecma_parser/tests/tsc/callbackCrossModule.json index 65d6fd68b7d9..f496a44db9af 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackCrossModule.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackCrossModule.json @@ -40,9 +40,7 @@ "start": 229, "end": 236 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -117,9 +115,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -289,9 +285,7 @@ "start": 431, "end": 433 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json b/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json index b4b62d07d00b..21e6fa6c0dc8 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json @@ -43,9 +43,7 @@ "start": 126, "end": 139 }, - "ctxt": 0, - "value": "assignability", - "optional": false + "value": "assignability" }, "value": { "type": "StringLiteral", @@ -80,9 +78,7 @@ "start": 264, "end": 275 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -181,9 +177,7 @@ "start": 336, "end": 342 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTag1.json b/crates/swc_ecma_parser/tests/tsc/callbackTag1.json index bf02fd3d1959..7b26f8c76075 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTag1.json @@ -204,9 +204,7 @@ "start": 282, "end": 287 }, - "ctxt": 0, - "value": "title", - "optional": false + "value": "title" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTag2.json b/crates/swc_ecma_parser/tests/tsc/callbackTag2.json index ae1a302c4a25..2ff54315f1cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTag2.json @@ -143,9 +143,7 @@ "start": 385, "end": 396 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -181,9 +179,7 @@ "start": 449, "end": 451 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json b/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json index c81b977602ce..c0c6c7365d09 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json @@ -94,9 +94,7 @@ "start": 430, "end": 434 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/castingTuple.json b/crates/swc_ecma_parser/tests/tsc/castingTuple.json index d7e87a55511d..a741e5946fc5 100644 --- a/crates/swc_ecma_parser/tests/tsc/castingTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/castingTuple.json @@ -65,9 +65,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -128,9 +126,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": null, @@ -209,9 +205,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": null, @@ -290,9 +284,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": null, @@ -361,9 +353,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": null, @@ -1627,9 +1617,7 @@ "start": 696, "end": 699 }, - "ctxt": 0, - "value": "one", - "optional": false + "value": "one" } } }, @@ -1657,9 +1645,7 @@ "start": 704, "end": 707 }, - "ctxt": 0, - "value": "one", - "optional": false + "value": "one" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/chained.json b/crates/swc_ecma_parser/tests/tsc/chained.json index 2da1a9eec9f5..ba7a14a98752 100644 --- a/crates/swc_ecma_parser/tests/tsc/chained.json +++ b/crates/swc_ecma_parser/tests/tsc/chained.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/chained2.json b/crates/swc_ecma_parser/tests/tsc/chained2.json index 1d1689df122c..1b3042ba9b6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/chained2.json +++ b/crates/swc_ecma_parser/tests/tsc/chained2.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -402,9 +400,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -446,9 +442,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -494,6 +488,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 339, + "end": 346 + }, "left": { "type": "Identifier", "span": { @@ -510,9 +508,7 @@ "start": 345, "end": 346 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -570,6 +566,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 362, + "end": 369 + }, "left": { "type": "Identifier", "span": { @@ -586,9 +586,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json b/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json index ebaadee2a709..56e172d847c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json @@ -211,9 +211,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -324,9 +322,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -386,9 +382,7 @@ "start": 320, "end": 321 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -438,9 +432,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -490,9 +482,7 @@ "start": 342, "end": 351 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -524,9 +514,7 @@ "start": 356, "end": 365 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -544,9 +532,7 @@ "start": 403, "end": 404 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -749,9 +735,7 @@ "start": 542, "end": 543 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -817,9 +801,7 @@ "start": 562, "end": 563 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -864,9 +846,7 @@ "start": 568, "end": 569 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ @@ -921,9 +901,7 @@ "start": 580, "end": 581 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json index 53132c4ad69c..353ff103133b 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json @@ -40,9 +40,7 @@ "start": 100, "end": 114 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -88,9 +86,7 @@ "start": 135, "end": 140 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -110,9 +106,7 @@ "start": 146, "end": 154 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -165,9 +159,7 @@ "start": 172, "end": 186 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -213,9 +205,7 @@ "start": 214, "end": 219 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -235,9 +225,7 @@ "start": 230, "end": 238 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -290,9 +278,7 @@ "start": 257, "end": 271 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -338,9 +324,7 @@ "start": 298, "end": 301 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -388,9 +372,7 @@ "start": 322, "end": 325 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -475,9 +457,7 @@ "start": 355, "end": 369 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -523,9 +503,7 @@ "start": 401, "end": 404 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -607,9 +585,7 @@ "start": 435, "end": 449 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -655,9 +631,7 @@ "start": 515, "end": 518 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -726,9 +700,7 @@ "start": 539, "end": 550 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -816,9 +788,7 @@ "start": 606, "end": 620 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -846,9 +816,7 @@ "start": 628, "end": 635 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -881,9 +849,7 @@ "start": 648, "end": 653 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -903,9 +869,7 @@ "start": 662, "end": 670 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -958,9 +922,7 @@ "start": 688, "end": 702 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -988,9 +950,7 @@ "start": 710, "end": 717 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1023,9 +983,7 @@ "start": 737, "end": 742 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -1045,9 +1003,7 @@ "start": 753, "end": 761 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -1100,9 +1056,7 @@ "start": 780, "end": 794 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1130,9 +1084,7 @@ "start": 802, "end": 809 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1165,9 +1117,7 @@ "start": 828, "end": 831 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -1215,9 +1165,7 @@ "start": 852, "end": 855 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -1302,9 +1250,7 @@ "start": 885, "end": 899 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1332,9 +1278,7 @@ "start": 907, "end": 914 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1367,9 +1311,7 @@ "start": 938, "end": 941 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -1451,9 +1393,7 @@ "start": 972, "end": 986 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1481,9 +1421,7 @@ "start": 994, "end": 1001 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1516,9 +1454,7 @@ "start": 1059, "end": 1062 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -1587,9 +1523,7 @@ "start": 1083, "end": 1094 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -1714,9 +1648,7 @@ "start": 1199, "end": 1204 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "definite": false @@ -1795,9 +1727,7 @@ "start": 1261, "end": 1266 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "definite": false @@ -1887,9 +1817,7 @@ "start": 1345, "end": 1350 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } } }, @@ -1921,9 +1849,7 @@ "start": 1355, "end": 1367 }, - "ctxt": 0, - "value": "readonlyProp", - "optional": false + "value": "readonlyProp" } } }, @@ -1955,9 +1881,7 @@ "start": 1372, "end": 1383 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } } }, @@ -1989,9 +1913,7 @@ "start": 1388, "end": 1404 }, - "ctxt": 0, - "value": "readonlyAccessor", - "optional": false + "value": "readonlyAccessor" } } }, @@ -2023,9 +1945,7 @@ "start": 1409, "end": 1424 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } } }, @@ -2064,9 +1984,7 @@ "start": 1453, "end": 1458 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -2115,9 +2033,7 @@ "start": 1468, "end": 1479 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -2166,9 +2082,7 @@ "start": 1489, "end": 1504 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } }, "right": { @@ -2217,9 +2131,7 @@ "start": 1544, "end": 1556 }, - "ctxt": 0, - "value": "readonlyProp", - "optional": false + "value": "readonlyProp" } }, "right": { @@ -2268,9 +2180,7 @@ "start": 1570, "end": 1586 }, - "ctxt": 0, - "value": "readonlyAccessor", - "optional": false + "value": "readonlyAccessor" } }, "right": { @@ -2319,9 +2229,7 @@ "start": 1596, "end": 1601 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -2370,9 +2278,7 @@ "start": 1613, "end": 1624 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -2421,9 +2327,7 @@ "start": 1636, "end": 1651 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } }, "right": { @@ -2500,9 +2404,7 @@ "start": 1693, "end": 1698 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } } }, @@ -2534,9 +2436,7 @@ "start": 1703, "end": 1715 }, - "ctxt": 0, - "value": "readonlyProp", - "optional": false + "value": "readonlyProp" } } }, @@ -2568,9 +2468,7 @@ "start": 1720, "end": 1731 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } } }, @@ -2602,9 +2500,7 @@ "start": 1736, "end": 1752 }, - "ctxt": 0, - "value": "readonlyAccessor", - "optional": false + "value": "readonlyAccessor" } } }, @@ -2636,9 +2532,7 @@ "start": 1757, "end": 1772 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } } }, @@ -2677,9 +2571,7 @@ "start": 1801, "end": 1806 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -2728,9 +2620,7 @@ "start": 1818, "end": 1829 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -2779,9 +2669,7 @@ "start": 1839, "end": 1854 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } }, "right": { @@ -2830,9 +2718,7 @@ "start": 1894, "end": 1906 }, - "ctxt": 0, - "value": "readonlyProp", - "optional": false + "value": "readonlyProp" } }, "right": { @@ -2881,9 +2767,7 @@ "start": 1920, "end": 1936 }, - "ctxt": 0, - "value": "readonlyAccessor", - "optional": false + "value": "readonlyAccessor" } }, "right": { @@ -2932,9 +2816,7 @@ "start": 1946, "end": 1951 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -2983,9 +2865,7 @@ "start": 1960, "end": 1971 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -3034,9 +2914,7 @@ "start": 1983, "end": 1998 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json index 9ec3b96d256f..39dff8476f2f 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json @@ -85,9 +85,7 @@ "start": 174, "end": 178 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -150,9 +148,7 @@ "start": 196, "end": 205 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -161,9 +157,7 @@ "start": 206, "end": 214 }, - "ctxt": 0, - "value": "describe", - "optional": false + "value": "describe" } }, "right": { @@ -225,9 +219,7 @@ "start": 266, "end": 270 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -276,9 +268,7 @@ "start": 282, "end": 296 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -306,9 +296,7 @@ "start": 304, "end": 313 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -341,9 +329,7 @@ "start": 326, "end": 331 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -363,9 +349,7 @@ "start": 337, "end": 345 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -418,9 +402,7 @@ "start": 363, "end": 377 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -448,9 +430,7 @@ "start": 385, "end": 394 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -483,9 +463,7 @@ "start": 414, "end": 419 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -505,9 +483,7 @@ "start": 430, "end": 438 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -560,9 +536,7 @@ "start": 457, "end": 471 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -590,9 +564,7 @@ "start": 479, "end": 488 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -625,9 +597,7 @@ "start": 507, "end": 510 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -675,9 +645,7 @@ "start": 531, "end": 534 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -762,9 +730,7 @@ "start": 564, "end": 578 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -792,9 +758,7 @@ "start": 586, "end": 595 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -827,9 +791,7 @@ "start": 619, "end": 622 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -911,9 +873,7 @@ "start": 653, "end": 667 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -941,9 +901,7 @@ "start": 675, "end": 684 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -976,9 +934,7 @@ "start": 742, "end": 745 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -1047,9 +1003,7 @@ "start": 766, "end": 777 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -1137,9 +1091,7 @@ "start": 809, "end": 816 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -1301,9 +1253,7 @@ "start": 939, "end": 944 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } } }, @@ -1335,9 +1285,7 @@ "start": 949, "end": 961 }, - "ctxt": 0, - "value": "readonlyProp", - "optional": false + "value": "readonlyProp" } } }, @@ -1369,9 +1317,7 @@ "start": 966, "end": 977 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } } }, @@ -1403,9 +1349,7 @@ "start": 982, "end": 998 }, - "ctxt": 0, - "value": "readonlyAccessor", - "optional": false + "value": "readonlyAccessor" } } }, @@ -1437,9 +1381,7 @@ "start": 1003, "end": 1018 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } } }, @@ -1478,9 +1420,7 @@ "start": 1047, "end": 1052 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -1529,9 +1469,7 @@ "start": 1062, "end": 1073 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -1580,9 +1518,7 @@ "start": 1083, "end": 1098 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } }, "right": { @@ -1631,9 +1567,7 @@ "start": 1138, "end": 1150 }, - "ctxt": 0, - "value": "readonlyProp", - "optional": false + "value": "readonlyProp" } }, "right": { @@ -1682,9 +1616,7 @@ "start": 1164, "end": 1180 }, - "ctxt": 0, - "value": "readonlyAccessor", - "optional": false + "value": "readonlyAccessor" } }, "right": { @@ -1733,9 +1665,7 @@ "start": 1190, "end": 1195 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -1784,9 +1714,7 @@ "start": 1207, "end": 1218 }, - "ctxt": 0, - "value": "rwAccessors", - "optional": false + "value": "rwAccessors" } }, "right": { @@ -1835,9 +1763,7 @@ "start": 1230, "end": 1245 }, - "ctxt": 0, - "value": "setonlyAccessor", - "optional": false + "value": "setonlyAccessor" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json index ba5e29e4ff97..ab12ccc56a0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json @@ -53,9 +53,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -122,9 +120,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -144,9 +140,7 @@ "start": 387, "end": 388 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -259,9 +253,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -362,9 +354,7 @@ "start": 584, "end": 593 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -512,9 +502,7 @@ "start": 694, "end": 695 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -581,9 +569,7 @@ "start": 745, "end": 746 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -603,9 +589,7 @@ "start": 756, "end": 757 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json index 0f127c1fa1a2..0cc913ce75cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json @@ -53,9 +53,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -75,9 +73,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -97,9 +93,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -180,9 +174,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -191,9 +183,7 @@ "start": 338, "end": 345 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -265,9 +255,7 @@ "start": 359, "end": 360 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -276,9 +264,7 @@ "start": 361, "end": 370 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -350,9 +336,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag11.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag11.json index 9d8715641917..9acfc93370ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag11.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag11.json @@ -47,9 +47,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json index 77292fa411f5..faeb1e5bedb5 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json @@ -47,9 +47,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -109,9 +107,7 @@ "start": 338, "end": 339 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -131,9 +127,7 @@ "start": 344, "end": 345 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -296,9 +290,7 @@ "start": 503, "end": 504 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -358,9 +350,7 @@ "start": 557, "end": 558 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -380,9 +370,7 @@ "start": 568, "end": 569 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -442,9 +430,7 @@ "start": 622, "end": 623 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json index c1739acf8975..e13a3677bbaf 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json @@ -47,9 +47,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -100,9 +98,7 @@ "start": 148, "end": 159 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -162,9 +158,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag14.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag14.json index c70f02d2c827..4d3636c8cd9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag14.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag14.json @@ -47,9 +47,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -115,9 +113,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag2.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag2.json index f526c0bbe76d..154b2f4a24fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag2.json @@ -53,9 +53,7 @@ "start": 193, "end": 199 }, - "ctxt": 0, - "value": "isEven", - "optional": false + "value": "isEven" }, "value": { "type": "ArrowFunctionExpression", @@ -135,9 +133,7 @@ "start": 223, "end": 228 }, - "ctxt": 0, - "value": "isOdd", - "optional": false + "value": "isOdd" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag3.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag3.json index 62ef958a62c5..0f1de2985dd4 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag3.json @@ -53,9 +53,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { @@ -106,9 +104,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "params": [ { @@ -185,9 +181,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag4.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag4.json index a12b6575a4a9..24d054bf5be3 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag4.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag4.json @@ -54,9 +54,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag5.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag5.json index da22b24318fe..ba4c61837357 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag5.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag5.json @@ -53,9 +53,7 @@ "start": 208, "end": 213 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" }, "params": [], "decorators": [], @@ -86,9 +84,7 @@ "start": 225, "end": 229 }, - "ctxt": 0, - "value": "move", - "optional": false + "value": "move" }, "params": [ { @@ -139,9 +135,7 @@ "start": 276, "end": 280 }, - "ctxt": 0, - "value": "stop", - "optional": false + "value": "stop" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag6.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag6.json index fa747a97eecb..52b2552aea1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag6.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag6.json @@ -53,9 +53,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -109,9 +107,7 @@ "start": 294, "end": 297 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -152,9 +148,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -163,9 +157,7 @@ "start": 302, "end": 309 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -225,9 +217,7 @@ "start": 341, "end": 342 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json index d2f9525e26a9..8b076ef566c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json @@ -53,9 +53,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -75,9 +73,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -97,9 +93,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -180,9 +174,7 @@ "start": 326, "end": 327 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -191,9 +183,7 @@ "start": 328, "end": 335 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -265,9 +255,7 @@ "start": 349, "end": 350 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -276,9 +264,7 @@ "start": 351, "end": 360 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -350,9 +336,7 @@ "start": 421, "end": 422 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json index bc2a33631bad..bf3b32d44856 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json @@ -53,9 +53,7 @@ "start": 212, "end": 213 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "BooleanLiteral", @@ -74,9 +72,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag9.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag9.json index 5ca3926b1687..ed69e9a8eb14 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag9.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag9.json @@ -59,9 +59,7 @@ "start": 323, "end": 328 }, - "ctxt": 0, - "value": "white", - "optional": false + "value": "white" }, "value": { "type": "ObjectExpression", @@ -78,9 +76,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -100,9 +96,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -122,9 +116,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -147,9 +139,7 @@ "start": 362, "end": 367 }, - "ctxt": 0, - "value": "black", - "optional": false + "value": "black" }, "value": { "type": "ObjectExpression", @@ -166,9 +156,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -188,9 +176,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -210,9 +196,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -235,9 +219,7 @@ "start": 427, "end": 431 }, - "ctxt": 0, - "value": "blue", - "optional": false + "value": "blue" }, "value": { "type": "ObjectExpression", @@ -254,9 +236,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -276,9 +256,7 @@ "start": 441, "end": 442 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -298,9 +276,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json index b22b772180a6..cf89e25562b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json @@ -457,9 +457,7 @@ "start": 405, "end": 411 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag6.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag6.json index cd69f6af7f0a..b969ecd9f214 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag6.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag6.json @@ -679,9 +679,7 @@ "start": 893, "end": 917 }, - "ctxt": 0, - "value": "methodWithMoreParameters", - "optional": false + "value": "methodWithMoreParameters" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag7.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag7.json index 6ab247d39072..03757844525d 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag7.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag7.json @@ -37,9 +37,7 @@ "start": 172, "end": 175 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -121,9 +119,7 @@ "start": 229, "end": 257 }, - "ctxt": 0, - "value": "methodWithOptionalParameters", - "optional": false + "value": "methodWithOptionalParameters" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json index 1b6fe0eb7491..59c3e04ebc00 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json @@ -87,9 +87,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -110,9 +108,7 @@ "start": 237, "end": 240 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -132,9 +128,7 @@ "start": 292, "end": 299 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [ { @@ -275,9 +269,7 @@ "start": 453, "end": 462 }, - "ctxt": 0, - "value": "arrowFunc", - "optional": false + "value": "arrowFunc" }, "value": { "type": "ArrowFunctionExpression", @@ -373,9 +365,7 @@ "start": 488, "end": 491 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -417,9 +407,7 @@ "start": 507, "end": 510 }, - "ctxt": 0, - "value": "lol", - "optional": false + "value": "lol" } } }, @@ -458,9 +446,7 @@ "start": 515, "end": 518 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -531,9 +517,7 @@ "start": 544, "end": 551 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" } }, "arguments": [ @@ -591,9 +575,7 @@ "start": 560, "end": 564 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } }, "right": { @@ -642,9 +624,7 @@ "start": 577, "end": 586 }, - "ctxt": 0, - "value": "arrowFunc", - "optional": false + "value": "arrowFunc" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json index 6ee9d61ddb72..ecfaa0f06fbb 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json @@ -79,9 +79,7 @@ "start": 172, "end": 175 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -101,9 +99,7 @@ "start": 225, "end": 232 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [ { @@ -171,9 +167,7 @@ "start": 307, "end": 314 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "ArrowFunctionExpression", @@ -218,9 +212,7 @@ "start": 375, "end": 384 }, - "ctxt": 0, - "value": "arrowFunc", - "optional": false + "value": "arrowFunc" }, "value": { "type": "ArrowFunctionExpression", @@ -398,9 +390,7 @@ "start": 490, "end": 497 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" } }, "arguments": [ @@ -479,9 +469,7 @@ "start": 538, "end": 545 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json index 66a477c77bf9..c1da40d60eac 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json @@ -81,9 +81,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -135,9 +133,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -232,9 +228,7 @@ "start": 473, "end": 481 }, - "ctxt": 0, - "value": "anotherX", - "optional": false + "value": "anotherX" } } } @@ -286,9 +280,7 @@ "start": 492, "end": 500 }, - "ctxt": 0, - "value": "anotherX", - "optional": false + "value": "anotherX" }, "value": { "type": "StringLiteral", @@ -383,9 +375,7 @@ "start": 712, "end": 713 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -437,9 +427,7 @@ "start": 723, "end": 724 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json index 9d85137fbfc7..70b58a98bcee 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json @@ -72,9 +72,7 @@ "start": 143, "end": 151 }, - "ctxt": 0, - "value": "SomeName", - "optional": false + "value": "SomeName" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json b/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json index d0115b6d0170..417695c91613 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json @@ -79,9 +79,7 @@ "start": 115, "end": 129 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -127,9 +125,7 @@ "start": 143, "end": 148 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -149,9 +145,7 @@ "start": 161, "end": 169 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -204,9 +198,7 @@ "start": 187, "end": 201 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -252,9 +244,7 @@ "start": 221, "end": 226 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -308,9 +298,7 @@ "start": 243, "end": 257 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -356,9 +344,7 @@ "start": 275, "end": 280 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -378,9 +364,7 @@ "start": 291, "end": 299 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -433,9 +417,7 @@ "start": 318, "end": 332 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -481,9 +463,7 @@ "start": 345, "end": 348 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -531,9 +511,7 @@ "start": 369, "end": 372 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -618,9 +596,7 @@ "start": 402, "end": 416 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -666,9 +642,7 @@ "start": 437, "end": 440 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -750,9 +724,7 @@ "start": 471, "end": 485 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -798,9 +770,7 @@ "start": 536, "end": 539 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -869,9 +839,7 @@ "start": 560, "end": 563 }, - "ctxt": 0, - "value": "zip", - "optional": false + "value": "zip" } }, "right": { @@ -1000,9 +968,7 @@ "start": 671, "end": 675 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1103,9 +1069,7 @@ "start": 729, "end": 732 }, - "ctxt": 0, - "value": "zip", - "optional": false + "value": "zip" } }, "definite": false @@ -1161,9 +1125,7 @@ "start": 771, "end": 782 }, - "ctxt": 0, - "value": "houseNumber", - "optional": false + "value": "houseNumber" } }, "definite": false @@ -1590,9 +1552,7 @@ "start": 1214, "end": 1221 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -1670,9 +1630,7 @@ "start": 1379, "end": 1383 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -1704,9 +1662,7 @@ "start": 1387, "end": 1397 }, - "ctxt": 0, - "value": "middleInit", - "optional": false + "value": "middleInit" } } }, @@ -1738,9 +1694,7 @@ "start": 1401, "end": 1409 }, - "ctxt": 0, - "value": "lastName", - "optional": false + "value": "lastName" } } }, @@ -1772,9 +1726,7 @@ "start": 1413, "end": 1416 }, - "ctxt": 0, - "value": "zip", - "optional": false + "value": "zip" } } }, @@ -1806,9 +1758,7 @@ "start": 1420, "end": 1431 }, - "ctxt": 0, - "value": "houseNumber", - "optional": false + "value": "houseNumber" } } }, @@ -1840,9 +1790,7 @@ "start": 1435, "end": 1441 }, - "ctxt": 0, - "value": "zipStr", - "optional": false + "value": "zipStr" } } }, @@ -1881,9 +1829,7 @@ "start": 1446, "end": 1450 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -1932,9 +1878,7 @@ "start": 1466, "end": 1469 }, - "ctxt": 0, - "value": "zip", - "optional": false + "value": "zip" } }, "right": { @@ -1983,9 +1927,7 @@ "start": 1481, "end": 1487 }, - "ctxt": 0, - "value": "zipStr", - "optional": false + "value": "zipStr" } }, "right": { @@ -2034,9 +1976,7 @@ "start": 1499, "end": 1507 }, - "ctxt": 0, - "value": "lastName", - "optional": false + "value": "lastName" } }, "right": { @@ -2085,9 +2025,7 @@ "start": 1527, "end": 1538 }, - "ctxt": 0, - "value": "houseNumber", - "optional": false + "value": "houseNumber" } }, "right": { @@ -2136,9 +2074,7 @@ "start": 1567, "end": 1573 }, - "ctxt": 0, - "value": "zipStr", - "optional": false + "value": "zipStr" } }, "right": { @@ -2187,9 +2123,7 @@ "start": 1597, "end": 1607 }, - "ctxt": 0, - "value": "middleInit", - "optional": false + "value": "middleInit" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json b/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json index 178e14d8ee48..152326ded311 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json @@ -47,9 +47,7 @@ "start": 108, "end": 113 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 119, "end": 127 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -123,9 +119,7 @@ "start": 144, "end": 158 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -253,9 +247,7 @@ "start": 259, "end": 273 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -302,9 +294,7 @@ "start": 290, "end": 295 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -324,9 +314,7 @@ "start": 301, "end": 309 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -419,9 +407,7 @@ "start": 352, "end": 366 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -468,9 +454,7 @@ "start": 388, "end": 393 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -490,9 +474,7 @@ "start": 399, "end": 407 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -545,9 +527,7 @@ "start": 427, "end": 441 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -626,9 +606,7 @@ "start": 472, "end": 486 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -674,9 +652,7 @@ "start": 506, "end": 509 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -724,9 +700,7 @@ "start": 527, "end": 532 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -780,9 +754,7 @@ "start": 550, "end": 564 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -828,9 +800,7 @@ "start": 584, "end": 592 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -940,9 +910,7 @@ "start": 665, "end": 670 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } } }, @@ -974,9 +942,7 @@ "start": 676, "end": 681 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } } }, @@ -1008,9 +974,7 @@ "start": 687, "end": 691 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -1042,9 +1006,7 @@ "start": 697, "end": 701 }, - "ctxt": 0, - "value": "bad1", - "optional": false + "value": "bad1" } } }, @@ -1076,9 +1038,7 @@ "start": 707, "end": 711 }, - "ctxt": 0, - "value": "bad2", - "optional": false + "value": "bad2" } } }, @@ -1110,9 +1070,7 @@ "start": 717, "end": 721 }, - "ctxt": 0, - "value": "bad3", - "optional": false + "value": "bad3" } } }, @@ -1151,9 +1109,7 @@ "start": 729, "end": 734 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "right": { @@ -1202,9 +1158,7 @@ "start": 744, "end": 749 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "right": { @@ -1253,9 +1207,7 @@ "start": 759, "end": 763 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -1304,9 +1256,7 @@ "start": 773, "end": 777 }, - "ctxt": 0, - "value": "bad1", - "optional": false + "value": "bad1" } }, "right": { @@ -1355,9 +1305,7 @@ "start": 787, "end": 791 }, - "ctxt": 0, - "value": "bad2", - "optional": false + "value": "bad2" } }, "right": { @@ -1406,9 +1354,7 @@ "start": 801, "end": 805 }, - "ctxt": 0, - "value": "bad3", - "optional": false + "value": "bad3" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/checkSpecialPropertyAssignments.json b/crates/swc_ecma_parser/tests/tsc/checkSpecialPropertyAssignments.json index 3c529e0dc893..1d385ec54feb 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkSpecialPropertyAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/checkSpecialPropertyAssignments.json @@ -79,9 +79,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -106,9 +104,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/circular4.json b/crates/swc_ecma_parser/tests/tsc/circular4.json index c502b5b2108b..b811eb94dcdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/circular4.json +++ b/crates/swc_ecma_parser/tests/tsc/circular4.json @@ -139,8 +139,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 142, + "end": 154 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 142, + "end": 152 + }, "left": { "type": "Identifier", "span": { @@ -157,9 +165,7 @@ "start": 146, "end": 152 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "right": { @@ -168,9 +174,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "T", - "optional": false + "value": "T" } }, "typeParams": null @@ -319,8 +323,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 286, + "end": 298 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 286, + "end": 296 + }, "left": { "type": "Identifier", "span": { @@ -337,9 +349,7 @@ "start": 290, "end": 296 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "right": { @@ -348,9 +358,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "T", - "optional": false + "value": "T" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/circularImportAlias.json b/crates/swc_ecma_parser/tests/tsc/circularImportAlias.json index 8948e0319da3..906f0b9f1b15 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularImportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/circularImportAlias.json @@ -97,9 +97,7 @@ "start": 100, "end": 102 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -150,9 +148,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "isAbstract": false, @@ -227,9 +223,7 @@ "start": 153, "end": 157 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -441,9 +435,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -452,9 +444,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json b/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json index a81829354d83..e8252dc92231 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json @@ -461,9 +461,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -870,9 +868,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -973,9 +969,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1038,9 +1032,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1103,9 +1095,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/circularMultipleAssignmentDeclaration.json b/crates/swc_ecma_parser/tests/tsc/circularMultipleAssignmentDeclaration.json index b313a8391de5..7f01ba85271b 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularMultipleAssignmentDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/circularMultipleAssignmentDeclaration.json @@ -40,9 +40,7 @@ "start": 111, "end": 115 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -74,9 +72,7 @@ "start": 121, "end": 125 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -94,9 +90,7 @@ "start": 131, "end": 137 }, - "ctxt": 0, - "value": "shared", - "optional": false + "value": "shared" }, "value": { "type": "ObjectExpression", @@ -159,9 +153,7 @@ "start": 148, "end": 152 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -170,9 +162,7 @@ "start": 153, "end": 159 }, - "ctxt": 0, - "value": "shared", - "optional": false + "value": "shared" } }, "property": { @@ -181,9 +171,7 @@ "start": 160, "end": 168 }, - "ctxt": 0, - "value": "mymethod", - "optional": false + "value": "mymethod" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/circularReference.json b/crates/swc_ecma_parser/tests/tsc/circularReference.json index 8345d3a46114..17893cd59d33 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularReference.json +++ b/crates/swc_ecma_parser/tests/tsc/circularReference.json @@ -109,9 +109,7 @@ "start": 96, "end": 98 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": null, "typeAnnotation": { @@ -128,8 +126,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 100, + "end": 110 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 100, + "end": 107 + }, "left": { "type": "Identifier", "span": { @@ -146,9 +152,7 @@ "start": 105, "end": 107 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } }, "right": { @@ -157,9 +161,7 @@ "start": 108, "end": 110 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "typeParams": null @@ -187,9 +189,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -230,9 +230,7 @@ "start": 127, "end": 138 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -275,9 +273,7 @@ "start": 150, "end": 152 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "right": { @@ -315,9 +311,7 @@ "start": 164, "end": 166 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } }, "property": { @@ -326,9 +320,7 @@ "start": 167, "end": 169 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "arguments": [], @@ -374,9 +366,7 @@ "start": 181, "end": 183 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "property": { @@ -385,9 +375,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -439,9 +427,7 @@ "start": 206, "end": 208 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "property": { @@ -450,9 +436,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -587,9 +571,7 @@ "start": 331, "end": 333 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": null, "typeAnnotation": { @@ -606,8 +588,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 335, + "end": 345 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 335, + "end": 342 + }, "left": { "type": "Identifier", "span": { @@ -624,9 +614,7 @@ "start": 340, "end": 342 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } }, "right": { @@ -635,9 +623,7 @@ "start": 343, "end": 345 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "typeParams": null @@ -665,9 +651,7 @@ "start": 349, "end": 350 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -708,9 +692,7 @@ "start": 361, "end": 372 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -753,9 +735,7 @@ "start": 384, "end": 386 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "right": { @@ -793,9 +773,7 @@ "start": 398, "end": 400 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } }, "property": { @@ -804,9 +782,7 @@ "start": 401, "end": 403 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "arguments": [], @@ -852,9 +828,7 @@ "start": 415, "end": 417 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "property": { @@ -863,9 +837,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -917,9 +889,7 @@ "start": 443, "end": 445 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "property": { @@ -928,9 +898,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1000,9 +968,7 @@ "start": 481, "end": 483 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "arguments": [], @@ -1047,9 +1013,7 @@ "start": 494, "end": 495 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1098,9 +1062,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/circularTypeAliasForUnionWithClass.json b/crates/swc_ecma_parser/tests/tsc/circularTypeAliasForUnionWithClass.json index e7880248609e..f442c9ff99db 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularTypeAliasForUnionWithClass.json +++ b/crates/swc_ecma_parser/tests/tsc/circularTypeAliasForUnionWithClass.json @@ -147,9 +147,7 @@ "start": 51, "end": 52 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json b/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json index 26ac0bb21c52..abcf998ad433 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json +++ b/crates/swc_ecma_parser/tests/tsc/circularTypeofWithVarOrFunc.json @@ -621,9 +621,7 @@ "start": 432, "end": 433 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -648,9 +646,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractAsIdentifier.json b/crates/swc_ecma_parser/tests/tsc/classAbstractAsIdentifier.json index b9e105402d48..39def5507d8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractAsIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractAsIdentifier.json @@ -37,9 +37,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractClinterfaceAssignability.json b/crates/swc_ecma_parser/tests/tsc/classAbstractClinterfaceAssignability.json index 0324c972e411..58462d8b12bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractClinterfaceAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractClinterfaceAssignability.json @@ -300,9 +300,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -342,9 +340,7 @@ "start": 181, "end": 182 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractImportInstantiation.json b/crates/swc_ecma_parser/tests/tsc/classAbstractImportInstantiation.json index 382c0cccd59c..d8799e8a28a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractImportInstantiation.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractImportInstantiation.json @@ -113,6 +113,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 75, + "end": 78 + }, "left": { "type": "Identifier", "span": { @@ -129,9 +133,7 @@ "start": 77, "end": 78 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractInAModule.json b/crates/swc_ecma_parser/tests/tsc/classAbstractInAModule.json index ca0fd79fcae8..b3083ac1de3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractInAModule.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractInAModule.json @@ -143,9 +143,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": null, @@ -187,9 +185,7 @@ "start": 93, "end": 94 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": null, diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractOverloads.json b/crates/swc_ecma_parser/tests/tsc/classAbstractOverloads.json index 6e7ef0375853..38ba4848098c 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractOverloads.json @@ -37,9 +37,7 @@ "start": 33, "end": 36 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 53, "end": 56 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -125,9 +121,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -162,9 +156,7 @@ "start": 107, "end": 110 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -199,9 +191,7 @@ "start": 118, "end": 121 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -236,9 +226,7 @@ "start": 138, "end": 141 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -273,9 +261,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -310,9 +296,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -347,9 +331,7 @@ "start": 194, "end": 197 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -384,9 +366,7 @@ "start": 205, "end": 208 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -429,9 +409,7 @@ "start": 223, "end": 226 }, - "ctxt": 0, - "value": "qux", - "optional": false + "value": "qux" }, "function": { "params": [], @@ -493,9 +471,7 @@ "start": 265, "end": 268 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -544,9 +520,7 @@ "start": 294, "end": 297 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -581,9 +555,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -623,9 +595,7 @@ "start": 330, "end": 333 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -660,9 +630,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractSuperCalls.json b/crates/swc_ecma_parser/tests/tsc/classAbstractSuperCalls.json index 592fb1c3121a..c965113a70ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractSuperCalls.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractSuperCalls.json @@ -37,9 +37,7 @@ "start": 16, "end": 19 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 81, "end": 84 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -163,9 +159,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -215,9 +209,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -250,9 +242,7 @@ "start": 119, "end": 122 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -295,9 +285,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -363,9 +351,7 @@ "start": 173, "end": 176 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -425,9 +411,7 @@ "start": 197, "end": 200 }, - "ctxt": 0, - "value": "qux", - "optional": false + "value": "qux" }, "function": { "params": [], @@ -484,9 +468,7 @@ "start": 218, "end": 221 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -511,9 +493,7 @@ "start": 233, "end": 236 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -544,9 +524,7 @@ "start": 273, "end": 277 }, - "ctxt": 0, - "value": "norf", - "optional": false + "value": "norf" }, "function": { "params": [], @@ -596,9 +574,7 @@ "start": 295, "end": 298 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -667,9 +643,7 @@ "start": 322, "end": 325 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -729,9 +703,7 @@ "start": 346, "end": 349 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -781,9 +753,7 @@ "start": 366, "end": 369 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -843,9 +813,7 @@ "start": 422, "end": 425 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractUsingAbstractMethod1.json b/crates/swc_ecma_parser/tests/tsc/classAbstractUsingAbstractMethod1.json index d66ee8e33e86..bfab1945ebe1 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractUsingAbstractMethod1.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractUsingAbstractMethod1.json @@ -37,9 +37,7 @@ "start": 33, "end": 36 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -115,9 +113,7 @@ "start": 76, "end": 79 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -213,9 +209,7 @@ "start": 142, "end": 145 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -354,9 +348,7 @@ "start": 178, "end": 181 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -444,9 +436,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classAndInterfaceMergeConflictingMembers.json b/crates/swc_ecma_parser/tests/tsc/classAndInterfaceMergeConflictingMembers.json index 1c67ef2d1867..62d43a841216 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAndInterfaceMergeConflictingMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/classAndInterfaceMergeConflictingMembers.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -170,9 +168,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -303,9 +299,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classAndInterfaceWithSameName.json b/crates/swc_ecma_parser/tests/tsc/classAndInterfaceWithSameName.json index f4016bdd41f7..9eb429ef17a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAndInterfaceWithSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/classAndInterfaceWithSameName.json @@ -37,9 +37,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -195,9 +193,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json b/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json index 33e539b01e98..780ab63275aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json @@ -37,9 +37,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -171,9 +169,7 @@ "start": 99, "end": 102 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json b/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json index e228a62b9c7d..0051f5ec8cda 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json +++ b/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json @@ -37,9 +37,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -186,9 +184,7 @@ "start": 47, "end": 55 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -254,9 +250,7 @@ "start": 70, "end": 84 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json index dea11eb9638d..60587508761e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json @@ -85,9 +85,7 @@ "start": 169, "end": 179 }, - "ctxt": 0, - "value": "numberOxen", - "optional": false + "value": "numberOxen" } }, "right": { @@ -144,9 +142,7 @@ "start": 233, "end": 239 }, - "ctxt": 0, - "value": "circle", - "optional": false + "value": "circle" } }, "right": { @@ -231,9 +227,7 @@ "start": 289, "end": 295 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "alternate": { @@ -297,9 +291,7 @@ "start": 370, "end": 379 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -308,9 +300,7 @@ "start": 380, "end": 384 }, - "ctxt": 0, - "value": "load", - "optional": false + "value": "load" } }, "right": { @@ -400,9 +390,7 @@ "start": 473, "end": 482 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -411,9 +399,7 @@ "start": 483, "end": 489 }, - "ctxt": 0, - "value": "weight", - "optional": false + "value": "weight" } }, "right": { @@ -474,9 +460,7 @@ "start": 524, "end": 530 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "alternate": { @@ -545,9 +529,7 @@ "start": 542, "end": 551 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -556,9 +538,7 @@ "start": 552, "end": 557 }, - "ctxt": 0, - "value": "speed", - "optional": false + "value": "speed" } }, "right": { @@ -611,9 +591,7 @@ "start": 590, "end": 600 }, - "ctxt": 0, - "value": "numberOxen", - "optional": false + "value": "numberOxen" } }, "right": { @@ -642,9 +620,7 @@ "start": 608, "end": 614 }, - "ctxt": 0, - "value": "weight", - "optional": false + "value": "weight" } }, "arguments": [], @@ -694,9 +670,7 @@ "start": 655, "end": 666 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -763,9 +737,7 @@ "start": 732, "end": 738 }, - "ctxt": 0, - "value": "foonly", - "optional": false + "value": "foonly" } }, "right": { @@ -796,9 +768,7 @@ "start": 920, "end": 924 }, - "ctxt": 0, - "value": "load", - "optional": false + "value": "load" }, "function": { "params": [ @@ -978,9 +948,7 @@ "start": 1095, "end": 1100 }, - "ctxt": 0, - "value": "speed", - "optional": false + "value": "speed" } }, "arguments": [], @@ -1026,9 +994,7 @@ "start": 1139, "end": 1145 }, - "ctxt": 0, - "value": "weight", - "optional": false + "value": "weight" } }, "arguments": [], @@ -1174,9 +1140,7 @@ "start": 1254, "end": 1264 }, - "ctxt": 0, - "value": "numberOxen", - "optional": false + "value": "numberOxen" } }, "right": { @@ -1201,9 +1165,7 @@ "start": 1270, "end": 1276 }, - "ctxt": 0, - "value": "foonly", - "optional": false + "value": "foonly" } } } @@ -1337,9 +1299,7 @@ "start": 1460, "end": 1471 }, - "ctxt": 0, - "value": "numberEaten", - "optional": false + "value": "numberEaten" } }, "right": { @@ -1394,9 +1354,7 @@ "start": 1535, "end": 1546 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1485,9 +1443,7 @@ "start": 1618, "end": 1629 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1596,9 +1552,7 @@ "start": 1772, "end": 1778 }, - "ctxt": 0, - "value": "circle", - "optional": false + "value": "circle" }, "function": { "params": [ @@ -1702,9 +1656,7 @@ "start": 1829, "end": 1835 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1829,9 +1781,7 @@ "start": 1875, "end": 1882 }, - "ctxt": 0, - "value": "drunkOO", - "optional": false + "value": "drunkOO" } } }, @@ -1863,9 +1813,7 @@ "start": 1885, "end": 1895 }, - "ctxt": 0, - "value": "numberOxen", - "optional": false + "value": "numberOxen" } } }, @@ -1949,9 +1897,7 @@ "start": 2002, "end": 2009 }, - "ctxt": 0, - "value": "flavour", - "optional": false + "value": "flavour" } }, "right": { @@ -2005,9 +1951,7 @@ "start": 2115, "end": 2118 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [], @@ -2050,9 +1994,7 @@ "start": 2143, "end": 2150 }, - "ctxt": 0, - "value": "flavour", - "optional": false + "value": "flavour" } } } @@ -2178,9 +2120,7 @@ "start": 2189, "end": 2196 }, - "ctxt": 0, - "value": "flavour", - "optional": false + "value": "flavour" } } }, @@ -2246,9 +2186,7 @@ "start": 2225, "end": 2230 }, - "ctxt": 0, - "value": "claim", - "optional": false + "value": "claim" }, "value": { "type": "StringLiteral", @@ -2304,9 +2242,7 @@ "start": 2255, "end": 2262 }, - "ctxt": 0, - "value": "flavour", - "optional": false + "value": "flavour" } }, "property": { @@ -2315,9 +2251,7 @@ "start": 2263, "end": 2268 }, - "ctxt": 0, - "value": "claim", - "optional": false + "value": "claim" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json index b6e78a66ae03..e4d32ed1f340 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility.json @@ -38,9 +38,7 @@ "start": 45, "end": 56 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -132,9 +130,7 @@ "start": 104, "end": 115 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -226,9 +222,7 @@ "start": 165, "end": 176 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -537,9 +531,7 @@ "start": 324, "end": 335 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -671,9 +663,7 @@ "start": 393, "end": 404 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -805,9 +795,7 @@ "start": 464, "end": 475 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json index 8b4ea8a20e01..123508cad632 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility2.json @@ -38,9 +38,7 @@ "start": 49, "end": 60 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -104,9 +102,7 @@ "start": 87, "end": 101 }, - "ctxt": 0, - "value": "createInstance", - "optional": false + "value": "createInstance" }, "function": { "params": [], @@ -218,9 +214,7 @@ "start": 153, "end": 164 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -284,9 +278,7 @@ "start": 191, "end": 205 }, - "ctxt": 0, - "value": "createInstance", - "optional": false + "value": "createInstance" }, "function": { "params": [], @@ -398,9 +390,7 @@ "start": 255, "end": 266 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -464,9 +454,7 @@ "start": 293, "end": 307 }, - "ctxt": 0, - "value": "createInstance", - "optional": false + "value": "createInstance" }, "function": { "params": [], @@ -550,9 +538,7 @@ "start": 339, "end": 353 }, - "ctxt": 0, - "value": "staticInstance", - "optional": false + "value": "staticInstance" }, "function": { "params": [], @@ -664,9 +650,7 @@ "start": 412, "end": 423 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -769,9 +753,7 @@ "start": 460, "end": 474 }, - "ctxt": 0, - "value": "createInstance", - "optional": false + "value": "createInstance" }, "function": { "params": [], @@ -855,9 +837,7 @@ "start": 502, "end": 520 }, - "ctxt": 0, - "value": "createBaseInstance", - "optional": false + "value": "createBaseInstance" }, "function": { "params": [], @@ -941,9 +921,7 @@ "start": 552, "end": 570 }, - "ctxt": 0, - "value": "staticBaseInstance", - "optional": false + "value": "staticBaseInstance" }, "function": { "params": [], @@ -1064,9 +1042,7 @@ "start": 629, "end": 640 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1169,9 +1145,7 @@ "start": 677, "end": 691 }, - "ctxt": 0, - "value": "createInstance", - "optional": false + "value": "createInstance" }, "function": { "params": [], @@ -1255,9 +1229,7 @@ "start": 719, "end": 737 }, - "ctxt": 0, - "value": "createBaseInstance", - "optional": false + "value": "createBaseInstance" }, "function": { "params": [], @@ -1341,9 +1313,7 @@ "start": 775, "end": 793 }, - "ctxt": 0, - "value": "staticBaseInstance", - "optional": false + "value": "staticBaseInstance" }, "function": { "params": [], @@ -1464,9 +1434,7 @@ "start": 867, "end": 878 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1569,9 +1537,7 @@ "start": 915, "end": 929 }, - "ctxt": 0, - "value": "createInstance", - "optional": false + "value": "createInstance" }, "function": { "params": [], @@ -1655,9 +1621,7 @@ "start": 957, "end": 975 }, - "ctxt": 0, - "value": "createBaseInstance", - "optional": false + "value": "createBaseInstance" }, "function": { "params": [], @@ -1741,9 +1705,7 @@ "start": 1017, "end": 1035 }, - "ctxt": 0, - "value": "staticBaseInstance", - "optional": false + "value": "staticBaseInstance" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json index d2c1260b015e..133b6933631a 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility3.json @@ -38,9 +38,7 @@ "start": 41, "end": 52 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -132,9 +130,7 @@ "start": 101, "end": 112 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -226,9 +222,7 @@ "start": 164, "end": 175 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -320,9 +314,7 @@ "start": 226, "end": 237 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility4.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility4.json index f6175e45f575..cc58236fec18 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility4.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility4.json @@ -38,9 +38,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -67,9 +65,7 @@ "start": 69, "end": 75 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -119,9 +115,7 @@ "start": 110, "end": 116 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -276,9 +270,7 @@ "start": 254, "end": 265 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -305,9 +297,7 @@ "start": 277, "end": 283 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -357,9 +347,7 @@ "start": 318, "end": 324 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility5.json b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility5.json index 7905f9059864..31218e2fa521 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility5.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorAccessibility5.json @@ -38,9 +38,7 @@ "start": 28, "end": 39 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -94,9 +92,7 @@ "start": 88, "end": 92 }, - "ctxt": 0, - "value": "make", - "optional": false + "value": "make" }, "function": { "params": [], @@ -203,9 +199,7 @@ "start": 148, "end": 152 }, - "ctxt": 0, - "value": "fake", - "optional": false + "value": "fake" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json b/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json index 49de20e96cb1..aa60430f3729 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorOverloadsAccessibility.json @@ -38,9 +38,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -94,9 +92,7 @@ "start": 86, "end": 97 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -150,9 +146,7 @@ "start": 127, "end": 138 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -206,9 +200,7 @@ "start": 159, "end": 170 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -263,9 +255,7 @@ "start": 206, "end": 217 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -319,9 +309,7 @@ "start": 239, "end": 250 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -375,9 +363,7 @@ "start": 263, "end": 274 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -432,9 +418,7 @@ "start": 310, "end": 321 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -488,9 +472,7 @@ "start": 344, "end": 355 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -544,9 +526,7 @@ "start": 378, "end": 389 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -601,9 +581,7 @@ "start": 415, "end": 426 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -657,9 +635,7 @@ "start": 439, "end": 450 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -713,9 +689,7 @@ "start": 470, "end": 481 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json index 72d7b8856400..7d8f346e7fc1 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility.json @@ -38,9 +38,7 @@ "start": 16, "end": 27 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -183,9 +181,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -222,9 +218,7 @@ "start": 92, "end": 103 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -367,9 +361,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -406,9 +398,7 @@ "start": 181, "end": 192 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -551,9 +541,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -590,9 +578,7 @@ "start": 288, "end": 299 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -700,9 +686,7 @@ "start": 344, "end": 345 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json index 69ee18b082df..7f7ef35e0f53 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility2.json @@ -38,9 +38,7 @@ "start": 16, "end": 27 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -183,9 +181,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -222,9 +218,7 @@ "start": 93, "end": 104 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -367,9 +361,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -406,9 +398,7 @@ "start": 183, "end": 194 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -551,9 +541,7 @@ "start": 238, "end": 239 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -590,9 +578,7 @@ "start": 291, "end": 302 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -700,9 +686,7 @@ "start": 347, "end": 348 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json index 4ee1f270f987..103a294211b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json +++ b/crates/swc_ecma_parser/tests/tsc/classConstructorParametersAccessibility3.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -132,9 +130,7 @@ "start": 91, "end": 102 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -245,9 +241,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -356,9 +350,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classDeclarationLoop.json b/crates/swc_ecma_parser/tests/tsc/classDeclarationLoop.json index c8ff00d3b5d0..3d7c0a07a179 100644 --- a/crates/swc_ecma_parser/tests/tsc/classDeclarationLoop.json +++ b/crates/swc_ecma_parser/tests/tsc/classDeclarationLoop.json @@ -176,9 +176,7 @@ "start": 70, "end": 74 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -243,9 +241,7 @@ "start": 94, "end": 98 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnPrivateMember.json b/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnPrivateMember.json index c822ae302497..877dbd199301 100644 --- a/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnPrivateMember.json +++ b/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnPrivateMember.json @@ -96,9 +96,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classExpression.json b/crates/swc_ecma_parser/tests/tsc/classExpression.json index ef6e43bf0453..9c68d5712881 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpression.json @@ -103,9 +103,7 @@ "start": 36, "end": 39 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ClassExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/classExpression3.json b/crates/swc_ecma_parser/tests/tsc/classExpression3.json index da50971a33de..f1c18b020cc4 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpression3.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpression3.json @@ -54,9 +54,7 @@ "start": 65, "end": 66 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -101,9 +99,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -148,9 +144,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -272,9 +266,7 @@ "start": 93, "end": 94 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -306,9 +298,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -340,9 +330,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classExpression4.json b/crates/swc_ecma_parser/tests/tsc/classExpression4.json index 4493f16e9394..97322fa89ce8 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpression4.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpression4.json @@ -54,9 +54,7 @@ "start": 21, "end": 24 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -199,9 +197,7 @@ "start": 78, "end": 81 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classExpression5.json b/crates/swc_ecma_parser/tests/tsc/classExpression5.json index fe3c91168c28..be080bfd8cfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpression5.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpression5.json @@ -53,9 +53,7 @@ "start": 17, "end": 19 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" }, "function": { "params": [], @@ -119,9 +117,7 @@ "start": 56, "end": 58 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classExpressionES63.json b/crates/swc_ecma_parser/tests/tsc/classExpressionES63.json index c00db614610b..b1c7dfc6f034 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpressionES63.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpressionES63.json @@ -54,9 +54,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -101,9 +99,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -148,9 +144,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -272,9 +266,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -306,9 +298,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -340,9 +330,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classExpressionLoop.json b/crates/swc_ecma_parser/tests/tsc/classExpressionLoop.json index 15bd0cc61f6c..f846d823bcab 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpressionLoop.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpressionLoop.json @@ -179,9 +179,7 @@ "start": 54, "end": 58 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -218,9 +216,7 @@ "start": 77, "end": 81 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json b/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json index 0f27b0a34aff..b5dc47d9f85a 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 32, "end": 37 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 55, "end": 60 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "function": { "params": [], @@ -196,9 +190,7 @@ "start": 94, "end": 97 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -347,9 +339,7 @@ "start": 130, "end": 133 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -405,9 +395,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -470,9 +458,7 @@ "start": 162, "end": 167 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "arguments": [], @@ -538,9 +524,7 @@ "start": 182, "end": 187 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "arguments": [], @@ -582,9 +566,7 @@ "start": 210, "end": 213 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -634,9 +616,7 @@ "start": 222, "end": 227 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" }, "function": { "params": [ @@ -723,9 +703,7 @@ "start": 249, "end": 254 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "function": { "params": [ @@ -899,9 +877,7 @@ "start": 303, "end": 306 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -1122,9 +1098,7 @@ "start": 351, "end": 354 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1180,9 +1154,7 @@ "start": 368, "end": 371 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1245,9 +1217,7 @@ "start": 385, "end": 390 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" } }, "arguments": [ @@ -1326,9 +1296,7 @@ "start": 408, "end": 413 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json b/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json index 6fac73f49856..d515be3ccc3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json @@ -980,9 +980,7 @@ "start": 401, "end": 412 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1074,9 +1072,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1122,9 +1118,7 @@ "start": 481, "end": 482 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1202,9 +1196,7 @@ "start": 541, "end": 552 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1333,9 +1325,7 @@ "start": 612, "end": 613 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1381,9 +1371,7 @@ "start": 632, "end": 633 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1477,9 +1465,7 @@ "start": 698, "end": 709 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1571,9 +1557,7 @@ "start": 753, "end": 754 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1619,9 +1603,7 @@ "start": 775, "end": 776 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json b/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json index 48a3d19aab72..861b887f81b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json @@ -111,9 +111,7 @@ "start": 39, "end": 40 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingNull.json b/crates/swc_ecma_parser/tests/tsc/classExtendingNull.json index 29525367f656..7a57b3544152 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingNull.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingNull.json @@ -108,9 +108,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -177,9 +175,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly.json b/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly.json index cd10161778c6..f6536460b8d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly.json @@ -37,9 +37,7 @@ "start": 21, "end": 24 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -115,9 +113,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -193,9 +189,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -271,9 +265,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -415,9 +407,7 @@ "start": 194, "end": 197 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -559,9 +549,7 @@ "start": 233, "end": 236 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly2.json b/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly2.json index 7e4c2f78da96..73f6b142dfab 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly2.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly2.json @@ -37,9 +37,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -90,9 +88,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } }, "isAbstract": false, @@ -163,9 +159,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -276,9 +270,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -329,9 +321,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "isAbstract": false, @@ -400,9 +390,7 @@ "start": 216, "end": 219 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -463,9 +451,7 @@ "start": 208, "end": 210 }, - "ctxt": 0, - "value": "E2", - "optional": false + "value": "E2" } }, "isAbstract": false, @@ -592,9 +578,7 @@ "start": 294, "end": 297 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -771,9 +755,7 @@ "start": 371, "end": 374 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -834,9 +816,7 @@ "start": 363, "end": 365 }, - "ctxt": 0, - "value": "D2", - "optional": false + "value": "D2" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly3.json b/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly3.json index 96c2f4900c0c..b3d8bfa74b9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly3.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendsItselfIndirectly3.json @@ -37,9 +37,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -115,9 +113,7 @@ "start": 170, "end": 173 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -193,9 +189,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -271,9 +265,7 @@ "start": 354, "end": 357 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -415,9 +407,7 @@ "start": 454, "end": 457 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -559,9 +549,7 @@ "start": 545, "end": 548 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendsShadowedConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/classExtendsShadowedConstructorFunction.json index c83752f5dc01..7b23b3b6483f 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendsShadowedConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendsShadowedConstructorFunction.json @@ -37,9 +37,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -171,9 +169,7 @@ "start": 135, "end": 138 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classImplementsMergedClassInterface.json b/crates/swc_ecma_parser/tests/tsc/classImplementsMergedClassInterface.json index 82190f3db16a..e21fbf9fb63d 100644 --- a/crates/swc_ecma_parser/tests/tsc/classImplementsMergedClassInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/classImplementsMergedClassInterface.json @@ -37,9 +37,7 @@ "start": 24, "end": 25 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -215,9 +213,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -303,9 +299,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -391,9 +385,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -433,9 +425,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classIsSubtypeOfBaseType.json b/crates/swc_ecma_parser/tests/tsc/classIsSubtypeOfBaseType.json index 62090cd5315f..d5f1f203b858 100644 --- a/crates/swc_ecma_parser/tests/tsc/classIsSubtypeOfBaseType.json +++ b/crates/swc_ecma_parser/tests/tsc/classIsSubtypeOfBaseType.json @@ -37,9 +37,7 @@ "start": 21, "end": 24 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -146,9 +144,7 @@ "start": 83, "end": 86 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -347,9 +343,7 @@ "start": 191, "end": 194 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classPropertyAsPrivate.json b/crates/swc_ecma_parser/tests/tsc/classPropertyAsPrivate.json index 780ff6e3df07..b6fa63abdd1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/classPropertyAsPrivate.json +++ b/crates/swc_ecma_parser/tests/tsc/classPropertyAsPrivate.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -139,9 +135,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -204,9 +198,7 @@ "start": 108, "end": 111 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -249,9 +241,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -291,9 +281,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -351,9 +339,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -416,9 +402,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -540,9 +524,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -574,9 +556,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -615,9 +595,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -666,9 +644,7 @@ "start": 302, "end": 305 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -703,9 +679,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -744,9 +718,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -788,9 +760,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -839,9 +809,7 @@ "start": 333, "end": 336 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classPropertyAsProtected.json b/crates/swc_ecma_parser/tests/tsc/classPropertyAsProtected.json index 8e1f1a491695..3545a7d3f071 100644 --- a/crates/swc_ecma_parser/tests/tsc/classPropertyAsProtected.json +++ b/crates/swc_ecma_parser/tests/tsc/classPropertyAsProtected.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 54, "end": 55 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -139,9 +135,7 @@ "start": 93, "end": 94 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -204,9 +198,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -249,9 +241,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -291,9 +281,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -351,9 +339,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -416,9 +402,7 @@ "start": 260, "end": 263 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -540,9 +524,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -574,9 +556,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -615,9 +595,7 @@ "start": 309, "end": 310 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -666,9 +644,7 @@ "start": 318, "end": 321 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -703,9 +679,7 @@ "start": 328, "end": 329 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -744,9 +718,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -788,9 +760,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -839,9 +809,7 @@ "start": 349, "end": 352 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classPropertyIsPublicByDefault.json b/crates/swc_ecma_parser/tests/tsc/classPropertyIsPublicByDefault.json index 1a50ff9498e9..ac65738d58f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/classPropertyIsPublicByDefault.json +++ b/crates/swc_ecma_parser/tests/tsc/classPropertyIsPublicByDefault.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -139,9 +135,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -204,9 +198,7 @@ "start": 76, "end": 79 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -249,9 +241,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -291,9 +281,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -351,9 +339,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -416,9 +402,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -540,9 +524,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -574,9 +556,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -615,9 +595,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -666,9 +644,7 @@ "start": 224, "end": 227 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -703,9 +679,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -744,9 +718,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -788,9 +760,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -839,9 +809,7 @@ "start": 255, "end": 258 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json index cc8d165fb1b1..714e6388c32b 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock11.json @@ -103,9 +103,7 @@ "start": 68, "end": 79 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock13.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock13.json index d092c91f375e..28fe0d20cf28 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock13.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock13.json @@ -107,9 +107,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -160,9 +158,7 @@ "start": 141, "end": 144 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock15.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock15.json index dd356e4958ef..ee4412300655 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock15.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock15.json @@ -294,9 +294,7 @@ "start": 230, "end": 233 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json index 0d69937cd389..2679583469c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock17.json @@ -293,9 +293,7 @@ "start": 115, "end": 126 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -404,9 +402,7 @@ "start": 165, "end": 169 }, - "ctxt": 0, - "value": "getX", - "optional": false + "value": "getX" }, "function": { "params": [], @@ -520,9 +516,7 @@ "start": 233, "end": 237 }, - "ctxt": 0, - "value": "getX", - "optional": false + "value": "getX" }, "params": [ { @@ -606,9 +600,7 @@ "start": 268, "end": 272 }, - "ctxt": 0, - "value": "setX", - "optional": false + "value": "setX" }, "params": [ { @@ -775,9 +767,7 @@ "start": 331, "end": 342 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -888,9 +878,7 @@ "start": 373, "end": 377 }, - "ctxt": 0, - "value": "getX", - "optional": false + "value": "getX" } }, "arguments": [ @@ -949,9 +937,7 @@ "start": 400, "end": 404 }, - "ctxt": 0, - "value": "setX", - "optional": false + "value": "setX" } }, "arguments": [ @@ -1185,9 +1171,7 @@ "start": 473, "end": 477 }, - "ctxt": 0, - "value": "getX", - "optional": false + "value": "getX" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock18.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock18.json index 0ef3cadccfb1..e2829b62e8c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock18.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock18.json @@ -61,9 +61,7 @@ "start": 88, "end": 91 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -148,9 +146,7 @@ "start": 149, "end": 152 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock24.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock24.json index a9dc97acbf44..ed0bc196ab2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock24.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock24.json @@ -43,9 +43,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -122,9 +120,7 @@ "start": 127, "end": 128 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock27.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock27.json index e3b746c77836..0cc82d4eaf18 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock27.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock27.json @@ -49,9 +49,7 @@ "start": 86, "end": 90 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "NumericLiteral", @@ -122,9 +120,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -152,9 +148,7 @@ "start": 132, "end": 136 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -198,9 +192,7 @@ "start": 151, "end": 155 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -257,9 +249,7 @@ "start": 194, "end": 197 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -287,9 +277,7 @@ "start": 202, "end": 206 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -333,9 +321,7 @@ "start": 221, "end": 225 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -392,9 +378,7 @@ "start": 264, "end": 267 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -422,9 +406,7 @@ "start": 272, "end": 276 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -468,9 +450,7 @@ "start": 291, "end": 295 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock28.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock28.json index cb183e1adf7f..0e35777d174c 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock28.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock28.json @@ -165,9 +165,7 @@ "start": 93, "end": 96 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock3.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock3.json index 020ec2074fa1..3ef8631405ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock3.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock3.json @@ -77,9 +77,7 @@ "start": 64, "end": 66 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "value": { "type": "NumericLiteral", @@ -150,9 +148,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -180,9 +176,7 @@ "start": 108, "end": 110 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } } }, @@ -210,9 +204,7 @@ "start": 114, "end": 116 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" } } }, @@ -240,9 +232,7 @@ "start": 120, "end": 122 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" } } } @@ -265,9 +255,7 @@ "start": 142, "end": 144 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" }, "value": { "type": "NumericLiteral", @@ -338,9 +326,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -368,9 +354,7 @@ "start": 186, "end": 188 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } } }, @@ -398,9 +382,7 @@ "start": 192, "end": 194 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" } } }, @@ -428,9 +410,7 @@ "start": 198, "end": 200 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" } } } @@ -453,9 +433,7 @@ "start": 220, "end": 222 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock4.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock4.json index 120422e02cb2..8154ebcd2a4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock4.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock4.json @@ -37,9 +37,7 @@ "start": 50, "end": 52 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 85, "end": 87 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" } } }, @@ -134,9 +130,7 @@ "start": 99, "end": 101 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" } } }, @@ -165,9 +159,7 @@ "start": 117, "end": 119 }, - "ctxt": 0, - "value": "s2", - "optional": false + "value": "s2" } } }, @@ -199,9 +191,7 @@ "start": 131, "end": 133 }, - "ctxt": 0, - "value": "s2", - "optional": false + "value": "s2" } } } @@ -220,9 +210,7 @@ "start": 153, "end": 155 }, - "ctxt": 0, - "value": "s2", - "optional": false + "value": "s2" }, "value": { "type": "NumericLiteral", @@ -256,9 +244,7 @@ "start": 172, "end": 175 }, - "ctxt": 0, - "value": "ss2", - "optional": false + "value": "ss2" }, "value": { "type": "MemberExpression", @@ -279,9 +265,7 @@ "start": 183, "end": 185 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" } }, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock5.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock5.json index 490c6e2f7392..0e591b27433e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock5.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock5.json @@ -37,9 +37,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -136,9 +132,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -172,9 +166,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "SuperPropExpression", @@ -195,9 +187,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null, @@ -250,9 +240,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -281,9 +269,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -312,9 +298,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlock9.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlock9.json index a9fea5a8deeb..19a515848966 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlock9.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlock9.json @@ -37,9 +37,7 @@ "start": 62, "end": 65 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "BinaryExpression", @@ -70,9 +68,7 @@ "start": 70, "end": 73 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -145,9 +141,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -176,9 +170,7 @@ "start": 127, "end": 130 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef2.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef2.json index 074240fd187e..8fe6dd86b21b 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef2.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef2.json @@ -71,9 +71,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -102,9 +100,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json index deabdc0caf7e..b6e227449f42 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json @@ -74,9 +74,7 @@ "start": 69, "end": 80 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" } }, "arguments": [], @@ -98,9 +96,7 @@ "start": 122, "end": 133 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" }, "function": { "params": [], @@ -153,9 +149,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -265,9 +259,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -407,9 +399,7 @@ "start": 317, "end": 320 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -629,9 +619,7 @@ "start": 482, "end": 483 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "NumericLiteral", @@ -665,9 +653,7 @@ "start": 501, "end": 512 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json b/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json index 4d9af8c44396..dd6c2bd99911 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithBaseClassButNoConstructor.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -128,9 +126,7 @@ "start": 75, "end": 78 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -363,9 +359,7 @@ "start": 177, "end": 188 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -515,9 +509,7 @@ "start": 240, "end": 243 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -855,9 +847,7 @@ "start": 392, "end": 395 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1175,9 +1165,7 @@ "start": 514, "end": 517 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json b/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json index 37d777a86db5..a292939984e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json @@ -63,9 +63,7 @@ "start": 43, "end": 54 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -269,9 +267,7 @@ "start": 161, "end": 172 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -325,9 +321,7 @@ "start": 193, "end": 204 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -381,9 +375,7 @@ "start": 225, "end": 236 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -893,9 +885,7 @@ "start": 513, "end": 524 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1139,9 +1129,7 @@ "start": 631, "end": 642 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1205,9 +1193,7 @@ "start": 658, "end": 669 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1314,9 +1300,7 @@ "start": 691, "end": 702 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json b/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json index edee8d6a3279..6d311b2d6fe9 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json @@ -216,9 +216,7 @@ "start": 52, "end": 55 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -315,9 +313,7 @@ "start": 91, "end": 102 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -541,9 +537,7 @@ "start": 172, "end": 175 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithNoConstructorOrBaseClass.json b/crates/swc_ecma_parser/tests/tsc/classWithNoConstructorOrBaseClass.json index 973f8408c203..856907b4706a 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithNoConstructorOrBaseClass.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithNoConstructorOrBaseClass.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -198,9 +196,7 @@ "start": 77, "end": 78 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -250,9 +246,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json index c886bddc138e..e751841ab273 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface.json @@ -37,9 +37,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -187,9 +183,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "function": { "params": [], @@ -249,9 +243,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json index d40e4d6beb94..0543f73bb531 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithOnlyPublicMembersEquivalentToInterface2.json @@ -37,9 +37,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -187,9 +183,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "function": { "params": [], @@ -249,9 +243,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "function": { "params": [ @@ -477,9 +469,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json b/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json index 8693622edb37..94c0ddc1636b 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithOptionalParameter.json @@ -37,9 +37,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": true + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "f", - "optional": true + "value": "f" }, "function": { "params": [], @@ -151,9 +147,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "x", - "optional": true + "value": "x" }, "value": null, "typeAnnotation": { @@ -203,9 +197,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "f", - "optional": true + "value": "f" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json b/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json index 9b7b1fe8ed44..282a7311d787 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json @@ -37,9 +37,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -101,9 +97,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -151,9 +145,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -213,9 +205,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrowFunctionExpression", @@ -262,9 +252,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": null, @@ -290,9 +278,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -352,9 +338,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ArrowFunctionExpression", @@ -510,9 +494,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -582,9 +564,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -654,9 +634,7 @@ "start": 361, "end": 362 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -733,9 +711,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "arguments": [], @@ -815,9 +791,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "arguments": [], @@ -890,9 +864,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "definite": false @@ -969,9 +941,7 @@ "start": 453, "end": 454 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1051,9 +1021,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json b/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json index c5892a44357e..b80cd1e2db61 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json @@ -37,9 +37,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -101,9 +97,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -151,9 +145,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -213,9 +205,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrowFunctionExpression", @@ -262,9 +252,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": null, @@ -290,9 +278,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -352,9 +338,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ArrowFunctionExpression", @@ -428,9 +412,7 @@ "start": 323, "end": 329 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -562,9 +544,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -634,9 +614,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -706,9 +684,7 @@ "start": 467, "end": 468 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -785,9 +761,7 @@ "start": 497, "end": 498 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "arguments": [], @@ -867,9 +841,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "arguments": [], @@ -942,9 +914,7 @@ "start": 561, "end": 562 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "definite": false @@ -1021,9 +991,7 @@ "start": 591, "end": 592 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1103,9 +1071,7 @@ "start": 623, "end": 624 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json b/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json index 63f1d21b6fa4..a1911a361365 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json @@ -37,9 +37,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 36, "end": 37 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -101,9 +97,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -151,9 +145,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -213,9 +205,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrowFunctionExpression", @@ -262,9 +252,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": null, @@ -290,9 +278,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -352,9 +338,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ArrowFunctionExpression", @@ -510,9 +494,7 @@ "start": 279, "end": 280 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -582,9 +564,7 @@ "start": 301, "end": 302 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -654,9 +634,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -733,9 +711,7 @@ "start": 345, "end": 346 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "arguments": [], @@ -815,9 +791,7 @@ "start": 369, "end": 370 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "arguments": [], @@ -890,9 +864,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "definite": false @@ -969,9 +941,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1051,9 +1021,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json index f970d3f972ed..6c64b2570a49 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json @@ -101,9 +101,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -147,9 +145,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -348,9 +344,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -394,9 +388,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json index 3edc84b789b0..07e80c047fda 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json @@ -101,9 +101,7 @@ "start": 197, "end": 198 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -147,9 +145,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -348,9 +344,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -394,9 +388,7 @@ "start": 290, "end": 291 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json index 7a52d01ba6dc..1884e3a5b382 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json @@ -75,9 +75,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -112,9 +110,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json index f5102c25de51..2ea64f73b38d 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json @@ -97,9 +97,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -297,9 +295,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json index 7c3874eb121d..b14f2bb6c324 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json @@ -97,9 +97,7 @@ "start": 198, "end": 199 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -297,9 +295,7 @@ "start": 271, "end": 272 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.json index 1b85a4d8cade..b29fab4620b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.json @@ -71,9 +71,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json index c5dd109f9411..429881feadd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticMembers.json @@ -37,9 +37,7 @@ "start": 22, "end": 24 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -97,9 +95,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -159,9 +155,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -225,9 +219,7 @@ "start": 105, "end": 116 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -327,9 +319,7 @@ "start": 169, "end": 172 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -420,9 +410,7 @@ "start": 196, "end": 198 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -481,9 +469,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -539,9 +525,7 @@ "start": 227, "end": 230 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -580,9 +564,7 @@ "start": 257, "end": 260 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -682,9 +664,7 @@ "start": 283, "end": 285 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -743,9 +723,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -801,9 +779,7 @@ "start": 314, "end": 317 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json b/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json index 12dcb1a652c5..fdbcac604d89 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithTwoConstructorDefinitions.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -68,9 +66,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -145,9 +141,7 @@ "start": 94, "end": 105 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -219,9 +213,7 @@ "start": 129, "end": 140 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json b/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json index 7bdf3b59671c..23d0d4c4f23a 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -249,9 +245,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -285,9 +279,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json index e256b1288ed1..a5b01153cd91 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json @@ -983,9 +983,7 @@ "start": 508, "end": 514 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1155,9 +1153,7 @@ "start": 558, "end": 569 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], @@ -1439,9 +1435,7 @@ "start": 705, "end": 711 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1652,9 +1646,7 @@ "start": 799, "end": 810 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json index fa144b86e339..a74bcca246ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json @@ -1028,9 +1028,7 @@ "start": 584, "end": 588 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -1517,9 +1515,7 @@ "start": 841, "end": 845 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json index b993c1548b3c..b2c463728be6 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json @@ -277,9 +277,7 @@ "start": 148, "end": 151 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" }, "value": null, "typeAnnotation": { @@ -1075,9 +1073,7 @@ "start": 609, "end": 620 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -1389,9 +1385,7 @@ "start": 788, "end": 789 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1411,9 +1405,7 @@ "start": 794, "end": 795 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1579,9 +1571,7 @@ "start": 883, "end": 894 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json index ac81c8bf98c6..d321b17b4323 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json @@ -1065,9 +1065,7 @@ "start": 612, "end": 620 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1568,9 +1566,7 @@ "start": 880, "end": 888 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorsMultipleOperators.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorsMultipleOperators.json index 3e1ee194d980..0c3914bc4f5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorsMultipleOperators.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorsMultipleOperators.json @@ -961,9 +961,7 @@ "start": 614, "end": 620 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1164,9 +1162,7 @@ "start": 719, "end": 725 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json b/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json index a19c152fae21..6b9e82485c95 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json @@ -176,9 +176,7 @@ "start": 185, "end": 192 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -234,9 +232,7 @@ "start": 210, "end": 217 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -245,9 +241,7 @@ "start": 218, "end": 223 }, - "ctxt": 0, - "value": "funky", - "optional": false + "value": "funky" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json index 819be8e5fa82..fd4abfb1dc18 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json @@ -43,9 +43,7 @@ "start": 64, "end": 66 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 81, "end": 83 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "value": { "type": "BooleanLiteral", @@ -179,9 +175,7 @@ "start": 158, "end": 160 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "property": { @@ -190,9 +184,7 @@ "start": 161, "end": 163 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json index 716f6b5cf8f4..314db488aa0b 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json @@ -171,9 +171,7 @@ "start": 190, "end": 196 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -219,9 +217,7 @@ "start": 238, "end": 244 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "function": { "params": [], @@ -322,9 +318,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json index 956640ef817b..135d21d983c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json @@ -171,9 +171,7 @@ "start": 190, "end": 196 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -222,9 +220,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -258,9 +254,7 @@ "start": 250, "end": 256 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json index 073b024332fa..08942bc54fca 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json @@ -171,9 +171,7 @@ "start": 190, "end": 196 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -261,9 +259,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -288,9 +284,7 @@ "start": 254, "end": 260 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "function": { "params": [], @@ -343,9 +337,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "arguments": [], @@ -410,9 +402,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -437,9 +427,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json index 1111892242c9..91ba86452fd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json @@ -43,9 +43,7 @@ "start": 64, "end": 66 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 81, "end": 83 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "value": { "type": "BooleanLiteral", @@ -459,6 +455,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 370, + "end": 376 + }, "left": { "type": "Identifier", "span": { @@ -475,9 +475,7 @@ "start": 374, "end": 376 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } } }, @@ -520,6 +518,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 385, + "end": 389 + }, "left": { "type": "Identifier", "span": { @@ -536,9 +538,7 @@ "start": 387, "end": 389 }, - "ctxt": 0, - "value": "I2", - "optional": false + "value": "I2" } }, "typeParams": null @@ -589,6 +589,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 398, + "end": 404 + }, "left": { "type": "Identifier", "span": { @@ -605,9 +609,7 @@ "start": 402, "end": 404 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "typeParams": null @@ -716,8 +718,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 439, + "end": 448 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 439, + "end": 445 + }, "left": { "type": "Identifier", "span": { @@ -734,9 +744,7 @@ "start": 443, "end": 445 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "right": { @@ -745,9 +753,7 @@ "start": 446, "end": 448 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" } }, "typeArguments": null @@ -805,8 +811,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 465, + "end": 474 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 465, + "end": 471 + }, "left": { "type": "Identifier", "span": { @@ -823,9 +837,7 @@ "start": 469, "end": 471 }, - "ctxt": 0, - "value": "M1", - "optional": false + "value": "M1" } }, "right": { @@ -834,9 +846,7 @@ "start": 472, "end": 474 }, - "ctxt": 0, - "value": "I2", - "optional": false + "value": "I2" } }, "typeParams": null @@ -912,6 +922,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 493, + "end": 499 + }, "left": { "type": "Identifier", "span": { @@ -928,9 +942,7 @@ "start": 497, "end": 499 }, - "ctxt": 0, - "value": "E1", - "optional": false + "value": "E1" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json b/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json index afabca52b31e..22b41ebad13a 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json @@ -47,9 +47,7 @@ "start": 118, "end": 122 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -102,9 +100,7 @@ "start": 140, "end": 147 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -163,9 +159,7 @@ "start": 198, "end": 205 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -183,9 +177,7 @@ "start": 212, "end": 218 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "CallExpression", @@ -316,9 +308,7 @@ "start": 306, "end": 312 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json index 90e353f4cab9..f5037849c915 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithIdenticalObjects.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -163,9 +157,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -205,9 +197,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -257,9 +247,7 @@ "start": 131, "end": 133 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ @@ -392,9 +380,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -434,9 +420,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -476,9 +460,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -518,9 +500,7 @@ "start": 273, "end": 274 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -560,9 +540,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -612,9 +590,7 @@ "start": 314, "end": 316 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ @@ -747,9 +723,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -789,9 +763,7 @@ "start": 416, "end": 418 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json index dc56c15ed3ff..c2ec31cb9fad 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json index e020a0b8aa2f..16c6cbf982bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.json index 69220473ecb4..360ede2fbfe8 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json index 14c21b782e52..47076a23d973 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json index d87d318968fb..36fa09e0fa3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnProperty.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnProperty.json index 8d4d4abd7e7f..fe0debd030dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithNoRelationshipObjectsOnProperty.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 96, "end": 97 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -244,9 +238,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeEnumAndNumber.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeEnumAndNumber.json index dce3261f3d15..b3b8fe3dbb67 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeEnumAndNumber.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeEnumAndNumber.json @@ -356,9 +356,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -442,9 +440,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -508,9 +504,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -592,9 +586,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -776,9 +768,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -862,9 +852,7 @@ "start": 255, "end": 256 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -928,9 +916,7 @@ "start": 270, "end": 271 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1012,9 +998,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1196,9 +1180,7 @@ "start": 360, "end": 361 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1282,9 +1264,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1348,9 +1328,7 @@ "start": 400, "end": 401 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1432,9 +1410,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1616,9 +1592,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1702,9 +1676,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1768,9 +1740,7 @@ "start": 532, "end": 533 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1852,9 +1822,7 @@ "start": 557, "end": 558 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2036,9 +2004,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2122,9 +2088,7 @@ "start": 649, "end": 650 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2188,9 +2152,7 @@ "start": 664, "end": 665 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2272,9 +2234,7 @@ "start": 689, "end": 690 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2456,9 +2416,7 @@ "start": 756, "end": 757 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2542,9 +2500,7 @@ "start": 781, "end": 782 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2608,9 +2564,7 @@ "start": 796, "end": 797 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2692,9 +2646,7 @@ "start": 821, "end": 822 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2876,9 +2828,7 @@ "start": 891, "end": 892 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2962,9 +2912,7 @@ "start": 918, "end": 919 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -3028,9 +2976,7 @@ "start": 933, "end": 934 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3112,9 +3058,7 @@ "start": 960, "end": 961 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -3296,9 +3240,7 @@ "start": 1030, "end": 1031 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3382,9 +3324,7 @@ "start": 1057, "end": 1058 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -3448,9 +3388,7 @@ "start": 1072, "end": 1073 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3532,9 +3470,7 @@ "start": 1099, "end": 1100 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json index 53abb6333d07..d74dc92d9112 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnCallSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json index 1a2611e45860..1c1603222f44 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnConstructorSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnIndexSignature.json index 00be4f5337e1..1c67d7efcd5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnIndexSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json index d39565739bb9..db5bd53168dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json index 4ef340d9450e..337352b2321c 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnProperty.json b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnProperty.json index 92c84ee5c02f..38c98e32ef65 100644 --- a/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/comparisonOperatorWithSubtypeObjectOnProperty.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -236,9 +230,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -315,9 +307,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -367,9 +357,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -446,9 +434,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": null, @@ -501,9 +487,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json index 84b5e52834f0..8184c4a73fdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json @@ -422,9 +422,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -800,9 +798,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1073,9 +1069,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1322,9 +1316,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentWithInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentWithInvalidOperands.json index 9684caa2496c..7a58fa618a8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentWithInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentWithInvalidOperands.json @@ -305,9 +305,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -612,9 +610,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -919,9 +915,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json index 9cfe791a6cad..69183c820812 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json @@ -413,9 +413,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -465,9 +463,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -876,9 +872,7 @@ "start": 428, "end": 429 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -935,9 +929,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json index 20c3cdb443f3..974bd85fb604 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json @@ -355,9 +355,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -624,9 +622,7 @@ "start": 342, "end": 343 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES5.json index 6a5e5d8bb727..941327e548d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES5.json @@ -94,9 +94,7 @@ "start": 64, "end": 67 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES6.json index 6a5e5d8bb727..941327e548d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames18_ES6.json @@ -94,9 +94,7 @@ "start": 64, "end": 67 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES5.json index b5da6166c97e..62a7db3b0d6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES5.json @@ -91,9 +91,7 @@ "start": 58, "end": 61 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES6.json index b5da6166c97e..62a7db3b0d6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames19_ES6.json @@ -91,9 +91,7 @@ "start": 58, "end": 61 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES5.json index 96d1632aef89..f7b80198cfdf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES5.json @@ -66,9 +66,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES6.json index 96d1632aef89..f7b80198cfdf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES6.json @@ -66,9 +66,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES5.json index 0d61423e9160..11e269124fd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES5.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -125,9 +123,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES6.json index 0d61423e9160..11e269124fd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames21_ES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -125,9 +123,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES5.json index cf2168b5abf0..2a9febfd6fac 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES5.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -125,9 +123,7 @@ "start": 77, "end": 80 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES6.json index cf2168b5abf0..2a9febfd6fac 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames22_ES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -125,9 +123,7 @@ "start": 77, "end": 80 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES5.json index 75d9238ff81c..5010d0d25fbb 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES5.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -146,9 +144,7 @@ "start": 85, "end": 88 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES6.json index 75d9238ff81c..5010d0d25fbb 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames23_ES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -146,9 +144,7 @@ "start": 85, "end": 88 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES5.json index 0068bb5562e5..bbe040b90858 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES5.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -152,9 +150,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES6.json index 7614ca7d5ced..dceae9b067af 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES6.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -152,9 +150,7 @@ "start": 224, "end": 227 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES5.json index e68fdb69486b..ae730d544830 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES5.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 95, "end": 98 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -214,9 +210,7 @@ "start": 142, "end": 145 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES6.json index e68fdb69486b..ae730d544830 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames25_ES6.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 95, "end": 98 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -214,9 +210,7 @@ "start": 142, "end": 145 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES5.json index a21d845a9166..a949fea43070 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES5.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -173,9 +171,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES6.json index 896eb35465ee..fd7eb6687bfc 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames26_ES6.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -173,9 +171,7 @@ "start": 236, "end": 239 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json index 4d0918025294..79210972e2e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json @@ -64,9 +64,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json index 4d0918025294..79210972e2e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json @@ -64,9 +64,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES5.json index 6e0cdf496837..09186663a5bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES5.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -147,9 +145,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES6.json index 6e0cdf496837..09186663a5bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames29_ES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -147,9 +145,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json index 4cc3fd67d2fd..dd2376909357 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json @@ -64,9 +64,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json index 4cc3fd67d2fd..dd2376909357 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json @@ -64,9 +64,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES5.json index 17ad5f49cd62..705317c03631 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES5.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 95, "end": 98 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -236,9 +232,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES6.json index 17ad5f49cd62..705317c03631 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames31_ES6.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 95, "end": 98 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -236,9 +232,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json index d794db052e35..aa070ba764e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json @@ -118,9 +118,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json index d794db052e35..aa070ba764e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json @@ -118,9 +118,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json index 51a6898827d8..61ad6d2db0bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json @@ -118,9 +118,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json index 51a6898827d8..61ad6d2db0bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json @@ -118,9 +118,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json index c3cfcefb419f..99ceb5853bc4 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json @@ -118,9 +118,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json index c3cfcefb419f..99ceb5853bc4 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json @@ -118,9 +118,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json index a302e610ef63..5c7608533951 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json index a302e610ef63..5c7608533951 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json index 9aa150c21a71..664c6d177f04 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json index 9aa150c21a71..664c6d177f04 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json index 13b84b99eeb6..e30f9117e31e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json index 13b84b99eeb6..e30f9117e31e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames38_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json index f5b8091ac34f..9042f37c49ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json index f5b8091ac34f..9042f37c49ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames39_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json index 6ae68db0defa..732e6e510aee 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json index 6ae68db0defa..732e6e510aee 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json index feba1d291741..a6d9d3d3e233 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json index feba1d291741..a6d9d3d3e233 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json index 44c7fd34252e..f872093b369e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json index 44c7fd34252e..f872093b369e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json index f077c81810cc..a5e39740ccd5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json index f077c81810cc..a5e39740ccd5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json index c616e59befac..132d4a7e6c05 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json index c616e59befac..132d4a7e6c05 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json index caffadb66d8e..9f800ddcb7c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json index caffadb66d8e..9f800ddcb7c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -120,9 +116,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES5.json index d1e70dccafaf..c504eb1f69a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES5.json @@ -154,9 +154,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -181,9 +179,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES6.json index d1e70dccafaf..c504eb1f69a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames47_ES6.json @@ -154,9 +154,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -181,9 +179,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json index 36474ad06ff3..4837011b9c90 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json @@ -398,9 +398,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json index 36474ad06ff3..4837011b9c90 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json @@ -398,9 +398,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES5.json index f2e2046e1c3c..a356b04b6955 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES5.json @@ -108,9 +108,7 @@ "start": 56, "end": 62 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES6.json index f2e2046e1c3c..a356b04b6955 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames7_ES6.json @@ -108,9 +108,7 @@ "start": 56, "end": 62 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json index b0bc46dc92c7..63b3aabf12a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json @@ -376,9 +376,7 @@ "start": 170, "end": 176 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -466,9 +464,7 @@ "start": 202, "end": 208 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json index b0bc46dc92c7..63b3aabf12a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json @@ -376,9 +376,7 @@ "start": 170, "end": 176 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -466,9 +464,7 @@ "start": 202, "end": 208 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json index 03a7695f9383..6af87e311174 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json @@ -367,9 +367,7 @@ "start": 170, "end": 176 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -448,9 +446,7 @@ "start": 202, "end": 208 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json index 03a7695f9383..6af87e311174 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json @@ -367,9 +367,7 @@ "start": 170, "end": 176 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -448,9 +446,7 @@ "start": 202, "end": 208 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json index 2be664c5e5c1..9ef58d234b8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json @@ -274,9 +274,7 @@ "start": 114, "end": 120 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -355,9 +353,7 @@ "start": 146, "end": 152 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json index 2be664c5e5c1..9ef58d234b8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json @@ -274,9 +274,7 @@ "start": 114, "end": 120 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -355,9 +353,7 @@ "start": 146, "end": 152 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json index 9ca7be67450d..3d324155dfee 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json @@ -316,9 +316,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json index 9ca7be67450d..3d324155dfee 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json @@ -316,9 +316,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json index d6f2872dee76..8814c3e43da5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json @@ -797,9 +797,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json index d6f2872dee76..8814c3e43da5 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json @@ -797,9 +797,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json index 13162bcdb729..f5da6cfc3d8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json @@ -37,9 +37,7 @@ "start": 39, "end": 49 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" }, "value": { "type": "NumericLiteral", @@ -95,9 +93,7 @@ "start": 68, "end": 78 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } } }, @@ -181,9 +177,7 @@ "start": 126, "end": 136 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } } }, @@ -326,9 +320,7 @@ "start": 184, "end": 194 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } } }, @@ -411,9 +403,7 @@ "start": 228, "end": 238 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" }, "value": { "type": "NumericLiteral", @@ -469,9 +459,7 @@ "start": 257, "end": 267 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } } }, @@ -555,9 +543,7 @@ "start": 315, "end": 325 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } } }, @@ -700,9 +686,7 @@ "start": 373, "end": 383 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json index f2e5cea12223..640c2eb94f07 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json @@ -1348,9 +1348,7 @@ "start": 1075, "end": 1081 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "consequent": { @@ -2618,9 +2616,7 @@ "start": 2191, "end": 2197 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json index cbb15b673511..d76ee48be0b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json @@ -1184,9 +1184,7 @@ "start": 941, "end": 952 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], @@ -1457,9 +1455,7 @@ "start": 1088, "end": 1099 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], @@ -1528,9 +1524,7 @@ "start": 1137, "end": 1148 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], @@ -2629,9 +2623,7 @@ "start": 2180, "end": 2191 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], @@ -2998,9 +2990,7 @@ "start": 2416, "end": 2427 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], @@ -3093,9 +3083,7 @@ "start": 2496, "end": 2507 }, - "ctxt": 0, - "value": "doSomeThing", - "optional": false + "value": "doSomeThing" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json index a67a6221e5bb..2cd67646ab13 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json @@ -1273,9 +1273,7 @@ "start": 1051, "end": 1062 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "consequent": { @@ -2477,9 +2475,7 @@ "start": 2157, "end": 2168 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "consequent": { @@ -2892,9 +2888,7 @@ "start": 2524, "end": 2535 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json index 4215a5d6cffc..e4e3a0f20d1f 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json @@ -37,9 +37,7 @@ "start": 84, "end": 93 }, - "ctxt": 0, - "value": "propertyX", - "optional": false + "value": "propertyX" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 100, "end": 110 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 120, "end": 130 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" }, "value": null, "typeAnnotation": { @@ -197,9 +191,7 @@ "start": 162, "end": 171 }, - "ctxt": 0, - "value": "propertyA", - "optional": false + "value": "propertyA" }, "value": null, "typeAnnotation": { @@ -282,9 +274,7 @@ "start": 203, "end": 212 }, - "ctxt": 0, - "value": "propertyB", - "optional": false + "value": "propertyB" }, "value": null, "typeAnnotation": { @@ -685,9 +675,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -716,9 +704,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -738,9 +724,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -875,9 +859,7 @@ "start": 510, "end": 511 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -906,9 +888,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -928,9 +908,7 @@ "start": 527, "end": 528 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1188,9 +1166,7 @@ "start": 643, "end": 652 }, - "ctxt": 0, - "value": "propertyX", - "optional": false + "value": "propertyX" } }, "async": false, @@ -1240,9 +1216,7 @@ "start": 664, "end": 673 }, - "ctxt": 0, - "value": "propertyA", - "optional": false + "value": "propertyA" } }, "async": false, @@ -1437,9 +1411,7 @@ "start": 846, "end": 847 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1459,9 +1431,7 @@ "start": 852, "end": 853 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1490,9 +1460,7 @@ "start": 870, "end": 871 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1627,9 +1595,7 @@ "start": 930, "end": 931 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1649,9 +1615,7 @@ "start": 936, "end": 937 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1680,9 +1644,7 @@ "start": 954, "end": 955 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1940,9 +1902,7 @@ "start": 1063, "end": 1072 }, - "ctxt": 0, - "value": "propertyA", - "optional": false + "value": "propertyA" } }, "async": false, @@ -1992,9 +1952,7 @@ "start": 1084, "end": 1093 }, - "ctxt": 0, - "value": "propertyX", - "optional": false + "value": "propertyX" } }, "async": false, @@ -2246,9 +2204,7 @@ "start": 1251, "end": 1261 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" } }, "async": false, @@ -2298,9 +2254,7 @@ "start": 1273, "end": 1283 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json index 720ca91d248f..92b99a20706d 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithoutIdenticalBCT.json @@ -37,9 +37,7 @@ "start": 87, "end": 96 }, - "ctxt": 0, - "value": "propertyX", - "optional": false + "value": "propertyX" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 103, "end": 113 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 123, "end": 133 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" }, "value": null, "typeAnnotation": { @@ -197,9 +191,7 @@ "start": 165, "end": 174 }, - "ctxt": 0, - "value": "propertyA", - "optional": false + "value": "propertyA" }, "value": null, "typeAnnotation": { @@ -282,9 +274,7 @@ "start": 206, "end": 215 }, - "ctxt": 0, - "value": "propertyB", - "optional": false + "value": "propertyB" }, "value": null, "typeAnnotation": { @@ -1057,9 +1047,7 @@ "start": 604, "end": 614 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" } }, "async": false, @@ -1109,9 +1097,7 @@ "start": 626, "end": 636 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" } }, "async": false, @@ -1273,9 +1259,7 @@ "start": 686, "end": 696 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" } }, "async": false, @@ -1325,9 +1309,7 @@ "start": 708, "end": 718 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" } }, "async": false, @@ -1489,9 +1471,7 @@ "start": 769, "end": 779 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" } }, "async": false, @@ -1541,9 +1521,7 @@ "start": 791, "end": 801 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" } }, "async": false, @@ -1722,9 +1700,7 @@ "start": 860, "end": 870 }, - "ctxt": 0, - "value": "propertyX1", - "optional": false + "value": "propertyX1" } }, "async": false, @@ -1774,9 +1750,7 @@ "start": 882, "end": 892 }, - "ctxt": 0, - "value": "propertyX2", - "optional": false + "value": "propertyX2" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json index 34c96ce98f72..7ddef6fa344f 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json @@ -8486,9 +8486,7 @@ "start": 4204, "end": 4208 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "definite": false @@ -8570,9 +8568,7 @@ "start": 4236, "end": 4244 }, - "ctxt": 0, - "value": "subparts", - "optional": false + "value": "subparts" } }, "property": { @@ -8598,9 +8594,7 @@ "start": 4248, "end": 4250 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "definite": false @@ -8642,9 +8636,7 @@ "start": 4261, "end": 4263 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -8669,9 +8661,7 @@ "start": 4271, "end": 4273 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } @@ -8717,9 +8707,7 @@ "start": 4294, "end": 4302 }, - "ctxt": 0, - "value": "subparts", - "optional": false + "value": "subparts" } }, "property": { @@ -8767,9 +8755,7 @@ "start": 4313, "end": 4321 }, - "ctxt": 0, - "value": "subparts", - "optional": false + "value": "subparts" } }, "property": { @@ -8838,9 +8824,7 @@ "start": 4345, "end": 4353 }, - "ctxt": 0, - "value": "subparts", - "optional": false + "value": "subparts" } }, "property": { @@ -8866,9 +8850,7 @@ "start": 4357, "end": 4359 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -8905,9 +8887,7 @@ "start": 4367, "end": 4375 }, - "ctxt": 0, - "value": "subparts", - "optional": false + "value": "subparts" } }, "property": { @@ -8933,9 +8913,7 @@ "start": 4379, "end": 4381 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } @@ -8975,9 +8953,7 @@ "start": 4402, "end": 4412 }, - "ctxt": 0, - "value": "updatePart", - "optional": false + "value": "updatePart" } }, "arguments": [ @@ -24420,9 +24396,7 @@ "start": 10998, "end": 10999 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "NumericLiteral", @@ -24442,9 +24416,7 @@ "start": 11004, "end": 11005 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -24464,9 +24436,7 @@ "start": 11010, "end": 11011 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrayExpression", @@ -24492,9 +24462,7 @@ "start": 11015, "end": 11016 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -24514,9 +24482,7 @@ "start": 11021, "end": 11022 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -24594,9 +24560,7 @@ "start": 11044, "end": 11045 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "NumericLiteral", @@ -24616,9 +24580,7 @@ "start": 11050, "end": 11051 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ObjectExpression", @@ -24653,9 +24615,7 @@ "start": 11058, "end": 11059 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -24675,9 +24635,7 @@ "start": 11064, "end": 11065 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json index f673fb869572..d6c75bccbdff 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json @@ -4295,9 +4295,7 @@ "start": 1822, "end": 1830 }, - "ctxt": 0, - "value": "toVector", - "optional": false + "value": "toVector" }, "function": { "params": [], @@ -4637,9 +4635,7 @@ "start": 1973, "end": 1977 }, - "ctxt": 0, - "value": "tail", - "optional": false + "value": "tail" }, "function": { "params": [], @@ -4791,9 +4787,7 @@ "start": 2039, "end": 2049 }, - "ctxt": 0, - "value": "partition2", - "optional": false + "value": "partition2" }, "function": { "params": [ @@ -5159,9 +5153,7 @@ "start": 2128, "end": 2138 }, - "ctxt": 0, - "value": "partition2", - "optional": false + "value": "partition2" }, "function": { "params": [ @@ -5401,9 +5393,7 @@ "start": 2193, "end": 2203 }, - "ctxt": 0, - "value": "partition2", - "optional": false + "value": "partition2" }, "function": { "params": [ @@ -11589,9 +11579,7 @@ "start": 4826, "end": 4827 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json index d8c10fb23118..4db9d97e5823 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json @@ -425,9 +425,7 @@ "start": 183, "end": 187 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "StringLiteral", @@ -447,9 +445,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "arg", - "optional": false + "value": "arg" }, "value": { "type": "Identifier", @@ -505,9 +501,7 @@ "start": 267, "end": 271 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "StringLiteral", @@ -527,9 +521,7 @@ "start": 280, "end": 283 }, - "ctxt": 0, - "value": "arg", - "optional": false + "value": "arg" }, "value": { "type": "Identifier", @@ -550,9 +542,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "arr", - "optional": false + "value": "arr" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json b/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json index 119fdae4e711..a378977a3de5 100644 --- a/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json +++ b/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json @@ -156,9 +156,7 @@ "start": 130, "end": 137 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constEnum2.json b/crates/swc_ecma_parser/tests/tsc/constEnum2.json index 128882322c13..2f06dde94ea7 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnum2.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnum2.json @@ -168,9 +168,7 @@ "start": 423, "end": 428 }, - "ctxt": 0, - "value": "floor", - "optional": false + "value": "floor" } }, "arguments": [ @@ -212,9 +210,7 @@ "start": 434, "end": 440 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -320,9 +316,7 @@ "start": 476, "end": 481 }, - "ctxt": 0, - "value": "floor", - "optional": false + "value": "floor" } }, "arguments": [ @@ -364,9 +358,7 @@ "start": 487, "end": 493 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/constEnum3.json b/crates/swc_ecma_parser/tests/tsc/constEnum3.json index 4674dee15ddf..3e9307961685 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnum3.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnum3.json @@ -311,9 +311,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -369,9 +367,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumNoObjectPrototypePropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/constEnumNoObjectPrototypePropertyAccess.json index 73545842c28e..41c90d7d56f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumNoObjectPrototypePropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumNoObjectPrototypePropertyAccess.json @@ -60,9 +60,7 @@ "start": 122, "end": 125 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -90,9 +88,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } } } @@ -135,9 +131,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -165,9 +159,7 @@ "start": 163, "end": 177 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } } } @@ -210,9 +202,7 @@ "start": 187, "end": 190 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -240,9 +230,7 @@ "start": 197, "end": 210 }, - "ctxt": 0, - "value": "isPrototypeOf", - "optional": false + "value": "isPrototypeOf" } } } @@ -285,9 +273,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -315,9 +301,7 @@ "start": 230, "end": 250 }, - "ctxt": 0, - "value": "propertyIsEnumerable", - "optional": false + "value": "propertyIsEnumerable" } } } @@ -360,9 +344,7 @@ "start": 260, "end": 263 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -390,9 +372,7 @@ "start": 270, "end": 284 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } } } @@ -435,9 +415,7 @@ "start": 294, "end": 297 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -465,9 +443,7 @@ "start": 304, "end": 312 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } } } @@ -510,9 +486,7 @@ "start": 322, "end": 325 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -540,9 +514,7 @@ "start": 332, "end": 339 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json index 9938b088b081..1923a688e2ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json @@ -342,9 +342,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -486,9 +484,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -551,9 +547,7 @@ "start": 464, "end": 465 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -620,9 +614,7 @@ "start": 484, "end": 485 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -705,9 +697,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json index 2637825d7738..e2aa211ef221 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json @@ -279,9 +279,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -494,9 +492,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json index 308ac7f21680..3e831f092631 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json @@ -294,9 +294,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "property": { @@ -305,9 +303,7 @@ "start": 99, "end": 107 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -355,9 +351,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "property": { @@ -366,9 +360,7 @@ "start": 115, "end": 123 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -416,9 +408,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "property": { @@ -427,9 +417,7 @@ "start": 131, "end": 139 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -477,9 +465,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "property": { @@ -488,9 +474,7 @@ "start": 147, "end": 155 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -555,9 +539,7 @@ "start": 167, "end": 175 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -622,9 +604,7 @@ "start": 186, "end": 194 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -689,9 +669,7 @@ "start": 205, "end": 213 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -756,9 +734,7 @@ "start": 224, "end": 232 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -823,9 +799,7 @@ "start": 243, "end": 251 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json b/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json index cc0b681457f0..fc5eef57fc71 100644 --- a/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json @@ -247,9 +247,7 @@ "start": 167, "end": 173 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -469,9 +467,7 @@ "start": 312, "end": 318 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -691,9 +687,7 @@ "start": 447, "end": 453 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -932,9 +926,7 @@ "start": 609, "end": 615 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1149,9 +1141,7 @@ "start": 739, "end": 745 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json index b0e04e723587..c2f3a990bc21 100644 --- a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithAny.json @@ -1000,9 +1000,7 @@ "start": 610, "end": 621 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1297,9 +1295,7 @@ "start": 726, "end": 737 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1620,9 +1616,7 @@ "start": 962, "end": 973 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json index e7d655c38b83..1024f6a86db5 100644 --- a/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json +++ b/crates/swc_ecma_parser/tests/tsc/constraintSatisfactionWithEmptyObject.json @@ -328,9 +328,7 @@ "start": 206, "end": 217 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1015,9 +1013,7 @@ "start": 451, "end": 462 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructBigint.json b/crates/swc_ecma_parser/tests/tsc/constructBigint.json index c10d3b1543ed..b800523c1455 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructBigint.json +++ b/crates/swc_ecma_parser/tests/tsc/constructBigint.json @@ -261,9 +261,7 @@ "start": 132, "end": 133 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -283,9 +281,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json index 6c2a406cea5d..902ef2e4c831 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance.json @@ -1140,9 +1140,7 @@ "start": 1102, "end": 1103 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json index c1b6973a5907..38b94654469e 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance2.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json index 163d49debc76..1b601ee6397c 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance3.json @@ -62,9 +62,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 199, "end": 202 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 304, "end": 308 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json index 996cf82425e6..08b5a6ec7ecb 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance4.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json index a543480c75fa..255120e86e5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance5.json @@ -37,9 +37,7 @@ "start": 226, "end": 229 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 318, "end": 321 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 367, "end": 371 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json index d49ad59c4d78..fc688f5084e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureAssignabilityInInheritance6.json @@ -37,9 +37,7 @@ "start": 241, "end": 244 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 285, "end": 288 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 333, "end": 336 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 382, "end": 386 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters.json index efb515afe3b9..3db0bb87c1ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters.json @@ -38,9 +38,7 @@ "start": 131, "end": 142 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -140,9 +138,7 @@ "start": 186, "end": 197 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -220,9 +216,7 @@ "start": 230, "end": 241 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters2.json b/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters2.json index 0a57905191e6..6d209e85b3ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignatureWithAccessibilityModifiersOnParameters2.json @@ -38,9 +38,7 @@ "start": 83, "end": 94 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -105,9 +103,7 @@ "start": 121, "end": 132 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -207,9 +203,7 @@ "start": 176, "end": 187 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -252,9 +246,7 @@ "start": 204, "end": 215 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -332,9 +324,7 @@ "start": 248, "end": 259 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -377,9 +367,7 @@ "start": 276, "end": 287 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json index 2f7d515b517d..86b5487ed644 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json @@ -38,9 +38,7 @@ "start": 86, "end": 97 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -127,9 +125,7 @@ "start": 125, "end": 136 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -216,9 +212,7 @@ "start": 173, "end": 184 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -383,9 +377,7 @@ "start": 245, "end": 256 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -482,9 +474,7 @@ "start": 279, "end": 290 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -581,9 +571,7 @@ "start": 322, "end": 333 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json index efb89d8fac1c..63ebf7070def 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json @@ -38,9 +38,7 @@ "start": 82, "end": 93 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -127,9 +125,7 @@ "start": 122, "end": 133 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -216,9 +212,7 @@ "start": 161, "end": 172 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -383,9 +377,7 @@ "start": 233, "end": 244 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -482,9 +474,7 @@ "start": 268, "end": 279 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -581,9 +571,7 @@ "start": 302, "end": 313 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json index b3218ed00ef5..2aaf351d7ebe 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json @@ -38,9 +38,7 @@ "start": 119, "end": 130 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -127,9 +125,7 @@ "start": 159, "end": 170 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -216,9 +212,7 @@ "start": 198, "end": 209 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -458,9 +452,7 @@ "start": 305, "end": 316 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -557,9 +549,7 @@ "start": 340, "end": 351 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -656,9 +646,7 @@ "start": 374, "end": 385 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json index e39fa84fe085..d067e9e9471c 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.json @@ -38,9 +38,7 @@ "start": 89, "end": 100 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -129,9 +127,7 @@ "start": 137, "end": 148 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionMergeWithClass.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionMergeWithClass.json index 08f821d73704..1d9156fafe9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionMergeWithClass.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionMergeWithClass.json @@ -82,9 +82,7 @@ "start": 117, "end": 126 }, - "ctxt": 0, - "value": "otherProp", - "optional": false + "value": "otherProp" } }, "right": { @@ -197,9 +195,7 @@ "start": 207, "end": 211 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json index 39418aa14220..d5b98a1a9ca7 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json @@ -85,9 +85,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -150,9 +148,7 @@ "start": 279, "end": 288 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -161,9 +157,7 @@ "start": 289, "end": 304 }, - "ctxt": 0, - "value": "topLevelComment", - "optional": false + "value": "topLevelComment" } }, "right": { @@ -290,9 +284,7 @@ "start": 346, "end": 355 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -301,9 +293,7 @@ "start": 356, "end": 369 }, - "ctxt": 0, - "value": "nestedComment", - "optional": false + "value": "nestedComment" } }, "right": { @@ -509,9 +499,7 @@ "start": 556, "end": 571 }, - "ctxt": 0, - "value": "topLevelComment", - "optional": false + "value": "topLevelComment" } }, "arguments": [ @@ -602,9 +590,7 @@ "start": 595, "end": 608 }, - "ctxt": 0, - "value": "nestedComment", - "optional": false + "value": "nestedComment" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType.json index 2c5c82fd0221..4fc2af0c0601 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType.json @@ -37,9 +37,7 @@ "start": 25, "end": 28 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -152,9 +150,7 @@ "start": 112, "end": 115 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -266,9 +262,7 @@ "start": 224, "end": 227 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json index a0de11b10755..fd32c861d326 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionTypeIsAssignableToBaseType2.json @@ -37,9 +37,7 @@ "start": 129, "end": 132 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -126,9 +124,7 @@ "start": 167, "end": 178 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -226,9 +222,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -305,9 +299,7 @@ "start": 290, "end": 301 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -443,9 +435,7 @@ "start": 386, "end": 389 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -522,9 +512,7 @@ "start": 481, "end": 492 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctions.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctions.json index 3ade5159f1c6..1c8a6ee70429 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctions.json @@ -140,9 +140,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -417,9 +415,7 @@ "start": 286, "end": 287 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1277,9 +1273,7 @@ "start": 807, "end": 816 }, - "ctxt": 0, - "value": "functions", - "optional": false + "value": "functions" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json index 62d792c68a9d..1df2f4b976d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json @@ -282,9 +282,7 @@ "start": 253, "end": 255 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "definite": false @@ -368,9 +366,7 @@ "start": 286, "end": 288 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -436,9 +432,7 @@ "start": 298, "end": 307 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -447,9 +441,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -502,9 +494,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -606,9 +596,7 @@ "start": 360, "end": 362 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } }, @@ -640,9 +628,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -706,9 +692,7 @@ "start": 413, "end": 415 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -764,9 +748,7 @@ "start": 430, "end": 437 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json index 2c0d6b68f6ed..776bd4e0563a 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json @@ -65,9 +65,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "right": { @@ -233,9 +231,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "right": { @@ -291,9 +287,7 @@ "start": 244, "end": 252 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { @@ -452,9 +446,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -500,9 +492,7 @@ "start": 371, "end": 377 }, - "ctxt": 0, - "value": "second", - "optional": false + "value": "second" } }, "right": { @@ -564,9 +554,7 @@ "start": 411, "end": 420 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -575,9 +563,7 @@ "start": 421, "end": 422 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -669,9 +655,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -720,9 +704,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -901,9 +883,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "arguments": [ @@ -958,9 +938,7 @@ "start": 556, "end": 557 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "arguments": [ @@ -1015,9 +993,7 @@ "start": 563, "end": 569 }, - "ctxt": 0, - "value": "second", - "optional": false + "value": "second" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionsStrict.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionsStrict.json index 64b28bda8990..4fdd89b3e920 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionsStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionsStrict.json @@ -85,9 +85,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -150,9 +148,7 @@ "start": 178, "end": 187 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -161,9 +157,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -216,9 +210,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -340,9 +332,7 @@ "start": 242, "end": 243 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -392,9 +382,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -588,9 +576,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -775,9 +761,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -802,9 +786,7 @@ "start": 455, "end": 456 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/constructorHasPrototypeProperty.json b/crates/swc_ecma_parser/tests/tsc/constructorHasPrototypeProperty.json index da8db1b2c705..c1d918e2d6c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorHasPrototypeProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorHasPrototypeProperty.json @@ -62,9 +62,7 @@ "start": 43, "end": 46 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 95, "end": 98 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -226,9 +222,7 @@ "start": 129, "end": 138 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -263,9 +257,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -318,9 +310,7 @@ "start": 166, "end": 175 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -355,9 +345,7 @@ "start": 184, "end": 187 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -421,9 +409,7 @@ "start": 236, "end": 239 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -473,9 +459,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -604,9 +588,7 @@ "start": 309, "end": 312 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -656,9 +638,7 @@ "start": 325, "end": 329 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { @@ -857,9 +837,7 @@ "start": 355, "end": 364 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -915,9 +893,7 @@ "start": 396, "end": 399 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -973,9 +949,7 @@ "start": 423, "end": 432 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -1031,9 +1005,7 @@ "start": 465, "end": 468 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json index a19677879e9e..2495cb3c47e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -80,9 +78,7 @@ "start": 35, "end": 46 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -215,9 +211,7 @@ "start": 101, "end": 112 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -257,9 +251,7 @@ "start": 121, "end": 132 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -444,9 +436,7 @@ "start": 205, "end": 216 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -486,9 +476,7 @@ "start": 225, "end": 236 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json index 266279eb30c9..d8f164882fa5 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues2.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -80,9 +78,7 @@ "start": 35, "end": 46 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -232,9 +228,7 @@ "start": 128, "end": 139 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -341,9 +335,7 @@ "start": 157, "end": 168 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -615,9 +607,7 @@ "start": 265, "end": 276 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -657,9 +647,7 @@ "start": 285, "end": 296 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorNameInObjectLiteralAccessor.json b/crates/swc_ecma_parser/tests/tsc/constructorNameInObjectLiteralAccessor.json index f948b7cf048a..4b9515b5b676 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorNameInObjectLiteralAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorNameInObjectLiteralAccessor.json @@ -51,9 +51,7 @@ "start": 41, "end": 52 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "typeAnnotation": null, "body": { @@ -87,9 +85,7 @@ "start": 75, "end": 86 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "thisParam": null, "param": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithDefaultValues.json b/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithDefaultValues.json index 39cb0edde349..d05f73aaa94d 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithDefaultValues.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithDefaultValues.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -80,9 +78,7 @@ "start": 32, "end": 43 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -138,9 +134,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -194,9 +188,7 @@ "start": 107, "end": 110 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -237,9 +229,7 @@ "start": 124, "end": 135 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -295,9 +285,7 @@ "start": 157, "end": 168 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json b/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json index ae5f19b8cfb3..c887617d1043 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorOverloadsWithOptionalParameters.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -80,9 +78,7 @@ "start": 32, "end": 43 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -162,9 +158,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -218,9 +212,7 @@ "start": 107, "end": 110 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -261,9 +253,7 @@ "start": 124, "end": 135 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -343,9 +333,7 @@ "start": 157, "end": 168 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json index 9348435d68b5..09f4a62a5198 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -80,9 +78,7 @@ "start": 30, "end": 41 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -282,9 +278,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -340,9 +334,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -398,9 +390,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -439,9 +429,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -492,9 +480,7 @@ "start": 186, "end": 197 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -803,9 +789,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -861,9 +845,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -919,9 +901,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -977,9 +957,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json index 712cf091c2c5..0569068b6a9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterProperties2.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -80,9 +78,7 @@ "start": 30, "end": 41 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -243,9 +239,7 @@ "start": 86, "end": 87 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -284,9 +278,7 @@ "start": 104, "end": 105 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -327,9 +319,7 @@ "start": 119, "end": 130 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -493,9 +483,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -534,9 +522,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -577,9 +563,7 @@ "start": 219, "end": 230 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -743,9 +727,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -784,9 +766,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -827,9 +807,7 @@ "start": 329, "end": 340 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -993,9 +971,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json index 75bad41ec96b..4b099fb76f94 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json @@ -77,9 +77,7 @@ "start": 428, "end": 429 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -115,9 +113,7 @@ "start": 503, "end": 514 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -281,9 +277,7 @@ "start": 603, "end": 604 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -319,9 +313,7 @@ "start": 678, "end": 689 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json index 4de9cddcb5c1..bc64f7c222b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json @@ -77,9 +77,7 @@ "start": 638, "end": 639 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -115,9 +113,7 @@ "start": 655, "end": 666 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -245,9 +241,7 @@ "start": 714, "end": 715 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -283,9 +277,7 @@ "start": 731, "end": 742 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -414,9 +406,7 @@ "start": 799, "end": 800 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -452,9 +442,7 @@ "start": 820, "end": 831 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorTagOnClassConstructor.json b/crates/swc_ecma_parser/tests/tsc/constructorTagOnClassConstructor.json index 9384178128ae..d0e5fd1934dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorTagOnClassConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorTagOnClassConstructor.json @@ -77,9 +77,7 @@ "start": 155, "end": 166 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorTagOnNestedBinaryExpression.json b/crates/swc_ecma_parser/tests/tsc/constructorTagOnNestedBinaryExpression.json index fffea0bc38be..857174463e2b 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorTagOnNestedBinaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorTagOnNestedBinaryExpression.json @@ -109,9 +109,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json b/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json index 9adfcce32d5d..5378cb1bdac1 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json @@ -47,9 +47,7 @@ "start": 141, "end": 144 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "params": [], "decorators": [], @@ -98,9 +96,7 @@ "start": 154, "end": 157 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -174,9 +170,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" } }, "arguments": [], @@ -189,9 +183,7 @@ "start": 187, "end": 190 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/constructorTagWithThisTag.json b/crates/swc_ecma_parser/tests/tsc/constructorTagWithThisTag.json index 0d3781783bea..bbd43dcc837d 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorTagWithThisTag.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorTagWithThisTag.json @@ -65,9 +65,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -96,9 +94,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructorWithAssignableReturnExpression.json b/crates/swc_ecma_parser/tests/tsc/constructorWithAssignableReturnExpression.json index 4a41bdfa1088..ad86eed32966 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorWithAssignableReturnExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorWithAssignableReturnExpression.json @@ -38,9 +38,7 @@ "start": 126, "end": 137 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -111,9 +109,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -154,9 +150,7 @@ "start": 198, "end": 209 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -227,9 +221,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -270,9 +262,7 @@ "start": 279, "end": 290 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -304,9 +294,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -365,9 +353,7 @@ "start": 346, "end": 347 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -418,9 +404,7 @@ "start": 356, "end": 367 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -452,9 +436,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -543,9 +525,7 @@ "start": 432, "end": 433 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -596,9 +576,7 @@ "start": 442, "end": 453 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -630,9 +608,7 @@ "start": 475, "end": 476 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "TsTypeAssertion", diff --git a/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json b/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json index b2b8ec16a07a..bab7377d2f7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorWithExpressionLessReturn.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -103,9 +101,7 @@ "start": 70, "end": 71 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -146,9 +142,7 @@ "start": 85, "end": 96 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -212,9 +206,7 @@ "start": 140, "end": 151 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -315,9 +307,7 @@ "start": 214, "end": 225 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json b/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json index 462e53d2e34e..f57b1e9c8978 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualIntersectionType.json @@ -263,9 +263,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -311,9 +309,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualThisType.json b/crates/swc_ecma_parser/tests/tsc/contextualThisType.json index 5f8e385d2e94..022d6642a5bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualThisType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualThisType.json @@ -222,9 +222,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "params": [ { @@ -347,9 +345,7 @@ "start": 132, "end": 133 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/contextualThisTypeInJavascript.json b/crates/swc_ecma_parser/tests/tsc/contextualThisTypeInJavascript.json index db09292855f5..ac5108aa7147 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualThisTypeInJavascript.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualThisTypeInJavascript.json @@ -47,9 +47,7 @@ "start": 97, "end": 101 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 110, "end": 116 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [], "decorators": [], @@ -127,9 +123,7 @@ "start": 148, "end": 152 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -158,9 +152,7 @@ "start": 167, "end": 173 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } } }, @@ -189,9 +181,7 @@ "start": 188, "end": 195 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json index acd7058ee7aa..8c116ec9478c 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json @@ -77,9 +77,7 @@ "start": 178, "end": 179 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -135,9 +133,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -240,9 +236,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -298,9 +292,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -360,9 +352,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -425,9 +415,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -496,9 +484,7 @@ "start": 503, "end": 504 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -554,9 +540,7 @@ "start": 532, "end": 533 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json index c3a56679916b..f244524d4848 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json @@ -2100,9 +2100,7 @@ "start": 839, "end": 842 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2272,9 +2270,7 @@ "start": 885, "end": 888 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, @@ -2327,9 +2323,7 @@ "start": 901, "end": 904 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "async": false, @@ -2659,9 +2653,7 @@ "start": 1054, "end": 1057 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, @@ -2714,9 +2706,7 @@ "start": 1080, "end": 1083 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "async": false, @@ -2769,9 +2759,7 @@ "start": 1106, "end": 1109 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json index 5f098fcca3f5..f3a09403900c 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json @@ -510,9 +510,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -709,9 +707,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -731,9 +727,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json index e6ba4124999b..f86d6526dbc7 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeCallSignatures.json @@ -587,9 +587,7 @@ "start": 960, "end": 968 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -731,9 +729,7 @@ "start": 1084, "end": 1092 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -992,9 +988,7 @@ "start": 1354, "end": 1362 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1136,9 +1130,7 @@ "start": 1490, "end": 1498 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json index 7c27d5687a90..1a402bf358de 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json @@ -743,9 +743,7 @@ "start": 1683, "end": 1684 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ArrowFunctionExpression", @@ -882,9 +880,7 @@ "start": 1786, "end": 1789 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -1021,9 +1017,7 @@ "start": 1950, "end": 1953 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -1134,9 +1128,7 @@ "start": 2035, "end": 2036 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ArrowFunctionExpression", @@ -1187,9 +1179,7 @@ "start": 2045, "end": 2053 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1300,9 +1290,7 @@ "start": 2149, "end": 2150 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ArrowFunctionExpression", @@ -1879,9 +1867,7 @@ "start": 2824, "end": 2832 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json index 150fc7cc8938..d2d3cb4f1a54 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json @@ -1192,9 +1192,7 @@ "start": 949, "end": 967 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" }, "value": { "type": "StringLiteral", @@ -1214,9 +1212,7 @@ "start": 982, "end": 998 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" }, "value": { "type": "ArrowFunctionExpression", @@ -1262,9 +1258,7 @@ "start": 1011, "end": 1040 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" }, "value": { "type": "ArrowFunctionExpression", @@ -1310,9 +1304,7 @@ "start": 1055, "end": 1069 }, - "ctxt": 0, - "value": "methodOnlyInI1", - "optional": false + "value": "methodOnlyInI1" }, "value": { "type": "ArrowFunctionExpression", @@ -1358,9 +1350,7 @@ "start": 1083, "end": 1099 }, - "ctxt": 0, - "value": "propertyOnlyInI1", - "optional": false + "value": "propertyOnlyInI1" }, "value": { "type": "StringLiteral", @@ -1503,9 +1493,7 @@ "start": 1168, "end": 1186 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" }, "value": { "type": "StringLiteral", @@ -1525,9 +1513,7 @@ "start": 1201, "end": 1217 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" }, "value": { "type": "ArrowFunctionExpression", @@ -1573,9 +1559,7 @@ "start": 1230, "end": 1259 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" }, "value": { "type": "ArrowFunctionExpression", @@ -1621,9 +1605,7 @@ "start": 1274, "end": 1288 }, - "ctxt": 0, - "value": "methodOnlyInI2", - "optional": false + "value": "methodOnlyInI2" }, "value": { "type": "ArrowFunctionExpression", @@ -1669,9 +1651,7 @@ "start": 1302, "end": 1318 }, - "ctxt": 0, - "value": "propertyOnlyInI2", - "optional": false + "value": "propertyOnlyInI2" }, "value": { "type": "StringLiteral", @@ -1814,9 +1794,7 @@ "start": 1399, "end": 1417 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" }, "value": { "type": "StringLiteral", @@ -1836,9 +1814,7 @@ "start": 1432, "end": 1448 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" }, "value": { "type": "ArrowFunctionExpression", @@ -1884,9 +1860,7 @@ "start": 1461, "end": 1490 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" }, "value": { "type": "ArrowFunctionExpression", @@ -1932,9 +1906,7 @@ "start": 1504, "end": 1518 }, - "ctxt": 0, - "value": "methodOnlyInI1", - "optional": false + "value": "methodOnlyInI1" }, "value": { "type": "ArrowFunctionExpression", @@ -1980,9 +1952,7 @@ "start": 1532, "end": 1548 }, - "ctxt": 0, - "value": "propertyOnlyInI1", - "optional": false + "value": "propertyOnlyInI1" }, "value": { "type": "StringLiteral", @@ -2002,9 +1972,7 @@ "start": 1563, "end": 1577 }, - "ctxt": 0, - "value": "methodOnlyInI2", - "optional": false + "value": "methodOnlyInI2" }, "value": { "type": "ArrowFunctionExpression", @@ -2050,9 +2018,7 @@ "start": 1591, "end": 1607 }, - "ctxt": 0, - "value": "propertyOnlyInI2", - "optional": false + "value": "propertyOnlyInI2" }, "value": { "type": "StringLiteral", @@ -2256,9 +2222,7 @@ "start": 1702, "end": 1720 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" }, "value": { "type": "StringLiteral", @@ -2278,9 +2242,7 @@ "start": 1739, "end": 1755 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" }, "value": { "type": "ArrowFunctionExpression", @@ -2326,9 +2288,7 @@ "start": 1772, "end": 1801 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" }, "value": { "type": "ArrowFunctionExpression", @@ -2374,9 +2334,7 @@ "start": 1820, "end": 1834 }, - "ctxt": 0, - "value": "methodOnlyInI1", - "optional": false + "value": "methodOnlyInI1" }, "value": { "type": "ArrowFunctionExpression", @@ -2422,9 +2380,7 @@ "start": 1852, "end": 1868 }, - "ctxt": 0, - "value": "propertyOnlyInI1", - "optional": false + "value": "propertyOnlyInI1" }, "value": { "type": "StringLiteral", @@ -2456,9 +2412,7 @@ "start": 1911, "end": 1929 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" }, "value": { "type": "StringLiteral", @@ -2478,9 +2432,7 @@ "start": 1948, "end": 1964 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" }, "value": { "type": "ArrowFunctionExpression", @@ -2526,9 +2478,7 @@ "start": 1981, "end": 2010 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" }, "value": { "type": "ArrowFunctionExpression", @@ -2574,9 +2524,7 @@ "start": 2029, "end": 2043 }, - "ctxt": 0, - "value": "methodOnlyInI2", - "optional": false + "value": "methodOnlyInI2" }, "value": { "type": "ArrowFunctionExpression", @@ -2622,9 +2570,7 @@ "start": 2061, "end": 2077 }, - "ctxt": 0, - "value": "propertyOnlyInI2", - "optional": false + "value": "propertyOnlyInI2" }, "value": { "type": "StringLiteral", @@ -2656,9 +2602,7 @@ "start": 2128, "end": 2146 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" }, "value": { "type": "StringLiteral", @@ -2678,9 +2622,7 @@ "start": 2165, "end": 2181 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" }, "value": { "type": "ArrowFunctionExpression", @@ -2726,9 +2668,7 @@ "start": 2198, "end": 2227 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" }, "value": { "type": "ArrowFunctionExpression", @@ -2774,9 +2714,7 @@ "start": 2245, "end": 2259 }, - "ctxt": 0, - "value": "methodOnlyInI1", - "optional": false + "value": "methodOnlyInI1" }, "value": { "type": "ArrowFunctionExpression", @@ -2822,9 +2760,7 @@ "start": 2277, "end": 2293 }, - "ctxt": 0, - "value": "propertyOnlyInI1", - "optional": false + "value": "propertyOnlyInI1" }, "value": { "type": "StringLiteral", @@ -2844,9 +2780,7 @@ "start": 2312, "end": 2326 }, - "ctxt": 0, - "value": "methodOnlyInI2", - "optional": false + "value": "methodOnlyInI2" }, "value": { "type": "ArrowFunctionExpression", @@ -2892,9 +2826,7 @@ "start": 2344, "end": 2360 }, - "ctxt": 0, - "value": "propertyOnlyInI2", - "optional": false + "value": "propertyOnlyInI2" }, "value": { "type": "StringLiteral", @@ -3606,9 +3538,7 @@ "start": 2770, "end": 2801 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", @@ -3705,9 +3635,7 @@ "start": 2833, "end": 2839 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -3764,9 +3692,7 @@ "start": 2875, "end": 2902 }, - "ctxt": 0, - "value": "commonPropertyDifferentType", - "optional": false + "value": "commonPropertyDifferentType" }, "value": { "type": "StringLiteral", @@ -3877,9 +3803,7 @@ "start": 2966, "end": 2997 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", @@ -3976,9 +3900,7 @@ "start": 3029, "end": 3039 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -4035,9 +3957,7 @@ "start": 3073, "end": 3100 }, - "ctxt": 0, - "value": "commonPropertyDifferentType", - "optional": false + "value": "commonPropertyDifferentType" }, "value": { "type": "NumericLiteral", @@ -4240,9 +4160,7 @@ "start": 3202, "end": 3233 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", @@ -4339,9 +4257,7 @@ "start": 3269, "end": 3275 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -4398,9 +4314,7 @@ "start": 3321, "end": 3348 }, - "ctxt": 0, - "value": "commonPropertyDifferentType", - "optional": false + "value": "commonPropertyDifferentType" }, "value": { "type": "StringLiteral", @@ -4432,9 +4346,7 @@ "start": 3396, "end": 3427 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", @@ -4531,9 +4443,7 @@ "start": 3463, "end": 3473 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -4590,9 +4500,7 @@ "start": 3519, "end": 3546 }, - "ctxt": 0, - "value": "commonPropertyDifferentType", - "optional": false + "value": "commonPropertyDifferentType" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json index 7fca5cd61e27..78f56c284b36 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeObjectLiteral.json @@ -784,9 +784,7 @@ "start": 832, "end": 836 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -914,9 +912,7 @@ "start": 905, "end": 909 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -1115,9 +1111,7 @@ "start": 1003, "end": 1007 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -1316,9 +1310,7 @@ "start": 1105, "end": 1109 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -1339,9 +1331,7 @@ "start": 1128, "end": 1136 }, - "ctxt": 0, - "value": "anotherP", - "optional": false + "value": "anotherP" }, "value": { "type": "Identifier", @@ -1575,9 +1565,7 @@ "start": 1245, "end": 1249 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -1598,9 +1586,7 @@ "start": 1268, "end": 1276 }, - "ctxt": 0, - "value": "anotherP", - "optional": false + "value": "anotherP" }, "value": { "type": "Identifier", @@ -1834,9 +1820,7 @@ "start": 1385, "end": 1389 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "Identifier", @@ -1857,9 +1841,7 @@ "start": 1408, "end": 1416 }, - "ctxt": 0, - "value": "anotherP", - "optional": false + "value": "anotherP" }, "value": { "type": "Identifier", @@ -1880,9 +1862,7 @@ "start": 1427, "end": 1436 }, - "ctxt": 0, - "value": "anotherP1", - "optional": false + "value": "anotherP1" }, "value": { "type": "Identifier", @@ -2522,9 +2502,7 @@ "start": 1748, "end": 1779 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", @@ -2621,9 +2599,7 @@ "start": 1811, "end": 1817 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -2771,9 +2747,7 @@ "start": 1893, "end": 1924 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", @@ -2870,9 +2844,7 @@ "start": 1956, "end": 1966 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -3083,9 +3055,7 @@ "start": 2088, "end": 2119 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json b/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json index 02da9fa9e54d..dac3b90e60d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json @@ -79,9 +79,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -99,9 +97,7 @@ "start": 243, "end": 249 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -121,9 +117,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -205,9 +199,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -225,9 +217,7 @@ "start": 288, "end": 294 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -247,9 +237,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -324,9 +312,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -363,9 +349,7 @@ "start": 372, "end": 383 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -408,9 +392,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -428,9 +410,7 @@ "start": 453, "end": 459 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -450,9 +430,7 @@ "start": 481, "end": 482 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -516,9 +494,7 @@ "start": 511, "end": 515 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" }, "function": { "params": [], @@ -568,9 +544,7 @@ "start": 533, "end": 534 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -588,9 +562,7 @@ "start": 551, "end": 557 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -610,9 +582,7 @@ "start": 579, "end": 580 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -715,9 +685,7 @@ "start": 673, "end": 674 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -735,9 +703,7 @@ "start": 683, "end": 689 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -757,9 +723,7 @@ "start": 703, "end": 704 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -834,9 +798,7 @@ "start": 722, "end": 723 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -881,9 +843,7 @@ "start": 758, "end": 765 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -892,9 +852,7 @@ "start": 766, "end": 767 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -912,9 +870,7 @@ "start": 776, "end": 782 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -934,9 +890,7 @@ "start": 796, "end": 797 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -1017,9 +971,7 @@ "start": 814, "end": 821 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1028,9 +980,7 @@ "start": 822, "end": 823 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1075,9 +1025,7 @@ "start": 890, "end": 899 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1086,9 +1034,7 @@ "start": 900, "end": 901 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1106,9 +1052,7 @@ "start": 910, "end": 916 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -1128,9 +1072,7 @@ "start": 930, "end": 931 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -1211,9 +1153,7 @@ "start": 947, "end": 956 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1222,9 +1162,7 @@ "start": 957, "end": 958 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1297,9 +1235,7 @@ "start": 1029, "end": 1038 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -1317,9 +1253,7 @@ "start": 1047, "end": 1053 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -1339,9 +1273,7 @@ "start": 1067, "end": 1068 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -1423,9 +1355,7 @@ "start": 1190, "end": 1197 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -1443,9 +1373,7 @@ "start": 1206, "end": 1212 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" }, "value": { "type": "StringLiteral", @@ -1465,9 +1393,7 @@ "start": 1226, "end": 1227 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json index afd127b8b695..b94e2bbaf329 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json @@ -177,9 +177,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", @@ -330,9 +328,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", @@ -391,9 +387,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json index 8a5ebd4c89d1..224e8d0934f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json @@ -126,9 +126,7 @@ "start": 145, "end": 148 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", @@ -323,9 +321,7 @@ "start": 255, "end": 258 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", @@ -468,9 +464,7 @@ "start": 339, "end": 342 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", @@ -672,9 +666,7 @@ "start": 455, "end": 458 }, - "ctxt": 0, - "value": "key", - "optional": false + "value": "key" }, "value": { "type": "StringLiteral", @@ -795,9 +787,7 @@ "start": 517, "end": 526 }, - "ctxt": 0, - "value": "_runnable", - "optional": false + "value": "_runnable" }, "value": null, "typeAnnotation": null, @@ -2765,9 +2755,7 @@ "start": 1746, "end": 1749 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -2815,9 +2803,7 @@ "start": 1781, "end": 1787 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -2872,9 +2858,7 @@ "start": 1798, "end": 1817 }, - "ctxt": 0, - "value": "isApplicationScoped", - "optional": false + "value": "isApplicationScoped" } } }, @@ -2893,9 +2877,7 @@ "start": 1828, "end": 1831 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json index 45c9e2eb1cb6..d54a0bd07e62 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json @@ -205,9 +205,7 @@ "start": 104, "end": 112 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -374,9 +372,7 @@ "start": 169, "end": 177 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -551,9 +547,7 @@ "start": 236, "end": 244 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -750,9 +744,7 @@ "start": 323, "end": 327 }, - "ctxt": 0, - "value": "show", - "optional": false + "value": "show" }, "value": { "type": "ArrowFunctionExpression", @@ -803,9 +795,7 @@ "start": 336, "end": 344 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1420,9 +1410,7 @@ "start": 635, "end": 649 }, - "ctxt": 0, - "value": "stringIdentity", - "optional": false + "value": "stringIdentity" }, "value": { "type": "AssignmentPattern", @@ -1521,9 +1509,7 @@ "start": 689, "end": 703 }, - "ctxt": 0, - "value": "stringIdentity", - "optional": false + "value": "stringIdentity" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json index 429ac0f0b745..5b1e469d1005 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json @@ -147,9 +147,7 @@ "start": 90, "end": 94 }, - "ctxt": 0, - "value": "show", - "optional": false + "value": "show" }, "value": { "type": "AssignmentPattern", @@ -658,9 +656,7 @@ "start": 291, "end": 297 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "AssignmentPattern", @@ -694,9 +690,7 @@ "start": 316, "end": 320 }, - "ctxt": 0, - "value": "show", - "optional": false + "value": "show" }, "value": { "type": "ArrowFunctionExpression", @@ -910,9 +904,7 @@ "start": 420, "end": 434 }, - "ctxt": 0, - "value": "stringIdentity", - "optional": false + "value": "stringIdentity" }, "value": { "type": "AssignmentPattern", @@ -973,9 +965,7 @@ "start": 452, "end": 458 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -1028,9 +1018,7 @@ "start": 481, "end": 495 }, - "ctxt": 0, - "value": "stringIdentity", - "optional": false + "value": "stringIdentity" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json index 84c8473a5f36..175790dbff70 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json @@ -362,9 +362,7 @@ "start": 236, "end": 243 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ @@ -437,9 +435,7 @@ "start": 267, "end": 274 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -479,9 +475,7 @@ "start": 306, "end": 313 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [ @@ -554,9 +548,7 @@ "start": 337, "end": 344 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { @@ -679,9 +671,7 @@ "start": 435, "end": 442 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "value": { "type": "ArrowFunctionExpression", @@ -746,9 +736,7 @@ "start": 472, "end": 479 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -792,9 +780,7 @@ "start": 511, "end": 518 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "ArrowFunctionExpression", @@ -859,9 +845,7 @@ "start": 548, "end": 555 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { @@ -988,9 +972,7 @@ "start": 646, "end": 653 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "value": { "type": "FunctionExpression", @@ -1065,9 +1047,7 @@ "start": 689, "end": 696 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -1111,9 +1091,7 @@ "start": 728, "end": 735 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "FunctionExpression", @@ -1188,9 +1166,7 @@ "start": 771, "end": 778 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json index b09b7c755cff..7038642b4ee8 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json @@ -425,9 +425,7 @@ "start": 265, "end": 272 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ @@ -500,9 +498,7 @@ "start": 296, "end": 303 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -542,9 +538,7 @@ "start": 328, "end": 335 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [ @@ -617,9 +611,7 @@ "start": 359, "end": 366 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { @@ -742,9 +734,7 @@ "start": 450, "end": 457 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "value": { "type": "ArrowFunctionExpression", @@ -809,9 +799,7 @@ "start": 487, "end": 494 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -855,9 +843,7 @@ "start": 519, "end": 526 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "ArrowFunctionExpression", @@ -922,9 +908,7 @@ "start": 556, "end": 563 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { @@ -1051,9 +1035,7 @@ "start": 647, "end": 654 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "value": { "type": "FunctionExpression", @@ -1128,9 +1110,7 @@ "start": 690, "end": 697 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -1174,9 +1154,7 @@ "start": 722, "end": 729 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "FunctionExpression", @@ -1251,9 +1229,7 @@ "start": 765, "end": 772 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json index 7730bfe6198b..c94805a543e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedFunctionExpressionsAndReturnAnnotations.json @@ -259,9 +259,7 @@ "start": 185, "end": 191 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -524,9 +522,7 @@ "start": 297, "end": 304 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json index 1ced8f926d9e..b48e43c8a4f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json @@ -999,9 +999,7 @@ "start": 471, "end": 476 }, - "ctxt": 0, - "value": "every", - "optional": false + "value": "every" } }, "arguments": [ @@ -1190,9 +1188,7 @@ "start": 519, "end": 524 }, - "ctxt": 0, - "value": "every", - "optional": false + "value": "every" } }, "arguments": [ @@ -1380,9 +1376,7 @@ "start": 584, "end": 588 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -1569,9 +1563,7 @@ "start": 644, "end": 647 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -1773,9 +1765,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "NumericLiteral", @@ -1894,9 +1884,7 @@ "start": 769, "end": 770 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -2001,9 +1989,7 @@ "start": 797, "end": 798 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -2053,9 +2039,7 @@ "start": 813, "end": 814 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -2160,9 +2144,7 @@ "start": 840, "end": 841 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": { "type": "NumericLiteral", @@ -2432,9 +2414,7 @@ "start": 948, "end": 949 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [ @@ -2477,9 +2457,7 @@ "start": 957, "end": 958 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json index 33fe4bdd221d..ce156546db5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json @@ -999,9 +999,7 @@ "start": 479, "end": 484 }, - "ctxt": 0, - "value": "every", - "optional": false + "value": "every" } }, "arguments": [ @@ -1190,9 +1188,7 @@ "start": 527, "end": 532 }, - "ctxt": 0, - "value": "every", - "optional": false + "value": "every" } }, "arguments": [ @@ -1380,9 +1376,7 @@ "start": 592, "end": 596 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -1569,9 +1563,7 @@ "start": 652, "end": 655 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -1773,9 +1765,7 @@ "start": 744, "end": 745 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "NumericLiteral", @@ -1894,9 +1884,7 @@ "start": 777, "end": 778 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -2001,9 +1989,7 @@ "start": 805, "end": 806 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -2053,9 +2039,7 @@ "start": 821, "end": 822 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -2160,9 +2144,7 @@ "start": 848, "end": 849 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": { "type": "NumericLiteral", @@ -2432,9 +2414,7 @@ "start": 956, "end": 957 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [ @@ -2477,9 +2457,7 @@ "start": 965, "end": 966 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json index 91d2611c3d26..1b785f6fb99b 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json @@ -355,9 +355,7 @@ "start": 223, "end": 230 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [ { @@ -429,9 +427,7 @@ "start": 254, "end": 261 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -460,9 +456,7 @@ "start": 287, "end": 294 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [ { @@ -534,9 +528,7 @@ "start": 318, "end": 325 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { @@ -640,9 +632,7 @@ "start": 403, "end": 410 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "value": { "type": "ArrowFunctionExpression", @@ -707,9 +697,7 @@ "start": 439, "end": 446 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -739,9 +727,7 @@ "start": 472, "end": 479 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "ArrowFunctionExpression", @@ -806,9 +792,7 @@ "start": 508, "end": 515 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { @@ -913,9 +897,7 @@ "start": 593, "end": 600 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "value": { "type": "FunctionExpression", @@ -990,9 +972,7 @@ "start": 635, "end": 642 }, - "ctxt": 0, - "value": "numProp", - "optional": false + "value": "numProp" } }, "right": { @@ -1022,9 +1002,7 @@ "start": 668, "end": 675 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "value": { "type": "FunctionExpression", @@ -1099,9 +1077,7 @@ "start": 710, "end": 717 }, - "ctxt": 0, - "value": "strProp", - "optional": false + "value": "strProp" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json index 5233407a4f03..badb1fa08885 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json @@ -1784,9 +1784,7 @@ "start": 1176, "end": 1177 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1891,9 +1889,7 @@ "start": 1240, "end": 1241 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -2089,9 +2085,7 @@ "start": 1337, "end": 1338 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2148,9 +2142,7 @@ "start": 1365, "end": 1366 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2253,9 +2245,7 @@ "start": 1422, "end": 1423 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -3225,9 +3215,7 @@ "start": 1983, "end": 1987 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -3296,9 +3284,7 @@ "start": 2028, "end": 2031 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -3340,9 +3326,7 @@ "start": 2062, "end": 2065 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -3663,9 +3647,7 @@ "start": 2188, "end": 2192 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -3734,9 +3716,7 @@ "start": 2233, "end": 2236 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -3778,9 +3758,7 @@ "start": 2318, "end": 2321 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -4087,9 +4065,7 @@ "start": 2484, "end": 2488 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -4158,9 +4134,7 @@ "start": 2529, "end": 2532 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -4202,9 +4176,7 @@ "start": 2605, "end": 2608 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -4511,9 +4483,7 @@ "start": 2764, "end": 2768 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -4618,9 +4588,7 @@ "start": 2824, "end": 2827 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -4662,9 +4630,7 @@ "start": 2916, "end": 2919 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -5012,9 +4978,7 @@ "start": 3112, "end": 3116 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -5083,9 +5047,7 @@ "start": 3157, "end": 3160 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -5127,9 +5089,7 @@ "start": 3191, "end": 3194 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -5477,9 +5437,7 @@ "start": 3327, "end": 3331 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -5548,9 +5506,7 @@ "start": 3372, "end": 3375 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -5592,9 +5548,7 @@ "start": 3406, "end": 3409 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -5943,9 +5897,7 @@ "start": 3545, "end": 3548 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "property": { @@ -5954,9 +5906,7 @@ "start": 3549, "end": 3553 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -6031,9 +5981,7 @@ "start": 3596, "end": 3599 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "property": { @@ -6042,9 +5990,7 @@ "start": 3600, "end": 3603 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -6092,9 +6038,7 @@ "start": 3636, "end": 3639 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "property": { @@ -6103,9 +6047,7 @@ "start": 3640, "end": 3643 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -6454,9 +6396,7 @@ "start": 3770, "end": 3773 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "property": { @@ -6465,9 +6405,7 @@ "start": 3774, "end": 3778 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -6542,9 +6480,7 @@ "start": 3821, "end": 3824 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "property": { @@ -6553,9 +6489,7 @@ "start": 3825, "end": 3828 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -6603,9 +6537,7 @@ "start": 3901, "end": 3904 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "property": { @@ -6614,9 +6546,7 @@ "start": 3905, "end": 3908 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -6940,9 +6870,7 @@ "start": 4070, "end": 4074 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -7033,9 +6961,7 @@ "start": 4115, "end": 4119 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -7105,9 +7031,7 @@ "start": 4160, "end": 4163 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -7167,9 +7091,7 @@ "start": 4200, "end": 4203 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -7470,9 +7392,7 @@ "start": 4370, "end": 4374 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "definite": false @@ -7548,9 +7468,7 @@ "start": 4414, "end": 4417 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -7592,9 +7510,7 @@ "start": 4448, "end": 4451 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -7974,9 +7890,7 @@ "start": 4607, "end": 4610 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -8018,9 +7932,7 @@ "start": 4641, "end": 4644 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -8302,9 +8214,7 @@ "start": 4748, "end": 4752 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "Identifier", @@ -8405,9 +8315,7 @@ "start": 4800, "end": 4803 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -8449,9 +8357,7 @@ "start": 4834, "end": 4837 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -8823,9 +8729,7 @@ "start": 4999, "end": 5002 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -8883,9 +8787,7 @@ "start": 5035, "end": 5038 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -8941,9 +8843,7 @@ "start": 5073, "end": 5084 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -9068,9 +8968,7 @@ "start": 5159, "end": 5160 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -9285,9 +9183,7 @@ "start": 5315, "end": 5316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -9377,9 +9273,7 @@ "start": 5372, "end": 5383 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -9504,9 +9398,7 @@ "start": 5458, "end": 5459 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -9721,9 +9613,7 @@ "start": 5690, "end": 5691 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -9806,9 +9696,7 @@ "start": 5754, "end": 5755 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -10272,9 +10160,7 @@ "start": 6017, "end": 6020 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -10349,9 +10235,7 @@ "start": 6052, "end": 6055 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -10678,9 +10562,7 @@ "start": 6265, "end": 6269 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -10764,9 +10646,7 @@ "start": 6311, "end": 6318 }, - "ctxt": 0, - "value": "payload", - "optional": false + "value": "payload" } }, "definite": false @@ -10846,9 +10726,7 @@ "start": 6365, "end": 6372 }, - "ctxt": 0, - "value": "payload", - "optional": false + "value": "payload" } }, "definite": false @@ -11188,9 +11066,7 @@ "start": 6581, "end": 6583 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "value": { "type": "ArrowFunctionExpression", @@ -11303,9 +11179,7 @@ "start": 6626, "end": 6628 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -11347,9 +11221,7 @@ "start": 6723, "end": 6732 }, - "ctxt": 0, - "value": "isDefined", - "optional": false + "value": "isDefined" }, "function": { "params": [ @@ -11601,9 +11473,7 @@ "start": 6839, "end": 6849 }, - "ctxt": 0, - "value": "testNumber", - "optional": false + "value": "testNumber" }, "value": null, "typeAnnotation": { @@ -11660,9 +11530,7 @@ "start": 6874, "end": 6877 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -11736,9 +11604,7 @@ "start": 6909, "end": 6918 }, - "ctxt": 0, - "value": "isDefined", - "optional": false + "value": "isDefined" } }, "arguments": [ @@ -11763,9 +11629,7 @@ "start": 6924, "end": 6934 }, - "ctxt": 0, - "value": "testNumber", - "optional": false + "value": "testNumber" } } } @@ -11860,9 +11724,7 @@ "start": 6987, "end": 6997 }, - "ctxt": 0, - "value": "testNumber", - "optional": false + "value": "testNumber" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json index 8443970af662..93d10367e5ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json @@ -170,9 +170,7 @@ "start": 138, "end": 149 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -267,9 +265,7 @@ "start": 215, "end": 226 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -485,9 +481,7 @@ "start": 357, "end": 368 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -582,9 +576,7 @@ "start": 439, "end": 450 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json index 9fcf97db2756..9465fa13dcab 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json @@ -203,9 +203,7 @@ "start": 64, "end": 70 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -340,9 +338,7 @@ "start": 110, "end": 113 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -391,9 +387,7 @@ "start": 123, "end": 129 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -803,9 +797,7 @@ "start": 316, "end": 320 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" } }, "consequent": { @@ -887,9 +879,7 @@ "start": 343, "end": 348 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json index d115c721dd66..55a3d80a2733 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json @@ -960,9 +960,7 @@ "start": 561, "end": 567 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1046,9 +1044,7 @@ "start": 621, "end": 627 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1174,9 +1170,7 @@ "start": 706, "end": 712 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json index 376ebfe4f633..f5e8337e395c 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json @@ -55,9 +55,7 @@ "start": 82, "end": 87 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" }, "value": { "type": "StringLiteral", @@ -249,9 +247,7 @@ "start": 215, "end": 218 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -324,9 +320,7 @@ "start": 308, "end": 313 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" }, "value": { "type": "StringLiteral", @@ -623,9 +617,7 @@ "start": 524, "end": 529 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" }, "value": { "type": "StringLiteral", @@ -918,9 +910,7 @@ "start": 726, "end": 731 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" }, "value": { "type": "StringLiteral", @@ -1404,9 +1394,7 @@ "start": 1023, "end": 1029 }, - "ctxt": 0, - "value": "window", - "optional": false + "value": "window" } }, "right": { @@ -1928,9 +1916,7 @@ "start": 1340, "end": 1346 }, - "ctxt": 0, - "value": "window", - "optional": false + "value": "window" } }, "right": { @@ -2452,9 +2438,7 @@ "start": 1658, "end": 1664 }, - "ctxt": 0, - "value": "window", - "optional": false + "value": "window" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json b/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json index dd9e5cab3a56..09ff75d6777b 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json @@ -266,9 +266,7 @@ "start": 150, "end": 161 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -557,9 +555,7 @@ "start": 293, "end": 304 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -754,9 +750,7 @@ "start": 393, "end": 404 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -951,9 +945,7 @@ "start": 495, "end": 506 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -1425,9 +1417,7 @@ "start": 716, "end": 727 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -1570,9 +1560,7 @@ "start": 806, "end": 813 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1867,9 +1855,7 @@ "start": 949, "end": 960 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowDeleteOperator.json b/crates/swc_ecma_parser/tests/tsc/controlFlowDeleteOperator.json index 58bd89830905..7b2faa56d39e 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowDeleteOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowDeleteOperator.json @@ -194,9 +194,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -242,9 +240,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -276,9 +272,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -317,9 +311,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -368,9 +360,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -412,9 +402,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -446,9 +434,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -487,9 +473,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -529,9 +513,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -564,9 +546,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -598,9 +578,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json b/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json index abd35b96b4f1..06785f5474ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json @@ -1235,9 +1235,7 @@ "start": 542, "end": 543 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1400,9 +1398,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1573,9 +1569,7 @@ "start": 668, "end": 669 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -1774,9 +1768,7 @@ "start": 753, "end": 754 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1939,9 +1931,7 @@ "start": 814, "end": 815 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2112,9 +2102,7 @@ "start": 881, "end": 882 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -2762,9 +2750,7 @@ "start": 1148, "end": 1149 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json index 9e8296625bfc..4a0aebc96229 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json @@ -892,9 +892,7 @@ "start": 574, "end": 580 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json index 654269c94859..224bfe71ad34 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json @@ -97,9 +97,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json index 0b228eb0a137..33e5ed18ff48 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json @@ -269,9 +269,7 @@ "start": 148, "end": 153 }, - "ctxt": 0, - "value": "works", - "optional": false + "value": "works" } }, "property": { @@ -280,9 +278,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -354,9 +350,7 @@ "start": 195, "end": 199 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -416,9 +410,7 @@ "start": 286, "end": 291 }, - "ctxt": 0, - "value": "works", - "optional": false + "value": "works" } } }, @@ -498,9 +490,7 @@ "start": 329, "end": 333 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -555,9 +545,7 @@ "start": 411, "end": 416 }, - "ctxt": 0, - "value": "works", - "optional": false + "value": "works" } }, "property": { @@ -566,9 +554,7 @@ "start": 417, "end": 421 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json index 78fee25d2a80..7665af2fcac2 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json @@ -758,9 +758,7 @@ "start": 586, "end": 597 }, - "ctxt": 0, - "value": "subScenario", - "optional": false + "value": "subScenario" }, "value": { "type": "Identifier", @@ -781,9 +779,7 @@ "start": 612, "end": 627 }, - "ctxt": 0, - "value": "commandLineArgs", - "optional": false + "value": "commandLineArgs" }, "value": { "type": "BinaryExpression", @@ -838,9 +834,7 @@ "start": 642, "end": 657 }, - "ctxt": 0, - "value": "commandLineArgs", - "optional": false + "value": "commandLineArgs" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowForOfStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowForOfStatement.json index 44ed15c80b0d..4cb242228e50 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowForOfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowForOfStatement.json @@ -298,9 +298,7 @@ "start": 128, "end": 141 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json index babe613679cb..1b5c82766644 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json @@ -440,9 +440,7 @@ "start": 224, "end": 230 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -696,9 +694,7 @@ "start": 354, "end": 367 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json b/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json index ec11a00d71b9..6cac701f0648 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json @@ -285,9 +285,7 @@ "start": 132, "end": 138 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -340,9 +338,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "consequent": { @@ -387,9 +383,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -398,9 +392,7 @@ "start": 191, "end": 197 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -432,9 +424,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -540,9 +530,7 @@ "start": 254, "end": 260 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -890,9 +878,7 @@ "start": 413, "end": 419 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -3398,9 +3384,7 @@ "start": 1533, "end": 1536 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3473,9 +3457,7 @@ "start": 1588, "end": 1591 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -3518,9 +3500,7 @@ "start": 1613, "end": 1616 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "right": { @@ -3569,9 +3549,7 @@ "start": 1642, "end": 1645 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -3697,9 +3675,7 @@ "start": 1723, "end": 1726 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3772,9 +3748,7 @@ "start": 1778, "end": 1781 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -3817,9 +3791,7 @@ "start": 1803, "end": 1806 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "right": { @@ -3868,9 +3840,7 @@ "start": 1832, "end": 1835 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -4322,9 +4292,7 @@ "start": 2049, "end": 2057 }, - "ctxt": 0, - "value": "testable", - "optional": false + "value": "testable" } } }, @@ -4373,9 +4341,7 @@ "start": 2078, "end": 2084 }, - "ctxt": 0, - "value": "doTest", - "optional": false + "value": "doTest" } }, "arguments": [], @@ -4895,9 +4861,7 @@ "start": 2362, "end": 2365 }, - "ctxt": 0, - "value": "off", - "optional": false + "value": "off" }, "function": { "params": [ @@ -5331,9 +5295,7 @@ "start": 2551, "end": 2554 }, - "ctxt": 0, - "value": "off", - "optional": false + "value": "off" } }, "arguments": [ @@ -5401,9 +5363,7 @@ "start": 2589, "end": 2592 }, - "ctxt": 0, - "value": "off", - "optional": false + "value": "off" } }, "arguments": [ @@ -6785,9 +6745,7 @@ "start": 3526, "end": 3527 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -7917,9 +7875,7 @@ "start": 4125, "end": 4136 }, - "ctxt": 0, - "value": "validateRow", - "optional": false + "value": "validateRow" }, "function": { "params": [ @@ -8072,9 +8028,7 @@ "start": 4194, "end": 4203 }, - "ctxt": 0, - "value": "insertRow", - "optional": false + "value": "insertRow" }, "function": { "params": [ @@ -8194,9 +8148,7 @@ "start": 4241, "end": 4252 }, - "ctxt": 0, - "value": "validateRow", - "optional": false + "value": "validateRow" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json index 13aba5046a9d..9b18e12893ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json @@ -270,9 +270,7 @@ "start": 236, "end": 242 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -515,9 +513,7 @@ "start": 399, "end": 405 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -817,9 +813,7 @@ "start": 555, "end": 561 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1354,9 +1348,7 @@ "start": 866, "end": 871 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json index 4bdc47c8aa05..d7c48eba8214 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json @@ -1017,9 +1017,7 @@ "start": 626, "end": 631 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -1657,9 +1655,7 @@ "start": 938, "end": 939 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -1771,6 +1767,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 999, + "end": 1002 + }, "left": { "type": "Identifier", "span": { @@ -1787,9 +1787,7 @@ "start": 1001, "end": 1002 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json index c0eb6d7df867..9f7860702059 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json @@ -1073,9 +1073,7 @@ "start": 593, "end": 602 }, - "ctxt": 0, - "value": "MAX_VALUE", - "optional": false + "value": "MAX_VALUE" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json index c9f3ed4562ca..ddd3d8c2f4ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json @@ -179,9 +179,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -232,9 +230,7 @@ "start": 142, "end": 153 }, - "ctxt": 0, - "value": "getFullYear", - "optional": false + "value": "getFullYear" } }, "arguments": [], @@ -332,9 +328,7 @@ "start": 218, "end": 221 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -378,9 +372,7 @@ "start": 263, "end": 269 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -434,9 +426,7 @@ "start": 301, "end": 304 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -487,9 +477,7 @@ "start": 338, "end": 349 }, - "ctxt": 0, - "value": "toPrecision", - "optional": false + "value": "toPrecision" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json index 3baa59ab5c49..c8f2814fd123 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json @@ -139,9 +139,7 @@ "start": 84, "end": 93 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -150,9 +148,7 @@ "start": 94, "end": 97 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" } }, "right": { @@ -230,9 +226,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" }, "function": { "params": [], @@ -291,9 +285,7 @@ "start": 192, "end": 195 }, - "ctxt": 0, - "value": "why", - "optional": false + "value": "why" }, "function": { "params": [], @@ -392,9 +384,7 @@ "start": 232, "end": 235 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -429,9 +419,7 @@ "start": 238, "end": 241 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" } }, "arguments": [], @@ -477,9 +465,7 @@ "start": 274, "end": 277 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -514,9 +500,7 @@ "start": 280, "end": 283 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" } }, "arguments": [], @@ -643,9 +627,7 @@ "start": 343, "end": 349 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -773,9 +755,7 @@ "start": 401, "end": 404 }, - "ctxt": 0, - "value": "why", - "optional": false + "value": "why" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json index 4256bbd0f435..2b94a0d5f335 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json @@ -285,9 +285,7 @@ "start": 219, "end": 225 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -347,9 +345,7 @@ "start": 280, "end": 286 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json index 83d8611ff49d..dfcf165c1401 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json @@ -141,9 +141,7 @@ "start": 85, "end": 91 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json index 9b15da6130d8..9c6beac2aca6 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json @@ -141,9 +141,7 @@ "start": 117, "end": 123 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -4035,9 +4033,7 @@ "start": 2365, "end": 2371 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowNullishCoalesce.json b/crates/swc_ecma_parser/tests/tsc/controlFlowNullishCoalesce.json index 0f88caf38940..2ae6f5aa91a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowNullishCoalesce.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowNullishCoalesce.json @@ -146,9 +146,7 @@ "start": 85, "end": 93 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json index 74516f1361a4..da7154f83d74 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json @@ -388,9 +388,7 @@ "start": 227, "end": 235 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -491,9 +489,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -570,9 +566,7 @@ "start": 270, "end": 278 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -727,9 +721,7 @@ "start": 311, "end": 319 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -831,9 +823,7 @@ "start": 342, "end": 343 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -909,9 +899,7 @@ "start": 354, "end": 362 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1612,9 +1600,7 @@ "start": 666, "end": 667 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -1689,9 +1675,7 @@ "start": 698, "end": 699 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -1730,9 +1714,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -1786,9 +1768,7 @@ "start": 747, "end": 748 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -1890,9 +1870,7 @@ "start": 785, "end": 786 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -1925,9 +1903,7 @@ "start": 795, "end": 796 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -2003,9 +1979,7 @@ "start": 811, "end": 812 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -2038,9 +2012,7 @@ "start": 817, "end": 818 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2315,9 +2287,7 @@ "start": 902, "end": 903 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2384,9 +2354,7 @@ "start": 928, "end": 929 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2425,9 +2393,7 @@ "start": 939, "end": 940 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2494,9 +2460,7 @@ "start": 967, "end": 968 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2529,9 +2493,7 @@ "start": 977, "end": 978 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2590,9 +2552,7 @@ "start": 990, "end": 991 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2625,9 +2585,7 @@ "start": 996, "end": 997 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2790,9 +2748,7 @@ "start": 1049, "end": 1050 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -2801,9 +2757,7 @@ "start": 1052, "end": 1053 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -2843,9 +2797,7 @@ "start": 1064, "end": 1065 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2883,9 +2835,7 @@ "start": 1092, "end": 1093 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -2894,9 +2844,7 @@ "start": 1094, "end": 1095 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -2941,9 +2889,7 @@ "start": 1112, "end": 1113 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -2952,9 +2898,7 @@ "start": 1115, "end": 1116 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -2997,9 +2941,7 @@ "start": 1142, "end": 1143 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3044,9 +2986,7 @@ "start": 1152, "end": 1153 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3055,9 +2995,7 @@ "start": 1155, "end": 1156 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -3096,9 +3034,7 @@ "start": 1165, "end": 1166 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3107,9 +3043,7 @@ "start": 1167, "end": 1168 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -3144,9 +3078,7 @@ "start": 1175, "end": 1176 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3191,9 +3123,7 @@ "start": 1181, "end": 1182 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3202,9 +3132,7 @@ "start": 1184, "end": 1185 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -3243,9 +3171,7 @@ "start": 1190, "end": 1191 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3254,9 +3180,7 @@ "start": 1192, "end": 1193 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -3517,9 +3441,7 @@ "start": 1260, "end": 1261 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3528,9 +3450,7 @@ "start": 1263, "end": 1264 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -3540,9 +3460,7 @@ "start": 1265, "end": 1266 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -3552,9 +3470,7 @@ "start": 1268, "end": 1269 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } }, @@ -3594,9 +3510,7 @@ "start": 1280, "end": 1281 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3634,9 +3548,7 @@ "start": 1290, "end": 1291 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3645,9 +3557,7 @@ "start": 1292, "end": 1293 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -3691,9 +3601,7 @@ "start": 1302, "end": 1303 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3702,9 +3610,7 @@ "start": 1304, "end": 1305 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -3713,9 +3619,7 @@ "start": 1306, "end": 1307 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -3765,9 +3669,7 @@ "start": 1316, "end": 1317 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3776,9 +3678,7 @@ "start": 1318, "end": 1319 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -3787,9 +3687,7 @@ "start": 1320, "end": 1321 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -3798,9 +3696,7 @@ "start": 1322, "end": 1323 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } }, @@ -3857,9 +3753,7 @@ "start": 1340, "end": 1341 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3868,9 +3762,7 @@ "start": 1342, "end": 1343 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -3879,9 +3771,7 @@ "start": 1344, "end": 1345 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -3890,9 +3780,7 @@ "start": 1347, "end": 1348 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } } @@ -3964,9 +3852,7 @@ "start": 1365, "end": 1366 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -3975,9 +3861,7 @@ "start": 1368, "end": 1369 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -3987,9 +3871,7 @@ "start": 1370, "end": 1371 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -3999,9 +3881,7 @@ "start": 1372, "end": 1373 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } } @@ -4073,9 +3953,7 @@ "start": 1390, "end": 1391 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4084,9 +3962,7 @@ "start": 1393, "end": 1394 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4096,9 +3972,7 @@ "start": 1395, "end": 1396 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -4108,9 +3982,7 @@ "start": 1398, "end": 1399 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } } @@ -4153,9 +4025,7 @@ "start": 1425, "end": 1426 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -4200,9 +4070,7 @@ "start": 1435, "end": 1436 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4211,9 +4079,7 @@ "start": 1438, "end": 1439 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -4272,9 +4138,7 @@ "start": 1448, "end": 1449 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4283,9 +4147,7 @@ "start": 1451, "end": 1452 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4295,9 +4157,7 @@ "start": 1453, "end": 1454 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } @@ -4369,9 +4229,7 @@ "start": 1463, "end": 1464 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4380,9 +4238,7 @@ "start": 1466, "end": 1467 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4392,9 +4248,7 @@ "start": 1468, "end": 1469 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -4404,9 +4258,7 @@ "start": 1471, "end": 1472 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } } @@ -4445,9 +4297,7 @@ "start": 1481, "end": 1482 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4456,9 +4306,7 @@ "start": 1483, "end": 1484 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4508,9 +4356,7 @@ "start": 1493, "end": 1494 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4519,9 +4365,7 @@ "start": 1495, "end": 1496 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -4530,9 +4374,7 @@ "start": 1497, "end": 1498 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -4541,9 +4383,7 @@ "start": 1499, "end": 1500 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } } @@ -4578,9 +4418,7 @@ "start": 1507, "end": 1508 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -4625,9 +4463,7 @@ "start": 1513, "end": 1514 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4636,9 +4472,7 @@ "start": 1516, "end": 1517 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -4697,9 +4531,7 @@ "start": 1522, "end": 1523 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4708,9 +4540,7 @@ "start": 1525, "end": 1526 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4720,9 +4550,7 @@ "start": 1527, "end": 1528 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } @@ -4794,9 +4622,7 @@ "start": 1533, "end": 1534 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4805,9 +4631,7 @@ "start": 1536, "end": 1537 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4817,9 +4641,7 @@ "start": 1538, "end": 1539 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -4829,9 +4651,7 @@ "start": 1541, "end": 1542 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } } @@ -4870,9 +4690,7 @@ "start": 1547, "end": 1548 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4881,9 +4699,7 @@ "start": 1549, "end": 1550 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -4933,9 +4749,7 @@ "start": 1555, "end": 1556 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4944,9 +4758,7 @@ "start": 1557, "end": 1558 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -4955,9 +4767,7 @@ "start": 1559, "end": 1560 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -4966,9 +4776,7 @@ "start": 1561, "end": 1562 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } } }, @@ -5274,9 +5082,7 @@ "start": 1706, "end": 1707 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -5337,9 +5143,7 @@ "start": 1739, "end": 1740 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -5405,9 +5209,7 @@ "start": 1767, "end": 1768 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -5440,9 +5242,7 @@ "start": 1777, "end": 1778 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -5501,9 +5301,7 @@ "start": 1790, "end": 1791 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -5536,9 +5334,7 @@ "start": 1796, "end": 1797 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -6910,9 +6706,7 @@ "start": 2535, "end": 2538 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -6963,9 +6757,7 @@ "start": 2562, "end": 2565 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -7146,9 +6938,7 @@ "start": 2640, "end": 2643 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -7203,9 +6993,7 @@ "start": 2669, "end": 2672 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -7255,9 +7043,7 @@ "start": 2691, "end": 2694 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -7308,9 +7094,7 @@ "start": 2717, "end": 2720 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -7491,9 +7275,7 @@ "start": 2794, "end": 2797 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -7548,9 +7330,7 @@ "start": 2822, "end": 2825 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -7729,9 +7509,7 @@ "start": 2894, "end": 2897 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -7782,9 +7560,7 @@ "start": 2921, "end": 2924 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -7965,9 +7741,7 @@ "start": 2999, "end": 3002 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -8022,9 +7796,7 @@ "start": 3028, "end": 3031 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -8074,9 +7846,7 @@ "start": 3050, "end": 3053 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -8127,9 +7897,7 @@ "start": 3076, "end": 3079 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -8310,9 +8078,7 @@ "start": 3153, "end": 3156 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -8367,9 +8133,7 @@ "start": 3181, "end": 3184 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -8565,9 +8329,7 @@ "start": 3270, "end": 3273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -8618,9 +8380,7 @@ "start": 3297, "end": 3300 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -8801,9 +8561,7 @@ "start": 3395, "end": 3398 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -8858,9 +8616,7 @@ "start": 3424, "end": 3427 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -8910,9 +8666,7 @@ "start": 3456, "end": 3459 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -8963,9 +8717,7 @@ "start": 3482, "end": 3485 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -9146,9 +8898,7 @@ "start": 3579, "end": 3582 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -9203,9 +8953,7 @@ "start": 3607, "end": 3610 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -9401,9 +9149,7 @@ "start": 3702, "end": 3705 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -9454,9 +9200,7 @@ "start": 3729, "end": 3732 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -9637,9 +9381,7 @@ "start": 3807, "end": 3810 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -9694,9 +9436,7 @@ "start": 3836, "end": 3839 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -9746,9 +9486,7 @@ "start": 3858, "end": 3861 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -9799,9 +9537,7 @@ "start": 3884, "end": 3887 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -9982,9 +9718,7 @@ "start": 3981, "end": 3984 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -10039,9 +9773,7 @@ "start": 4009, "end": 4012 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -10187,9 +9919,7 @@ "start": 4081, "end": 4084 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -10240,9 +9970,7 @@ "start": 4112, "end": 4115 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -10423,9 +10151,7 @@ "start": 4194, "end": 4197 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -10480,9 +10206,7 @@ "start": 4227, "end": 4230 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -10532,9 +10256,7 @@ "start": 4249, "end": 4252 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -10585,9 +10307,7 @@ "start": 4279, "end": 4282 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -10768,9 +10488,7 @@ "start": 4360, "end": 4363 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -10825,9 +10543,7 @@ "start": 4392, "end": 4395 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -10973,9 +10689,7 @@ "start": 4455, "end": 4458 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -11023,9 +10737,7 @@ "start": 4481, "end": 4484 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -11203,9 +10915,7 @@ "start": 4578, "end": 4581 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -11257,9 +10967,7 @@ "start": 4606, "end": 4609 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -11309,9 +11017,7 @@ "start": 4638, "end": 4641 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -11359,9 +11065,7 @@ "start": 4663, "end": 4666 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -11539,9 +11243,7 @@ "start": 4739, "end": 4742 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -11593,9 +11295,7 @@ "start": 4766, "end": 4769 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -11741,9 +11441,7 @@ "start": 4823, "end": 4826 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -11794,9 +11492,7 @@ "start": 4854, "end": 4857 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -11977,9 +11673,7 @@ "start": 4936, "end": 4939 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -12034,9 +11728,7 @@ "start": 4969, "end": 4972 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -12215,9 +11907,7 @@ "start": 5046, "end": 5049 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -12268,9 +11958,7 @@ "start": 5073, "end": 5076 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12312,9 +12000,7 @@ "start": 5105, "end": 5108 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12363,9 +12049,7 @@ "start": 5137, "end": 5140 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -12416,9 +12100,7 @@ "start": 5164, "end": 5167 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12460,9 +12142,7 @@ "start": 5206, "end": 5209 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12511,9 +12191,7 @@ "start": 5228, "end": 5231 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -12564,9 +12242,7 @@ "start": 5254, "end": 5257 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12608,9 +12284,7 @@ "start": 5286, "end": 5289 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12659,9 +12333,7 @@ "start": 5318, "end": 5321 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -12712,9 +12384,7 @@ "start": 5344, "end": 5347 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12756,9 +12426,7 @@ "start": 5386, "end": 5389 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -12935,10 +12603,8 @@ "span": { "start": 5465, "end": 5468 - }, - "ctxt": 0, - "value": "foo", - "optional": false + }, + "value": "foo" } } }, @@ -12989,9 +12655,7 @@ "start": 5492, "end": 5495 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13033,9 +12697,7 @@ "start": 5534, "end": 5537 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13084,9 +12746,7 @@ "start": 5566, "end": 5569 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -13137,9 +12797,7 @@ "start": 5593, "end": 5596 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13181,9 +12839,7 @@ "start": 5635, "end": 5638 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13232,9 +12888,7 @@ "start": 5667, "end": 5670 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -13285,9 +12939,7 @@ "start": 5693, "end": 5696 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13329,9 +12981,7 @@ "start": 5735, "end": 5738 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13380,9 +13030,7 @@ "start": 5767, "end": 5770 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -13433,9 +13081,7 @@ "start": 5793, "end": 5796 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13477,9 +13123,7 @@ "start": 5835, "end": 5838 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13624,9 +13268,7 @@ "start": 5907, "end": 5910 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -13677,9 +13319,7 @@ "start": 5938, "end": 5941 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13721,9 +13361,7 @@ "start": 5980, "end": 5983 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13772,9 +13410,7 @@ "start": 6002, "end": 6005 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -13825,9 +13461,7 @@ "start": 6033, "end": 6036 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13869,9 +13503,7 @@ "start": 6065, "end": 6068 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -13920,9 +13552,7 @@ "start": 6097, "end": 6100 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -13973,9 +13603,7 @@ "start": 6127, "end": 6130 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14017,9 +13645,7 @@ "start": 6169, "end": 6172 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14068,9 +13694,7 @@ "start": 6191, "end": 6194 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -14121,9 +13745,7 @@ "start": 6221, "end": 6224 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14165,9 +13787,7 @@ "start": 6253, "end": 6256 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14319,9 +13939,7 @@ "start": 6332, "end": 6335 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14372,9 +13990,7 @@ "start": 6362, "end": 6365 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14569,9 +14185,7 @@ "start": 6457, "end": 6460 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -14626,9 +14240,7 @@ "start": 6489, "end": 6492 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -14678,9 +14290,7 @@ "start": 6511, "end": 6514 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } }, @@ -14731,9 +14341,7 @@ "start": 6545, "end": 6548 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -14886,9 +14494,7 @@ "start": 6609, "end": 6612 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -14939,9 +14545,7 @@ "start": 6639, "end": 6642 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15136,9 +14740,7 @@ "start": 6734, "end": 6737 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -15193,9 +14795,7 @@ "start": 6766, "end": 6769 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -15245,9 +14845,7 @@ "start": 6788, "end": 6791 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } }, @@ -15298,9 +14896,7 @@ "start": 6822, "end": 6825 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -15453,9 +15049,7 @@ "start": 6891, "end": 6894 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15506,9 +15100,7 @@ "start": 6921, "end": 6924 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15550,9 +15142,7 @@ "start": 6953, "end": 6956 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15608,9 +15198,7 @@ "start": 6992, "end": 6995 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15661,9 +15249,7 @@ "start": 7022, "end": 7025 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15705,9 +15291,7 @@ "start": 7064, "end": 7067 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15763,9 +15347,7 @@ "start": 7093, "end": 7096 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15816,9 +15398,7 @@ "start": 7122, "end": 7125 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15860,9 +15440,7 @@ "start": 7154, "end": 7157 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15918,9 +15496,7 @@ "start": 7193, "end": 7196 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -15971,9 +15547,7 @@ "start": 7222, "end": 7225 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16015,9 +15589,7 @@ "start": 7264, "end": 7267 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16169,9 +15741,7 @@ "start": 7333, "end": 7336 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16222,9 +15792,7 @@ "start": 7366, "end": 7369 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16266,9 +15834,7 @@ "start": 7408, "end": 7411 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16324,9 +15890,7 @@ "start": 7437, "end": 7440 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16377,9 +15941,7 @@ "start": 7470, "end": 7473 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16421,9 +15983,7 @@ "start": 7502, "end": 7505 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16479,9 +16039,7 @@ "start": 7541, "end": 7544 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16532,9 +16090,7 @@ "start": 7573, "end": 7576 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16576,9 +16132,7 @@ "start": 7615, "end": 7618 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16634,9 +16188,7 @@ "start": 7644, "end": 7647 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16687,9 +16239,7 @@ "start": 7676, "end": 7679 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -16731,9 +16281,7 @@ "start": 7708, "end": 7711 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17189,9 +16737,7 @@ "start": 7924, "end": 7927 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17228,9 +16774,7 @@ "start": 7940, "end": 7943 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17338,9 +16882,7 @@ "start": 7987, "end": 7990 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -17387,9 +16929,7 @@ "start": 8010, "end": 8013 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17504,9 +17044,7 @@ "start": 8064, "end": 8067 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17554,9 +17092,7 @@ "start": 8093, "end": 8096 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17657,9 +17193,7 @@ "start": 8147, "end": 8150 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17696,9 +17230,7 @@ "start": 8163, "end": 8166 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -17837,9 +17369,7 @@ "start": 8229, "end": 8232 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -17888,9 +17418,7 @@ "start": 8270, "end": 8273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -17948,9 +17476,7 @@ "start": 8325, "end": 8328 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18009,9 +17535,7 @@ "start": 8387, "end": 8390 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18061,9 +17585,7 @@ "start": 8452, "end": 8455 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18217,9 +17739,7 @@ "start": 8554, "end": 8557 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -18269,9 +17789,7 @@ "start": 8598, "end": 8601 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18329,9 +17847,7 @@ "start": 8659, "end": 8662 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18389,9 +17905,7 @@ "start": 8723, "end": 8726 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18441,9 +17955,7 @@ "start": 8788, "end": 8791 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -18810,9 +18322,7 @@ "start": 9021, "end": 9025 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -18868,9 +18378,7 @@ "start": 9076, "end": 9078 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -18902,9 +18410,7 @@ "start": 9087, "end": 9093 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } }, "right": { @@ -18972,9 +18478,7 @@ "start": 9150, "end": 9155 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -18999,9 +18503,7 @@ "start": 9164, "end": 9170 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -19339,9 +18841,7 @@ "start": 9381, "end": 9389 }, - "ctxt": 0, - "value": "geometry", - "optional": false + "value": "geometry" } }, "property": { @@ -19350,9 +18850,7 @@ "start": 9391, "end": 9395 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -19427,9 +18925,7 @@ "start": 9448, "end": 9456 }, - "ctxt": 0, - "value": "geometry", - "optional": false + "value": "geometry" } }, "property": { @@ -19438,9 +18934,7 @@ "start": 9457, "end": 9468 }, - "ctxt": 0, - "value": "coordinates", - "optional": false + "value": "coordinates" } } } @@ -19730,9 +19224,7 @@ "start": 9694, "end": 9706 }, - "ctxt": 0, - "value": "someProperty", - "optional": false + "value": "someProperty" } } }, @@ -19790,9 +19282,7 @@ "start": 9747, "end": 9750 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -19848,9 +19338,7 @@ "start": 9788, "end": 9791 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -19878,9 +19366,7 @@ "start": 9811, "end": 9823 }, - "ctxt": 0, - "value": "someProperty", - "optional": false + "value": "someProperty" } } } @@ -19941,9 +19427,7 @@ "start": 9883, "end": 9895 }, - "ctxt": 0, - "value": "someProperty", - "optional": false + "value": "someProperty" } } } @@ -20040,9 +19524,7 @@ "start": 9943, "end": 9955 }, - "ctxt": 0, - "value": "someProperty", - "optional": false + "value": "someProperty" }, "value": { "type": "NumericLiteral", @@ -20377,9 +19859,7 @@ "start": 10115, "end": 10118 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } } }, @@ -20502,9 +19982,7 @@ "start": 10161, "end": 10164 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } } }, @@ -20561,9 +20039,7 @@ "start": 10196, "end": 10199 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -20878,9 +20354,7 @@ "start": 10385, "end": 10389 }, - "ctxt": 0, - "value": "main", - "optional": false + "value": "main" } }, "property": { @@ -20889,9 +20363,7 @@ "start": 10391, "end": 10397 }, - "ctxt": 0, - "value": "childs", - "optional": false + "value": "childs" } } }, @@ -20950,9 +20422,7 @@ "start": 10415, "end": 10419 }, - "ctxt": 0, - "value": "main", - "optional": false + "value": "main" } }, "property": { @@ -20961,9 +20431,7 @@ "start": 10420, "end": 10426 }, - "ctxt": 0, - "value": "childs", - "optional": false + "value": "childs" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json index 97730a9fcedd..af24a19af426 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json @@ -331,9 +331,7 @@ "start": 153, "end": 157 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -436,9 +434,7 @@ "start": 216, "end": 220 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -599,9 +595,7 @@ "start": 276, "end": 280 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -704,9 +698,7 @@ "start": 339, "end": 343 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1193,9 +1185,7 @@ "start": 496, "end": 500 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -1421,9 +1411,7 @@ "start": 635, "end": 639 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -1649,9 +1637,7 @@ "start": 769, "end": 773 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -1877,9 +1863,7 @@ "start": 898, "end": 902 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -2105,9 +2089,7 @@ "start": 1032, "end": 1036 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -2330,9 +2312,7 @@ "start": 1174, "end": 1178 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -2555,9 +2535,7 @@ "start": 1303, "end": 1307 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -2780,9 +2758,7 @@ "start": 1435, "end": 1439 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json b/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json index b5497a964e2b..61325635acc4 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json @@ -189,9 +189,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowStringIndex.json b/crates/swc_ecma_parser/tests/tsc/controlFlowStringIndex.json index b38352c49a7a..7168987f9b47 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowStringIndex.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowStringIndex.json @@ -244,9 +244,7 @@ "start": 127, "end": 130 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -306,9 +304,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -317,9 +313,7 @@ "start": 157, "end": 170 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], @@ -354,9 +348,7 @@ "start": 183, "end": 188 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } } }, @@ -388,9 +380,7 @@ "start": 232, "end": 235 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowSuperPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/controlFlowSuperPropertyAccess.json index a0e22107cc18..77e3c0dab7a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowSuperPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowSuperPropertyAccess.json @@ -37,9 +37,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "m", - "optional": true + "value": "m" }, "function": { "params": [], @@ -115,9 +113,7 @@ "start": 90, "end": 94 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" }, "function": { "params": [], @@ -167,9 +163,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -198,9 +192,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json index 5f789cc3e843..d9a49d173cfb 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json @@ -892,9 +892,7 @@ "start": 515, "end": 521 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json b/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json index 27c03be351ca..6c467996df93 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json @@ -163,9 +163,7 @@ "start": 113, "end": 118 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -381,9 +379,7 @@ "start": 191, "end": 195 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "property": { @@ -392,9 +388,7 @@ "start": 196, "end": 201 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json index 8d5e11d9d5f8..de9734859a0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json @@ -179,9 +179,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json index 46f51ef3b1c3..269257d4d7a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitReadonly.json @@ -38,9 +38,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates01.json index 75a4ee3034fa..a3c421430ebd 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates01.json @@ -43,9 +43,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates02.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates02.json index d8d16c26fe02..e8891ea730b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates02.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicates02.json @@ -194,9 +194,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -340,9 +338,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -382,9 +378,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -425,9 +419,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName01.json index ff86f9939b6c..e9a512a12aab 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName01.json @@ -43,9 +43,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName02.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName02.json index cf978cb5428e..b1609b57247c 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName02.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitThisPredicatesWithPrivateName02.json @@ -187,9 +187,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -333,9 +331,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -375,9 +371,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -418,9 +412,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json index f8ce2f40f96c..5f7d61e5ad10 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.json @@ -44,9 +44,7 @@ "start": 68, "end": 79 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -469,9 +467,7 @@ "start": 715, "end": 726 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -570,9 +566,7 @@ "start": 798, "end": 809 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/declarationFiles.json b/crates/swc_ecma_parser/tests/tsc/declarationFiles.json index 5f7b23f9cdea..67d31af94b4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationFiles.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationFiles.json @@ -37,9 +37,7 @@ "start": 39, "end": 40 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -78,9 +76,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -188,9 +184,7 @@ "start": 95, "end": 106 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -492,9 +486,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -540,9 +532,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -613,9 +603,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -681,9 +669,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -749,9 +735,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -811,9 +795,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -893,9 +875,7 @@ "start": 341, "end": 342 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": null, "typeAnnotation": { @@ -976,9 +956,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": null, "typeAnnotation": { @@ -1043,9 +1021,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": null, "typeAnnotation": { @@ -1149,9 +1125,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": null, "typeAnnotation": { @@ -1284,9 +1258,7 @@ "start": 466, "end": 468 }, - "ctxt": 0, - "value": "x1", - "optional": false + "value": "x1" }, "value": { "type": "ObjectExpression", @@ -1303,9 +1275,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ThisExpression", @@ -1340,9 +1310,7 @@ "start": 488, "end": 490 }, - "ctxt": 0, - "value": "x2", - "optional": false + "value": "x2" }, "value": { "type": "ArrayExpression", @@ -1386,9 +1354,7 @@ "start": 505, "end": 507 }, - "ctxt": 0, - "value": "x3", - "optional": false + "value": "x3" }, "value": { "type": "ArrayExpression", @@ -1414,9 +1380,7 @@ "start": 513, "end": 514 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ThisExpression", @@ -1454,9 +1418,7 @@ "start": 529, "end": 531 }, - "ctxt": 0, - "value": "x4", - "optional": false + "value": "x4" }, "value": { "type": "ArrowFunctionExpression", @@ -1501,9 +1463,7 @@ "start": 550, "end": 552 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -1542,9 +1502,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ThisExpression", @@ -1583,9 +1541,7 @@ "start": 595, "end": 597 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" }, "function": { "params": [], @@ -1655,9 +1611,7 @@ "start": 635, "end": 637 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "function": { "params": [], @@ -1705,9 +1659,7 @@ "start": 660, "end": 661 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ThisExpression", @@ -1749,9 +1701,7 @@ "start": 682, "end": 684 }, - "ctxt": 0, - "value": "f4", - "optional": false + "value": "f4" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json b/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json index 7cb18d9d583c..651a849733f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json @@ -1088,9 +1088,7 @@ "start": 427, "end": 428 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1110,9 +1108,7 @@ "start": 433, "end": 434 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1191,9 +1187,7 @@ "start": 514, "end": 515 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1213,9 +1207,7 @@ "start": 520, "end": 521 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1294,9 +1286,7 @@ "start": 581, "end": 582 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1316,9 +1306,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1416,9 +1404,7 @@ "start": 651, "end": 652 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1438,9 +1424,7 @@ "start": 657, "end": 658 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1581,9 +1565,7 @@ "start": 719, "end": 720 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -1616,9 +1598,7 @@ "start": 730, "end": 731 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1638,9 +1618,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1689,9 +1667,7 @@ "start": 786, "end": 787 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1724,9 +1700,7 @@ "start": 797, "end": 798 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1746,9 +1720,7 @@ "start": 803, "end": 804 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1797,9 +1769,7 @@ "start": 853, "end": 854 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -1821,9 +1791,7 @@ "start": 859, "end": 860 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1856,9 +1824,7 @@ "start": 870, "end": 871 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1878,9 +1844,7 @@ "start": 876, "end": 877 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2383,9 +2347,7 @@ "start": 1082, "end": 1083 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -2407,9 +2369,7 @@ "start": 1088, "end": 1089 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectPattern", @@ -2426,9 +2386,7 @@ "start": 1093, "end": 1094 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -2450,9 +2408,7 @@ "start": 1099, "end": 1100 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectPattern", @@ -2469,9 +2425,7 @@ "start": 1104, "end": 1105 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -2514,9 +2468,7 @@ "start": 1117, "end": 1118 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -2536,9 +2488,7 @@ "start": 1123, "end": 1124 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectExpression", @@ -2555,9 +2505,7 @@ "start": 1128, "end": 1129 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -2577,9 +2525,7 @@ "start": 1140, "end": 1141 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectExpression", @@ -2596,9 +2542,7 @@ "start": 1145, "end": 1146 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -3982,9 +3926,7 @@ "start": 1866, "end": 1867 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -4006,9 +3948,7 @@ "start": 1872, "end": 1873 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -4041,9 +3981,7 @@ "start": 1883, "end": 1884 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4063,9 +4001,7 @@ "start": 1890, "end": 1891 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -4668,9 +4604,7 @@ "start": 2127, "end": 2128 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -4728,9 +4662,7 @@ "start": 2147, "end": 2148 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4750,9 +4682,7 @@ "start": 2154, "end": 2155 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -4830,9 +4760,7 @@ "start": 2185, "end": 2186 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4852,9 +4780,7 @@ "start": 2191, "end": 2192 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -5293,9 +5219,7 @@ "start": 2360, "end": 2361 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -5316,9 +5240,7 @@ "start": 2366, "end": 2367 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -5470,9 +5392,7 @@ "start": 2418, "end": 2419 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -5757,9 +5677,7 @@ "start": 2516, "end": 2517 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -5779,9 +5697,7 @@ "start": 2522, "end": 2523 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -5888,9 +5804,7 @@ "start": 2554, "end": 2555 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -5998,9 +5912,7 @@ "start": 2583, "end": 2584 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -6702,9 +6614,7 @@ "start": 2871, "end": 2872 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -6764,9 +6674,7 @@ "start": 2892, "end": 2893 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json index a7256e93fd32..0fb1a689091f 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS1.json @@ -191,9 +191,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": { "type": "ArrowFunctionExpression", @@ -240,9 +238,7 @@ "start": 266, "end": 271 }, - "ctxt": 0, - "value": "prop0", - "optional": false + "value": "prop0" }, "value": null, "typeAnnotation": { @@ -282,9 +278,7 @@ "start": 292, "end": 297 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" }, "value": { "type": "MemberExpression", @@ -308,9 +302,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "prop0", - "optional": false + "value": "prop0" } }, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json index 0582c57bd8fb..e6ce5ee24f12 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsCommonJS2.json @@ -191,9 +191,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json index e77dffa4bd97..425c6aadfcfd 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem1.json @@ -191,9 +191,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": { "type": "ArrowFunctionExpression", @@ -240,9 +238,7 @@ "start": 264, "end": 269 }, - "ctxt": 0, - "value": "prop0", - "optional": false + "value": "prop0" }, "value": null, "typeAnnotation": { @@ -282,9 +278,7 @@ "start": 290, "end": 295 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" }, "value": { "type": "MemberExpression", @@ -308,9 +302,7 @@ "start": 309, "end": 314 }, - "ctxt": 0, - "value": "prop0", - "optional": false + "value": "prop0" } }, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json index 2b0fd33b1fa6..6d044756cb48 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratedClassExportsSystem2.json @@ -191,9 +191,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json index 07562283297c..fd25227d22cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json @@ -172,9 +172,7 @@ "start": 286, "end": 297 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -248,9 +246,7 @@ "start": 351, "end": 357 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json index 7d8cb0ebcbc9..16b3ed586cf5 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json @@ -175,9 +175,7 @@ "start": 287, "end": 298 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -251,9 +249,7 @@ "start": 352, "end": 358 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json index 5846e1e4cf19..6ef41cbcff42 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json @@ -197,9 +197,7 @@ "start": 286, "end": 291 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": null, "typeAnnotation": { @@ -216,6 +214,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 293, + "end": 309 + }, "left": { "type": "Identifier", "span": { @@ -232,9 +234,7 @@ "start": 302, "end": 309 }, - "ctxt": 0, - "value": "Service", - "optional": false + "value": "Service" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClass9.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClass9.json index d56f77ad7014..dd4f3ab6f1e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClass9.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClass9.json @@ -127,9 +127,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -163,9 +161,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -189,9 +185,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -217,9 +211,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -265,9 +257,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json index f8f2bbbabf3e..ce554a6ed483 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassConstructor4.json @@ -146,9 +146,7 @@ "start": 163, "end": 174 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json index 4132ccd263be..97021f0f55ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod11.json @@ -62,9 +62,7 @@ "start": 83, "end": 92 }, - "ctxt": 0, - "value": "decorator", - "optional": false + "value": "decorator" }, "function": { "params": [ @@ -198,9 +196,7 @@ "start": 167, "end": 173 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -230,9 +226,7 @@ "start": 148, "end": 157 }, - "ctxt": 0, - "value": "decorator", - "optional": false + "value": "decorator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod14.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod14.json index fff067cad002..a56e7bee2076 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod14.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod14.json @@ -83,9 +83,7 @@ "start": 138, "end": 142 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "ArrowFunctionExpression", @@ -149,9 +147,7 @@ "start": 196, "end": 199 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod15.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod15.json index 48a37328b99b..f5e0cf1de1a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod15.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod15.json @@ -83,9 +83,7 @@ "start": 138, "end": 142 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "NumericLiteral", @@ -119,9 +117,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod16.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod16.json index 54a25f2f1152..d61a37536411 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod16.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod16.json @@ -83,9 +83,7 @@ "start": 138, "end": 142 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": null, @@ -111,9 +109,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod18.json b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod18.json index 91d66891ba83..74e8bc021648 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod18.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorOnClassMethod18.json @@ -83,9 +83,7 @@ "start": 130, "end": 132 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": null, "typeAnnotation": null, @@ -111,9 +109,7 @@ "start": 155, "end": 157 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json index cdb366c60c7e..e2f2bc1f5a9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json @@ -224,9 +224,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -246,9 +244,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NullLiteral", @@ -296,9 +292,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -795,9 +789,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -862,9 +854,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -929,9 +919,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -996,9 +984,7 @@ "start": 502, "end": 503 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1136,9 +1122,7 @@ "start": 566, "end": 567 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1203,9 +1187,7 @@ "start": 598, "end": 599 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1270,9 +1252,7 @@ "start": 631, "end": 632 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1337,9 +1317,7 @@ "start": 661, "end": 662 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1538,9 +1516,7 @@ "start": 743, "end": 744 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1581,9 +1557,7 @@ "start": 750, "end": 751 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1779,9 +1753,7 @@ "start": 800, "end": 801 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1822,9 +1794,7 @@ "start": 807, "end": 808 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json index 5989ca937c92..1d2f42efdf3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json @@ -216,9 +216,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json index 1088c180212f..4ce95a31aed4 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json @@ -416,9 +416,7 @@ "start": 279, "end": 280 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -498,9 +496,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberType.json index 55d692a77168..fe4c68d08290 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberType.json @@ -168,9 +168,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -494,9 +492,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -561,9 +557,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -628,9 +622,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -695,9 +687,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -889,9 +879,7 @@ "start": 500, "end": 501 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -932,9 +920,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -982,9 +968,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1010,9 +994,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -1129,9 +1111,7 @@ "start": 555, "end": 556 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1172,9 +1152,7 @@ "start": 562, "end": 563 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1222,9 +1200,7 @@ "start": 572, "end": 573 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1258,9 +1234,7 @@ "start": 579, "end": 580 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberTypeInvalidOperations.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberTypeInvalidOperations.json index 86ad049a5773..a703762c77c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberTypeInvalidOperations.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithNumberTypeInvalidOperations.json @@ -233,9 +233,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -663,9 +659,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -685,9 +679,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -756,9 +748,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -778,9 +768,7 @@ "start": 454, "end": 455 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -955,9 +943,7 @@ "start": 541, "end": 542 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -977,9 +963,7 @@ "start": 547, "end": 548 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1048,9 +1032,7 @@ "start": 581, "end": 582 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1070,9 +1052,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1272,9 +1252,7 @@ "start": 710, "end": 713 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1484,9 +1462,7 @@ "start": 819, "end": 822 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedBooleanType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedBooleanType.json index 41a0448dfd4c..829090ef0f0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedBooleanType.json @@ -147,9 +147,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 141, "end": 144 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -575,9 +571,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -596,9 +590,7 @@ "start": 405, "end": 406 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -666,9 +658,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -687,9 +677,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -863,9 +851,7 @@ "start": 543, "end": 544 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -884,9 +870,7 @@ "start": 552, "end": 553 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -954,9 +938,7 @@ "start": 590, "end": 591 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -975,9 +957,7 @@ "start": 599, "end": 600 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1110,9 +1090,7 @@ "start": 695, "end": 696 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1177,9 +1155,7 @@ "start": 725, "end": 726 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1311,9 +1287,7 @@ "start": 787, "end": 790 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1448,9 +1422,7 @@ "start": 852, "end": 855 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1518,9 +1490,7 @@ "start": 889, "end": 890 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1585,9 +1555,7 @@ "start": 919, "end": 920 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1717,9 +1685,7 @@ "start": 989, "end": 990 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1760,9 +1726,7 @@ "start": 996, "end": 997 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1810,9 +1774,7 @@ "start": 1006, "end": 1007 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1838,9 +1800,7 @@ "start": 1011, "end": 1012 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -1968,9 +1928,7 @@ "start": 1048, "end": 1049 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2011,9 +1969,7 @@ "start": 1055, "end": 1056 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2061,9 +2017,7 @@ "start": 1065, "end": 1066 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2097,9 +2051,7 @@ "start": 1072, "end": 1073 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json index 7dee4dd0a9da..debe521567c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json @@ -233,9 +233,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -763,9 +759,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -785,9 +779,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -856,9 +848,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -878,9 +868,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1055,9 +1043,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1077,9 +1063,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1148,9 +1132,7 @@ "start": 660, "end": 661 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1170,9 +1152,7 @@ "start": 667, "end": 668 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1305,9 +1285,7 @@ "start": 762, "end": 763 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1372,9 +1350,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1579,9 +1555,7 @@ "start": 891, "end": 894 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1724,9 +1698,7 @@ "start": 971, "end": 972 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1791,9 +1763,7 @@ "start": 1001, "end": 1002 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1998,9 +1968,7 @@ "start": 1100, "end": 1103 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2284,9 +2252,7 @@ "start": 1240, "end": 1241 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2327,9 +2293,7 @@ "start": 1247, "end": 1248 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2377,9 +2341,7 @@ "start": 1257, "end": 1258 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2405,9 +2367,7 @@ "start": 1262, "end": 1263 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -2611,9 +2571,7 @@ "start": 1321, "end": 1322 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2654,9 +2612,7 @@ "start": 1328, "end": 1329 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2704,9 +2660,7 @@ "start": 1338, "end": 1339 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2740,9 +2694,7 @@ "start": 1345, "end": 1346 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json index 2fdc74671cc3..80688bf1e31d 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json @@ -485,6 +485,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 344, + "end": 352 + }, "left": { "type": "Identifier", "span": { @@ -501,9 +505,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": null @@ -543,9 +545,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -577,9 +577,7 @@ "start": 372, "end": 373 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json index 3345a6f6b305..ddda39a42e65 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json @@ -366,6 +366,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 278, + "end": 286 + }, "left": { "type": "Identifier", "span": { @@ -382,9 +386,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": null @@ -503,9 +505,7 @@ "start": 322, "end": 324 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -530,9 +530,7 @@ "start": 329, "end": 331 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json index bed4f20b0355..d3eb616ebb5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json @@ -352,6 +352,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 264, + "end": 272 + }, "left": { "type": "Identifier", "span": { @@ -368,9 +372,7 @@ "start": 271, "end": 272 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": null @@ -489,9 +491,7 @@ "start": 308, "end": 310 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -516,9 +516,7 @@ "start": 315, "end": 317 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultPropertyAssignedClassWithPrototype.json b/crates/swc_ecma_parser/tests/tsc/defaultPropertyAssignedClassWithPrototype.json index 542f17c09dea..86a80572bfa3 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultPropertyAssignedClassWithPrototype.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultPropertyAssignedClassWithPrototype.json @@ -79,9 +79,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -113,9 +111,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -186,9 +182,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "property": { @@ -197,9 +191,7 @@ "start": 141, "end": 150 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -217,9 +209,7 @@ "start": 159, "end": 162 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" }, "params": [], "decorators": [], @@ -287,9 +277,7 @@ "start": 181, "end": 182 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "arguments": [], @@ -301,9 +289,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/defineProperty.json b/crates/swc_ecma_parser/tests/tsc/defineProperty.json index 74c6aad93b5d..6880fd0a349b 100644 --- a/crates/swc_ecma_parser/tests/tsc/defineProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/defineProperty.json @@ -99,9 +99,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "MemberExpression", @@ -122,9 +120,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "typeAnnotation": null, @@ -150,9 +146,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": null, @@ -178,9 +172,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": null, @@ -291,9 +283,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -337,9 +327,7 @@ "start": 173, "end": 184 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -403,9 +391,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "MemberExpression", @@ -426,9 +412,7 @@ "start": 229, "end": 230 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "typeAnnotation": null, @@ -454,9 +438,7 @@ "start": 243, "end": 253 }, - "ctxt": 0, - "value": "notEmitted", - "optional": false + "value": "notEmitted" }, "value": null, "typeAnnotation": null, @@ -509,9 +491,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": null, @@ -564,9 +544,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": null, @@ -592,9 +570,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "MemberExpression", @@ -615,9 +591,7 @@ "start": 338, "end": 340 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" } }, "typeAnnotation": null, @@ -644,9 +618,7 @@ "start": 345, "end": 356 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -735,9 +707,7 @@ "start": 404, "end": 406 }, - "ctxt": 0, - "value": "ki", - "optional": false + "value": "ki" }, "value": { "type": "MemberExpression", @@ -758,9 +728,7 @@ "start": 414, "end": 416 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" } }, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/deleteChain.json b/crates/swc_ecma_parser/tests/tsc/deleteChain.json index 50080a25073b..988b855d60fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteChain.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteChain.json @@ -146,9 +146,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -202,9 +200,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -401,9 +397,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -413,9 +407,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -482,9 +474,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -494,9 +484,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -686,9 +674,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -697,9 +683,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -759,9 +743,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -770,9 +752,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1043,9 +1023,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -1054,9 +1032,7 @@ "start": 338, "end": 339 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1066,9 +1042,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1078,9 +1052,7 @@ "start": 343, "end": 344 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1166,9 +1138,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -1177,9 +1147,7 @@ "start": 360, "end": 361 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1189,9 +1157,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } @@ -1202,9 +1168,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1290,9 +1254,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -1301,9 +1263,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1313,9 +1273,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1325,9 +1283,7 @@ "start": 388, "end": 389 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1613,9 +1569,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -1628,9 +1582,7 @@ "start": 467, "end": 468 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1640,9 +1592,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1652,9 +1602,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1754,9 +1702,7 @@ "start": 486, "end": 487 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -1769,9 +1715,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1781,9 +1725,7 @@ "start": 494, "end": 495 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1793,9 +1735,7 @@ "start": 497, "end": 498 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -2066,9 +2006,7 @@ "start": 568, "end": 569 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -2095,9 +2033,7 @@ "start": 577, "end": 578 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -2201,9 +2137,7 @@ "start": 598, "end": 599 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -2230,9 +2164,7 @@ "start": 607, "end": 608 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json index 838565f21451..bd1f76dd7395 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json @@ -272,9 +272,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -294,9 +292,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -457,9 +453,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -499,9 +493,7 @@ "start": 229, "end": 232 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1238,9 +1230,7 @@ "start": 758, "end": 759 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1304,9 +1294,7 @@ "start": 797, "end": 798 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1370,9 +1358,7 @@ "start": 836, "end": 837 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1436,9 +1422,7 @@ "start": 872, "end": 873 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1568,9 +1552,7 @@ "start": 946, "end": 949 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2192,9 +2174,7 @@ "start": 1385, "end": 1386 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2234,9 +2214,7 @@ "start": 1400, "end": 1401 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -2276,9 +2254,7 @@ "start": 1415, "end": 1416 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2318,9 +2294,7 @@ "start": 1427, "end": 1428 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithBooleanType.json index 5b8183d61ef4..fa19b4a1b16d 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 395, "end": 396 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 578, "end": 581 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1045,9 +1031,7 @@ "start": 766, "end": 767 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1087,9 +1071,7 @@ "start": 778, "end": 779 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json index 771d031a42d8..97b350130d0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json @@ -681,9 +681,7 @@ "start": 500, "end": 501 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithNumberType.json index c30f76c9babc..6b7737aeda42 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 170, "end": 173 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 444, "end": 445 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 483, "end": 484 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 489, "end": 490 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 622, "end": 623 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 737, "end": 740 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1555,9 +1537,7 @@ "start": 1031, "end": 1032 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1597,9 +1577,7 @@ "start": 1043, "end": 1044 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1646,9 +1624,7 @@ "start": 1058, "end": 1059 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1674,9 +1650,7 @@ "start": 1063, "end": 1064 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json index 58d6b1a6b685..e49d05538ee0 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 179, "end": 182 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 456, "end": 457 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 497, "end": 498 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 504, "end": 505 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 637, "end": 638 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 752, "end": 755 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 847, "end": 853 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1651,9 +1631,7 @@ "start": 1096, "end": 1097 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1679,9 +1657,7 @@ "start": 1100, "end": 1101 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json index 60f16b3c7fa4..32c48220e39c 100644 --- a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json @@ -393,9 +393,7 @@ "start": 253, "end": 260 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -482,9 +480,7 @@ "start": 310, "end": 321 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -729,9 +725,7 @@ "start": 443, "end": 450 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -818,9 +812,7 @@ "start": 500, "end": 511 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -1016,9 +1008,7 @@ "start": 624, "end": 631 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1086,9 +1076,7 @@ "start": 692, "end": 703 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -1327,9 +1315,7 @@ "start": 894, "end": 901 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1416,9 +1402,7 @@ "start": 951, "end": 962 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -1710,9 +1694,7 @@ "start": 1087, "end": 1094 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1799,9 +1781,7 @@ "start": 1144, "end": 1155 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -2312,9 +2292,7 @@ "start": 1393, "end": 1400 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -2401,9 +2379,7 @@ "start": 1462, "end": 1473 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -2676,9 +2652,7 @@ "start": 1633, "end": 1640 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -2765,9 +2739,7 @@ "start": 1702, "end": 1713 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -2889,9 +2861,7 @@ "start": 1783, "end": 1790 }, - "ctxt": 0, - "value": "payload", - "optional": false + "value": "payload" } }, "consequent": { @@ -3057,9 +3027,7 @@ "start": 1884, "end": 1891 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -3146,9 +3114,7 @@ "start": 1953, "end": 1964 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -3372,9 +3338,7 @@ "start": 2119, "end": 2126 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -3442,9 +3406,7 @@ "start": 2199, "end": 2210 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -4493,9 +4455,7 @@ "start": 2825, "end": 2832 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -4582,9 +4542,7 @@ "start": 2879, "end": 2890 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -6232,9 +6190,7 @@ "start": 3629, "end": 3634 }, - "ctxt": 0, - "value": "toAdd", - "optional": false + "value": "toAdd" } } } @@ -6302,9 +6258,7 @@ "start": 3694, "end": 3702 }, - "ctxt": 0, - "value": "toRemove", - "optional": false + "value": "toRemove" } } } @@ -6490,9 +6444,7 @@ "start": 3796, "end": 3800 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "arguments": [], @@ -6834,9 +6786,7 @@ "start": 3980, "end": 3987 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -6923,9 +6873,7 @@ "start": 4034, "end": 4045 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -7257,9 +7205,7 @@ "start": 4183, "end": 4190 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -7346,9 +7292,7 @@ "start": 4240, "end": 4251 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -7663,9 +7607,7 @@ "start": 4381, "end": 4388 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -8158,9 +8100,7 @@ "start": 4661, "end": 4667 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -8202,9 +8142,7 @@ "start": 4698, "end": 4705 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } } @@ -8717,9 +8655,7 @@ "start": 4947, "end": 4950 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -8754,9 +8690,7 @@ "start": 4956, "end": 4957 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -8781,9 +8715,7 @@ "start": 4965, "end": 4966 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -8853,9 +8785,7 @@ "start": 5031, "end": 5034 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -8896,9 +8826,7 @@ "start": 5040, "end": 5048 }, - "ctxt": 0, - "value": "firstArr", - "optional": false + "value": "firstArr" } }, "property": { @@ -8907,9 +8835,7 @@ "start": 5049, "end": 5055 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ @@ -8937,9 +8863,7 @@ "start": 5061, "end": 5070 }, - "ctxt": 0, - "value": "secondArr", - "optional": false + "value": "secondArr" } } } @@ -9027,9 +8951,7 @@ "start": 5119, "end": 5120 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -9049,9 +8971,7 @@ "start": 5125, "end": 5126 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -9123,9 +9043,7 @@ "start": 5154, "end": 5162 }, - "ctxt": 0, - "value": "firstArr", - "optional": false + "value": "firstArr" }, "value": { "type": "ArrayExpression", @@ -9169,9 +9087,7 @@ "start": 5172, "end": 5181 }, - "ctxt": 0, - "value": "secondArr", - "optional": false + "value": "secondArr" }, "value": { "type": "ArrayExpression", @@ -9605,9 +9521,7 @@ "start": 5450, "end": 5456 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -10227,9 +10141,7 @@ "start": 5745, "end": 5751 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -10865,9 +10777,7 @@ "start": 6041, "end": 6047 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -11503,9 +11413,7 @@ "start": 6363, "end": 6369 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -12101,9 +12009,7 @@ "start": 6641, "end": 6648 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -12190,9 +12096,7 @@ "start": 6708, "end": 6719 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -12300,9 +12204,7 @@ "start": 6811, "end": 6816 }, - "ctxt": 0, - "value": "test1", - "optional": false + "value": "test1" } } }, @@ -12345,9 +12247,7 @@ "start": 6837, "end": 6842 }, - "ctxt": 0, - "value": "test2", - "optional": false + "value": "test2" } } }, @@ -12390,9 +12290,7 @@ "start": 6863, "end": 6868 }, - "ctxt": 0, - "value": "test3", - "optional": false + "value": "test3" } } }, @@ -12435,9 +12333,7 @@ "start": 6889, "end": 6894 }, - "ctxt": 0, - "value": "test4", - "optional": false + "value": "test4" } } }, @@ -12480,9 +12376,7 @@ "start": 6915, "end": 6920 }, - "ctxt": 0, - "value": "test5", - "optional": false + "value": "test5" } } }, @@ -12525,9 +12419,7 @@ "start": 6941, "end": 6946 }, - "ctxt": 0, - "value": "test6", - "optional": false + "value": "test6" } } }, @@ -12570,9 +12462,7 @@ "start": 6967, "end": 6972 }, - "ctxt": 0, - "value": "test7", - "optional": false + "value": "test7" } } }, @@ -12615,9 +12505,7 @@ "start": 6993, "end": 6998 }, - "ctxt": 0, - "value": "test8", - "optional": false + "value": "test8" } } }, @@ -12660,9 +12548,7 @@ "start": 7019, "end": 7024 }, - "ctxt": 0, - "value": "test9", - "optional": false + "value": "test9" } } } @@ -14101,9 +13987,7 @@ "start": 8017, "end": 8019 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" }, "function": { "params": [ @@ -14455,9 +14339,7 @@ "start": 8146, "end": 8148 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" } }, "arguments": [ @@ -14535,9 +14417,7 @@ "start": 8194, "end": 8197 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -14582,9 +14462,7 @@ "start": 8236, "end": 8240 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } }, { @@ -14609,9 +14487,7 @@ "start": 8250, "end": 8258 }, - "ctxt": 0, - "value": "wasClean", - "optional": false + "value": "wasClean" } }, { @@ -14636,9 +14512,7 @@ "start": 8270, "end": 8276 }, - "ctxt": 0, - "value": "reason", - "optional": false + "value": "reason" } } ], @@ -14744,9 +14618,7 @@ "start": 8286, "end": 8288 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" } }, "arguments": [ @@ -14813,9 +14685,7 @@ "start": 8325, "end": 8328 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -14850,9 +14720,7 @@ "start": 8338, "end": 8342 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } }, { @@ -14877,9 +14745,7 @@ "start": 8352, "end": 8360 }, - "ctxt": 0, - "value": "wasClean", - "optional": false + "value": "wasClean" } }, { @@ -14904,9 +14770,7 @@ "start": 8370, "end": 8376 }, - "ctxt": 0, - "value": "reason", - "optional": false + "value": "reason" } } ], @@ -16153,9 +16017,7 @@ "start": 9038, "end": 9044 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -16511,9 +16373,7 @@ "start": 9173, "end": 9179 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -16919,9 +16779,7 @@ "start": 9420, "end": 9426 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json index 97b72606d406..cd61f5c7a7f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json @@ -726,9 +726,7 @@ "start": 439, "end": 449 }, - "ctxt": 0, - "value": "allSettled", - "optional": false + "value": "allSettled" } }, "arguments": [ @@ -804,9 +802,7 @@ "start": 476, "end": 479 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -867,9 +863,7 @@ "start": 503, "end": 509 }, - "ctxt": 0, - "value": "status", - "optional": false + "value": "status" } }, "right": { @@ -913,9 +907,7 @@ "start": 542, "end": 547 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } }, @@ -1018,9 +1010,7 @@ "start": 604, "end": 610 }, - "ctxt": 0, - "value": "reason", - "optional": false + "value": "reason" } } } @@ -1502,9 +1492,7 @@ "start": 787, "end": 794 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -1555,9 +1543,7 @@ "start": 807, "end": 813 }, - "ctxt": 0, - "value": "reject", - "optional": false + "value": "reject" } }, "arguments": [ @@ -1884,9 +1870,7 @@ "start": 956, "end": 962 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassConstructorWithoutSuperCall.json b/crates/swc_ecma_parser/tests/tsc/derivedClassConstructorWithoutSuperCall.json index fad9f0343770..7dd102919d15 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassConstructorWithoutSuperCall.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassConstructorWithoutSuperCall.json @@ -37,9 +37,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -107,9 +105,7 @@ "start": 122, "end": 133 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -172,9 +168,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -282,9 +276,7 @@ "start": 227, "end": 238 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -466,9 +458,7 @@ "start": 432, "end": 443 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -669,9 +659,7 @@ "start": 556, "end": 567 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassFunctionOverridesBaseClassAccessor.json b/crates/swc_ecma_parser/tests/tsc/derivedClassFunctionOverridesBaseClassAccessor.json index 2e93569ef9f5..9ee6e0fec6a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassFunctionOverridesBaseClassAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassFunctionOverridesBaseClassAccessor.json @@ -37,9 +37,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -191,9 +187,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json index 13fca389979a..8721d2e1097e 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 33, "end": 34 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -186,9 +180,7 @@ "start": 76, "end": 77 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -251,9 +243,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -293,9 +283,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [], @@ -338,9 +326,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -400,9 +386,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -466,9 +450,7 @@ "start": 190, "end": 201 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -682,9 +664,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -747,9 +727,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -808,9 +786,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "definite": false @@ -852,9 +828,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -917,9 +891,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "definite": false @@ -982,9 +954,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "arguments": [], @@ -1043,9 +1013,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "definite": false @@ -1087,9 +1055,7 @@ "start": 401, "end": 402 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPrivates.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPrivates.json index 99020f3dd3a0..99322438aaaa 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPrivates.json @@ -37,9 +37,7 @@ "start": 26, "end": 27 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -142,9 +140,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -291,9 +287,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -396,9 +390,7 @@ "start": 242, "end": 243 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json index 3ffe55b9daae..d0f4d704cee9 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers.json @@ -236,9 +236,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -288,9 +286,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -377,9 +373,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -440,9 +434,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -529,9 +521,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -623,9 +613,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -675,9 +663,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -764,9 +750,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -827,9 +811,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -916,9 +898,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1011,9 +991,7 @@ "start": 480, "end": 491 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1111,9 +1089,7 @@ "start": 555, "end": 556 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1163,9 +1139,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -1252,9 +1226,7 @@ "start": 619, "end": 620 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -1315,9 +1287,7 @@ "start": 655, "end": 656 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -1404,9 +1374,7 @@ "start": 688, "end": 689 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1498,9 +1466,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -1550,9 +1516,7 @@ "start": 770, "end": 771 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -1639,9 +1603,7 @@ "start": 814, "end": 815 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -1702,9 +1664,7 @@ "start": 857, "end": 858 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -1791,9 +1751,7 @@ "start": 897, "end": 898 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1886,9 +1844,7 @@ "start": 928, "end": 939 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json index 2e907acb8f5c..c5f3c2d7f8f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json @@ -236,9 +236,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -288,9 +286,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -377,9 +373,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -440,9 +434,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -529,9 +521,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -623,9 +613,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -675,9 +663,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -764,9 +750,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -827,9 +811,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -916,9 +898,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1011,9 +991,7 @@ "start": 477, "end": 488 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1111,9 +1089,7 @@ "start": 600, "end": 601 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1163,9 +1139,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -1252,9 +1226,7 @@ "start": 644, "end": 645 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -1315,9 +1287,7 @@ "start": 670, "end": 671 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -1404,9 +1374,7 @@ "start": 693, "end": 694 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1498,9 +1466,7 @@ "start": 731, "end": 732 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -1550,9 +1516,7 @@ "start": 755, "end": 756 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -1639,9 +1603,7 @@ "start": 789, "end": 790 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -1702,9 +1664,7 @@ "start": 822, "end": 823 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -1791,9 +1751,7 @@ "start": 852, "end": 853 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1886,9 +1844,7 @@ "start": 883, "end": 894 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2140,9 +2096,7 @@ "start": 969, "end": 970 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2205,9 +2159,7 @@ "start": 983, "end": 984 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -2280,9 +2232,7 @@ "start": 1000, "end": 1001 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "definite": false @@ -2338,9 +2288,7 @@ "start": 1015, "end": 1016 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "definite": false @@ -2382,9 +2330,7 @@ "start": 1020, "end": 1021 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -2448,9 +2394,7 @@ "start": 1044, "end": 1045 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "definite": false @@ -2513,9 +2457,7 @@ "start": 1064, "end": 1065 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "arguments": [ @@ -2588,9 +2530,7 @@ "start": 1087, "end": 1088 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "definite": false @@ -2646,9 +2586,7 @@ "start": 1108, "end": 1109 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "definite": false @@ -2690,9 +2628,7 @@ "start": 1119, "end": 1120 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json index 864b74ca5a3a..81d049752031 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers3.json @@ -236,9 +236,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -288,9 +286,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -377,9 +373,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -440,9 +434,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -529,9 +521,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -623,9 +613,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -675,9 +663,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -764,9 +750,7 @@ "start": 286, "end": 287 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -827,9 +811,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -916,9 +898,7 @@ "start": 349, "end": 350 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1011,9 +991,7 @@ "start": 380, "end": 391 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1111,9 +1089,7 @@ "start": 523, "end": 524 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1164,9 +1140,7 @@ "start": 540, "end": 551 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1312,9 +1286,7 @@ "start": 626, "end": 627 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -1402,9 +1374,7 @@ "start": 649, "end": 660 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1550,9 +1520,7 @@ "start": 739, "end": 740 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -1614,9 +1582,7 @@ "start": 761, "end": 772 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1762,9 +1728,7 @@ "start": 851, "end": 852 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -1852,9 +1816,7 @@ "start": 874, "end": 885 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2000,9 +1962,7 @@ "start": 960, "end": 961 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -2095,9 +2055,7 @@ "start": 991, "end": 1002 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2243,9 +2201,7 @@ "start": 1084, "end": 1085 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -2296,9 +2252,7 @@ "start": 1101, "end": 1112 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2444,9 +2398,7 @@ "start": 1194, "end": 1195 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -2534,9 +2486,7 @@ "start": 1217, "end": 1228 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2682,9 +2632,7 @@ "start": 1314, "end": 1315 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -2746,9 +2694,7 @@ "start": 1336, "end": 1347 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2894,9 +2840,7 @@ "start": 1433, "end": 1434 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -2984,9 +2928,7 @@ "start": 1456, "end": 1467 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -3132,9 +3074,7 @@ "start": 1550, "end": 1551 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -3227,9 +3167,7 @@ "start": 1581, "end": 1592 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers4.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers4.json index a9797e063016..f6bdf1799f66 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers4.json @@ -236,9 +236,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -315,9 +313,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -403,9 +399,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json index 30276fb96939..87b75867decf 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json @@ -236,9 +236,7 @@ "start": 80, "end": 81 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -288,9 +286,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -377,9 +373,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -440,9 +434,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -529,9 +521,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -623,9 +613,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -675,9 +663,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -764,9 +750,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -827,9 +811,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -916,9 +898,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1011,9 +991,7 @@ "start": 363, "end": 374 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1111,9 +1089,7 @@ "start": 428, "end": 429 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1163,9 +1139,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [ @@ -1252,9 +1226,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [], @@ -1315,9 +1287,7 @@ "start": 498, "end": 499 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "function": { "params": [ @@ -1404,9 +1374,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1498,9 +1466,7 @@ "start": 559, "end": 560 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -1550,9 +1516,7 @@ "start": 583, "end": 584 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [ @@ -1639,9 +1603,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [], @@ -1702,9 +1664,7 @@ "start": 650, "end": 651 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -1791,9 +1751,7 @@ "start": 680, "end": 681 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -1886,9 +1844,7 @@ "start": 711, "end": 722 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2140,9 +2096,7 @@ "start": 796, "end": 797 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2205,9 +2159,7 @@ "start": 810, "end": 811 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [ @@ -2280,9 +2232,7 @@ "start": 827, "end": 828 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "definite": false @@ -2338,9 +2288,7 @@ "start": 842, "end": 843 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "definite": false @@ -2382,9 +2330,7 @@ "start": 847, "end": 848 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -2448,9 +2394,7 @@ "start": 871, "end": 872 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "definite": false @@ -2513,9 +2457,7 @@ "start": 891, "end": 892 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "arguments": [ @@ -2588,9 +2530,7 @@ "start": 914, "end": 915 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "definite": false @@ -2646,9 +2586,7 @@ "start": 935, "end": 936 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "definite": false @@ -2690,9 +2628,7 @@ "start": 946, "end": 947 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesWithoutSubtype.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesWithoutSubtype.json index 4490883ff6c7..f76157115d36 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesWithoutSubtype.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesWithoutSubtype.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -142,9 +140,7 @@ "start": 86, "end": 87 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -256,9 +252,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -361,9 +355,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json index 63d075a00e5c..41f2b7e8d8de 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json @@ -37,9 +37,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -143,9 +141,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -224,9 +220,7 @@ "start": 225, "end": 228 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -567,9 +561,7 @@ "start": 328, "end": 331 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -648,9 +640,7 @@ "start": 347, "end": 350 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json index 72d2deeb815f..20773d12e77e 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json @@ -37,9 +37,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -176,9 +174,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -291,9 +287,7 @@ "start": 245, "end": 248 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -667,9 +661,7 @@ "start": 359, "end": 362 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -760,9 +752,7 @@ "start": 381, "end": 384 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json index 3253c128b0f8..475551551097 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json @@ -37,9 +37,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -226,9 +224,7 @@ "start": 173, "end": 176 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -407,9 +403,7 @@ "start": 245, "end": 248 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -897,9 +891,7 @@ "start": 378, "end": 381 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -990,9 +982,7 @@ "start": 402, "end": 405 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json index 71264deaff45..2958550272f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json @@ -37,9 +37,7 @@ "start": 148, "end": 151 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -143,9 +141,7 @@ "start": 204, "end": 207 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -224,9 +220,7 @@ "start": 273, "end": 276 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -567,9 +561,7 @@ "start": 376, "end": 379 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -648,9 +640,7 @@ "start": 395, "end": 398 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json index 9085ad621ded..9950ce0076f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -155,9 +151,7 @@ "start": 64, "end": 67 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -231,9 +225,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -273,9 +265,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" }, "function": { "params": [], @@ -349,9 +339,7 @@ "start": 191, "end": 194 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -452,9 +440,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -494,9 +480,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -568,9 +552,7 @@ "start": 316, "end": 319 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -644,9 +626,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -686,9 +666,7 @@ "start": 388, "end": 389 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" }, "function": { "params": [], @@ -760,9 +738,7 @@ "start": 437, "end": 440 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -870,9 +846,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -912,9 +886,7 @@ "start": 606, "end": 607 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -988,9 +960,7 @@ "start": 636, "end": 639 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1064,9 +1034,7 @@ "start": 689, "end": 690 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1106,9 +1074,7 @@ "start": 715, "end": 716 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" }, "function": { "params": [], @@ -1182,9 +1148,7 @@ "start": 765, "end": 768 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -1558,9 +1522,7 @@ "start": 864, "end": 867 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json index fd62466c5fb4..59cf8155de07 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json @@ -37,9 +37,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 70, "end": 72 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -155,9 +151,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -217,9 +211,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -309,9 +301,7 @@ "start": 242, "end": 243 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -351,9 +341,7 @@ "start": 266, "end": 268 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -427,9 +415,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -489,9 +475,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json index f8d31f5f68ed..ada5254ddffb 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 47, "end": 49 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -155,9 +151,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -217,9 +211,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -309,9 +301,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -351,9 +341,7 @@ "start": 237, "end": 239 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -427,9 +415,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -489,9 +475,7 @@ "start": 328, "end": 329 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -607,9 +591,7 @@ "start": 353, "end": 354 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -665,9 +647,7 @@ "start": 379, "end": 380 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -730,9 +710,7 @@ "start": 406, "end": 408 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -798,9 +776,7 @@ "start": 435, "end": 437 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -859,9 +835,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -903,9 +877,7 @@ "start": 479, "end": 480 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -968,9 +940,7 @@ "start": 510, "end": 511 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -1012,9 +982,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json index 0f5a5ecd090d..1e3e12311600 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json @@ -37,9 +37,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 84, "end": 86 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -155,9 +151,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -217,9 +211,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -309,9 +301,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -351,9 +341,7 @@ "start": 303, "end": 305 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -427,9 +415,7 @@ "start": 367, "end": 368 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -489,9 +475,7 @@ "start": 408, "end": 409 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json index 8910315cdfce..8a435e119bbb 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json @@ -37,9 +37,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 61, "end": 63 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -155,9 +151,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -217,9 +211,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -309,9 +301,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -351,9 +341,7 @@ "start": 288, "end": 290 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -427,9 +415,7 @@ "start": 352, "end": 353 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -489,9 +475,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -607,9 +591,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -665,9 +647,7 @@ "start": 444, "end": 445 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -730,9 +710,7 @@ "start": 471, "end": 473 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -798,9 +776,7 @@ "start": 500, "end": 502 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -859,9 +835,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -903,9 +877,7 @@ "start": 544, "end": 545 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -968,9 +940,7 @@ "start": 575, "end": 576 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -1012,9 +982,7 @@ "start": 595, "end": 596 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json index 6d64446ee67b..2a448e3c8198 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 29, "end": 40 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -153,9 +149,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -214,9 +208,7 @@ "start": 104, "end": 105 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -250,9 +242,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -437,9 +427,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -490,9 +478,7 @@ "start": 220, "end": 231 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -579,9 +565,7 @@ "start": 245, "end": 246 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -670,9 +654,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -706,9 +688,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json index 8fe19f3035fd..8a587b360e9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 29, "end": 40 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -196,9 +192,7 @@ "start": 81, "end": 92 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -285,9 +279,7 @@ "start": 121, "end": 132 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -364,9 +356,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -425,9 +415,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -461,9 +449,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -812,9 +798,7 @@ "start": 361, "end": 362 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -865,9 +849,7 @@ "start": 371, "end": 382 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1017,9 +999,7 @@ "start": 408, "end": 419 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1126,9 +1106,7 @@ "start": 438, "end": 449 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1215,9 +1193,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1306,9 +1282,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1342,9 +1316,7 @@ "start": 532, "end": 533 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json index d338d31702e6..0472d665a809 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json @@ -37,9 +37,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 93, "end": 104 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -153,9 +149,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -214,9 +208,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -251,9 +243,7 @@ "start": 180, "end": 191 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -400,9 +390,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -470,9 +458,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -506,9 +492,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -769,9 +753,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -822,9 +804,7 @@ "start": 455, "end": 466 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -911,9 +891,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1002,9 +980,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NullLiteral", @@ -1061,9 +1037,7 @@ "start": 539, "end": 550 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1230,9 +1204,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -1330,9 +1302,7 @@ "start": 657, "end": 658 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1366,9 +1336,7 @@ "start": 667, "end": 668 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json b/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json index 50fb27db01bf..6331ab0c5734 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json @@ -37,9 +37,7 @@ "start": 33, "end": 34 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 47, "end": 48 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -173,9 +169,7 @@ "start": 75, "end": 78 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -321,9 +315,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -363,9 +355,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -437,9 +427,7 @@ "start": 206, "end": 209 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -513,9 +501,7 @@ "start": 255, "end": 256 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -555,9 +541,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" }, "function": { "params": [], @@ -629,9 +613,7 @@ "start": 327, "end": 330 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -755,9 +737,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -807,9 +787,7 @@ "start": 509, "end": 510 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -893,9 +871,7 @@ "start": 544, "end": 547 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1348,9 +1324,7 @@ "start": 663, "end": 666 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json index 48d8342772cc..79adb5b0b935 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.json @@ -37,9 +37,7 @@ "start": 18, "end": 21 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -244,9 +242,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -494,9 +490,7 @@ "start": 213, "end": 216 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -567,9 +561,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -590,9 +582,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -667,9 +657,7 @@ "start": 298, "end": 301 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -690,9 +678,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -712,9 +698,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -789,9 +773,7 @@ "start": 358, "end": 361 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -812,9 +794,7 @@ "start": 364, "end": 365 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -834,9 +814,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/derivedTypeDoesNotRequireExtendsClause.json b/crates/swc_ecma_parser/tests/tsc/derivedTypeDoesNotRequireExtendsClause.json index cca5a245add1..4eeb6558dfb0 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedTypeDoesNotRequireExtendsClause.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedTypeDoesNotRequireExtendsClause.json @@ -37,9 +37,7 @@ "start": 18, "end": 21 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 54, "end": 57 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 71, "end": 74 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -217,9 +211,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringCatch.json b/crates/swc_ecma_parser/tests/tsc/destructuringCatch.json index f66f10a6d7ee..9cb88c6d7394 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringCatch.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringCatch.json @@ -183,9 +183,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -205,9 +203,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -371,9 +367,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayExpression", @@ -405,9 +399,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -455,9 +447,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json b/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json index bd74ff94a204..8bafc5bee1c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json @@ -131,9 +131,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "consequent": { @@ -291,9 +289,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -1209,9 +1205,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1236,9 +1230,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1924,9 +1916,7 @@ "start": 923, "end": 934 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringEvaluationOrder.json b/crates/swc_ecma_parser/tests/tsc/destructuringEvaluationOrder.json index 7da93b597e69..e75c35bd7888 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringEvaluationOrder.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringEvaluationOrder.json @@ -155,9 +155,7 @@ "start": 167, "end": 171 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -859,9 +857,7 @@ "start": 858, "end": 859 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json b/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json index 1bc71e7e19a8..faf5ea9305b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json @@ -692,9 +692,7 @@ "start": 229, "end": 230 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -727,9 +725,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -957,9 +953,7 @@ "start": 301, "end": 302 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrayPattern", @@ -1069,9 +1063,7 @@ "start": 343, "end": 344 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrayPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectAssignmentPatternWithNestedSpread.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectAssignmentPatternWithNestedSpread.json index e9b2be45f1b1..6a4b4c31d074 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectAssignmentPatternWithNestedSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectAssignmentPatternWithNestedSpread.json @@ -129,9 +129,7 @@ "start": 91, "end": 92 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -148,9 +146,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -170,9 +166,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -261,9 +255,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json index f30b363fa67d..edb13fc44431 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json @@ -212,9 +212,7 @@ "start": 653, "end": 655 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -263,9 +261,7 @@ "start": 668, "end": 670 }, - "ctxt": 0, - "value": "b2", - "optional": false + "value": "b2" }, "value": { "type": "AssignmentPattern", @@ -318,9 +314,7 @@ "start": 684, "end": 687 }, - "ctxt": 0, - "value": "b21", - "optional": false + "value": "b21" }, "value": { "type": "StringLiteral", @@ -355,9 +349,7 @@ "start": 707, "end": 709 }, - "ctxt": 0, - "value": "b2", - "optional": false + "value": "b2" }, "value": { "type": "ObjectExpression", @@ -374,9 +366,7 @@ "start": 713, "end": 716 }, - "ctxt": 0, - "value": "b21", - "optional": false + "value": "b21" }, "value": { "type": "StringLiteral", @@ -564,9 +554,7 @@ "start": 784, "end": 786 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -615,9 +603,7 @@ "start": 803, "end": 805 }, - "ctxt": 0, - "value": "b5", - "optional": false + "value": "b5" }, "value": { "type": "ObjectPattern", @@ -669,9 +655,7 @@ "start": 822, "end": 824 }, - "ctxt": 0, - "value": "b5", - "optional": false + "value": "b5" }, "value": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json index 307e4e46024f..eca423cff50b 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json @@ -212,9 +212,7 @@ "start": 669, "end": 671 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -263,9 +261,7 @@ "start": 684, "end": 686 }, - "ctxt": 0, - "value": "b2", - "optional": false + "value": "b2" }, "value": { "type": "AssignmentPattern", @@ -318,9 +314,7 @@ "start": 700, "end": 703 }, - "ctxt": 0, - "value": "b21", - "optional": false + "value": "b21" }, "value": { "type": "StringLiteral", @@ -355,9 +349,7 @@ "start": 723, "end": 725 }, - "ctxt": 0, - "value": "b2", - "optional": false + "value": "b2" }, "value": { "type": "ObjectExpression", @@ -374,9 +366,7 @@ "start": 729, "end": 732 }, - "ctxt": 0, - "value": "b21", - "optional": false + "value": "b21" }, "value": { "type": "StringLiteral", @@ -564,9 +554,7 @@ "start": 800, "end": 802 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -615,9 +603,7 @@ "start": 819, "end": 821 }, - "ctxt": 0, - "value": "b5", - "optional": false + "value": "b5" }, "value": { "type": "ObjectPattern", @@ -669,9 +655,7 @@ "start": 838, "end": 840 }, - "ctxt": 0, - "value": "b5", - "optional": false + "value": "b5" }, "value": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json index 08b4cd4290aa..894301f23ce5 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json @@ -327,9 +327,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json index 866a9282b97c..085ca90ae18d 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json @@ -131,9 +131,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -179,9 +177,7 @@ "start": 85, "end": 86 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -273,9 +269,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -319,9 +313,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -388,9 +380,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json index 4e523f5f112a..14326d01e9d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json @@ -47,9 +47,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -142,9 +138,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -190,9 +184,7 @@ "start": 86, "end": 87 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -284,9 +276,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -330,9 +320,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -399,9 +387,7 @@ "start": 154, "end": 157 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json index 9b382d7fbbf1..027f23137338 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json @@ -122,9 +122,7 @@ "start": 102, "end": 104 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "NumericLiteral", @@ -248,9 +246,7 @@ "start": 145, "end": 147 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "NumericLiteral", @@ -392,9 +388,7 @@ "start": 233, "end": 235 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "StringLiteral", @@ -518,9 +512,7 @@ "start": 281, "end": 283 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "StringLiteral", @@ -662,9 +654,7 @@ "start": 381, "end": 383 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "StringLiteral", @@ -684,9 +674,7 @@ "start": 391, "end": 393 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -810,9 +798,7 @@ "start": 436, "end": 438 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "StringLiteral", @@ -832,9 +818,7 @@ "start": 446, "end": 448 }, - "ctxt": 0, - "value": "b2", - "optional": false + "value": "b2" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json index fd3ed27ab250..b08297e57b36 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json @@ -404,9 +404,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" }, "value": { "type": "ObjectPattern", @@ -466,9 +464,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "ArrayPattern", @@ -1380,9 +1376,7 @@ "start": 968, "end": 969 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1402,9 +1396,7 @@ "start": 974, "end": 975 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1484,9 +1476,7 @@ "start": 1007, "end": 1008 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -1522,9 +1512,7 @@ "start": 1014, "end": 1015 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -1581,9 +1569,7 @@ "start": 1027, "end": 1028 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -1600,9 +1586,7 @@ "start": 1032, "end": 1033 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1622,9 +1606,7 @@ "start": 1041, "end": 1042 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -1641,9 +1623,7 @@ "start": 1046, "end": 1047 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "NumericLiteral", @@ -1821,9 +1801,7 @@ "start": 1105, "end": 1106 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ObjectPattern", @@ -2389,9 +2367,7 @@ "start": 1333, "end": 1334 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2411,9 +2387,7 @@ "start": 1341, "end": 1342 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2485,9 +2459,7 @@ "start": 1372, "end": 1373 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2507,9 +2479,7 @@ "start": 1380, "end": 1381 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -2800,9 +2770,7 @@ "start": 1684, "end": 1685 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -2838,9 +2806,7 @@ "start": 1691, "end": 1692 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -2976,9 +2942,7 @@ "start": 1725, "end": 1726 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3235,9 +3199,7 @@ "start": 1805, "end": 1806 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -3549,9 +3511,7 @@ "start": 1892, "end": 1893 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -3568,9 +3528,7 @@ "start": 1898, "end": 1899 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3590,9 +3548,7 @@ "start": 1904, "end": 1905 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -3609,9 +3565,7 @@ "start": 1909, "end": 1910 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "StringLiteral", @@ -3677,9 +3631,7 @@ "start": 1984, "end": 1985 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -3696,9 +3648,7 @@ "start": 1990, "end": 1991 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -3718,9 +3668,7 @@ "start": 2003, "end": 2004 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -3737,9 +3685,7 @@ "start": 2008, "end": 2009 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "BooleanLiteral", @@ -3831,9 +3777,7 @@ "start": 2127, "end": 2128 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3932,9 +3876,7 @@ "start": 2225, "end": 2226 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3994,9 +3936,7 @@ "start": 2275, "end": 2276 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -4648,9 +4588,7 @@ "start": 2786, "end": 2797 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -4677,9 +4615,7 @@ "start": 2808, "end": 2810 }, - "ctxt": 0, - "value": "d3", - "optional": false + "value": "d3" }, "function": { "params": [], @@ -4722,9 +4658,7 @@ "start": 2821, "end": 2823 }, - "ctxt": 0, - "value": "d4", - "optional": false + "value": "d4" }, "function": { "params": [], @@ -4767,9 +4701,7 @@ "start": 2834, "end": 2836 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "function": { "params": [ @@ -4911,9 +4843,7 @@ "start": 2884, "end": 2886 }, - "ctxt": 0, - "value": "d3", - "optional": false + "value": "d3" }, "function": { "params": [ @@ -5009,9 +4939,7 @@ "start": 2906, "end": 2908 }, - "ctxt": 0, - "value": "d4", - "optional": false + "value": "d4" }, "function": { "params": [ @@ -5131,9 +5059,7 @@ "start": 2928, "end": 2930 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "function": { "params": [ @@ -5334,9 +5260,7 @@ "start": 2973, "end": 2974 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -5356,9 +5280,7 @@ "start": 2979, "end": 2980 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -5458,9 +5380,7 @@ "start": 3377, "end": 3378 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -5782,9 +5702,7 @@ "start": 3568, "end": 3569 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -5893,9 +5811,7 @@ "start": 3642, "end": 3643 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json index c7257715dfda..ec18898084f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json @@ -404,9 +404,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" }, "value": { "type": "ObjectPattern", @@ -466,9 +464,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "ArrayPattern", @@ -1380,9 +1376,7 @@ "start": 997, "end": 998 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1402,9 +1396,7 @@ "start": 1003, "end": 1004 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1484,9 +1476,7 @@ "start": 1036, "end": 1037 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -1522,9 +1512,7 @@ "start": 1043, "end": 1044 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -1581,9 +1569,7 @@ "start": 1056, "end": 1057 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -1600,9 +1586,7 @@ "start": 1061, "end": 1062 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1622,9 +1606,7 @@ "start": 1070, "end": 1071 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -1641,9 +1623,7 @@ "start": 1075, "end": 1076 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "NumericLiteral", @@ -1821,9 +1801,7 @@ "start": 1134, "end": 1135 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ObjectPattern", @@ -2389,9 +2367,7 @@ "start": 1362, "end": 1363 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2411,9 +2387,7 @@ "start": 1370, "end": 1371 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2485,9 +2459,7 @@ "start": 1401, "end": 1402 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2507,9 +2479,7 @@ "start": 1409, "end": 1410 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -2800,9 +2770,7 @@ "start": 1713, "end": 1714 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -2838,9 +2806,7 @@ "start": 1720, "end": 1721 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -2976,9 +2942,7 @@ "start": 1754, "end": 1755 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3235,9 +3199,7 @@ "start": 1834, "end": 1835 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -3549,9 +3511,7 @@ "start": 1921, "end": 1922 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -3568,9 +3528,7 @@ "start": 1927, "end": 1928 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3590,9 +3548,7 @@ "start": 1933, "end": 1934 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -3609,9 +3565,7 @@ "start": 1938, "end": 1939 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "StringLiteral", @@ -3677,9 +3631,7 @@ "start": 2013, "end": 2014 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -3696,9 +3648,7 @@ "start": 2019, "end": 2020 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -3718,9 +3668,7 @@ "start": 2032, "end": 2033 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -3737,9 +3685,7 @@ "start": 2037, "end": 2038 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "BooleanLiteral", @@ -3831,9 +3777,7 @@ "start": 2156, "end": 2157 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3932,9 +3876,7 @@ "start": 2253, "end": 2254 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3994,9 +3936,7 @@ "start": 2303, "end": 2304 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -4648,9 +4588,7 @@ "start": 2814, "end": 2825 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -4677,9 +4615,7 @@ "start": 2836, "end": 2838 }, - "ctxt": 0, - "value": "d3", - "optional": false + "value": "d3" }, "function": { "params": [], @@ -4722,9 +4658,7 @@ "start": 2849, "end": 2851 }, - "ctxt": 0, - "value": "d4", - "optional": false + "value": "d4" }, "function": { "params": [], @@ -4767,9 +4701,7 @@ "start": 2862, "end": 2864 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "function": { "params": [ @@ -4911,9 +4843,7 @@ "start": 2912, "end": 2914 }, - "ctxt": 0, - "value": "d3", - "optional": false + "value": "d3" }, "function": { "params": [ @@ -5009,9 +4939,7 @@ "start": 2934, "end": 2936 }, - "ctxt": 0, - "value": "d4", - "optional": false + "value": "d4" }, "function": { "params": [ @@ -5131,9 +5059,7 @@ "start": 2956, "end": 2958 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "function": { "params": [ @@ -5334,9 +5260,7 @@ "start": 3001, "end": 3002 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -5356,9 +5280,7 @@ "start": 3007, "end": 3008 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -5458,9 +5380,7 @@ "start": 3405, "end": 3406 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -5782,9 +5702,7 @@ "start": 3596, "end": 3597 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -5893,9 +5811,7 @@ "start": 3670, "end": 3671 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json index ed0b4809e0bc..1fcc9bde9066 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json @@ -404,9 +404,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" }, "value": { "type": "ObjectPattern", @@ -466,9 +464,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "ArrayPattern", @@ -1380,9 +1376,7 @@ "start": 1018, "end": 1019 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1402,9 +1396,7 @@ "start": 1024, "end": 1025 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1484,9 +1476,7 @@ "start": 1057, "end": 1058 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -1522,9 +1512,7 @@ "start": 1064, "end": 1065 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -1581,9 +1569,7 @@ "start": 1077, "end": 1078 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -1600,9 +1586,7 @@ "start": 1082, "end": 1083 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1622,9 +1606,7 @@ "start": 1091, "end": 1092 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -1641,9 +1623,7 @@ "start": 1096, "end": 1097 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "NumericLiteral", @@ -1821,9 +1801,7 @@ "start": 1155, "end": 1156 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ObjectPattern", @@ -2389,9 +2367,7 @@ "start": 1383, "end": 1384 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2411,9 +2387,7 @@ "start": 1391, "end": 1392 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2485,9 +2459,7 @@ "start": 1422, "end": 1423 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2507,9 +2479,7 @@ "start": 1430, "end": 1431 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -2602,9 +2572,7 @@ "start": 1602, "end": 1603 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectPattern", @@ -2640,9 +2608,7 @@ "start": 1609, "end": 1610 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", @@ -2778,9 +2744,7 @@ "start": 1643, "end": 1644 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3037,9 +3001,7 @@ "start": 1723, "end": 1724 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -3351,9 +3313,7 @@ "start": 1810, "end": 1811 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -3370,9 +3330,7 @@ "start": 1816, "end": 1817 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3392,9 +3350,7 @@ "start": 1822, "end": 1823 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -3411,9 +3367,7 @@ "start": 1827, "end": 1828 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "StringLiteral", @@ -3479,9 +3433,7 @@ "start": 1902, "end": 1903 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -3498,9 +3450,7 @@ "start": 1908, "end": 1909 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -3520,9 +3470,7 @@ "start": 1921, "end": 1922 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -3539,9 +3487,7 @@ "start": 1926, "end": 1927 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "BooleanLiteral", @@ -3633,9 +3579,7 @@ "start": 2045, "end": 2046 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3734,9 +3678,7 @@ "start": 2143, "end": 2144 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -3796,9 +3738,7 @@ "start": 2193, "end": 2194 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -4326,9 +4266,7 @@ "start": 2660, "end": 2671 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -4355,9 +4293,7 @@ "start": 2682, "end": 2684 }, - "ctxt": 0, - "value": "d3", - "optional": false + "value": "d3" }, "function": { "params": [], @@ -4400,9 +4336,7 @@ "start": 2695, "end": 2697 }, - "ctxt": 0, - "value": "d4", - "optional": false + "value": "d4" }, "function": { "params": [], @@ -4445,9 +4379,7 @@ "start": 2708, "end": 2710 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "function": { "params": [ @@ -4589,9 +4521,7 @@ "start": 2758, "end": 2760 }, - "ctxt": 0, - "value": "d3", - "optional": false + "value": "d3" }, "function": { "params": [ @@ -4687,9 +4617,7 @@ "start": 2780, "end": 2782 }, - "ctxt": 0, - "value": "d4", - "optional": false + "value": "d4" }, "function": { "params": [ @@ -4809,9 +4737,7 @@ "start": 2802, "end": 2804 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "function": { "params": [ @@ -5012,9 +4938,7 @@ "start": 2846, "end": 2847 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -5034,9 +4958,7 @@ "start": 2852, "end": 2853 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -5136,9 +5058,7 @@ "start": 3250, "end": 3251 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -5460,9 +5380,7 @@ "start": 3441, "end": 3442 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -5571,9 +5489,7 @@ "start": 3515, "end": 3516 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -5781,9 +5697,7 @@ "start": 3612, "end": 3613 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json index 65f0d82a9efd..cff591854f2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json @@ -2428,9 +2428,7 @@ "start": 1312, "end": 1313 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2522,9 +2520,7 @@ "start": 1333, "end": 1334 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2552,9 +2548,7 @@ "start": 1338, "end": 1339 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json index ef183ffeff06..c8450d06751e 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json @@ -2428,9 +2428,7 @@ "start": 1341, "end": 1342 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2522,9 +2520,7 @@ "start": 1362, "end": 1363 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2552,9 +2548,7 @@ "start": 1367, "end": 1368 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json index 65f0d82a9efd..cff591854f2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json @@ -2428,9 +2428,7 @@ "start": 1312, "end": 1313 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2522,9 +2520,7 @@ "start": 1333, "end": 1334 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2552,9 +2548,7 @@ "start": 1338, "end": 1339 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json index 1804877f31dc..a593f2281a91 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json @@ -66,9 +66,7 @@ "start": 87, "end": 98 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -141,9 +139,7 @@ "start": 143, "end": 146 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 161, "end": 172 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -274,9 +268,7 @@ "start": 218, "end": 221 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -317,9 +309,7 @@ "start": 235, "end": 246 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -392,9 +382,7 @@ "start": 283, "end": 286 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -435,9 +423,7 @@ "start": 299, "end": 310 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -565,9 +551,7 @@ "start": 379, "end": 380 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -1274,9 +1258,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -1463,9 +1445,7 @@ "start": 621, "end": 622 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1525,9 +1505,7 @@ "start": 635, "end": 636 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -1586,9 +1564,7 @@ "start": 650, "end": 651 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1648,9 +1624,7 @@ "start": 672, "end": 673 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -1721,9 +1695,7 @@ "start": 696, "end": 697 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -1782,9 +1754,7 @@ "start": 711, "end": 712 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1844,9 +1814,7 @@ "start": 733, "end": 734 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -1917,9 +1885,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -1978,9 +1944,7 @@ "start": 776, "end": 777 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -2051,9 +2015,7 @@ "start": 799, "end": 800 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -2124,9 +2086,7 @@ "start": 835, "end": 836 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -2236,9 +2196,7 @@ "start": 867, "end": 868 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2298,9 +2256,7 @@ "start": 881, "end": 882 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json index 7e902c880b3f..6dc8884648ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json @@ -68,9 +68,7 @@ "start": 147, "end": 153 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectPattern", @@ -439,9 +437,7 @@ "start": 268, "end": 274 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "value": { "type": "StringLiteral", @@ -461,9 +457,7 @@ "start": 281, "end": 287 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -480,9 +474,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", @@ -545,9 +537,7 @@ "start": 310, "end": 316 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "value": { "type": "StringLiteral", @@ -567,9 +557,7 @@ "start": 323, "end": 329 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -586,9 +574,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", @@ -651,9 +637,7 @@ "start": 352, "end": 358 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "value": { "type": "StringLiteral", @@ -673,9 +657,7 @@ "start": 367, "end": 373 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -692,9 +674,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringReassignsRightHandSide.json b/crates/swc_ecma_parser/tests/tsc/destructuringReassignsRightHandSide.json index ca0983b5460a..7db37bd74411 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringReassignsRightHandSide.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringReassignsRightHandSide.json @@ -61,9 +61,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -83,9 +81,7 @@ "start": 42, "end": 45 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringSameNames.json b/crates/swc_ecma_parser/tests/tsc/destructuringSameNames.json index 22ad6b5454ae..793624e211c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringSameNames.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringSameNames.json @@ -55,9 +55,7 @@ "start": 28, "end": 31 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -90,9 +88,7 @@ "start": 43, "end": 46 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -193,9 +189,7 @@ "start": 71, "end": 74 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -265,9 +259,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -300,9 +292,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -353,9 +343,7 @@ "start": 119, "end": 122 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -407,9 +395,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -479,9 +465,7 @@ "start": 158, "end": 161 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "Identifier", @@ -514,9 +498,7 @@ "start": 173, "end": 176 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -536,9 +518,7 @@ "start": 181, "end": 184 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -589,9 +569,7 @@ "start": 196, "end": 199 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "Identifier", @@ -643,9 +621,7 @@ "start": 216, "end": 219 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -665,9 +641,7 @@ "start": 224, "end": 227 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -718,9 +692,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -742,9 +714,7 @@ "start": 249, "end": 252 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -777,9 +747,7 @@ "start": 264, "end": 267 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -830,9 +798,7 @@ "start": 278, "end": 281 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -854,9 +820,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "Identifier", @@ -889,9 +853,7 @@ "start": 303, "end": 306 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -911,9 +873,7 @@ "start": 311, "end": 314 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -964,9 +924,7 @@ "start": 326, "end": 329 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -988,9 +946,7 @@ "start": 336, "end": 339 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -1023,9 +979,7 @@ "start": 351, "end": 354 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -1596,9 +1550,7 @@ "start": 569, "end": 573 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "value": { "type": "NumericLiteral", @@ -1666,9 +1618,7 @@ "start": 593, "end": 597 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" }, "value": { "type": "Identifier", @@ -1701,9 +1651,7 @@ "start": 610, "end": 614 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "value": { "type": "NumericLiteral", @@ -1723,9 +1671,7 @@ "start": 620, "end": 624 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" }, "value": { "type": "NumericLiteral", @@ -1774,9 +1720,7 @@ "start": 639, "end": 643 }, - "ctxt": 0, - "value": "bar3", - "optional": false + "value": "bar3" }, "value": { "type": "Identifier", @@ -1828,9 +1772,7 @@ "start": 662, "end": 666 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "value": { "type": "NumericLiteral", @@ -1850,9 +1792,7 @@ "start": 672, "end": 676 }, - "ctxt": 0, - "value": "bar3", - "optional": false + "value": "bar3" }, "value": { "type": "NumericLiteral", @@ -1950,9 +1890,7 @@ "start": 710, "end": 714 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "value": { "type": "NumericLiteral", @@ -2020,9 +1958,7 @@ "start": 736, "end": 740 }, - "ctxt": 0, - "value": "bar5", - "optional": false + "value": "bar5" }, "value": { "type": "Identifier", @@ -2055,9 +1991,7 @@ "start": 753, "end": 757 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" }, "value": { "type": "NumericLiteral", @@ -2077,9 +2011,7 @@ "start": 763, "end": 767 }, - "ctxt": 0, - "value": "bar5", - "optional": false + "value": "bar5" }, "value": { "type": "NumericLiteral", @@ -2128,9 +2060,7 @@ "start": 784, "end": 788 }, - "ctxt": 0, - "value": "bar6", - "optional": false + "value": "bar6" }, "value": { "type": "Identifier", @@ -2182,9 +2112,7 @@ "start": 807, "end": 811 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" }, "value": { "type": "NumericLiteral", @@ -2204,9 +2132,7 @@ "start": 817, "end": 821 }, - "ctxt": 0, - "value": "bar6", - "optional": false + "value": "bar6" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringSpread.json b/crates/swc_ecma_parser/tests/tsc/destructuringSpread.json index 2c437f799b75..a8c73a532099 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringSpread.json @@ -81,9 +81,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -162,9 +160,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -296,9 +292,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -331,9 +325,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -353,9 +345,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -552,9 +542,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -577,9 +565,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -602,9 +588,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -627,9 +611,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json index cee2d3ac0977..e644c0089ac8 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json @@ -170,9 +170,7 @@ "start": 210, "end": 212 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "NumericLiteral", @@ -192,9 +190,7 @@ "start": 218, "end": 220 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "StringLiteral", @@ -494,9 +490,7 @@ "start": 530, "end": 532 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "AssignmentPattern", @@ -549,9 +543,7 @@ "start": 546, "end": 549 }, - "ctxt": 0, - "value": "b11", - "optional": false + "value": "b11" }, "value": { "type": "StringLiteral", @@ -586,9 +578,7 @@ "start": 569, "end": 571 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "ObjectExpression", @@ -605,9 +595,7 @@ "start": 575, "end": 578 }, - "ctxt": 0, - "value": "b11", - "optional": false + "value": "b11" }, "value": { "type": "StringLiteral", @@ -670,9 +658,7 @@ "start": 606, "end": 608 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -691,9 +677,7 @@ "start": 616, "end": 618 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -866,9 +850,7 @@ "start": 681, "end": 683 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -887,9 +869,7 @@ "start": 692, "end": 694 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -1572,9 +1552,7 @@ "start": 1800, "end": 1801 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "ArrayPattern", @@ -1637,9 +1615,7 @@ "start": 1819, "end": 1821 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -1659,9 +1635,7 @@ "start": 1829, "end": 1831 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -1700,9 +1674,7 @@ "start": 1845, "end": 1846 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "ArrayExpression", @@ -1752,9 +1724,7 @@ "start": 1857, "end": 1859 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -1774,9 +1744,7 @@ "start": 1864, "end": 1866 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -1831,9 +1799,7 @@ "start": 1882, "end": 1883 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayPattern", @@ -1879,9 +1845,7 @@ "start": 1896, "end": 1898 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "Identifier", @@ -1942,9 +1906,7 @@ "start": 1919, "end": 1920 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayExpression", @@ -1994,9 +1956,7 @@ "start": 1931, "end": 1933 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "NumericLiteral", @@ -2016,9 +1976,7 @@ "start": 1938, "end": 1940 }, - "ctxt": 0, - "value": "f5", - "optional": false + "value": "f5" }, "value": { "type": "NumericLiteral", @@ -2073,9 +2031,7 @@ "start": 2276, "end": 2277 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectPattern", @@ -2251,9 +2207,7 @@ "start": 2331, "end": 2332 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectExpression", @@ -2270,9 +2224,7 @@ "start": 2336, "end": 2338 }, - "ctxt": 0, - "value": "g1", - "optional": false + "value": "g1" }, "value": { "type": "ArrayExpression", @@ -2348,9 +2300,7 @@ "start": 2357, "end": 2358 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ObjectPattern", @@ -2526,9 +2476,7 @@ "start": 2415, "end": 2416 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ObjectExpression", @@ -2545,9 +2493,7 @@ "start": 2420, "end": 2422 }, - "ctxt": 0, - "value": "h1", - "optional": false + "value": "h1" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json index a772d830b92a..e1f2db47ce7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json @@ -170,9 +170,7 @@ "start": 239, "end": 241 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "NumericLiteral", @@ -192,9 +190,7 @@ "start": 247, "end": 249 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "StringLiteral", @@ -494,9 +490,7 @@ "start": 559, "end": 561 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "AssignmentPattern", @@ -549,9 +543,7 @@ "start": 575, "end": 578 }, - "ctxt": 0, - "value": "b11", - "optional": false + "value": "b11" }, "value": { "type": "StringLiteral", @@ -586,9 +578,7 @@ "start": 598, "end": 600 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "ObjectExpression", @@ -605,9 +595,7 @@ "start": 604, "end": 607 }, - "ctxt": 0, - "value": "b11", - "optional": false + "value": "b11" }, "value": { "type": "StringLiteral", @@ -670,9 +658,7 @@ "start": 635, "end": 637 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -691,9 +677,7 @@ "start": 645, "end": 647 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -866,9 +850,7 @@ "start": 710, "end": 712 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -887,9 +869,7 @@ "start": 721, "end": 723 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -1572,9 +1552,7 @@ "start": 1826, "end": 1827 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "ArrayPattern", @@ -1637,9 +1615,7 @@ "start": 1845, "end": 1847 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -1659,9 +1635,7 @@ "start": 1855, "end": 1857 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -1700,9 +1674,7 @@ "start": 1871, "end": 1872 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "ArrayExpression", @@ -1752,9 +1724,7 @@ "start": 1883, "end": 1885 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -1774,9 +1744,7 @@ "start": 1890, "end": 1892 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -1831,9 +1799,7 @@ "start": 1907, "end": 1908 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayPattern", @@ -1879,9 +1845,7 @@ "start": 1921, "end": 1923 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "Identifier", @@ -1942,9 +1906,7 @@ "start": 1944, "end": 1945 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayExpression", @@ -1994,9 +1956,7 @@ "start": 1956, "end": 1958 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "NumericLiteral", @@ -2016,9 +1976,7 @@ "start": 1963, "end": 1965 }, - "ctxt": 0, - "value": "f5", - "optional": false + "value": "f5" }, "value": { "type": "NumericLiteral", @@ -2073,9 +2031,7 @@ "start": 2301, "end": 2302 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectPattern", @@ -2251,9 +2207,7 @@ "start": 2356, "end": 2357 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectExpression", @@ -2270,9 +2224,7 @@ "start": 2361, "end": 2363 }, - "ctxt": 0, - "value": "g1", - "optional": false + "value": "g1" }, "value": { "type": "ArrayExpression", @@ -2348,9 +2300,7 @@ "start": 2382, "end": 2383 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ObjectPattern", @@ -2526,9 +2476,7 @@ "start": 2440, "end": 2441 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ObjectExpression", @@ -2545,9 +2493,7 @@ "start": 2445, "end": 2447 }, - "ctxt": 0, - "value": "h1", - "optional": false + "value": "h1" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json index 6caadbab993a..11d554d8265a 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json @@ -170,9 +170,7 @@ "start": 226, "end": 228 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "NumericLiteral", @@ -192,9 +190,7 @@ "start": 234, "end": 236 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "StringLiteral", @@ -494,9 +490,7 @@ "start": 546, "end": 548 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "AssignmentPattern", @@ -549,9 +543,7 @@ "start": 562, "end": 565 }, - "ctxt": 0, - "value": "b11", - "optional": false + "value": "b11" }, "value": { "type": "StringLiteral", @@ -586,9 +578,7 @@ "start": 585, "end": 587 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "ObjectExpression", @@ -605,9 +595,7 @@ "start": 591, "end": 594 }, - "ctxt": 0, - "value": "b11", - "optional": false + "value": "b11" }, "value": { "type": "StringLiteral", @@ -670,9 +658,7 @@ "start": 622, "end": 624 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -691,9 +677,7 @@ "start": 632, "end": 634 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -866,9 +850,7 @@ "start": 697, "end": 699 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -887,9 +869,7 @@ "start": 708, "end": 710 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -1572,9 +1552,7 @@ "start": 1816, "end": 1817 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "ArrayPattern", @@ -1637,9 +1615,7 @@ "start": 1835, "end": 1837 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -1659,9 +1635,7 @@ "start": 1845, "end": 1847 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -1700,9 +1674,7 @@ "start": 1861, "end": 1862 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "ArrayExpression", @@ -1752,9 +1724,7 @@ "start": 1873, "end": 1875 }, - "ctxt": 0, - "value": "b1", - "optional": false + "value": "b1" }, "value": { "type": "NumericLiteral", @@ -1774,9 +1744,7 @@ "start": 1880, "end": 1882 }, - "ctxt": 0, - "value": "b4", - "optional": false + "value": "b4" }, "value": { "type": "NumericLiteral", @@ -1831,9 +1799,7 @@ "start": 1898, "end": 1899 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayPattern", @@ -1879,9 +1845,7 @@ "start": 1912, "end": 1914 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "Identifier", @@ -1942,9 +1906,7 @@ "start": 1935, "end": 1936 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayExpression", @@ -1994,9 +1956,7 @@ "start": 1947, "end": 1949 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "value": { "type": "NumericLiteral", @@ -2016,9 +1976,7 @@ "start": 1954, "end": 1956 }, - "ctxt": 0, - "value": "f5", - "optional": false + "value": "f5" }, "value": { "type": "NumericLiteral", @@ -2073,9 +2031,7 @@ "start": 2292, "end": 2293 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectPattern", @@ -2251,9 +2207,7 @@ "start": 2347, "end": 2348 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectExpression", @@ -2270,9 +2224,7 @@ "start": 2352, "end": 2354 }, - "ctxt": 0, - "value": "g1", - "optional": false + "value": "g1" }, "value": { "type": "ArrayExpression", @@ -2348,9 +2300,7 @@ "start": 2373, "end": 2374 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ObjectPattern", @@ -2526,9 +2476,7 @@ "start": 2431, "end": 2432 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ObjectExpression", @@ -2545,9 +2493,7 @@ "start": 2436, "end": 2438 }, - "ctxt": 0, - "value": "h1", - "optional": false + "value": "h1" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json index 63290ec9cc0d..63b89b72f6cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json @@ -170,9 +170,7 @@ "start": 210, "end": 212 }, - "ctxt": 0, - "value": "a1", - "optional": false + "value": "a1" }, "value": { "type": "BooleanLiteral", @@ -191,9 +189,7 @@ "start": 220, "end": 222 }, - "ctxt": 0, - "value": "a2", - "optional": false + "value": "a2" }, "value": { "type": "NumericLiteral", @@ -503,9 +499,7 @@ "start": 564, "end": 566 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -524,9 +518,7 @@ "start": 574, "end": 576 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "StringLiteral", @@ -699,9 +691,7 @@ "start": 639, "end": 641 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "value": { "type": "BooleanLiteral", @@ -720,9 +710,7 @@ "start": 650, "end": 652 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "value": { "type": "NumericLiteral", @@ -803,9 +791,7 @@ "start": 921, "end": 923 }, - "ctxt": 0, - "value": "c3", - "optional": false + "value": "c3" }, "value": { "type": "Identifier", @@ -918,9 +904,7 @@ "start": 955, "end": 957 }, - "ctxt": 0, - "value": "c3", - "optional": false + "value": "c3" }, "value": { "type": "NumericLiteral", @@ -940,9 +924,7 @@ "start": 962, "end": 964 }, - "ctxt": 0, - "value": "c5", - "optional": false + "value": "c5" }, "value": { "type": "NumericLiteral", @@ -994,9 +976,7 @@ "start": 1308, "end": 1309 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ObjectPattern", @@ -1171,9 +1151,7 @@ "start": 1365, "end": 1366 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ObjectExpression", @@ -1190,9 +1168,7 @@ "start": 1370, "end": 1372 }, - "ctxt": 0, - "value": "d1", - "optional": false + "value": "d1" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers.json b/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers.json index 88c7ea438b56..a5fe0838f5db 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers.json @@ -138,9 +138,7 @@ "start": 69, "end": 70 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -160,9 +158,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -322,9 +318,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -384,9 +378,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -406,9 +398,7 @@ "start": 181, "end": 182 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -615,9 +605,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -677,9 +665,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -739,9 +725,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -761,9 +745,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -873,9 +855,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -895,9 +875,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1002,9 +980,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1024,9 +1000,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1144,9 +1118,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1251,9 +1223,7 @@ "start": 538, "end": 539 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1313,9 +1283,7 @@ "start": 552, "end": 553 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1335,9 +1303,7 @@ "start": 558, "end": 559 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1586,9 +1552,7 @@ "start": 672, "end": 673 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1648,9 +1612,7 @@ "start": 686, "end": 687 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1710,9 +1672,7 @@ "start": 700, "end": 701 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1732,9 +1692,7 @@ "start": 706, "end": 707 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1795,9 +1753,7 @@ "start": 783, "end": 784 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectPattern", @@ -1884,9 +1840,7 @@ "start": 809, "end": 810 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -1990,9 +1944,7 @@ "start": 833, "end": 834 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -2051,9 +2003,7 @@ "start": 848, "end": 849 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -2070,9 +2020,7 @@ "start": 853, "end": 854 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2135,9 +2083,7 @@ "start": 869, "end": 870 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -2154,9 +2100,7 @@ "start": 874, "end": 875 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2219,9 +2163,7 @@ "start": 890, "end": 891 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -2238,9 +2180,7 @@ "start": 895, "end": 896 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2260,9 +2200,7 @@ "start": 901, "end": 902 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json index dbfd1a8d1326..e62be6ade133 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json @@ -1133,9 +1133,7 @@ "start": 405, "end": 409 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -1155,9 +1153,7 @@ "start": 416, "end": 420 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "NumericLiteral", @@ -1241,9 +1237,7 @@ "start": 455, "end": 459 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -1263,9 +1257,7 @@ "start": 466, "end": 470 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json index df371023c1d6..e4cb8e9a4cad 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json @@ -550,9 +550,7 @@ "start": 290, "end": 294 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -608,9 +606,7 @@ "start": 328, "end": 332 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -635,9 +631,7 @@ "start": 337, "end": 341 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -679,9 +673,7 @@ "start": 364, "end": 368 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -744,9 +736,7 @@ "start": 405, "end": 407 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -771,9 +761,7 @@ "start": 412, "end": 418 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } }, @@ -799,9 +787,7 @@ "start": 423, "end": 429 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } } @@ -843,9 +829,7 @@ "start": 452, "end": 456 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -901,9 +885,7 @@ "start": 493, "end": 498 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -928,9 +910,7 @@ "start": 503, "end": 509 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -1073,9 +1053,7 @@ "start": 596, "end": 600 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -1130,9 +1108,7 @@ "start": 636, "end": 640 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -1157,9 +1133,7 @@ "start": 645, "end": 649 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -1217,9 +1191,7 @@ "start": 686, "end": 691 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -1244,9 +1216,7 @@ "start": 696, "end": 702 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -1311,9 +1281,7 @@ "start": 739, "end": 741 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -1338,9 +1306,7 @@ "start": 746, "end": 752 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } }, @@ -1366,9 +1332,7 @@ "start": 757, "end": 763 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } } @@ -1625,9 +1589,7 @@ "start": 906, "end": 910 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -1682,9 +1644,7 @@ "start": 946, "end": 950 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -1709,9 +1669,7 @@ "start": 955, "end": 959 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -1769,9 +1727,7 @@ "start": 996, "end": 1001 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -1796,9 +1752,7 @@ "start": 1006, "end": 1012 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -1863,9 +1817,7 @@ "start": 1049, "end": 1051 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -1890,9 +1842,7 @@ "start": 1056, "end": 1062 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } }, @@ -1918,9 +1868,7 @@ "start": 1067, "end": 1073 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } } @@ -2087,9 +2035,7 @@ "start": 1165, "end": 1169 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -2144,9 +2090,7 @@ "start": 1205, "end": 1209 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -2171,9 +2115,7 @@ "start": 1214, "end": 1218 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -2231,9 +2173,7 @@ "start": 1255, "end": 1260 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -2258,9 +2198,7 @@ "start": 1265, "end": 1271 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -2325,9 +2263,7 @@ "start": 1308, "end": 1310 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -2352,9 +2288,7 @@ "start": 1315, "end": 1321 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } }, @@ -2380,9 +2314,7 @@ "start": 1326, "end": 1332 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } } @@ -2825,9 +2757,7 @@ "start": 1509, "end": 1513 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -2902,9 +2832,7 @@ "start": 1586, "end": 1590 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -3087,9 +3015,7 @@ "start": 1739, "end": 1743 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -3253,9 +3179,7 @@ "start": 1874, "end": 1878 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -3477,9 +3401,7 @@ "start": 1970, "end": 1974 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -3629,9 +3551,7 @@ "start": 2088, "end": 2092 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3857,9 +3777,7 @@ "start": 2363, "end": 2367 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4077,9 +3995,7 @@ "start": 2646, "end": 2650 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4252,9 +4168,7 @@ "start": 2817, "end": 2821 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json index d103aa2af7c1..eea44be424d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json @@ -354,9 +354,7 @@ "start": 134, "end": 138 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -404,9 +402,7 @@ "start": 162, "end": 163 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -447,9 +443,7 @@ "start": 186, "end": 190 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -497,9 +491,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -541,9 +533,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -900,9 +890,7 @@ "start": 374, "end": 378 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -949,9 +937,7 @@ "start": 416, "end": 417 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1008,9 +994,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1060,9 +1044,7 @@ "start": 524, "end": 525 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1337,9 +1319,7 @@ "start": 615, "end": 616 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NullLiteral", @@ -1357,9 +1337,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1379,9 +1357,7 @@ "start": 634, "end": 635 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -1678,9 +1654,7 @@ "start": 728, "end": 729 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1729,9 +1703,7 @@ "start": 749, "end": 750 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -2100,9 +2072,7 @@ "start": 886, "end": 891 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } } }, @@ -2142,9 +2112,7 @@ "start": 905, "end": 910 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -2192,9 +2160,7 @@ "start": 939, "end": 944 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "property": { @@ -2203,9 +2169,7 @@ "start": 945, "end": 952 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } } @@ -2260,9 +2224,7 @@ "start": 969, "end": 974 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -2322,9 +2284,7 @@ "start": 989, "end": 994 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "value": { "type": "NewExpression", @@ -2868,9 +2828,7 @@ "start": 1285, "end": 1290 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "right": { @@ -2952,9 +2910,7 @@ "start": 1339, "end": 1344 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "definite": false @@ -3034,9 +2990,7 @@ "start": 1380, "end": 1384 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -3126,9 +3080,7 @@ "start": 1435, "end": 1440 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "definite": false @@ -3198,9 +3150,7 @@ "start": 1476, "end": 1480 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -3607,9 +3557,7 @@ "start": 1641, "end": 1644 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "consequent": { @@ -3781,9 +3729,7 @@ "start": 1737, "end": 1740 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "right": { @@ -4425,9 +4371,7 @@ "start": 2040, "end": 2044 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -4476,9 +4420,7 @@ "start": 2072, "end": 2076 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -4520,9 +4462,7 @@ "start": 2111, "end": 2116 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } } } @@ -4993,9 +4933,7 @@ "start": 2335, "end": 2339 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -5044,9 +4982,7 @@ "start": 2366, "end": 2371 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -5088,9 +5024,7 @@ "start": 2411, "end": 2416 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -5340,9 +5274,7 @@ "start": 2525, "end": 2529 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -5391,9 +5323,7 @@ "start": 2556, "end": 2561 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -5435,9 +5365,7 @@ "start": 2601, "end": 2606 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json index aeb36b9b0174..e5d03e45a64f 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json @@ -433,9 +433,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "err", - "optional": false + "value": "err" } }, "right": { @@ -485,9 +483,7 @@ "start": 284, "end": 292 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json index e4a152e1eb02..924fe78381a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json @@ -50,9 +50,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "DoWhileStatement", @@ -88,9 +86,7 @@ "start": 112, "end": 115 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -109,9 +105,7 @@ "start": 133, "end": 136 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -125,9 +119,7 @@ "start": 138, "end": 143 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "DoWhileStatement", @@ -163,9 +155,7 @@ "start": 160, "end": 165 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -185,9 +175,7 @@ "start": 182, "end": 186 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "DoWhileStatement", @@ -223,9 +211,7 @@ "start": 197, "end": 201 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "DoWhileStatement", @@ -261,9 +247,7 @@ "start": 226, "end": 230 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -308,9 +292,7 @@ "start": 274, "end": 277 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "DoWhileStatement", @@ -338,9 +320,7 @@ "start": 292, "end": 295 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -360,9 +340,7 @@ "start": 324, "end": 329 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "DoWhileStatement", @@ -418,9 +396,7 @@ "start": 346, "end": 351 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -439,9 +415,7 @@ "start": 394, "end": 399 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "DoWhileStatement", @@ -532,9 +506,7 @@ "start": 444, "end": 449 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json index 80f84744f56d..6265026adf76 100644 --- a/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json @@ -50,9 +50,7 @@ "start": 67, "end": 70 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "DoWhileStatement", @@ -88,9 +86,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -109,9 +105,7 @@ "start": 111, "end": 114 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -125,9 +119,7 @@ "start": 116, "end": 121 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "DoWhileStatement", @@ -163,9 +155,7 @@ "start": 141, "end": 146 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -185,9 +175,7 @@ "start": 163, "end": 167 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "DoWhileStatement", @@ -223,9 +211,7 @@ "start": 178, "end": 182 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "DoWhileStatement", @@ -261,9 +247,7 @@ "start": 210, "end": 214 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -308,9 +292,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "DoWhileStatement", @@ -338,9 +320,7 @@ "start": 279, "end": 282 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -360,9 +340,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "DoWhileStatement", @@ -418,9 +396,7 @@ "start": 336, "end": 341 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -439,9 +415,7 @@ "start": 384, "end": 389 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "DoWhileStatement", @@ -532,9 +506,7 @@ "start": 437, "end": 442 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json b/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json index 252546c4e709..1c5867096b43 100644 --- a/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json @@ -333,9 +333,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json index e4b26b4fba79..b7cb206c01a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json +++ b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json @@ -353,9 +353,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -408,9 +406,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -626,9 +622,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -674,9 +668,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json index c94246ebe5f1..931c7ffba335 100644 --- a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json +++ b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json @@ -164,9 +164,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -303,9 +301,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -442,9 +438,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -581,9 +575,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -727,9 +719,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -882,9 +872,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1028,9 +1016,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1181,9 +1167,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1255,9 +1239,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Invalid", @@ -1286,9 +1268,7 @@ "start": 353, "end": 354 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1339,9 +1319,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Invalid", @@ -1370,9 +1348,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1453,9 +1429,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1536,9 +1510,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json index f547f07078f4..8abb7cfbf919 100644 --- a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json +++ b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json @@ -353,9 +353,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -408,9 +406,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -626,9 +622,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -674,9 +668,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -955,9 +947,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -984,9 +974,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -996,9 +984,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1070,9 +1056,7 @@ "start": 309, "end": 310 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -1099,9 +1083,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1396,9 +1378,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -1429,9 +1409,7 @@ "start": 401, "end": 402 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1441,9 +1419,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1529,9 +1505,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -1562,9 +1536,7 @@ "start": 421, "end": 422 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1707,9 +1679,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1719,9 +1689,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1846,9 +1814,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -2170,9 +2136,7 @@ "start": 595, "end": 596 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -2342,9 +2306,7 @@ "start": 626, "end": 627 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json index 61e6920803bf..b61abdff8e6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionES6.json @@ -1181,9 +1181,7 @@ "start": 458, "end": 459 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectPattern", @@ -1381,9 +1379,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -1444,9 +1440,7 @@ "start": 536, "end": 537 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json index 3d2c481e3323..98b99f15c2a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturing.json @@ -80,9 +80,7 @@ "start": 42, "end": 45 }, - "ctxt": 0, - "value": "age", - "optional": false + "value": "age" } }, "right": { @@ -208,9 +206,7 @@ "start": 90, "end": 94 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -394,9 +390,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "age", - "optional": false + "value": "age" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json index c42b582f2050..898a33041c3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.json @@ -80,9 +80,7 @@ "start": 42, "end": 45 }, - "ctxt": 0, - "value": "age", - "optional": false + "value": "age" } }, "right": { @@ -208,9 +206,7 @@ "start": 90, "end": 94 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -394,9 +390,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "age", - "optional": false + "value": "age" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14.json index 624bafb28e70..4bdca423e3b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14.json @@ -68,9 +68,7 @@ "start": 46, "end": 52 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14_ES6.json index b2245d3762fe..2bba0b905019 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments14_ES6.json @@ -68,9 +68,7 @@ "start": 46, "end": 52 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json index 07f2117c0b91..134841f1a931 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json @@ -108,9 +108,7 @@ "start": 75, "end": 81 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json index 07f2117c0b91..134841f1a931 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json @@ -108,9 +108,7 @@ "start": 75, "end": 81 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json index 19f8fc1884c0..33a239a9b109 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json @@ -108,9 +108,7 @@ "start": 75, "end": 81 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json index 19f8fc1884c0..33a239a9b109 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json @@ -108,9 +108,7 @@ "start": 75, "end": 81 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json index 984953bfc432..8d94251fc451 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json @@ -94,9 +94,7 @@ "start": 59, "end": 68 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "value": { "type": "StringLiteral", @@ -149,9 +147,7 @@ "start": 94, "end": 100 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json index 984953bfc432..8d94251fc451 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json @@ -94,9 +94,7 @@ "start": 59, "end": 68 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "value": { "type": "StringLiteral", @@ -149,9 +147,7 @@ "start": 94, "end": 100 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18.json index d86ff4069788..df725eee98f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18.json @@ -64,9 +64,7 @@ "start": 43, "end": 52 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "value": { "type": "Identifier", @@ -142,9 +140,7 @@ "start": 91, "end": 97 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18_ES6.json index d86ff4069788..df725eee98f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments18_ES6.json @@ -64,9 +64,7 @@ "start": 43, "end": 52 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "value": { "type": "Identifier", @@ -142,9 +140,7 @@ "start": 91, "end": 97 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json index 5e254b3125b7..e95ddc3f0cf1 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json @@ -38,9 +38,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -94,9 +92,7 @@ "start": 55, "end": 66 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -185,9 +181,7 @@ "start": 103, "end": 114 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -241,9 +235,7 @@ "start": 127, "end": 138 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json index a82ddaf852bb..b611a59793d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -80,9 +78,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -143,9 +139,7 @@ "start": 81, "end": 84 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -214,9 +208,7 @@ "start": 98, "end": 101 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -286,9 +278,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -328,9 +318,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -378,9 +366,7 @@ "start": 165, "end": 169 }, - "ctxt": 0, - "value": "_bar", - "optional": false + "value": "_bar" }, "value": null, "typeAnnotation": { @@ -421,9 +407,7 @@ "start": 184, "end": 195 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -566,9 +550,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -599,9 +581,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -682,9 +662,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -794,9 +772,7 @@ "start": 344, "end": 348 }, - "ctxt": 0, - "value": "_bar", - "optional": false + "value": "_bar" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json index 2ad401a7f08c..a4febb3d1353 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionAndTypeArgumentInES6.json @@ -38,9 +38,7 @@ "start": 34, "end": 45 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -220,9 +218,7 @@ "start": 120, "end": 131 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -276,9 +272,7 @@ "start": 144, "end": 155 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json index 5ee49e168276..fc0bb10af30d 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -178,9 +176,7 @@ "start": 84, "end": 87 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -223,9 +219,7 @@ "start": 98, "end": 101 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -342,9 +336,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "arguments": [ @@ -441,9 +433,7 @@ "start": 182, "end": 193 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -495,9 +485,7 @@ "start": 226, "end": 229 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -547,9 +535,7 @@ "start": 248, "end": 251 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -582,9 +568,7 @@ "start": 266, "end": 269 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -634,9 +618,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json index 899ca7ce83b5..598557072577 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json @@ -37,9 +37,7 @@ "start": 30, "end": 35 }, - "ctxt": 0, - "value": "_name", - "optional": false + "value": "_name" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 53, "end": 57 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 90, "end": 95 }, - "ctxt": 0, - "value": "_name", - "optional": false + "value": "_name" } } } @@ -170,9 +164,7 @@ "start": 118, "end": 123 }, - "ctxt": 0, - "value": "name2", - "optional": false + "value": "name2" }, "function": { "params": [], @@ -620,9 +612,7 @@ "start": 432, "end": 435 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -699,9 +689,7 @@ "start": 466, "end": 469 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json index c08b9b78e33c..e0136b1e2b69 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json @@ -309,9 +309,7 @@ "start": 157, "end": 166 }, - "ctxt": 0, - "value": "interface", - "optional": false + "value": "interface" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json index cdd18eb1f280..1a3f707c6251 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json @@ -37,9 +37,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "_bar", - "optional": false + "value": "_bar" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 48, "end": 51 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -376,9 +372,7 @@ "start": 182, "end": 185 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -421,9 +415,7 @@ "start": 218, "end": 222 }, - "ctxt": 0, - "value": "_bar", - "optional": false + "value": "_bar" } } } @@ -467,9 +459,7 @@ "start": 235, "end": 238 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -861,9 +851,7 @@ "start": 454, "end": 466 }, - "ctxt": 0, - "value": "staticMethod", - "optional": false + "value": "staticMethod" }, "function": { "params": [], @@ -981,9 +969,7 @@ "start": 528, "end": 531 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1060,9 +1046,7 @@ "start": 558, "end": 561 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAccessInHeritageClause1.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAccessInHeritageClause1.json index 43c9f8b24255..b4dc85a246f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAccessInHeritageClause1.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAccessInHeritageClause1.json @@ -80,9 +80,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": { "type": "Identifier", @@ -164,9 +162,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json index 957433b6f027..523ae025b1ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json @@ -37,9 +37,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -114,9 +112,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -164,9 +160,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -207,9 +201,7 @@ "start": 120, "end": 131 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -252,9 +244,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -312,9 +302,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "BooleanLiteral", @@ -397,9 +385,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "BooleanLiteral", @@ -446,9 +432,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": null, "typeAnnotation": { @@ -489,9 +473,7 @@ "start": 272, "end": 283 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -558,9 +540,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json index d9066b113e3b..69a5b670c018 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json @@ -37,9 +37,7 @@ "start": 37, "end": 38 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "StringLiteral", @@ -114,9 +112,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -150,9 +146,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithSuperMethodCall01.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithSuperMethodCall01.json index 7455c0e14710..d17e4a1bd0fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithSuperMethodCall01.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithSuperMethodCall01.json @@ -37,9 +37,7 @@ "start": 36, "end": 39 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 84, "end": 87 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -190,9 +186,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json index 9ae30555ab7b..4147d886b721 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithThisKeywordInES6.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 43, "end": 54 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -119,9 +115,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -152,9 +146,7 @@ "start": 97, "end": 100 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [ @@ -231,9 +223,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -286,9 +276,7 @@ "start": 138, "end": 141 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -313,9 +301,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -349,9 +335,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -394,9 +378,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -426,9 +408,7 @@ "start": 210, "end": 212 }, - "ctxt": 0, - "value": "bX", - "optional": false + "value": "bX" }, "function": { "params": [ @@ -512,9 +492,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json index d24a0bcbccfa..7bac3e3f5f7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentAndOverloadInES6.json @@ -37,9 +37,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 44, "end": 45 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": null, "typeAnnotation": { @@ -142,9 +138,7 @@ "start": 55, "end": 66 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -198,9 +192,7 @@ "start": 79, "end": 90 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -297,9 +289,7 @@ "start": 108, "end": 119 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -386,9 +376,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -420,9 +408,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -501,9 +487,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -572,9 +556,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -643,9 +625,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -688,9 +668,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -744,9 +722,7 @@ "start": 244, "end": 246 }, - "ctxt": 0, - "value": "BB", - "optional": false + "value": "BB" }, "function": { "params": [], @@ -789,9 +765,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -845,9 +819,7 @@ "start": 291, "end": 297 }, - "ctxt": 0, - "value": "BBWith", - "optional": false + "value": "BBWith" }, "function": { "params": [ @@ -941,9 +913,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json index 9814b9c1cdcb..8ed8fe6538ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithTypeArgumentInES6.json @@ -37,9 +37,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 44, "end": 45 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": null, "typeAnnotation": { @@ -142,9 +138,7 @@ "start": 54, "end": 65 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -231,9 +225,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -265,9 +257,7 @@ "start": 91, "end": 94 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -310,9 +300,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -366,9 +354,7 @@ "start": 139, "end": 141 }, - "ctxt": 0, - "value": "BB", - "optional": false + "value": "BB" }, "function": { "params": [], @@ -411,9 +397,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -467,9 +451,7 @@ "start": 186, "end": 192 }, - "ctxt": 0, - "value": "BBWith", - "optional": false + "value": "BBWith" }, "function": { "params": [ @@ -563,9 +545,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json b/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json index f361929508d3..91ddfea0f27a 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json +++ b/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.json @@ -198,9 +198,7 @@ "start": 121, "end": 126 }, - "ctxt": 0, - "value": "floor", - "optional": false + "value": "floor" } }, "arguments": [ @@ -242,9 +240,7 @@ "start": 132, "end": 138 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -470,9 +466,7 @@ "start": 226, "end": 232 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -569,9 +563,7 @@ "start": 270, "end": 276 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -651,9 +643,7 @@ "start": 310, "end": 316 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -751,9 +741,7 @@ "start": 354, "end": 360 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -833,9 +821,7 @@ "start": 394, "end": 400 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.json b/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.json index 1fdcb353cddb..bb7edc25313f 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.json +++ b/crates/swc_ecma_parser/tests/tsc/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.json @@ -129,9 +129,7 @@ "start": 95, "end": 99 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "NumericLiteral", @@ -198,9 +196,7 @@ "start": 114, "end": 118 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -280,9 +276,7 @@ "start": 146, "end": 150 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -344,9 +338,7 @@ "start": 164, "end": 168 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -388,9 +380,7 @@ "start": 179, "end": 183 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -471,9 +461,7 @@ "start": 211, "end": 215 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -515,9 +503,7 @@ "start": 226, "end": 230 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -580,9 +566,7 @@ "start": 244, "end": 248 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -624,9 +608,7 @@ "start": 259, "end": 263 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -707,9 +689,7 @@ "start": 290, "end": 294 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -751,9 +731,7 @@ "start": 305, "end": 309 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json index 2668fc1dabd0..307100c4320e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json @@ -47,9 +47,7 @@ "start": 34, "end": 39 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" }, "params": [ { @@ -147,9 +145,7 @@ "start": 66, "end": 71 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" }, "params": [ { @@ -216,9 +212,7 @@ "start": 94, "end": 99 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" }, "params": [ { @@ -351,9 +345,7 @@ "start": 144, "end": 149 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json index 6c6a53b57572..fe0c71525d19 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json @@ -47,9 +47,7 @@ "start": 33, "end": 38 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" }, "params": [ { @@ -147,9 +145,7 @@ "start": 65, "end": 70 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" }, "params": [ { @@ -216,9 +212,7 @@ "start": 93, "end": 98 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" }, "params": [ { @@ -351,9 +345,7 @@ "start": 143, "end": 148 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json index 8a1f6d748fae..5c0f3c3fa709 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json @@ -38,9 +38,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -202,9 +200,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -315,9 +311,7 @@ "start": 147, "end": 151 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -459,9 +453,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -539,9 +531,7 @@ "start": 228, "end": 231 }, - "ctxt": 0, - "value": "boo", - "optional": false + "value": "boo" }, "function": { "params": [ @@ -678,9 +668,7 @@ "start": 273, "end": 284 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -771,9 +759,7 @@ "start": 319, "end": 330 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json index 931471bcabfd..ed3e22383cfe 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json @@ -38,9 +38,7 @@ "start": 30, "end": 41 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -202,9 +200,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -315,9 +311,7 @@ "start": 146, "end": 150 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -459,9 +453,7 @@ "start": 197, "end": 200 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -539,9 +531,7 @@ "start": 227, "end": 230 }, - "ctxt": 0, - "value": "boo", - "optional": false + "value": "boo" }, "function": { "params": [ @@ -678,9 +668,7 @@ "start": 272, "end": 283 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -771,9 +759,7 @@ "start": 318, "end": 329 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionProperty.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionProperty.json index cda949ca0ead..f3b0321d98a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionProperty.json @@ -169,9 +169,7 @@ "start": 77, "end": 81 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionPropertyES6.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionPropertyES6.json index cda949ca0ead..f3b0321d98a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionPropertyES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersFunctionPropertyES6.json @@ -169,9 +169,7 @@ "start": 77, "end": 81 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json index c03c5c03ccc7..80a053a97fda 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethod.json @@ -38,9 +38,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -132,9 +130,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -209,9 +205,7 @@ "start": 110, "end": 113 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -347,9 +341,7 @@ "start": 155, "end": 166 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -408,9 +400,7 @@ "start": 192, "end": 195 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -485,9 +475,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json index c03c5c03ccc7..80a053a97fda 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.json @@ -38,9 +38,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -132,9 +130,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -209,9 +205,7 @@ "start": 110, "end": 113 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -347,9 +341,7 @@ "start": 155, "end": 166 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -408,9 +400,7 @@ "start": 192, "end": 195 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -485,9 +475,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json index d7aa29b94885..ed100f10ba4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json +++ b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json @@ -64,9 +64,7 @@ "start": 118, "end": 129 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -149,9 +147,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -212,9 +208,7 @@ "start": 232, "end": 237 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "NumericLiteral", @@ -284,9 +278,7 @@ "start": 276, "end": 280 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -327,9 +319,7 @@ "start": 312, "end": 323 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -449,9 +439,7 @@ "start": 413, "end": 417 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json index cca010df203b..c5dc676d55fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json +++ b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json @@ -64,9 +64,7 @@ "start": 117, "end": 128 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -149,9 +147,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -212,9 +208,7 @@ "start": 203, "end": 208 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "NumericLiteral", @@ -284,9 +278,7 @@ "start": 247, "end": 251 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -327,9 +319,7 @@ "start": 283, "end": 294 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -449,9 +439,7 @@ "start": 356, "end": 360 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2015.json b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2015.json index f9b1b937a276..0d64b8461dd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2015.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2015.json @@ -37,9 +37,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -222,9 +218,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -343,9 +337,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -476,9 +468,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -654,9 +644,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -774,9 +762,7 @@ "start": 591, "end": 592 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -863,9 +849,7 @@ "start": 658, "end": 659 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -908,9 +892,7 @@ "start": 682, "end": 683 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -960,9 +942,7 @@ "start": 701, "end": 702 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -1022,9 +1002,7 @@ "start": 749, "end": 750 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -1094,9 +1072,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -1146,9 +1122,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2018.json b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2018.json index f9b1b937a276..0d64b8461dd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2018.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es2018.json @@ -37,9 +37,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -222,9 +218,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -343,9 +337,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -476,9 +468,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -654,9 +644,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -774,9 +762,7 @@ "start": 591, "end": 592 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -863,9 +849,7 @@ "start": 658, "end": 659 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -908,9 +892,7 @@ "start": 682, "end": 683 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -960,9 +942,7 @@ "start": 701, "end": 702 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -1022,9 +1002,7 @@ "start": 749, "end": 750 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -1094,9 +1072,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -1146,9 +1122,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es5.json b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es5.json index d63492f2add1..f50f092cdfad 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es5.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.classMethods.es5.json @@ -37,9 +37,7 @@ "start": 76, "end": 77 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -222,9 +218,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -343,9 +337,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -476,9 +468,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -654,9 +644,7 @@ "start": 504, "end": 505 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -774,9 +762,7 @@ "start": 588, "end": 589 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -863,9 +849,7 @@ "start": 655, "end": 656 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -908,9 +892,7 @@ "start": 679, "end": 680 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -960,9 +942,7 @@ "start": 698, "end": 699 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -1022,9 +1002,7 @@ "start": 746, "end": 747 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -1094,9 +1072,7 @@ "start": 789, "end": 790 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -1146,9 +1122,7 @@ "start": 809, "end": 810 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2015.json b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2015.json index de83cf866c72..8c4b6ceeba4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2015.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2015.json @@ -47,9 +47,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -120,9 +118,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -234,9 +230,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -356,9 +350,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -490,9 +482,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -669,9 +659,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -790,9 +778,7 @@ "start": 605, "end": 606 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2018.json b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2018.json index de83cf866c72..8c4b6ceeba4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2018.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es2018.json @@ -47,9 +47,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -120,9 +118,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -234,9 +230,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -356,9 +350,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -490,9 +482,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -669,9 +659,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -790,9 +778,7 @@ "start": 605, "end": 606 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es5.json b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es5.json index 5a2aa510424a..902fc59b0f20 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es5.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.asyncGenerators.objectLiteralMethods.es5.json @@ -47,9 +47,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -120,9 +118,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -234,9 +230,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -356,9 +350,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -490,9 +482,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -669,9 +659,7 @@ "start": 516, "end": 517 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -790,9 +778,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json b/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json index 2fa9726eb05a..82abe1eb6496 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json @@ -677,9 +677,7 @@ "start": 581, "end": 586 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" }, "body": { "type": "ForOfStatement", @@ -750,9 +748,7 @@ "start": 632, "end": 637 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" } } ] @@ -852,9 +848,7 @@ "start": 769, "end": 774 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" }, "body": { "type": "ForOfStatement", @@ -925,9 +919,7 @@ "start": 820, "end": 825 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json b/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json index 0e42e12b7c8a..e8d14a4c36d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json +++ b/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json @@ -57,9 +57,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 47, "end": 48 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -101,9 +97,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5.json b/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5.json index 4ce911bb3cdf..17cd001e9894 100644 --- a/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5.json @@ -563,9 +563,7 @@ "start": 237, "end": 239 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -586,9 +584,7 @@ "start": 245, "end": 247 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -650,9 +646,7 @@ "start": 269, "end": 271 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -673,9 +667,7 @@ "start": 277, "end": 279 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -737,9 +729,7 @@ "start": 303, "end": 305 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -760,9 +750,7 @@ "start": 311, "end": 313 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -1010,9 +998,7 @@ "start": 414, "end": 415 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "AssignmentPattern", @@ -1162,9 +1148,7 @@ "start": 466, "end": 467 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5iterable.json index fc90717a44bb..c03728eb795b 100644 --- a/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES5iterable.json @@ -563,9 +563,7 @@ "start": 266, "end": 268 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -586,9 +584,7 @@ "start": 274, "end": 276 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -650,9 +646,7 @@ "start": 298, "end": 300 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -673,9 +667,7 @@ "start": 306, "end": 308 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -737,9 +729,7 @@ "start": 332, "end": 334 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -760,9 +750,7 @@ "start": 340, "end": 342 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -1010,9 +998,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "AssignmentPattern", @@ -1162,9 +1148,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES6.json b/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES6.json index 4ce911bb3cdf..17cd001e9894 100644 --- a/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emptyVariableDeclarationBindingPatterns01_ES6.json @@ -563,9 +563,7 @@ "start": 237, "end": 239 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -586,9 +584,7 @@ "start": 245, "end": 247 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -650,9 +646,7 @@ "start": 269, "end": 271 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -673,9 +667,7 @@ "start": 277, "end": 279 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -737,9 +729,7 @@ "start": 303, "end": 305 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "ObjectPattern", @@ -760,9 +750,7 @@ "start": 311, "end": 313 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "ArrayPattern", @@ -1010,9 +998,7 @@ "start": 414, "end": 415 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "AssignmentPattern", @@ -1162,9 +1148,7 @@ "start": 466, "end": 467 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/enumAssignability.json b/crates/swc_ecma_parser/tests/tsc/enumAssignability.json index 3d73854e265b..4fa96e536cba 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/enumAssignability.json @@ -132,9 +132,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -190,9 +188,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "definite": false @@ -544,9 +540,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json b/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json index fe27862676a2..2be90c14b25b 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json +++ b/crates/swc_ecma_parser/tests/tsc/enumAssignabilityInInheritance.json @@ -490,9 +490,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -881,9 +879,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1131,9 +1127,7 @@ "start": 585, "end": 586 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1401,9 +1395,7 @@ "start": 677, "end": 678 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1671,9 +1663,7 @@ "start": 773, "end": 774 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1993,9 +1983,7 @@ "start": 887, "end": 888 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -2257,9 +2245,7 @@ "start": 987, "end": 988 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -2591,9 +2577,7 @@ "start": 1105, "end": 1106 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -2636,9 +2620,7 @@ "start": 1120, "end": 1123 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2930,9 +2912,7 @@ "start": 1216, "end": 1217 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -2975,9 +2955,7 @@ "start": 1235, "end": 1238 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3341,9 +3319,7 @@ "start": 1347, "end": 1348 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -3647,9 +3623,7 @@ "start": 1460, "end": 1461 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -4081,9 +4055,7 @@ "start": 1575, "end": 1576 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -4390,9 +4362,7 @@ "start": 1680, "end": 1681 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -4769,9 +4739,7 @@ "start": 1837, "end": 1838 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -4814,9 +4782,7 @@ "start": 1853, "end": 1856 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -5183,9 +5149,7 @@ "start": 1991, "end": 1992 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -5453,9 +5417,7 @@ "start": 2090, "end": 2091 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -5703,9 +5665,7 @@ "start": 2181, "end": 2182 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumBasics.json b/crates/swc_ecma_parser/tests/tsc/enumBasics.json index 6f9a6d937246..d2f53254053b 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumBasics.json +++ b/crates/swc_ecma_parser/tests/tsc/enumBasics.json @@ -143,9 +143,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -264,6 +262,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 298, + "end": 302 + }, "left": { "type": "Identifier", "span": { @@ -280,9 +282,7 @@ "start": 301, "end": 302 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -322,6 +322,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 320, + "end": 324 + }, "left": { "type": "Identifier", "span": { @@ -338,9 +342,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -380,6 +382,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 342, + "end": 346 + }, "left": { "type": "Identifier", "span": { @@ -396,9 +402,7 @@ "start": 345, "end": 346 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -592,9 +596,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -804,9 +806,7 @@ "start": 629, "end": 635 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -989,9 +989,7 @@ "start": 755, "end": 761 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1427,9 +1425,7 @@ "start": 1327, "end": 1328 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -1457,9 +1453,7 @@ "start": 1333, "end": 1334 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1487,9 +1481,7 @@ "start": 1339, "end": 1340 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } } }, @@ -1517,9 +1509,7 @@ "start": 1345, "end": 1346 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } } }, @@ -1547,9 +1537,7 @@ "start": 1351, "end": 1352 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } } }, @@ -1577,9 +1565,7 @@ "start": 1357, "end": 1358 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } } } @@ -1647,9 +1633,7 @@ "start": 1433, "end": 1434 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1677,9 +1661,7 @@ "start": 1439, "end": 1440 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -1707,9 +1689,7 @@ "start": 1445, "end": 1446 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -1737,9 +1717,7 @@ "start": 1451, "end": 1452 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } }, @@ -1767,9 +1745,7 @@ "start": 1457, "end": 1458 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1797,9 +1773,7 @@ "start": 1463, "end": 1464 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1827,9 +1801,7 @@ "start": 1469, "end": 1470 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -1857,9 +1829,7 @@ "start": 1475, "end": 1476 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumClassification.json b/crates/swc_ecma_parser/tests/tsc/enumClassification.json index b262c1d274cc..9906841b00c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumClassification.json +++ b/crates/swc_ecma_parser/tests/tsc/enumClassification.json @@ -1019,9 +1019,7 @@ "start": 1010, "end": 1016 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -1148,9 +1146,7 @@ "start": 1062, "end": 1065 }, - "ctxt": 0, - "value": "sin", - "optional": false + "value": "sin" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json index 7ac1714ad3c3..9a4d4d6b0123 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json @@ -1036,9 +1036,7 @@ "start": 359, "end": 365 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1137,9 +1135,7 @@ "start": 403, "end": 409 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json index b9b7fa14f07a..7ed475ab1255 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json @@ -907,9 +907,7 @@ "start": 349, "end": 355 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json b/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json index 71c3f0cec48c..2a5a42019ce4 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json +++ b/crates/swc_ecma_parser/tests/tsc/enumIsNotASubtypeOfAnythingButNumber.json @@ -1274,9 +1274,7 @@ "start": 617, "end": 620 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1478,9 +1476,7 @@ "start": 697, "end": 700 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2526,9 +2522,7 @@ "start": 1087, "end": 1090 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json index abdbd3050f13..4232093e1b9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json @@ -120,6 +120,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 55, + "end": 65 + }, "left": { "type": "Identifier", "span": { @@ -136,9 +140,7 @@ "start": 62, "end": 65 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -151,6 +153,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 68, + "end": 77 + }, "left": { "type": "Identifier", "span": { @@ -167,9 +173,7 @@ "start": 75, "end": 77 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -210,6 +214,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 92, + "end": 101 + }, "left": { "type": "Identifier", "span": { @@ -226,9 +234,7 @@ "start": 99, "end": 101 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -241,6 +247,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 104, + "end": 114 + }, "left": { "type": "Identifier", "span": { @@ -257,9 +267,7 @@ "start": 111, "end": 114 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -300,6 +308,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 136, + "end": 150 + }, "left": { "type": "Identifier", "span": { @@ -316,9 +328,7 @@ "start": 143, "end": 150 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "typeParams": null @@ -331,6 +341,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 153, + "end": 163 + }, "left": { "type": "Identifier", "span": { @@ -347,9 +361,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -362,6 +374,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 166, + "end": 175 + }, "left": { "type": "Identifier", "span": { @@ -378,9 +394,7 @@ "start": 173, "end": 175 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -574,6 +588,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 241, + "end": 251 + }, "left": { "type": "Identifier", "span": { @@ -590,9 +608,7 @@ "start": 248, "end": 251 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -605,6 +621,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 254, + "end": 263 + }, "left": { "type": "Identifier", "span": { @@ -621,9 +641,7 @@ "start": 261, "end": 263 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -683,6 +701,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 276, + "end": 285 + }, "left": { "type": "Identifier", "span": { @@ -699,9 +721,7 @@ "start": 283, "end": 285 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -714,6 +734,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 288, + "end": 298 + }, "left": { "type": "Identifier", "span": { @@ -730,9 +754,7 @@ "start": 295, "end": 298 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1070,6 +1092,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 406, + "end": 416 + }, "left": { "type": "Identifier", "span": { @@ -1086,9 +1112,7 @@ "start": 413, "end": 416 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -2296,6 +2320,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 808, + "end": 818 + }, "left": { "type": "Identifier", "span": { @@ -2312,9 +2340,7 @@ "start": 815, "end": 818 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -2483,6 +2509,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 875, + "end": 885 + }, "left": { "type": "Identifier", "span": { @@ -2499,9 +2529,7 @@ "start": 882, "end": 885 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -2580,6 +2608,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 918, + "end": 927 + }, "left": { "type": "Identifier", "span": { @@ -2596,9 +2628,7 @@ "start": 925, "end": 927 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -2944,9 +2974,7 @@ "start": 1053, "end": 1056 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3026,9 +3054,7 @@ "start": 1081, "end": 1083 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3481,9 +3507,7 @@ "start": 1292, "end": 1295 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3533,9 +3557,7 @@ "start": 1332, "end": 1334 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3683,9 +3705,7 @@ "start": 1423, "end": 1426 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3735,9 +3755,7 @@ "start": 1463, "end": 1465 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4076,9 +4094,7 @@ "start": 1665, "end": 1668 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } }, @@ -4209,6 +4225,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1744, + "end": 1754 + }, "left": { "type": "Identifier", "span": { @@ -4225,9 +4245,7 @@ "start": 1751, "end": 1754 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -4311,6 +4329,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1782, + "end": 1791 + }, "left": { "type": "Identifier", "span": { @@ -4327,9 +4349,7 @@ "start": 1789, "end": 1791 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -4476,9 +4496,7 @@ "start": 1845, "end": 1849 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4510,9 +4528,7 @@ "start": 1873, "end": 1876 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4544,9 +4560,7 @@ "start": 1887, "end": 1888 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4580,9 +4594,7 @@ "start": 1910, "end": 1912 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4614,9 +4626,7 @@ "start": 1923, "end": 1924 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -4731,9 +4741,7 @@ "start": 1973, "end": 1977 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4765,9 +4773,7 @@ "start": 2001, "end": 2004 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4799,9 +4805,7 @@ "start": 2015, "end": 2016 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4835,9 +4839,7 @@ "start": 2038, "end": 2040 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4869,9 +4871,7 @@ "start": 2051, "end": 2052 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json index 1f1166ce6ba4..e59486879bdc 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json @@ -120,6 +120,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 83, + "end": 93 + }, "left": { "type": "Identifier", "span": { @@ -136,9 +140,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -151,6 +153,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 96, + "end": 105 + }, "left": { "type": "Identifier", "span": { @@ -167,9 +173,7 @@ "start": 103, "end": 105 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -210,6 +214,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 120, + "end": 129 + }, "left": { "type": "Identifier", "span": { @@ -226,9 +234,7 @@ "start": 127, "end": 129 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -241,6 +247,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 132, + "end": 142 + }, "left": { "type": "Identifier", "span": { @@ -257,9 +267,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -300,6 +308,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 164, + "end": 178 + }, "left": { "type": "Identifier", "span": { @@ -316,9 +328,7 @@ "start": 171, "end": 178 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "typeParams": null @@ -331,6 +341,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 181, + "end": 191 + }, "left": { "type": "Identifier", "span": { @@ -347,9 +361,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -362,6 +374,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 194, + "end": 203 + }, "left": { "type": "Identifier", "span": { @@ -378,9 +394,7 @@ "start": 201, "end": 203 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -574,6 +588,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 269, + "end": 279 + }, "left": { "type": "Identifier", "span": { @@ -590,9 +608,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -605,6 +621,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 282, + "end": 291 + }, "left": { "type": "Identifier", "span": { @@ -621,9 +641,7 @@ "start": 289, "end": 291 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -683,6 +701,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 304, + "end": 313 + }, "left": { "type": "Identifier", "span": { @@ -699,9 +721,7 @@ "start": 311, "end": 313 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -714,6 +734,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 316, + "end": 326 + }, "left": { "type": "Identifier", "span": { @@ -730,9 +754,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1070,6 +1092,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 434, + "end": 444 + }, "left": { "type": "Identifier", "span": { @@ -1086,9 +1112,7 @@ "start": 441, "end": 444 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -2296,6 +2320,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 843, + "end": 853 + }, "left": { "type": "Identifier", "span": { @@ -2312,9 +2340,7 @@ "start": 850, "end": 853 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -2483,6 +2509,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 917, + "end": 927 + }, "left": { "type": "Identifier", "span": { @@ -2499,9 +2529,7 @@ "start": 924, "end": 927 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -2580,6 +2608,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 960, + "end": 969 + }, "left": { "type": "Identifier", "span": { @@ -2596,9 +2628,7 @@ "start": 967, "end": 969 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -2944,9 +2974,7 @@ "start": 1095, "end": 1098 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3026,9 +3054,7 @@ "start": 1123, "end": 1125 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3481,9 +3507,7 @@ "start": 1334, "end": 1337 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3533,9 +3557,7 @@ "start": 1374, "end": 1376 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3683,9 +3705,7 @@ "start": 1465, "end": 1468 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3735,9 +3755,7 @@ "start": 1505, "end": 1507 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4076,9 +4094,7 @@ "start": 1707, "end": 1710 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } }, @@ -4209,6 +4225,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1786, + "end": 1796 + }, "left": { "type": "Identifier", "span": { @@ -4225,9 +4245,7 @@ "start": 1793, "end": 1796 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -4311,6 +4329,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1824, + "end": 1833 + }, "left": { "type": "Identifier", "span": { @@ -4327,9 +4349,7 @@ "start": 1831, "end": 1833 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -4476,9 +4496,7 @@ "start": 1887, "end": 1891 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4510,9 +4528,7 @@ "start": 1915, "end": 1918 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4544,9 +4560,7 @@ "start": 1929, "end": 1930 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4580,9 +4594,7 @@ "start": 1952, "end": 1954 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4614,9 +4626,7 @@ "start": 1965, "end": 1966 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -4731,9 +4741,7 @@ "start": 2015, "end": 2019 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4765,9 +4773,7 @@ "start": 2043, "end": 2046 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4799,9 +4805,7 @@ "start": 2057, "end": 2058 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4835,9 +4839,7 @@ "start": 2080, "end": 2082 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4869,9 +4871,7 @@ "start": 2093, "end": 2094 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json index 0a27b357bc37..1f4fa6f16988 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes3.json @@ -113,6 +113,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 53, + "end": 63 + }, "left": { "type": "Identifier", "span": { @@ -129,9 +133,7 @@ "start": 60, "end": 63 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -170,6 +172,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 78, + "end": 88 + }, "left": { "type": "Identifier", "span": { @@ -186,9 +192,7 @@ "start": 85, "end": 88 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -201,6 +205,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 91, + "end": 100 + }, "left": { "type": "Identifier", "span": { @@ -217,9 +225,7 @@ "start": 98, "end": 100 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -260,6 +266,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 115, + "end": 124 + }, "left": { "type": "Identifier", "span": { @@ -276,9 +286,7 @@ "start": 122, "end": 124 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -291,6 +299,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 127, + "end": 137 + }, "left": { "type": "Identifier", "span": { @@ -307,9 +319,7 @@ "start": 134, "end": 137 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -350,6 +360,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 159, + "end": 173 + }, "left": { "type": "Identifier", "span": { @@ -366,9 +380,7 @@ "start": 166, "end": 173 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "typeParams": null @@ -381,6 +393,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 176, + "end": 186 + }, "left": { "type": "Identifier", "span": { @@ -397,9 +413,7 @@ "start": 183, "end": 186 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -412,6 +426,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 189, + "end": 198 + }, "left": { "type": "Identifier", "span": { @@ -428,9 +446,7 @@ "start": 196, "end": 198 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -2093,9 +2109,7 @@ "start": 704, "end": 711 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2146,9 +2160,7 @@ "start": 728, "end": 731 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2199,9 +2211,7 @@ "start": 748, "end": 750 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2252,9 +2262,7 @@ "start": 767, "end": 774 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2305,9 +2313,7 @@ "start": 791, "end": 794 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2358,9 +2364,7 @@ "start": 811, "end": 813 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2411,9 +2415,7 @@ "start": 830, "end": 837 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2464,9 +2466,7 @@ "start": 854, "end": 857 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2517,9 +2517,7 @@ "start": 874, "end": 876 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2570,9 +2568,7 @@ "start": 893, "end": 900 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2623,9 +2619,7 @@ "start": 917, "end": 920 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2676,9 +2670,7 @@ "start": 937, "end": 939 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2936,9 +2928,7 @@ "start": 1021, "end": 1028 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2988,9 +2978,7 @@ "start": 1047, "end": 1050 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3040,9 +3028,7 @@ "start": 1069, "end": 1071 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3092,9 +3078,7 @@ "start": 1090, "end": 1097 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3144,9 +3128,7 @@ "start": 1116, "end": 1119 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3196,9 +3178,7 @@ "start": 1138, "end": 1140 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3248,9 +3228,7 @@ "start": 1159, "end": 1166 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3300,9 +3278,7 @@ "start": 1185, "end": 1188 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3352,9 +3328,7 @@ "start": 1207, "end": 1209 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3404,9 +3378,7 @@ "start": 1228, "end": 1235 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3456,9 +3428,7 @@ "start": 1254, "end": 1257 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3508,9 +3478,7 @@ "start": 1276, "end": 1278 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -4407,9 +4375,7 @@ "start": 1619, "end": 1626 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -4460,9 +4426,7 @@ "start": 1658, "end": 1661 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4513,9 +4477,7 @@ "start": 1693, "end": 1695 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4705,9 +4667,7 @@ "start": 1799, "end": 1806 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -4758,9 +4718,7 @@ "start": 1838, "end": 1841 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4811,9 +4769,7 @@ "start": 1873, "end": 1875 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -5003,9 +4959,7 @@ "start": 1993, "end": 2000 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -5056,9 +5010,7 @@ "start": 2032, "end": 2035 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -5109,9 +5061,7 @@ "start": 2067, "end": 2069 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -5301,9 +5251,7 @@ "start": 2175, "end": 2182 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -5354,9 +5302,7 @@ "start": 2214, "end": 2217 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -5407,9 +5353,7 @@ "start": 2249, "end": 2251 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ diff --git a/crates/swc_ecma_parser/tests/tsc/enumMergeWithExpando.json b/crates/swc_ecma_parser/tests/tsc/enumMergeWithExpando.json index 74126c9b478c..816b6e9f31c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumMergeWithExpando.json +++ b/crates/swc_ecma_parser/tests/tsc/enumMergeWithExpando.json @@ -132,9 +132,7 @@ "start": 230, "end": 235 }, - "ctxt": 0, - "value": "Order", - "optional": false + "value": "Order" } }, "right": { @@ -188,9 +186,7 @@ "start": 244, "end": 249 }, - "ctxt": 0, - "value": "Order", - "optional": false + "value": "Order" } }, "property": { @@ -199,9 +195,7 @@ "start": 250, "end": 254 }, - "ctxt": 0, - "value": "DESC", - "optional": false + "value": "DESC" } }, "right": { @@ -256,9 +250,7 @@ "start": 263, "end": 268 }, - "ctxt": 0, - "value": "Order", - "optional": false + "value": "Order" } }, "property": { @@ -267,9 +259,7 @@ "start": 269, "end": 272 }, - "ctxt": 0, - "value": "ASC", - "optional": false + "value": "ASC" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/enumMerging.json b/crates/swc_ecma_parser/tests/tsc/enumMerging.json index 7a8d198fe6b6..a393f3ebf035 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumMerging.json +++ b/crates/swc_ecma_parser/tests/tsc/enumMerging.json @@ -458,9 +458,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -488,9 +486,7 @@ "start": 429, "end": 430 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -518,9 +514,7 @@ "start": 440, "end": 441 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } }, @@ -548,9 +542,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } } }, @@ -578,9 +570,7 @@ "start": 462, "end": 463 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } } }, @@ -608,9 +598,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } } } @@ -710,9 +698,7 @@ "start": 619, "end": 625 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -753,9 +739,7 @@ "start": 637, "end": 643 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -796,9 +780,7 @@ "start": 655, "end": 661 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -867,9 +849,7 @@ "start": 712, "end": 718 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -910,9 +890,7 @@ "start": 730, "end": 736 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -953,9 +931,7 @@ "start": 748, "end": 754 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1020,9 +996,7 @@ "start": 782, "end": 783 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1050,9 +1024,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -1080,9 +1052,7 @@ "start": 802, "end": 803 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } }, @@ -1110,9 +1080,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } } }, @@ -1140,9 +1108,7 @@ "start": 822, "end": 823 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } } }, @@ -1170,9 +1136,7 @@ "start": 832, "end": 833 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } } } @@ -1871,9 +1835,7 @@ "start": 1366, "end": 1371 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "property": { @@ -1882,9 +1844,7 @@ "start": 1372, "end": 1378 }, - "ctxt": 0, - "value": "Yellow", - "optional": false + "value": "Yellow" } }, "definite": false @@ -1943,9 +1903,7 @@ "start": 1390, "end": 1395 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "property": { @@ -1954,9 +1912,7 @@ "start": 1396, "end": 1399 }, - "ctxt": 0, - "value": "Red", - "optional": false + "value": "Red" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json b/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json index b48e3ab43d31..974b5f98b2b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json @@ -274,9 +274,7 @@ "start": 243, "end": 249 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -345,9 +343,7 @@ "start": 283, "end": 289 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -590,9 +586,7 @@ "start": 415, "end": 421 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumTag.json b/crates/swc_ecma_parser/tests/tsc/enumTag.json index 0341a460e71c..fa979dfe8a49 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTag.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTag.json @@ -47,9 +47,7 @@ "start": 116, "end": 121 }, - "ctxt": 0, - "value": "START", - "optional": false + "value": "START" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 136, "end": 142 }, - "ctxt": 0, - "value": "MIDDLE", - "optional": false + "value": "MIDDLE" }, "value": { "type": "StringLiteral", @@ -91,9 +87,7 @@ "start": 158, "end": 161 }, - "ctxt": 0, - "value": "END", - "optional": false + "value": "END" }, "value": { "type": "StringLiteral", @@ -113,9 +107,7 @@ "start": 174, "end": 181 }, - "ctxt": 0, - "value": "MISTAKE", - "optional": false + "value": "MISTAKE" }, "value": { "type": "NumericLiteral", @@ -135,9 +127,7 @@ "start": 216, "end": 226 }, - "ctxt": 0, - "value": "OK_I_GUESS", - "optional": false + "value": "OK_I_GUESS" }, "value": { "type": "NumericLiteral", @@ -197,9 +187,7 @@ "start": 273, "end": 280 }, - "ctxt": 0, - "value": "MISTAKE", - "optional": false + "value": "MISTAKE" }, "value": { "type": "StringLiteral", @@ -219,9 +207,7 @@ "start": 293, "end": 295 }, - "ctxt": 0, - "value": "OK", - "optional": false + "value": "OK" }, "value": { "type": "NumericLiteral", @@ -241,9 +227,7 @@ "start": 330, "end": 334 }, - "ctxt": 0, - "value": "FINE", - "optional": false + "value": "FINE" }, "value": { "type": "NumericLiteral", @@ -303,9 +287,7 @@ "start": 398, "end": 402 }, - "ctxt": 0, - "value": "ADD1", - "optional": false + "value": "ADD1" }, "value": { "type": "ArrowFunctionExpression", @@ -368,9 +350,7 @@ "start": 420, "end": 422 }, - "ctxt": 0, - "value": "ID", - "optional": false + "value": "ID" }, "value": { "type": "ArrowFunctionExpression", @@ -416,9 +396,7 @@ "start": 436, "end": 440 }, - "ctxt": 0, - "value": "SUB1", - "optional": false + "value": "SUB1" }, "value": { "type": "ArrowFunctionExpression", @@ -737,9 +715,7 @@ "start": 732, "end": 737 }, - "ctxt": 0, - "value": "START", - "optional": false + "value": "START" } }, "definite": false @@ -792,9 +768,7 @@ "start": 753, "end": 760 }, - "ctxt": 0, - "value": "UNKNOWN", - "optional": false + "value": "UNKNOWN" } } } @@ -845,9 +819,7 @@ "start": 807, "end": 814 }, - "ctxt": 0, - "value": "MISTAKE", - "optional": false + "value": "MISTAKE" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumTagCircularReference.json b/crates/swc_ecma_parser/tests/tsc/enumTagCircularReference.json index 216f2bff047f..da26540ba89d 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTagCircularReference.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTagCircularReference.json @@ -47,9 +47,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/enumTagImported.json b/crates/swc_ecma_parser/tests/tsc/enumTagImported.json index cd78efa7fd8d..40591f457b90 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTagImported.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTagImported.json @@ -174,9 +174,7 @@ "start": 327, "end": 330 }, - "ctxt": 0, - "value": "ADD", - "optional": false + "value": "ADD" } }, "definite": false @@ -231,9 +229,7 @@ "start": 408, "end": 411 }, - "ctxt": 0, - "value": "ADD", - "optional": false + "value": "ADD" }, "value": { "type": "StringLiteral", @@ -253,9 +249,7 @@ "start": 424, "end": 430 }, - "ctxt": 0, - "value": "REMOVE", - "optional": false + "value": "REMOVE" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/enumTagOnExports.json b/crates/swc_ecma_parser/tests/tsc/enumTagOnExports.json index b68c247009bb..77000e8651c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTagOnExports.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTagOnExports.json @@ -40,9 +40,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -96,9 +94,7 @@ "start": 157, "end": 164 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -107,9 +103,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/enumTagOnExports2.json b/crates/swc_ecma_parser/tests/tsc/enumTagOnExports2.json index b50d660d6376..0eb26de2e9d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTagOnExports2.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTagOnExports2.json @@ -40,9 +40,7 @@ "start": 118, "end": 125 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/enums.json b/crates/swc_ecma_parser/tests/tsc/enums.json index 5233eab14154..a7b1095d4363 100644 --- a/crates/swc_ecma_parser/tests/tsc/enums.json +++ b/crates/swc_ecma_parser/tests/tsc/enums.json @@ -284,9 +284,7 @@ "start": 278, "end": 290 }, - "ctxt": 0, - "value": "ImportClause", - "optional": false + "value": "ImportClause" } } }, @@ -318,9 +316,7 @@ "start": 304, "end": 308 }, - "ctxt": 0, - "value": "Type", - "optional": false + "value": "Type" } } }, @@ -363,6 +359,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 320, + "end": 343 + }, "left": { "type": "Identifier", "span": { @@ -379,9 +379,7 @@ "start": 331, "end": 343 }, - "ctxt": 0, - "value": "ImportClause", - "optional": false + "value": "ImportClause" } }, "typeParams": null @@ -475,6 +473,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 386, + "end": 402 + }, "left": { "type": "Identifier", "span": { @@ -491,9 +493,7 @@ "start": 398, "end": 402 }, - "ctxt": 0, - "value": "Type", - "optional": false + "value": "Type" } }, "typeParams": null @@ -683,9 +683,7 @@ "start": 559, "end": 563 }, - "ctxt": 0, - "value": "Type", - "optional": false + "value": "Type" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/equalityWithIntersectionTypes01.json b/crates/swc_ecma_parser/tests/tsc/equalityWithIntersectionTypes01.json index cded7061d6f7..47d82cb387de 100644 --- a/crates/swc_ecma_parser/tests/tsc/equalityWithIntersectionTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/equalityWithIntersectionTypes01.json @@ -258,9 +258,7 @@ "start": 123, "end": 125 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -280,9 +278,7 @@ "start": 131, "end": 133 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "NumericLiteral", @@ -302,9 +298,7 @@ "start": 139, "end": 141 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/equalityWithUnionTypes01.json b/crates/swc_ecma_parser/tests/tsc/equalityWithUnionTypes01.json index 87879a1a256f..62d58a4bafb7 100644 --- a/crates/swc_ecma_parser/tests/tsc/equalityWithUnionTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/equalityWithUnionTypes01.json @@ -194,9 +194,7 @@ "start": 89, "end": 91 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -216,9 +214,7 @@ "start": 97, "end": 99 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json b/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json index 0d96bfde7014..46b6e6038232 100644 --- a/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/equalityWithtNullishCoalescingAssignment.json @@ -176,9 +176,7 @@ "start": 115, "end": 118 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -536,9 +534,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/errorIsolation.json b/crates/swc_ecma_parser/tests/tsc/errorIsolation.json index e9e2159b50e9..d53c1c425ebc 100644 --- a/crates/swc_ecma_parser/tests/tsc/errorIsolation.json +++ b/crates/swc_ecma_parser/tests/tsc/errorIsolation.json @@ -47,9 +47,7 @@ "start": 84, "end": 95 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" }, "value": { "type": "ArrowFunctionExpression", @@ -127,9 +125,7 @@ "start": 114, "end": 125 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json b/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json index c0b96815c7e5..ee01c60471fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json @@ -68,9 +68,7 @@ "start": 231, "end": 234 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -228,9 +226,7 @@ "start": 424, "end": 427 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -341,9 +337,7 @@ "start": 523, "end": 526 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -539,9 +533,7 @@ "start": 838, "end": 841 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -652,9 +644,7 @@ "start": 933, "end": 936 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json index 840b6ae124b1..96867e58c723 100644 --- a/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json @@ -38,9 +38,7 @@ "start": 257, "end": 268 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -97,9 +95,7 @@ "start": 295, "end": 304 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -159,9 +155,7 @@ "start": 328, "end": 342 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ @@ -201,9 +195,7 @@ "start": 359, "end": 361 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -267,9 +259,7 @@ "start": 388, "end": 397 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -329,9 +319,7 @@ "start": 421, "end": 435 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ @@ -380,9 +368,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "SuperPropExpression", @@ -403,9 +389,7 @@ "start": 462, "end": 471 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "typeAnnotation": null, @@ -431,9 +415,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "CallExpression", @@ -461,9 +443,7 @@ "start": 487, "end": 501 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ @@ -505,9 +485,7 @@ "start": 715, "end": 722 }, - "ctxt": 0, - "value": "static1", - "optional": false + "value": "static1" }, "function": { "params": [], @@ -557,9 +535,7 @@ "start": 741, "end": 755 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ @@ -605,9 +581,7 @@ "start": 790, "end": 797 }, - "ctxt": 0, - "value": "static2", - "optional": false + "value": "static2" }, "function": { "params": [], @@ -657,9 +631,7 @@ "start": 816, "end": 830 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ @@ -721,9 +693,7 @@ "start": 884, "end": 891 }, - "ctxt": 0, - "value": "static2", - "optional": false + "value": "static2" }, "function": { "params": [ @@ -793,9 +763,7 @@ "start": 911, "end": 925 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ @@ -868,9 +836,7 @@ "start": 969, "end": 980 }, - "ctxt": 0, - "value": "privateFunc", - "optional": false + "value": "privateFunc" }, "function": { "params": [], @@ -913,9 +879,7 @@ "start": 999, "end": 1012 }, - "ctxt": 0, - "value": "privateMember", - "optional": false + "value": "privateMember" }, "value": { "type": "NumericLiteral", @@ -949,9 +913,7 @@ "start": 1030, "end": 1040 }, - "ctxt": 0, - "value": "publicFunc", - "optional": false + "value": "publicFunc" }, "function": { "params": [], @@ -994,9 +956,7 @@ "start": 1058, "end": 1070 }, - "ctxt": 0, - "value": "publicMember", - "optional": false + "value": "publicMember" }, "value": { "type": "NumericLiteral", @@ -1030,9 +990,7 @@ "start": 1096, "end": 1113 }, - "ctxt": 0, - "value": "privateStaticFunc", - "optional": false + "value": "privateStaticFunc" }, "function": { "params": [], @@ -1075,9 +1033,7 @@ "start": 1139, "end": 1158 }, - "ctxt": 0, - "value": "privateStaticMember", - "optional": false + "value": "privateStaticMember" }, "value": { "type": "NumericLiteral", @@ -1111,9 +1067,7 @@ "start": 1183, "end": 1199 }, - "ctxt": 0, - "value": "publicStaticFunc", - "optional": false + "value": "publicStaticFunc" }, "function": { "params": [], @@ -1156,9 +1110,7 @@ "start": 1224, "end": 1242 }, - "ctxt": 0, - "value": "publicStaticMember", - "optional": false + "value": "publicStaticMember" }, "value": { "type": "NumericLiteral", @@ -1220,9 +1172,7 @@ "start": 1605, "end": 1616 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1289,9 +1239,7 @@ "start": 1652, "end": 1664 }, - "ctxt": 0, - "value": "publicMember", - "optional": false + "value": "publicMember" } }, "right": { @@ -1322,9 +1270,7 @@ "start": 1681, "end": 1683 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -1388,9 +1334,7 @@ "start": 1710, "end": 1722 }, - "ctxt": 0, - "value": "publicMember", - "optional": false + "value": "publicMember" } }, "definite": false @@ -1423,9 +1367,7 @@ "start": 1739, "end": 1740 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -1489,9 +1431,7 @@ "start": 1767, "end": 1779 }, - "ctxt": 0, - "value": "publicMember", - "optional": false + "value": "publicMember" } }, "definite": false @@ -1541,9 +1481,7 @@ "start": 1821, "end": 1822 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -1624,9 +1562,7 @@ "start": 1846, "end": 1858 }, - "ctxt": 0, - "value": "publicMember", - "optional": false + "value": "publicMember" } } } @@ -1657,9 +1593,7 @@ "start": 1870, "end": 1873 }, - "ctxt": 0, - "value": "fn2", - "optional": false + "value": "fn2" }, "function": { "params": [], @@ -1737,9 +1671,7 @@ "start": 1923, "end": 1933 }, - "ctxt": 0, - "value": "publicFunc", - "optional": false + "value": "publicFunc" } }, "arguments": [], @@ -1795,9 +1727,7 @@ "start": 1977, "end": 1981 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "FunctionExpression", @@ -1849,9 +1779,7 @@ "start": 2010, "end": 2020 }, - "ctxt": 0, - "value": "publicFunc", - "optional": false + "value": "publicFunc" } }, "arguments": [], @@ -1935,9 +1863,7 @@ "start": 2294, "end": 2305 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2004,9 +1930,7 @@ "start": 2341, "end": 2354 }, - "ctxt": 0, - "value": "privateMember", - "optional": false + "value": "privateMember" } }, "right": { @@ -2037,9 +1961,7 @@ "start": 2371, "end": 2373 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -2103,9 +2025,7 @@ "start": 2400, "end": 2413 }, - "ctxt": 0, - "value": "privateMember", - "optional": false + "value": "privateMember" } }, "definite": false @@ -2138,9 +2058,7 @@ "start": 2430, "end": 2431 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -2204,9 +2122,7 @@ "start": 2458, "end": 2471 }, - "ctxt": 0, - "value": "privateMember", - "optional": false + "value": "privateMember" } }, "definite": false @@ -2256,9 +2172,7 @@ "start": 2513, "end": 2514 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -2339,9 +2253,7 @@ "start": 2538, "end": 2551 }, - "ctxt": 0, - "value": "privateMember", - "optional": false + "value": "privateMember" } } } @@ -2408,9 +2320,7 @@ "start": 2945, "end": 2947 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -2460,9 +2370,7 @@ "start": 2966, "end": 2984 }, - "ctxt": 0, - "value": "publicStaticMember", - "optional": false + "value": "publicStaticMember" } }, "right": { @@ -2508,9 +2416,7 @@ "start": 3004, "end": 3023 }, - "ctxt": 0, - "value": "privateStaticMember", - "optional": false + "value": "privateStaticMember" } }, "right": { @@ -2556,9 +2462,7 @@ "start": 3043, "end": 3060 }, - "ctxt": 0, - "value": "privateStaticFunc", - "optional": false + "value": "privateStaticFunc" } }, "arguments": [], @@ -2591,9 +2495,7 @@ "start": 3085, "end": 3086 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -2643,9 +2545,7 @@ "start": 3105, "end": 3123 }, - "ctxt": 0, - "value": "publicStaticMember", - "optional": false + "value": "publicStaticMember" } }, "right": { @@ -2691,9 +2591,7 @@ "start": 3143, "end": 3162 }, - "ctxt": 0, - "value": "privateStaticMember", - "optional": false + "value": "privateStaticMember" } }, "right": { @@ -2739,9 +2637,7 @@ "start": 3182, "end": 3199 }, - "ctxt": 0, - "value": "privateStaticFunc", - "optional": false + "value": "privateStaticFunc" } }, "arguments": [], @@ -2790,9 +2686,7 @@ "start": 3243, "end": 3244 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -2862,9 +2756,7 @@ "start": 3264, "end": 3282 }, - "ctxt": 0, - "value": "publicStaticMember", - "optional": false + "value": "publicStaticMember" } }, "right": { @@ -2910,9 +2802,7 @@ "start": 3302, "end": 3321 }, - "ctxt": 0, - "value": "privateStaticMember", - "optional": false + "value": "privateStaticMember" } }, "right": { @@ -2958,9 +2848,7 @@ "start": 3341, "end": 3358 }, - "ctxt": 0, - "value": "privateStaticFunc", - "optional": false + "value": "privateStaticFunc" } }, "arguments": [], @@ -3039,9 +2927,7 @@ "start": 3404, "end": 3405 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "SuperPropExpression", @@ -3062,9 +2948,7 @@ "start": 3413, "end": 3416 }, - "ctxt": 0, - "value": "wat", - "optional": false + "value": "wat" } } }, @@ -3076,9 +2960,7 @@ "start": 3418, "end": 3419 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "CallExpression", @@ -3106,9 +2988,7 @@ "start": 3427, "end": 3430 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json index d519801493f0..c66c3cd6f6dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json @@ -40,9 +40,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -77,9 +75,7 @@ "start": 162, "end": 181 }, - "ctxt": 0, - "value": "getCanonicalLocales", - "optional": false + "value": "getCanonicalLocales" } }, "arguments": [ @@ -138,9 +134,7 @@ "start": 238, "end": 241 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -175,9 +169,7 @@ "start": 247, "end": 266 }, - "ctxt": 0, - "value": "getCanonicalLocales", - "optional": false + "value": "getCanonicalLocales" } }, "arguments": [ @@ -274,9 +266,7 @@ "start": 342, "end": 361 }, - "ctxt": 0, - "value": "getCanonicalLocales", - "optional": false + "value": "getCanonicalLocales" } }, "arguments": [ @@ -358,9 +348,7 @@ "start": 398, "end": 401 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -395,9 +383,7 @@ "start": 406, "end": 414 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es2017DateAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2017DateAPIs.json index 30d224f3ac20..b893f1c2b005 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2017DateAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2017DateAPIs.json @@ -40,9 +40,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "UTC", - "optional": false + "value": "UTC" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json index db009b2be838..37fb60739468 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json @@ -129,9 +129,7 @@ "start": 226, "end": 239 }, - "ctxt": 0, - "value": "localeMatcher", - "optional": false + "value": "localeMatcher" }, "value": { "type": "StringLiteral", @@ -185,9 +183,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -241,9 +237,7 @@ "start": 279, "end": 290 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "property": { @@ -252,9 +246,7 @@ "start": 291, "end": 309 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -293,9 +285,7 @@ "start": 328, "end": 332 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -399,9 +389,7 @@ "start": 368, "end": 380 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [], @@ -413,9 +401,7 @@ "start": 383, "end": 396 }, - "ctxt": 0, - "value": "formatToParts", - "optional": false + "value": "formatToParts" } }, "arguments": [], @@ -460,9 +446,7 @@ "start": 408, "end": 411 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -490,9 +474,7 @@ "start": 417, "end": 421 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -520,9 +502,7 @@ "start": 428, "end": 433 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json index 99426119b59f..d5898bbcb048 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json @@ -206,9 +206,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -263,9 +261,7 @@ "start": 272, "end": 286 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [ @@ -291,9 +287,7 @@ "start": 295, "end": 301 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -355,9 +349,7 @@ "start": 320, "end": 332 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -383,9 +375,7 @@ "start": 341, "end": 347 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -587,9 +577,7 @@ "start": 605, "end": 623 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "arguments": [ @@ -622,9 +610,7 @@ "start": 632, "end": 637 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" }, "value": { "type": "StringLiteral", @@ -681,9 +667,7 @@ "start": 661, "end": 664 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -718,9 +702,7 @@ "start": 670, "end": 676 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -791,9 +773,7 @@ "start": 734, "end": 737 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -828,9 +808,7 @@ "start": 743, "end": 749 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -930,9 +908,7 @@ "start": 817, "end": 835 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "arguments": [ @@ -965,9 +941,7 @@ "start": 844, "end": 851 }, - "ctxt": 0, - "value": "numeric", - "optional": false + "value": "numeric" }, "value": { "type": "StringLiteral", @@ -1024,9 +998,7 @@ "start": 873, "end": 876 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1061,9 +1033,7 @@ "start": 882, "end": 888 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -1155,9 +1125,7 @@ "start": 1078, "end": 1090 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [ @@ -1202,9 +1170,7 @@ "start": 1101, "end": 1105 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -1282,9 +1248,7 @@ "start": 1169, "end": 1181 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [ @@ -1329,9 +1293,7 @@ "start": 1197, "end": 1201 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -1388,9 +1350,7 @@ "start": 1225, "end": 1228 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1425,9 +1385,7 @@ "start": 1250, "end": 1252 }, - "ctxt": 0, - "value": "of", - "optional": false + "value": "of" } }, "arguments": [ @@ -1486,9 +1444,7 @@ "start": 1306, "end": 1309 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1523,9 +1479,7 @@ "start": 1342, "end": 1344 }, - "ctxt": 0, - "value": "of", - "optional": false + "value": "of" } }, "arguments": [ @@ -1673,9 +1627,7 @@ "start": 1455, "end": 1468 }, - "ctxt": 0, - "value": "localeMatcher", - "optional": false + "value": "localeMatcher" }, "value": { "type": "StringLiteral", @@ -1729,9 +1681,7 @@ "start": 1499, "end": 1502 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1785,9 +1735,7 @@ "start": 1508, "end": 1520 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "property": { @@ -1796,9 +1744,7 @@ "start": 1521, "end": 1539 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -1837,9 +1783,7 @@ "start": 1560, "end": 1564 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -1898,9 +1842,7 @@ "start": 1583, "end": 1589 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [], @@ -1942,9 +1884,7 @@ "start": 1618, "end": 1624 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -1979,9 +1919,7 @@ "start": 1634, "end": 1640 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -2040,9 +1978,7 @@ "start": 1662, "end": 1674 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [], @@ -2084,9 +2020,7 @@ "start": 1718, "end": 1730 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [ @@ -2141,9 +2075,7 @@ "start": 1778, "end": 1790 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [ @@ -2209,9 +2141,7 @@ "start": 1841, "end": 1844 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2265,9 +2195,7 @@ "start": 1855, "end": 1867 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [ @@ -2301,9 +2229,7 @@ "start": 1880, "end": 1884 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -2328,9 +2254,7 @@ "start": 1900, "end": 1902 }, - "ctxt": 0, - "value": "of", - "optional": false + "value": "of" } }, "arguments": [ @@ -2431,9 +2355,7 @@ "start": 1974, "end": 1980 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -2494,9 +2416,7 @@ "start": 2000, "end": 2003 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2556,9 +2476,7 @@ "start": 2014, "end": 2026 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "arguments": [ @@ -2592,9 +2510,7 @@ "start": 2040, "end": 2044 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -2619,9 +2535,7 @@ "start": 2060, "end": 2075 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -2633,9 +2547,7 @@ "start": 2078, "end": 2084 }, - "ctxt": 0, - "value": "locale", - "optional": false + "value": "locale" } } } @@ -2678,9 +2590,7 @@ "start": 2106, "end": 2109 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2721,9 +2631,7 @@ "start": 2115, "end": 2127 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "property": { @@ -2732,9 +2640,7 @@ "start": 2128, "end": 2146 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2794,9 +2700,7 @@ "start": 2191, "end": 2194 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2837,9 +2741,7 @@ "start": 2200, "end": 2212 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "property": { @@ -2848,9 +2750,7 @@ "start": 2213, "end": 2231 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [], @@ -2896,9 +2796,7 @@ "start": 2250, "end": 2253 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2939,9 +2837,7 @@ "start": 2259, "end": 2271 }, - "ctxt": 0, - "value": "DisplayNames", - "optional": false + "value": "DisplayNames" } }, "property": { @@ -2950,9 +2846,7 @@ "start": 2272, "end": 2290 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json b/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json index a4c02fd4adf4..e959538bec93 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json @@ -61,9 +61,7 @@ "start": 43, "end": 49 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -142,9 +140,7 @@ "start": 82, "end": 88 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -223,9 +219,7 @@ "start": 121, "end": 127 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -283,9 +277,7 @@ "start": 148, "end": 158 }, - "ctxt": 0, - "value": "ListFormat", - "optional": false + "value": "ListFormat" } }, "arguments": [ @@ -341,9 +333,7 @@ "start": 175, "end": 185 }, - "ctxt": 0, - "value": "ListFormat", - "optional": false + "value": "ListFormat" } }, "arguments": [ @@ -430,9 +420,7 @@ "start": 206, "end": 216 }, - "ctxt": 0, - "value": "ListFormat", - "optional": false + "value": "ListFormat" } }, "property": { @@ -441,9 +429,7 @@ "start": 217, "end": 235 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -505,9 +491,7 @@ "start": 248, "end": 258 }, - "ctxt": 0, - "value": "ListFormat", - "optional": false + "value": "ListFormat" } }, "property": { @@ -516,9 +500,7 @@ "start": 259, "end": 277 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json index c0c551aab8bf..99b8ee7f90a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json @@ -237,9 +237,7 @@ "start": 336, "end": 350 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [ @@ -272,9 +270,7 @@ "start": 366, "end": 374 }, - "ctxt": 0, - "value": "timeZone", - "optional": false + "value": "timeZone" }, "value": { "type": "StringLiteral", @@ -294,9 +290,7 @@ "start": 403, "end": 415 }, - "ctxt": 0, - "value": "timeZoneName", - "optional": false + "value": "timeZoneName" }, "value": { "type": "Identifier", @@ -554,9 +548,7 @@ "start": 607, "end": 624 }, - "ctxt": 0, - "value": "supportedValuesOf", - "optional": false + "value": "supportedValuesOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json b/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json index 6fbd42032864..20f52e30c321 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json @@ -61,9 +61,7 @@ "start": 43, "end": 49 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -142,9 +140,7 @@ "start": 82, "end": 88 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -223,9 +219,7 @@ "start": 121, "end": 127 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -283,9 +277,7 @@ "start": 148, "end": 157 }, - "ctxt": 0, - "value": "Segmenter", - "optional": false + "value": "Segmenter" } }, "arguments": [ @@ -341,9 +333,7 @@ "start": 174, "end": 183 }, - "ctxt": 0, - "value": "Segmenter", - "optional": false + "value": "Segmenter" } }, "arguments": [ @@ -430,9 +420,7 @@ "start": 204, "end": 213 }, - "ctxt": 0, - "value": "Segmenter", - "optional": false + "value": "Segmenter" } }, "property": { @@ -441,9 +429,7 @@ "start": 214, "end": 232 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -505,9 +491,7 @@ "start": 245, "end": 254 }, - "ctxt": 0, - "value": "Segmenter", - "optional": false + "value": "Segmenter" } }, "property": { @@ -516,9 +500,7 @@ "start": 255, "end": 273 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es2022SharedMemory.json b/crates/swc_ecma_parser/tests/tsc/es2022SharedMemory.json index c869225a04b4..9513ba14203c 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2022SharedMemory.json +++ b/crates/swc_ecma_parser/tests/tsc/es2022SharedMemory.json @@ -81,9 +81,7 @@ "start": 116, "end": 133 }, - "ctxt": 0, - "value": "BYTES_PER_ELEMENT", - "optional": false + "value": "BYTES_PER_ELEMENT" } }, "right": { @@ -245,9 +243,7 @@ "start": 228, "end": 245 }, - "ctxt": 0, - "value": "BYTES_PER_ELEMENT", - "optional": false + "value": "BYTES_PER_ELEMENT" } }, "right": { @@ -389,9 +385,7 @@ "start": 321, "end": 325 }, - "ctxt": 0, - "value": "wait", - "optional": false + "value": "wait" } }, "arguments": [ @@ -533,9 +527,7 @@ "start": 373, "end": 382 }, - "ctxt": 0, - "value": "waitAsync", - "optional": false + "value": "waitAsync" } }, "arguments": [ @@ -614,9 +606,7 @@ "start": 405, "end": 410 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "value": { "type": "Identifier", @@ -638,9 +628,7 @@ "start": 421, "end": 426 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -687,9 +675,7 @@ "start": 448, "end": 457 }, - "ctxt": 0, - "value": "waitAsync", - "optional": false + "value": "waitAsync" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es5DateAPIs.json b/crates/swc_ecma_parser/tests/tsc/es5DateAPIs.json index 8b10933552bd..c02a89bd0dbe 100644 --- a/crates/swc_ecma_parser/tests/tsc/es5DateAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es5DateAPIs.json @@ -40,9 +40,7 @@ "start": 20, "end": 23 }, - "ctxt": 0, - "value": "UTC", - "optional": false + "value": "UTC" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekind.json b/crates/swc_ecma_parser/tests/tsc/es6modulekind.json index 94aa2978953e..43fceceb6c6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekind.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekind.json @@ -43,9 +43,7 @@ "start": 107, "end": 118 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -72,9 +70,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES2015Target.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES2015Target.json index af56d998801f..c595ed61bcd1 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES2015Target.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES2015Target.json @@ -43,9 +43,7 @@ "start": 110, "end": 121 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -72,9 +70,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target.json index 93e23fc20277..b70dd9ce0b3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target.json @@ -43,9 +43,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -115,9 +111,7 @@ "start": 120, "end": 126 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -345,9 +339,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -381,9 +373,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -417,9 +407,7 @@ "start": 254, "end": 260 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target11.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target11.json index e6a54ab253f5..29c3a6aca427 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target11.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target11.json @@ -153,9 +153,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -201,9 +199,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -233,9 +229,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -269,9 +263,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -305,9 +297,7 @@ "start": 206, "end": 212 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target2.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target2.json index 96a59358c39b..bfa8a72dfff7 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target2.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target2.json @@ -42,9 +42,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -78,9 +76,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -114,9 +110,7 @@ "start": 95, "end": 101 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target3.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target3.json index 21a449ea3184..85e7234125cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target3.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target3.json @@ -153,9 +153,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -189,9 +187,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -225,9 +221,7 @@ "start": 177, "end": 183 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json index ad9305902a90..676306923c01 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json @@ -123,9 +123,7 @@ "start": 172, "end": 179 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -226,9 +224,7 @@ "start": 213, "end": 220 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json index 98b7e21e1c7b..72403fde61e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json @@ -123,9 +123,7 @@ "start": 179, "end": 186 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -226,9 +224,7 @@ "start": 227, "end": 234 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json index f0488c27d44a..b8f9bcc3eb81 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json @@ -83,9 +83,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -306,9 +304,7 @@ "start": 242, "end": 248 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -442,9 +438,7 @@ "start": 319, "end": 325 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "typeParameters": null, diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.2.json index a06ed6fd0aa7..3a34a3fbe4bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.2.json @@ -128,9 +128,7 @@ "start": 220, "end": 224 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -236,9 +234,7 @@ "start": 375, "end": 379 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -374,9 +370,7 @@ "start": 522, "end": 526 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json index ed94cc783cf1..f9a136b014bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json @@ -83,9 +83,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -237,9 +235,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -275,9 +271,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -323,9 +317,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -372,9 +364,7 @@ "start": 273, "end": 274 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -412,9 +402,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -452,9 +440,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -492,9 +478,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -533,9 +517,7 @@ "start": 346, "end": 347 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -556,9 +538,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -581,9 +561,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -639,9 +617,7 @@ "start": 387, "end": 388 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } ], @@ -1034,9 +1010,7 @@ "start": 566, "end": 567 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1088,9 +1062,7 @@ "start": 586, "end": 587 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1554,9 +1526,7 @@ "start": 778, "end": 779 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1609,9 +1579,7 @@ "start": 796, "end": 797 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json index bcf5bd38978f..7c4e806fbb02 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json @@ -83,9 +83,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -272,9 +270,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -302,9 +298,7 @@ "start": 238, "end": 244 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -333,9 +327,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -400,9 +392,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -468,9 +458,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "TaggedTemplateExpression", @@ -498,9 +486,7 @@ "start": 335, "end": 341 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "typeParameters": null, @@ -548,9 +534,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "TaggedTemplateExpression", @@ -634,9 +618,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "TaggedTemplateExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json index 6b33c38afdea..a485f55e379d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json @@ -83,9 +83,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -210,9 +208,7 @@ "start": 198, "end": 199 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "SuperPropExpression", @@ -233,9 +229,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -261,9 +255,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentExpression", @@ -291,9 +283,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -329,9 +319,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentExpression", @@ -359,9 +347,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -397,9 +383,7 @@ "start": 279, "end": 280 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "UpdateExpression", @@ -428,9 +412,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -457,9 +439,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "UpdateExpression", @@ -488,9 +468,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -517,9 +495,7 @@ "start": 331, "end": 332 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "UpdateExpression", @@ -548,9 +524,7 @@ "start": 343, "end": 344 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -577,9 +551,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "UpdateExpression", @@ -608,9 +580,7 @@ "start": 369, "end": 370 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -637,9 +607,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ParenthesisExpression", @@ -669,9 +637,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -692,9 +658,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -717,9 +681,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -758,9 +720,7 @@ "start": 427, "end": 428 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "AssignmentExpression", @@ -795,9 +755,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } ], @@ -903,9 +861,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "SuperPropExpression", @@ -960,9 +916,7 @@ "start": 518, "end": 519 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentExpression", @@ -1034,9 +988,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentExpression", @@ -1108,9 +1060,7 @@ "start": 581, "end": 582 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "UpdateExpression", @@ -1174,9 +1124,7 @@ "start": 610, "end": 611 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "UpdateExpression", @@ -1240,9 +1188,7 @@ "start": 639, "end": 640 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "UpdateExpression", @@ -1306,9 +1252,7 @@ "start": 668, "end": 669 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "UpdateExpression", @@ -1372,9 +1316,7 @@ "start": 697, "end": 698 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ParenthesisExpression", @@ -1404,9 +1346,7 @@ "start": 704, "end": 705 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1458,9 +1398,7 @@ "start": 724, "end": 725 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1499,9 +1437,7 @@ "start": 744, "end": 745 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "AssignmentExpression", @@ -1650,9 +1586,7 @@ "start": 811, "end": 812 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "SuperPropExpression", @@ -1708,9 +1642,7 @@ "start": 836, "end": 837 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentExpression", @@ -1783,9 +1715,7 @@ "start": 865, "end": 866 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentExpression", @@ -1858,9 +1788,7 @@ "start": 895, "end": 896 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "UpdateExpression", @@ -1925,9 +1853,7 @@ "start": 922, "end": 923 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "UpdateExpression", @@ -1992,9 +1918,7 @@ "start": 949, "end": 950 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "UpdateExpression", @@ -2059,9 +1983,7 @@ "start": 976, "end": 977 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "UpdateExpression", @@ -2126,9 +2048,7 @@ "start": 1003, "end": 1004 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ParenthesisExpression", @@ -2158,9 +2078,7 @@ "start": 1010, "end": 1011 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -2213,9 +2131,7 @@ "start": 1028, "end": 1029 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2254,9 +2170,7 @@ "start": 1048, "end": 1049 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "AssignmentExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json index 4914ea19c825..608e1f27bc7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.6.json @@ -83,9 +83,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -187,9 +185,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -336,9 +332,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -388,9 +382,7 @@ "start": 308, "end": 314 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -423,9 +415,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -475,9 +465,7 @@ "start": 354, "end": 360 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -510,9 +498,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -596,9 +582,7 @@ "start": 402, "end": 408 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -632,9 +616,7 @@ "start": 419, "end": 430 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -701,9 +683,7 @@ "start": 466, "end": 472 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -727,9 +707,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -757,9 +735,7 @@ "start": 497, "end": 503 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -788,9 +764,7 @@ "start": 511, "end": 512 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -840,9 +814,7 @@ "start": 523, "end": 529 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -875,9 +847,7 @@ "start": 543, "end": 544 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -927,9 +897,7 @@ "start": 562, "end": 568 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -962,9 +930,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1048,9 +1014,7 @@ "start": 603, "end": 609 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json index e613d2bf02bb..c2e10fc7d7be 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json @@ -64,9 +64,7 @@ "start": 112, "end": 123 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -214,9 +212,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -483,9 +479,7 @@ "start": 303, "end": 307 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -592,9 +586,7 @@ "start": 406, "end": 417 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -630,9 +622,7 @@ "start": 429, "end": 432 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" } } } @@ -653,9 +643,7 @@ "start": 456, "end": 459 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" }, "function": { "params": [], @@ -775,9 +763,7 @@ "start": 514, "end": 525 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -837,9 +823,7 @@ "start": 548, "end": 551 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" } } } @@ -860,9 +844,7 @@ "start": 575, "end": 578 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.es5.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.es5.json index e5c367333f91..869f0caf8930 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.es5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.es5.json @@ -132,9 +132,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -180,9 +178,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -240,9 +236,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.json index 28284be465bd..566ec1b18a8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classThisReference.json @@ -132,9 +132,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -180,9 +178,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ThisExpression", @@ -225,9 +221,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -285,9 +279,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json index ba95aca6d942..176c1334dcda 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commentPreservation.json @@ -118,9 +118,7 @@ "start": 255, "end": 261 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -198,9 +196,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -295,9 +291,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -409,9 +403,7 @@ "start": 479, "end": 480 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -480,9 +472,7 @@ "start": 551, "end": 552 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs-classNamespaceMerge.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs-classNamespaceMerge.json index 853799e84367..a5e9134198d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs-classNamespaceMerge.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs-classNamespaceMerge.json @@ -107,9 +107,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -265,9 +263,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs.json index 24bee3106b8f..5210ea741191 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-commonjs.json @@ -107,9 +107,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -183,9 +181,7 @@ "start": 126, "end": 129 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json index ec7c39a67e04..92caf5365c3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json @@ -123,9 +123,7 @@ "start": 196, "end": 202 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json index e12a30d0d1cb..22dc63a6ac8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json @@ -123,9 +123,7 @@ "start": 169, "end": 175 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json index 5fd1b1c8fe5d..794d9b7a799e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json @@ -123,9 +123,7 @@ "start": 203, "end": 209 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json index cda1e21ab388..1e3089b75099 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json @@ -123,9 +123,7 @@ "start": 176, "end": 182 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" }, "value": { "type": "NumericLiteral", @@ -403,9 +401,7 @@ "start": 312, "end": 318 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" }, "value": { "type": "NumericLiteral", @@ -463,9 +459,7 @@ "start": 350, "end": 356 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" } } }, @@ -501,9 +495,7 @@ "start": 371, "end": 377 }, - "ctxt": 0, - "value": "field1", - "optional": false + "value": "field1" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json index 4cd64857e0b8..f6bd934aa040 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json @@ -123,9 +123,7 @@ "start": 167, "end": 174 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json index 45a26e1dee88..6fee4f57c338 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json @@ -123,9 +123,7 @@ "start": 174, "end": 181 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-outerThisReference.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-outerThisReference.json index 339d7b6d2ed3..3ac68ec209a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-outerThisReference.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-outerThisReference.json @@ -168,9 +168,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -373,9 +371,7 @@ "start": 430, "end": 431 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -611,9 +607,7 @@ "start": 672, "end": 673 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json index 2efba1894990..e7a6662e455f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-parameterProperties.json @@ -84,9 +84,7 @@ "start": 164, "end": 175 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -150,9 +148,7 @@ "start": 216, "end": 221 }, - "ctxt": 0, - "value": "speak", - "optional": false + "value": "speak" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json index 039159f5aa37..59f5803e2700 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-sourceMap.json @@ -118,9 +118,7 @@ "start": 188, "end": 194 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -198,9 +196,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -295,9 +291,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -409,9 +403,7 @@ "start": 316, "end": 317 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -480,9 +472,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json index a73e7ada2002..b4d76c64bd3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json @@ -83,9 +83,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -317,9 +315,7 @@ "start": 243, "end": 249 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -453,9 +449,7 @@ "start": 320, "end": 326 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "typeParameters": null, diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.2.json index 2e190270a79e..c5c6a2dfc9b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.2.json @@ -139,9 +139,7 @@ "start": 221, "end": 225 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -260,9 +258,7 @@ "start": 379, "end": 383 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -411,9 +407,7 @@ "start": 529, "end": 533 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json index a6cf91efe1fc..635e6f9aa13b 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json @@ -83,9 +83,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -248,9 +246,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -286,9 +282,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -334,9 +328,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -383,9 +375,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -423,9 +413,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -463,9 +451,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -503,9 +489,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -544,9 +528,7 @@ "start": 347, "end": 348 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -567,9 +549,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -592,9 +572,7 @@ "start": 364, "end": 365 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -650,9 +628,7 @@ "start": 388, "end": 389 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } ], @@ -1045,9 +1021,7 @@ "start": 567, "end": 568 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1099,9 +1073,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1565,9 +1537,7 @@ "start": 779, "end": 780 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1620,9 +1590,7 @@ "start": 797, "end": 798 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json index 9018b3ca19dc..71e5d4ec9fb0 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json @@ -83,9 +83,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -283,9 +281,7 @@ "start": 229, "end": 230 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -313,9 +309,7 @@ "start": 239, "end": 245 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -344,9 +338,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -411,9 +403,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -479,9 +469,7 @@ "start": 326, "end": 327 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "TaggedTemplateExpression", @@ -509,9 +497,7 @@ "start": 336, "end": 342 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "typeParameters": null, @@ -559,9 +545,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "TaggedTemplateExpression", @@ -645,9 +629,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "TaggedTemplateExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json index c9b48cdc2b34..65e7f3058f2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json @@ -83,9 +83,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -221,9 +219,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "SuperPropExpression", @@ -244,9 +240,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -272,9 +266,7 @@ "start": 223, "end": 224 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentExpression", @@ -302,9 +294,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -340,9 +330,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentExpression", @@ -370,9 +358,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -408,9 +394,7 @@ "start": 280, "end": 281 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "UpdateExpression", @@ -439,9 +423,7 @@ "start": 290, "end": 291 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -468,9 +450,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "UpdateExpression", @@ -499,9 +479,7 @@ "start": 316, "end": 317 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -528,9 +506,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "UpdateExpression", @@ -559,9 +535,7 @@ "start": 344, "end": 345 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -588,9 +562,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "UpdateExpression", @@ -619,9 +591,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -648,9 +618,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ParenthesisExpression", @@ -680,9 +648,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -703,9 +669,7 @@ "start": 400, "end": 401 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -728,9 +692,7 @@ "start": 408, "end": 409 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -769,9 +731,7 @@ "start": 428, "end": 429 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "AssignmentExpression", @@ -806,9 +766,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } ], @@ -927,9 +885,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "SuperPropExpression", @@ -984,9 +940,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentExpression", @@ -1058,9 +1012,7 @@ "start": 553, "end": 554 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentExpression", @@ -1132,9 +1084,7 @@ "start": 585, "end": 586 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "UpdateExpression", @@ -1198,9 +1148,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "UpdateExpression", @@ -1264,9 +1212,7 @@ "start": 643, "end": 644 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "UpdateExpression", @@ -1330,9 +1276,7 @@ "start": 672, "end": 673 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "UpdateExpression", @@ -1396,9 +1340,7 @@ "start": 701, "end": 702 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ParenthesisExpression", @@ -1428,9 +1370,7 @@ "start": 708, "end": 709 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1482,9 +1422,7 @@ "start": 728, "end": 729 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1523,9 +1461,7 @@ "start": 748, "end": 749 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "AssignmentExpression", @@ -1687,9 +1623,7 @@ "start": 818, "end": 819 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "SuperPropExpression", @@ -1745,9 +1679,7 @@ "start": 843, "end": 844 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "AssignmentExpression", @@ -1820,9 +1752,7 @@ "start": 872, "end": 873 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentExpression", @@ -1895,9 +1825,7 @@ "start": 902, "end": 903 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "UpdateExpression", @@ -1962,9 +1890,7 @@ "start": 929, "end": 930 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "UpdateExpression", @@ -2029,9 +1955,7 @@ "start": 956, "end": 957 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "UpdateExpression", @@ -2096,9 +2020,7 @@ "start": 983, "end": 984 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "UpdateExpression", @@ -2163,9 +2085,7 @@ "start": 1010, "end": 1011 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ParenthesisExpression", @@ -2195,9 +2115,7 @@ "start": 1017, "end": 1018 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -2250,9 +2168,7 @@ "start": 1035, "end": 1036 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2291,9 +2207,7 @@ "start": 1055, "end": 1056 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "AssignmentExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json index 65263778fcdb..a3423b5d984d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.6.json @@ -83,9 +83,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -187,9 +185,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -347,9 +343,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -399,9 +393,7 @@ "start": 309, "end": 315 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -434,9 +426,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -486,9 +476,7 @@ "start": 355, "end": 361 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -521,9 +509,7 @@ "start": 382, "end": 383 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -607,9 +593,7 @@ "start": 403, "end": 409 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -643,9 +627,7 @@ "start": 420, "end": 431 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -712,9 +694,7 @@ "start": 467, "end": 473 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -738,9 +718,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -768,9 +746,7 @@ "start": 498, "end": 504 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -799,9 +775,7 @@ "start": 512, "end": 513 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -851,9 +825,7 @@ "start": 524, "end": 530 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -886,9 +858,7 @@ "start": 544, "end": 545 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -938,9 +908,7 @@ "start": 563, "end": 569 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -973,9 +941,7 @@ "start": 583, "end": 584 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1059,9 +1025,7 @@ "start": 604, "end": 610 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json index 8963b2922d75..947525afe991 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-commentPreservation.json @@ -129,9 +129,7 @@ "start": 229, "end": 235 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -209,9 +207,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -306,9 +302,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -420,9 +414,7 @@ "start": 454, "end": 455 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -491,9 +483,7 @@ "start": 526, "end": 527 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.json index d60cde6bf3d1..5ec31f3cdfa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.json @@ -94,9 +94,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" }, "value": { "type": "ClassExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.json index 60e9053fdcdf..c393c1a6d75a 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.json @@ -89,9 +89,7 @@ "start": 241, "end": 242 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" }, "value": { "type": "ClassExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.json index 70fba94014c0..0a94f8029063 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.json @@ -128,9 +128,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.1.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.1.json index f528f3585e31..74b0bccbc841 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.1.json @@ -203,9 +203,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -366,9 +364,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -529,9 +525,7 @@ "start": 561, "end": 562 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -692,9 +686,7 @@ "start": 718, "end": 719 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json index 7e8ede7e6251..ffafc47b0ded 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json @@ -125,9 +125,7 @@ "start": 197, "end": 198 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ClassExpression", @@ -740,9 +738,7 @@ "start": 521, "end": 530 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "ClassExpression", @@ -935,9 +931,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ClassExpression", @@ -961,9 +955,7 @@ "start": 641, "end": 642 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1101,9 +1093,7 @@ "start": 693, "end": 694 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1241,9 +1231,7 @@ "start": 743, "end": 744 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1388,9 +1376,7 @@ "start": 797, "end": 798 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1535,9 +1521,7 @@ "start": 849, "end": 850 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1765,9 +1749,7 @@ "start": 988, "end": 997 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "ClassExpression", @@ -1791,9 +1773,7 @@ "start": 1013, "end": 1014 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1931,9 +1911,7 @@ "start": 1073, "end": 1074 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -2046,9 +2024,7 @@ "start": 1185, "end": 1186 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ClassExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.11.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.11.json index 449006b76c92..7a26ed87a3eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.11.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.11.json @@ -133,9 +133,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -290,9 +288,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json index f057e124b8c5..6dd0f61968b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json @@ -158,9 +158,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ClassExpression", @@ -228,9 +226,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ClassExpression", @@ -254,9 +250,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -435,9 +429,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -616,9 +608,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -811,9 +801,7 @@ "start": 458, "end": 459 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1006,9 +994,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1223,9 +1209,7 @@ "start": 588, "end": 589 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1310,9 +1294,7 @@ "start": 658, "end": 667 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "ClassExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.3.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.3.json index 9ff40d4309ca..1306c410a828 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.3.json @@ -183,9 +183,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -376,9 +374,7 @@ "start": 295, "end": 296 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -569,9 +565,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.4.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.4.json index 6b5dbbd46986..b758ace655dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.4.json @@ -258,9 +258,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -507,9 +505,7 @@ "start": 455, "end": 456 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -622,9 +618,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -738,9 +732,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -781,9 +773,7 @@ "start": 550, "end": 551 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.5.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.5.json index b7b6167fbb1f..06a6c2491ca4 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.5.json @@ -279,9 +279,7 @@ "start": 284, "end": 285 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.6.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.6.json index b83e89791c44..9f38db36d04d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.6.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.6.json @@ -153,9 +153,7 @@ "start": 241, "end": 242 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -261,9 +259,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -304,9 +300,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.7.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.7.json index c207d67978ff..934435e8849d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.7.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.7.json @@ -266,9 +266,7 @@ "start": 284, "end": 285 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.8.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.8.json index 59fb116ea7f8..44766d4b9caf 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.8.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.8.json @@ -179,9 +179,7 @@ "start": 416, "end": 417 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.9.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.9.json index a7e4050d4e69..4b75d79243c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.9.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.9.json @@ -166,9 +166,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json index d8fb0125cc08..1fa7f431caaa 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json @@ -37,9 +37,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -141,9 +139,7 @@ "start": 123, "end": 132 }, - "ctxt": 0, - "value": "fooHelper", - "optional": false + "value": "fooHelper" } }, "arguments": [], @@ -176,9 +172,7 @@ "start": 147, "end": 156 }, - "ctxt": 0, - "value": "fooHelper", - "optional": false + "value": "fooHelper" }, "function": { "params": [], @@ -231,9 +225,7 @@ "start": 177, "end": 180 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -829,9 +821,7 @@ "start": 616, "end": 630 }, - "ctxt": 0, - "value": "addInitializer", - "optional": false + "value": "addInitializer" } }, "arguments": [ @@ -931,9 +921,7 @@ "start": 683, "end": 687 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1014,9 +1002,7 @@ "start": 713, "end": 717 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1027,9 +1013,7 @@ "start": 719, "end": 723 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -1174,9 +1158,7 @@ "start": 820, "end": 823 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1234,9 +1216,7 @@ "start": 871, "end": 875 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -1245,9 +1225,7 @@ "start": 876, "end": 884 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1327,9 +1305,7 @@ "start": 918, "end": 923 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.json index 69dc1f934ee2..84daf36ea29d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.json @@ -90,9 +90,7 @@ "start": 80, "end": 81 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -284,9 +282,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -399,9 +395,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -746,9 +740,7 @@ "start": 382, "end": 383 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -916,9 +908,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -1091,9 +1081,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -1285,9 +1273,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -1400,9 +1386,7 @@ "start": 665, "end": 666 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -1747,9 +1731,7 @@ "start": 806, "end": 807 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1917,9 +1899,7 @@ "start": 882, "end": 883 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json index 1dbc188f497a..cb29093e7f83 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json @@ -449,9 +449,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -528,9 +526,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -855,9 +851,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -943,9 +937,7 @@ "start": 398, "end": 399 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -1107,9 +1099,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "typeParameters": null, @@ -1213,9 +1203,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -1433,9 +1421,7 @@ "start": 560, "end": 561 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1540,9 +1526,7 @@ "start": 590, "end": 591 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1581,9 +1565,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -1664,9 +1646,7 @@ "start": 620, "end": 621 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1706,9 +1686,7 @@ "start": 618, "end": 619 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -1788,9 +1766,7 @@ "start": 657, "end": 658 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1914,9 +1890,7 @@ "start": 694, "end": 695 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2038,9 +2012,7 @@ "start": 733, "end": 734 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2172,9 +2144,7 @@ "start": 766, "end": 767 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2217,9 +2187,7 @@ "start": 763, "end": 764 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -2299,9 +2267,7 @@ "start": 801, "end": 802 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2351,9 +2317,7 @@ "start": 796, "end": 797 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -2436,9 +2400,7 @@ "start": 832, "end": 833 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2565,9 +2527,7 @@ "start": 865, "end": 866 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2607,9 +2567,7 @@ "start": 860, "end": 861 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "typeParameters": null, @@ -2711,9 +2669,7 @@ "start": 898, "end": 899 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2759,9 +2715,7 @@ "start": 894, "end": 895 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -2843,9 +2797,7 @@ "start": 932, "end": 933 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2966,9 +2918,7 @@ "start": 968, "end": 969 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json index e7b37ca9032e..5815f7325736 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-emitDecoratorMetadata.json @@ -102,9 +102,7 @@ "start": 168, "end": 179 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -165,9 +163,7 @@ "start": 208, "end": 214 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -262,9 +258,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -359,9 +353,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -419,9 +411,7 @@ "start": 309, "end": 315 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -516,9 +506,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -613,9 +601,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -730,9 +716,7 @@ "start": 426, "end": 437 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -793,9 +777,7 @@ "start": 466, "end": 472 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -890,9 +872,7 @@ "start": 505, "end": 506 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -987,9 +967,7 @@ "start": 535, "end": 536 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1047,9 +1025,7 @@ "start": 567, "end": 573 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -1144,9 +1120,7 @@ "start": 613, "end": 614 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1241,9 +1215,7 @@ "start": 650, "end": 651 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json index 8028792e622e..80c5f01a758e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json @@ -186,9 +186,7 @@ "start": 183, "end": 191 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } }, "property": { @@ -321,9 +319,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -470,9 +466,7 @@ "start": 286, "end": 294 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -483,9 +477,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -545,9 +537,7 @@ "start": 315, "end": 323 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -558,9 +548,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json index 490296b933c1..693d7f3bfa8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json @@ -186,9 +186,7 @@ "start": 183, "end": 191 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } }, "property": { @@ -321,9 +319,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -470,9 +466,7 @@ "start": 285, "end": 293 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -483,9 +477,7 @@ "start": 295, "end": 296 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -545,9 +537,7 @@ "start": 314, "end": 322 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -558,9 +548,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -596,9 +584,7 @@ "start": 379, "end": 380 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -754,9 +740,7 @@ "start": 398, "end": 406 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -767,9 +751,7 @@ "start": 408, "end": 409 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -829,9 +811,7 @@ "start": 427, "end": 435 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -842,9 +822,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json index 8e305cd7773a..1249eb148dbc 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json @@ -207,9 +207,7 @@ "start": 206, "end": 214 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } }, "property": { @@ -284,9 +282,7 @@ "start": 243, "end": 251 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } }, "property": { @@ -585,9 +581,7 @@ "start": 380, "end": 388 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -598,9 +592,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -660,9 +652,7 @@ "start": 411, "end": 419 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -673,9 +663,7 @@ "start": 421, "end": 422 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json index 22321e632b05..4fdc9e224c3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json @@ -252,9 +252,7 @@ "start": 248, "end": 251 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -282,9 +280,7 @@ "start": 260, "end": 268 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -396,9 +392,7 @@ "start": 353, "end": 356 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -426,9 +420,7 @@ "start": 365, "end": 373 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } }, @@ -612,9 +604,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -746,9 +736,7 @@ "start": 516, "end": 519 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -798,9 +786,7 @@ "start": 529, "end": 537 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -815,9 +801,7 @@ "start": 540, "end": 541 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -862,9 +846,7 @@ "start": 567, "end": 570 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -914,9 +896,7 @@ "start": 580, "end": 588 }, - "ctxt": 0, - "value": "metadata", - "optional": false + "value": "metadata" } } } @@ -931,9 +911,7 @@ "start": 591, "end": 592 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata5.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata5.json index e218522d6604..99e5cd6b7f20 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata5.json @@ -83,9 +83,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekind.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekind.json index af56d998801f..c595ed61bcd1 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekind.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekind.json @@ -43,9 +43,7 @@ "start": 110, "end": 121 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -72,9 +70,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES2015Target.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES2015Target.json index af56d998801f..c595ed61bcd1 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES2015Target.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES2015Target.json @@ -43,9 +43,7 @@ "start": 110, "end": 121 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -72,9 +70,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target.json index 93e23fc20277..b70dd9ce0b3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target.json @@ -43,9 +43,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -115,9 +111,7 @@ "start": 120, "end": 126 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -345,9 +339,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -381,9 +373,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -417,9 +407,7 @@ "start": 254, "end": 260 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target11.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target11.json index e6a54ab253f5..29c3a6aca427 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target11.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target11.json @@ -153,9 +153,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -201,9 +199,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -233,9 +229,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -269,9 +263,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -305,9 +297,7 @@ "start": 206, "end": 212 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target2.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target2.json index 96a59358c39b..bfa8a72dfff7 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target2.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target2.json @@ -42,9 +42,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -78,9 +76,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -114,9 +110,7 @@ "start": 95, "end": 101 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target3.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target3.json index 21a449ea3184..85e7234125cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target3.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target3.json @@ -153,9 +153,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NumericLiteral", @@ -189,9 +187,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -225,9 +221,7 @@ "start": 177, "end": 183 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json b/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json index 775540e4cc44..c42becb9fe4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeAssignableToAny.json @@ -83,9 +83,7 @@ "start": 28, "end": 31 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json index 3e5a8d89beca..d656c20acb9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json @@ -101,9 +101,7 @@ "start": 61, "end": 63 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 92, "end": 98 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -241,9 +237,7 @@ "start": 107, "end": 114 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -319,9 +313,7 @@ "start": 126, "end": 133 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -610,9 +602,7 @@ "start": 232, "end": 236 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -751,9 +741,7 @@ "start": 306, "end": 314 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1541,9 +1529,7 @@ "start": 678, "end": 680 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -2017,6 +2003,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 900, + "end": 903 + }, "left": { "type": "Identifier", "span": { @@ -2033,9 +2023,7 @@ "start": 902, "end": 903 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2071,9 +2059,7 @@ "start": 912, "end": 913 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -2122,6 +2108,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 947, + "end": 951 + }, "left": { "type": "Identifier", "span": { @@ -2138,9 +2128,7 @@ "start": 949, "end": 951 }, - "ctxt": 0, - "value": "F2", - "optional": false + "value": "F2" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json index 1703d6988cbb..6eb81820b6f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json @@ -101,9 +101,7 @@ "start": 61, "end": 63 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 92, "end": 98 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -241,9 +237,7 @@ "start": 107, "end": 114 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -319,9 +313,7 @@ "start": 126, "end": 133 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -727,9 +719,7 @@ "start": 283, "end": 287 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -868,9 +858,7 @@ "start": 357, "end": 365 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -965,9 +953,7 @@ "start": 414, "end": 416 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -1106,9 +1092,7 @@ "start": 486, "end": 494 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1673,9 +1657,7 @@ "start": 742, "end": 744 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -2149,6 +2131,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 983, + "end": 986 + }, "left": { "type": "Identifier", "span": { @@ -2165,9 +2151,7 @@ "start": 985, "end": 986 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2203,9 +2187,7 @@ "start": 995, "end": 996 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -2254,6 +2236,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1030, + "end": 1034 + }, "left": { "type": "Identifier", "span": { @@ -2270,9 +2256,7 @@ "start": 1032, "end": 1034 }, - "ctxt": 0, - "value": "F2", - "optional": false + "value": "F2" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json index c9c8dabac7cb..3f51a74f22fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json @@ -101,9 +101,7 @@ "start": 61, "end": 63 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 92, "end": 98 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -241,9 +237,7 @@ "start": 107, "end": 114 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -319,9 +313,7 @@ "start": 126, "end": 133 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -610,9 +602,7 @@ "start": 232, "end": 236 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -751,9 +741,7 @@ "start": 306, "end": 314 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1285,9 +1273,7 @@ "start": 596, "end": 598 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -1508,9 +1494,7 @@ "start": 695, "end": 696 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -1569,9 +1553,7 @@ "start": 726, "end": 728 }, - "ctxt": 0, - "value": "F2", - "optional": false + "value": "F2" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json b/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json index 352cdebe7d09..360ac7653097 100644 --- a/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json +++ b/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json @@ -1011,9 +1011,7 @@ "start": 765, "end": 766 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -1063,9 +1061,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -1273,9 +1269,7 @@ "start": 922, "end": 923 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -1325,9 +1319,7 @@ "start": 953, "end": 954 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -2068,9 +2060,7 @@ "start": 1353, "end": 1357 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -2143,9 +2133,7 @@ "start": 1393, "end": 1397 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -2170,9 +2158,7 @@ "start": 1402, "end": 1406 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -2257,9 +2243,7 @@ "start": 1450, "end": 1455 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -2284,9 +2268,7 @@ "start": 1460, "end": 1466 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -2378,9 +2360,7 @@ "start": 1510, "end": 1512 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -2405,9 +2385,7 @@ "start": 1517, "end": 1523 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } }, @@ -2433,9 +2411,7 @@ "start": 1528, "end": 1534 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } } @@ -2541,9 +2517,7 @@ "start": 1580, "end": 1584 }, - "ctxt": 0, - "value": "sqrt", - "optional": false + "value": "sqrt" } }, "arguments": [ @@ -2594,9 +2568,7 @@ "start": 1596, "end": 1600 }, - "ctxt": 0, - "value": "side", - "optional": false + "value": "side" } } }, @@ -2622,9 +2594,7 @@ "start": 1605, "end": 1609 }, - "ctxt": 0, - "value": "side", - "optional": false + "value": "side" } } } @@ -2865,9 +2835,7 @@ "start": 1737, "end": 1741 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -2922,9 +2890,7 @@ "start": 1781, "end": 1785 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -2949,9 +2915,7 @@ "start": 1790, "end": 1794 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -3009,9 +2973,7 @@ "start": 1835, "end": 1840 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -3036,9 +2998,7 @@ "start": 1845, "end": 1851 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -3103,9 +3063,7 @@ "start": 1892, "end": 1894 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } }, "right": { @@ -3130,9 +3088,7 @@ "start": 1899, "end": 1905 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } }, @@ -3158,9 +3114,7 @@ "start": 1910, "end": 1916 }, - "ctxt": 0, - "value": "radius", - "optional": false + "value": "radius" } } } @@ -3239,9 +3193,7 @@ "start": 1959, "end": 1963 }, - "ctxt": 0, - "value": "sqrt", - "optional": false + "value": "sqrt" } }, "arguments": [ @@ -3292,9 +3244,7 @@ "start": 1975, "end": 1979 }, - "ctxt": 0, - "value": "side", - "optional": false + "value": "side" } } }, @@ -3320,9 +3270,7 @@ "start": 1984, "end": 1988 }, - "ctxt": 0, - "value": "side", - "optional": false + "value": "side" } } } @@ -3602,9 +3550,7 @@ "start": 2165, "end": 2166 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -3681,9 +3627,7 @@ "start": 2205, "end": 2206 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -3935,9 +3879,7 @@ "start": 2328, "end": 2329 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -4014,9 +3956,7 @@ "start": 2368, "end": 2369 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -4275,9 +4215,7 @@ "start": 2522, "end": 2523 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -4327,9 +4265,7 @@ "start": 2558, "end": 2559 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -4611,9 +4547,7 @@ "start": 2740, "end": 2743 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } }, "consequent": [ @@ -4663,9 +4597,7 @@ "start": 2764, "end": 2767 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } } } @@ -4708,9 +4640,7 @@ "start": 2797, "end": 2800 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "consequent": [ @@ -4760,9 +4690,7 @@ "start": 2821, "end": 2824 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } } } @@ -5228,9 +5156,7 @@ "start": 3112, "end": 3116 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5312,9 +5238,7 @@ "start": 3213, "end": 3217 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5582,9 +5506,7 @@ "start": 3504, "end": 3508 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5666,9 +5588,7 @@ "start": 3605, "end": 3609 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -6309,9 +6229,7 @@ "start": 4095, "end": 4101 }, - "ctxt": 0, - "value": "animal", - "optional": false + "value": "animal" } } }, @@ -6337,9 +6255,7 @@ "start": 4112, "end": 4115 }, - "ctxt": 0, - "value": "DOG", - "optional": false + "value": "DOG" } } }, @@ -6372,9 +6288,7 @@ "start": 4139, "end": 4142 }, - "ctxt": 0, - "value": "DOG", - "optional": false + "value": "DOG" } }, "consequent": [ @@ -6406,9 +6320,7 @@ "start": 4158, "end": 4161 }, - "ctxt": 0, - "value": "DOG", - "optional": false + "value": "DOG" } } } @@ -6442,9 +6354,7 @@ "start": 4182, "end": 4185 }, - "ctxt": 0, - "value": "CAT", - "optional": false + "value": "CAT" } }, "consequent": [ @@ -6476,9 +6386,7 @@ "start": 4201, "end": 4204 }, - "ctxt": 0, - "value": "CAT", - "optional": false + "value": "CAT" } } } @@ -7429,9 +7337,7 @@ "start": 4759, "end": 4763 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -7521,9 +7427,7 @@ "start": 4829, "end": 4833 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json b/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json index 4b843a883ad1..5aaec69b22ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json @@ -86,9 +86,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -201,9 +199,7 @@ "start": 279, "end": 285 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "right": { @@ -278,9 +274,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -329,9 +323,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -372,9 +364,7 @@ "start": 536, "end": 537 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -406,9 +396,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnum.json b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnum.json index f61a48ae6aeb..342518c5c465 100644 --- a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnum.json +++ b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnum.json @@ -561,9 +561,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -637,9 +635,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -713,9 +709,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -740,9 +734,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -806,9 +798,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -891,9 +881,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -967,9 +955,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1042,9 +1028,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnumUnion.json b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnumUnion.json index 37e04018358f..0ad3422e6cdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnumUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithEnumUnion.json @@ -645,9 +645,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -721,9 +719,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -797,9 +793,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -824,9 +818,7 @@ "start": 326, "end": 327 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -890,9 +882,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -975,9 +965,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1051,9 +1039,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1126,9 +1112,7 @@ "start": 405, "end": 406 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithInvalidOperands.json index f5926f0808e1..b4d2b941896a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithInvalidOperands.json @@ -2582,9 +2582,7 @@ "start": 1024, "end": 1025 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2658,9 +2656,7 @@ "start": 1050, "end": 1051 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2734,9 +2730,7 @@ "start": 1071, "end": 1072 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2810,9 +2804,7 @@ "start": 1097, "end": 1098 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2886,9 +2878,7 @@ "start": 1118, "end": 1119 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2962,9 +2952,7 @@ "start": 1139, "end": 1140 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3048,9 +3036,7 @@ "start": 1166, "end": 1167 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3124,9 +3110,7 @@ "start": 1192, "end": 1193 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3200,9 +3184,7 @@ "start": 1213, "end": 1214 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3276,9 +3258,7 @@ "start": 1239, "end": 1240 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3352,9 +3332,7 @@ "start": 1260, "end": 1261 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3428,9 +3406,7 @@ "start": 1281, "end": 1282 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json index 6fba51b76ad2..6e2a7cee4d34 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json @@ -164,9 +164,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -198,9 +196,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -276,9 +272,7 @@ "start": 248, "end": 250 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "property": { @@ -287,9 +281,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -327,9 +319,7 @@ "start": 258, "end": 260 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "property": { @@ -338,9 +328,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json index a93de350f6ed..db082452705d 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json @@ -164,9 +164,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -198,9 +196,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -276,9 +272,7 @@ "start": 274, "end": 276 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "property": { @@ -287,9 +281,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -327,9 +319,7 @@ "start": 284, "end": 286 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "property": { @@ -338,9 +328,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json index b5f940e717d4..2ee879df1e6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json @@ -164,9 +164,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -198,9 +196,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -246,9 +242,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -268,9 +262,7 @@ "start": 238, "end": 239 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -316,9 +308,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -350,9 +340,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -428,9 +416,7 @@ "start": 308, "end": 310 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "property": { @@ -439,9 +425,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -479,9 +463,7 @@ "start": 318, "end": 320 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "property": { @@ -490,9 +472,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json index 6392d815063e..ee2b11d94368 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json @@ -295,9 +295,7 @@ "start": 353, "end": 354 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -329,9 +327,7 @@ "start": 361, "end": 362 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -363,9 +359,7 @@ "start": 369, "end": 370 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -397,9 +391,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json index 6f0b871187c6..5cfb70b56cb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json @@ -202,6 +202,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 242, + "end": 250 + }, "left": { "type": "Identifier", "span": { @@ -218,9 +222,7 @@ "start": 245, "end": 250 }, - "ctxt": 0, - "value": "Named", - "optional": false + "value": "Named" } }, "typeParams": null @@ -254,9 +256,7 @@ "start": 255, "end": 260 }, - "ctxt": 0, - "value": "Named", - "optional": false + "value": "Named" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json b/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json index d54ec228b9b1..1ac37be29c26 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json @@ -125,9 +125,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json b/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json index 6d77fe152d0d..f1bc3867bf70 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json @@ -146,9 +146,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json b/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json index 59105cae762e..1e52b848e556 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json @@ -298,9 +298,7 @@ "start": 255, "end": 261 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" }, "value": { "type": "NumericLiteral", @@ -320,9 +318,7 @@ "start": 267, "end": 271 }, - "ctxt": 0, - "value": "when", - "optional": false + "value": "when" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json index 8a4498d5d0da..28353753d71a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json @@ -120,9 +120,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -265,9 +263,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -410,9 +406,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json index c2dadc3f14be..125be03845b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json @@ -37,9 +37,7 @@ "start": 91, "end": 95 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": null, "typeAnnotation": { @@ -90,9 +88,7 @@ "start": 101, "end": 112 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -443,9 +439,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -465,9 +459,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -558,9 +550,7 @@ "start": 305, "end": 309 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "property": { @@ -569,9 +559,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json index 7969d402d6b5..e425bccbf686 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json @@ -37,9 +37,7 @@ "start": 60, "end": 64 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": null, "typeAnnotation": { @@ -296,9 +294,7 @@ "start": 186, "end": 190 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json index dccc042d55f7..4489f569f498 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json @@ -590,9 +590,7 @@ "start": 290, "end": 291 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -641,9 +639,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -701,9 +697,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -723,9 +717,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -789,9 +781,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json index 5daba353bf6e..3bcd77ab49c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json @@ -462,9 +462,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [], @@ -516,9 +514,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -572,9 +568,7 @@ "start": 345, "end": 349 }, - "ctxt": 0, - "value": "Test", - "optional": false + "value": "Test" } }, "property": { @@ -583,9 +577,7 @@ "start": 350, "end": 356 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" } }, "right": { @@ -617,9 +609,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json index ab1f29f27aff..693d8a7ec490 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json @@ -37,9 +37,7 @@ "start": 53, "end": 57 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "StringLiteral", @@ -230,9 +228,7 @@ "start": 188, "end": 194 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json index 2638cc3c75e9..568d033b9a85 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json @@ -308,9 +308,7 @@ "start": 215, "end": 220 }, - "ctxt": 0, - "value": "green", - "optional": false + "value": "green" } } }, @@ -368,9 +366,7 @@ "start": 236, "end": 242 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json index e00a366a10a8..bf5bf0f38b9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json @@ -218,9 +218,7 @@ "start": 193, "end": 199 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json index d4a44bb854ba..3a93ee031844 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json @@ -167,9 +167,7 @@ "start": 158, "end": 164 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportCodeGen.json b/crates/swc_ecma_parser/tests/tsc/exportCodeGen.json index a06c623b4e20..2fe133b8b166 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportCodeGen.json +++ b/crates/swc_ecma_parser/tests/tsc/exportCodeGen.json @@ -670,9 +670,7 @@ "start": 633, "end": 637 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -987,9 +985,7 @@ "start": 872, "end": 876 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json b/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json index a58d415b71dc..9c60be94bcba 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json @@ -255,9 +255,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json b/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json index 21dc569b0a4d..b9a4748213d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json @@ -33,9 +33,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json b/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json index 37a0b14f05d2..949fc66f69ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json @@ -97,9 +97,7 @@ "start": 94, "end": 102 }, - "ctxt": 0, - "value": "someProp", - "optional": false + "value": "someProp" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json b/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json index 7899c51554d8..b6ec0d92d30e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json @@ -116,9 +116,7 @@ "start": 105, "end": 116 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -449,9 +447,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -460,9 +456,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -616,9 +610,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -627,9 +619,7 @@ "start": 365, "end": 370 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ @@ -785,10 +775,22 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 410, + "end": 418 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 410, + "end": 415 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 410, + "end": 413 + }, "left": { "type": "Identifier", "span": { @@ -805,9 +807,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -816,9 +816,7 @@ "start": 414, "end": 415 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -827,9 +825,7 @@ "start": 416, "end": 418 }, - "ctxt": 0, - "value": "Id", - "optional": false + "value": "Id" } }, "typeParams": null @@ -994,9 +990,7 @@ "start": 547, "end": 558 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1144,6 +1138,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 688, + "end": 691 + }, "left": { "type": "Identifier", "span": { @@ -1160,9 +1158,7 @@ "start": 690, "end": 691 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } } } @@ -1239,9 +1235,7 @@ "start": 714, "end": 715 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -1398,9 +1392,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -1409,9 +1401,7 @@ "start": 762, "end": 767 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ @@ -1510,9 +1500,7 @@ "start": 816, "end": 827 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1808,6 +1796,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 1040, + "end": 1043 + }, "left": { "type": "Identifier", "span": { @@ -1824,9 +1816,7 @@ "start": 1042, "end": 1043 }, - "ctxt": 0, - "value": "L", - "optional": false + "value": "L" } } } @@ -1971,9 +1961,7 @@ "start": 1087, "end": 1088 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "arguments": [ @@ -2152,8 +2140,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1140, + "end": 1149 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 1140, + "end": 1143 + }, "left": { "type": "Identifier", "span": { @@ -2170,9 +2166,7 @@ "start": 1142, "end": 1143 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "right": { @@ -2181,9 +2175,7 @@ "start": 1144, "end": 1149 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json index 798c6a3d5ef5..42757b9266ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json @@ -154,6 +154,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 146, + "end": 150 + }, "left": { "type": "Identifier", "span": { @@ -170,9 +174,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -208,9 +210,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json index f0c90e39939a..bc32fc7375fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json @@ -82,6 +82,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 83, + "end": 101 + }, "left": { "type": "Identifier", "span": { @@ -98,9 +102,7 @@ "start": 96, "end": 101 }, - "ctxt": 0, - "value": "Ghost", - "optional": false + "value": "Ghost" } }, "typeParams": null @@ -136,9 +138,7 @@ "start": 121, "end": 126 }, - "ctxt": 0, - "value": "Ghost", - "optional": false + "value": "Ghost" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json index a02a3e65667e..844472adf11e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json @@ -118,9 +118,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -176,9 +174,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -206,9 +202,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json index fd480753ca7f..1e7fb18f5209 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json @@ -189,9 +189,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json index 556b45bb8367..e47650704b76 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json @@ -218,9 +218,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json index f23297a3344a..53c3322969e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json @@ -40,9 +40,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -96,9 +94,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -107,9 +103,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -162,9 +156,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -222,9 +214,7 @@ "start": 147, "end": 154 }, - "ctxt": 0, - "value": "Classic", - "optional": false + "value": "Classic" } }, "right": { @@ -250,9 +240,7 @@ "start": 169, "end": 180 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -295,9 +283,7 @@ "start": 198, "end": 199 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -425,9 +411,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -436,9 +420,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "arguments": [], @@ -476,9 +458,7 @@ "start": 284, "end": 285 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -538,9 +518,7 @@ "start": 306, "end": 313 }, - "ctxt": 0, - "value": "Classic", - "optional": false + "value": "Classic" } }, "arguments": [], @@ -645,9 +623,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -679,9 +655,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json index 25f17e944b24..34c07e065f38 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json @@ -40,9 +40,7 @@ "start": 118, "end": 128 }, - "ctxt": 0, - "value": "formatters", - "optional": false + "value": "formatters" } }, "right": { @@ -155,9 +153,7 @@ "start": 192, "end": 202 }, - "ctxt": 0, - "value": "formatters", - "optional": false + "value": "formatters" } }, "property": { @@ -166,9 +162,7 @@ "start": 203, "end": 204 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { @@ -335,9 +329,7 @@ "start": 296, "end": 306 }, - "ctxt": 0, - "value": "formatters", - "optional": false + "value": "formatters" } }, "property": { @@ -346,9 +338,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } }, "right": { @@ -487,9 +477,7 @@ "start": 401, "end": 411 }, - "ctxt": 0, - "value": "formatters", - "optional": false + "value": "formatters" } }, "property": { @@ -498,9 +486,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } } }, @@ -566,9 +552,7 @@ "start": 430, "end": 440 }, - "ctxt": 0, - "value": "formatters", - "optional": false + "value": "formatters" } }, "property": { @@ -577,9 +561,7 @@ "start": 441, "end": 442 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json b/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json index 94436731fc9a..5246af9ec181 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json @@ -170,9 +170,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -192,9 +190,7 @@ "start": 89, "end": 90 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -360,9 +356,7 @@ "start": 220, "end": 222 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": null, "typeAnnotation": { @@ -555,9 +549,7 @@ "start": 391, "end": 393 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportPropertyAssignmentNameResolution.json b/crates/swc_ecma_parser/tests/tsc/exportPropertyAssignmentNameResolution.json index a7cadab09438..448beede1a9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportPropertyAssignmentNameResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/exportPropertyAssignmentNameResolution.json @@ -46,9 +46,7 @@ "start": 87, "end": 94 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -57,9 +55,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json b/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json index dfec33ad217c..52fa6372a5e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json @@ -147,9 +147,7 @@ "start": 114, "end": 116 }, - "ctxt": 0, - "value": "of", - "optional": false + "value": "of" } }, "arguments": [ @@ -205,6 +203,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 145, + "end": 162 + }, "left": { "type": "Identifier", "span": { @@ -221,9 +223,7 @@ "start": 155, "end": 162 }, - "ctxt": 0, - "value": "SubType", - "optional": false + "value": "SubType" } }, "typeParams": { @@ -760,6 +760,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 458, + "end": 469 + }, "left": { "type": "Identifier", "span": { @@ -776,9 +780,7 @@ "start": 460, "end": 469 }, - "ctxt": 0, - "value": "Something", - "optional": false + "value": "Something" } }, "typeParams": { diff --git a/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json b/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json index 95a5ef53c6bb..609e603d8de4 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json +++ b/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json @@ -61,9 +61,7 @@ "start": 102, "end": 109 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -114,9 +112,7 @@ "start": 143, "end": 147 }, - "ctxt": 0, - "value": "Type", - "optional": false + "value": "Type" } }, "right": { @@ -134,9 +130,7 @@ "start": 154, "end": 160 }, - "ctxt": 0, - "value": "BEFORE", - "optional": false + "value": "BEFORE" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json b/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json index bec527885927..4276b9052234 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json +++ b/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json @@ -47,9 +47,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -193,9 +189,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json index 23a23b3cfb07..3cdacea2790a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json @@ -460,6 +460,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 265, + "end": 268 + }, "left": { "type": "Identifier", "span": { @@ -476,9 +480,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json index 218119205974..78b61ab040c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json @@ -460,6 +460,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 270, + "end": 273 + }, "left": { "type": "Identifier", "span": { @@ -476,9 +480,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json index 5d9cef8635ed..1ef94b1d4ec0 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json @@ -460,6 +460,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 254, + "end": 257 + }, "left": { "type": "Identifier", "span": { @@ -476,9 +480,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json index 961d52f5ddac..68d9bd2039e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json @@ -523,6 +523,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 335, + "end": 338 + }, "left": { "type": "Identifier", "span": { @@ -539,9 +543,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json index 393084490233..3eac9e8d7cbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json @@ -523,6 +523,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 340, + "end": 343 + }, "left": { "type": "Identifier", "span": { @@ -539,9 +543,7 @@ "start": 342, "end": 343 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json index e032b24fc6ab..c725afb93c16 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json @@ -523,6 +523,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 324, + "end": 327 + }, "left": { "type": "Identifier", "span": { @@ -539,9 +543,7 @@ "start": 326, "end": 327 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json index d98c77a26426..a7a83b317b53 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json @@ -84,9 +84,7 @@ "start": 129, "end": 136 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -211,9 +209,7 @@ "start": 192, "end": 199 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -383,9 +379,7 @@ "start": 280, "end": 287 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -572,9 +566,7 @@ "start": 405, "end": 412 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -699,9 +691,7 @@ "start": 468, "end": 475 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -871,9 +861,7 @@ "start": 556, "end": 563 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json index c8bbf64b9495..fc1378fda2b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json @@ -84,9 +84,7 @@ "start": 134, "end": 141 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -211,9 +209,7 @@ "start": 197, "end": 204 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -383,9 +379,7 @@ "start": 285, "end": 292 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -572,9 +566,7 @@ "start": 410, "end": 417 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -699,9 +691,7 @@ "start": 473, "end": 480 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -871,9 +861,7 @@ "start": 561, "end": 568 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json index c8bbf64b9495..fc1378fda2b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json @@ -84,9 +84,7 @@ "start": 134, "end": 141 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -211,9 +209,7 @@ "start": 197, "end": 204 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -383,9 +379,7 @@ "start": 285, "end": 292 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -572,9 +566,7 @@ "start": 410, "end": 417 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -699,9 +691,7 @@ "start": 473, "end": 480 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -871,9 +861,7 @@ "start": 561, "end": 568 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json index 172036320b3b..72bc81331ef2 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json @@ -191,9 +191,7 @@ "start": 164, "end": 166 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" } }, "definite": false @@ -249,9 +247,7 @@ "start": 179, "end": 185 }, - "ctxt": 0, - "value": "return", - "optional": false + "value": "return" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json index 3d443521bcb9..d54c94f50596 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json @@ -120,9 +120,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -219,9 +217,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -318,9 +314,7 @@ "start": 213, "end": 216 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -417,9 +411,7 @@ "start": 263, "end": 266 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -516,9 +508,7 @@ "start": 317, "end": 320 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -615,9 +605,7 @@ "start": 378, "end": 381 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -714,9 +702,7 @@ "start": 439, "end": 442 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json b/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json index a54554f8b7c2..bb3d65f176f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json @@ -291,9 +291,7 @@ "start": 109, "end": 116 }, - "ctxt": 0, - "value": "doStuff", - "optional": false + "value": "doStuff" } }, "arguments": [], @@ -373,9 +371,7 @@ "start": 138, "end": 150 }, - "ctxt": 0, - "value": "doOtherStuff", - "optional": false + "value": "doOtherStuff" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json b/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json index 61710a1c3939..a3a1a3705785 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json @@ -292,9 +292,7 @@ "start": 104, "end": 111 }, - "ctxt": 0, - "value": "doStuff", - "optional": false + "value": "doStuff" } }, "arguments": [], @@ -374,9 +372,7 @@ "start": 133, "end": 145 }, - "ctxt": 0, - "value": "doOtherStuff", - "optional": false + "value": "doOtherStuff" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json b/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json index 5c1e9a0c3b1b..c02ad252a13c 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json @@ -292,9 +292,7 @@ "start": 105, "end": 112 }, - "ctxt": 0, - "value": "doStuff", - "optional": false + "value": "doStuff" } }, "arguments": [], @@ -374,9 +372,7 @@ "start": 134, "end": 146 }, - "ctxt": 0, - "value": "doOtherStuff", - "optional": false + "value": "doOtherStuff" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/extendsTag2.json b/crates/swc_ecma_parser/tests/tsc/extendsTag2.json index 3b5bdf2e28c2..017027b7cdfc 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendsTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/extendsTag2.json @@ -38,9 +38,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -95,9 +93,7 @@ "start": 225, "end": 236 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/extendsTag3.json b/crates/swc_ecma_parser/tests/tsc/extendsTag3.json index d41e3ccb4df3..e16fa797fc4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendsTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/extendsTag3.json @@ -38,9 +38,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -95,9 +93,7 @@ "start": 216, "end": 227 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/extendsTag4.json b/crates/swc_ecma_parser/tests/tsc/extendsTag4.json index cbb0929c8920..b7f747930bf3 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendsTag4.json +++ b/crates/swc_ecma_parser/tests/tsc/extendsTag4.json @@ -38,9 +38,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/extendsTag5.json b/crates/swc_ecma_parser/tests/tsc/extendsTag5.json index 5e60a1ed928d..e0f5c2917f35 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendsTag5.json +++ b/crates/swc_ecma_parser/tests/tsc/extendsTag5.json @@ -38,9 +38,7 @@ "start": 235, "end": 246 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json b/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json index 78bc3f352610..1900f9a8a79b 100644 --- a/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json +++ b/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json @@ -213,9 +213,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -341,9 +339,7 @@ "start": 278, "end": 283 }, - "ctxt": 0, - "value": "Class", - "optional": false + "value": "Class" } } }, @@ -375,9 +371,7 @@ "start": 297, "end": 302 }, - "ctxt": 0, - "value": "Value", - "optional": false + "value": "Value" } } }, @@ -420,6 +414,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 320, + "end": 328 + }, "left": { "type": "Identifier", "span": { @@ -436,9 +434,7 @@ "start": 323, "end": 328 }, - "ctxt": 0, - "value": "Class", - "optional": false + "value": "Class" } }, "typeParams": null @@ -489,6 +485,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 337, + "end": 344 + }, "left": { "type": "Identifier", "span": { @@ -505,9 +505,7 @@ "start": 340, "end": 344 }, - "ctxt": 0, - "value": "Type", - "optional": false + "value": "Type" } }, "typeParams": null @@ -566,8 +564,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 358, + "end": 379 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 358, + "end": 367 + }, "left": { "type": "Identifier", "span": { @@ -584,9 +590,7 @@ "start": 361, "end": 367 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "right": { @@ -595,9 +599,7 @@ "start": 368, "end": 379 }, - "ctxt": 0, - "value": "NestedClass", - "optional": false + "value": "NestedClass" } }, "typeParams": null @@ -619,9 +621,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json b/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json index 4ea9e57608ca..6da7a231b759 100644 --- a/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json +++ b/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json @@ -215,9 +215,7 @@ "start": 124, "end": 141 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "right": { @@ -5444,9 +5442,7 @@ "start": 32720, "end": 32740 }, - "ctxt": 0, - "value": "detectMobileBrowsers", - "optional": false + "value": "detectMobileBrowsers" } }, "right": { @@ -5464,9 +5460,7 @@ "start": 32753, "end": 32764 }, - "ctxt": 0, - "value": "fullPattern", - "optional": false + "value": "fullPattern" }, "value": { "type": "RegExpLiteral", @@ -5486,9 +5480,7 @@ "start": 33090, "end": 33102 }, - "ctxt": 0, - "value": "shortPattern", - "optional": false + "value": "shortPattern" }, "value": { "type": "RegExpLiteral", @@ -5508,9 +5500,7 @@ "start": 34723, "end": 34736 }, - "ctxt": 0, - "value": "tabletPattern", - "optional": false + "value": "tabletPattern" }, "value": { "type": "RegExpLiteral", @@ -5581,9 +5571,7 @@ "start": 34804, "end": 34813 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -5592,9 +5580,7 @@ "start": 34814, "end": 34828 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "definite": false @@ -5656,9 +5642,7 @@ "start": 34857, "end": 34871 }, - "ctxt": 0, - "value": "FALLBACK_PHONE", - "optional": false + "value": "FALLBACK_PHONE" } }, "right": { @@ -5707,9 +5691,7 @@ "start": 34899, "end": 34914 }, - "ctxt": 0, - "value": "FALLBACK_TABLET", - "optional": false + "value": "FALLBACK_TABLET" } }, "right": { @@ -5758,9 +5740,7 @@ "start": 34943, "end": 34958 }, - "ctxt": 0, - "value": "FALLBACK_MOBILE", - "optional": false + "value": "FALLBACK_MOBILE" } }, "right": { @@ -5860,9 +5840,7 @@ "start": 35030, "end": 35037 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "alternate": { @@ -5957,9 +5935,7 @@ "start": 35073, "end": 35082 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -5968,9 +5944,7 @@ "start": 35083, "end": 35091 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "property": { @@ -5979,9 +5953,7 @@ "start": 35092, "end": 35096 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -6171,9 +6143,7 @@ "start": 35205, "end": 35214 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -6182,9 +6152,7 @@ "start": 35215, "end": 35223 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "property": { @@ -6193,9 +6161,7 @@ "start": 35224, "end": 35228 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -6255,9 +6221,7 @@ "start": 35276, "end": 35283 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } } } @@ -6437,9 +6401,7 @@ "start": 35358, "end": 35369 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -6474,9 +6436,7 @@ "start": 35378, "end": 35389 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -6648,9 +6608,7 @@ "start": 35476, "end": 35482 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -6787,9 +6745,7 @@ "start": 35574, "end": 35585 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -6962,9 +6918,7 @@ "start": 35662, "end": 35673 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -7162,9 +7116,7 @@ "start": 35866, "end": 35870 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -7553,9 +7505,7 @@ "start": 36074, "end": 36091 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "definite": false @@ -7601,9 +7551,7 @@ "start": 36131, "end": 36136 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "body": { @@ -7649,9 +7597,7 @@ "start": 36167, "end": 36171 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -7679,9 +7625,7 @@ "start": 36190, "end": 36195 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } } }, @@ -7761,9 +7705,7 @@ "start": 36248, "end": 36253 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -7940,9 +7882,7 @@ "start": 36386, "end": 36392 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -8149,9 +8089,7 @@ "start": 36512, "end": 36519 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -8280,9 +8218,7 @@ "start": 36607, "end": 36616 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -8353,9 +8289,7 @@ "start": 36654, "end": 36663 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -8538,9 +8472,7 @@ "start": 36807, "end": 36812 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -8628,9 +8560,7 @@ "start": 36899, "end": 36902 }, - "ctxt": 0, - "value": "oss", - "optional": false + "value": "oss" } } } @@ -8686,9 +8616,7 @@ "start": 36952, "end": 36958 }, - "ctxt": 0, - "value": "phones", - "optional": false + "value": "phones" } } } @@ -8744,9 +8672,7 @@ "start": 37008, "end": 37015 }, - "ctxt": 0, - "value": "tablets", - "optional": false + "value": "tablets" } } } @@ -8802,9 +8728,7 @@ "start": 37065, "end": 37068 }, - "ctxt": 0, - "value": "uas", - "optional": false + "value": "uas" } } } @@ -8860,9 +8784,7 @@ "start": 37118, "end": 37123 }, - "ctxt": 0, - "value": "utils", - "optional": false + "value": "utils" } } } @@ -8905,9 +8827,7 @@ "start": 37229, "end": 37233 }, - "ctxt": 0, - "value": "oss0", - "optional": false + "value": "oss0" } }, "right": { @@ -8925,9 +8845,7 @@ "start": 37250, "end": 37264 }, - "ctxt": 0, - "value": "WindowsPhoneOS", - "optional": false + "value": "WindowsPhoneOS" }, "value": { "type": "MemberExpression", @@ -8957,9 +8875,7 @@ "start": 37284, "end": 37287 }, - "ctxt": 0, - "value": "oss", - "optional": false + "value": "oss" } }, "property": { @@ -8968,9 +8884,7 @@ "start": 37288, "end": 37302 }, - "ctxt": 0, - "value": "WindowsPhoneOS", - "optional": false + "value": "WindowsPhoneOS" } } }, @@ -8982,9 +8896,7 @@ "start": 37316, "end": 37331 }, - "ctxt": 0, - "value": "WindowsMobileOS", - "optional": false + "value": "WindowsMobileOS" }, "value": { "type": "MemberExpression", @@ -9014,9 +8926,7 @@ "start": 37351, "end": 37354 }, - "ctxt": 0, - "value": "oss", - "optional": false + "value": "oss" } }, "property": { @@ -9025,9 +8935,7 @@ "start": 37355, "end": 37370 }, - "ctxt": 0, - "value": "WindowsMobileOS", - "optional": false + "value": "WindowsMobileOS" } } } @@ -9082,9 +8990,7 @@ "start": 37748, "end": 37757 }, - "ctxt": 0, - "value": "findMatch", - "optional": false + "value": "findMatch" } }, "right": { @@ -9235,9 +9141,7 @@ "start": 37849, "end": 37853 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -9337,9 +9241,7 @@ "start": 37900, "end": 37904 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -9453,9 +9355,7 @@ "start": 38411, "end": 38422 }, - "ctxt": 0, - "value": "findMatches", - "optional": false + "value": "findMatches" } }, "right": { @@ -9645,9 +9545,7 @@ "start": 38539, "end": 38543 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -9747,9 +9645,7 @@ "start": 38590, "end": 38594 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -9812,9 +9708,7 @@ "start": 38636, "end": 38640 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -9907,9 +9801,7 @@ "start": 38973, "end": 38986 }, - "ctxt": 0, - "value": "getVersionStr", - "optional": false + "value": "getVersionStr" } }, "right": { @@ -10024,9 +9916,7 @@ "start": 39051, "end": 39068 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -10035,9 +9925,7 @@ "start": 39069, "end": 39074 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "definite": false @@ -10159,9 +10047,7 @@ "start": 39124, "end": 39128 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -10308,9 +10194,7 @@ "start": 39224, "end": 39230 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -10481,9 +10365,7 @@ "start": 39308, "end": 39312 }, - "ctxt": 0, - "value": "exec", - "optional": false + "value": "exec" } }, "arguments": [ @@ -10653,9 +10535,7 @@ "start": 39808, "end": 39818 }, - "ctxt": 0, - "value": "getVersion", - "optional": false + "value": "getVersion" } }, "right": { @@ -10771,9 +10651,7 @@ "start": 39885, "end": 39898 }, - "ctxt": 0, - "value": "getVersionStr", - "optional": false + "value": "getVersionStr" } }, "arguments": [ @@ -10861,9 +10739,7 @@ "start": 39955, "end": 39971 }, - "ctxt": 0, - "value": "prepareVersionNo", - "optional": false + "value": "prepareVersionNo" } }, "arguments": [ @@ -10939,9 +10815,7 @@ "start": 40174, "end": 40190 }, - "ctxt": 0, - "value": "prepareVersionNo", - "optional": false + "value": "prepareVersionNo" } }, "right": { @@ -11067,9 +10941,7 @@ "start": 40262, "end": 40267 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" } }, "arguments": [ @@ -11125,9 +10997,7 @@ "start": 40306, "end": 40312 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -11246,9 +11116,7 @@ "start": 40386, "end": 40392 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -11380,9 +11248,7 @@ "start": 40460, "end": 40465 }, - "ctxt": 0, - "value": "shift", - "optional": false + "value": "shift" } }, "arguments": [], @@ -11442,9 +11308,7 @@ "start": 40500, "end": 40504 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -11554,9 +11418,7 @@ "start": 40569, "end": 40585 }, - "ctxt": 0, - "value": "isMobileFallback", - "optional": false + "value": "isMobileFallback" } }, "right": { @@ -11651,9 +11513,7 @@ "start": 40631, "end": 40651 }, - "ctxt": 0, - "value": "detectMobileBrowsers", - "optional": false + "value": "detectMobileBrowsers" } }, "property": { @@ -11662,9 +11522,7 @@ "start": 40652, "end": 40663 }, - "ctxt": 0, - "value": "fullPattern", - "optional": false + "value": "fullPattern" } }, "property": { @@ -11673,9 +11531,7 @@ "start": 40664, "end": 40668 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -11736,9 +11592,7 @@ "start": 40700, "end": 40720 }, - "ctxt": 0, - "value": "detectMobileBrowsers", - "optional": false + "value": "detectMobileBrowsers" } }, "property": { @@ -11747,9 +11601,7 @@ "start": 40721, "end": 40733 }, - "ctxt": 0, - "value": "shortPattern", - "optional": false + "value": "shortPattern" } }, "property": { @@ -11758,9 +11610,7 @@ "start": 40734, "end": 40738 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -11795,9 +11645,7 @@ "start": 40749, "end": 40755 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -11878,9 +11726,7 @@ "start": 40780, "end": 40796 }, - "ctxt": 0, - "value": "isTabletFallback", - "optional": false + "value": "isTabletFallback" } }, "right": { @@ -11968,9 +11814,7 @@ "start": 40842, "end": 40862 }, - "ctxt": 0, - "value": "detectMobileBrowsers", - "optional": false + "value": "detectMobileBrowsers" } }, "property": { @@ -11979,9 +11823,7 @@ "start": 40863, "end": 40876 }, - "ctxt": 0, - "value": "tabletPattern", - "optional": false + "value": "tabletPattern" } }, "property": { @@ -11990,9 +11832,7 @@ "start": 40877, "end": 40881 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -12057,9 +11897,7 @@ "start": 40911, "end": 40932 }, - "ctxt": 0, - "value": "prepareDetectionCache", - "optional": false + "value": "prepareDetectionCache" } }, "right": { @@ -12173,9 +12011,7 @@ "start": 40998, "end": 41004 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -12334,9 +12170,7 @@ "start": 41189, "end": 41198 }, - "ctxt": 0, - "value": "findMatch", - "optional": false + "value": "findMatch" } }, "arguments": [ @@ -12370,9 +12204,7 @@ "start": 41204, "end": 41221 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -12381,9 +12213,7 @@ "start": 41222, "end": 41229 }, - "ctxt": 0, - "value": "tablets", - "optional": false + "value": "tablets" } } }, @@ -12464,9 +12294,7 @@ "start": 41283, "end": 41289 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -12498,9 +12326,7 @@ "start": 41298, "end": 41304 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -12551,9 +12377,7 @@ "start": 41333, "end": 41338 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -12630,9 +12454,7 @@ "start": 41437, "end": 41446 }, - "ctxt": 0, - "value": "findMatch", - "optional": false + "value": "findMatch" } }, "arguments": [ @@ -12666,9 +12488,7 @@ "start": 41452, "end": 41469 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -12677,9 +12497,7 @@ "start": 41470, "end": 41476 }, - "ctxt": 0, - "value": "phones", - "optional": false + "value": "phones" } } }, @@ -12760,9 +12578,7 @@ "start": 41529, "end": 41535 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -12794,9 +12610,7 @@ "start": 41544, "end": 41549 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -12847,9 +12661,7 @@ "start": 41577, "end": 41583 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -12908,9 +12720,7 @@ "start": 41755, "end": 41771 }, - "ctxt": 0, - "value": "isMobileFallback", - "optional": false + "value": "isMobileFallback" } }, "arguments": [ @@ -12991,9 +12801,7 @@ "start": 41824, "end": 41836 }, - "ctxt": 0, - "value": "isPhoneSized", - "optional": false + "value": "isPhoneSized" } }, "arguments": [ @@ -13092,9 +12900,7 @@ "start": 41919, "end": 41925 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -13119,9 +12925,7 @@ "start": 41933, "end": 41948 }, - "ctxt": 0, - "value": "FALLBACK_MOBILE", - "optional": false + "value": "FALLBACK_MOBILE" } } } @@ -13161,9 +12965,7 @@ "start": 41972, "end": 41978 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -13195,9 +12997,7 @@ "start": 41987, "end": 41992 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -13271,9 +13071,7 @@ "start": 42060, "end": 42066 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -13305,9 +13103,7 @@ "start": 42075, "end": 42080 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -13332,9 +13128,7 @@ "start": 42088, "end": 42102 }, - "ctxt": 0, - "value": "FALLBACK_PHONE", - "optional": false + "value": "FALLBACK_PHONE" } } } @@ -13375,9 +13169,7 @@ "start": 42126, "end": 42132 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -13434,9 +13226,7 @@ "start": 42184, "end": 42190 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -13468,9 +13258,7 @@ "start": 42199, "end": 42205 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -13495,9 +13283,7 @@ "start": 42213, "end": 42228 }, - "ctxt": 0, - "value": "FALLBACK_TABLET", - "optional": false + "value": "FALLBACK_TABLET" } } } @@ -13538,9 +13324,7 @@ "start": 42252, "end": 42257 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -13593,9 +13377,7 @@ "start": 42304, "end": 42320 }, - "ctxt": 0, - "value": "isTabletFallback", - "optional": false + "value": "isTabletFallback" } }, "arguments": [ @@ -13658,9 +13440,7 @@ "start": 42353, "end": 42359 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -13692,9 +13472,7 @@ "start": 42368, "end": 42374 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -13719,9 +13497,7 @@ "start": 42382, "end": 42397 }, - "ctxt": 0, - "value": "FALLBACK_TABLET", - "optional": false + "value": "FALLBACK_TABLET" } } } @@ -13762,9 +13538,7 @@ "start": 42417, "end": 42422 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -13821,9 +13595,7 @@ "start": 42500, "end": 42506 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "right": { @@ -13855,9 +13627,7 @@ "start": 42515, "end": 42521 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "right": { @@ -13889,9 +13659,7 @@ "start": 42530, "end": 42535 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "right": { @@ -13953,9 +13721,7 @@ "start": 42622, "end": 42633 }, - "ctxt": 0, - "value": "mobileGrade", - "optional": false + "value": "mobileGrade" } }, "right": { @@ -14059,9 +13825,7 @@ "start": 43161, "end": 43167 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } }, "arguments": [], @@ -14282,9 +14046,7 @@ "start": 43390, "end": 43392 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [ @@ -14339,9 +14101,7 @@ "start": 43405, "end": 43412 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -14407,9 +14167,7 @@ "start": 43443, "end": 43445 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [ @@ -14464,9 +14222,7 @@ "start": 43458, "end": 43465 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -14533,9 +14289,7 @@ "start": 43498, "end": 43500 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [ @@ -14590,9 +14344,7 @@ "start": 43513, "end": 43520 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -14672,9 +14424,7 @@ "start": 44068, "end": 44075 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -14732,9 +14482,7 @@ "start": 44096, "end": 44098 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -14792,9 +14540,7 @@ "start": 44248, "end": 44255 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -14860,9 +14606,7 @@ "start": 44433, "end": 44435 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -14917,9 +14661,7 @@ "start": 44455, "end": 44462 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -14979,9 +14721,7 @@ "start": 44565, "end": 44570 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -15050,9 +14790,7 @@ "start": 44703, "end": 44710 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -15110,9 +14848,7 @@ "start": 44730, "end": 44735 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -15163,9 +14899,7 @@ "start": 44827, "end": 44832 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -15227,9 +14961,7 @@ "start": 44940, "end": 44942 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15284,9 +15016,7 @@ "start": 44959, "end": 44966 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -15367,9 +15097,7 @@ "start": 45074, "end": 45076 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15417,9 +15145,7 @@ "start": 45092, "end": 45094 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15475,9 +15201,7 @@ "start": 45113, "end": 45120 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -15565,9 +15289,7 @@ "start": 45217, "end": 45219 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15622,9 +15344,7 @@ "start": 45236, "end": 45243 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -15683,9 +15403,7 @@ "start": 45265, "end": 45267 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15741,9 +15459,7 @@ "start": 45286, "end": 45293 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -15824,9 +15540,7 @@ "start": 45391, "end": 45393 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15881,9 +15595,7 @@ "start": 45408, "end": 45415 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -15942,9 +15654,7 @@ "start": 45438, "end": 45440 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -15995,9 +15705,7 @@ "start": 45528, "end": 45530 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16046,9 +15754,7 @@ "start": 45622, "end": 45624 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16104,9 +15810,7 @@ "start": 45769, "end": 45771 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16161,9 +15865,7 @@ "start": 45787, "end": 45794 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -16249,9 +15951,7 @@ "start": 45886, "end": 45888 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16299,9 +15999,7 @@ "start": 45908, "end": 45910 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16358,9 +16056,7 @@ "start": 45927, "end": 45934 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -16434,9 +16130,7 @@ "start": 46056, "end": 46061 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -16491,9 +16185,7 @@ "start": 46098, "end": 46100 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16548,9 +16240,7 @@ "start": 46116, "end": 46123 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -16619,9 +16309,7 @@ "start": 46240, "end": 46242 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16669,9 +16357,7 @@ "start": 46261, "end": 46263 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -16735,9 +16421,7 @@ "start": 46368, "end": 46375 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -16829,9 +16513,7 @@ "start": 46492, "end": 46499 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -16923,9 +16605,7 @@ "start": 46619, "end": 46626 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17017,9 +16697,7 @@ "start": 46748, "end": 46755 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17111,9 +16789,7 @@ "start": 46946, "end": 46953 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17274,9 +16950,7 @@ "start": 47059, "end": 47061 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [ @@ -17331,9 +17005,7 @@ "start": 47074, "end": 47081 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17399,9 +17071,7 @@ "start": 47111, "end": 47113 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [ @@ -17456,9 +17126,7 @@ "start": 47126, "end": 47133 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17525,9 +17193,7 @@ "start": 47165, "end": 47167 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [ @@ -17582,9 +17248,7 @@ "start": 47180, "end": 47187 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17658,9 +17322,7 @@ "start": 47287, "end": 47289 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -17715,9 +17377,7 @@ "start": 47309, "end": 47316 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17783,9 +17443,7 @@ "start": 47339, "end": 47346 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17872,9 +17530,7 @@ "start": 47458, "end": 47465 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -17939,9 +17595,7 @@ "start": 47490, "end": 47497 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -18020,9 +17674,7 @@ "start": 47539, "end": 47546 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -18080,9 +17732,7 @@ "start": 47568, "end": 47570 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -18135,9 +17785,7 @@ "start": 47710, "end": 47715 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -18200,9 +17848,7 @@ "start": 47833, "end": 47840 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -18260,9 +17906,7 @@ "start": 47864, "end": 47866 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "arguments": [ @@ -18367,9 +18011,7 @@ "start": 48010, "end": 48017 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -18427,9 +18069,7 @@ "start": 48119, "end": 48124 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -18485,9 +18125,7 @@ "start": 48163, "end": 48170 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "arguments": [ @@ -18605,9 +18243,7 @@ "start": 48443, "end": 48451 }, - "ctxt": 0, - "value": "detectOS", - "optional": false + "value": "detectOS" } }, "right": { @@ -18690,9 +18326,7 @@ "start": 48490, "end": 48499 }, - "ctxt": 0, - "value": "findMatch", - "optional": false + "value": "findMatch" } }, "arguments": [ @@ -18726,9 +18360,7 @@ "start": 48505, "end": 48522 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -18737,9 +18369,7 @@ "start": 48523, "end": 48527 }, - "ctxt": 0, - "value": "oss0", - "optional": false + "value": "oss0" } } }, @@ -18788,9 +18418,7 @@ "start": 48553, "end": 48562 }, - "ctxt": 0, - "value": "findMatch", - "optional": false + "value": "findMatch" } }, "arguments": [ @@ -18824,9 +18452,7 @@ "start": 48568, "end": 48585 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -18835,9 +18461,7 @@ "start": 48586, "end": 48589 }, - "ctxt": 0, - "value": "oss", - "optional": false + "value": "oss" } } }, @@ -18903,9 +18527,7 @@ "start": 48613, "end": 48633 }, - "ctxt": 0, - "value": "getDeviceSmallerSide", - "optional": false + "value": "getDeviceSmallerSide" } }, "right": { @@ -18973,9 +18595,7 @@ "start": 48672, "end": 48678 }, - "ctxt": 0, - "value": "screen", - "optional": false + "value": "screen" } }, "property": { @@ -18984,9 +18604,7 @@ "start": 48679, "end": 48684 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -19017,9 +18635,7 @@ "start": 48694, "end": 48700 }, - "ctxt": 0, - "value": "screen", - "optional": false + "value": "screen" } }, "property": { @@ -19028,9 +18644,7 @@ "start": 48701, "end": 48707 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } }, @@ -19062,9 +18676,7 @@ "start": 48729, "end": 48735 }, - "ctxt": 0, - "value": "screen", - "optional": false + "value": "screen" } }, "property": { @@ -19073,9 +18685,7 @@ "start": 48736, "end": 48741 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "alternate": { @@ -19106,9 +18716,7 @@ "start": 48763, "end": 48769 }, - "ctxt": 0, - "value": "screen", - "optional": false + "value": "screen" } }, "property": { @@ -19117,9 +18725,7 @@ "start": 48770, "end": 48776 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -19232,9 +18838,7 @@ "start": 50355, "end": 50357 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } }, "right": { @@ -19298,9 +18902,7 @@ "start": 50390, "end": 50396 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "right": { @@ -19345,9 +18947,7 @@ "start": 50467, "end": 50480 }, - "ctxt": 0, - "value": "maxPhoneWidth", - "optional": false + "value": "maxPhoneWidth" } }, "right": { @@ -19421,9 +19021,7 @@ "start": 50529, "end": 50538 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -19441,9 +19039,7 @@ "start": 50551, "end": 50562 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "value": { "type": "Identifier", @@ -19464,9 +19060,7 @@ "start": 52147, "end": 52153 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" }, "value": { "type": "FunctionExpression", @@ -19521,9 +19115,7 @@ "start": 52186, "end": 52207 }, - "ctxt": 0, - "value": "prepareDetectionCache", - "optional": false + "value": "prepareDetectionCache" } }, "arguments": [ @@ -19548,9 +19140,7 @@ "start": 52213, "end": 52219 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } } }, @@ -19575,9 +19165,7 @@ "start": 52226, "end": 52228 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } }, @@ -19602,9 +19190,7 @@ "start": 52235, "end": 52248 }, - "ctxt": 0, - "value": "maxPhoneWidth", - "optional": false + "value": "maxPhoneWidth" } } } @@ -19643,9 +19229,7 @@ "start": 52275, "end": 52281 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -19654,9 +19238,7 @@ "start": 52282, "end": 52288 }, - "ctxt": 0, - "value": "mobile", - "optional": false + "value": "mobile" } } } @@ -19676,9 +19258,7 @@ "start": 54092, "end": 54097 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" }, "value": { "type": "FunctionExpression", @@ -19733,9 +19313,7 @@ "start": 54130, "end": 54151 }, - "ctxt": 0, - "value": "prepareDetectionCache", - "optional": false + "value": "prepareDetectionCache" } }, "arguments": [ @@ -19760,9 +19338,7 @@ "start": 54157, "end": 54163 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } } }, @@ -19787,9 +19363,7 @@ "start": 54170, "end": 54172 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } }, @@ -19814,9 +19388,7 @@ "start": 54179, "end": 54192 }, - "ctxt": 0, - "value": "maxPhoneWidth", - "optional": false + "value": "maxPhoneWidth" } } } @@ -19855,9 +19427,7 @@ "start": 54219, "end": 54225 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -19866,9 +19436,7 @@ "start": 54226, "end": 54231 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } } } @@ -19888,9 +19456,7 @@ "start": 57614, "end": 57620 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" }, "value": { "type": "FunctionExpression", @@ -19945,9 +19511,7 @@ "start": 57653, "end": 57674 }, - "ctxt": 0, - "value": "prepareDetectionCache", - "optional": false + "value": "prepareDetectionCache" } }, "arguments": [ @@ -19972,9 +19536,7 @@ "start": 57680, "end": 57686 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } } }, @@ -19999,9 +19561,7 @@ "start": 57693, "end": 57695 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } }, @@ -20026,9 +19586,7 @@ "start": 57702, "end": 57715 }, - "ctxt": 0, - "value": "maxPhoneWidth", - "optional": false + "value": "maxPhoneWidth" } } } @@ -20067,9 +19625,7 @@ "start": 57742, "end": 57748 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20078,9 +19634,7 @@ "start": 57749, "end": 57755 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } } } @@ -20100,9 +19654,7 @@ "start": 58779, "end": 58788 }, - "ctxt": 0, - "value": "userAgent", - "optional": false + "value": "userAgent" }, "value": { "type": "FunctionExpression", @@ -20160,9 +19712,7 @@ "start": 58825, "end": 58831 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20171,9 +19721,7 @@ "start": 58832, "end": 58841 }, - "ctxt": 0, - "value": "userAgent", - "optional": false + "value": "userAgent" } }, "right": { @@ -20233,9 +19781,7 @@ "start": 58880, "end": 58886 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20244,9 +19790,7 @@ "start": 58887, "end": 58896 }, - "ctxt": 0, - "value": "userAgent", - "optional": false + "value": "userAgent" } }, "right": { @@ -20278,9 +19822,7 @@ "start": 58904, "end": 58913 }, - "ctxt": 0, - "value": "findMatch", - "optional": false + "value": "findMatch" } }, "arguments": [ @@ -20314,9 +19856,7 @@ "start": 58919, "end": 58936 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -20325,9 +19865,7 @@ "start": 58937, "end": 58940 }, - "ctxt": 0, - "value": "uas", - "optional": false + "value": "uas" } } }, @@ -20352,9 +19890,7 @@ "start": 58947, "end": 58949 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -20398,9 +19934,7 @@ "start": 58990, "end": 58996 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20409,9 +19943,7 @@ "start": 58997, "end": 59006 }, - "ctxt": 0, - "value": "userAgent", - "optional": false + "value": "userAgent" } } } @@ -20431,9 +19963,7 @@ "start": 60018, "end": 60028 }, - "ctxt": 0, - "value": "userAgents", - "optional": false + "value": "userAgents" }, "value": { "type": "FunctionExpression", @@ -20491,9 +20021,7 @@ "start": 60065, "end": 60071 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20502,9 +20030,7 @@ "start": 60072, "end": 60082 }, - "ctxt": 0, - "value": "userAgents", - "optional": false + "value": "userAgents" } }, "right": { @@ -20564,9 +20090,7 @@ "start": 60121, "end": 60127 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20575,9 +20099,7 @@ "start": 60128, "end": 60138 }, - "ctxt": 0, - "value": "userAgents", - "optional": false + "value": "userAgents" } }, "right": { @@ -20609,9 +20131,7 @@ "start": 60146, "end": 60157 }, - "ctxt": 0, - "value": "findMatches", - "optional": false + "value": "findMatches" } }, "arguments": [ @@ -20645,9 +20165,7 @@ "start": 60163, "end": 60180 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -20656,9 +20174,7 @@ "start": 60181, "end": 60184 }, - "ctxt": 0, - "value": "uas", - "optional": false + "value": "uas" } } }, @@ -20683,9 +20199,7 @@ "start": 60191, "end": 60193 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -20729,9 +20243,7 @@ "start": 60234, "end": 60240 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20740,9 +20252,7 @@ "start": 60241, "end": 60251 }, - "ctxt": 0, - "value": "userAgents", - "optional": false + "value": "userAgents" } } } @@ -20762,9 +20272,7 @@ "start": 60738, "end": 60740 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" }, "value": { "type": "FunctionExpression", @@ -20822,9 +20330,7 @@ "start": 60777, "end": 60783 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20833,9 +20339,7 @@ "start": 60784, "end": 60786 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "right": { @@ -20895,9 +20399,7 @@ "start": 60825, "end": 60831 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -20906,9 +20408,7 @@ "start": 60832, "end": 60834 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "right": { @@ -20940,9 +20440,7 @@ "start": 60842, "end": 60850 }, - "ctxt": 0, - "value": "detectOS", - "optional": false + "value": "detectOS" } }, "arguments": [ @@ -20967,9 +20465,7 @@ "start": 60856, "end": 60858 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -21013,9 +20509,7 @@ "start": 60899, "end": 60905 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -21024,9 +20518,7 @@ "start": 60906, "end": 60908 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } } } @@ -21046,9 +20538,7 @@ "start": 62033, "end": 62040 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" }, "value": { "type": "FunctionExpression", @@ -21123,9 +20613,7 @@ "start": 62083, "end": 62093 }, - "ctxt": 0, - "value": "getVersion", - "optional": false + "value": "getVersion" } }, "arguments": [ @@ -21163,9 +20651,7 @@ "start": 62104, "end": 62106 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -21189,9 +20675,7 @@ "start": 63088, "end": 63098 }, - "ctxt": 0, - "value": "versionStr", - "optional": false + "value": "versionStr" }, "value": { "type": "FunctionExpression", @@ -21266,9 +20750,7 @@ "start": 63141, "end": 63154 }, - "ctxt": 0, - "value": "getVersionStr", - "optional": false + "value": "getVersionStr" } }, "arguments": [ @@ -21306,9 +20788,7 @@ "start": 63165, "end": 63167 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -21332,9 +20812,7 @@ "start": 64082, "end": 64084 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" }, "value": { "type": "FunctionExpression", @@ -21454,9 +20932,7 @@ "start": 64138, "end": 64148 }, - "ctxt": 0, - "value": "userAgents", - "optional": false + "value": "userAgents" } }, "arguments": [], @@ -21538,9 +21014,7 @@ "start": 64197, "end": 64199 }, - "ctxt": 0, - "value": "os", - "optional": false + "value": "os" } }, "arguments": [], @@ -21610,9 +21084,7 @@ "start": 64243, "end": 64248 }, - "ctxt": 0, - "value": "phone", - "optional": false + "value": "phone" } }, "arguments": [], @@ -21682,9 +21154,7 @@ "start": 64292, "end": 64298 }, - "ctxt": 0, - "value": "tablet", - "optional": false + "value": "tablet" } }, "arguments": [], @@ -21744,9 +21214,7 @@ "start": 64340, "end": 64351 }, - "ctxt": 0, - "value": "findMatches", - "optional": false + "value": "findMatches" } }, "arguments": [ @@ -21780,9 +21248,7 @@ "start": 64357, "end": 64374 }, - "ctxt": 0, - "value": "mobileDetectRules", - "optional": false + "value": "mobileDetectRules" } }, "property": { @@ -21791,9 +21257,7 @@ "start": 64375, "end": 64380 }, - "ctxt": 0, - "value": "utils", - "optional": false + "value": "utils" } } }, @@ -21818,9 +21282,7 @@ "start": 64387, "end": 64389 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -21862,9 +21324,7 @@ "start": 64820, "end": 64825 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" }, "value": { "type": "FunctionExpression", @@ -22072,9 +21532,7 @@ "start": 64989, "end": 64993 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -22099,9 +21557,7 @@ "start": 64999, "end": 65001 }, - "ctxt": 0, - "value": "ua", - "optional": false + "value": "ua" } } } @@ -22125,9 +21581,7 @@ "start": 65797, "end": 65809 }, - "ctxt": 0, - "value": "isPhoneSized", - "optional": false + "value": "isPhoneSized" }, "value": { "type": "FunctionExpression", @@ -22202,9 +21656,7 @@ "start": 65870, "end": 65882 }, - "ctxt": 0, - "value": "isPhoneSized", - "optional": false + "value": "isPhoneSized" } }, "arguments": [ @@ -22246,9 +21698,7 @@ "start": 65905, "end": 65918 }, - "ctxt": 0, - "value": "maxPhoneWidth", - "optional": false + "value": "maxPhoneWidth" } } } @@ -22273,9 +21723,7 @@ "start": 66146, "end": 66157 }, - "ctxt": 0, - "value": "mobileGrade", - "optional": false + "value": "mobileGrade" }, "value": { "type": "FunctionExpression", @@ -22333,9 +21781,7 @@ "start": 66194, "end": 66200 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -22344,9 +21790,7 @@ "start": 66201, "end": 66206 }, - "ctxt": 0, - "value": "grade", - "optional": false + "value": "grade" } }, "right": { @@ -22406,9 +21850,7 @@ "start": 66245, "end": 66251 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -22417,9 +21859,7 @@ "start": 66252, "end": 66257 }, - "ctxt": 0, - "value": "grade", - "optional": false + "value": "grade" } }, "right": { @@ -22451,9 +21891,7 @@ "start": 66265, "end": 66276 }, - "ctxt": 0, - "value": "mobileGrade", - "optional": false + "value": "mobileGrade" } }, "arguments": [ @@ -22507,9 +21945,7 @@ "start": 66322, "end": 66328 }, - "ctxt": 0, - "value": "_cache", - "optional": false + "value": "_cache" } }, "property": { @@ -22518,9 +21954,7 @@ "start": 66329, "end": 66334 }, - "ctxt": 0, - "value": "grade", - "optional": false + "value": "grade" } } } @@ -22606,9 +22040,7 @@ "start": 66431, "end": 66437 }, - "ctxt": 0, - "value": "screen", - "optional": false + "value": "screen" } } }, @@ -22655,9 +22087,7 @@ "start": 66462, "end": 66474 }, - "ctxt": 0, - "value": "isPhoneSized", - "optional": false + "value": "isPhoneSized" } }, "right": { @@ -22783,9 +22213,7 @@ "start": 66560, "end": 66580 }, - "ctxt": 0, - "value": "getDeviceSmallerSide", - "optional": false + "value": "getDeviceSmallerSide" } }, "arguments": [], @@ -22858,9 +22286,7 @@ "start": 66646, "end": 66658 }, - "ctxt": 0, - "value": "isPhoneSized", - "optional": false + "value": "isPhoneSized" } }, "right": { @@ -22927,9 +22353,7 @@ "start": 66792, "end": 66797 }, - "ctxt": 0, - "value": "_impl", - "optional": false + "value": "_impl" } }, "right": { @@ -22979,9 +22403,7 @@ "start": 66824, "end": 66831 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "right": { @@ -23156,9 +22578,7 @@ "start": 66986, "end": 66993 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -23249,9 +22669,7 @@ "start": 67040, "end": 67047 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -23356,9 +22774,7 @@ "start": 67118, "end": 67121 }, - "ctxt": 0, - "value": "amd", - "optional": false + "value": "amd" } } }, @@ -23517,9 +22933,7 @@ "start": 67239, "end": 67251 }, - "ctxt": 0, - "value": "MobileDetect", - "optional": false + "value": "MobileDetect" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/fluentClasses.json b/crates/swc_ecma_parser/tests/tsc/fluentClasses.json index 286fc1706b50..a59075745e1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/fluentClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/fluentClasses.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -124,9 +122,7 @@ "start": 76, "end": 79 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -220,9 +216,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -422,9 +416,7 @@ "start": 194, "end": 197 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -436,9 +428,7 @@ "start": 200, "end": 203 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -450,9 +440,7 @@ "start": 206, "end": 209 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/fluentInterfaces.json b/crates/swc_ecma_parser/tests/tsc/fluentInterfaces.json index 56636c51f384..8cadc5e89f56 100644 --- a/crates/swc_ecma_parser/tests/tsc/fluentInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/fluentInterfaces.json @@ -373,9 +373,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -387,9 +385,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -401,9 +397,7 @@ "start": 152, "end": 155 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatements.json b/crates/swc_ecma_parser/tests/tsc/for-inStatements.json index bd6f0baef444..3d02109d7bca 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatements.json @@ -1645,9 +1645,7 @@ "start": 596, "end": 599 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" }, "function": { "params": [], @@ -1729,9 +1727,7 @@ "start": 631, "end": 634 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "arguments": [], @@ -1804,9 +1800,7 @@ "start": 669, "end": 672 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "body": { @@ -1914,9 +1908,7 @@ "start": 749, "end": 752 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -2046,9 +2038,7 @@ "start": 816, "end": 819 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "body": { @@ -2125,9 +2115,7 @@ "start": 852, "end": 855 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "arguments": [], @@ -2210,9 +2198,7 @@ "start": 918, "end": 921 }, - "ctxt": 0, - "value": "boz", - "optional": false + "value": "boz" }, "function": { "params": [], @@ -2294,9 +2280,7 @@ "start": 953, "end": 956 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "arguments": [], @@ -2369,9 +2353,7 @@ "start": 991, "end": 994 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "body": { @@ -2496,9 +2478,7 @@ "start": 1061, "end": 1064 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "body": { @@ -2575,9 +2555,7 @@ "start": 1098, "end": 1101 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "arguments": [], @@ -2962,9 +2940,7 @@ "start": 1275, "end": 1279 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -3151,9 +3127,7 @@ "start": 1333, "end": 1334 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "body": { @@ -3341,9 +3315,7 @@ "start": 1412, "end": 1416 }, - "ctxt": 0, - "value": "Blue", - "optional": false + "value": "Blue" } }, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatementsArrayErrors.json b/crates/swc_ecma_parser/tests/tsc/for-inStatementsArrayErrors.json index 0543a23eda4f..0ca56f8dd941 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatementsArrayErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatementsArrayErrors.json @@ -381,9 +381,7 @@ "start": 147, "end": 162 }, - "ctxt": 0, - "value": "unknownProperty", - "optional": false + "value": "unknownProperty" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatementsAsyncIdentifier.json b/crates/swc_ecma_parser/tests/tsc/for-inStatementsAsyncIdentifier.json index 8319ff3d8881..5ac0d2f43fb8 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatementsAsyncIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatementsAsyncIdentifier.json @@ -69,9 +69,7 @@ "start": 48, "end": 49 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -91,9 +89,7 @@ "start": 54, "end": 55 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json b/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json index 15f77a44298e..9b0e319d7534 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json @@ -1437,9 +1437,7 @@ "start": 551, "end": 554 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" }, "function": { "params": [], @@ -1521,9 +1519,7 @@ "start": 594, "end": 597 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "arguments": [], @@ -1596,9 +1592,7 @@ "start": 632, "end": 635 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "body": { @@ -1720,9 +1714,7 @@ "start": 712, "end": 715 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -1852,9 +1844,7 @@ "start": 788, "end": 791 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "body": { @@ -1931,9 +1921,7 @@ "start": 824, "end": 827 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "arguments": [], @@ -2030,9 +2018,7 @@ "start": 890, "end": 893 }, - "ctxt": 0, - "value": "boz", - "optional": false + "value": "boz" }, "function": { "params": [], @@ -2114,9 +2100,7 @@ "start": 925, "end": 928 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "arguments": [], @@ -2189,9 +2173,7 @@ "start": 963, "end": 966 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "body": { @@ -2316,9 +2298,7 @@ "start": 1033, "end": 1036 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "body": { @@ -2395,9 +2375,7 @@ "start": 1070, "end": 1073 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/for-of12.json b/crates/swc_ecma_parser/tests/tsc/for-of12.json index 2b9a49b25ba0..843fadc132ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of12.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of12.json @@ -121,9 +121,7 @@ "start": 49, "end": 55 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/for-of13.json b/crates/swc_ecma_parser/tests/tsc/for-of13.json index 48c3ac9c2641..d145ec625bdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of13.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of13.json @@ -109,9 +109,7 @@ "start": 46, "end": 52 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/for-of14.json b/crates/swc_ecma_parser/tests/tsc/for-of14.json index 879e9f844887..8fcebff11725 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of14.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of14.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/for-of15.json b/crates/swc_ecma_parser/tests/tsc/for-of15.json index 34488c85e047..aef9d405a707 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of15.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of15.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -121,9 +119,7 @@ "start": 89, "end": 97 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of16.json b/crates/swc_ecma_parser/tests/tsc/for-of16.json index 316c693fa23a..1be4407201fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of16.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of16.json @@ -59,9 +59,7 @@ "start": 51, "end": 59 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of17.json b/crates/swc_ecma_parser/tests/tsc/for-of17.json index 4563505e25e1..dd60eb4f1f91 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of17.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of17.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -100,9 +96,7 @@ "start": 103, "end": 107 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -164,9 +158,7 @@ "start": 144, "end": 152 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of18.json b/crates/swc_ecma_parser/tests/tsc/for-of18.json index 79a35bd2ed91..4777c0416d8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of18.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of18.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -100,9 +96,7 @@ "start": 104, "end": 108 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -164,9 +158,7 @@ "start": 145, "end": 153 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of19.json b/crates/swc_ecma_parser/tests/tsc/for-of19.json index ffd6b3d1d53b..c1ab2736b1f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of19.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of19.json @@ -63,9 +63,7 @@ "start": 54, "end": 58 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -104,9 +102,7 @@ "start": 92, "end": 97 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -137,9 +133,7 @@ "start": 120, "end": 124 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -201,9 +195,7 @@ "start": 161, "end": 169 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of20.json b/crates/swc_ecma_parser/tests/tsc/for-of20.json index 7250b129857b..b10771f2d6a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of20.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of20.json @@ -63,9 +63,7 @@ "start": 54, "end": 58 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -104,9 +102,7 @@ "start": 92, "end": 97 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -137,9 +133,7 @@ "start": 120, "end": 124 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -201,9 +195,7 @@ "start": 161, "end": 169 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of21.json b/crates/swc_ecma_parser/tests/tsc/for-of21.json index 9ce63ee5c92a..9a04ac1b8657 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of21.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of21.json @@ -63,9 +63,7 @@ "start": 54, "end": 58 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -104,9 +102,7 @@ "start": 92, "end": 97 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -137,9 +133,7 @@ "start": 120, "end": 124 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -201,9 +195,7 @@ "start": 161, "end": 169 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of22.json b/crates/swc_ecma_parser/tests/tsc/for-of22.json index 5fa691f61e92..806408e7e222 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of22.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of22.json @@ -63,9 +63,7 @@ "start": 54, "end": 58 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -104,9 +102,7 @@ "start": 92, "end": 97 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -137,9 +133,7 @@ "start": 120, "end": 124 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -201,9 +195,7 @@ "start": 161, "end": 169 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of23.json b/crates/swc_ecma_parser/tests/tsc/for-of23.json index 3b1f4505cdf3..ed348b96df59 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of23.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of23.json @@ -63,9 +63,7 @@ "start": 54, "end": 58 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -104,9 +102,7 @@ "start": 92, "end": 97 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -137,9 +133,7 @@ "start": 120, "end": 124 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -201,9 +195,7 @@ "start": 161, "end": 169 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of25.json b/crates/swc_ecma_parser/tests/tsc/for-of25.json index d2023e4e330a..5453d7b55555 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of25.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of25.json @@ -59,9 +59,7 @@ "start": 51, "end": 59 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of26.json b/crates/swc_ecma_parser/tests/tsc/for-of26.json index 8dc6de7c4792..a645ea352ea2 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of26.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of26.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -122,9 +120,7 @@ "start": 88, "end": 96 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of27.json b/crates/swc_ecma_parser/tests/tsc/for-of27.json index 2c5c395a92a7..a5b9cd3cc28a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of27.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of27.json @@ -59,9 +59,7 @@ "start": 51, "end": 59 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of28.json b/crates/swc_ecma_parser/tests/tsc/for-of28.json index e2404a1965b8..5196ff7d063c 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of28.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of28.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { @@ -101,9 +99,7 @@ "start": 66, "end": 74 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of29.json b/crates/swc_ecma_parser/tests/tsc/for-of29.json index ec92d38dc8aa..75d8d7072df8 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of29.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of29.json @@ -71,9 +71,7 @@ "start": 64, "end": 72 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of30.json b/crates/swc_ecma_parser/tests/tsc/for-of30.json index a65bb256d245..40470bd5fcd2 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of30.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of30.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 85 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -99,9 +95,7 @@ "start": 106, "end": 111 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -142,9 +136,7 @@ "start": 137, "end": 143 }, - "ctxt": 0, - "value": "return", - "optional": false + "value": "return" }, "value": { "type": "NumericLiteral", @@ -200,9 +192,7 @@ "start": 162, "end": 170 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of31.json b/crates/swc_ecma_parser/tests/tsc/for-of31.json index 25d20eb5b59d..91786fb36997 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of31.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of31.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 113, "end": 118 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -143,9 +139,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of33.json b/crates/swc_ecma_parser/tests/tsc/for-of33.json index a7bc9a8b098b..357213b55b38 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of33.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of33.json @@ -59,9 +59,7 @@ "start": 74, "end": 82 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of34.json b/crates/swc_ecma_parser/tests/tsc/for-of34.json index cb42aa22b2d7..b5100386085a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of34.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of34.json @@ -37,9 +37,7 @@ "start": 66, "end": 70 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -122,9 +120,7 @@ "start": 112, "end": 120 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of35.json b/crates/swc_ecma_parser/tests/tsc/for-of35.json index 7ee59e687b63..aad8245959e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of35.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of35.json @@ -37,9 +37,7 @@ "start": 66, "end": 70 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 104, "end": 108 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -99,9 +95,7 @@ "start": 128, "end": 133 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -165,9 +159,7 @@ "start": 166, "end": 174 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of41.json b/crates/swc_ecma_parser/tests/tsc/for-of41.json index c44b2cbaddce..4b004d9cb650 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of41.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of41.json @@ -56,9 +56,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayExpression", @@ -90,9 +88,7 @@ "start": 38, "end": 39 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -109,9 +105,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", @@ -173,9 +167,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayPattern", @@ -208,9 +200,7 @@ "start": 69, "end": 70 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/for-of42.json b/crates/swc_ecma_parser/tests/tsc/for-of42.json index a84dc6808751..f5c49b5f4f26 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of42.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of42.json @@ -56,9 +56,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -78,9 +76,7 @@ "start": 38, "end": 39 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -139,9 +135,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -163,9 +157,7 @@ "start": 62, "end": 63 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/for-of43.json b/crates/swc_ecma_parser/tests/tsc/for-of43.json index 90fe0cc87a17..ee260c6f5925 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of43.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of43.json @@ -56,9 +56,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -78,9 +76,7 @@ "start": 38, "end": 39 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -139,9 +135,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -179,9 +173,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/for-of47.json b/crates/swc_ecma_parser/tests/tsc/for-of47.json index 76a4e455ff9b..0fc3890cd243 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of47.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of47.json @@ -136,9 +136,7 @@ "start": 57, "end": 58 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -158,9 +156,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -260,9 +256,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -303,9 +297,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/for-of48.json b/crates/swc_ecma_parser/tests/tsc/for-of48.json index 6a82d55909bc..7a60b3cf6587 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of48.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of48.json @@ -136,9 +136,7 @@ "start": 57, "end": 58 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -158,9 +156,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -291,9 +287,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/for-of58.json b/crates/swc_ecma_parser/tests/tsc/for-of58.json index baa0a5f2715f..aecaec1fed48 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of58.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of58.json @@ -329,9 +329,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -363,9 +361,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json b/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json index f35353658a34..7799e073a85e 100644 --- a/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json +++ b/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json @@ -350,9 +350,7 @@ "start": 272, "end": 275 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json index ffd04cfc342e..62ceccac4523 100644 --- a/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json @@ -45,9 +45,7 @@ "start": 87, "end": 90 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "ForStatement", @@ -78,9 +76,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -99,9 +95,7 @@ "start": 122, "end": 125 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -115,9 +109,7 @@ "start": 127, "end": 132 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "ForStatement", @@ -148,9 +140,7 @@ "start": 156, "end": 161 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -170,9 +160,7 @@ "start": 166, "end": 170 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "ForStatement", @@ -203,9 +191,7 @@ "start": 188, "end": 192 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "ForStatement", @@ -236,9 +222,7 @@ "start": 224, "end": 228 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -278,9 +262,7 @@ "start": 255, "end": 258 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "ForStatement", @@ -303,9 +285,7 @@ "start": 280, "end": 283 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -325,9 +305,7 @@ "start": 288, "end": 293 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "ForStatement", @@ -368,9 +346,7 @@ "start": 331, "end": 336 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -389,9 +365,7 @@ "start": 339, "end": 344 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "ForStatement", @@ -477,9 +451,7 @@ "start": 397, "end": 402 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json index b507f6121c5b..d0c384e6cc1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json @@ -45,9 +45,7 @@ "start": 62, "end": 65 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "ForStatement", @@ -78,9 +76,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -99,9 +95,7 @@ "start": 100, "end": 103 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -115,9 +109,7 @@ "start": 105, "end": 110 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "ForStatement", @@ -148,9 +140,7 @@ "start": 137, "end": 142 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -170,9 +160,7 @@ "start": 147, "end": 151 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "ForStatement", @@ -203,9 +191,7 @@ "start": 169, "end": 173 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "ForStatement", @@ -236,9 +222,7 @@ "start": 208, "end": 212 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -278,9 +262,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "ForStatement", @@ -303,9 +285,7 @@ "start": 267, "end": 270 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -325,9 +305,7 @@ "start": 275, "end": 280 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "ForStatement", @@ -368,9 +346,7 @@ "start": 321, "end": 326 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -389,9 +365,7 @@ "start": 329, "end": 334 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "ForStatement", @@ -477,9 +451,7 @@ "start": 390, "end": 395 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json index a703d5c4e510..46513c8bc40c 100644 --- a/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json @@ -82,9 +82,7 @@ "start": 63, "end": 66 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "ForInStatement", @@ -152,9 +150,7 @@ "start": 97, "end": 100 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -173,9 +169,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -189,9 +183,7 @@ "start": 110, "end": 115 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "ForInStatement", @@ -259,9 +251,7 @@ "start": 146, "end": 151 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -281,9 +271,7 @@ "start": 156, "end": 160 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "ForInStatement", @@ -351,9 +339,7 @@ "start": 185, "end": 189 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "ForInStatement", @@ -421,9 +407,7 @@ "start": 228, "end": 232 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -500,9 +484,7 @@ "start": 266, "end": 269 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "ForInStatement", @@ -562,9 +544,7 @@ "start": 298, "end": 301 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -584,9 +564,7 @@ "start": 306, "end": 311 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "ForInStatement", @@ -738,9 +716,7 @@ "start": 373, "end": 378 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -759,9 +735,7 @@ "start": 381, "end": 386 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "ForInStatement", @@ -884,9 +858,7 @@ "start": 446, "end": 451 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json index 6d7364c340a0..5a59d1310a07 100644 --- a/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json @@ -82,9 +82,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "ForInStatement", @@ -152,9 +150,7 @@ "start": 103, "end": 106 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -173,9 +169,7 @@ "start": 111, "end": 114 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -189,9 +183,7 @@ "start": 116, "end": 121 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "ForInStatement", @@ -259,9 +251,7 @@ "start": 155, "end": 160 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -281,9 +271,7 @@ "start": 165, "end": 169 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "ForInStatement", @@ -351,9 +339,7 @@ "start": 194, "end": 198 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "ForInStatement", @@ -421,9 +407,7 @@ "start": 240, "end": 244 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -500,9 +484,7 @@ "start": 278, "end": 281 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "ForInStatement", @@ -562,9 +544,7 @@ "start": 313, "end": 316 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -584,9 +564,7 @@ "start": 321, "end": 326 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "ForInStatement", @@ -738,9 +716,7 @@ "start": 391, "end": 396 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -759,9 +735,7 @@ "start": 399, "end": 404 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "ForInStatement", @@ -884,9 +858,7 @@ "start": 467, "end": 472 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forStatements.json b/crates/swc_ecma_parser/tests/tsc/forStatements.json index 4ccccf77237d..7cdd7ec2d9f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatements.json @@ -101,9 +101,7 @@ "start": 93, "end": 95 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 124, "end": 130 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -241,9 +237,7 @@ "start": 139, "end": 146 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -319,9 +313,7 @@ "start": 158, "end": 165 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -610,9 +602,7 @@ "start": 264, "end": 268 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -751,9 +741,7 @@ "start": 338, "end": 346 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1727,9 +1715,7 @@ "start": 795, "end": 797 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -2311,6 +2297,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1065, + "end": 1068 + }, "left": { "type": "Identifier", "span": { @@ -2327,9 +2317,7 @@ "start": 1067, "end": 1068 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2365,9 +2353,7 @@ "start": 1077, "end": 1078 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -2434,6 +2420,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1120, + "end": 1124 + }, "left": { "type": "Identifier", "span": { @@ -2450,9 +2440,7 @@ "start": 1122, "end": 1124 }, - "ctxt": 0, - "value": "F2", - "optional": false + "value": "F2" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json index c77c1e0d8569..4463ae947ebb 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json @@ -101,9 +101,7 @@ "start": 93, "end": 95 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -143,9 +141,7 @@ "start": 109, "end": 114 }, - "ctxt": 0, - "value": "valid", - "optional": false + "value": "valid" }, "value": null, "typeAnnotation": { @@ -231,9 +227,7 @@ "start": 153, "end": 157 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -309,9 +303,7 @@ "start": 186, "end": 192 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -361,9 +353,7 @@ "start": 201, "end": 208 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -439,9 +429,7 @@ "start": 220, "end": 227 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -730,9 +718,7 @@ "start": 326, "end": 330 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -871,9 +857,7 @@ "start": 400, "end": 408 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2323,9 +2307,7 @@ "start": 965, "end": 966 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json index b014b4401e6e..c541ccd957b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json @@ -515,9 +515,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -537,9 +535,7 @@ "start": 376, "end": 377 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -641,9 +637,7 @@ "start": 413, "end": 414 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -663,9 +657,7 @@ "start": 419, "end": 420 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -744,9 +736,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -766,9 +756,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "TsTypeAssertion", @@ -947,9 +935,7 @@ "start": 536, "end": 537 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -969,9 +955,7 @@ "start": 542, "end": 543 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1055,9 +1039,7 @@ "start": 599, "end": 600 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1077,9 +1059,7 @@ "start": 605, "end": 606 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/forgottenNew.json b/crates/swc_ecma_parser/tests/tsc/forgottenNew.json index 39eb8dacadcc..71b0e086c118 100644 --- a/crates/swc_ecma_parser/tests/tsc/forgottenNew.json +++ b/crates/swc_ecma_parser/tests/tsc/forgottenNew.json @@ -122,9 +122,7 @@ "start": 70, "end": 80 }, - "ctxt": 0, - "value": "NullLogger", - "optional": false + "value": "NullLogger" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json index 6449eecfa296..2b3a813c44d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json +++ b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction.json @@ -313,9 +313,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1623,9 +1621,7 @@ "start": 605, "end": 608 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json index 5b8f73cbe668..9974e46ec0b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json +++ b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction2.json @@ -573,9 +573,7 @@ "start": 295, "end": 298 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -739,9 +737,7 @@ "start": 366, "end": 369 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json index 2c11bd5367a7..87998f8974e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json +++ b/crates/swc_ecma_parser/tests/tsc/functionConstraintSatisfaction3.json @@ -345,9 +345,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1436,9 +1434,7 @@ "start": 551, "end": 554 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json index b9bfd9006f67..b4e801a8ae27 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json @@ -244,9 +244,7 @@ "start": 492, "end": 505 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], @@ -312,9 +310,7 @@ "start": 547, "end": 550 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -564,9 +560,7 @@ "start": 616, "end": 619 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2234,9 +2228,7 @@ "start": 1866, "end": 1877 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -2339,9 +2331,7 @@ "start": 1903, "end": 1916 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], @@ -2478,9 +2468,7 @@ "start": 2171, "end": 2182 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json b/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json index 6bebb4eb92e7..5b9cc70f776e 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json @@ -858,9 +858,7 @@ "start": 1080, "end": 1081 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -913,9 +911,7 @@ "start": 1114, "end": 1115 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -968,9 +964,7 @@ "start": 1157, "end": 1158 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -1032,9 +1026,7 @@ "start": 1200, "end": 1201 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/functionImplementations.json b/crates/swc_ecma_parser/tests/tsc/functionImplementations.json index 222a55f84880..0a4531b3b446 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionImplementations.json +++ b/crates/swc_ecma_parser/tests/tsc/functionImplementations.json @@ -1736,9 +1736,7 @@ "start": 2280, "end": 2281 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -1791,9 +1789,7 @@ "start": 2322, "end": 2323 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": null, "typeAnnotation": null, @@ -2566,9 +2562,7 @@ "start": 3179, "end": 3180 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NullLiteral", @@ -2586,9 +2580,7 @@ "start": 3188, "end": 3189 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -3066,9 +3058,7 @@ "start": 3654, "end": 3655 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": { @@ -3144,9 +3134,7 @@ "start": 3696, "end": 3697 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -3392,9 +3380,7 @@ "start": 4056, "end": 4064 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json b/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json index 10d0ee713fbb..9b969ea35925 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/functionLiteralForOverloads2.json @@ -38,9 +38,7 @@ "start": 78, "end": 89 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -94,9 +92,7 @@ "start": 106, "end": 117 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -150,9 +146,7 @@ "start": 134, "end": 145 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -227,9 +221,7 @@ "start": 173, "end": 184 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -283,9 +275,7 @@ "start": 201, "end": 212 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -339,9 +329,7 @@ "start": 229, "end": 240 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/functionLiterals.json b/crates/swc_ecma_parser/tests/tsc/functionLiterals.json index d4b6340a0db4..b9fd61275405 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/functionLiterals.json @@ -312,9 +312,7 @@ "start": 330, "end": 335 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } }, "right": { @@ -339,9 +337,7 @@ "start": 340, "end": 345 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } } } @@ -381,9 +377,7 @@ "start": 349, "end": 354 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } }, "right": { @@ -408,9 +402,7 @@ "start": 359, "end": 364 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } } } @@ -450,9 +442,7 @@ "start": 368, "end": 373 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } }, "right": { @@ -477,9 +467,7 @@ "start": 378, "end": 383 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } } } @@ -519,9 +507,7 @@ "start": 387, "end": 392 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } }, "right": { @@ -546,9 +532,7 @@ "start": 397, "end": 402 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } } } @@ -588,9 +572,7 @@ "start": 406, "end": 411 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } }, "right": { @@ -615,9 +597,7 @@ "start": 416, "end": 421 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } } } @@ -657,9 +637,7 @@ "start": 425, "end": 430 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } }, "right": { @@ -684,9 +662,7 @@ "start": 435, "end": 440 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } } } @@ -1033,9 +1009,7 @@ "start": 609, "end": 614 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } }, "right": { @@ -1060,9 +1034,7 @@ "start": 619, "end": 624 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } } } @@ -1102,9 +1074,7 @@ "start": 628, "end": 633 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } }, "right": { @@ -1129,9 +1099,7 @@ "start": 638, "end": 643 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } } } @@ -1563,9 +1531,7 @@ "start": 871, "end": 876 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } }, "right": { @@ -1590,9 +1556,7 @@ "start": 882, "end": 887 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } } } @@ -1632,9 +1596,7 @@ "start": 892, "end": 897 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } }, "right": { @@ -1659,9 +1621,7 @@ "start": 903, "end": 908 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } } } @@ -1701,9 +1661,7 @@ "start": 913, "end": 918 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } }, "right": { @@ -1728,9 +1686,7 @@ "start": 924, "end": 929 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } } } @@ -1770,9 +1726,7 @@ "start": 934, "end": 939 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } }, "right": { @@ -1797,9 +1751,7 @@ "start": 945, "end": 950 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } } } @@ -1839,9 +1791,7 @@ "start": 955, "end": 960 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } }, "right": { @@ -1866,9 +1816,7 @@ "start": 966, "end": 971 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } } } @@ -1908,9 +1856,7 @@ "start": 976, "end": 981 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } }, "right": { @@ -1935,9 +1881,7 @@ "start": 987, "end": 992 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } } } @@ -2444,9 +2388,7 @@ "start": 1155, "end": 1160 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } }, "right": { @@ -2471,9 +2413,7 @@ "start": 1166, "end": 1171 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } } } @@ -2513,9 +2453,7 @@ "start": 1176, "end": 1181 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } }, "right": { @@ -2540,9 +2478,7 @@ "start": 1187, "end": 1192 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json b/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json index b5e1df99c1df..e7d9801553f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/functionOverloadErrors.json @@ -2231,9 +2231,7 @@ "start": 1825, "end": 1826 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -2268,9 +2266,7 @@ "start": 1842, "end": 1843 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -2339,9 +2335,7 @@ "start": 1860, "end": 1861 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -2384,9 +2378,7 @@ "start": 1881, "end": 1882 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [ @@ -2455,9 +2447,7 @@ "start": 1906, "end": 1907 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -2492,9 +2482,7 @@ "start": 1915, "end": 1916 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json index 719c08df96e2..2a0213680fea 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/generatedContextualTyping.json @@ -37,9 +37,7 @@ "start": 54, "end": 55 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": null, @@ -1782,9 +1776,7 @@ "start": 694, "end": 695 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -2136,9 +2128,7 @@ "start": 803, "end": 807 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -2256,9 +2246,7 @@ "start": 850, "end": 856 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -2405,9 +2393,7 @@ "start": 902, "end": 908 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -2573,9 +2559,7 @@ "start": 970, "end": 976 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -2750,9 +2734,7 @@ "start": 1044, "end": 1050 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -2908,9 +2890,7 @@ "start": 1099, "end": 1105 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -3085,9 +3065,7 @@ "start": 1170, "end": 1176 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -3271,9 +3249,7 @@ "start": 1247, "end": 1253 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -3391,9 +3367,7 @@ "start": 1287, "end": 1293 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -3530,9 +3504,7 @@ "start": 1332, "end": 1338 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -3695,9 +3667,7 @@ "start": 1388, "end": 1394 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -3714,9 +3684,7 @@ "start": 1415, "end": 1416 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -3873,9 +3841,7 @@ "start": 1443, "end": 1449 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -4112,9 +4078,7 @@ "start": 1523, "end": 1529 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -4131,9 +4095,7 @@ "start": 1548, "end": 1552 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -4315,9 +4277,7 @@ "start": 1604, "end": 1610 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -4464,9 +4424,7 @@ "start": 1664, "end": 1670 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -4632,9 +4590,7 @@ "start": 1740, "end": 1746 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -4809,9 +4765,7 @@ "start": 1822, "end": 1828 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -4967,9 +4921,7 @@ "start": 1885, "end": 1891 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -5144,9 +5096,7 @@ "start": 1964, "end": 1970 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -5330,9 +5280,7 @@ "start": 2049, "end": 2055 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -5450,9 +5398,7 @@ "start": 2097, "end": 2103 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -5589,9 +5535,7 @@ "start": 2150, "end": 2156 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -5754,9 +5698,7 @@ "start": 2214, "end": 2220 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -5773,9 +5715,7 @@ "start": 2241, "end": 2242 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -5932,9 +5872,7 @@ "start": 2277, "end": 2283 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -6171,9 +6109,7 @@ "start": 2365, "end": 2371 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -6190,9 +6126,7 @@ "start": 2390, "end": 2394 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -6374,9 +6308,7 @@ "start": 2445, "end": 2451 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -6523,9 +6455,7 @@ "start": 2504, "end": 2510 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -6691,9 +6621,7 @@ "start": 2579, "end": 2585 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -6868,9 +6796,7 @@ "start": 2660, "end": 2666 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -7026,9 +6952,7 @@ "start": 2722, "end": 2728 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -7203,9 +7127,7 @@ "start": 2800, "end": 2806 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -7389,9 +7311,7 @@ "start": 2884, "end": 2890 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -7509,9 +7429,7 @@ "start": 2931, "end": 2937 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -7648,9 +7566,7 @@ "start": 2983, "end": 2989 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -7813,9 +7729,7 @@ "start": 3046, "end": 3052 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -7832,9 +7746,7 @@ "start": 3073, "end": 3074 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -7991,9 +7903,7 @@ "start": 3108, "end": 3114 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -8230,9 +8140,7 @@ "start": 3195, "end": 3201 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -8249,9 +8157,7 @@ "start": 3220, "end": 3224 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -8433,9 +8339,7 @@ "start": 3275, "end": 3281 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -8582,9 +8486,7 @@ "start": 3334, "end": 3340 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -8750,9 +8652,7 @@ "start": 3409, "end": 3415 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -8927,9 +8827,7 @@ "start": 3490, "end": 3496 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -9085,9 +8983,7 @@ "start": 3552, "end": 3558 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -9262,9 +9158,7 @@ "start": 3630, "end": 3636 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -9448,9 +9342,7 @@ "start": 3714, "end": 3720 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -9568,9 +9460,7 @@ "start": 3761, "end": 3767 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -9707,9 +9597,7 @@ "start": 3813, "end": 3819 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -9872,9 +9760,7 @@ "start": 3876, "end": 3882 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -9891,9 +9777,7 @@ "start": 3903, "end": 3904 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -10050,9 +9934,7 @@ "start": 3938, "end": 3944 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -10289,9 +10171,7 @@ "start": 4025, "end": 4031 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -10308,9 +10188,7 @@ "start": 4050, "end": 4054 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -10492,9 +10370,7 @@ "start": 4113, "end": 4119 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -10641,9 +10517,7 @@ "start": 4180, "end": 4186 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -10809,9 +10683,7 @@ "start": 4263, "end": 4269 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -10986,9 +10858,7 @@ "start": 4352, "end": 4358 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -11144,9 +11014,7 @@ "start": 4422, "end": 4428 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -11321,9 +11189,7 @@ "start": 4508, "end": 4514 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -11507,9 +11373,7 @@ "start": 4600, "end": 4606 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -11627,9 +11491,7 @@ "start": 4655, "end": 4661 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -11766,9 +11628,7 @@ "start": 4715, "end": 4721 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -11931,9 +11791,7 @@ "start": 4786, "end": 4792 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -11950,9 +11808,7 @@ "start": 4813, "end": 4814 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -12109,9 +11965,7 @@ "start": 4856, "end": 4862 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -12348,9 +12202,7 @@ "start": 4951, "end": 4957 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -12367,9 +12219,7 @@ "start": 4976, "end": 4980 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -12551,9 +12401,7 @@ "start": 5038, "end": 5044 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -12700,9 +12548,7 @@ "start": 5104, "end": 5110 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -12868,9 +12714,7 @@ "start": 5186, "end": 5192 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -13045,9 +12889,7 @@ "start": 5274, "end": 5280 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -13203,9 +13045,7 @@ "start": 5343, "end": 5349 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -13380,9 +13220,7 @@ "start": 5428, "end": 5434 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "FunctionExpression", @@ -13566,9 +13404,7 @@ "start": 5519, "end": 5525 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -13686,9 +13522,7 @@ "start": 5573, "end": 5579 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -13825,9 +13659,7 @@ "start": 5632, "end": 5638 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrayExpression", @@ -13990,9 +13822,7 @@ "start": 5702, "end": 5708 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -14009,9 +13839,7 @@ "start": 5729, "end": 5730 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -14168,9 +13996,7 @@ "start": 5771, "end": 5777 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ArrowFunctionExpression", @@ -14407,9 +14233,7 @@ "start": 5865, "end": 5871 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "ObjectExpression", @@ -14426,9 +14250,7 @@ "start": 5890, "end": 5894 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -14611,9 +14433,7 @@ "start": 5938, "end": 5949 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -14790,9 +14610,7 @@ "start": 6005, "end": 6016 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -14988,9 +14806,7 @@ "start": 6088, "end": 6099 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -15195,9 +15011,7 @@ "start": 6177, "end": 6188 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -15383,9 +15197,7 @@ "start": 6247, "end": 6258 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -15590,9 +15402,7 @@ "start": 6333, "end": 6344 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -15806,9 +15616,7 @@ "start": 6425, "end": 6436 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -15956,9 +15764,7 @@ "start": 6480, "end": 6491 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -16125,9 +15931,7 @@ "start": 6540, "end": 6551 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -16320,9 +16124,7 @@ "start": 6611, "end": 6622 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -16431,9 +16233,7 @@ "start": 6648, "end": 6649 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -16528,9 +16328,7 @@ "start": 6681, "end": 6692 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -16797,9 +16595,7 @@ "start": 6776, "end": 6787 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -16891,9 +16687,7 @@ "start": 6811, "end": 6815 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -17030,9 +16824,7 @@ "start": 6864, "end": 6875 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -17212,9 +17004,7 @@ "start": 6938, "end": 6949 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -17413,9 +17203,7 @@ "start": 7028, "end": 7039 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -17623,9 +17411,7 @@ "start": 7125, "end": 7136 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -17814,9 +17600,7 @@ "start": 7203, "end": 7214 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -18024,9 +17808,7 @@ "start": 7297, "end": 7308 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -18243,9 +18025,7 @@ "start": 7397, "end": 7408 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -18396,9 +18176,7 @@ "start": 7460, "end": 7471 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -18568,9 +18346,7 @@ "start": 7528, "end": 7539 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -18766,9 +18542,7 @@ "start": 7607, "end": 7618 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -18880,9 +18654,7 @@ "start": 7651, "end": 7652 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -18977,9 +18749,7 @@ "start": 7685, "end": 7696 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -19249,9 +19019,7 @@ "start": 7788, "end": 7799 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -19346,9 +19114,7 @@ "start": 7830, "end": 7834 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -19485,9 +19251,7 @@ "start": 7884, "end": 7895 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -19667,9 +19431,7 @@ "start": 7960, "end": 7971 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -19868,9 +19630,7 @@ "start": 8052, "end": 8063 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -20078,9 +19838,7 @@ "start": 8150, "end": 8161 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -20269,9 +20027,7 @@ "start": 8229, "end": 8240 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -20479,9 +20235,7 @@ "start": 8324, "end": 8335 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -20698,9 +20452,7 @@ "start": 8425, "end": 8436 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -20851,9 +20603,7 @@ "start": 8489, "end": 8500 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21023,9 +20773,7 @@ "start": 8558, "end": 8569 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21221,9 +20969,7 @@ "start": 8638, "end": 8649 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21335,9 +21081,7 @@ "start": 8683, "end": 8684 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -21432,9 +21176,7 @@ "start": 8717, "end": 8728 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21704,9 +21446,7 @@ "start": 8821, "end": 8832 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21801,9 +21541,7 @@ "start": 8864, "end": 8868 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -23529,9 +23267,7 @@ "start": 9509, "end": 9510 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -23943,9 +23679,7 @@ "start": 9648, "end": 9652 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -25430,9 +25164,7 @@ "start": 10313, "end": 10314 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -25823,9 +25555,7 @@ "start": 10456, "end": 10460 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -27895,9 +27625,7 @@ "start": 11384, "end": 11385 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -27959,9 +27687,7 @@ "start": 11408, "end": 11409 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -28471,9 +28197,7 @@ "start": 11596, "end": 11600 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -28577,9 +28301,7 @@ "start": 11640, "end": 11644 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -30512,9 +30234,7 @@ "start": 12382, "end": 12383 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -30958,9 +30678,7 @@ "start": 12541, "end": 12545 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -32867,9 +32585,7 @@ "start": 13334, "end": 13335 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -33317,9 +33033,7 @@ "start": 13503, "end": 13507 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -35031,9 +34745,7 @@ "start": 14137, "end": 14138 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -35441,9 +35153,7 @@ "start": 14274, "end": 14278 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -37219,9 +36929,7 @@ "start": 14977, "end": 14978 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -37643,9 +37351,7 @@ "start": 15128, "end": 15132 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -38761,9 +38467,7 @@ "start": 15548, "end": 15549 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -38917,9 +38621,7 @@ "start": 15590, "end": 15594 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -40337,9 +40039,7 @@ "start": 16128, "end": 16129 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -41997,9 +41697,7 @@ "start": 16671, "end": 16672 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -42405,9 +42103,7 @@ "start": 16794, "end": 16798 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -42616,9 +42312,7 @@ "start": 16864, "end": 16865 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrowFunctionExpression", @@ -42800,9 +42494,7 @@ "start": 16920, "end": 16921 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "FunctionExpression", @@ -43003,9 +42695,7 @@ "start": 16992, "end": 16993 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "FunctionExpression", @@ -43224,9 +42914,7 @@ "start": 17073, "end": 17074 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrowFunctionExpression", @@ -43417,9 +43105,7 @@ "start": 17132, "end": 17133 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "FunctionExpression", @@ -43629,9 +43315,7 @@ "start": 17207, "end": 17208 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "FunctionExpression", @@ -43825,9 +43509,7 @@ "start": 17279, "end": 17280 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -43999,9 +43681,7 @@ "start": 17328, "end": 17329 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -44199,9 +43879,7 @@ "start": 17388, "end": 17389 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -44390,9 +44068,7 @@ "start": 17440, "end": 17441 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ObjectExpression", @@ -44409,9 +44085,7 @@ "start": 17445, "end": 17446 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -44609,9 +44283,7 @@ "start": 17503, "end": 17504 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrowFunctionExpression", @@ -44860,9 +44532,7 @@ "start": 17581, "end": 17582 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ObjectExpression", @@ -44879,9 +44549,7 @@ "start": 17586, "end": 17590 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -46016,9 +45684,7 @@ "start": 17957, "end": 17958 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -46173,9 +45839,7 @@ "start": 18003, "end": 18007 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -47477,9 +47141,7 @@ "start": 18513, "end": 18514 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -48757,9 +48419,7 @@ "start": 19028, "end": 19029 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -50338,9 +49998,7 @@ "start": 19610, "end": 19611 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -50395,9 +50053,7 @@ "start": 19629, "end": 19630 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -52419,9 +52075,7 @@ "start": 20393, "end": 20394 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -52476,9 +52130,7 @@ "start": 20411, "end": 20412 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -52972,9 +52624,7 @@ "start": 20575, "end": 20579 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -53071,9 +52721,7 @@ "start": 20613, "end": 20617 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -54750,9 +54398,7 @@ "start": 21306, "end": 21307 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -55154,9 +54800,7 @@ "start": 21455, "end": 21459 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -56823,9 +56467,7 @@ "start": 22136, "end": 22137 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -57227,9 +56869,7 @@ "start": 22285, "end": 22289 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -59276,9 +58916,7 @@ "start": 22969, "end": 22970 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -59752,9 +59390,7 @@ "start": 23114, "end": 23118 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -61841,9 +61477,7 @@ "start": 23777, "end": 23778 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -62327,9 +61961,7 @@ "start": 23920, "end": 23924 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", @@ -64506,9 +64138,7 @@ "start": 24653, "end": 24654 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrayExpression", @@ -65010,9 +64640,7 @@ "start": 24810, "end": 24814 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/generatorAssignability.json b/crates/swc_ecma_parser/tests/tsc/generatorAssignability.json index c790a72c709b..dc726abbea34 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorAssignability.json @@ -1866,9 +1866,7 @@ "start": 1557, "end": 1570 }, - "ctxt": 0, - "value": "asyncIterator", - "optional": false + "value": "asyncIterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorInAmbientContext5.json b/crates/swc_ecma_parser/tests/tsc/generatorInAmbientContext5.json index 65bdeac23b7c..c99e77efb2cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorInAmbientContext5.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorInAmbientContext5.json @@ -37,9 +37,7 @@ "start": 52, "end": 61 }, - "ctxt": 0, - "value": "generator", - "optional": false + "value": "generator" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json b/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json index 13005db3a98d..ec4f51e59df9 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json @@ -75,9 +75,7 @@ "start": 122, "end": 128 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json b/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json index 03f121d1e6cd..253973270841 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorOverloads4.json @@ -37,9 +37,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -148,9 +146,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -259,9 +255,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json index 7935e31362dd..35aef010567d 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json @@ -54,9 +54,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -227,9 +225,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -400,9 +396,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -573,9 +567,7 @@ "start": 352, "end": 353 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -760,9 +752,7 @@ "start": 443, "end": 450 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -783,9 +773,7 @@ "start": 453, "end": 454 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -974,9 +962,7 @@ "start": 544, "end": 551 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -997,9 +983,7 @@ "start": 554, "end": 555 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1195,9 +1179,7 @@ "start": 645, "end": 646 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1250,9 +1232,7 @@ "start": 672, "end": 679 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -1450,9 +1430,7 @@ "start": 774, "end": 775 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1505,9 +1483,7 @@ "start": 801, "end": 808 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json index 953150bc095c..08ab91eaa507 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json @@ -814,9 +814,7 @@ "start": 1072, "end": 1078 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1988,9 +1986,7 @@ "start": 2143, "end": 2149 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2081,9 +2077,7 @@ "start": 2188, "end": 2194 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json index 48c1789adb45..90a7387aa6d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json @@ -814,9 +814,7 @@ "start": 1243, "end": 1249 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1988,9 +1986,7 @@ "start": 2324, "end": 2330 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2081,9 +2077,7 @@ "start": 2369, "end": 2375 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck17.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck17.json index d65a162627c7..e361bfbb3d00 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck17.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck17.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck18.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck18.json index f0bba9e6ec36..8d6d742a852e 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck18.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck18.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck19.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck19.json index e88e8099d981..bab9e2a8d10b 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck19.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck19.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck20.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck20.json index 97e517fb3f92..b188bf887969 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck20.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck20.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck21.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck21.json index 6d02394f0a76..bcae0dac7591 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck21.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck21.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck22.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck22.json index 09436f50d3f3..f8303f9e5c16 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck22.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck22.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck23.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck23.json index 31308533681f..16193fd22205 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck23.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck23.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck24.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck24.json index 1e8e9146ba19..12b9eba6298a 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck24.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck24.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck25.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck25.json index aee6a1ef34ef..113d7066bce2 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck25.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck25.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json index 90bf3feb6f17..9fdb45f78a0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck26.json @@ -87,9 +87,7 @@ "start": 90, "end": 96 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -163,9 +161,7 @@ "start": 117, "end": 123 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -227,9 +223,7 @@ "start": 144, "end": 150 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json index bf68002210e1..730d47056c51 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck27.json @@ -124,9 +124,7 @@ "start": 121, "end": 127 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json index 9e45f7a642aa..d56378889298 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck28.json @@ -82,9 +82,7 @@ "start": 104, "end": 112 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -157,9 +155,7 @@ "start": 143, "end": 149 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json index 397f8c168e58..d11be8bd0363 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck29.json @@ -124,9 +124,7 @@ "start": 122, "end": 128 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json index 397f8c168e58..d11be8bd0363 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck30.json @@ -124,9 +124,7 @@ "start": 122, "end": 128 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json index ee8eed75b6df..f7b408f4d1a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck31.json @@ -124,9 +124,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json index 76e6ffc7a59e..4f05793e363c 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json @@ -493,9 +493,7 @@ "start": 143, "end": 149 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json index 8f72f479e3d9..7686a4ebfdec 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json @@ -488,9 +488,7 @@ "start": 160, "end": 168 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -563,9 +561,7 @@ "start": 199, "end": 205 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck52.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck52.json index f27783eed046..f27dec5aebda 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck52.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck52.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck53.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck53.json index 3fe6dfe26c12..e41608d2bef6 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck53.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck53.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck54.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck54.json index fad45b16f7d0..f520d950e897 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck54.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck54.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json index 85ea0d35f703..5d09dbc01924 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json @@ -65,9 +65,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json index fab25a12aa9f..5b96c9ad7295 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json @@ -466,9 +466,7 @@ "start": 413, "end": 432 }, - "ctxt": 0, - "value": "lastStrategyApplied", - "optional": false + "value": "lastStrategyApplied" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json index 2639042ded65..20343d68c14d 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json @@ -466,9 +466,7 @@ "start": 413, "end": 432 }, - "ctxt": 0, - "value": "lastStrategyApplied", - "optional": false + "value": "lastStrategyApplied" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json b/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json index 6ff49b685792..bb5266efc21f 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json @@ -2528,6 +2528,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1398, + "end": 1414 + }, "left": { "type": "Identifier", "span": { @@ -2544,9 +2548,7 @@ "start": 1409, "end": 1414 }, - "ctxt": 0, - "value": "Break", - "optional": false + "value": "Break" } }, "typeArguments": null @@ -4432,9 +4434,7 @@ "start": 2610, "end": 2615 }, - "ctxt": 0, - "value": "title", - "optional": false + "value": "title" }, "value": { "type": "StringLiteral", @@ -4454,9 +4454,7 @@ "start": 2625, "end": 2636 }, - "ctxt": 0, - "value": "placeholder", - "optional": false + "value": "placeholder" }, "value": { "type": "StringLiteral", @@ -4730,9 +4728,7 @@ "start": 2797, "end": 2802 }, - "ctxt": 0, - "value": "Break", - "optional": false + "value": "Break" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/generic.json b/crates/swc_ecma_parser/tests/tsc/generic.json index e3d7b2e8760e..89b86e9eb360 100644 --- a/crates/swc_ecma_parser/tests/tsc/generic.json +++ b/crates/swc_ecma_parser/tests/tsc/generic.json @@ -43,9 +43,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -323,9 +321,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -425,9 +421,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -590,9 +584,7 @@ "start": 245, "end": 246 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json index e59e686a7934..7262d7a7fe5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallToOverloadedMethodWithOverloadedArguments.json @@ -533,9 +533,7 @@ "start": 236, "end": 240 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -1190,9 +1188,7 @@ "start": 596, "end": 600 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -2066,9 +2062,7 @@ "start": 984, "end": 988 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -3042,9 +3036,7 @@ "start": 1435, "end": 1439 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -4378,9 +4370,7 @@ "start": 2008, "end": 2012 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -5454,9 +5444,7 @@ "start": 2524, "end": 2528 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json index ff86d438c582..ca844df32e97 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json @@ -763,9 +763,7 @@ "start": 323, "end": 334 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -885,9 +883,7 @@ "start": 374, "end": 377 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1035,9 +1031,7 @@ "start": 421, "end": 425 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1185,9 +1179,7 @@ "start": 469, "end": 473 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -1365,9 +1357,7 @@ "start": 520, "end": 524 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "function": { "params": [ @@ -1545,9 +1535,7 @@ "start": 571, "end": 575 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" }, "function": { "params": [ @@ -1747,9 +1735,7 @@ "start": 624, "end": 628 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" }, "function": { "params": [], @@ -1918,9 +1904,7 @@ "start": 686, "end": 690 }, - "ctxt": 0, - "value": "foo7", - "optional": false + "value": "foo7" }, "function": { "params": [ @@ -2133,9 +2117,7 @@ "start": 752, "end": 756 }, - "ctxt": 0, - "value": "foo8", - "optional": false + "value": "foo8" }, "function": { "params": [], @@ -2483,9 +2465,7 @@ "start": 845, "end": 848 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2576,9 +2556,7 @@ "start": 878, "end": 882 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -2669,9 +2647,7 @@ "start": 912, "end": 916 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -2761,9 +2737,7 @@ "start": 949, "end": 953 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" } }, "arguments": [ @@ -2853,9 +2827,7 @@ "start": 986, "end": 990 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" } }, "arguments": [ @@ -2945,9 +2917,7 @@ "start": 1023, "end": 1027 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" } }, "arguments": [], @@ -3013,9 +2983,7 @@ "start": 1049, "end": 1053 }, - "ctxt": 0, - "value": "foo7", - "optional": false + "value": "foo7" } }, "arguments": [ @@ -3094,9 +3062,7 @@ "start": 1077, "end": 1081 }, - "ctxt": 0, - "value": "foo8", - "optional": false + "value": "foo8" } }, "arguments": [], @@ -4431,9 +4397,7 @@ "start": 1381, "end": 1384 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -4524,9 +4488,7 @@ "start": 1414, "end": 1418 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -4617,9 +4579,7 @@ "start": 1448, "end": 1452 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -4709,9 +4669,7 @@ "start": 1485, "end": 1489 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" } }, "arguments": [ @@ -4801,9 +4759,7 @@ "start": 1522, "end": 1526 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" } }, "arguments": [ @@ -4893,9 +4849,7 @@ "start": 1559, "end": 1563 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" } }, "arguments": [], @@ -4961,9 +4915,7 @@ "start": 1585, "end": 1589 }, - "ctxt": 0, - "value": "foo7", - "optional": false + "value": "foo7" } }, "arguments": [ @@ -5042,9 +4994,7 @@ "start": 1613, "end": 1617 }, - "ctxt": 0, - "value": "foo8", - "optional": false + "value": "foo8" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json index 38dda70d57b4..84fe80ce50ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstraintsTypeArgumentInference.json @@ -37,9 +37,7 @@ "start": 94, "end": 97 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 138, "end": 141 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 186, "end": 189 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -1477,9 +1471,7 @@ "start": 717, "end": 728 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1599,9 +1591,7 @@ "start": 768, "end": 771 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1749,9 +1739,7 @@ "start": 815, "end": 819 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1899,9 +1887,7 @@ "start": 863, "end": 867 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2096,9 +2082,7 @@ "start": 930, "end": 934 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "function": { "params": [ @@ -2293,9 +2277,7 @@ "start": 998, "end": 1002 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" }, "function": { "params": [ @@ -2529,9 +2511,7 @@ "start": 1085, "end": 1089 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" }, "function": { "params": [], @@ -2734,9 +2714,7 @@ "start": 1180, "end": 1184 }, - "ctxt": 0, - "value": "foo7", - "optional": false + "value": "foo7" }, "function": { "params": [ @@ -2983,9 +2961,7 @@ "start": 1275, "end": 1279 }, - "ctxt": 0, - "value": "foo8", - "optional": false + "value": "foo8" }, "function": { "params": [], @@ -3403,9 +3379,7 @@ "start": 1397, "end": 1400 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3498,9 +3472,7 @@ "start": 1429, "end": 1433 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -3593,9 +3565,7 @@ "start": 1464, "end": 1468 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -3688,9 +3658,7 @@ "start": 1500, "end": 1504 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" } }, "arguments": [ @@ -3783,9 +3751,7 @@ "start": 1533, "end": 1537 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" } }, "arguments": [ @@ -3878,9 +3844,7 @@ "start": 1570, "end": 1574 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" } }, "arguments": [ @@ -3973,9 +3937,7 @@ "start": 1607, "end": 1611 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" } }, "arguments": [], @@ -4041,9 +4003,7 @@ "start": 1638, "end": 1642 }, - "ctxt": 0, - "value": "foo7", - "optional": false + "value": "foo7" } }, "arguments": [ @@ -4123,9 +4083,7 @@ "start": 1668, "end": 1672 }, - "ctxt": 0, - "value": "foo8", - "optional": false + "value": "foo8" } }, "arguments": [], @@ -5684,9 +5642,7 @@ "start": 2155, "end": 2158 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -5779,9 +5735,7 @@ "start": 2187, "end": 2191 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -5874,9 +5828,7 @@ "start": 2222, "end": 2226 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -5969,9 +5921,7 @@ "start": 2258, "end": 2262 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" } }, "arguments": [ @@ -6064,9 +6014,7 @@ "start": 2291, "end": 2295 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" } }, "arguments": [ @@ -6159,9 +6107,7 @@ "start": 2328, "end": 2332 }, - "ctxt": 0, - "value": "foo5", - "optional": false + "value": "foo5" } }, "arguments": [ @@ -6254,9 +6200,7 @@ "start": 2365, "end": 2369 }, - "ctxt": 0, - "value": "foo6", - "optional": false + "value": "foo6" } }, "arguments": [], @@ -6322,9 +6266,7 @@ "start": 2396, "end": 2400 }, - "ctxt": 0, - "value": "foo7", - "optional": false + "value": "foo7" } }, "arguments": [ @@ -6404,9 +6346,7 @@ "start": 2426, "end": 2430 }, - "ctxt": 0, - "value": "foo8", - "optional": false + "value": "foo8" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json index 88f638461111..7fb0d896dc8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithConstructorTypedArguments5.json @@ -201,9 +201,7 @@ "start": 226, "end": 228 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" } }, "arguments": [ @@ -1221,9 +1219,7 @@ "start": 570, "end": 572 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json index 8bff47e7277c..c9d9616ac555 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments4.json @@ -37,9 +37,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 126, "end": 129 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json index 46be23f5643e..5218fc51c78d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json @@ -200,9 +200,7 @@ "start": 219, "end": 221 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" } }, "arguments": [ @@ -321,9 +319,7 @@ "start": 244, "end": 246 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" }, "value": { "type": "ArrowFunctionExpression", @@ -547,9 +543,7 @@ "start": 331, "end": 333 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" }, "value": { "type": "ArrowFunctionExpression", @@ -747,9 +741,7 @@ "start": 385, "end": 387 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" }, "value": { "type": "ArrowFunctionExpression", @@ -1065,9 +1057,7 @@ "start": 502, "end": 504 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" } }, "arguments": [ @@ -1281,9 +1271,7 @@ "start": 578, "end": 580 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" }, "value": { "type": "ArrowFunctionExpression", @@ -1446,9 +1434,7 @@ "start": 623, "end": 625 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" }, "value": { "type": "ArrowFunctionExpression", @@ -1571,9 +1557,7 @@ "start": 674, "end": 676 }, - "ctxt": 0, - "value": "cb", - "optional": false + "value": "cb" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json index 97c0a42af84e..8ee7b051a2fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json @@ -2461,9 +2461,7 @@ "start": 1193, "end": 1194 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -2511,9 +2509,7 @@ "start": 1205, "end": 1206 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "async": false, @@ -2566,9 +2562,7 @@ "start": 1217, "end": 1218 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "async": false, @@ -5104,9 +5098,7 @@ "start": 2040, "end": 2041 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -5154,9 +5146,7 @@ "start": 2052, "end": 2053 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "async": false, @@ -5209,9 +5199,7 @@ "start": 2064, "end": 2065 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json index 5313b52fd33f..2ad05d95fa56 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json @@ -1521,9 +1521,7 @@ "start": 862, "end": 863 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1585,9 +1583,7 @@ "start": 882, "end": 883 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "async": false, @@ -1664,9 +1660,7 @@ "start": 897, "end": 898 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json index c6074512fbde..748c9cdf473b 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json @@ -274,9 +274,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -296,9 +294,7 @@ "start": 81, "end": 84 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "StringLiteral", @@ -382,9 +378,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -404,9 +398,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "NumericLiteral", @@ -490,9 +482,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "Identifier", @@ -513,9 +503,7 @@ "start": 175, "end": 178 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "Identifier", @@ -600,9 +588,7 @@ "start": 229, "end": 232 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -622,9 +608,7 @@ "start": 237, "end": 240 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json index 4ac3c9714a43..a8d226bac82a 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json index eeeaadbe3be2..d1a61de68485 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgs2.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -420,9 +414,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -450,9 +442,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -614,9 +604,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -647,9 +635,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -744,9 +730,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -777,9 +761,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -1037,9 +1019,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "async": false, @@ -1203,9 +1183,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -1236,9 +1214,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json index 84908cc581d3..008efb4d9b52 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints.json @@ -37,9 +37,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -217,9 +211,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json index 2ebed206eaee..262baf3a4b64 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints2.json @@ -37,9 +37,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -494,9 +490,7 @@ "start": 282, "end": 285 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NewExpression", @@ -527,9 +521,7 @@ "start": 299, "end": 302 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NewExpression", @@ -624,9 +616,7 @@ "start": 335, "end": 338 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NewExpression", @@ -657,9 +647,7 @@ "start": 355, "end": 358 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json index fdd92c74e827..b2a88ceb775d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints3.json @@ -37,9 +37,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -572,9 +566,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -605,9 +597,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -1021,9 +1011,7 @@ "start": 504, "end": 505 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -1054,9 +1042,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", @@ -1151,9 +1137,7 @@ "start": 564, "end": 565 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NewExpression", @@ -1184,9 +1168,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json index cf9b5cbca1ef..9914fb8b90f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json @@ -37,9 +37,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -785,9 +779,7 @@ "start": 346, "end": 347 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -807,9 +799,7 @@ "start": 353, "end": 356 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json index 19b82d9987b2..2e424ae5c519 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints5.json @@ -37,9 +37,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json index a62fef54df4a..b08e861cf729 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json @@ -369,9 +369,7 @@ "start": 107, "end": 113 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -464,9 +462,7 @@ "start": 140, "end": 146 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "property": { @@ -545,9 +541,7 @@ "start": 174, "end": 180 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "property": { @@ -606,9 +600,7 @@ "start": 199, "end": 205 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -723,9 +715,7 @@ "start": 245, "end": 251 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "property": { @@ -790,9 +780,7 @@ "start": 266, "end": 272 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "property": { @@ -827,9 +815,7 @@ "start": 280, "end": 281 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -900,9 +886,7 @@ "start": 307, "end": 313 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "property": { @@ -961,9 +945,7 @@ "start": 328, "end": 334 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -1036,9 +1018,7 @@ "start": 352, "end": 358 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -1111,9 +1091,7 @@ "start": 380, "end": 386 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -1186,9 +1164,7 @@ "start": 404, "end": 410 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -1259,9 +1235,7 @@ "start": 436, "end": 442 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -1334,9 +1308,7 @@ "start": 460, "end": 466 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { @@ -1407,9 +1379,7 @@ "start": 482, "end": 488 }, - "ctxt": 0, - "value": "tuple1", - "optional": false + "value": "tuple1" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericClassExpressionInFunction.json b/crates/swc_ecma_parser/tests/tsc/genericClassExpressionInFunction.json index 3cdced945a13..5e33b633b14e 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericClassExpressionInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/genericClassExpressionInFunction.json @@ -37,9 +37,7 @@ "start": 18, "end": 28 }, - "ctxt": 0, - "value": "genericVar", - "optional": false + "value": "genericVar" }, "value": null, "typeAnnotation": { @@ -269,9 +267,7 @@ "start": 141, "end": 145 }, - "ctxt": 0, - "value": "anon", - "optional": false + "value": "anon" }, "value": { "type": "ClassExpression", @@ -566,9 +562,7 @@ "start": 299, "end": 304 }, - "ctxt": 0, - "value": "namae", - "optional": false + "value": "namae" }, "value": null, "typeAnnotation": { @@ -670,9 +664,7 @@ "start": 362, "end": 366 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -755,9 +747,7 @@ "start": 350, "end": 354 }, - "ctxt": 0, - "value": "anon", - "optional": false + "value": "anon" } } }, @@ -865,9 +855,7 @@ "start": 446, "end": 449 }, - "ctxt": 0, - "value": "nom", - "optional": false + "value": "nom" }, "value": null, "typeAnnotation": { @@ -1115,9 +1103,7 @@ "start": 514, "end": 524 }, - "ctxt": 0, - "value": "genericVar", - "optional": false + "value": "genericVar" } }, "right": { @@ -1166,9 +1152,7 @@ "start": 533, "end": 543 }, - "ctxt": 0, - "value": "genericVar", - "optional": false + "value": "genericVar" } }, "right": { @@ -1217,9 +1201,7 @@ "start": 552, "end": 562 }, - "ctxt": 0, - "value": "genericVar", - "optional": false + "value": "genericVar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json b/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json index 3fa10aa9f527..a6b4c8ca52e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json @@ -62,9 +62,7 @@ "start": 205, "end": 208 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -420,9 +418,7 @@ "start": 318, "end": 321 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -580,9 +576,7 @@ "start": 361, "end": 364 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -756,9 +750,7 @@ "start": 417, "end": 420 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -838,9 +830,7 @@ "start": 464, "end": 467 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1166,9 +1156,7 @@ "start": 578, "end": 581 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1326,9 +1314,7 @@ "start": 626, "end": 629 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1436,9 +1422,7 @@ "start": 701, "end": 705 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1867,9 +1851,7 @@ "start": 817, "end": 821 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -2066,9 +2048,7 @@ "start": 953, "end": 957 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -2184,9 +2164,7 @@ "start": 998, "end": 1002 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -2356,9 +2334,7 @@ "start": 1080, "end": 1084 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2808,9 +2784,7 @@ "start": 1207, "end": 1211 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -2992,9 +2966,7 @@ "start": 1263, "end": 1267 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -3125,9 +3097,7 @@ "start": 1344, "end": 1348 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -3744,9 +3714,7 @@ "start": 1519, "end": 1523 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -3886,9 +3854,7 @@ "start": 1571, "end": 1575 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -4004,9 +3970,7 @@ "start": 1623, "end": 1627 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -4158,9 +4122,7 @@ "start": 1681, "end": 1685 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ @@ -4312,9 +4274,7 @@ "start": 1737, "end": 1741 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json b/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json index 159a8d425d87..6b073057ac69 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/genericClassWithObjectTypeArgsAndConstraints.json @@ -37,9 +37,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -217,9 +211,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -351,9 +343,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1103,9 +1093,7 @@ "start": 485, "end": 488 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1198,9 +1186,7 @@ "start": 513, "end": 516 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1269,9 +1255,7 @@ "start": 563, "end": 567 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1754,9 +1738,7 @@ "start": 696, "end": 700 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -1849,9 +1831,7 @@ "start": 726, "end": 730 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -2613,9 +2593,7 @@ "start": 976, "end": 979 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2708,9 +2686,7 @@ "start": 1004, "end": 1007 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3177,9 +3153,7 @@ "start": 1140, "end": 1144 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ @@ -3272,9 +3246,7 @@ "start": 1170, "end": 1174 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json index 50b5aed03d67..3aaa54711a51 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes1.json @@ -4245,9 +4245,7 @@ "start": 1074, "end": 1077 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -4526,9 +4524,7 @@ "start": 1145, "end": 1151 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -4751,9 +4747,7 @@ "start": 1212, "end": 1218 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -5601,9 +5595,7 @@ "start": 1455, "end": 1461 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -5878,9 +5870,7 @@ "start": 1540, "end": 1545 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json index f7c51fae376c..bb04b15e0b1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json @@ -1454,9 +1454,7 @@ "start": 770, "end": 777 }, - "ctxt": 0, - "value": "context", - "optional": false + "value": "context" }, "value": { "type": "ObjectExpression", @@ -1473,9 +1471,7 @@ "start": 785, "end": 790 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" }, "value": { "type": "NumericLiteral", @@ -1498,9 +1494,7 @@ "start": 802, "end": 807 }, - "ctxt": 0, - "value": "entry", - "optional": false + "value": "entry" }, "value": { "type": "CallExpression", @@ -1537,9 +1531,7 @@ "start": 822, "end": 827 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" }, "value": { "type": "ArrowFunctionExpression", @@ -1641,9 +1633,7 @@ "start": 863, "end": 868 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json index 94b667fccee3..1dc786f64d31 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json @@ -1427,9 +1427,7 @@ "start": 762, "end": 769 }, - "ctxt": 0, - "value": "context", - "optional": false + "value": "context" }, "value": { "type": "ObjectExpression", @@ -1446,9 +1444,7 @@ "start": 777, "end": 782 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" }, "value": { "type": "NumericLiteral", @@ -1471,9 +1467,7 @@ "start": 794, "end": 799 }, - "ctxt": 0, - "value": "entry", - "optional": false + "value": "entry" }, "value": { "type": "CallExpression", @@ -1510,9 +1504,7 @@ "start": 814, "end": 819 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" }, "value": { "type": "ArrowFunctionExpression", @@ -1614,9 +1606,7 @@ "start": 855, "end": 860 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json b/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json index 689c7e8b7316..3b8c9a052477 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/genericFunctionParameters.json @@ -1296,9 +1296,7 @@ "start": 415, "end": 419 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json b/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json index 264500d1c66b..d33f8b0e7929 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json +++ b/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json @@ -212,9 +212,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -300,9 +298,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -324,9 +320,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json index fdcd8d12418f..61a88360c9dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json @@ -10956,9 +10956,7 @@ "start": 5037, "end": 5041 }, - "ctxt": 0, - "value": "emit", - "optional": false + "value": "emit" } }, "arguments": [ @@ -11037,9 +11035,7 @@ "start": 5070, "end": 5074 }, - "ctxt": 0, - "value": "emit", - "optional": false + "value": "emit" } }, "arguments": [ @@ -11118,9 +11114,7 @@ "start": 5101, "end": 5105 }, - "ctxt": 0, - "value": "emit", - "optional": false + "value": "emit" } }, "arguments": [ @@ -11187,9 +11181,7 @@ "start": 5130, "end": 5134 }, - "ctxt": 0, - "value": "emit", - "optional": false + "value": "emit" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/genericSetterInClassType.json b/crates/swc_ecma_parser/tests/tsc/genericSetterInClassType.json index 1f0021e408e7..90228a26b4aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericSetterInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/genericSetterInClassType.json @@ -62,9 +62,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -163,9 +161,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -355,9 +351,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -382,9 +376,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -470,9 +462,7 @@ "start": 250, "end": 255 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "function": { "params": [], @@ -545,9 +535,7 @@ "start": 319, "end": 324 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "function": { "params": [ @@ -744,9 +732,7 @@ "start": 410, "end": 415 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericSetterInClassTypeJsDoc.json b/crates/swc_ecma_parser/tests/tsc/genericSetterInClassTypeJsDoc.json index 7089055b839c..f0855dec9ae5 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericSetterInClassTypeJsDoc.json +++ b/crates/swc_ecma_parser/tests/tsc/genericSetterInClassTypeJsDoc.json @@ -63,9 +63,7 @@ "start": 280, "end": 291 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -160,9 +158,7 @@ "start": 384, "end": 389 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "function": { "params": [], @@ -235,9 +231,7 @@ "start": 437, "end": 442 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "function": { "params": [ @@ -401,9 +395,7 @@ "start": 501, "end": 506 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json b/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json index 33965017bfd9..cdcbcc3eb309 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json @@ -314,9 +314,7 @@ "start": 87, "end": 91 }, - "ctxt": 0, - "value": "left", - "optional": false + "value": "left" }, "value": { "type": "ObjectExpression", @@ -333,9 +331,7 @@ "start": 103, "end": 107 }, - "ctxt": 0, - "value": "left", - "optional": false + "value": "left" }, "value": { "type": "NumericLiteral", @@ -355,9 +351,7 @@ "start": 120, "end": 125 }, - "ctxt": 0, - "value": "right", - "optional": false + "value": "right" }, "value": { "type": "ObjectExpression", @@ -374,9 +368,7 @@ "start": 141, "end": 145 }, - "ctxt": 0, - "value": "left", - "optional": false + "value": "left" }, "value": { "type": "NumericLiteral", @@ -396,9 +388,7 @@ "start": 162, "end": 167 }, - "ctxt": 0, - "value": "right", - "optional": false + "value": "right" }, "value": { "type": "NumericLiteral", @@ -424,9 +414,7 @@ "start": 193, "end": 198 }, - "ctxt": 0, - "value": "right", - "optional": false + "value": "right" }, "value": { "type": "NumericLiteral", @@ -1318,9 +1306,7 @@ "start": 467, "end": 468 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1375,9 +1361,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -1394,9 +1378,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1561,9 +1543,7 @@ "start": 543, "end": 544 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1618,9 +1598,7 @@ "start": 558, "end": 559 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -1637,9 +1615,7 @@ "start": 563, "end": 564 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2350,9 +2326,7 @@ "start": 828, "end": 829 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2401,9 +2375,7 @@ "start": 837, "end": 838 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -2452,9 +2424,7 @@ "start": 846, "end": 849 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json index 07233eefc540..0c39d982b118 100644 --- a/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json @@ -37,9 +37,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [ @@ -116,9 +114,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -178,9 +174,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" }, "function": { "params": [ @@ -243,9 +237,7 @@ "start": 466, "end": 467 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" }, "function": { "params": [], @@ -304,9 +296,7 @@ "start": 508, "end": 509 }, - "ctxt": 0, - "value": "W", - "optional": false + "value": "W" }, "function": { "params": [ @@ -369,9 +359,7 @@ "start": 525, "end": 526 }, - "ctxt": 0, - "value": "W", - "optional": false + "value": "W" }, "function": { "params": [], @@ -444,9 +432,7 @@ "start": 576, "end": 577 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" }, "function": { "params": [ @@ -523,9 +509,7 @@ "start": 601, "end": 602 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json b/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json index 53230dad4570..8f49fb7ade13 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json @@ -40,9 +40,7 @@ "start": 87, "end": 91 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -84,9 +82,7 @@ "start": 104, "end": 111 }, - "ctxt": 0, - "value": "console", - "optional": false + "value": "console" } } }, @@ -125,9 +121,7 @@ "start": 205, "end": 212 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json b/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json index d91d46466dee..07fc40f95cf7 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json @@ -444,8 +444,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 323, + "end": 353 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 323, + "end": 349 + }, "left": { "type": "Identifier", "span": { @@ -462,9 +470,7 @@ "start": 334, "end": 349 }, - "ctxt": 0, - "value": "namespaceModule", - "optional": false + "value": "namespaceModule" } }, "right": { @@ -473,9 +479,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "typ", - "optional": false + "value": "typ" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json b/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json index a3e2e1845ec3..40b7663f67a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json @@ -153,9 +153,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -187,9 +185,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -221,9 +217,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -375,9 +369,7 @@ "start": 299, "end": 311 }, - "ctxt": 0, - "value": "Float64Array", - "optional": false + "value": "Float64Array" } } }, @@ -409,9 +401,7 @@ "start": 329, "end": 337 }, - "ctxt": 0, - "value": "Infinity", - "optional": false + "value": "Infinity" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/globalThisPropertyAssignment.json index d4205c35de7b..0d921479bbd4 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisPropertyAssignment.json @@ -37,9 +37,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -128,9 +126,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -179,9 +175,7 @@ "start": 230, "end": 235 }, - "ctxt": 0, - "value": "alpha", - "optional": false + "value": "alpha" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisReadonlyProperties.json b/crates/swc_ecma_parser/tests/tsc/globalThisReadonlyProperties.json index b49ec868f7b5..b630a1824bcd 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisReadonlyProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisReadonlyProperties.json @@ -40,9 +40,7 @@ "start": 12, "end": 22 }, - "ctxt": 0, - "value": "globalThis", - "optional": false + "value": "globalThis" } }, "right": { @@ -186,9 +184,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -237,9 +233,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json b/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json index d70121f4c901..dd71de47180c 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json @@ -116,9 +116,7 @@ "start": 85, "end": 87 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } } }, @@ -147,9 +145,7 @@ "start": 136, "end": 138 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } } }, @@ -181,9 +177,7 @@ "start": 150, "end": 152 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json b/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json index 0673bd9f3ca0..7524289950e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json @@ -116,9 +116,7 @@ "start": 108, "end": 110 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } } }, @@ -147,9 +145,7 @@ "start": 116, "end": 118 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } } }, @@ -181,9 +177,7 @@ "start": 130, "end": 132 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisVarDeclaration.json b/crates/swc_ecma_parser/tests/tsc/globalThisVarDeclaration.json index e158a62d95d4..dc0de05056e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisVarDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisVarDeclaration.json @@ -70,9 +70,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -101,9 +99,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -135,9 +131,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -169,9 +163,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -203,9 +195,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -237,9 +227,7 @@ "start": 271, "end": 272 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -271,9 +259,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -305,9 +291,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -339,9 +323,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -373,9 +355,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -444,9 +424,7 @@ "start": 350, "end": 351 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -475,9 +453,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -509,9 +485,7 @@ "start": 372, "end": 373 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -543,9 +517,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -577,9 +549,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -611,9 +581,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -645,9 +613,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -679,9 +645,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -713,9 +677,7 @@ "start": 478, "end": 479 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -747,9 +709,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json b/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json index cb67c6d8b65c..0f7d7acce898 100644 --- a/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json @@ -546,9 +546,7 @@ "start": 319, "end": 322 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -568,9 +566,7 @@ "start": 327, "end": 330 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -602,9 +598,7 @@ "start": 340, "end": 343 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -676,9 +670,7 @@ "start": 381, "end": 384 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -698,9 +690,7 @@ "start": 389, "end": 392 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -732,9 +722,7 @@ "start": 402, "end": 405 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -1282,9 +1270,7 @@ "start": 669, "end": 672 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1351,9 +1337,7 @@ "start": 713, "end": 716 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -1429,9 +1413,7 @@ "start": 758, "end": 761 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -1719,9 +1701,7 @@ "start": 868, "end": 871 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -1742,9 +1722,7 @@ "start": 879, "end": 885 }, - "ctxt": 0, - "value": "basear", - "optional": false + "value": "basear" }, "value": { "type": "Identifier", @@ -1777,9 +1755,7 @@ "start": 900, "end": 903 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -1852,9 +1828,7 @@ "start": 946, "end": 949 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -1875,9 +1849,7 @@ "start": 957, "end": 963 }, - "ctxt": 0, - "value": "basear", - "optional": false + "value": "basear" }, "value": { "type": "Identifier", @@ -1910,9 +1882,7 @@ "start": 978, "end": 981 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json b/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json index bbe9e393a0c7..78630b2bc2bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json @@ -101,9 +101,7 @@ "start": 93, "end": 95 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -143,9 +141,7 @@ "start": 109, "end": 113 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -231,9 +227,7 @@ "start": 151, "end": 156 }, - "ctxt": 0, - "value": "valid", - "optional": false + "value": "valid" }, "value": null, "typeAnnotation": { @@ -309,9 +303,7 @@ "start": 186, "end": 192 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -361,9 +353,7 @@ "start": 201, "end": 208 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -439,9 +429,7 @@ "start": 220, "end": 227 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -847,9 +835,7 @@ "start": 377, "end": 381 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -988,9 +974,7 @@ "start": 451, "end": 459 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1085,9 +1069,7 @@ "start": 508, "end": 510 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -1226,9 +1208,7 @@ "start": 580, "end": 588 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2101,9 +2081,7 @@ "start": 1142, "end": 1143 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2123,9 +2101,7 @@ "start": 1148, "end": 1149 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2171,9 +2147,7 @@ "start": 1171, "end": 1172 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2193,9 +2167,7 @@ "start": 1177, "end": 1178 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -2240,9 +2212,7 @@ "start": 1205, "end": 1206 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2262,9 +2232,7 @@ "start": 1211, "end": 1212 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -3951,9 +3919,7 @@ "start": 1993, "end": 1994 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3973,9 +3939,7 @@ "start": 1999, "end": 2000 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates.json b/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates.json index e8c2b656978c..baedb2e2f987 100644 --- a/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -234,9 +232,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -322,9 +318,7 @@ "start": 212, "end": 213 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -364,9 +358,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -452,9 +444,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -494,9 +484,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates2.json b/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates2.json index 3743f0d9c63e..3115a192eee4 100644 --- a/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates2.json +++ b/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithPrivates2.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -286,9 +282,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -328,9 +322,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -425,9 +417,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -467,9 +457,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -589,9 +577,7 @@ "start": 387, "end": 388 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -658,9 +644,7 @@ "start": 441, "end": 442 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -819,9 +803,7 @@ "start": 570, "end": 571 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -861,9 +843,7 @@ "start": 589, "end": 590 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -958,9 +938,7 @@ "start": 666, "end": 667 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1000,9 +978,7 @@ "start": 685, "end": 686 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1097,9 +1073,7 @@ "start": 770, "end": 771 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1139,9 +1113,7 @@ "start": 789, "end": 790 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1264,9 +1236,7 @@ "start": 879, "end": 880 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1333,9 +1303,7 @@ "start": 941, "end": 942 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1494,9 +1462,7 @@ "start": 1073, "end": 1074 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -1664,9 +1630,7 @@ "start": 1122, "end": 1123 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -1722,9 +1686,7 @@ "start": 1140, "end": 1141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1780,9 +1742,7 @@ "start": 1167, "end": 1168 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1821,9 +1781,7 @@ "start": 1239, "end": 1240 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1863,9 +1821,7 @@ "start": 1258, "end": 1259 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -1960,9 +1916,7 @@ "start": 1343, "end": 1344 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2002,9 +1956,7 @@ "start": 1362, "end": 1363 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithProtecteds.json b/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithProtecteds.json index e7323e00e4dd..7722c208f9cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithProtecteds.json +++ b/crates/swc_ecma_parser/tests/tsc/implementingAnInterfaceExtendingClassWithProtecteds.json @@ -37,9 +37,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -234,9 +232,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -322,9 +318,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -364,9 +358,7 @@ "start": 229, "end": 230 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -452,9 +444,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -494,9 +484,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -636,9 +624,7 @@ "start": 432, "end": 433 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -733,9 +719,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -830,9 +814,7 @@ "start": 544, "end": 545 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -872,9 +854,7 @@ "start": 559, "end": 560 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/implementsClause.json b/crates/swc_ecma_parser/tests/tsc/implementsClause.json index e7afef4b1d43..3a67975cf442 100644 --- a/crates/swc_ecma_parser/tests/tsc/implementsClause.json +++ b/crates/swc_ecma_parser/tests/tsc/implementsClause.json @@ -238,9 +238,7 @@ "start": 262, "end": 271 }, - "ctxt": 0, - "value": "Component", - "optional": false + "value": "Component" } }, "typeArguments": null @@ -306,9 +304,7 @@ "start": 310, "end": 315 }, - "ctxt": 0, - "value": "types", - "optional": false + "value": "types" } }, "property": { @@ -317,9 +313,7 @@ "start": 316, "end": 325 }, - "ctxt": 0, - "value": "Component", - "optional": false + "value": "Component" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json index 87b6ea615533..366004f557fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/importAliasIdentifiers.json @@ -69,9 +69,7 @@ "start": 51, "end": 62 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -238,6 +236,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 144, + "end": 155 + }, "left": { "type": "Identifier", "span": { @@ -254,9 +256,7 @@ "start": 150, "end": 155 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -307,6 +307,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 164, + "end": 177 + }, "left": { "type": "Identifier", "span": { @@ -323,9 +327,7 @@ "start": 172, "end": 177 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -486,9 +488,7 @@ "start": 234, "end": 238 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -720,9 +720,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -742,9 +740,7 @@ "start": 364, "end": 365 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -833,6 +829,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 409, + "end": 422 + }, "left": { "type": "Identifier", "span": { @@ -849,9 +849,7 @@ "start": 417, "end": 422 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -902,6 +900,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 431, + "end": 444 + }, "left": { "type": "Identifier", "span": { @@ -918,9 +920,7 @@ "start": 439, "end": 444 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1098,9 +1098,7 @@ "start": 516, "end": 517 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1120,9 +1118,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1341,9 +1337,7 @@ "start": 640, "end": 641 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1363,9 +1357,7 @@ "start": 646, "end": 647 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1454,6 +1446,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 691, + "end": 704 + }, "left": { "type": "Identifier", "span": { @@ -1470,9 +1466,7 @@ "start": 699, "end": 704 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1523,6 +1517,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 713, + "end": 726 + }, "left": { "type": "Identifier", "span": { @@ -1539,9 +1537,7 @@ "start": 721, "end": 726 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json b/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json index ab8e12179797..35719ad6aa5c 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json +++ b/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json @@ -37,9 +37,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -129,9 +127,7 @@ "start": 148, "end": 155 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -225,9 +221,7 @@ "start": 213, "end": 222 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -236,9 +230,7 @@ "start": 223, "end": 226 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -293,9 +285,7 @@ "start": 233, "end": 242 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -304,9 +294,7 @@ "start": 243, "end": 247 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "right": { @@ -359,9 +347,7 @@ "start": 268, "end": 273 }, - "ctxt": 0, - "value": "_func", - "optional": false + "value": "_func" } }, "right": { @@ -419,9 +405,7 @@ "start": 288, "end": 302 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -449,9 +433,7 @@ "start": 305, "end": 314 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -484,9 +466,7 @@ "start": 325, "end": 330 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -543,9 +523,7 @@ "start": 346, "end": 349 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -587,9 +565,7 @@ "start": 358, "end": 361 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -638,9 +614,7 @@ "start": 370, "end": 374 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -685,9 +659,7 @@ "start": 385, "end": 388 }, - "ctxt": 0, - "value": "def", - "optional": false + "value": "def" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importAssertion2.json b/crates/swc_ecma_parser/tests/tsc/importAssertion2.json index 1a84449d664e..1f1c156cb920 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAssertion2.json +++ b/crates/swc_ecma_parser/tests/tsc/importAssertion2.json @@ -131,9 +131,7 @@ "start": 189, "end": 193 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -219,9 +217,7 @@ "start": 240, "end": 244 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -267,9 +263,7 @@ "start": 284, "end": 288 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -334,9 +328,7 @@ "start": 334, "end": 338 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -505,9 +497,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -527,9 +517,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -549,9 +537,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importAssertion3.json b/crates/swc_ecma_parser/tests/tsc/importAssertion3.json index 9b231d345929..db3f8e885ed3 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAssertion3.json +++ b/crates/swc_ecma_parser/tests/tsc/importAssertion3.json @@ -72,9 +72,7 @@ "start": 167, "end": 171 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -141,9 +139,7 @@ "start": 220, "end": 224 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -210,9 +206,7 @@ "start": 294, "end": 298 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -278,9 +272,7 @@ "start": 350, "end": 354 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes2.json b/crates/swc_ecma_parser/tests/tsc/importAttributes2.json index c997adf14ba2..0787403a5265 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes2.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes2.json @@ -131,9 +131,7 @@ "start": 187, "end": 191 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -219,9 +217,7 @@ "start": 236, "end": 240 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -267,9 +263,7 @@ "start": 278, "end": 282 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -334,9 +328,7 @@ "start": 326, "end": 330 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -505,9 +497,7 @@ "start": 440, "end": 441 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -527,9 +517,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -549,9 +537,7 @@ "start": 456, "end": 457 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes3.json b/crates/swc_ecma_parser/tests/tsc/importAttributes3.json index 5d094c42313f..2ae79cfba829 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes3.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes3.json @@ -72,9 +72,7 @@ "start": 165, "end": 169 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -141,9 +139,7 @@ "start": 216, "end": 220 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -210,9 +206,7 @@ "start": 288, "end": 292 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -278,9 +272,7 @@ "start": 342, "end": 346 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes6.json b/crates/swc_ecma_parser/tests/tsc/importAttributes6.json index 16f21649a24f..2c2c8ade9352 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes6.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes6.json @@ -55,9 +55,7 @@ "start": 87, "end": 92 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "NumericLiteral", @@ -123,9 +121,7 @@ "start": 142, "end": 147 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "TemplateLiteral", @@ -202,9 +198,7 @@ "start": 199, "end": 204 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "RegExpLiteral", @@ -270,9 +264,7 @@ "start": 257, "end": 262 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "ArrayExpression", @@ -350,9 +342,7 @@ "start": 316, "end": 321 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "ObjectExpression", @@ -369,9 +359,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -440,9 +428,7 @@ "start": 378, "end": 382 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -462,9 +448,7 @@ "start": 392, "end": 397 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "CallExpression", @@ -494,9 +478,7 @@ "start": 402, "end": 410 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes8.json b/crates/swc_ecma_parser/tests/tsc/importAttributes8.json index 97815db3c9c3..7855f57d4660 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes8.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes8.json @@ -26,9 +26,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -48,9 +46,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -115,9 +111,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json index a3e738c4719d..7901f33343ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json @@ -198,9 +198,7 @@ "start": 160, "end": 164 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 191, "end": 194 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json index 27c9feca98c9..ffce9c6e4bf2 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json @@ -43,9 +43,7 @@ "start": 79, "end": 84 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -224,9 +222,7 @@ "start": 166, "end": 170 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -316,9 +312,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -363,9 +357,7 @@ "start": 223, "end": 228 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json index 4e6ca007d6f6..ec28ead7060c 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json @@ -43,9 +43,7 @@ "start": 79, "end": 84 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -206,9 +204,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "isAbstract": false, @@ -302,9 +298,7 @@ "start": 225, "end": 230 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json index c3579d4a4f73..51a397df3841 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json @@ -43,9 +43,7 @@ "start": 95, "end": 100 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -295,9 +293,7 @@ "start": 298, "end": 306 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -353,9 +349,7 @@ "start": 328, "end": 334 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -473,9 +467,7 @@ "start": 394, "end": 402 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -484,9 +476,7 @@ "start": 403, "end": 407 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -555,9 +545,7 @@ "start": 438, "end": 441 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -592,9 +580,7 @@ "start": 447, "end": 450 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -678,9 +664,7 @@ "start": 501, "end": 504 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -805,9 +789,7 @@ "start": 574, "end": 577 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -842,9 +824,7 @@ "start": 582, "end": 588 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json index 8f5d833b4e68..f1d73eb970c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json @@ -43,9 +43,7 @@ "start": 106, "end": 111 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json index c8145e1e58eb..506843f42656 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json @@ -43,9 +43,7 @@ "start": 79, "end": 84 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json index 048d60940adf..6c3f5de115e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json @@ -154,9 +154,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 387, "end": 388 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json index 0a37081e10c6..c5b46b4aec26 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json @@ -154,9 +154,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 394, "end": 395 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json index cf2d3ce8341c..a7690a712aec 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json @@ -154,9 +154,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json index 32bda18e982f..8ce2502b3e15 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json @@ -154,9 +154,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json index 0a37081e10c6..c5b46b4aec26 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json @@ -154,9 +154,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 394, "end": 395 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json index b9a414ff7ed2..dfb39dd833fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json @@ -154,9 +154,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 367, "end": 368 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json index 2323560ef5e7..52d6d8b989f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json @@ -154,9 +154,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 372, "end": 373 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json index 2d7ce414249f..22fe327ada2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json @@ -154,9 +154,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json index b9a414ff7ed2..dfb39dd833fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json @@ -154,9 +154,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", @@ -455,9 +451,7 @@ "start": 367, "end": 368 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ObjectExpression", @@ -474,9 +468,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json index 013e90ecb568..8c48c129ef0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json @@ -198,9 +198,7 @@ "start": 167, "end": 171 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 306, "end": 312 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 389, "end": 395 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json index 5e10b3d85669..187e87f139c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json @@ -198,9 +198,7 @@ "start": 172, "end": 176 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 203, "end": 206 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 311, "end": 317 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 394, "end": 400 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json index 2f782ca26098..3c09ebbb458f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json @@ -198,9 +198,7 @@ "start": 170, "end": 174 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 201, "end": 204 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 309, "end": 315 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 392, "end": 398 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json index 013e90ecb568..8c48c129ef0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json @@ -198,9 +198,7 @@ "start": 167, "end": 171 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 306, "end": 312 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 389, "end": 395 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json index e612fda79bc4..136e94527b09 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json @@ -198,9 +198,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 293, "end": 299 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 376, "end": 382 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json index 29bc142afb0a..92ff43e1c0a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json @@ -198,9 +198,7 @@ "start": 159, "end": 163 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 190, "end": 193 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 298, "end": 304 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 381, "end": 387 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json index 062b8915ae2b..3d5ff57d2eac 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json @@ -198,9 +198,7 @@ "start": 157, "end": 161 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 296, "end": 302 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 379, "end": 385 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json index e612fda79bc4..136e94527b09 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json @@ -198,9 +198,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -488,9 +484,7 @@ "start": 293, "end": 299 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -629,9 +623,7 @@ "start": 376, "end": 382 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json index fc734f090400..2f1e8324315b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json @@ -198,9 +198,7 @@ "start": 160, "end": 164 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 191, "end": 194 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json index 45cb7227066f..3a457c348955 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json @@ -198,9 +198,7 @@ "start": 157, "end": 161 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json index a167b991dd3d..8a75cb5ad3ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json @@ -43,9 +43,7 @@ "start": 76, "end": 81 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -224,9 +222,7 @@ "start": 247, "end": 251 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -316,9 +312,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -363,9 +357,7 @@ "start": 304, "end": 309 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json index 8bb88c7c14c9..95073823eae1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json @@ -43,9 +43,7 @@ "start": 76, "end": 81 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -206,9 +204,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "isAbstract": false, @@ -302,9 +298,7 @@ "start": 222, "end": 227 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json index a7c0ee676711..4117fb2349ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json @@ -43,9 +43,7 @@ "start": 112, "end": 117 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -295,9 +293,7 @@ "start": 315, "end": 323 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -353,9 +349,7 @@ "start": 345, "end": 351 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -473,9 +467,7 @@ "start": 410, "end": 418 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -484,9 +476,7 @@ "start": 419, "end": 423 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -555,9 +545,7 @@ "start": 454, "end": 457 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -592,9 +580,7 @@ "start": 463, "end": 466 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -678,9 +664,7 @@ "start": 517, "end": 520 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -805,9 +789,7 @@ "start": 590, "end": 593 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -842,9 +824,7 @@ "start": 598, "end": 604 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], @@ -926,9 +906,7 @@ "start": 659, "end": 667 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -984,9 +962,7 @@ "start": 689, "end": 695 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -1104,9 +1080,7 @@ "start": 754, "end": 762 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -1115,9 +1089,7 @@ "start": 763, "end": 767 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -1186,9 +1158,7 @@ "start": 798, "end": 801 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1223,9 +1193,7 @@ "start": 807, "end": 810 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1309,9 +1277,7 @@ "start": 861, "end": 864 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1436,9 +1402,7 @@ "start": 934, "end": 937 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1473,9 +1437,7 @@ "start": 942, "end": 948 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json index 3072d38e15b1..875494cee29b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json @@ -198,9 +198,7 @@ "start": 162, "end": 166 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json index b971681cb373..d59ed0425b7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json @@ -388,9 +388,7 @@ "start": 325, "end": 331 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], @@ -436,9 +434,7 @@ "start": 354, "end": 357 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json index b28cffec7c18..f72715063e34 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json @@ -43,9 +43,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -224,9 +222,7 @@ "start": 252, "end": 256 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -316,9 +312,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -363,9 +357,7 @@ "start": 309, "end": 314 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json index fe72d3f0d57c..4b8e417fae01 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json @@ -43,9 +43,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -206,9 +204,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "isAbstract": false, @@ -302,9 +298,7 @@ "start": 227, "end": 232 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json index 19f3308ee153..d8f10a655b1f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json @@ -43,9 +43,7 @@ "start": 117, "end": 122 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -295,9 +293,7 @@ "start": 320, "end": 328 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -353,9 +349,7 @@ "start": 350, "end": 356 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -473,9 +467,7 @@ "start": 416, "end": 424 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -484,9 +476,7 @@ "start": 425, "end": 429 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -555,9 +545,7 @@ "start": 460, "end": 463 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -592,9 +580,7 @@ "start": 469, "end": 472 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -678,9 +664,7 @@ "start": 523, "end": 526 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -805,9 +789,7 @@ "start": 596, "end": 599 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -842,9 +824,7 @@ "start": 604, "end": 610 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], @@ -926,9 +906,7 @@ "start": 665, "end": 673 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -984,9 +962,7 @@ "start": 695, "end": 701 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -1104,9 +1080,7 @@ "start": 760, "end": 768 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -1115,9 +1089,7 @@ "start": 769, "end": 773 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -1186,9 +1158,7 @@ "start": 804, "end": 807 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1223,9 +1193,7 @@ "start": 813, "end": 816 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1309,9 +1277,7 @@ "start": 867, "end": 870 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1436,9 +1402,7 @@ "start": 940, "end": 943 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1473,9 +1437,7 @@ "start": 948, "end": 954 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json index 69c0c025cf21..55c5b7cbe7b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json @@ -198,9 +198,7 @@ "start": 160, "end": 164 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 191, "end": 194 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json index b38db721c7d5..1e7440bc11b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json @@ -43,9 +43,7 @@ "start": 79, "end": 84 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -224,9 +222,7 @@ "start": 250, "end": 254 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -316,9 +312,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -363,9 +357,7 @@ "start": 307, "end": 312 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json index 4e6ca007d6f6..ec28ead7060c 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json @@ -43,9 +43,7 @@ "start": 79, "end": 84 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -206,9 +204,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "isAbstract": false, @@ -302,9 +298,7 @@ "start": 225, "end": 230 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json index 46738f9d9707..4cabc524e053 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json @@ -43,9 +43,7 @@ "start": 115, "end": 120 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -295,9 +293,7 @@ "start": 318, "end": 326 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -353,9 +349,7 @@ "start": 348, "end": 354 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -473,9 +467,7 @@ "start": 413, "end": 421 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -484,9 +476,7 @@ "start": 422, "end": 426 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -555,9 +545,7 @@ "start": 457, "end": 460 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -592,9 +580,7 @@ "start": 466, "end": 469 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -678,9 +664,7 @@ "start": 520, "end": 523 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -805,9 +789,7 @@ "start": 593, "end": 596 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -842,9 +824,7 @@ "start": 601, "end": 607 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], @@ -926,9 +906,7 @@ "start": 662, "end": 670 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -984,9 +962,7 @@ "start": 692, "end": 698 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -1104,9 +1080,7 @@ "start": 757, "end": 765 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -1115,9 +1089,7 @@ "start": 766, "end": 770 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -1186,9 +1158,7 @@ "start": 801, "end": 804 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1223,9 +1193,7 @@ "start": 810, "end": 813 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1309,9 +1277,7 @@ "start": 864, "end": 867 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1436,9 +1402,7 @@ "start": 937, "end": 940 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1473,9 +1437,7 @@ "start": 945, "end": 951 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json index 45cb7227066f..3a457c348955 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json @@ -198,9 +198,7 @@ "start": 157, "end": 161 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -269,9 +267,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json index a167b991dd3d..8a75cb5ad3ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json @@ -43,9 +43,7 @@ "start": 76, "end": 81 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -224,9 +222,7 @@ "start": 247, "end": 251 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -316,9 +312,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "arguments": [], @@ -363,9 +357,7 @@ "start": 304, "end": 309 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json index 8bb88c7c14c9..95073823eae1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json @@ -43,9 +43,7 @@ "start": 76, "end": 81 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -206,9 +204,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "isAbstract": false, @@ -302,9 +298,7 @@ "start": 222, "end": 227 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json index efaaa52f4422..e51b1b95f5b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json @@ -43,9 +43,7 @@ "start": 111, "end": 116 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -295,9 +293,7 @@ "start": 314, "end": 322 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -353,9 +349,7 @@ "start": 344, "end": 350 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -473,9 +467,7 @@ "start": 409, "end": 417 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -484,9 +476,7 @@ "start": 418, "end": 422 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -555,9 +545,7 @@ "start": 453, "end": 456 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -592,9 +580,7 @@ "start": 462, "end": 465 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -678,9 +664,7 @@ "start": 516, "end": 519 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -805,9 +789,7 @@ "start": 589, "end": 592 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -842,9 +824,7 @@ "start": 597, "end": 603 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], @@ -926,9 +906,7 @@ "start": 658, "end": 666 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -984,9 +962,7 @@ "start": 688, "end": 694 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -1104,9 +1080,7 @@ "start": 753, "end": 761 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -1115,9 +1089,7 @@ "start": 762, "end": 766 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -1186,9 +1158,7 @@ "start": 797, "end": 800 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1223,9 +1193,7 @@ "start": 806, "end": 809 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1309,9 +1277,7 @@ "start": 860, "end": 863 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1436,9 +1402,7 @@ "start": 933, "end": 936 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1473,9 +1437,7 @@ "start": 941, "end": 947 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json index e84059c198d6..2ec713fba202 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json @@ -136,9 +136,7 @@ "start": 209, "end": 216 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json index e84059c198d6..2ec713fba202 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json @@ -136,9 +136,7 @@ "start": 209, "end": 216 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json index 4e38394004e8..05c4cbd25179 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json @@ -136,9 +136,7 @@ "start": 214, "end": 221 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json index 4e38394004e8..05c4cbd25179 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json @@ -136,9 +136,7 @@ "start": 214, "end": 221 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json index 56d23178baa7..a344701bca72 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json @@ -136,9 +136,7 @@ "start": 212, "end": 219 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json index 56d23178baa7..a344701bca72 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json @@ -136,9 +136,7 @@ "start": 212, "end": 219 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json index 56d23178baa7..a344701bca72 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json @@ -136,9 +136,7 @@ "start": 212, "end": 219 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json index 56d23178baa7..a344701bca72 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json @@ -136,9 +136,7 @@ "start": 212, "end": 219 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json index 56d23178baa7..a344701bca72 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json @@ -136,9 +136,7 @@ "start": 212, "end": 219 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json index 56d23178baa7..a344701bca72 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json @@ -136,9 +136,7 @@ "start": 212, "end": 219 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json index e84059c198d6..2ec713fba202 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json @@ -136,9 +136,7 @@ "start": 209, "end": 216 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json index e84059c198d6..2ec713fba202 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json @@ -136,9 +136,7 @@ "start": 209, "end": 216 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json index 0c70a9435859..31802ba3ece3 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json @@ -43,9 +43,7 @@ "start": 54, "end": 59 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -295,9 +293,7 @@ "start": 257, "end": 265 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" }, "value": { "type": "CallExpression", @@ -353,9 +349,7 @@ "start": 287, "end": 293 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -473,9 +467,7 @@ "start": 352, "end": 360 }, - "ctxt": 0, - "value": "myModule", - "optional": false + "value": "myModule" } }, "property": { @@ -484,9 +476,7 @@ "start": 361, "end": 365 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -555,9 +545,7 @@ "start": 396, "end": 399 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -592,9 +580,7 @@ "start": 405, "end": 408 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -678,9 +664,7 @@ "start": 459, "end": 462 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -805,9 +789,7 @@ "start": 532, "end": 535 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -842,9 +824,7 @@ "start": 540, "end": 546 }, - "ctxt": 0, - "value": "backup", - "optional": false + "value": "backup" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json index 4ca746f04499..df43b633df95 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json @@ -952,9 +952,7 @@ "start": 708, "end": 712 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -1023,9 +1021,7 @@ "start": 739, "end": 742 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json index 7077415f4e80..2ed21783bc57 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json @@ -133,9 +133,7 @@ "start": 125, "end": 129 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -313,9 +311,7 @@ "start": 203, "end": 207 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json index af98f7c0600e..6677e41b7f4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json @@ -347,9 +347,7 @@ "start": 309, "end": 313 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -418,9 +416,7 @@ "start": 340, "end": 343 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importClause_default.json b/crates/swc_ecma_parser/tests/tsc/importClause_default.json index c2a65eef8c55..a29e2cdb5aa6 100644 --- a/crates/swc_ecma_parser/tests/tsc/importClause_default.json +++ b/crates/swc_ecma_parser/tests/tsc/importClause_default.json @@ -42,9 +42,7 @@ "start": 46, "end": 47 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -211,9 +209,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json b/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json index 6ecf3e19329f..57bc871ae950 100644 --- a/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json +++ b/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json @@ -260,9 +260,7 @@ "start": 241, "end": 244 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importEquals2.json b/crates/swc_ecma_parser/tests/tsc/importEquals2.json index 8015a9f4039f..9a6baba846d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/importEquals2.json +++ b/crates/swc_ecma_parser/tests/tsc/importEquals2.json @@ -187,9 +187,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json b/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json index 854b03675e3f..b7855607e572 100644 --- a/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json @@ -37,9 +37,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -232,9 +230,7 @@ "start": 267, "end": 276 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -304,9 +300,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json b/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json index 7deab2a245aa..5b8e301d1adb 100644 --- a/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json +++ b/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json @@ -43,9 +43,7 @@ "start": 59, "end": 61 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "value": { "type": "NumericLiteral", @@ -79,9 +77,7 @@ "start": 76, "end": 78 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json b/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json index 97c322a3aecd..2b9cfcb5a8be 100644 --- a/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json +++ b/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json @@ -150,9 +150,7 @@ "start": 197, "end": 203 }, - "ctxt": 0, - "value": "answer", - "optional": false + "value": "answer" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/importStatements.json b/crates/swc_ecma_parser/tests/tsc/importStatements.json index c6dadb32a8b9..e119d4da07e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/importStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/importStatements.json @@ -69,9 +69,7 @@ "start": 45, "end": 56 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -459,6 +457,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 385, + "end": 392 + }, "left": { "type": "Identifier", "span": { @@ -475,9 +477,7 @@ "start": 387, "end": 392 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -531,9 +531,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -553,9 +551,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -686,9 +682,7 @@ "start": 491, "end": 496 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ @@ -830,6 +824,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 565, + "end": 572 + }, "left": { "type": "Identifier", "span": { @@ -846,9 +844,7 @@ "start": 567, "end": 572 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -918,9 +914,7 @@ "start": 594, "end": 600 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "property": { @@ -929,9 +923,7 @@ "start": 601, "end": 602 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -956,9 +948,7 @@ "start": 607, "end": 608 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json b/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json index 6caf661de4ce..d395df980c5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/importStatementsInterfaces.json @@ -395,6 +395,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 325, + "end": 330 + }, "left": { "type": "Identifier", "span": { @@ -411,9 +415,7 @@ "start": 327, "end": 330 }, - "ctxt": 0, - "value": "inA", - "optional": false + "value": "inA" } } }, @@ -512,6 +514,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 364, + "end": 373 + }, "left": { "type": "Identifier", "span": { @@ -528,9 +534,7 @@ "start": 366, "end": 373 }, - "ctxt": 0, - "value": "Point3D", - "optional": false + "value": "Point3D" } }, "typeParams": null @@ -584,9 +588,7 @@ "start": 388, "end": 389 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -606,9 +608,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -628,9 +628,7 @@ "start": 398, "end": 399 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -744,6 +742,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 475, + "end": 482 + }, "left": { "type": "Identifier", "span": { @@ -760,9 +762,7 @@ "start": 477, "end": 482 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -822,6 +822,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 537, + "end": 542 + }, "left": { "type": "Identifier", "span": { @@ -838,9 +842,7 @@ "start": 539, "end": 542 }, - "ctxt": 0, - "value": "inA", - "optional": false + "value": "inA" } } }, @@ -894,6 +896,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 573, + "end": 582 + }, "left": { "type": "Identifier", "span": { @@ -910,9 +916,7 @@ "start": 575, "end": 582 }, - "ctxt": 0, - "value": "Point3D", - "optional": false + "value": "Point3D" } }, "typeParams": null @@ -979,9 +983,7 @@ "start": 607, "end": 608 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json b/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json index 3f4b0db4d041..fc01f467bd6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json +++ b/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json @@ -218,9 +218,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -293,9 +291,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json index 59ac93df6775..a7682324bb8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json @@ -214,9 +214,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -236,9 +234,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -566,9 +562,7 @@ "start": 447, "end": 451 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -585,6 +579,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 453, + "end": 458 + }, "left": { "type": "Identifier", "span": { @@ -601,9 +599,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": null @@ -632,9 +628,7 @@ "start": 468, "end": 479 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -667,6 +661,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 487, + "end": 492 + }, "left": { "type": "Identifier", "span": { @@ -683,9 +681,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "J", - "optional": false + "value": "J" } }, "typeParams": null @@ -756,6 +752,10 @@ }, "qualifier": { "type": "TsQualifiedName", + "span": { + "start": 526, + "end": 531 + }, "left": { "type": "Identifier", "span": { @@ -772,9 +772,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeArguments": null @@ -796,9 +794,7 @@ "start": 536, "end": 537 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -818,9 +814,7 @@ "start": 543, "end": 544 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -870,9 +864,7 @@ "start": 569, "end": 573 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -1019,9 +1011,7 @@ "start": 614, "end": 625 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1151,9 +1141,7 @@ "start": 685, "end": 688 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json index 9b2b11d731c3..1b7a06f73ef4 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json @@ -214,9 +214,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -236,9 +234,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json index 742172f8700d..1ced63208a66 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json @@ -159,9 +159,7 @@ "start": 178, "end": 179 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -308,9 +306,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json b/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json index c6caf9873036..d160196e434e 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json @@ -653,9 +653,7 @@ "start": 404, "end": 408 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -672,6 +670,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 410, + "end": 415 + }, "left": { "type": "Identifier", "span": { @@ -688,9 +690,7 @@ "start": 414, "end": 415 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": { @@ -745,9 +745,7 @@ "start": 424, "end": 435 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -780,6 +778,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 443, + "end": 448 + }, "left": { "type": "Identifier", "span": { @@ -796,9 +798,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "J", - "optional": false + "value": "J" } }, "typeParams": { @@ -1037,9 +1037,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1059,9 +1057,7 @@ "start": 552, "end": 553 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1081,9 +1077,7 @@ "start": 558, "end": 562 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -1100,9 +1094,7 @@ "start": 565, "end": 566 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1178,6 +1170,10 @@ }, "qualifier": { "type": "TsQualifiedName", + "span": { + "start": 606, + "end": 611 + }, "left": { "type": "Identifier", "span": { @@ -1194,9 +1190,7 @@ "start": 610, "end": 611 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeArguments": { @@ -1270,9 +1264,7 @@ "start": 629, "end": 630 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1292,9 +1284,7 @@ "start": 636, "end": 637 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1314,9 +1304,7 @@ "start": 642, "end": 646 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -1333,9 +1321,7 @@ "start": 649, "end": 650 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1395,9 +1381,7 @@ "start": 687, "end": 691 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -1589,9 +1573,7 @@ "start": 741, "end": 752 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1758,9 +1740,7 @@ "start": 821, "end": 824 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json b/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json index aecb870d730a..57e1e10d3882 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeInJSDoc.json @@ -178,9 +178,7 @@ "start": 224, "end": 229 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": null, "typeAnnotation": { @@ -220,9 +218,7 @@ "start": 250, "end": 253 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" }, "value": null, "typeAnnotation": { @@ -330,9 +326,7 @@ "start": 292, "end": 303 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -365,6 +359,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 307, + "end": 318 + }, "left": { "type": "Identifier", "span": { @@ -381,9 +379,7 @@ "start": 315, "end": 318 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" } }, "typeParams": null @@ -618,9 +614,7 @@ "start": 533, "end": 537 }, - "ctxt": 0, - "value": "doer", - "optional": false + "value": "doer" }, "value": { "type": "MemberExpression", @@ -644,9 +638,7 @@ "start": 543, "end": 546 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" } } } @@ -706,9 +698,7 @@ "start": 601, "end": 605 }, - "ctxt": 0, - "value": "doer", - "optional": false + "value": "doer" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json b/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json index 759cc328157a..752afc149b4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json @@ -428,9 +428,7 @@ "start": 345, "end": 349 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -447,6 +445,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 351, + "end": 356 + }, "left": { "type": "Identifier", "span": { @@ -463,9 +465,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": null @@ -494,9 +494,7 @@ "start": 362, "end": 373 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -529,6 +527,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 381, + "end": 386 + }, "left": { "type": "Identifier", "span": { @@ -545,9 +547,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "J", - "optional": false + "value": "J" } }, "typeParams": null @@ -678,9 +678,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -700,9 +698,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -775,6 +771,10 @@ }, "qualifier": { "type": "TsQualifiedName", + "span": { + "start": 513, + "end": 518 + }, "left": { "type": "Identifier", "span": { @@ -791,9 +791,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeArguments": null @@ -815,9 +813,7 @@ "start": 523, "end": 524 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -837,9 +833,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -896,9 +890,7 @@ "start": 563, "end": 567 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -1045,9 +1037,7 @@ "start": 608, "end": 619 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1184,9 +1174,7 @@ "start": 688, "end": 691 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json b/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json index 8b97a2dafc8c..66dcf7d3b261 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json @@ -428,9 +428,7 @@ "start": 345, "end": 349 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -447,6 +445,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 351, + "end": 356 + }, "left": { "type": "Identifier", "span": { @@ -463,9 +465,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": null @@ -494,9 +494,7 @@ "start": 362, "end": 373 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -529,6 +527,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 381, + "end": 386 + }, "left": { "type": "Identifier", "span": { @@ -545,9 +547,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "J", - "optional": false + "value": "J" } }, "typeParams": null @@ -678,9 +678,7 @@ "start": 467, "end": 468 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -700,9 +698,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -775,6 +771,10 @@ }, "qualifier": { "type": "TsQualifiedName", + "span": { + "start": 511, + "end": 516 + }, "left": { "type": "Identifier", "span": { @@ -791,9 +791,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeArguments": null @@ -815,9 +813,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -837,9 +833,7 @@ "start": 528, "end": 529 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -912,6 +906,10 @@ }, "qualifier": { "type": "TsQualifiedName", + "span": { + "start": 567, + "end": 572 + }, "left": { "type": "Identifier", "span": { @@ -928,9 +926,7 @@ "start": 571, "end": 572 }, - "ctxt": 0, - "value": "Q", - "optional": false + "value": "Q" } }, "typeArguments": null @@ -952,9 +948,7 @@ "start": 577, "end": 578 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -974,9 +968,7 @@ "start": 584, "end": 585 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1033,9 +1025,7 @@ "start": 617, "end": 621 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": null, "typeAnnotation": { @@ -1182,9 +1172,7 @@ "start": 662, "end": 673 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1321,9 +1309,7 @@ "start": 741, "end": 744 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json b/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json index 559231f22eed..69f29c7adc0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json @@ -401,9 +401,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -452,9 +450,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -503,9 +499,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -554,9 +548,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -605,9 +597,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -656,9 +646,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json b/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json index 224bc5304959..19ac5ccd760d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json +++ b/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json @@ -365,9 +365,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -551,6 +549,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 365, + "end": 372 + }, "left": { "type": "Identifier", "span": { @@ -567,9 +569,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -616,9 +616,7 @@ "start": 382, "end": 385 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -841,9 +839,7 @@ "start": 485, "end": 488 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1053,9 +1049,7 @@ "start": 657, "end": 660 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } } }, @@ -1132,9 +1126,7 @@ "start": 675, "end": 678 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "definite": false @@ -1180,6 +1172,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 687, + "end": 692 + }, "left": { "type": "Identifier", "span": { @@ -1196,9 +1192,7 @@ "start": 689, "end": 692 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "typeParams": null @@ -1227,9 +1221,7 @@ "start": 697, "end": 700 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "definite": false @@ -1271,9 +1263,7 @@ "start": 710, "end": 713 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1442,6 +1432,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 784, + "end": 789 + }, "left": { "type": "Identifier", "span": { @@ -1458,9 +1452,7 @@ "start": 786, "end": 789 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "typeParams": null @@ -1507,9 +1499,7 @@ "start": 799, "end": 802 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1719,9 +1709,7 @@ "start": 934, "end": 937 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1914,9 +1902,7 @@ "start": 1128, "end": 1131 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json index 499d11e08e20..7198ed225208 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json @@ -224,9 +224,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -246,9 +244,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NullLiteral", @@ -296,9 +292,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -795,9 +789,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -862,9 +854,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -929,9 +919,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -996,9 +984,7 @@ "start": 502, "end": 503 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1136,9 +1122,7 @@ "start": 566, "end": 567 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1203,9 +1187,7 @@ "start": 598, "end": 599 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1270,9 +1252,7 @@ "start": 631, "end": 632 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1337,9 +1317,7 @@ "start": 661, "end": 662 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1538,9 +1516,7 @@ "start": 743, "end": 744 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1581,9 +1557,7 @@ "start": 750, "end": 751 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1779,9 +1753,7 @@ "start": 800, "end": 801 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1822,9 +1794,7 @@ "start": 807, "end": 808 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json index 8590d5c69ccb..e98f0475d0ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json @@ -216,9 +216,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -311,9 +309,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberType.json index 1a9163bafe46..a06828db06e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberType.json @@ -168,9 +168,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -494,9 +492,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -561,9 +557,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -628,9 +622,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -695,9 +687,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -889,9 +879,7 @@ "start": 500, "end": 501 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -932,9 +920,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -982,9 +968,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1010,9 +994,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -1129,9 +1111,7 @@ "start": 555, "end": 556 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1172,9 +1152,7 @@ "start": 562, "end": 563 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1222,9 +1200,7 @@ "start": 572, "end": 573 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1258,9 +1234,7 @@ "start": 579, "end": 580 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberTypeInvalidOperations.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberTypeInvalidOperations.json index 823de607cdd5..fc65ef01f3cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberTypeInvalidOperations.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithNumberTypeInvalidOperations.json @@ -233,9 +233,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -663,9 +659,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -685,9 +679,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -756,9 +748,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -778,9 +768,7 @@ "start": 454, "end": 455 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -955,9 +943,7 @@ "start": 541, "end": 542 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -977,9 +963,7 @@ "start": 547, "end": 548 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1048,9 +1032,7 @@ "start": 581, "end": 582 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1070,9 +1052,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1272,9 +1252,7 @@ "start": 710, "end": 713 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1484,9 +1462,7 @@ "start": 819, "end": 822 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedBooleanType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedBooleanType.json index 9afcdb62df7b..7b6cd31f0534 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedBooleanType.json @@ -147,9 +147,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 141, "end": 144 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -575,9 +571,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -596,9 +590,7 @@ "start": 405, "end": 406 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -666,9 +658,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -687,9 +677,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -863,9 +851,7 @@ "start": 543, "end": 544 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -884,9 +870,7 @@ "start": 552, "end": 553 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -954,9 +938,7 @@ "start": 590, "end": 591 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -975,9 +957,7 @@ "start": 599, "end": 600 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1110,9 +1090,7 @@ "start": 695, "end": 696 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1177,9 +1155,7 @@ "start": 725, "end": 726 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1311,9 +1287,7 @@ "start": 787, "end": 790 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1448,9 +1422,7 @@ "start": 852, "end": 855 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1518,9 +1490,7 @@ "start": 889, "end": 890 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1585,9 +1555,7 @@ "start": 919, "end": 920 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1717,9 +1685,7 @@ "start": 989, "end": 990 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1760,9 +1726,7 @@ "start": 996, "end": 997 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1810,9 +1774,7 @@ "start": 1006, "end": 1007 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1838,9 +1800,7 @@ "start": 1011, "end": 1012 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -1968,9 +1928,7 @@ "start": 1048, "end": 1049 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2011,9 +1969,7 @@ "start": 1055, "end": 1056 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2061,9 +2017,7 @@ "start": 1065, "end": 1066 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2097,9 +2051,7 @@ "start": 1072, "end": 1073 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json index c8eb6658050b..d0a4663f8b5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json @@ -233,9 +233,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -763,9 +759,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -785,9 +779,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -856,9 +848,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -878,9 +868,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1055,9 +1043,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1077,9 +1063,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1148,9 +1132,7 @@ "start": 660, "end": 661 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -1170,9 +1152,7 @@ "start": 667, "end": 668 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -1305,9 +1285,7 @@ "start": 762, "end": 763 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1372,9 +1350,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1579,9 +1555,7 @@ "start": 891, "end": 894 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1724,9 +1698,7 @@ "start": 971, "end": 972 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1791,9 +1763,7 @@ "start": 1001, "end": 1002 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1998,9 +1968,7 @@ "start": 1100, "end": 1103 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2284,9 +2252,7 @@ "start": 1240, "end": 1241 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2327,9 +2293,7 @@ "start": 1247, "end": 1248 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2377,9 +2341,7 @@ "start": 1257, "end": 1258 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2405,9 +2367,7 @@ "start": 1262, "end": 1263 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -2611,9 +2571,7 @@ "start": 1321, "end": 1322 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2654,9 +2612,7 @@ "start": 1328, "end": 1329 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2704,9 +2660,7 @@ "start": 1338, "end": 1339 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2740,9 +2694,7 @@ "start": 1345, "end": 1346 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json b/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json index 1be629b2cfc1..93bfa5f3581c 100644 --- a/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json @@ -251,9 +251,7 @@ "start": 89, "end": 91 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -413,9 +411,7 @@ "start": 153, "end": 155 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -538,9 +534,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json index 44f8a6a95778..f34f986ea8b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/inferFromBindingPattern.json @@ -463,9 +463,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/inferThis.json b/crates/swc_ecma_parser/tests/tsc/inferThis.json index 5e391f327008..c95cdb3dd302 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferThis.json +++ b/crates/swc_ecma_parser/tests/tsc/inferThis.json @@ -43,9 +43,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -103,9 +101,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], @@ -215,9 +211,7 @@ "start": 331, "end": 332 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "arguments": [], @@ -351,9 +345,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json index 20f00d7f4a3d..10c839b16575 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json @@ -38,9 +38,7 @@ "start": 145, "end": 156 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -86,9 +84,7 @@ "start": 178, "end": 184 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -134,9 +130,7 @@ "start": 207, "end": 220 }, - "ctxt": 0, - "value": "inConstructor", - "optional": false + "value": "inConstructor" } }, "right": { @@ -192,9 +186,7 @@ "start": 268, "end": 281 }, - "ctxt": 0, - "value": "inConstructor", - "optional": false + "value": "inConstructor" } }, "right": { @@ -243,9 +235,7 @@ "start": 316, "end": 326 }, - "ctxt": 0, - "value": "inMultiple", - "optional": false + "value": "inMultiple" } }, "right": { @@ -276,9 +266,7 @@ "start": 342, "end": 348 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -331,9 +319,7 @@ "start": 370, "end": 376 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -379,9 +365,7 @@ "start": 399, "end": 407 }, - "ctxt": 0, - "value": "inMethod", - "optional": false + "value": "inMethod" } }, "right": { @@ -427,9 +411,7 @@ "start": 430, "end": 446 }, - "ctxt": 0, - "value": "inMethodNullable", - "optional": false + "value": "inMethodNullable" } }, "right": { @@ -483,9 +465,7 @@ "start": 497, "end": 505 }, - "ctxt": 0, - "value": "inMethod", - "optional": false + "value": "inMethod" } }, "right": { @@ -531,9 +511,7 @@ "start": 534, "end": 550 }, - "ctxt": 0, - "value": "inMethodNullable", - "optional": false + "value": "inMethodNullable" } }, "right": { @@ -583,9 +561,7 @@ "start": 587, "end": 597 }, - "ctxt": 0, - "value": "inMultiple", - "optional": false + "value": "inMultiple" } }, "right": { @@ -631,9 +607,7 @@ "start": 623, "end": 640 }, - "ctxt": 0, - "value": "inMultipleMethods", - "optional": false + "value": "inMultipleMethods" } }, "right": { @@ -725,9 +699,7 @@ "start": 704, "end": 710 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -773,9 +745,7 @@ "start": 737, "end": 758 }, - "ctxt": 0, - "value": "inNestedArrowFunction", - "optional": false + "value": "inNestedArrowFunction" } }, "right": { @@ -831,9 +801,7 @@ "start": 818, "end": 839 }, - "ctxt": 0, - "value": "inNestedArrowFunction", - "optional": false + "value": "inNestedArrowFunction" } }, "right": { @@ -887,9 +855,7 @@ "start": 886, "end": 889 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [], @@ -942,9 +908,7 @@ "start": 911, "end": 917 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -990,9 +954,7 @@ "start": 940, "end": 948 }, - "ctxt": 0, - "value": "inGetter", - "optional": false + "value": "inGetter" } }, "right": { @@ -1048,9 +1010,7 @@ "start": 996, "end": 1004 }, - "ctxt": 0, - "value": "inGetter", - "optional": false + "value": "inGetter" } }, "right": { @@ -1099,9 +1059,7 @@ "start": 1039, "end": 1049 }, - "ctxt": 0, - "value": "inMultiple", - "optional": false + "value": "inMultiple" } }, "right": { @@ -1146,9 +1104,7 @@ "start": 1072, "end": 1089 }, - "ctxt": 0, - "value": "inMultipleMethods", - "optional": false + "value": "inMultipleMethods" } }, "right": { @@ -1187,9 +1143,7 @@ "start": 1109, "end": 1112 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [], @@ -1242,9 +1196,7 @@ "start": 1134, "end": 1140 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1290,9 +1242,7 @@ "start": 1163, "end": 1171 }, - "ctxt": 0, - "value": "inSetter", - "optional": false + "value": "inSetter" } }, "right": { @@ -1348,9 +1298,7 @@ "start": 1219, "end": 1227 }, - "ctxt": 0, - "value": "inSetter", - "optional": false + "value": "inSetter" } }, "right": { @@ -1393,9 +1341,7 @@ "start": 1259, "end": 1263 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "ArrowFunctionExpression", @@ -1448,9 +1394,7 @@ "start": 1291, "end": 1297 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1496,9 +1440,7 @@ "start": 1320, "end": 1341 }, - "ctxt": 0, - "value": "inPropertyDeclaration", - "optional": false + "value": "inPropertyDeclaration" } }, "right": { @@ -1554,9 +1496,7 @@ "start": 1389, "end": 1410 }, - "ctxt": 0, - "value": "inPropertyDeclaration", - "optional": false + "value": "inPropertyDeclaration" } }, "right": { @@ -1603,9 +1543,7 @@ "start": 1449, "end": 1455 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -1658,9 +1596,7 @@ "start": 1477, "end": 1483 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1706,9 +1642,7 @@ "start": 1506, "end": 1520 }, - "ctxt": 0, - "value": "inStaticMethod", - "optional": false + "value": "inStaticMethod" } }, "right": { @@ -1764,9 +1698,7 @@ "start": 1568, "end": 1582 }, - "ctxt": 0, - "value": "inStaticMethod", - "optional": false + "value": "inStaticMethod" } }, "right": { @@ -1861,9 +1793,7 @@ "start": 1655, "end": 1661 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1909,9 +1839,7 @@ "start": 1688, "end": 1715 }, - "ctxt": 0, - "value": "inStaticNestedArrowFunction", - "optional": false + "value": "inStaticNestedArrowFunction" } }, "right": { @@ -1967,9 +1895,7 @@ "start": 1775, "end": 1802 }, - "ctxt": 0, - "value": "inStaticNestedArrowFunction", - "optional": false + "value": "inStaticNestedArrowFunction" } }, "right": { @@ -2023,9 +1949,7 @@ "start": 1856, "end": 1859 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [], @@ -2078,9 +2002,7 @@ "start": 1881, "end": 1887 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2126,9 +2048,7 @@ "start": 1910, "end": 1924 }, - "ctxt": 0, - "value": "inStaticGetter", - "optional": false + "value": "inStaticGetter" } }, "right": { @@ -2184,9 +2104,7 @@ "start": 1972, "end": 1986 }, - "ctxt": 0, - "value": "inStaticGetter", - "optional": false + "value": "inStaticGetter" } }, "right": { @@ -2229,9 +2147,7 @@ "start": 2025, "end": 2028 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [], @@ -2284,9 +2200,7 @@ "start": 2050, "end": 2056 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2332,9 +2246,7 @@ "start": 2079, "end": 2093 }, - "ctxt": 0, - "value": "inStaticSetter", - "optional": false + "value": "inStaticSetter" } }, "right": { @@ -2390,9 +2302,7 @@ "start": 2141, "end": 2155 }, - "ctxt": 0, - "value": "inStaticSetter", - "optional": false + "value": "inStaticSetter" } }, "right": { @@ -2435,9 +2345,7 @@ "start": 2194, "end": 2198 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "ArrowFunctionExpression", @@ -2490,9 +2398,7 @@ "start": 2226, "end": 2232 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2538,9 +2444,7 @@ "start": 2255, "end": 2282 }, - "ctxt": 0, - "value": "inStaticPropertyDeclaration", - "optional": false + "value": "inStaticPropertyDeclaration" } }, "right": { @@ -2596,9 +2500,7 @@ "start": 2330, "end": 2357 }, - "ctxt": 0, - "value": "inStaticPropertyDeclaration", - "optional": false + "value": "inStaticPropertyDeclaration" } }, "right": { @@ -2803,9 +2705,7 @@ "start": 2485, "end": 2498 }, - "ctxt": 0, - "value": "inConstructor", - "optional": false + "value": "inConstructor" } }, "definite": false @@ -2932,9 +2832,7 @@ "start": 2596, "end": 2604 }, - "ctxt": 0, - "value": "inMethod", - "optional": false + "value": "inMethod" } }, "definite": false @@ -2990,9 +2888,7 @@ "start": 2640, "end": 2648 }, - "ctxt": 0, - "value": "inGetter", - "optional": false + "value": "inGetter" } }, "definite": false @@ -3048,9 +2944,7 @@ "start": 2684, "end": 2692 }, - "ctxt": 0, - "value": "inSetter", - "optional": false + "value": "inSetter" } }, "definite": false @@ -3106,9 +3000,7 @@ "start": 2728, "end": 2749 }, - "ctxt": 0, - "value": "inPropertyDeclaration", - "optional": false + "value": "inPropertyDeclaration" } }, "definite": false @@ -3164,9 +3056,7 @@ "start": 2785, "end": 2806 }, - "ctxt": 0, - "value": "inNestedArrowFunction", - "optional": false + "value": "inNestedArrowFunction" } }, "definite": false @@ -3339,9 +3229,7 @@ "start": 2900, "end": 2910 }, - "ctxt": 0, - "value": "inMultiple", - "optional": false + "value": "inMultiple" } }, "definite": false @@ -3468,9 +3356,7 @@ "start": 3010, "end": 3027 }, - "ctxt": 0, - "value": "inMultipleMethods", - "optional": false + "value": "inMultipleMethods" } }, "definite": false @@ -3572,9 +3458,7 @@ "start": 3055, "end": 3071 }, - "ctxt": 0, - "value": "inMethodNullable", - "optional": false + "value": "inMethodNullable" } }, "definite": false @@ -3630,9 +3514,7 @@ "start": 3109, "end": 3123 }, - "ctxt": 0, - "value": "inStaticMethod", - "optional": false + "value": "inStaticMethod" } }, "definite": false @@ -3688,9 +3570,7 @@ "start": 3159, "end": 3173 }, - "ctxt": 0, - "value": "inStaticGetter", - "optional": false + "value": "inStaticGetter" } }, "definite": false @@ -3746,9 +3626,7 @@ "start": 3209, "end": 3223 }, - "ctxt": 0, - "value": "inStaticSetter", - "optional": false + "value": "inStaticSetter" } }, "definite": false @@ -3804,9 +3682,7 @@ "start": 3259, "end": 3286 }, - "ctxt": 0, - "value": "inStaticPropertyDeclaration", - "optional": false + "value": "inStaticPropertyDeclaration" } }, "definite": false @@ -3862,9 +3738,7 @@ "start": 3322, "end": 3349 }, - "ctxt": 0, - "value": "inStaticNestedArrowFunction", - "optional": false + "value": "inStaticNestedArrowFunction" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments2.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments2.json index f4d694a93380..1b8e6a7e9e0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments2.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments2.json @@ -46,9 +46,7 @@ "start": 63, "end": 72 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -57,9 +55,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -112,9 +108,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -197,9 +191,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments3.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments3.json index 43aa031dbe30..a17f34a738c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments3.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments3.json @@ -38,9 +38,7 @@ "start": 141, "end": 152 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -143,9 +139,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -195,9 +189,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments4.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments4.json index e1dfcca22ef2..0f159f551897 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments4.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments4.json @@ -37,9 +37,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -89,9 +87,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -158,9 +154,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -210,9 +204,7 @@ "start": 307, "end": 308 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments5.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments5.json index 307c02f5da60..df5bc1e7a131 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments5.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments5.json @@ -37,9 +37,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -89,9 +87,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -159,9 +155,7 @@ "start": 207, "end": 218 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -228,9 +222,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -261,9 +253,7 @@ "start": 345, "end": 349 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -306,9 +296,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments6.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments6.json index 0459cba7dfde..18567a1d6201 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments6.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments6.json @@ -106,9 +106,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -157,9 +155,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -215,9 +211,7 @@ "start": 257, "end": 260 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -245,9 +239,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -312,9 +304,7 @@ "start": 284, "end": 293 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -323,9 +313,7 @@ "start": 294, "end": 299 }, - "ctxt": 0, - "value": "mreal", - "optional": false + "value": "mreal" } }, "right": { @@ -419,9 +407,7 @@ "start": 344, "end": 345 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -523,9 +509,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -557,9 +541,7 @@ "start": 387, "end": 388 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -598,9 +580,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments7.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments7.json index dec5eafa99d9..7e85b29e5bc8 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments7.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments7.json @@ -38,9 +38,7 @@ "start": 174, "end": 185 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -124,9 +122,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -175,9 +171,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -233,9 +227,7 @@ "start": 283, "end": 286 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -263,9 +255,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -299,9 +289,7 @@ "start": 315, "end": 320 }, - "ctxt": 0, - "value": "mreal", - "optional": false + "value": "mreal" }, "function": { "params": [], @@ -392,9 +380,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -508,9 +494,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -542,9 +526,7 @@ "start": 400, "end": 401 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -583,9 +565,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments8.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments8.json index 2ac51c0c671a..ed706a78d042 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments8.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments8.json @@ -123,9 +123,7 @@ "start": 111, "end": 115 }, - "ctxt": 0, - "value": "swap", - "optional": false + "value": "swap" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json b/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json index 7624f6808cfd..fbb4a9b5ad53 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json @@ -73,9 +73,7 @@ "start": 79, "end": 89 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -165,9 +163,7 @@ "start": 124, "end": 134 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -270,9 +266,7 @@ "start": 171, "end": 181 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -383,9 +377,7 @@ "start": 224, "end": 234 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -460,9 +452,7 @@ "start": 280, "end": 290 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -545,9 +535,7 @@ "start": 318, "end": 328 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -643,9 +631,7 @@ "start": 358, "end": 368 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -749,9 +735,7 @@ "start": 404, "end": 414 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -904,9 +888,7 @@ "start": 492, "end": 494 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "property": { @@ -915,9 +897,7 @@ "start": 495, "end": 505 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -979,9 +959,7 @@ "start": 517, "end": 519 }, - "ctxt": 0, - "value": "C2", - "optional": false + "value": "C2" } }, "property": { @@ -990,9 +968,7 @@ "start": 520, "end": 530 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -1054,9 +1030,7 @@ "start": 542, "end": 544 }, - "ctxt": 0, - "value": "F1", - "optional": false + "value": "F1" } }, "property": { @@ -1065,9 +1039,7 @@ "start": 545, "end": 555 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -1129,9 +1101,7 @@ "start": 567, "end": 569 }, - "ctxt": 0, - "value": "F2", - "optional": false + "value": "F2" } }, "property": { @@ -1140,9 +1110,7 @@ "start": 570, "end": 580 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -1198,9 +1166,7 @@ "start": 595, "end": 605 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -1256,9 +1222,7 @@ "start": 618, "end": 628 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -1314,9 +1278,7 @@ "start": 641, "end": 651 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false @@ -1372,9 +1334,7 @@ "start": 664, "end": 674 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json b/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json index 1882d07d912f..d1b1e2542321 100644 --- a/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json +++ b/crates/swc_ecma_parser/tests/tsc/initializationOrdering1.json @@ -37,9 +37,7 @@ "start": 97, "end": 103 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "function": { "params": [], @@ -146,9 +144,7 @@ "start": 172, "end": 183 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -241,9 +237,7 @@ "start": 227, "end": 230 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -268,9 +262,7 @@ "start": 236, "end": 239 }, - "ctxt": 0, - "value": "bug", - "optional": false + "value": "bug" } } } @@ -295,9 +287,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "bug", - "optional": false + "value": "bug" }, "value": { "type": "CallExpression", @@ -331,9 +321,7 @@ "start": 262, "end": 268 }, - "ctxt": 0, - "value": "facade", - "optional": false + "value": "facade" } }, "property": { @@ -342,9 +330,7 @@ "start": 269, "end": 275 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json index f014692e511b..54b758713e41 100644 --- a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json +++ b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorLocals.json @@ -37,9 +37,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -74,9 +72,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -126,9 +122,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -149,9 +143,7 @@ "start": 271, "end": 272 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "typeAnnotation": null, @@ -177,9 +169,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -196,6 +186,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 297, + "end": 303 + }, "left": { "type": "Identifier", "span": { @@ -212,9 +206,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "typeArguments": null @@ -243,9 +235,7 @@ "start": 318, "end": 329 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -355,9 +345,7 @@ "start": 376, "end": 377 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -392,9 +380,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -444,9 +430,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -467,9 +451,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "typeAnnotation": null, @@ -495,9 +477,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -514,6 +494,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 457, + "end": 463 + }, "left": { "type": "Identifier", "span": { @@ -530,9 +514,7 @@ "start": 462, "end": 463 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "typeArguments": null @@ -561,9 +543,7 @@ "start": 478, "end": 489 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json index e9d0e411a300..e50da29ba750 100644 --- a/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/initializerReferencingConstructorParameters.json @@ -37,9 +37,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -74,9 +72,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -127,9 +123,7 @@ "start": 262, "end": 273 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -203,9 +197,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -240,9 +232,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -293,9 +283,7 @@ "start": 344, "end": 355 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -372,9 +360,7 @@ "start": 387, "end": 388 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "MemberExpression", @@ -395,9 +381,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -423,9 +407,7 @@ "start": 409, "end": 410 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -442,6 +424,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 419, + "end": 425 + }, "left": { "type": "Identifier", "span": { @@ -458,9 +444,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeArguments": null @@ -489,9 +473,7 @@ "start": 437, "end": 448 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -568,9 +550,7 @@ "start": 483, "end": 484 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "MemberExpression", @@ -591,9 +571,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -619,9 +597,7 @@ "start": 505, "end": 506 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -657,9 +633,7 @@ "start": 525, "end": 536 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne.json b/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne.json index 53b1d2213c23..8aac6e4e262a 100644 --- a/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne.json +++ b/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne.json @@ -152,9 +152,7 @@ "start": 180, "end": 187 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -306,9 +304,7 @@ "start": 217, "end": 224 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -516,9 +512,7 @@ "start": 362, "end": 369 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -709,9 +703,7 @@ "start": 399, "end": 406 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne2.json b/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne2.json index 84ce3d459a4e..825720d9e4cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne2.json +++ b/crates/swc_ecma_parser/tests/tsc/innerTypeParameterShadowingOuterOne2.json @@ -37,9 +37,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -148,9 +146,7 @@ "start": 166, "end": 173 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -230,9 +226,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "function": { "params": [], @@ -341,9 +335,7 @@ "start": 222, "end": 229 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -450,9 +442,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -561,9 +551,7 @@ "start": 359, "end": 366 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -682,9 +670,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "function": { "params": [], @@ -793,9 +779,7 @@ "start": 415, "end": 422 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json index f14b77090eef..4573366f351c 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberAssignsToClassPrototype.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -98,9 +96,7 @@ "start": 33, "end": 42 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -109,9 +105,7 @@ "start": 43, "end": 46 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -164,9 +158,7 @@ "start": 70, "end": 73 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -259,9 +251,7 @@ "start": 105, "end": 114 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -270,9 +260,7 @@ "start": 115, "end": 118 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -340,9 +328,7 @@ "start": 150, "end": 159 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -351,9 +337,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -434,9 +418,7 @@ "start": 192, "end": 201 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -445,9 +427,7 @@ "start": 202, "end": 205 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json index 94d436782c1a..95eaf7a935f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberInitialization.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -154,9 +152,7 @@ "start": 44, "end": 45 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -277,9 +273,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -304,9 +298,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -347,9 +339,7 @@ "start": 129, "end": 140 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -490,9 +480,7 @@ "start": 210, "end": 215 }, - "ctxt": 0, - "value": "store", - "optional": false + "value": "store" }, "value": { "type": "NewExpression", @@ -520,9 +508,7 @@ "start": 227, "end": 231 }, - "ctxt": 0, - "value": "Map_", - "optional": false + "value": "Map_" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json index 507ab42cccea..edcac950fe39 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json @@ -136,9 +136,7 @@ "start": 114, "end": 125 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -229,9 +227,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -251,9 +247,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json b/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json index 6b1248e14705..3e67ceb3faa0 100644 --- a/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json @@ -62,9 +62,7 @@ "start": 43, "end": 44 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -104,9 +102,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -166,9 +162,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -231,9 +225,7 @@ "start": 133, "end": 135 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -292,9 +284,7 @@ "start": 163, "end": 174 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -421,9 +411,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -599,9 +587,7 @@ "start": 300, "end": 302 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -660,9 +646,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -718,9 +702,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -762,9 +744,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -834,9 +814,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -906,9 +884,7 @@ "start": 433, "end": 434 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -958,9 +934,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -1018,9 +992,7 @@ "start": 504, "end": 505 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -1107,9 +1079,7 @@ "start": 524, "end": 526 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -1168,9 +1138,7 @@ "start": 554, "end": 565 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1369,9 +1337,7 @@ "start": 640, "end": 641 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -1653,9 +1619,7 @@ "start": 689, "end": 691 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -1714,9 +1678,7 @@ "start": 710, "end": 711 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1772,9 +1734,7 @@ "start": 728, "end": 729 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1816,9 +1776,7 @@ "start": 737, "end": 738 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1888,9 +1846,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json b/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json index 032c50883469..0307e18f7261 100644 --- a/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json @@ -62,9 +62,7 @@ "start": 43, "end": 44 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -104,9 +102,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -166,9 +162,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -231,9 +225,7 @@ "start": 133, "end": 135 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -292,9 +284,7 @@ "start": 163, "end": 174 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -521,9 +511,7 @@ "start": 262, "end": 264 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -582,9 +570,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -640,9 +626,7 @@ "start": 301, "end": 302 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -684,9 +668,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -756,9 +738,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -828,9 +808,7 @@ "start": 394, "end": 395 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -880,9 +858,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -940,9 +916,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -1029,9 +1003,7 @@ "start": 485, "end": 487 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -1090,9 +1062,7 @@ "start": 515, "end": 526 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1391,9 +1361,7 @@ "start": 605, "end": 607 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -1452,9 +1420,7 @@ "start": 626, "end": 627 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1510,9 +1476,7 @@ "start": 644, "end": 645 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1554,9 +1518,7 @@ "start": 653, "end": 654 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1626,9 +1588,7 @@ "start": 676, "end": 677 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json index 87dcf04092d5..0e549b14f85b 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json @@ -37,9 +37,7 @@ "start": 50, "end": 53 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1881,9 +1879,7 @@ "start": 1102, "end": 1113 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -2184,9 +2180,7 @@ "start": 1270, "end": 1281 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json index 731477246fc9..556ae6aaf807 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json index 3dde9baee976..c0a339a8e74e 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidStaticToString.json @@ -37,9 +37,7 @@ "start": 43, "end": 51 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -229,9 +227,7 @@ "start": 209, "end": 217 }, - "ctxt": 0, - "value": "toNumber", - "optional": false + "value": "toNumber" }, "function": { "params": [], @@ -421,9 +417,7 @@ "start": 367, "end": 375 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json index 923f294d3dd8..0811430f0f7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithRHSHasSymbolHasInstance.json @@ -506,9 +506,7 @@ "start": 252, "end": 263 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -632,9 +630,7 @@ "start": 322, "end": 333 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -758,9 +754,7 @@ "start": 388, "end": 399 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -919,9 +913,7 @@ "start": 461, "end": 472 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -1117,9 +1109,7 @@ "start": 543, "end": 554 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -1315,9 +1305,7 @@ "start": 624, "end": 635 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -1531,9 +1519,7 @@ "start": 718, "end": 729 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -1717,9 +1703,7 @@ "start": 813, "end": 824 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -1853,9 +1837,7 @@ "start": 890, "end": 901 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -1989,9 +1971,7 @@ "start": 963, "end": 974 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -2160,9 +2140,7 @@ "start": 1044, "end": 1055 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -2368,9 +2346,7 @@ "start": 1134, "end": 1145 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -2576,9 +2552,7 @@ "start": 1223, "end": 1234 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -2802,9 +2776,7 @@ "start": 1325, "end": 1336 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -6500,9 +6472,7 @@ "start": 3593, "end": 3604 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -6692,6 +6662,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 3664, + "end": 3683 + }, "left": { "type": "Identifier", "span": { @@ -6708,9 +6682,7 @@ "start": 3675, "end": 3683 }, - "ctxt": 0, - "value": "Function", - "optional": false + "value": "Function" } }, "typeParams": null @@ -7387,9 +7359,7 @@ "start": 4248, "end": 4259 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -7658,9 +7628,7 @@ "start": 4427, "end": 4438 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -7801,9 +7769,7 @@ "start": 4501, "end": 4512 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithWrongNumberOfTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithWrongNumberOfTypeArguments.json index 41ac282f24da..d286d0548316 100644 --- a/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithWrongNumberOfTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithWrongNumberOfTypeArguments.json @@ -37,9 +37,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -221,9 +219,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -273,9 +269,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithZeroTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithZeroTypeArguments.json index 84e7ca81ebde..e8cef34f37a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithZeroTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/instantiateGenericClassWithZeroTypeArguments.json @@ -37,9 +37,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -197,9 +195,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -249,9 +245,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/instantiateNonGenericTypeWithTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/instantiateNonGenericTypeWithTypeArguments.json index 12eb30980c2a..5ca48b256d11 100644 --- a/crates/swc_ecma_parser/tests/tsc/instantiateNonGenericTypeWithTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/instantiateNonGenericTypeWithTypeArguments.json @@ -37,9 +37,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/instantiatedModule.json b/crates/swc_ecma_parser/tests/tsc/instantiatedModule.json index f630c49a6762..c42c1c61db64 100644 --- a/crates/swc_ecma_parser/tests/tsc/instantiatedModule.json +++ b/crates/swc_ecma_parser/tests/tsc/instantiatedModule.json @@ -378,9 +378,7 @@ "start": 224, "end": 229 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -436,9 +434,7 @@ "start": 242, "end": 247 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -601,6 +597,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 292, + "end": 299 + }, "left": { "type": "Identifier", "span": { @@ -617,9 +617,7 @@ "start": 294, "end": 299 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -694,9 +692,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -736,9 +732,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -778,9 +772,7 @@ "start": 483, "end": 489 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" }, "function": { "params": [], @@ -819,9 +811,7 @@ "start": 522, "end": 523 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -841,9 +831,7 @@ "start": 528, "end": 529 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1043,6 +1031,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 631, + "end": 639 + }, "left": { "type": "Identifier", "span": { @@ -1059,9 +1051,7 @@ "start": 634, "end": 639 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeArguments": null @@ -1122,9 +1112,7 @@ "start": 653, "end": 658 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -1180,9 +1168,7 @@ "start": 672, "end": 677 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -1228,6 +1214,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 686, + "end": 694 + }, "left": { "type": "Identifier", "span": { @@ -1244,9 +1234,7 @@ "start": 689, "end": 694 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1282,9 +1270,7 @@ "start": 700, "end": 706 }, - "ctxt": 0, - "value": "Origin", - "optional": false + "value": "Origin" } }, "arguments": [], @@ -1450,6 +1436,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 752, + "end": 760 + }, "left": { "type": "Identifier", "span": { @@ -1466,9 +1456,7 @@ "start": 755, "end": 760 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1536,9 +1524,7 @@ "start": 778, "end": 783 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [], @@ -1604,9 +1590,7 @@ "start": 803, "end": 808 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [], @@ -1844,6 +1828,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 912, + "end": 920 + }, "left": { "type": "Identifier", "span": { @@ -1860,9 +1848,7 @@ "start": 915, "end": 920 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "typeArguments": null @@ -1923,9 +1909,7 @@ "start": 934, "end": 939 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "definite": false @@ -1981,9 +1965,7 @@ "start": 953, "end": 958 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "definite": false @@ -2029,6 +2011,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 970, + "end": 978 + }, "left": { "type": "Identifier", "span": { @@ -2045,9 +2031,7 @@ "start": 973, "end": 978 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "typeParams": null @@ -2076,9 +2060,7 @@ "start": 984, "end": 988 }, - "ctxt": 0, - "value": "Blue", - "optional": false + "value": "Blue" } }, "definite": false @@ -2124,6 +2106,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 999, + "end": 1007 + }, "left": { "type": "Identifier", "span": { @@ -2140,9 +2126,7 @@ "start": 1002, "end": 1007 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "typeParams": null @@ -2209,9 +2193,7 @@ "start": 1021, "end": 1026 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "property": { @@ -2220,9 +2202,7 @@ "start": 1027, "end": 1030 }, - "ctxt": 0, - "value": "Red", - "optional": false + "value": "Red" } }, "definite": false @@ -2284,9 +2264,7 @@ "start": 1044, "end": 1049 }, - "ctxt": 0, - "value": "Color", - "optional": false + "value": "Color" } }, "property": { @@ -2295,9 +2273,7 @@ "start": 1050, "end": 1054 }, - "ctxt": 0, - "value": "Blue", - "optional": false + "value": "Blue" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json b/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json index 377eb7cb081d..163c6b84efca 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json @@ -145,9 +145,7 @@ "start": 55, "end": 59 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -202,9 +200,7 @@ "start": 71, "end": 75 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClass.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClass.json index 4e27bb143cd8..0542c4e4d220 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClass.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClass.json @@ -37,9 +37,7 @@ "start": 17, "end": 18 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 48, "end": 49 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" }, "function": { "params": [], @@ -394,9 +388,7 @@ "start": 156, "end": 157 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -459,9 +451,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -520,9 +510,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "Z", - "optional": false + "value": "Z" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates.json index 499663c29eeb..60b31a8b12ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -345,9 +343,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -403,9 +399,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates2.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates2.json index 898ce9cf0fd6..8426a833b1d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates2.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithPrivates2.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -341,9 +337,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -598,9 +592,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -656,9 +648,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -714,9 +704,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds.json index d49336bfa302..73db5af75989 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds.json @@ -37,9 +37,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -345,9 +343,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -403,9 +399,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds2.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds2.json index c6b664852477..a91bc306328f 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds2.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClassWithProtecteds2.json @@ -37,9 +37,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -341,9 +337,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -598,9 +592,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -656,9 +648,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -714,9 +704,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json index d11603f3b5d2..d39d0459c8a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json @@ -1293,9 +1293,7 @@ "start": 627, "end": 628 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1407,9 +1405,7 @@ "start": 676, "end": 677 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1521,9 +1517,7 @@ "start": 725, "end": 726 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1635,9 +1629,7 @@ "start": 774, "end": 775 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1749,9 +1741,7 @@ "start": 823, "end": 824 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1863,9 +1853,7 @@ "start": 872, "end": 873 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1977,9 +1965,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2165,9 +2151,7 @@ "start": 993, "end": 994 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -3473,9 +3457,7 @@ "start": 1639, "end": 1640 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -3613,9 +3595,7 @@ "start": 1699, "end": 1700 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -3753,9 +3733,7 @@ "start": 1763, "end": 1764 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -3893,9 +3871,7 @@ "start": 1842, "end": 1843 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json index ef5188d7d8af..6e1a82952fac 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json @@ -1003,9 +1003,7 @@ "start": 499, "end": 500 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1117,9 +1115,7 @@ "start": 548, "end": 549 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -1231,9 +1227,7 @@ "start": 597, "end": 603 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -1458,9 +1452,7 @@ "start": 700, "end": 701 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -1572,9 +1564,7 @@ "start": 739, "end": 740 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json index 281d9cd8624c..8bea5db6e754 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json @@ -37,9 +37,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1043,9 +1041,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1065,9 +1061,7 @@ "start": 375, "end": 376 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1087,9 +1081,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -1108,9 +1100,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ObjectExpression", @@ -1129,9 +1119,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NullLiteral", @@ -1149,9 +1137,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrayExpression", @@ -1183,9 +1169,7 @@ "start": 436, "end": 437 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "ObjectExpression", @@ -1204,9 +1188,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "ArrowFunctionExpression", @@ -1265,9 +1247,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "ArrowFunctionExpression", @@ -1367,9 +1347,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "TsTypeAssertion", @@ -1412,9 +1390,7 @@ "start": 513, "end": 514 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" }, "value": { "type": "NewExpression", @@ -1445,9 +1421,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" }, "value": { "type": "Identifier", @@ -1468,9 +1442,7 @@ "start": 540, "end": 541 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "Identifier", @@ -1491,9 +1463,7 @@ "start": 550, "end": 551 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ObjectExpression", @@ -1512,9 +1482,7 @@ "start": 561, "end": 562 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "MemberExpression", @@ -1538,9 +1506,7 @@ "start": 566, "end": 567 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType.json index 9b527a745176..7dd0204e917b 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType.json @@ -37,9 +37,7 @@ "start": 26, "end": 27 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType2.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType2.json index 5b38556f076a..07a1a1b498e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType2.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyThatIsPrivateInBaseType2.json @@ -37,9 +37,7 @@ "start": 26, "end": 27 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -193,9 +191,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json b/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json index 67e254c4d68f..715d17a1c1bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json @@ -327,9 +327,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -349,9 +347,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1017,9 +1013,7 @@ "start": 428, "end": 433 }, - "ctxt": 0, - "value": "first", - "optional": false + "value": "first" }, "value": { "type": "ObjectExpression", @@ -1036,9 +1030,7 @@ "start": 437, "end": 441 }, - "ctxt": 0, - "value": "view", - "optional": false + "value": "view" }, "value": { "type": "NumericLiteral", @@ -1058,9 +1050,7 @@ "start": 446, "end": 456 }, - "ctxt": 0, - "value": "styleMedia", - "optional": false + "value": "styleMedia" }, "value": { "type": "StringLiteral", @@ -1158,9 +1148,7 @@ "start": 500, "end": 505 }, - "ctxt": 0, - "value": "first", - "optional": false + "value": "first" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json b/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json index 1694fdb52a95..e90b62f19041 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json @@ -370,9 +370,7 @@ "start": 287, "end": 295 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "definite": false @@ -428,9 +426,7 @@ "start": 319, "end": 333 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json b/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json index 91ff7d14aa37..fd48d2306987 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json @@ -534,9 +534,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionNarrowing.json b/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionNarrowing.json index 6b36e9c975e2..d02424103e89 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionNarrowing.json @@ -480,9 +480,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -538,9 +536,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -549,9 +545,7 @@ "start": 216, "end": 221 }, - "ctxt": 0, - "value": "aProp", - "optional": false + "value": "aProp" } } } @@ -599,9 +593,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -610,9 +602,7 @@ "start": 307, "end": 312 }, - "ctxt": 0, - "value": "bProp", - "optional": false + "value": "bProp" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json b/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json index 18f68978179d..0170ba72df4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json @@ -2677,6 +2677,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 779, + "end": 782 + }, "left": { "type": "Identifier", "span": { @@ -2693,9 +2697,7 @@ "start": 781, "end": 782 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2708,6 +2710,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 785, + "end": 788 + }, "left": { "type": "Identifier", "span": { @@ -2724,9 +2730,7 @@ "start": 787, "end": 788 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -2739,6 +2743,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 791, + "end": 794 + }, "left": { "type": "Identifier", "span": { @@ -2755,9 +2763,7 @@ "start": 793, "end": 794 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -2786,6 +2792,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 799, + "end": 802 + }, "left": { "type": "Identifier", "span": { @@ -2802,9 +2812,7 @@ "start": 801, "end": 802 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2817,6 +2825,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 805, + "end": 808 + }, "left": { "type": "Identifier", "span": { @@ -2833,9 +2845,7 @@ "start": 807, "end": 808 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -2848,6 +2858,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 811, + "end": 814 + }, "left": { "type": "Identifier", "span": { @@ -2864,9 +2878,7 @@ "start": 813, "end": 814 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -2942,6 +2954,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 846, + "end": 849 + }, "left": { "type": "Identifier", "span": { @@ -2958,9 +2974,7 @@ "start": 848, "end": 849 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2973,6 +2987,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 852, + "end": 855 + }, "left": { "type": "Identifier", "span": { @@ -2989,9 +3007,7 @@ "start": 854, "end": 855 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3004,6 +3020,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 858, + "end": 861 + }, "left": { "type": "Identifier", "span": { @@ -3020,9 +3040,7 @@ "start": 860, "end": 861 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3051,6 +3069,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 866, + "end": 869 + }, "left": { "type": "Identifier", "span": { @@ -3067,9 +3089,7 @@ "start": 868, "end": 869 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3082,6 +3102,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 872, + "end": 875 + }, "left": { "type": "Identifier", "span": { @@ -3098,9 +3122,7 @@ "start": 874, "end": 875 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3113,6 +3135,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 878, + "end": 881 + }, "left": { "type": "Identifier", "span": { @@ -3129,9 +3155,7 @@ "start": 880, "end": 881 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -3207,6 +3231,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 907, + "end": 910 + }, "left": { "type": "Identifier", "span": { @@ -3223,9 +3251,7 @@ "start": 909, "end": 910 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -3238,6 +3264,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 913, + "end": 916 + }, "left": { "type": "Identifier", "span": { @@ -3254,9 +3284,7 @@ "start": 915, "end": 916 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3269,6 +3297,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 919, + "end": 922 + }, "left": { "type": "Identifier", "span": { @@ -3285,9 +3317,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3316,6 +3346,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 927, + "end": 930 + }, "left": { "type": "Identifier", "span": { @@ -3332,9 +3366,7 @@ "start": 929, "end": 930 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3347,6 +3379,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 933, + "end": 936 + }, "left": { "type": "Identifier", "span": { @@ -3363,9 +3399,7 @@ "start": 935, "end": 936 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -3378,6 +3412,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 939, + "end": 942 + }, "left": { "type": "Identifier", "span": { @@ -3394,9 +3432,7 @@ "start": 941, "end": 942 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } }, "typeParams": null @@ -3472,6 +3508,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 962, + "end": 965 + }, "left": { "type": "Identifier", "span": { @@ -3488,9 +3528,7 @@ "start": 964, "end": 965 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -3503,6 +3541,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 968, + "end": 971 + }, "left": { "type": "Identifier", "span": { @@ -3519,9 +3561,7 @@ "start": 970, "end": 971 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3534,6 +3574,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 974, + "end": 977 + }, "left": { "type": "Identifier", "span": { @@ -3550,9 +3594,7 @@ "start": 976, "end": 977 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3581,6 +3623,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 982, + "end": 985 + }, "left": { "type": "Identifier", "span": { @@ -3597,9 +3643,7 @@ "start": 984, "end": 985 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -3612,6 +3656,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 988, + "end": 991 + }, "left": { "type": "Identifier", "span": { @@ -3628,9 +3676,7 @@ "start": 990, "end": 991 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } }, "typeParams": null @@ -3643,6 +3689,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 994, + "end": 997 + }, "left": { "type": "Identifier", "span": { @@ -3659,9 +3709,7 @@ "start": 996, "end": 997 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "typeParams": null @@ -3737,6 +3785,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1019, + "end": 1022 + }, "left": { "type": "Identifier", "span": { @@ -3753,9 +3805,7 @@ "start": 1021, "end": 1022 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -3768,6 +3818,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1025, + "end": 1028 + }, "left": { "type": "Identifier", "span": { @@ -3784,9 +3838,7 @@ "start": 1027, "end": 1028 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3799,6 +3851,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1031, + "end": 1034 + }, "left": { "type": "Identifier", "span": { @@ -3815,9 +3871,7 @@ "start": 1033, "end": 1034 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3846,6 +3900,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1039, + "end": 1042 + }, "left": { "type": "Identifier", "span": { @@ -3862,9 +3920,7 @@ "start": 1041, "end": 1042 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3877,6 +3933,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1045, + "end": 1048 + }, "left": { "type": "Identifier", "span": { @@ -3893,9 +3953,7 @@ "start": 1047, "end": 1048 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3908,6 +3966,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1051, + "end": 1054 + }, "left": { "type": "Identifier", "span": { @@ -3924,9 +3986,7 @@ "start": 1053, "end": 1054 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -3955,6 +4015,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1059, + "end": 1062 + }, "left": { "type": "Identifier", "span": { @@ -3971,9 +4035,7 @@ "start": 1061, "end": 1062 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -3986,6 +4048,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1065, + "end": 1068 + }, "left": { "type": "Identifier", "span": { @@ -4002,9 +4068,7 @@ "start": 1067, "end": 1068 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -4017,6 +4081,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1071, + "end": 1074 + }, "left": { "type": "Identifier", "span": { @@ -4033,9 +4101,7 @@ "start": 1073, "end": 1074 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } }, "typeParams": null @@ -4111,6 +4177,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1094, + "end": 1097 + }, "left": { "type": "Identifier", "span": { @@ -4127,9 +4197,7 @@ "start": 1096, "end": 1097 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -4142,6 +4210,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1100, + "end": 1103 + }, "left": { "type": "Identifier", "span": { @@ -4158,9 +4230,7 @@ "start": 1102, "end": 1103 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -4173,6 +4243,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1106, + "end": 1109 + }, "left": { "type": "Identifier", "span": { @@ -4189,9 +4263,7 @@ "start": 1108, "end": 1109 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -4220,6 +4292,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1114, + "end": 1117 + }, "left": { "type": "Identifier", "span": { @@ -4236,9 +4312,7 @@ "start": 1116, "end": 1117 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -4251,6 +4325,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1120, + "end": 1123 + }, "left": { "type": "Identifier", "span": { @@ -4267,9 +4345,7 @@ "start": 1122, "end": 1123 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -4282,6 +4358,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1126, + "end": 1129 + }, "left": { "type": "Identifier", "span": { @@ -4298,9 +4378,7 @@ "start": 1128, "end": 1129 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -4329,6 +4407,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1134, + "end": 1137 + }, "left": { "type": "Identifier", "span": { @@ -4345,9 +4427,7 @@ "start": 1136, "end": 1137 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -4360,6 +4440,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1140, + "end": 1143 + }, "left": { "type": "Identifier", "span": { @@ -4376,9 +4460,7 @@ "start": 1142, "end": 1143 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -4391,6 +4473,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1146, + "end": 1149 + }, "left": { "type": "Identifier", "span": { @@ -4407,9 +4493,7 @@ "start": 1148, "end": 1149 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } }, "typeParams": null @@ -4438,6 +4522,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1154, + "end": 1157 + }, "left": { "type": "Identifier", "span": { @@ -4454,9 +4542,7 @@ "start": 1156, "end": 1157 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "typeParams": null @@ -4469,6 +4555,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1160, + "end": 1163 + }, "left": { "type": "Identifier", "span": { @@ -4485,9 +4575,7 @@ "start": 1162, "end": 1163 }, - "ctxt": 0, - "value": "E", - "optional": false + "value": "E" } }, "typeParams": null @@ -4500,6 +4588,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1166, + "end": 1169 + }, "left": { "type": "Identifier", "span": { @@ -4516,9 +4608,7 @@ "start": 1168, "end": 1169 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json b/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json index f02a74af389b..08b5f6111e30 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json @@ -2246,9 +2246,7 @@ "start": 1096, "end": 1100 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -5303,9 +5301,7 @@ "start": 2127, "end": 2128 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -5325,9 +5321,7 @@ "start": 2137, "end": 2138 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5387,9 +5381,7 @@ "start": 2159, "end": 2160 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -5409,9 +5401,7 @@ "start": 2169, "end": 2170 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", @@ -8043,9 +8033,7 @@ "start": 3295, "end": 3299 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": null, "typeAnnotation": { @@ -8093,9 +8081,7 @@ "start": 3306, "end": 3307 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -8135,9 +8121,7 @@ "start": 3317, "end": 3318 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -8211,9 +8195,7 @@ "start": 3349, "end": 3353 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": null, "typeAnnotation": { @@ -8261,9 +8243,7 @@ "start": 3360, "end": 3361 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -8303,9 +8283,7 @@ "start": 3371, "end": 3372 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json b/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json index 5cf8a2ee114a..bc0f261f0bc3 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json @@ -2246,9 +2246,7 @@ "start": 1095, "end": 1099 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -4608,9 +4606,7 @@ "start": 1894, "end": 1895 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -4630,9 +4626,7 @@ "start": 1904, "end": 1905 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -4692,9 +4686,7 @@ "start": 1926, "end": 1927 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -4714,9 +4706,7 @@ "start": 1936, "end": 1937 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json b/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json index d96e6e6087f7..196edfd528da 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json @@ -453,9 +453,7 @@ "start": 209, "end": 213 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -542,9 +540,7 @@ "start": 227, "end": 229 }, - "ctxt": 0, - "value": "me", - "optional": false + "value": "me" } }, "arguments": [], @@ -556,9 +552,7 @@ "start": 232, "end": 236 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -570,9 +564,7 @@ "start": 239, "end": 241 }, - "ctxt": 0, - "value": "me", - "optional": false + "value": "me" } }, "arguments": [], @@ -795,9 +787,7 @@ "start": 335, "end": 339 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -884,9 +874,7 @@ "start": 353, "end": 355 }, - "ctxt": 0, - "value": "me", - "optional": false + "value": "me" } }, "arguments": [], @@ -898,9 +886,7 @@ "start": 358, "end": 362 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -912,9 +898,7 @@ "start": 365, "end": 367 }, - "ctxt": 0, - "value": "me", - "optional": false + "value": "me" } }, "arguments": [], @@ -1310,9 +1294,7 @@ "start": 549, "end": 555 }, - "ctxt": 0, - "value": "extend", - "optional": false + "value": "extend" } }, "arguments": [ @@ -1333,9 +1315,7 @@ "start": 558, "end": 560 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -1359,9 +1339,7 @@ "start": 568, "end": 574 }, - "ctxt": 0, - "value": "extend", - "optional": false + "value": "extend" } }, "arguments": [ @@ -1382,9 +1360,7 @@ "start": 577, "end": 580 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" }, "value": { "type": "StringLiteral", @@ -1434,9 +1410,7 @@ "start": 607, "end": 609 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } }, @@ -1468,9 +1442,7 @@ "start": 631, "end": 634 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json index a4c15f0f3971..e89afaba4d2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json @@ -536,9 +536,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -570,9 +568,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -643,9 +639,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -701,9 +695,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -1258,9 +1250,7 @@ "start": 406, "end": 407 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1280,9 +1270,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json index 956b6670470f..191d56905590 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json @@ -143,9 +143,7 @@ "start": 123, "end": 130 }, - "ctxt": 0, - "value": "species", - "optional": false + "value": "species" } }, "computed": true, @@ -483,9 +481,7 @@ "start": 243, "end": 247 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ @@ -511,9 +507,7 @@ "start": 251, "end": 257 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ @@ -548,9 +542,7 @@ "start": 264, "end": 268 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json index 665e3fb623d0..cc5910dff09d 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json @@ -333,9 +333,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -384,9 +382,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -435,9 +431,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -815,9 +809,7 @@ "start": 421, "end": 422 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -826,9 +818,7 @@ "start": 423, "end": 424 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -883,9 +873,7 @@ "start": 440, "end": 441 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -894,9 +882,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -951,9 +937,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -962,9 +946,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1834,9 +1816,7 @@ "start": 789, "end": 795 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -1853,9 +1833,7 @@ "start": 807, "end": 819 }, - "ctxt": 0, - "value": "doublyNested", - "optional": false + "value": "doublyNested" }, "value": { "type": "ObjectExpression", @@ -1872,9 +1850,7 @@ "start": 835, "end": 836 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -1894,9 +1870,7 @@ "start": 857, "end": 858 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "StringLiteral", @@ -1919,9 +1893,7 @@ "start": 884, "end": 893 }, - "ctxt": 0, - "value": "different", - "optional": false + "value": "different" }, "value": { "type": "ObjectExpression", @@ -1938,9 +1910,7 @@ "start": 897, "end": 898 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -1963,9 +1933,7 @@ "start": 914, "end": 919 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "value": { "type": "ObjectExpression", @@ -1982,9 +1950,7 @@ "start": 923, "end": 924 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -2409,9 +2375,7 @@ "start": 1197, "end": 1203 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -2428,9 +2392,7 @@ "start": 1215, "end": 1227 }, - "ctxt": 0, - "value": "doublyNested", - "optional": false + "value": "doublyNested" }, "value": { "type": "ObjectExpression", @@ -2447,9 +2409,7 @@ "start": 1243, "end": 1244 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -2469,9 +2429,7 @@ "start": 1265, "end": 1266 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "StringLiteral", @@ -2491,9 +2449,7 @@ "start": 1286, "end": 1287 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "StringLiteral", @@ -2513,9 +2469,7 @@ "start": 1307, "end": 1308 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "StringLiteral", @@ -2538,9 +2492,7 @@ "start": 1343, "end": 1352 }, - "ctxt": 0, - "value": "different", - "optional": false + "value": "different" }, "value": { "type": "ObjectExpression", @@ -2557,9 +2509,7 @@ "start": 1356, "end": 1357 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -2582,9 +2532,7 @@ "start": 1373, "end": 1378 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "value": { "type": "ObjectExpression", @@ -2601,9 +2549,7 @@ "start": 1382, "end": 1383 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeReadonly.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeReadonly.json index c727e561a31b..07efd0d2c80c 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeReadonly.json @@ -416,9 +416,7 @@ "start": 274, "end": 279 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -550,9 +548,7 @@ "start": 371, "end": 376 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -684,9 +680,7 @@ "start": 463, "end": 468 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -818,9 +812,7 @@ "start": 530, "end": 535 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -952,9 +944,7 @@ "start": 640, "end": 645 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json b/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json index dce79d08c395..bcd1d1a39fe8 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json @@ -1706,9 +1706,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -1717,9 +1715,7 @@ "start": 604, "end": 610 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -1790,9 +1786,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json b/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json index 3409b63c6120..9a223f4ceae0 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json @@ -1691,9 +1691,7 @@ "start": 779, "end": 785 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -2260,9 +2258,7 @@ "start": 979, "end": 980 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/intlDateTimeFormatRangeES2021.json b/crates/swc_ecma_parser/tests/tsc/intlDateTimeFormatRangeES2021.json index 9e5fa005c560..2b1e56cad322 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlDateTimeFormatRangeES2021.json +++ b/crates/swc_ecma_parser/tests/tsc/intlDateTimeFormatRangeES2021.json @@ -53,9 +53,7 @@ "start": 27, "end": 41 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [], @@ -67,9 +65,7 @@ "start": 44, "end": 55 }, - "ctxt": 0, - "value": "formatRange", - "optional": false + "value": "formatRange" } }, "arguments": [ @@ -216,9 +212,7 @@ "start": 108, "end": 122 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [], @@ -230,9 +224,7 @@ "start": 125, "end": 143 }, - "ctxt": 0, - "value": "formatRangeToParts", - "optional": false + "value": "formatRangeToParts" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json index 95d521a139d9..315394b338d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json @@ -131,9 +131,7 @@ "start": 130, "end": 142 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -158,9 +156,7 @@ "start": 152, "end": 167 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -205,9 +201,7 @@ "start": 198, "end": 210 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -273,9 +267,7 @@ "start": 264, "end": 276 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -308,9 +300,7 @@ "start": 288, "end": 303 }, - "ctxt": 0, - "value": "numberingSystem", - "optional": false + "value": "numberingSystem" }, "value": { "type": "StringLiteral", @@ -436,9 +426,7 @@ "start": 373, "end": 385 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -471,9 +459,7 @@ "start": 397, "end": 402 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" }, "value": { "type": "StringLiteral", @@ -493,9 +479,7 @@ "start": 416, "end": 424 }, - "ctxt": 0, - "value": "currency", - "optional": false + "value": "currency" }, "value": { "type": "StringLiteral", @@ -515,9 +499,7 @@ "start": 433, "end": 445 }, - "ctxt": 0, - "value": "currencySign", - "optional": false + "value": "currencySign" }, "value": { "type": "StringLiteral", @@ -541,9 +523,7 @@ "start": 463, "end": 478 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -660,9 +640,7 @@ "start": 531, "end": 543 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -695,9 +673,7 @@ "start": 555, "end": 560 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" }, "value": { "type": "StringLiteral", @@ -717,9 +693,7 @@ "start": 570, "end": 574 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" }, "value": { "type": "StringLiteral", @@ -739,9 +713,7 @@ "start": 588, "end": 599 }, - "ctxt": 0, - "value": "unitDisplay", - "optional": false + "value": "unitDisplay" }, "value": { "type": "StringLiteral", @@ -765,9 +737,7 @@ "start": 613, "end": 628 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -865,9 +835,7 @@ "start": 680, "end": 692 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -900,9 +868,7 @@ "start": 704, "end": 712 }, - "ctxt": 0, - "value": "notation", - "optional": false + "value": "notation" }, "value": { "type": "StringLiteral", @@ -922,9 +888,7 @@ "start": 725, "end": 739 }, - "ctxt": 0, - "value": "compactDisplay", - "optional": false + "value": "compactDisplay" }, "value": { "type": "StringLiteral", @@ -948,9 +912,7 @@ "start": 751, "end": 766 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -995,9 +957,7 @@ "start": 796, "end": 808 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1030,9 +990,7 @@ "start": 820, "end": 831 }, - "ctxt": 0, - "value": "signDisplay", - "optional": false + "value": "signDisplay" }, "value": { "type": "StringLiteral", @@ -1096,6 +1054,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 902, + "end": 928 + }, "left": { "type": "Identifier", "span": { @@ -1112,9 +1074,7 @@ "start": 907, "end": 928 }, - "ctxt": 0, - "value": "NumberFormatPartTypes", - "optional": false + "value": "NumberFormatPartTypes" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json index d869ce0154c8..d004767b04dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json +++ b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json @@ -169,9 +169,7 @@ "start": 255, "end": 267 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -196,9 +194,7 @@ "start": 277, "end": 292 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -243,9 +239,7 @@ "start": 323, "end": 335 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -311,9 +305,7 @@ "start": 372, "end": 384 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -346,9 +338,7 @@ "start": 396, "end": 412 }, - "ctxt": 0, - "value": "roundingPriority", - "optional": false + "value": "roundingPriority" }, "value": { "type": "StringLiteral", @@ -368,9 +358,7 @@ "start": 431, "end": 448 }, - "ctxt": 0, - "value": "roundingIncrement", - "optional": false + "value": "roundingIncrement" }, "value": { "type": "NumericLiteral", @@ -390,9 +378,7 @@ "start": 455, "end": 467 }, - "ctxt": 0, - "value": "roundingMode", - "optional": false + "value": "roundingMode" }, "value": { "type": "StringLiteral", @@ -499,9 +485,7 @@ "start": 541, "end": 553 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -534,9 +518,7 @@ "start": 565, "end": 576 }, - "ctxt": 0, - "value": "signDisplay", - "optional": false + "value": "signDisplay" }, "value": { "type": "StringLiteral", @@ -560,9 +542,7 @@ "start": 592, "end": 607 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], @@ -607,9 +587,7 @@ "start": 647, "end": 659 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -642,9 +620,7 @@ "start": 671, "end": 682 }, - "ctxt": 0, - "value": "useGrouping", - "optional": false + "value": "useGrouping" }, "value": { "type": "BooleanLiteral", @@ -697,9 +673,7 @@ "start": 702, "end": 714 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -732,9 +706,7 @@ "start": 726, "end": 737 }, - "ctxt": 0, - "value": "useGrouping", - "optional": false + "value": "useGrouping" }, "value": { "type": "StringLiteral", @@ -788,9 +760,7 @@ "start": 759, "end": 771 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -823,9 +793,7 @@ "start": 783, "end": 794 }, - "ctxt": 0, - "value": "useGrouping", - "optional": false + "value": "useGrouping" }, "value": { "type": "StringLiteral", @@ -892,9 +860,7 @@ "start": 834, "end": 846 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -919,9 +885,7 @@ "start": 856, "end": 867 }, - "ctxt": 0, - "value": "formatRange", - "optional": false + "value": "formatRange" } }, "arguments": [ @@ -1001,9 +965,7 @@ "start": 887, "end": 899 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1028,9 +990,7 @@ "start": 909, "end": 920 }, - "ctxt": 0, - "value": "formatRange", - "optional": false + "value": "formatRange" } }, "arguments": [ @@ -1126,9 +1086,7 @@ "start": 943, "end": 955 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1153,9 +1111,7 @@ "start": 965, "end": 983 }, - "ctxt": 0, - "value": "formatRangeToParts", - "optional": false + "value": "formatRangeToParts" } }, "arguments": [ @@ -1258,9 +1214,7 @@ "start": 1007, "end": 1019 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1285,9 +1239,7 @@ "start": 1029, "end": 1047 }, - "ctxt": 0, - "value": "formatRangeToParts", - "optional": false + "value": "formatRangeToParts" } }, "arguments": [ @@ -1394,9 +1346,7 @@ "start": 1114, "end": 1126 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1421,9 +1371,7 @@ "start": 1136, "end": 1142 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -1491,9 +1439,7 @@ "start": 1165, "end": 1177 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1518,9 +1464,7 @@ "start": 1187, "end": 1198 }, - "ctxt": 0, - "value": "formatRange", - "optional": false + "value": "formatRange" } }, "arguments": [ @@ -1600,9 +1544,7 @@ "start": 1227, "end": 1239 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1627,9 +1569,7 @@ "start": 1249, "end": 1267 }, - "ctxt": 0, - "value": "formatRangeToParts", - "optional": false + "value": "formatRangeToParts" } }, "arguments": [ @@ -1709,9 +1649,7 @@ "start": 1297, "end": 1309 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1736,9 +1674,7 @@ "start": 1319, "end": 1325 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -1806,9 +1742,7 @@ "start": 1348, "end": 1360 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1833,9 +1767,7 @@ "start": 1370, "end": 1376 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ @@ -1903,9 +1835,7 @@ "start": 1400, "end": 1412 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -1930,9 +1860,7 @@ "start": 1422, "end": 1428 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json index dad0a7334810..576ef73b9c7a 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json +++ b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json @@ -40,9 +40,7 @@ "start": 44, "end": 56 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -75,9 +73,7 @@ "start": 68, "end": 79 }, - "ctxt": 0, - "value": "useGrouping", - "optional": false + "value": "useGrouping" }, "value": { "type": "BooleanLiteral", @@ -130,9 +126,7 @@ "start": 99, "end": 111 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -165,9 +159,7 @@ "start": 123, "end": 134 }, - "ctxt": 0, - "value": "useGrouping", - "optional": false + "value": "useGrouping" }, "value": { "type": "StringLiteral", @@ -221,9 +213,7 @@ "start": 172, "end": 184 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -256,9 +246,7 @@ "start": 196, "end": 207 }, - "ctxt": 0, - "value": "useGrouping", - "optional": false + "value": "useGrouping" }, "value": { "type": "StringLiteral", @@ -365,9 +353,7 @@ "start": 272, "end": 284 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -392,9 +378,7 @@ "start": 294, "end": 309 }, - "ctxt": 0, - "value": "resolvedOptions", - "optional": false + "value": "resolvedOptions" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json b/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json index 8661266e902a..94486377ebd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json +++ b/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json @@ -325,9 +325,7 @@ "start": 181, "end": 188 }, - "ctxt": 0, - "value": "produce", - "optional": false + "value": "produce" }, "value": { "type": "ArrowFunctionExpression", @@ -360,9 +358,7 @@ "start": 203, "end": 210 }, - "ctxt": 0, - "value": "consume", - "optional": false + "value": "consume" }, "value": { "type": "ArrowFunctionExpression", @@ -413,9 +409,7 @@ "start": 219, "end": 226 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -475,9 +469,7 @@ "start": 247, "end": 254 }, - "ctxt": 0, - "value": "produce", - "optional": false + "value": "produce" }, "value": { "type": "ArrowFunctionExpression", @@ -522,9 +514,7 @@ "start": 269, "end": 276 }, - "ctxt": 0, - "value": "consume", - "optional": false + "value": "consume" }, "value": { "type": "ArrowFunctionExpression", @@ -575,9 +565,7 @@ "start": 285, "end": 292 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -637,9 +625,7 @@ "start": 314, "end": 321 }, - "ctxt": 0, - "value": "produce", - "optional": false + "value": "produce" }, "params": [], "decorators": [], @@ -687,9 +673,7 @@ "start": 355, "end": 362 }, - "ctxt": 0, - "value": "consume", - "optional": false + "value": "consume" }, "value": { "type": "ArrowFunctionExpression", @@ -740,9 +724,7 @@ "start": 371, "end": 378 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1111,9 +1093,7 @@ "start": 488, "end": 495 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1253,9 +1233,7 @@ "start": 526, "end": 533 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1715,9 +1693,7 @@ "start": 784, "end": 799 }, - "ctxt": 0, - "value": "retrieveGeneric", - "optional": false + "value": "retrieveGeneric" }, "value": { "type": "ArrowFunctionExpression", @@ -1762,9 +1738,7 @@ "start": 821, "end": 839 }, - "ctxt": 0, - "value": "operateWithGeneric", - "optional": false + "value": "operateWithGeneric" }, "value": { "type": "ArrowFunctionExpression", @@ -1815,9 +1789,7 @@ "start": 860, "end": 867 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -2111,9 +2083,7 @@ "start": 970, "end": 979 }, - "ctxt": 0, - "value": "mutations", - "optional": false + "value": "mutations" }, "value": { "type": "ObjectExpression", @@ -2130,9 +2100,7 @@ "start": 990, "end": 993 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], @@ -2166,9 +2134,7 @@ "start": 1009, "end": 1015 }, - "ctxt": 0, - "value": "action", - "optional": false + "value": "action" }, "value": { "type": "ArrowFunctionExpression", @@ -2233,9 +2199,7 @@ "start": 1028, "end": 1031 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2535,9 +2499,7 @@ "start": 1143, "end": 1144 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -2587,9 +2549,7 @@ "start": 1171, "end": 1172 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "params": [ { @@ -2680,9 +2640,7 @@ "start": 1195, "end": 1196 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", @@ -2734,9 +2692,7 @@ "start": 1229, "end": 1230 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "params": [ { @@ -2827,9 +2783,7 @@ "start": 1253, "end": 1254 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "params": [], "decorators": [], @@ -2877,9 +2831,7 @@ "start": 1276, "end": 1277 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "params": [ { @@ -3424,9 +3376,7 @@ "start": 1447, "end": 1448 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -3459,9 +3409,7 @@ "start": 1463, "end": 1464 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -3506,9 +3454,7 @@ "start": 1482, "end": 1483 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -3649,9 +3595,7 @@ "start": 1545, "end": 1546 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -3684,9 +3628,7 @@ "start": 1561, "end": 1562 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -3732,9 +3674,7 @@ "start": 1578, "end": 1579 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -3866,9 +3806,7 @@ "start": 1688, "end": 1693 }, - "ctxt": 0, - "value": "value", - "optional": true + "value": "value" }, "value": null, "typeAnnotation": { @@ -4921,9 +4859,7 @@ "start": 2158, "end": 2163 }, - "ctxt": 0, - "value": "setup", - "optional": false + "value": "setup" }, "params": [], "decorators": [], @@ -4961,9 +4897,7 @@ "start": 2197, "end": 2203 }, - "ctxt": 0, - "value": "inputs", - "optional": false + "value": "inputs" }, "value": { "type": "ObjectExpression", @@ -4980,9 +4914,7 @@ "start": 2223, "end": 2226 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" }, "value": { "type": "NewExpression", @@ -5029,9 +4961,7 @@ "start": 2267, "end": 2270 }, - "ctxt": 0, - "value": "str", - "optional": false + "value": "str" }, "value": { "type": "NewExpression", @@ -5081,9 +5011,7 @@ "start": 2321, "end": 2328 }, - "ctxt": 0, - "value": "outputs", - "optional": false + "value": "outputs" }, "value": { "type": "ObjectExpression", @@ -5100,9 +5028,7 @@ "start": 2348, "end": 2352 }, - "ctxt": 0, - "value": "bool", - "optional": false + "value": "bool" }, "value": { "type": "NewExpression", @@ -5149,9 +5075,7 @@ "start": 2394, "end": 2397 }, - "ctxt": 0, - "value": "str", - "optional": false + "value": "str" }, "value": { "type": "NewExpression", @@ -5211,9 +5135,7 @@ "start": 2457, "end": 2460 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" }, "params": [ { @@ -5271,9 +5193,7 @@ "start": 2500, "end": 2504 }, - "ctxt": 0, - "value": "bool", - "optional": false + "value": "bool" }, "value": { "type": "MemberExpression", @@ -5297,9 +5217,7 @@ "start": 2513, "end": 2524 }, - "ctxt": 0, - "value": "nonexistent", - "optional": false + "value": "nonexistent" } } }, @@ -5311,9 +5229,7 @@ "start": 2538, "end": 2541 }, - "ctxt": 0, - "value": "str", - "optional": false + "value": "str" }, "value": { "type": "MemberExpression", @@ -5337,9 +5253,7 @@ "start": 2550, "end": 2553 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } } } @@ -6156,9 +6070,7 @@ "start": 2880, "end": 2889 }, - "ctxt": 0, - "value": "generator", - "optional": false + "value": "generator" }, "value": { "type": "ArrowFunctionExpression", @@ -6191,9 +6103,7 @@ "start": 2902, "end": 2910 }, - "ctxt": 0, - "value": "receiver", - "optional": false + "value": "receiver" }, "value": { "type": "ArrowFunctionExpression", @@ -6244,9 +6154,7 @@ "start": 2927, "end": 2930 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -6337,9 +6245,7 @@ "start": 2953, "end": 2962 }, - "ctxt": 0, - "value": "generator", - "optional": false + "value": "generator" }, "value": { "type": "ArrowFunctionExpression", @@ -6410,9 +6316,7 @@ "start": 2986, "end": 2994 }, - "ctxt": 0, - "value": "receiver", - "optional": false + "value": "receiver" }, "value": { "type": "ArrowFunctionExpression", @@ -6463,9 +6367,7 @@ "start": 3011, "end": 3014 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -6653,9 +6555,7 @@ "start": 3072, "end": 3075 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -7272,9 +7172,7 @@ "start": 3385, "end": 3390 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } }, "arguments": [ @@ -7345,9 +7243,7 @@ "start": 3427, "end": 3430 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -7597,9 +7493,7 @@ "start": 3514, "end": 3519 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" }, "value": { "type": "ArrowFunctionExpression", @@ -7668,9 +7562,7 @@ "start": 3550, "end": 3553 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" }, "value": { "type": "ArrowFunctionExpression", @@ -7780,9 +7672,7 @@ "start": 3601, "end": 3606 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" }, "value": { "type": "ArrowFunctionExpression", @@ -7876,9 +7766,7 @@ "start": 3650, "end": 3653 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" }, "value": { "type": "ArrowFunctionExpression", @@ -7988,9 +7876,7 @@ "start": 3701, "end": 3706 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" }, "value": { "type": "ArrowFunctionExpression", @@ -8070,9 +7956,7 @@ "start": 3742, "end": 3745 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" }, "value": { "type": "ArrowFunctionExpression", @@ -8673,9 +8557,7 @@ "start": 3950, "end": 3954 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "Identifier", @@ -8696,9 +8578,7 @@ "start": 3961, "end": 3963 }, - "ctxt": 0, - "value": "if", - "optional": false + "value": "if" }, "value": { "type": "ArrowFunctionExpression", @@ -8808,9 +8688,7 @@ "start": 3995, "end": 3999 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" }, "value": { "type": "ArrowFunctionExpression", @@ -9345,9 +9223,7 @@ "start": 4175, "end": 4176 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -9392,9 +9268,7 @@ "start": 4193, "end": 4194 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -9459,9 +9333,7 @@ "start": 4217, "end": 4225 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -9873,9 +9745,7 @@ "start": 4398, "end": 4402 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "ObjectExpression", @@ -9892,9 +9762,7 @@ "start": 4410, "end": 4417 }, - "ctxt": 0, - "value": "produce", - "optional": false + "value": "produce" }, "value": { "type": "ArrowFunctionExpression", @@ -9952,9 +9820,7 @@ "start": 4435, "end": 4442 }, - "ctxt": 0, - "value": "consume", - "optional": false + "value": "consume" }, "value": { "type": "ArrowFunctionExpression", @@ -10005,9 +9871,7 @@ "start": 4457, "end": 4461 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -10483,9 +10347,7 @@ "start": 4654, "end": 4655 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -10543,9 +10405,7 @@ "start": 4675, "end": 4683 }, - "ctxt": 0, - "value": "consume1", - "optional": false + "value": "consume1" }, "value": { "type": "ArrowFunctionExpression", @@ -10590,9 +10450,7 @@ "start": 4701, "end": 4709 }, - "ctxt": 0, - "value": "consume2", - "optional": false + "value": "consume2" }, "value": { "type": "ArrowFunctionExpression", @@ -11229,9 +11087,7 @@ "start": 5003, "end": 5004 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -11289,9 +11145,7 @@ "start": 5024, "end": 5025 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -11361,9 +11215,7 @@ "start": 5051, "end": 5059 }, - "ctxt": 0, - "value": "consume1", - "optional": false + "value": "consume1" }, "value": { "type": "ArrowFunctionExpression", @@ -11408,9 +11260,7 @@ "start": 5077, "end": 5085 }, - "ctxt": 0, - "value": "consume2", - "optional": false + "value": "consume2" }, "value": { "type": "ArrowFunctionExpression", @@ -12028,9 +11878,7 @@ "start": 5323, "end": 5324 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -12088,9 +11936,7 @@ "start": 5344, "end": 5345 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ConditionalExpression", @@ -12127,9 +11973,7 @@ "start": 5352, "end": 5358 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -12227,9 +12071,7 @@ "start": 5418, "end": 5419 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -12944,9 +12786,7 @@ "start": 5651, "end": 5652 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -13004,9 +12844,7 @@ "start": 5672, "end": 5678 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -13023,9 +12861,7 @@ "start": 5686, "end": 5687 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -13076,9 +12912,7 @@ "start": 5702, "end": 5706 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -13111,9 +12945,7 @@ "start": 5717, "end": 5724 }, - "ctxt": 0, - "value": "nested2", - "optional": false + "value": "nested2" }, "value": { "type": "ObjectExpression", @@ -13130,9 +12962,7 @@ "start": 5734, "end": 5735 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -13998,9 +13828,7 @@ "start": 6014, "end": 6015 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -14058,9 +13886,7 @@ "start": 6035, "end": 6041 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -14077,9 +13903,7 @@ "start": 6049, "end": 6050 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", @@ -14130,9 +13954,7 @@ "start": 6065, "end": 6069 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -14165,9 +13987,7 @@ "start": 6080, "end": 6081 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -14237,9 +14057,7 @@ "start": 6109, "end": 6116 }, - "ctxt": 0, - "value": "nested2", - "optional": false + "value": "nested2" }, "value": { "type": "ObjectExpression", @@ -14256,9 +14074,7 @@ "start": 6126, "end": 6127 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrowFunctionExpression", @@ -14795,9 +14611,7 @@ "start": 6369, "end": 6372 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -14814,9 +14628,7 @@ "start": 6380, "end": 6383 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -14833,9 +14645,7 @@ "start": 6393, "end": 6396 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "ObjectExpression", @@ -14852,9 +14662,7 @@ "start": 6408, "end": 6416 }, - "ctxt": 0, - "value": "producer", - "optional": false + "value": "producer" }, "value": { "type": "ArrowFunctionExpression", @@ -14908,9 +14716,7 @@ "start": 6453, "end": 6461 }, - "ctxt": 0, - "value": "consumer", - "optional": false + "value": "consumer" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json b/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json index 7432d05fcf56..c4e7b242ec26 100644 --- a/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json +++ b/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json @@ -500,6 +500,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 304, + "end": 323 + }, "left": { "type": "Identifier", "span": { @@ -516,9 +520,7 @@ "start": 314, "end": 323 }, - "ctxt": 0, - "value": "intrinsic", - "optional": false + "value": "intrinsic" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json b/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json index 0bfd39fbd2bf..66e44c43a77c 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json @@ -221,9 +221,7 @@ "start": 57, "end": 60 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json index 822a501166a0..a8b26832c32c 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidBooleanAssignments.json @@ -410,9 +410,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json index 329c9b2a8ff0..ba88de8be01b 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json @@ -277,9 +277,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -330,9 +328,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/invalidImportAliasIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/invalidImportAliasIdentifiers.json index ec1b9075c2b4..58dbe2e3eb03 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidImportAliasIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidImportAliasIdentifiers.json @@ -106,9 +106,7 @@ "start": 105, "end": 109 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidInstantiatedModule.json b/crates/swc_ecma_parser/tests/tsc/invalidInstantiatedModule.json index f39c39aca311..7073a845ba45 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidInstantiatedModule.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidInstantiatedModule.json @@ -68,9 +68,7 @@ "start": 37, "end": 38 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -110,9 +108,7 @@ "start": 48, "end": 49 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -459,6 +455,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 211, + "end": 218 + }, "left": { "type": "Identifier", "span": { @@ -475,9 +475,7 @@ "start": 213, "end": 218 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json b/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json index f9e264c6f5e2..b0c389064237 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json @@ -101,9 +101,7 @@ "start": 61, "end": 63 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -143,9 +141,7 @@ "start": 77, "end": 82 }, - "ctxt": 0, - "value": "valid", - "optional": false + "value": "valid" }, "value": null, "typeAnnotation": { @@ -231,9 +227,7 @@ "start": 121, "end": 125 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -309,9 +303,7 @@ "start": 154, "end": 160 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -361,9 +353,7 @@ "start": 169, "end": 176 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -439,9 +429,7 @@ "start": 188, "end": 195 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -730,9 +718,7 @@ "start": 294, "end": 298 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -871,9 +857,7 @@ "start": 368, "end": 376 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2011,9 +1995,7 @@ "start": 779, "end": 780 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/invalidNestedModules.json b/crates/swc_ecma_parser/tests/tsc/invalidNestedModules.json index 5f96f3f4e0e1..c1bd4d273b3b 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidNestedModules.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidNestedModules.json @@ -104,9 +104,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -146,9 +144,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -283,9 +279,7 @@ "start": 167, "end": 171 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -409,9 +403,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -451,9 +443,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json index 15472a5ca028..d0f0de539e6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidNumberAssignments.json @@ -307,9 +307,7 @@ "start": 109, "end": 112 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidReturnStatements.json b/crates/swc_ecma_parser/tests/tsc/invalidReturnStatements.json index d200cef81393..2c18c35e040b 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidReturnStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidReturnStatements.json @@ -351,9 +351,7 @@ "start": 265, "end": 267 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -393,9 +391,7 @@ "start": 281, "end": 288 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" }, "function": { "params": [], @@ -484,9 +480,7 @@ "start": 320, "end": 324 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -579,9 +573,7 @@ "start": 366, "end": 368 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json index 0691df44038e..aa6248bae5cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json @@ -307,9 +307,7 @@ "start": 110, "end": 113 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json index 559d778a90dc..3c686b143671 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedAssignments.json @@ -171,9 +171,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -220,9 +218,7 @@ "start": 67, "end": 70 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json index 7f4ae30b441e..6fcc0d9765ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json @@ -312,9 +312,7 @@ "start": 93, "end": 96 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -783,9 +781,7 @@ "start": 223, "end": 224 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -1114,9 +1110,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json index e8fc9ee8be61..c6e0433b9c53 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidVoidAssignments.json @@ -313,9 +313,7 @@ "start": 113, "end": 116 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1136,9 +1134,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1182,9 +1178,7 @@ "start": 361, "end": 362 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json b/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json index 7793cba2b4af..a2d1405420b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json @@ -276,9 +276,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -315,9 +313,7 @@ "start": 80, "end": 83 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -639,9 +635,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json b/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json index 72927490c3cf..22b6f01058cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json @@ -377,9 +377,7 @@ "start": 208, "end": 213 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -608,9 +606,7 @@ "start": 270, "end": 275 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -1776,9 +1772,7 @@ "start": 718, "end": 723 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -1927,9 +1921,7 @@ "start": 784, "end": 785 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1949,9 +1941,7 @@ "start": 799, "end": 800 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1971,9 +1961,7 @@ "start": 819, "end": 820 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -2124,9 +2112,7 @@ "start": 879, "end": 880 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -2135,9 +2121,7 @@ "start": 881, "end": 886 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "definite": false @@ -2221,9 +2205,7 @@ "start": 929, "end": 930 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -2267,9 +2249,7 @@ "start": 949, "end": 950 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -2313,9 +2293,7 @@ "start": 974, "end": 975 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -2484,9 +2462,7 @@ "start": 1041, "end": 1042 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2570,9 +2546,7 @@ "start": 1085, "end": 1086 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -2616,9 +2590,7 @@ "start": 1105, "end": 1106 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -2662,9 +2634,7 @@ "start": 1130, "end": 1131 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -2759,9 +2729,7 @@ "start": 1174, "end": 1175 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -2856,9 +2824,7 @@ "start": 1228, "end": 1229 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -2902,9 +2868,7 @@ "start": 1248, "end": 1249 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -2948,9 +2912,7 @@ "start": 1273, "end": 1274 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -3494,9 +3456,7 @@ "start": 1496, "end": 1497 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -3540,9 +3500,7 @@ "start": 1516, "end": 1517 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -3586,9 +3544,7 @@ "start": 1541, "end": 1542 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -3786,9 +3742,7 @@ "start": 1628, "end": 1629 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -4104,9 +4058,7 @@ "start": 1769, "end": 1770 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -4150,9 +4102,7 @@ "start": 1789, "end": 1790 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -4196,9 +4146,7 @@ "start": 1814, "end": 1815 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -6068,9 +6016,7 @@ "start": 2936, "end": 2939 }, - "ctxt": 0, - "value": "sum", - "optional": false + "value": "sum" }, "value": { "type": "ArrowFunctionExpression", @@ -6129,9 +6075,7 @@ "start": 2960, "end": 2966 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -6148,9 +6092,7 @@ "start": 2978, "end": 2981 }, - "ctxt": 0, - "value": "mul", - "optional": false + "value": "mul" }, "value": { "type": "ArrowFunctionExpression", @@ -6276,9 +6218,7 @@ "start": 3100, "end": 3103 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -6295,9 +6235,7 @@ "start": 3107, "end": 3110 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -6314,9 +6252,7 @@ "start": 3114, "end": 3117 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "ArrowFunctionExpression", @@ -6605,9 +6541,7 @@ "start": 3235, "end": 3236 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6627,9 +6561,7 @@ "start": 3241, "end": 3242 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -6701,9 +6633,7 @@ "start": 3256, "end": 3257 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -6794,9 +6724,7 @@ "start": 3276, "end": 3277 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -8129,9 +8057,7 @@ "start": 3791, "end": 3794 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -8151,9 +8077,7 @@ "start": 3800, "end": 3803 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -8237,9 +8161,7 @@ "start": 3832, "end": 3835 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -8259,9 +8181,7 @@ "start": 3841, "end": 3844 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -8345,9 +8265,7 @@ "start": 3873, "end": 3876 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -8364,9 +8282,7 @@ "start": 3880, "end": 3885 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -8389,9 +8305,7 @@ "start": 3893, "end": 3896 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -8408,9 +8322,7 @@ "start": 3900, "end": 3905 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -8497,9 +8409,7 @@ "start": 3936, "end": 3939 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -8519,9 +8429,7 @@ "start": 3945, "end": 3948 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -8605,9 +8513,7 @@ "start": 3977, "end": 3980 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -8627,9 +8533,7 @@ "start": 3986, "end": 3989 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern1.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern1.json index 767b1f11a8bc..e3d11dc426da 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern1.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern1.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern10.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern10.json index d9afaaf1d273..97ce29f263b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern10.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern10.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern11.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern11.json index 9c6db208808e..ea677e3107b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern11.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern11.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern12.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern12.json index 12819e830e50..8edee4c2b089 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern12.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern12.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern13.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern13.json index 5956dae912a2..cd8436dfdea1 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern13.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern13.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern14.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern14.json index 78a80a37f8ff..27558feaf9c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern14.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern14.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern15.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern15.json index cce7a9a9ce77..f1001e2a612d 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern15.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern15.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern16.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern16.json index f63f3c64bac7..a2cbb290ec26 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern16.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern16.json @@ -253,9 +253,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -308,9 +306,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -372,9 +368,7 @@ "start": 159, "end": 163 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -413,9 +407,7 @@ "start": 197, "end": 202 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -446,9 +438,7 @@ "start": 225, "end": 229 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -510,9 +500,7 @@ "start": 267, "end": 275 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -599,9 +587,7 @@ "start": 343, "end": 347 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -640,9 +626,7 @@ "start": 381, "end": 386 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -673,9 +657,7 @@ "start": 417, "end": 421 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -737,9 +719,7 @@ "start": 459, "end": 467 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern17.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern17.json index b3ef56f23c46..f70a6c379c92 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern17.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern17.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern18.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern18.json index 8d3c38ef5bb7..5fb39889aed7 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern18.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern18.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern19.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern19.json index b8c7822056b2..cea356b24b71 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern19.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern19.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 89, "end": 93 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 127, "end": 132 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ArrayExpression", @@ -242,9 +234,7 @@ "start": 157, "end": 161 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -306,9 +296,7 @@ "start": 199, "end": 207 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern2.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern2.json index f633eeb7b7f8..b25d0bff192b 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern2.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern2.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern20.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern20.json index 6b38c1d8dd47..ce56d5f0add2 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern20.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern20.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 89, "end": 93 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 127, "end": 132 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ArrayExpression", @@ -242,9 +234,7 @@ "start": 157, "end": 161 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -306,9 +296,7 @@ "start": 199, "end": 207 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern3.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern3.json index d616f451ae0c..aa86edd8ca8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern3.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern3.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern4.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern4.json index f8342669433a..d4d97b5dcae7 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern4.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern4.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern5.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern5.json index d9ee3aed8f8e..9d247f2e25e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern5.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern5.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern6.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern6.json index 7dd495291b13..6ff957ebee4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern6.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern6.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern7.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern7.json index 7f9bf112a4c7..b32f89330e1a 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern7.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern7.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern8.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern8.json index f25bfff23d01..58cc4cb422fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern8.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern8.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -92,9 +90,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -156,9 +152,7 @@ "start": 84, "end": 88 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -197,9 +191,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -230,9 +222,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -294,9 +284,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern9.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern9.json index 93f31635be98..95cf91b611ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern9.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern9.json @@ -140,9 +140,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -195,9 +193,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -259,9 +255,7 @@ "start": 127, "end": 131 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -300,9 +294,7 @@ "start": 165, "end": 170 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NewExpression", @@ -333,9 +325,7 @@ "start": 193, "end": 197 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -397,9 +387,7 @@ "start": 235, "end": 243 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json index 759c8620d8d8..860af6421a99 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableContextualTyping1.json @@ -165,9 +165,7 @@ "start": 68, "end": 74 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray.json index 946c3c17920d..fae1419790b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray10.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray10.json index 29b9763a3f1c..91056d61a52b 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray10.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray10.json @@ -59,9 +59,7 @@ "start": 51, "end": 59 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray2.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray2.json index c735b52740d2..0a8800d7c0e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray2.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray2.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -264,9 +256,7 @@ "start": 223, "end": 227 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -305,9 +295,7 @@ "start": 261, "end": 266 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -327,9 +315,7 @@ "start": 283, "end": 287 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -391,9 +377,7 @@ "start": 325, "end": 333 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray3.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray3.json index 517a93da00e3..aac30df8d089 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray3.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray3.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray4.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray4.json index f2b3c9761aa6..cf083e39eb39 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray4.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray4.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray5.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray5.json index a7916abedd6f..8f48fbe17469 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray5.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray5.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray6.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray6.json index 400103e623c5..d2bbaaa997ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray6.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray6.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -352,9 +344,7 @@ "start": 232, "end": 238 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray7.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray7.json index 0681c95d7aac..ed108c30bb7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray7.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray7.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -175,9 +169,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -320,9 +312,7 @@ "start": 223, "end": 229 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray8.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray8.json index 709ed0737ddc..9ed26fd8844c 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray8.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray8.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -111,9 +107,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray9.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray9.json index cea6a7e16a7a..18f4bd918249 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray9.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInArray9.json @@ -37,9 +37,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -78,9 +76,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -154,9 +150,7 @@ "start": 127, "end": 135 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json index ed88553a9084..0f161d88e03d 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall.json @@ -105,9 +105,7 @@ "start": 71, "end": 75 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -146,9 +144,7 @@ "start": 109, "end": 114 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -179,9 +175,7 @@ "start": 138, "end": 142 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -243,9 +237,7 @@ "start": 180, "end": 188 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json index 550210e4f18a..0d7835bc458f 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall10.json @@ -193,9 +193,7 @@ "start": 83, "end": 87 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -234,9 +232,7 @@ "start": 121, "end": 126 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -267,9 +263,7 @@ "start": 150, "end": 154 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -331,9 +325,7 @@ "start": 192, "end": 200 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall11.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall11.json index 8500dac5ac9f..1edcc6d16c15 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall11.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall11.json @@ -205,9 +205,7 @@ "start": 86, "end": 90 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -246,9 +244,7 @@ "start": 124, "end": 129 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -279,9 +275,7 @@ "start": 153, "end": 157 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -343,9 +337,7 @@ "start": 195, "end": 203 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json index b369386d3852..4aa11e6ee551 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json @@ -38,9 +38,7 @@ "start": 35, "end": 46 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -187,9 +185,7 @@ "start": 92, "end": 96 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -228,9 +224,7 @@ "start": 130, "end": 135 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -261,9 +255,7 @@ "start": 159, "end": 163 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -325,9 +317,7 @@ "start": 201, "end": 209 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -414,9 +404,7 @@ "start": 273, "end": 277 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -455,9 +443,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -477,9 +463,7 @@ "start": 334, "end": 338 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -541,9 +525,7 @@ "start": 376, "end": 384 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json index bcf66e31d0fb..29c576f8c930 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall2.json @@ -112,9 +112,7 @@ "start": 73, "end": 77 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -153,9 +151,7 @@ "start": 111, "end": 116 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -186,9 +182,7 @@ "start": 140, "end": 144 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -250,9 +244,7 @@ "start": 182, "end": 190 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall3.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall3.json index b1c4be676d38..216c5ee5c86f 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall3.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall3.json @@ -124,9 +124,7 @@ "start": 76, "end": 80 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -165,9 +163,7 @@ "start": 114, "end": 119 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -198,9 +194,7 @@ "start": 143, "end": 147 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -262,9 +256,7 @@ "start": 185, "end": 193 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json index be5ac396dd16..c303e8c92f28 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall4.json @@ -157,9 +157,7 @@ "start": 88, "end": 92 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -198,9 +196,7 @@ "start": 126, "end": 131 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -231,9 +227,7 @@ "start": 155, "end": 159 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -295,9 +289,7 @@ "start": 197, "end": 205 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json index 71f855a4349b..666bbc774cdc 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json @@ -148,9 +148,7 @@ "start": 87, "end": 91 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -189,9 +187,7 @@ "start": 125, "end": 130 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -222,9 +218,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -286,9 +280,7 @@ "start": 196, "end": 204 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -375,9 +367,7 @@ "start": 268, "end": 272 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -416,9 +406,7 @@ "start": 306, "end": 311 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -438,9 +426,7 @@ "start": 329, "end": 333 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -502,9 +488,7 @@ "start": 371, "end": 379 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json index 5a322e887a3c..bb5c13c4c622 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json @@ -148,9 +148,7 @@ "start": 87, "end": 91 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -189,9 +187,7 @@ "start": 125, "end": 130 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -222,9 +218,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -286,9 +280,7 @@ "start": 196, "end": 204 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -375,9 +367,7 @@ "start": 268, "end": 272 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -416,9 +406,7 @@ "start": 306, "end": 311 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -438,9 +426,7 @@ "start": 329, "end": 333 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -502,9 +488,7 @@ "start": 371, "end": 379 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json index 09d3ae289b38..4877323781d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json @@ -205,9 +205,7 @@ "start": 87, "end": 91 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -246,9 +244,7 @@ "start": 125, "end": 130 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -279,9 +275,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -343,9 +337,7 @@ "start": 196, "end": 204 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -432,9 +424,7 @@ "start": 268, "end": 272 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -473,9 +463,7 @@ "start": 306, "end": 311 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -495,9 +483,7 @@ "start": 329, "end": 333 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -559,9 +545,7 @@ "start": 371, "end": 379 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json index 54331cea24d5..646641056038 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json @@ -38,9 +38,7 @@ "start": 35, "end": 46 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -187,9 +185,7 @@ "start": 92, "end": 96 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -228,9 +224,7 @@ "start": 130, "end": 135 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -261,9 +255,7 @@ "start": 159, "end": 163 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -325,9 +317,7 @@ "start": 201, "end": 209 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -414,9 +404,7 @@ "start": 273, "end": 277 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -455,9 +443,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -477,9 +463,7 @@ "start": 334, "end": 338 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -541,9 +525,7 @@ "start": 376, "end": 384 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json index fa02fd5a224b..6e40da33d351 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json @@ -38,9 +38,7 @@ "start": 35, "end": 46 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -187,9 +185,7 @@ "start": 92, "end": 96 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -228,9 +224,7 @@ "start": 130, "end": 135 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -261,9 +255,7 @@ "start": 159, "end": 163 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -325,9 +317,7 @@ "start": 201, "end": 209 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -414,9 +404,7 @@ "start": 273, "end": 277 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -455,9 +443,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -477,9 +463,7 @@ "start": 334, "end": 338 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -541,9 +525,7 @@ "start": 376, "end": 384 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeJsContainer.json b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeJsContainer.json index 39d85c5169db..234b8d3a0507 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeJsContainer.json +++ b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeJsContainer.json @@ -79,9 +79,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -151,9 +149,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "property": { @@ -162,9 +158,7 @@ "start": 142, "end": 151 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration.json b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration.json index 965278492382..5f693fa0b02f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration.json @@ -104,9 +104,7 @@ "start": 107, "end": 108 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration2.json index f5a68dea6f1d..1c77b3cdb18a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration2.json @@ -108,9 +108,7 @@ "start": 145, "end": 154 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -158,9 +156,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration3.json b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration3.json index ab25755cd2ae..15e3a65e2626 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration3.json @@ -105,9 +105,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json index 0d970d5d868a..a2d5eb4ffa5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json @@ -181,9 +181,7 @@ "start": 295, "end": 306 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -210,9 +208,7 @@ "start": 318, "end": 324 }, - "ctxt": 0, - "value": "toJSON", - "optional": false + "value": "toJSON" }, "function": { "params": [], @@ -272,9 +268,7 @@ "start": 352, "end": 356 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "Identifier", @@ -295,9 +289,7 @@ "start": 369, "end": 373 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "Identifier", @@ -318,9 +310,7 @@ "start": 386, "end": 397 }, - "ctxt": 0, - "value": "inheritance", - "optional": false + "value": "inheritance" }, "value": { "type": "Identifier", @@ -456,9 +446,7 @@ "start": 593, "end": 598 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" }, "function": { "params": [ @@ -530,9 +518,7 @@ "start": 643, "end": 647 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "function": { "params": [], @@ -592,9 +578,7 @@ "start": 730, "end": 738 }, - "ctxt": 0, - "value": "validate", - "optional": false + "value": "validate" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json index c98d00059954..2fb37248f812 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json @@ -66,9 +66,7 @@ "start": 134, "end": 141 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -189,9 +187,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -211,9 +207,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -301,9 +295,7 @@ "start": 276, "end": 283 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -359,9 +351,7 @@ "start": 298, "end": 305 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -370,9 +360,7 @@ "start": 306, "end": 313 }, - "ctxt": 0, - "value": "Strings", - "optional": false + "value": "Strings" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json index 27b4e5b69044..c2c799fbcf63 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassImplementsGenericsSerialization.json @@ -191,9 +191,7 @@ "start": 326, "end": 332 }, - "ctxt": 0, - "value": "encode", - "optional": false + "value": "encode" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLeadingOptional.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLeadingOptional.json index 46c7ef50f97d..ff9d90f7b69d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLeadingOptional.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLeadingOptional.json @@ -43,9 +43,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLikeHeuristic.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLikeHeuristic.json index 064e200cc5a5..6fa47535caf5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLikeHeuristic.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassLikeHeuristic.json @@ -112,9 +112,7 @@ "start": 189, "end": 198 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -123,9 +121,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassMethod.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassMethod.json index fff9cfb55c10..5b6213895764 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassMethod.json @@ -65,9 +65,7 @@ "start": 300, "end": 304 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -219,9 +217,7 @@ "start": 450, "end": 459 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -230,9 +226,7 @@ "start": 460, "end": 466 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "right": { @@ -371,9 +365,7 @@ "start": 606, "end": 616 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { @@ -509,9 +501,7 @@ "start": 789, "end": 796 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ @@ -665,9 +655,7 @@ "start": 931, "end": 940 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -676,9 +664,7 @@ "start": 941, "end": 948 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" } }, "right": { @@ -817,9 +803,7 @@ "start": 1088, "end": 1098 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json index 05ef56fc7f17..dd3ce3d94271 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json @@ -37,9 +37,7 @@ "start": 145, "end": 152 }, - "ctxt": 0, - "value": "OPTIONS", - "optional": false + "value": "OPTIONS" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 174, "end": 181 }, - "ctxt": 0, - "value": "process", - "optional": false + "value": "process" }, "function": { "params": [], @@ -174,9 +170,7 @@ "start": 199, "end": 208 }, - "ctxt": 0, - "value": "statische", - "optional": false + "value": "statische" } }, "right": { @@ -247,9 +241,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -269,9 +261,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -324,9 +314,7 @@ "start": 277, "end": 284 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -382,9 +370,7 @@ "start": 303, "end": 310 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -393,9 +379,7 @@ "start": 311, "end": 318 }, - "ctxt": 0, - "value": "Strings", - "optional": false + "value": "Strings" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json index 6b07e44f5683..92f3226e2330 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json @@ -37,9 +37,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -145,9 +143,7 @@ "start": 200, "end": 203 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -271,9 +267,7 @@ "start": 297, "end": 300 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStaticMethodAugmentation.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStaticMethodAugmentation.json index dd2c26afbfe4..dc6819daf8ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStaticMethodAugmentation.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStaticMethodAugmentation.json @@ -43,9 +43,7 @@ "start": 149, "end": 155 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -125,9 +123,7 @@ "start": 171, "end": 177 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "property": { @@ -136,9 +132,7 @@ "start": 178, "end": 182 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json index ae3d9d4a1c13..7b353fd45bd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json @@ -76,9 +76,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "cat", - "optional": false + "value": "cat" }, "value": { "type": "StringLiteral", @@ -146,9 +144,7 @@ "start": 207, "end": 210 }, - "ctxt": 0, - "value": "Cls", - "optional": false + "value": "Cls" }, "value": { "type": "ClassExpression", @@ -224,9 +220,7 @@ "start": 312, "end": 323 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -326,9 +320,7 @@ "start": 419, "end": 424 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": null, "typeAnnotation": null, @@ -354,9 +346,7 @@ "start": 579, "end": 592 }, - "ctxt": 0, - "value": "readonlyField", - "optional": false + "value": "readonlyField" }, "value": null, "typeAnnotation": null, @@ -382,9 +372,7 @@ "start": 599, "end": 615 }, - "ctxt": 0, - "value": "initializedField", - "optional": false + "value": "initializedField" }, "value": { "type": "NumericLiteral", @@ -418,9 +406,7 @@ "start": 666, "end": 668 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -485,9 +471,7 @@ "start": 752, "end": 754 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [ @@ -550,9 +534,7 @@ "start": 806, "end": 808 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" }, "function": { "params": [], @@ -617,9 +599,7 @@ "start": 892, "end": 894 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "function": { "params": [ @@ -683,9 +663,7 @@ "start": 963, "end": 974 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -751,9 +729,7 @@ "start": 1035, "end": 1046 }, - "ctxt": 0, - "value": "staticField", - "optional": false + "value": "staticField" }, "value": null, "typeAnnotation": null, @@ -779,9 +755,7 @@ "start": 1209, "end": 1228 }, - "ctxt": 0, - "value": "staticReadonlyField", - "optional": false + "value": "staticReadonlyField" }, "value": null, "typeAnnotation": null, @@ -807,9 +781,7 @@ "start": 1242, "end": 1264 }, - "ctxt": 0, - "value": "staticInitializedField", - "optional": false + "value": "staticInitializedField" }, "value": { "type": "NumericLiteral", @@ -843,9 +815,7 @@ "start": 1327, "end": 1329 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "function": { "params": [], @@ -905,9 +875,7 @@ "start": 1405, "end": 1407 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "function": { "params": [ @@ -970,9 +938,7 @@ "start": 1471, "end": 1473 }, - "ctxt": 0, - "value": "s2", - "optional": false + "value": "s2" }, "function": { "params": [], @@ -1032,9 +998,7 @@ "start": 1549, "end": 1551 }, - "ctxt": 0, - "value": "s3", - "optional": false + "value": "s3" }, "function": { "params": [ @@ -1131,9 +1095,7 @@ "start": 1645, "end": 1650 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": null, "typeAnnotation": null, @@ -1160,9 +1122,7 @@ "start": 1712, "end": 1723 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1228,9 +1188,7 @@ "start": 1822, "end": 1828 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "function": { "params": [ @@ -1671,9 +1629,7 @@ "start": 2023, "end": 2034 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1716,9 +1672,7 @@ "start": 2052, "end": 2054 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -1764,9 +1718,7 @@ "start": 2074, "end": 2076 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } }, "right": { @@ -1797,9 +1749,7 @@ "start": 2096, "end": 2102 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -1842,9 +1792,7 @@ "start": 2127, "end": 2129 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1951,9 +1899,7 @@ "start": 2203, "end": 2214 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1996,9 +1942,7 @@ "start": 2232, "end": 2236 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -2070,9 +2014,7 @@ "start": 2348, "end": 2359 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2159,9 +2101,7 @@ "start": 2399, "end": 2406 }, - "ctxt": 0, - "value": "another", - "optional": false + "value": "another" } }, "right": { @@ -2237,9 +2177,7 @@ "start": 2539, "end": 2550 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2340,9 +2278,7 @@ "start": 2595, "end": 2603 }, - "ctxt": 0, - "value": "another2", - "optional": false + "value": "another2" } }, "right": { @@ -2504,9 +2440,7 @@ "start": 2732, "end": 2744 }, - "ctxt": 0, - "value": "staticMethod", - "optional": false + "value": "staticMethod" }, "function": { "params": [], @@ -2583,9 +2517,7 @@ "start": 2813, "end": 2817 }, - "ctxt": 0, - "value": "also", - "optional": false + "value": "also" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json index 2af2d493a227..e01e4aefbf97 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json @@ -43,9 +43,7 @@ "start": 328, "end": 333 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": null, "typeAnnotation": { @@ -159,9 +157,7 @@ "start": 378, "end": 383 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json index ffc3ff1da4f0..213adf804d5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json @@ -82,9 +82,7 @@ "start": 151, "end": 158 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -196,9 +194,7 @@ "start": 245, "end": 250 }, - "ctxt": 0, - "value": "Thing", - "optional": false + "value": "Thing" } }, "definite": false @@ -240,9 +236,7 @@ "start": 258, "end": 265 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json index 84a1f537c4c7..42cd9a974506 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json @@ -142,9 +142,7 @@ "start": 193, "end": 200 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -256,9 +254,7 @@ "start": 262, "end": 267 }, - "ctxt": 0, - "value": "items", - "optional": false + "value": "items" }, "value": { "type": "ObjectExpression", @@ -326,9 +322,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -366,9 +360,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -611,9 +603,7 @@ "start": 560, "end": 571 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json index 29eecf9d4c29..0fec6d754c95 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json @@ -53,9 +53,7 @@ "start": 144, "end": 153 }, - "ctxt": 0, - "value": "royalBlue", - "optional": false + "value": "royalBlue" }, "value": { "type": "StringLiteral", @@ -122,9 +120,7 @@ "start": 203, "end": 209 }, - "ctxt": 0, - "value": "purple", - "optional": false + "value": "purple" }, "value": { "type": "MemberExpression", @@ -148,9 +144,7 @@ "start": 218, "end": 227 }, - "ctxt": 0, - "value": "royalBlue", - "optional": false + "value": "royalBlue" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json index b7ddf0ec4a51..2b58b93a2b9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json @@ -104,9 +104,7 @@ "start": 170, "end": 177 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -131,9 +129,7 @@ "start": 182, "end": 189 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -179,9 +175,7 @@ "start": 198, "end": 205 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -190,9 +184,7 @@ "start": 206, "end": 216 }, - "ctxt": 0, - "value": "memberName", - "optional": false + "value": "memberName" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json index ee344961d08e..1736b7844c85 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json @@ -204,9 +204,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ParenthesisExpression", @@ -406,9 +404,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ParenthesisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json index a988ee04d836..c40e90c4cdeb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json @@ -37,9 +37,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json index b1b9704a26e3..5a7295b45206 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json @@ -173,9 +173,7 @@ "start": 255, "end": 262 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json index 71d795cd950c..5f1e00502496 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json @@ -53,9 +53,7 @@ "start": 166, "end": 171 }, - "ctxt": 0, - "value": "START", - "optional": false + "value": "START" }, "value": { "type": "StringLiteral", @@ -75,9 +73,7 @@ "start": 186, "end": 192 }, - "ctxt": 0, - "value": "MIDDLE", - "optional": false + "value": "MIDDLE" }, "value": { "type": "StringLiteral", @@ -97,9 +93,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "END", - "optional": false + "value": "END" }, "value": { "type": "StringLiteral", @@ -119,9 +113,7 @@ "start": 250, "end": 260 }, - "ctxt": 0, - "value": "OK_I_GUESS", - "optional": false + "value": "OK_I_GUESS" }, "value": { "type": "NumericLiteral", @@ -188,9 +180,7 @@ "start": 314, "end": 316 }, - "ctxt": 0, - "value": "OK", - "optional": false + "value": "OK" }, "value": { "type": "NumericLiteral", @@ -210,9 +200,7 @@ "start": 351, "end": 355 }, - "ctxt": 0, - "value": "FINE", - "optional": false + "value": "FINE" }, "value": { "type": "NumericLiteral", @@ -279,9 +267,7 @@ "start": 426, "end": 430 }, - "ctxt": 0, - "value": "ADD1", - "optional": false + "value": "ADD1" }, "value": { "type": "ArrowFunctionExpression", @@ -344,9 +330,7 @@ "start": 448, "end": 450 }, - "ctxt": 0, - "value": "ID", - "optional": false + "value": "ID" }, "value": { "type": "ArrowFunctionExpression", @@ -392,9 +376,7 @@ "start": 464, "end": 468 }, - "ctxt": 0, - "value": "SUB1", - "optional": false + "value": "SUB1" }, "value": { "type": "ArrowFunctionExpression", @@ -720,9 +702,7 @@ "start": 770, "end": 775 }, - "ctxt": 0, - "value": "START", - "optional": false + "value": "START" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpression.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpression.json index 64f65b30d494..1604f7b46825 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpression.json @@ -40,9 +40,7 @@ "start": 123, "end": 130 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -77,9 +75,7 @@ "start": 192, "end": 203 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -142,9 +138,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymous.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymous.json index cc823e501fdd..17aeb56cf30a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymous.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymous.json @@ -40,9 +40,7 @@ "start": 123, "end": 130 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -68,9 +66,7 @@ "start": 186, "end": 197 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -133,9 +129,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.json index 37cbf2403e33..6bff7863a4ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.json @@ -40,9 +40,7 @@ "start": 123, "end": 130 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -68,9 +66,7 @@ "start": 186, "end": 197 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -133,9 +129,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -222,9 +216,7 @@ "start": 243, "end": 250 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -233,9 +225,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "Sub", - "optional": false + "value": "Sub" } }, "right": { @@ -261,9 +251,7 @@ "start": 269, "end": 280 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -306,9 +294,7 @@ "start": 298, "end": 306 }, - "ctxt": 0, - "value": "instance", - "optional": false + "value": "instance" } }, "right": { @@ -340,9 +326,7 @@ "start": 320, "end": 327 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionShadowing.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionShadowing.json index b1bc9d11d909..3d8c8a449117 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionShadowing.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionShadowing.json @@ -37,9 +37,7 @@ "start": 130, "end": 136 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "NewExpression", @@ -111,9 +109,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -177,9 +173,7 @@ "start": 181, "end": 188 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -214,9 +208,7 @@ "start": 205, "end": 216 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -259,9 +251,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -341,9 +331,7 @@ "start": 262, "end": 269 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -352,9 +340,7 @@ "start": 270, "end": 277 }, - "ctxt": 0, - "value": "Another", - "optional": false + "value": "Another" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance1.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance1.json index c12c68d866bb..217e2ca2768d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance1.json @@ -66,9 +66,7 @@ "start": 137, "end": 144 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance2.json index 2e774f2b1b48..9059821e7f6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance2.json @@ -37,9 +37,7 @@ "start": 139, "end": 143 }, - "ctxt": 0, - "value": "stat", - "optional": false + "value": "stat" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 154, "end": 160 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "NumericLiteral", @@ -139,9 +135,7 @@ "start": 177, "end": 184 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance3.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance3.json index 500662a70e0b..7fe4c14ba911 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance3.json @@ -37,9 +37,7 @@ "start": 139, "end": 143 }, - "ctxt": 0, - "value": "stat", - "optional": false + "value": "stat" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 154, "end": 160 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": { "type": "NumericLiteral", @@ -139,9 +135,7 @@ "start": 177, "end": 184 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -207,9 +201,7 @@ "start": 206, "end": 213 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -218,9 +210,7 @@ "start": 214, "end": 224 }, - "ctxt": 0, - "value": "additional", - "optional": false + "value": "additional" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunction.json index 13561695084e..79ef8ce71295 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunction.json @@ -46,9 +46,7 @@ "start": 185, "end": 192 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -57,9 +55,7 @@ "start": 193, "end": 200 }, - "ctxt": 0, - "value": "MyClass", - "optional": false + "value": "MyClass" } }, "right": { @@ -112,9 +108,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -184,9 +178,7 @@ "start": 240, "end": 247 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -195,9 +187,7 @@ "start": 248, "end": 255 }, - "ctxt": 0, - "value": "MyClass", - "optional": false + "value": "MyClass" } }, "property": { @@ -206,9 +196,7 @@ "start": 256, "end": 265 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -226,9 +214,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunctionWithSub.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunctionWithSub.json index 7ffb970af044..5b88b8483bbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunctionWithSub.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunctionWithSub.json @@ -40,9 +40,7 @@ "start": 201, "end": 208 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -115,9 +113,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -199,9 +195,7 @@ "start": 256, "end": 263 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -210,9 +204,7 @@ "start": 264, "end": 267 }, - "ctxt": 0, - "value": "Sub", - "optional": false + "value": "Sub" } }, "right": { @@ -265,9 +257,7 @@ "start": 292, "end": 300 }, - "ctxt": 0, - "value": "instance", - "optional": false + "value": "instance" } }, "right": { @@ -299,9 +289,7 @@ "start": 314, "end": 321 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "arguments": [ @@ -378,9 +366,7 @@ "start": 336, "end": 343 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -389,9 +375,7 @@ "start": 344, "end": 347 }, - "ctxt": 0, - "value": "Sub", - "optional": false + "value": "Sub" } }, "property": { @@ -400,9 +384,7 @@ "start": 348, "end": 357 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json index db21385b0966..804d24bfe154 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json @@ -40,9 +40,7 @@ "start": 121, "end": 128 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -77,9 +75,7 @@ "start": 147, "end": 158 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -122,9 +118,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -249,9 +243,7 @@ "start": 268, "end": 279 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -294,9 +286,7 @@ "start": 297, "end": 302 }, - "ctxt": 0, - "value": "usage", - "optional": false + "value": "usage" } }, "right": { @@ -368,9 +358,7 @@ "start": 332, "end": 339 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json index 76db993b9952..07a75a6b52f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json @@ -47,9 +47,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 150, "end": 151 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -124,9 +120,7 @@ "start": 167, "end": 174 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -144,9 +138,7 @@ "start": 183, "end": 188 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" }, "value": { "type": "StringLiteral", @@ -166,9 +158,7 @@ "start": 200, "end": 204 }, - "ctxt": 0, - "value": "also", - "optional": false + "value": "also" }, "value": { "type": "StringLiteral", @@ -188,9 +178,7 @@ "start": 216, "end": 220 }, - "ctxt": 0, - "value": "desc", - "optional": false + "value": "desc" }, "value": { "type": "ObjectExpression", @@ -207,9 +195,7 @@ "start": 232, "end": 236 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": { "type": "StringLiteral", @@ -269,9 +255,7 @@ "start": 259, "end": 266 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -280,9 +264,7 @@ "start": 267, "end": 274 }, - "ctxt": 0, - "value": "Strings", - "optional": false + "value": "Strings" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json index b0440969fd43..47f1e81002ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json @@ -80,9 +80,7 @@ "start": 135, "end": 142 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -100,9 +98,7 @@ "start": 151, "end": 158 }, - "ctxt": 0, - "value": "extends", - "optional": false + "value": "extends" }, "value": { "type": "StringLiteral", @@ -122,9 +118,7 @@ "start": 172, "end": 176 }, - "ctxt": 0, - "value": "more", - "optional": false + "value": "more" }, "value": { "type": "ObjectExpression", @@ -141,9 +135,7 @@ "start": 188, "end": 194 }, - "ctxt": 0, - "value": "others", - "optional": false + "value": "others" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json index e3ec735beec4..6250659ccfd5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json @@ -40,9 +40,7 @@ "start": 107, "end": 121 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -70,9 +68,7 @@ "start": 129, "end": 136 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -105,9 +101,7 @@ "start": 145, "end": 150 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "FunctionExpression", @@ -185,9 +179,7 @@ "start": 180, "end": 194 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -215,9 +207,7 @@ "start": 202, "end": 209 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -250,9 +240,7 @@ "start": 218, "end": 223 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "FunctionExpression", @@ -330,9 +318,7 @@ "start": 252, "end": 266 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -366,9 +352,7 @@ "start": 274, "end": 281 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -377,9 +361,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -412,9 +394,7 @@ "start": 294, "end": 299 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -563,9 +543,7 @@ "start": 442, "end": 456 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -593,9 +571,7 @@ "start": 464, "end": 471 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -628,9 +604,7 @@ "start": 480, "end": 485 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -780,9 +754,7 @@ "start": 631, "end": 645 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -810,9 +782,7 @@ "start": 653, "end": 660 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -845,9 +815,7 @@ "start": 669, "end": 674 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -974,9 +942,7 @@ "start": 761, "end": 775 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1004,9 +970,7 @@ "start": 783, "end": 790 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1039,9 +1003,7 @@ "start": 799, "end": 804 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -1096,9 +1058,7 @@ "start": 819, "end": 833 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1132,9 +1092,7 @@ "start": 841, "end": 848 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1143,9 +1101,7 @@ "start": 849, "end": 850 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -1178,9 +1134,7 @@ "start": 862, "end": 867 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "MemberExpression", @@ -1210,9 +1164,7 @@ "start": 876, "end": 883 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1221,9 +1173,7 @@ "start": 884, "end": 885 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -1336,9 +1286,7 @@ "start": 1000, "end": 1001 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1370,9 +1318,7 @@ "start": 1007, "end": 1008 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -1422,9 +1368,7 @@ "start": 1021, "end": 1035 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1452,9 +1396,7 @@ "start": 1043, "end": 1050 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1487,9 +1429,7 @@ "start": 1059, "end": 1064 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -1611,9 +1551,7 @@ "start": 1184, "end": 1185 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1645,9 +1583,7 @@ "start": 1191, "end": 1192 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -1697,9 +1633,7 @@ "start": 1205, "end": 1219 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1727,9 +1661,7 @@ "start": 1227, "end": 1234 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1762,9 +1694,7 @@ "start": 1243, "end": 1248 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -1819,9 +1749,7 @@ "start": 1265, "end": 1279 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1849,9 +1777,7 @@ "start": 1287, "end": 1294 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1884,9 +1810,7 @@ "start": 1303, "end": 1308 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "FunctionExpression", @@ -1964,9 +1888,7 @@ "start": 1336, "end": 1350 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1994,9 +1916,7 @@ "start": 1358, "end": 1365 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -2029,9 +1949,7 @@ "start": 1375, "end": 1380 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "MemberExpression", @@ -2061,9 +1979,7 @@ "start": 1389, "end": 1396 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -2072,9 +1988,7 @@ "start": 1397, "end": 1398 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } } @@ -2120,9 +2034,7 @@ "start": 1508, "end": 1522 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -2150,9 +2062,7 @@ "start": 1530, "end": 1537 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -2185,9 +2095,7 @@ "start": 1547, "end": 1552 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "MemberExpression", @@ -2217,9 +2125,7 @@ "start": 1561, "end": 1568 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -2228,9 +2134,7 @@ "start": 1569, "end": 1570 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } } } @@ -2276,9 +2180,7 @@ "start": 1582, "end": 1596 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -2306,9 +2208,7 @@ "start": 1604, "end": 1611 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -2341,9 +2241,7 @@ "start": 1620, "end": 1625 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDoubleAssignmentInClosure.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDoubleAssignmentInClosure.json index f61f5d34c984..3ac903bd678a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDoubleAssignmentInClosure.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDoubleAssignmentInClosure.json @@ -68,9 +68,7 @@ "start": 143, "end": 150 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -380,9 +378,7 @@ "start": 360, "end": 367 }, - "ctxt": 0, - "value": "methods", - "optional": false + "value": "methods" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json index 96740d14d5a5..e0a5e508bf20 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json @@ -505,9 +505,7 @@ "start": 637, "end": 644 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -630,9 +628,7 @@ "start": 714, "end": 721 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -752,9 +748,7 @@ "start": 787, "end": 794 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -763,9 +757,7 @@ "start": 795, "end": 797 }, - "ctxt": 0, - "value": "ns", - "optional": false + "value": "ns" } }, "right": { @@ -885,9 +877,7 @@ "start": 863, "end": 870 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -896,9 +886,7 @@ "start": 871, "end": 876 }, - "ctxt": 0, - "value": "names", - "optional": false + "value": "names" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json index d21686df5be6..268148ff4c04 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json @@ -47,9 +47,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -150,9 +146,7 @@ "start": 178, "end": 185 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -208,9 +202,7 @@ "start": 200, "end": 207 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -219,9 +211,7 @@ "start": 208, "end": 215 }, - "ctxt": 0, - "value": "Strings", - "optional": false + "value": "Strings" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json index 2927051b170c..b6bc42ae43df 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json @@ -38,9 +38,7 @@ "start": 144, "end": 155 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -196,9 +194,7 @@ "start": 228, "end": 235 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -321,9 +317,7 @@ "start": 368, "end": 375 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionClassesCjsExportAssignment.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionClassesCjsExportAssignment.json index d70c2c92c9e9..8bdaac12b295 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionClassesCjsExportAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionClassesCjsExportAssignment.json @@ -85,9 +85,7 @@ "start": 186, "end": 193 }, - "ctxt": 0, - "value": "timeout", - "optional": false + "value": "timeout" } }, "right": { @@ -144,9 +142,7 @@ "start": 214, "end": 221 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -241,9 +237,7 @@ "start": 394, "end": 400 }, - "ctxt": 0, - "value": "handle", - "optional": false + "value": "handle" } }, "right": { @@ -300,9 +294,7 @@ "start": 420, "end": 427 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -496,9 +488,7 @@ "start": 1005, "end": 1010 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "right": { @@ -527,9 +517,7 @@ "start": 1018, "end": 1027 }, - "ctxt": 0, - "value": "construct", - "optional": false + "value": "construct" } }, "arguments": [ @@ -593,9 +581,7 @@ "start": 1046, "end": 1055 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -613,9 +599,7 @@ "start": 1168, "end": 1177 }, - "ctxt": 0, - "value": "construct", - "optional": false + "value": "construct" }, "params": [ { @@ -771,9 +755,7 @@ "start": 1247, "end": 1254 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionJSDoc.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionJSDoc.json index 118dcf88d206..b7cf6ef76e6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionJSDoc.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionJSDoc.json @@ -124,9 +124,7 @@ "start": 394, "end": 405 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -208,9 +206,7 @@ "start": 483, "end": 488 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" } }, "right": { @@ -242,9 +238,7 @@ "start": 580, "end": 584 }, - "ctxt": 0, - "value": "doIt", - "optional": false + "value": "doIt" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordProp.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordProp.json index 22b85fe43683..f34700defac9 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordProp.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordProp.json @@ -74,9 +74,7 @@ "start": 139, "end": 143 }, - "ctxt": 0, - "value": "null", - "optional": false + "value": "null" } }, "right": { @@ -158,9 +156,7 @@ "start": 175, "end": 180 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" } }, "right": { @@ -208,9 +204,7 @@ "start": 193, "end": 199 }, - "ctxt": 0, - "value": "normal", - "optional": false + "value": "normal" } }, "right": { @@ -292,9 +286,7 @@ "start": 232, "end": 237 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } }, "right": { @@ -342,9 +334,7 @@ "start": 250, "end": 256 }, - "ctxt": 0, - "value": "normal", - "optional": false + "value": "normal" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordPropExhaustive.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordPropExhaustive.json index cef51ee587c3..0ac120e80784 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordPropExhaustive.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordPropExhaustive.json @@ -74,9 +74,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -125,9 +123,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -176,9 +172,7 @@ "start": 188, "end": 193 }, - "ctxt": 0, - "value": "break", - "optional": false + "value": "break" } }, "right": { @@ -227,9 +221,7 @@ "start": 203, "end": 207 }, - "ctxt": 0, - "value": "case", - "optional": false + "value": "case" } }, "right": { @@ -278,9 +270,7 @@ "start": 217, "end": 222 }, - "ctxt": 0, - "value": "catch", - "optional": false + "value": "catch" } }, "right": { @@ -329,9 +319,7 @@ "start": 232, "end": 237 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } }, "right": { @@ -380,9 +368,7 @@ "start": 247, "end": 252 }, - "ctxt": 0, - "value": "const", - "optional": false + "value": "const" } }, "right": { @@ -431,9 +417,7 @@ "start": 262, "end": 270 }, - "ctxt": 0, - "value": "continue", - "optional": false + "value": "continue" } }, "right": { @@ -482,9 +466,7 @@ "start": 280, "end": 288 }, - "ctxt": 0, - "value": "debugger", - "optional": false + "value": "debugger" } }, "right": { @@ -533,9 +515,7 @@ "start": 298, "end": 305 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { @@ -584,9 +564,7 @@ "start": 315, "end": 321 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "right": { @@ -635,9 +613,7 @@ "start": 331, "end": 333 }, - "ctxt": 0, - "value": "do", - "optional": false + "value": "do" } }, "right": { @@ -686,9 +662,7 @@ "start": 343, "end": 347 }, - "ctxt": 0, - "value": "else", - "optional": false + "value": "else" } }, "right": { @@ -737,9 +711,7 @@ "start": 357, "end": 361 }, - "ctxt": 0, - "value": "enum", - "optional": false + "value": "enum" } }, "right": { @@ -788,9 +760,7 @@ "start": 371, "end": 377 }, - "ctxt": 0, - "value": "export", - "optional": false + "value": "export" } }, "right": { @@ -839,9 +809,7 @@ "start": 387, "end": 394 }, - "ctxt": 0, - "value": "extends", - "optional": false + "value": "extends" } }, "right": { @@ -890,9 +858,7 @@ "start": 404, "end": 409 }, - "ctxt": 0, - "value": "false", - "optional": false + "value": "false" } }, "right": { @@ -941,9 +907,7 @@ "start": 419, "end": 426 }, - "ctxt": 0, - "value": "finally", - "optional": false + "value": "finally" } }, "right": { @@ -992,9 +956,7 @@ "start": 436, "end": 439 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "right": { @@ -1043,9 +1005,7 @@ "start": 449, "end": 457 }, - "ctxt": 0, - "value": "function", - "optional": false + "value": "function" } }, "right": { @@ -1094,9 +1054,7 @@ "start": 467, "end": 469 }, - "ctxt": 0, - "value": "if", - "optional": false + "value": "if" } }, "right": { @@ -1145,9 +1103,7 @@ "start": 479, "end": 485 }, - "ctxt": 0, - "value": "import", - "optional": false + "value": "import" } }, "right": { @@ -1196,9 +1152,7 @@ "start": 495, "end": 497 }, - "ctxt": 0, - "value": "in", - "optional": false + "value": "in" } }, "right": { @@ -1247,9 +1201,7 @@ "start": 507, "end": 517 }, - "ctxt": 0, - "value": "instanceof", - "optional": false + "value": "instanceof" } }, "right": { @@ -1298,9 +1250,7 @@ "start": 527, "end": 530 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" } }, "right": { @@ -1349,9 +1299,7 @@ "start": 540, "end": 544 }, - "ctxt": 0, - "value": "null", - "optional": false + "value": "null" } }, "right": { @@ -1400,9 +1348,7 @@ "start": 554, "end": 560 }, - "ctxt": 0, - "value": "return", - "optional": false + "value": "return" } }, "right": { @@ -1451,9 +1397,7 @@ "start": 570, "end": 575 }, - "ctxt": 0, - "value": "super", - "optional": false + "value": "super" } }, "right": { @@ -1502,9 +1446,7 @@ "start": 585, "end": 591 }, - "ctxt": 0, - "value": "switch", - "optional": false + "value": "switch" } }, "right": { @@ -1553,9 +1495,7 @@ "start": 601, "end": 605 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "right": { @@ -1604,9 +1544,7 @@ "start": 615, "end": 620 }, - "ctxt": 0, - "value": "throw", - "optional": false + "value": "throw" } }, "right": { @@ -1655,9 +1593,7 @@ "start": 630, "end": 634 }, - "ctxt": 0, - "value": "true", - "optional": false + "value": "true" } }, "right": { @@ -1706,9 +1642,7 @@ "start": 644, "end": 647 }, - "ctxt": 0, - "value": "try", - "optional": false + "value": "try" } }, "right": { @@ -1757,9 +1691,7 @@ "start": 657, "end": 663 }, - "ctxt": 0, - "value": "typeof", - "optional": false + "value": "typeof" } }, "right": { @@ -1808,9 +1740,7 @@ "start": 673, "end": 676 }, - "ctxt": 0, - "value": "var", - "optional": false + "value": "var" } }, "right": { @@ -1859,9 +1789,7 @@ "start": 686, "end": 690 }, - "ctxt": 0, - "value": "void", - "optional": false + "value": "void" } }, "right": { @@ -1910,9 +1838,7 @@ "start": 700, "end": 705 }, - "ctxt": 0, - "value": "while", - "optional": false + "value": "while" } }, "right": { @@ -1961,9 +1887,7 @@ "start": 715, "end": 719 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" } }, "right": { @@ -2012,9 +1936,7 @@ "start": 729, "end": 739 }, - "ctxt": 0, - "value": "implements", - "optional": false + "value": "implements" } }, "right": { @@ -2063,9 +1985,7 @@ "start": 749, "end": 758 }, - "ctxt": 0, - "value": "interface", - "optional": false + "value": "interface" } }, "right": { @@ -2114,9 +2034,7 @@ "start": 768, "end": 771 }, - "ctxt": 0, - "value": "let", - "optional": false + "value": "let" } }, "right": { @@ -2165,9 +2083,7 @@ "start": 781, "end": 788 }, - "ctxt": 0, - "value": "package", - "optional": false + "value": "package" } }, "right": { @@ -2216,9 +2132,7 @@ "start": 798, "end": 805 }, - "ctxt": 0, - "value": "private", - "optional": false + "value": "private" } }, "right": { @@ -2267,9 +2181,7 @@ "start": 815, "end": 824 }, - "ctxt": 0, - "value": "protected", - "optional": false + "value": "protected" } }, "right": { @@ -2318,9 +2230,7 @@ "start": 834, "end": 840 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" } }, "right": { @@ -2369,9 +2279,7 @@ "start": 850, "end": 856 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" } }, "right": { @@ -2420,9 +2328,7 @@ "start": 866, "end": 871 }, - "ctxt": 0, - "value": "yield", - "optional": false + "value": "yield" } }, "right": { @@ -2471,9 +2377,7 @@ "start": 881, "end": 889 }, - "ctxt": 0, - "value": "abstract", - "optional": false + "value": "abstract" } }, "right": { @@ -2522,9 +2426,7 @@ "start": 899, "end": 901 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" } }, "right": { @@ -2573,9 +2475,7 @@ "start": 911, "end": 918 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "right": { @@ -2624,9 +2524,7 @@ "start": 928, "end": 931 }, - "ctxt": 0, - "value": "any", - "optional": false + "value": "any" } }, "right": { @@ -2675,9 +2573,7 @@ "start": 941, "end": 946 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" } }, "right": { @@ -2726,9 +2622,7 @@ "start": 956, "end": 961 }, - "ctxt": 0, - "value": "await", - "optional": false + "value": "await" } }, "right": { @@ -2777,9 +2671,7 @@ "start": 971, "end": 978 }, - "ctxt": 0, - "value": "boolean", - "optional": false + "value": "boolean" } }, "right": { @@ -2828,9 +2720,7 @@ "start": 988, "end": 999 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "right": { @@ -2879,9 +2769,7 @@ "start": 1009, "end": 1016 }, - "ctxt": 0, - "value": "declare", - "optional": false + "value": "declare" } }, "right": { @@ -2930,9 +2818,7 @@ "start": 1026, "end": 1029 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "right": { @@ -2981,9 +2867,7 @@ "start": 1039, "end": 1044 }, - "ctxt": 0, - "value": "infer", - "optional": false + "value": "infer" } }, "right": { @@ -3032,9 +2916,7 @@ "start": 1054, "end": 1056 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "right": { @@ -3083,9 +2965,7 @@ "start": 1066, "end": 1071 }, - "ctxt": 0, - "value": "keyof", - "optional": false + "value": "keyof" } }, "right": { @@ -3134,9 +3014,7 @@ "start": 1081, "end": 1087 }, - "ctxt": 0, - "value": "module", - "optional": false + "value": "module" } }, "right": { @@ -3185,9 +3063,7 @@ "start": 1097, "end": 1106 }, - "ctxt": 0, - "value": "namespace", - "optional": false + "value": "namespace" } }, "right": { @@ -3236,9 +3112,7 @@ "start": 1116, "end": 1121 }, - "ctxt": 0, - "value": "never", - "optional": false + "value": "never" } }, "right": { @@ -3287,9 +3161,7 @@ "start": 1131, "end": 1139 }, - "ctxt": 0, - "value": "readonly", - "optional": false + "value": "readonly" } }, "right": { @@ -3338,9 +3210,7 @@ "start": 1149, "end": 1156 }, - "ctxt": 0, - "value": "require", - "optional": false + "value": "require" } }, "right": { @@ -3389,9 +3259,7 @@ "start": 1166, "end": 1172 }, - "ctxt": 0, - "value": "number", - "optional": false + "value": "number" } }, "right": { @@ -3440,9 +3308,7 @@ "start": 1182, "end": 1188 }, - "ctxt": 0, - "value": "object", - "optional": false + "value": "object" } }, "right": { @@ -3491,9 +3357,7 @@ "start": 1198, "end": 1201 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "right": { @@ -3542,9 +3406,7 @@ "start": 1211, "end": 1217 }, - "ctxt": 0, - "value": "string", - "optional": false + "value": "string" } }, "right": { @@ -3593,9 +3455,7 @@ "start": 1227, "end": 1233 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "right": { @@ -3644,9 +3504,7 @@ "start": 1243, "end": 1247 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -3695,9 +3553,7 @@ "start": 1257, "end": 1266 }, - "ctxt": 0, - "value": "undefined", - "optional": false + "value": "undefined" } }, "right": { @@ -3746,9 +3602,7 @@ "start": 1276, "end": 1282 }, - "ctxt": 0, - "value": "unique", - "optional": false + "value": "unique" } }, "right": { @@ -3797,9 +3651,7 @@ "start": 1292, "end": 1299 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -3848,9 +3700,7 @@ "start": 1309, "end": 1313 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "right": { @@ -3899,9 +3749,7 @@ "start": 1323, "end": 1329 }, - "ctxt": 0, - "value": "global", - "optional": false + "value": "global" } }, "right": { @@ -3950,9 +3798,7 @@ "start": 1339, "end": 1345 }, - "ctxt": 0, - "value": "bigint", - "optional": false + "value": "bigint" } }, "right": { @@ -4001,9 +3847,7 @@ "start": 1355, "end": 1357 }, - "ctxt": 0, - "value": "of", - "optional": false + "value": "of" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json index 5f53848a59f8..a875a913b188 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json @@ -222,9 +222,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -271,9 +269,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -425,9 +421,7 @@ "start": 444, "end": 448 }, - "ctxt": 0, - "value": "sqrt", - "optional": false + "value": "sqrt" } }, "arguments": [ @@ -469,9 +463,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -513,9 +505,7 @@ "start": 462, "end": 463 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json index d864d47acad6..6583aff48ff0 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json @@ -91,9 +91,7 @@ "start": 225, "end": 232 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "right": { @@ -175,9 +173,7 @@ "start": 258, "end": 267 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -195,9 +191,7 @@ "start": 318, "end": 321 }, - "ctxt": 0, - "value": "dot", - "optional": false + "value": "dot" }, "params": [ { @@ -275,9 +269,7 @@ "start": 349, "end": 356 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -286,9 +278,7 @@ "start": 357, "end": 363 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -316,9 +306,7 @@ "start": 373, "end": 380 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -327,9 +315,7 @@ "start": 381, "end": 387 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -524,9 +510,7 @@ "start": 543, "end": 550 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -535,9 +519,7 @@ "start": 551, "end": 557 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -630,9 +612,7 @@ "start": 591, "end": 598 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -681,9 +661,7 @@ "start": 610, "end": 617 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -743,9 +721,7 @@ "start": 664, "end": 673 }, - "ctxt": 0, - "value": "magnitude", - "optional": false + "value": "magnitude" }, "params": [], "decorators": [], @@ -890,9 +866,7 @@ "start": 732, "end": 739 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -901,9 +875,7 @@ "start": 740, "end": 746 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -996,9 +968,7 @@ "start": 780, "end": 787 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -1070,9 +1040,7 @@ "start": 828, "end": 832 }, - "ctxt": 0, - "value": "sqrt", - "optional": false + "value": "sqrt" } }, "arguments": [ @@ -1324,9 +1292,7 @@ "start": 1016, "end": 1020 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -1388,9 +1354,7 @@ "start": 1040, "end": 1041 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1437,9 +1401,7 @@ "start": 1056, "end": 1057 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1497,9 +1459,7 @@ "start": 1074, "end": 1083 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -1517,9 +1477,7 @@ "start": 1092, "end": 1101 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "Identifier", @@ -1544,9 +1502,7 @@ "start": 1116, "end": 1117 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": null, "body": { @@ -1588,9 +1544,7 @@ "start": 1142, "end": 1149 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -1626,9 +1580,7 @@ "start": 1210, "end": 1211 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "thisParam": null, "param": { @@ -1688,9 +1640,7 @@ "start": 1230, "end": 1237 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -1737,9 +1687,7 @@ "start": 1261, "end": 1262 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "typeAnnotation": null, "body": { @@ -1781,9 +1729,7 @@ "start": 1287, "end": 1294 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { @@ -1819,9 +1765,7 @@ "start": 1355, "end": 1356 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "thisParam": null, "param": { @@ -1881,9 +1825,7 @@ "start": 1375, "end": 1382 }, - "ctxt": 0, - "value": "storage", - "optional": false + "value": "storage" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionPrototypeStatic.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionPrototypeStatic.json index b4e9f6280788..a147321bdc35 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionPrototypeStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionPrototypeStatic.json @@ -40,9 +40,7 @@ "start": 124, "end": 131 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -126,9 +124,7 @@ "start": 174, "end": 186 }, - "ctxt": 0, - "value": "staticMethod", - "optional": false + "value": "staticMethod" } }, "right": { @@ -198,9 +194,7 @@ "start": 211, "end": 220 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -209,9 +203,7 @@ "start": 221, "end": 227 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "right": { @@ -275,9 +267,7 @@ "start": 252, "end": 266 }, - "ctxt": 0, - "value": "staticProperty", - "optional": false + "value": "staticProperty" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionWithDefaultAssignedMember.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionWithDefaultAssignedMember.json index 0c700d4188bd..c2bfd190248b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionWithDefaultAssignedMember.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionWithDefaultAssignedMember.json @@ -74,9 +74,7 @@ "start": 123, "end": 126 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -126,9 +124,7 @@ "start": 138, "end": 145 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { @@ -178,9 +174,7 @@ "start": 160, "end": 167 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json index e9a12f576e40..7b12468e751b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json @@ -122,9 +122,7 @@ "start": 149, "end": 152 }, - "ctxt": 0, - "value": "cat", - "optional": false + "value": "cat" } }, "right": { @@ -214,9 +212,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "Cls", - "optional": false + "value": "Cls" } }, "right": { @@ -555,9 +551,7 @@ "start": 552, "end": 556 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -674,9 +668,7 @@ "start": 657, "end": 658 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -708,9 +700,7 @@ "start": 664, "end": 665 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -858,9 +848,7 @@ "start": 782, "end": 783 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -892,9 +880,7 @@ "start": 789, "end": 790 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json index 4fbcfa748316..a2190fe6e7e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json @@ -46,9 +46,7 @@ "start": 107, "end": 114 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -57,9 +55,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -138,9 +134,7 @@ "start": 143, "end": 150 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -149,9 +143,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -236,9 +228,7 @@ "start": 178, "end": 185 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -247,9 +237,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -258,9 +246,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "cat", - "optional": false + "value": "cat" } }, "right": { @@ -315,9 +301,7 @@ "start": 209, "end": 216 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -326,9 +310,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -413,9 +395,7 @@ "start": 244, "end": 251 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -424,9 +404,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "property": { @@ -435,9 +413,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "Cls", - "optional": false + "value": "Cls" } }, "right": { @@ -499,9 +475,7 @@ "start": 348, "end": 355 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -510,9 +484,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -652,9 +624,7 @@ "start": 497, "end": 504 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -663,9 +633,7 @@ "start": 505, "end": 506 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -805,9 +773,7 @@ "start": 608, "end": 615 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -816,9 +782,7 @@ "start": 616, "end": 617 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -941,9 +905,7 @@ "start": 659, "end": 666 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -952,9 +914,7 @@ "start": 667, "end": 668 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "property": { @@ -963,9 +923,7 @@ "start": 669, "end": 673 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -996,9 +954,7 @@ "start": 683, "end": 690 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1007,9 +963,7 @@ "start": 691, "end": 692 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -1116,9 +1070,7 @@ "start": 804, "end": 805 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1150,9 +1102,7 @@ "start": 811, "end": 812 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -1208,9 +1158,7 @@ "start": 826, "end": 833 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1219,9 +1167,7 @@ "start": 834, "end": 835 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "right": { @@ -1338,9 +1284,7 @@ "start": 952, "end": 953 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1372,9 +1316,7 @@ "start": 959, "end": 960 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], @@ -1430,9 +1372,7 @@ "start": 974, "end": 981 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1441,9 +1381,7 @@ "start": 982, "end": 983 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "right": { @@ -1499,9 +1437,7 @@ "start": 998, "end": 1005 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1510,9 +1446,7 @@ "start": 1006, "end": 1007 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "right": { @@ -1591,9 +1525,7 @@ "start": 1033, "end": 1040 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1602,9 +1534,7 @@ "start": 1041, "end": 1043 }, - "ctxt": 0, - "value": "ii", - "optional": false + "value": "ii" } }, "right": { @@ -1635,9 +1565,7 @@ "start": 1053, "end": 1060 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1646,9 +1574,7 @@ "start": 1061, "end": 1062 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } } @@ -1694,9 +1620,7 @@ "start": 1169, "end": 1176 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1705,9 +1629,7 @@ "start": 1177, "end": 1179 }, - "ctxt": 0, - "value": "jj", - "optional": false + "value": "jj" } }, "right": { @@ -1738,9 +1660,7 @@ "start": 1189, "end": 1196 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1749,9 +1669,7 @@ "start": 1197, "end": 1198 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } } } @@ -1797,9 +1715,7 @@ "start": 1207, "end": 1214 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1808,9 +1724,7 @@ "start": 1215, "end": 1216 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json index f407f0ca0f9c..9cf8bda79f18 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json @@ -43,9 +43,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -139,9 +137,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -238,9 +234,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -300,9 +294,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -429,9 +421,7 @@ "start": 371, "end": 385 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -459,9 +449,7 @@ "start": 388, "end": 397 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -494,9 +482,7 @@ "start": 410, "end": 413 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -611,9 +597,7 @@ "start": 473, "end": 487 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -641,9 +625,7 @@ "start": 490, "end": 499 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -676,9 +658,7 @@ "start": 556, "end": 559 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -796,9 +776,7 @@ "start": 599, "end": 613 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -826,9 +804,7 @@ "start": 616, "end": 625 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -861,9 +837,7 @@ "start": 638, "end": 641 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -911,9 +885,7 @@ "start": 720, "end": 723 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -1031,9 +1003,7 @@ "start": 763, "end": 777 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1061,9 +1031,7 @@ "start": 780, "end": 789 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -1096,9 +1064,7 @@ "start": 848, "end": 851 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -1228,9 +1194,7 @@ "start": 894, "end": 908 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1258,9 +1222,7 @@ "start": 911, "end": 920 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -1293,9 +1255,7 @@ "start": 933, "end": 936 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [], "decorators": [], @@ -1393,9 +1353,7 @@ "start": 973, "end": 987 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1423,9 +1381,7 @@ "start": 990, "end": 999 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -1458,9 +1414,7 @@ "start": 1053, "end": 1056 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "ArrowFunctionExpression", @@ -1637,9 +1591,7 @@ "start": 1153, "end": 1167 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1667,9 +1619,7 @@ "start": 1170, "end": 1179 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -1702,9 +1652,7 @@ "start": 1192, "end": 1195 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "Identifier", @@ -1922,9 +1870,7 @@ "start": 1347, "end": 1361 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -1952,9 +1898,7 @@ "start": 1364, "end": 1373 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -1987,9 +1931,7 @@ "start": 1386, "end": 1389 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "ConditionalExpression", @@ -2026,9 +1968,7 @@ "start": 1396, "end": 1402 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2261,9 +2201,7 @@ "start": 1569, "end": 1583 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -2291,9 +2229,7 @@ "start": 1586, "end": 1595 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -2326,9 +2262,7 @@ "start": 1608, "end": 1611 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "ConditionalExpression", @@ -2365,9 +2299,7 @@ "start": 1618, "end": 1624 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2600,9 +2532,7 @@ "start": 1811, "end": 1825 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -2630,9 +2560,7 @@ "start": 1828, "end": 1837 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -2665,9 +2593,7 @@ "start": 1850, "end": 1853 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "ConditionalExpression", @@ -2704,9 +2630,7 @@ "start": 1860, "end": 1866 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json index e6e9f3e69cdf..01ec5730a398 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json @@ -79,9 +79,7 @@ "start": 525, "end": 532 }, - "ctxt": 0, - "value": "myTypes", - "optional": false + "value": "myTypes" } }, "right": { @@ -418,9 +416,7 @@ "start": 1067, "end": 1074 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportTypeBundled.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportTypeBundled.json index dc26a8fc2205..34ddb4f2082a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportTypeBundled.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportTypeBundled.json @@ -47,9 +47,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -102,9 +100,7 @@ "start": 214, "end": 221 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -170,9 +166,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -228,9 +222,7 @@ "start": 333, "end": 340 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json index 06bb21c0ad3e..c10458cdb67d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json @@ -461,9 +461,7 @@ "start": 609, "end": 616 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -528,9 +526,7 @@ "start": 669, "end": 670 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsNestedParams.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsNestedParams.json index da2c5af34a66..a4383f096fcb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsNestedParams.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsNestedParams.json @@ -37,9 +37,7 @@ "start": 509, "end": 515 }, - "ctxt": 0, - "value": "cancel", - "optional": false + "value": "cancel" }, "function": { "params": [ @@ -167,9 +165,7 @@ "start": 1068, "end": 1074 }, - "ctxt": 0, - "value": "cancel", - "optional": false + "value": "cancel" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit1.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit1.json index 35a58b4ee7e5..a95128474d6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit1.json @@ -38,9 +38,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -178,9 +176,7 @@ "start": 219, "end": 223 }, - "ctxt": 0, - "value": "Base", - "optional": false + "value": "Base" } }, "right": { @@ -230,9 +226,7 @@ "start": 240, "end": 247 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit2.json index ee7185b216af..68969597e224 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsParameterTagReusesInputNodeInEmit2.json @@ -38,9 +38,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -178,9 +176,7 @@ "start": 219, "end": 223 }, - "ctxt": 0, - "value": "Base", - "optional": false + "value": "Base" } }, "right": { @@ -230,9 +226,7 @@ "start": 240, "end": 247 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json index 84d063a52724..26ee6492448a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json @@ -247,9 +247,7 @@ "start": 280, "end": 291 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -362,9 +360,7 @@ "start": 398, "end": 406 }, - "ctxt": 0, - "value": "getWorld", - "optional": false + "value": "getWorld" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json index 4242de04a002..53aa603caae8 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json @@ -66,9 +66,7 @@ "start": 160, "end": 167 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json index 8e63f95d8c5e..ad8bbbdc6ab3 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json @@ -127,9 +127,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -219,9 +217,7 @@ "start": 244, "end": 251 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -305,9 +301,7 @@ "start": 322, "end": 331 }, - "ctxt": 0, - "value": "SomeClass", - "optional": false + "value": "SomeClass" }, "value": { "type": "Identifier", @@ -397,9 +391,7 @@ "start": 371, "end": 378 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json index d88956b228fe..db8f599ecd3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json @@ -38,9 +38,7 @@ "start": 165, "end": 176 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -86,9 +84,7 @@ "start": 197, "end": 200 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -155,9 +151,7 @@ "start": 238, "end": 245 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -297,9 +291,7 @@ "start": 350, "end": 361 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -342,9 +334,7 @@ "start": 457, "end": 464 }, - "ctxt": 0, - "value": "objects", - "optional": false + "value": "objects" } }, "right": { @@ -374,9 +364,7 @@ "start": 566, "end": 578 }, - "ctxt": 0, - "value": "addRectangle", - "optional": false + "value": "addRectangle" }, "function": { "params": [], @@ -483,9 +471,7 @@ "start": 633, "end": 640 }, - "ctxt": 0, - "value": "objects", - "optional": false + "value": "objects" } }, "property": { @@ -494,9 +480,7 @@ "start": 641, "end": 645 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -590,9 +574,7 @@ "start": 688, "end": 695 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -785,9 +767,7 @@ "start": 804, "end": 816 }, - "ctxt": 0, - "value": "addRectangle", - "optional": false + "value": "addRectangle" } }, "arguments": [], @@ -829,9 +809,7 @@ "start": 828, "end": 831 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -871,9 +849,7 @@ "start": 850, "end": 857 }, - "ctxt": 0, - "value": "objects", - "optional": false + "value": "objects" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.json index c99133a97049..6fc95fdad43a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.json @@ -43,9 +43,7 @@ "start": 218, "end": 224 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReusesExistingTypeAnnotations.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReusesExistingTypeAnnotations.json index 22ec7031e5ed..1fe34f046947 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReusesExistingTypeAnnotations.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReusesExistingTypeAnnotations.json @@ -37,9 +37,7 @@ "start": 179, "end": 181 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "Identifier", @@ -74,9 +72,7 @@ "start": 238, "end": 240 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "Identifier", @@ -111,9 +107,7 @@ "start": 286, "end": 288 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": { "type": "NullLiteral", @@ -145,9 +139,7 @@ "start": 335, "end": 337 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "value": { "type": "NullLiteral", @@ -206,9 +198,7 @@ "start": 396, "end": 398 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [], @@ -269,9 +259,7 @@ "start": 482, "end": 484 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "function": { "params": [], @@ -332,9 +320,7 @@ "start": 557, "end": 559 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "function": { "params": [], @@ -392,9 +378,7 @@ "start": 633, "end": 635 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "function": { "params": [], @@ -479,9 +463,7 @@ "start": 718, "end": 720 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [], @@ -542,9 +524,7 @@ "start": 800, "end": 802 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [ @@ -614,9 +594,7 @@ "start": 825, "end": 827 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -657,9 +635,7 @@ "start": 890, "end": 892 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "function": { "params": [], @@ -720,9 +696,7 @@ "start": 983, "end": 985 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "function": { "params": [ @@ -792,9 +766,7 @@ "start": 1008, "end": 1010 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } }, "right": { @@ -835,9 +807,7 @@ "start": 1062, "end": 1064 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "function": { "params": [], @@ -895,9 +865,7 @@ "start": 1139, "end": 1141 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "function": { "params": [ @@ -967,9 +935,7 @@ "start": 1164, "end": 1166 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } }, "right": { @@ -1010,9 +976,7 @@ "start": 1224, "end": 1226 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "function": { "params": [], @@ -1070,9 +1034,7 @@ "start": 1307, "end": 1309 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "function": { "params": [ @@ -1142,9 +1104,7 @@ "start": 1332, "end": 1334 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } }, "right": { @@ -1212,9 +1172,7 @@ "start": 1408, "end": 1410 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [ @@ -1284,9 +1242,7 @@ "start": 1433, "end": 1435 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -1327,9 +1283,7 @@ "start": 1505, "end": 1507 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "function": { "params": [ @@ -1399,9 +1353,7 @@ "start": 1530, "end": 1532 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } }, "right": { @@ -1442,9 +1394,7 @@ "start": 1591, "end": 1593 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "function": { "params": [ @@ -1514,9 +1464,7 @@ "start": 1616, "end": 1618 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } }, "right": { @@ -1557,9 +1505,7 @@ "start": 1683, "end": 1685 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "function": { "params": [ @@ -1629,9 +1575,7 @@ "start": 1708, "end": 1710 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json index ea25d322e709..fd0b1704b11e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json @@ -44,9 +44,7 @@ "start": 218, "end": 229 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -147,9 +145,7 @@ "start": 295, "end": 306 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsThisTypes.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsThisTypes.json index b4cb16740a74..7da95f4409f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsThisTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsThisTypes.json @@ -43,9 +43,7 @@ "start": 161, "end": 167 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -136,9 +134,7 @@ "start": 294, "end": 300 }, - "ctxt": 0, - "value": "verify", - "optional": false + "value": "verify" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json index f89721444902..039f3604bc0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json @@ -85,9 +85,7 @@ "start": 652, "end": 653 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BinaryExpression", @@ -159,9 +157,7 @@ "start": 690, "end": 691 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "StringLiteral", @@ -225,9 +221,7 @@ "start": 708, "end": 715 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -293,9 +287,7 @@ "start": 781, "end": 782 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration.json index 2f3cc78236fd..d01dcf560d50 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration.json @@ -223,9 +223,7 @@ "start": 288, "end": 295 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json index 82ffaa040cbc..48017d9854bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json @@ -252,9 +252,7 @@ "start": 278, "end": 285 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json index 2b45fcbcc6f5..fd406f4d7e05 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json @@ -137,9 +137,7 @@ "start": 325, "end": 334 }, - "ctxt": 0, - "value": "Something", - "optional": false + "value": "Something" } }, "definite": false @@ -232,9 +230,7 @@ "start": 376, "end": 383 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json index b0c4ab2980f3..0b5f3d941a01 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json @@ -53,9 +53,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -75,9 +73,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "NumericLiteral", @@ -206,9 +202,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } }, "definite": false @@ -309,9 +303,7 @@ "start": 297, "end": 304 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json index 9afaf56854e9..3125912fb1da 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json @@ -137,9 +137,7 @@ "start": 325, "end": 334 }, - "ctxt": 0, - "value": "Something", - "optional": false + "value": "Something" } }, "definite": false @@ -187,9 +185,7 @@ "start": 343, "end": 350 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -198,9 +194,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -260,9 +254,7 @@ "start": 365, "end": 372 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -271,9 +263,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "property": { @@ -282,9 +272,7 @@ "start": 375, "end": 376 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -302,9 +290,7 @@ "start": 385, "end": 390 }, - "ctxt": 0, - "value": "thing", - "optional": false + "value": "thing" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json index 013374402815..64f46527c281 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json @@ -246,9 +246,7 @@ "start": 473, "end": 482 }, - "ctxt": 0, - "value": "Something", - "optional": false + "value": "Something" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json index 4998a22aa912..04257ca408f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json @@ -38,9 +38,7 @@ "start": 165, "end": 176 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -67,9 +65,7 @@ "start": 186, "end": 190 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "value": { "type": "NumericLiteral", @@ -103,9 +99,7 @@ "start": 200, "end": 206 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -178,9 +172,7 @@ "start": 222, "end": 229 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -228,9 +220,7 @@ "start": 364, "end": 375 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -293,9 +283,7 @@ "start": 394, "end": 402 }, - "ctxt": 0, - "value": "connItem", - "optional": false + "value": "connItem" } }, "right": { @@ -320,9 +308,7 @@ "start": 407, "end": 411 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" } } } @@ -359,9 +345,7 @@ "start": 475, "end": 482 }, - "ctxt": 0, - "value": "another", - "optional": false + "value": "another" } }, "right": { @@ -422,9 +406,7 @@ "start": 505, "end": 512 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json index db72040ad6b3..8c9700c9a978 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json @@ -145,9 +145,7 @@ "start": 242, "end": 248 }, - "ctxt": 0, - "value": "addAll", - "optional": false + "value": "addAll" } }, "arguments": [ @@ -200,9 +198,7 @@ "start": 467, "end": 473 }, - "ctxt": 0, - "value": "addAll", - "optional": false + "value": "addAll" }, "function": { "params": [ @@ -287,9 +283,7 @@ "start": 499, "end": 507 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -364,9 +358,7 @@ "start": 524, "end": 531 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json index aa268690d367..0be30701d50e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json @@ -47,9 +47,7 @@ "start": 393, "end": 402 }, - "ctxt": 0, - "value": "parseHTML", - "optional": false + "value": "parseHTML" }, "value": { "type": "ObjectExpression", @@ -66,9 +64,7 @@ "start": 414, "end": 416 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -88,9 +84,7 @@ "start": 439, "end": 444 }, - "ctxt": 0, - "value": "label", - "optional": false + "value": "label" }, "value": { "type": "StringLiteral", @@ -113,9 +107,7 @@ "start": 476, "end": 487 }, - "ctxt": 0, - "value": "styleLayout", - "optional": false + "value": "styleLayout" }, "value": { "type": "ObjectExpression", @@ -132,9 +124,7 @@ "start": 499, "end": 501 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -154,9 +144,7 @@ "start": 526, "end": 531 }, - "ctxt": 0, - "value": "label", - "optional": false + "value": "label" }, "value": { "type": "StringLiteral", @@ -251,9 +239,7 @@ "start": 637, "end": 644 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -422,9 +408,7 @@ "start": 1124, "end": 1135 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -520,9 +504,7 @@ "start": 1154, "end": 1161 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsObjectsMarkedAsOpenEnded.json b/crates/swc_ecma_parser/tests/tsc/jsObjectsMarkedAsOpenEnded.json index 2320bec89510..ef31901aaa0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsObjectsMarkedAsOpenEnded.json +++ b/crates/swc_ecma_parser/tests/tsc/jsObjectsMarkedAsOpenEnded.json @@ -79,9 +79,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -127,9 +125,7 @@ "start": 112, "end": 129 }, - "ctxt": 0, - "value": "initializedMember", - "optional": false + "value": "initializedMember" }, "value": { "type": "ObjectExpression", @@ -163,9 +159,7 @@ "start": 140, "end": 151 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -208,9 +202,7 @@ "start": 169, "end": 175 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "right": { @@ -261,9 +253,7 @@ "start": 195, "end": 201 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "property": { @@ -272,9 +262,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -342,9 +330,7 @@ "start": 234, "end": 242 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "ObjectExpression", @@ -402,9 +388,7 @@ "start": 255, "end": 263 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "property": { @@ -413,9 +397,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -565,9 +547,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -639,9 +619,7 @@ "start": 373, "end": 379 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "property": { @@ -650,9 +628,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -724,9 +700,7 @@ "start": 397, "end": 414 }, - "ctxt": 0, - "value": "initializedMember", - "optional": false + "value": "initializedMember" } }, "property": { @@ -735,9 +709,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -792,9 +764,7 @@ "start": 426, "end": 434 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "property": { @@ -803,9 +773,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -877,9 +845,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -938,9 +904,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTags.json b/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTags.json index 7f738dc25331..16ca5fefd67c 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTags.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTags.json @@ -37,9 +37,7 @@ "start": 181, "end": 185 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 251, "end": 255 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" }, "value": { "type": "NumericLiteral", @@ -109,9 +105,7 @@ "start": 318, "end": 321 }, - "ctxt": 0, - "value": "pub", - "optional": false + "value": "pub" }, "value": { "type": "NumericLiteral", @@ -145,9 +139,7 @@ "start": 354, "end": 357 }, - "ctxt": 0, - "value": "ack", - "optional": false + "value": "ack" }, "function": { "params": [], @@ -190,9 +182,7 @@ "start": 374, "end": 378 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" } } } @@ -222,9 +212,7 @@ "start": 409, "end": 412 }, - "ctxt": 0, - "value": "ack", - "optional": false + "value": "ack" }, "function": { "params": [ @@ -315,9 +303,7 @@ "start": 440, "end": 451 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -360,9 +346,7 @@ "start": 543, "end": 548 }, - "ctxt": 0, - "value": "priv2", - "optional": false + "value": "priv2" } }, "right": { @@ -408,9 +392,7 @@ "start": 643, "end": 648 }, - "ctxt": 0, - "value": "prot2", - "optional": false + "value": "prot2" } }, "right": { @@ -456,9 +438,7 @@ "start": 740, "end": 744 }, - "ctxt": 0, - "value": "pub2", - "optional": false + "value": "pub2" } }, "right": { @@ -489,9 +469,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "function": { "params": [], @@ -534,9 +512,7 @@ "start": 778, "end": 783 }, - "ctxt": 0, - "value": "priv2", - "optional": false + "value": "priv2" } } } @@ -593,9 +569,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -652,9 +626,7 @@ "start": 831, "end": 835 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" } }, "right": { @@ -676,9 +648,7 @@ "start": 843, "end": 847 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" } } }, @@ -701,9 +671,7 @@ "start": 855, "end": 858 }, - "ctxt": 0, - "value": "pub", - "optional": false + "value": "pub" } } } @@ -770,9 +738,7 @@ "start": 891, "end": 892 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "function": { "params": [], @@ -829,9 +795,7 @@ "start": 910, "end": 915 }, - "ctxt": 0, - "value": "priv2", - "optional": false + "value": "priv2" } }, "right": { @@ -853,9 +817,7 @@ "start": 923, "end": 928 }, - "ctxt": 0, - "value": "prot2", - "optional": false + "value": "prot2" } } }, @@ -878,9 +840,7 @@ "start": 936, "end": 940 }, - "ctxt": 0, - "value": "pub2", - "optional": false + "value": "pub2" } } } @@ -967,9 +927,7 @@ "start": 957, "end": 961 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" } }, "right": { @@ -1004,9 +962,7 @@ "start": 972, "end": 976 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" } } }, @@ -1042,9 +998,7 @@ "start": 987, "end": 990 }, - "ctxt": 0, - "value": "pub", - "optional": false + "value": "pub" } } } @@ -1101,9 +1055,7 @@ "start": 999, "end": 1003 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" } }, "right": { @@ -1138,9 +1090,7 @@ "start": 1014, "end": 1018 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" } } }, @@ -1176,9 +1126,7 @@ "start": 1029, "end": 1032 }, - "ctxt": 0, - "value": "pub", - "optional": false + "value": "pub" } } } @@ -1235,9 +1183,7 @@ "start": 1041, "end": 1046 }, - "ctxt": 0, - "value": "priv2", - "optional": false + "value": "priv2" } }, "right": { @@ -1272,9 +1218,7 @@ "start": 1057, "end": 1062 }, - "ctxt": 0, - "value": "prot2", - "optional": false + "value": "prot2" } } }, @@ -1310,9 +1254,7 @@ "start": 1073, "end": 1077 }, - "ctxt": 0, - "value": "pub2", - "optional": false + "value": "pub2" } } } @@ -1369,9 +1311,7 @@ "start": 1086, "end": 1091 }, - "ctxt": 0, - "value": "priv2", - "optional": false + "value": "priv2" } }, "right": { @@ -1406,9 +1346,7 @@ "start": 1102, "end": 1107 }, - "ctxt": 0, - "value": "prot2", - "optional": false + "value": "prot2" } } }, @@ -1444,9 +1382,7 @@ "start": 1118, "end": 1122 }, - "ctxt": 0, - "value": "pub2", - "optional": false + "value": "pub2" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTagsDeclarations.json b/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTagsDeclarations.json index 686d2a3f468e..5f3756c029d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTagsDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocAccessibilityTagsDeclarations.json @@ -38,9 +38,7 @@ "start": 193, "end": 204 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -103,9 +101,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -137,9 +133,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -182,9 +176,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -214,9 +206,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -259,9 +249,7 @@ "start": 369, "end": 370 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -291,9 +279,7 @@ "start": 403, "end": 404 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -363,9 +349,7 @@ "start": 419, "end": 420 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -434,9 +418,7 @@ "start": 474, "end": 485 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -499,9 +481,7 @@ "start": 528, "end": 529 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -533,9 +513,7 @@ "start": 564, "end": 565 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -578,9 +556,7 @@ "start": 590, "end": 591 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -610,9 +586,7 @@ "start": 626, "end": 627 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -655,9 +629,7 @@ "start": 644, "end": 645 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -687,9 +659,7 @@ "start": 676, "end": 677 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -759,9 +729,7 @@ "start": 692, "end": 693 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -830,9 +798,7 @@ "start": 777, "end": 788 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocAugmentsMissingType.json b/crates/swc_ecma_parser/tests/tsc/jsdocAugmentsMissingType.json index 84e4d936d044..1408d1286940 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocAugmentsMissingType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocAugmentsMissingType.json @@ -38,9 +38,7 @@ "start": 85, "end": 96 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -143,9 +139,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -188,9 +182,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocAugments_noExtends.json b/crates/swc_ecma_parser/tests/tsc/jsdocAugments_noExtends.json index ee4fd99d3ac8..40c2d4e28604 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocAugments_noExtends.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocAugments_noExtends.json @@ -38,9 +38,7 @@ "start": 85, "end": 96 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -143,9 +139,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -188,9 +182,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocAugments_withTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/jsdocAugments_withTypeParameter.json index 7a3910f927ff..d375512107fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocAugments_withTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocAugments_withTypeParameter.json @@ -37,9 +37,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -146,9 +144,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -191,9 +187,7 @@ "start": 203, "end": 204 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocCatchClauseWithTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/jsdocCatchClauseWithTypeAnnotation.json index a06f98858e25..6c6f01bb4ad7 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocCatchClauseWithTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocCatchClauseWithTypeAnnotation.json @@ -321,9 +321,7 @@ "start": 659, "end": 662 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -400,9 +398,7 @@ "start": 763, "end": 766 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -479,9 +475,7 @@ "start": 848, "end": 851 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -565,9 +559,7 @@ "start": 941, "end": 944 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -668,9 +660,7 @@ "start": 1026, "end": 1029 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -764,9 +754,7 @@ "start": 1107, "end": 1110 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -843,9 +831,7 @@ "start": 1197, "end": 1200 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -991,9 +977,7 @@ "start": 1433, "end": 1436 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [], @@ -1062,9 +1046,7 @@ "start": 1546, "end": 1549 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1099,9 +1081,7 @@ "start": 1554, "end": 1565 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -1421,9 +1401,7 @@ "start": 1915, "end": 1918 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -1519,9 +1497,7 @@ "start": 2000, "end": 2003 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -1624,9 +1600,7 @@ "start": 2095, "end": 2098 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1746,9 +1720,7 @@ "start": 2192, "end": 2195 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json b/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json index ab7fbeaab848..323779c52eb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json @@ -91,9 +91,7 @@ "start": 178, "end": 183 }, - "ctxt": 0, - "value": "flags", - "optional": false + "value": "flags" } }, "right": { @@ -159,9 +157,7 @@ "start": 206, "end": 215 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -170,9 +166,7 @@ "start": 216, "end": 219 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } }, "right": { @@ -279,9 +273,7 @@ "start": 323, "end": 328 }, - "ctxt": 0, - "value": "flags", - "optional": false + "value": "flags" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json b/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json index 560a27f2c8b4..f7291ef45cbc 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json @@ -194,9 +194,7 @@ "start": 320, "end": 326 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -331,9 +329,7 @@ "start": 575, "end": 586 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -396,9 +392,7 @@ "start": 605, "end": 611 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -582,9 +576,7 @@ "start": 663, "end": 669 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -822,9 +814,7 @@ "start": 855, "end": 861 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1003,9 +993,7 @@ "start": 911, "end": 917 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -1218,9 +1206,7 @@ "start": 1069, "end": 1075 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -1321,9 +1307,7 @@ "start": 1154, "end": 1175 }, - "ctxt": 0, - "value": "not_length_on_purpose", - "optional": false + "value": "not_length_on_purpose" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json index 25fe2abd9e8b..9f4a7069e80b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json @@ -37,9 +37,7 @@ "start": 170, "end": 176 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -137,9 +135,7 @@ "start": 242, "end": 248 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -226,9 +222,7 @@ "start": 332, "end": 338 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -383,9 +377,7 @@ "start": 436, "end": 438 }, - "ctxt": 0, - "value": "C1", - "optional": false + "value": "C1" } }, "right": { @@ -410,9 +402,7 @@ "start": 453, "end": 459 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -518,9 +508,7 @@ "start": 523, "end": 529 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -621,9 +609,7 @@ "start": 590, "end": 592 }, - "ctxt": 0, - "value": "C3", - "optional": false + "value": "C3" }, "value": { "type": "ClassExpression", @@ -647,9 +633,7 @@ "start": 610, "end": 616 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -743,9 +727,7 @@ "start": 684, "end": 686 }, - "ctxt": 0, - "value": "C4", - "optional": false + "value": "C4" }, "value": { "type": "ClassExpression", @@ -769,9 +751,7 @@ "start": 705, "end": 711 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -911,9 +891,7 @@ "start": 792, "end": 794 }, - "ctxt": 0, - "value": "C5", - "optional": false + "value": "C5" } }, "right": { @@ -955,9 +933,7 @@ "start": 815, "end": 821 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json index 4951cbb98aba..f8cfd0add96b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json @@ -102,9 +102,7 @@ "start": 227, "end": 234 }, - "ctxt": 0, - "value": "mNumber", - "optional": false + "value": "mNumber" }, "function": { "params": [], @@ -191,9 +189,7 @@ "start": 303, "end": 310 }, - "ctxt": 0, - "value": "mNumber", - "optional": false + "value": "mNumber" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface_multiple.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface_multiple.json index 024b53227ae1..06122f9cd626 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface_multiple.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface_multiple.json @@ -167,9 +167,7 @@ "start": 318, "end": 322 }, - "ctxt": 0, - "value": "draw", - "optional": false + "value": "draw" }, "function": { "params": [], @@ -229,9 +227,7 @@ "start": 355, "end": 359 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "function": { "params": [], @@ -318,9 +314,7 @@ "start": 470, "end": 474 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_missingType.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_missingType.json index 8d94534e6de2..fd8098dfc4ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_missingType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_missingType.json @@ -38,9 +38,7 @@ "start": 138, "end": 149 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json index a27e9f82dc36..99a65888c0f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json @@ -235,9 +235,7 @@ "start": 311, "end": 318 }, - "ctxt": 0, - "value": "mNumber", - "optional": false + "value": "mNumber" }, "function": { "params": [], @@ -324,9 +322,7 @@ "start": 399, "end": 402 }, - "ctxt": 0, - "value": "gen", - "optional": false + "value": "gen" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_properties.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_properties.json index b732abc7c7e1..280bd128d8d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_properties.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_properties.json @@ -38,9 +38,7 @@ "start": 138, "end": 149 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -169,9 +165,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -233,9 +227,7 @@ "start": 284, "end": 295 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -278,9 +270,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json index 5d2cf1a96c09..3ed1c6348eeb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json @@ -240,9 +240,7 @@ "start": 265, "end": 276 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -285,9 +283,7 @@ "start": 294, "end": 299 }, - "ctxt": 0, - "value": "chunk", - "optional": false + "value": "chunk" } }, "right": { @@ -348,9 +344,7 @@ "start": 320, "end": 327 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -425,9 +419,7 @@ "start": 455, "end": 460 }, - "ctxt": 0, - "value": "chunk", - "optional": false + "value": "chunk" } } }, @@ -555,9 +547,7 @@ "start": 518, "end": 523 }, - "ctxt": 0, - "value": "chunk", - "optional": false + "value": "chunk" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json index 3f834fbcd07e..df11de4734cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json @@ -242,9 +242,7 @@ "start": 254, "end": 261 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -279,9 +277,7 @@ "start": 282, "end": 293 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -324,9 +320,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "chunk", - "optional": false + "value": "chunk" } }, "right": { @@ -414,9 +408,7 @@ "start": 448, "end": 453 }, - "ctxt": 0, - "value": "chunk", - "optional": false + "value": "chunk" } } }, @@ -544,9 +536,7 @@ "start": 511, "end": 516 }, - "ctxt": 0, - "value": "chunk", - "optional": false + "value": "chunk" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToClassAlias.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToClassAlias.json index c9dbafd1ecb7..c92f3078465f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToClassAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToClassAlias.json @@ -37,9 +37,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [], @@ -118,9 +116,7 @@ "start": 107, "end": 114 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -129,9 +125,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "right": { @@ -222,9 +216,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToCommonjsModule.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToCommonjsModule.json index 27681220cf58..f96dffa58b85 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToCommonjsModule.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToCommonjsModule.json @@ -180,9 +180,7 @@ "start": 215, "end": 218 }, - "ctxt": 0, - "value": "fix", - "optional": false + "value": "fix" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToESModule.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToESModule.json index 2d9bfe05cd20..fcd31e7c21e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToESModule.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToESModule.json @@ -134,9 +134,7 @@ "start": 179, "end": 185 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/jsdocIndexSignature.json index 82b783af805d..19ae54dead39 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocIndexSignature.json @@ -184,9 +184,7 @@ "start": 287, "end": 290 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -235,9 +233,7 @@ "start": 311, "end": 314 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag6.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag6.json index 8fbf7b80b767..fb00764de662 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag6.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag6.json @@ -37,9 +37,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag7.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag7.json index 585539786f88..07564e30d7b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag7.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag7.json @@ -37,9 +37,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters1.json b/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters1.json index 5885c0edd75f..4569546c1a43 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters1.json @@ -175,9 +175,7 @@ "start": 219, "end": 222 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -233,9 +231,7 @@ "start": 232, "end": 241 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -244,9 +240,7 @@ "start": 242, "end": 245 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters2.json b/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters2.json index f6e927f32d8d..5469c75c17b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters2.json @@ -175,9 +175,7 @@ "start": 217, "end": 220 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -233,9 +231,7 @@ "start": 230, "end": 239 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -244,9 +240,7 @@ "start": 240, "end": 243 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters3.json b/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters3.json index 42a41fa36a9a..cd1cc8f645a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocOuterTypeParameters3.json @@ -37,9 +37,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -89,9 +87,7 @@ "start": 145, "end": 148 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -147,9 +143,7 @@ "start": 158, "end": 167 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -158,9 +152,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json b/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json index 5bfa35881e2d..be5f19ba791f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json @@ -37,9 +37,7 @@ "start": 209, "end": 212 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -145,9 +143,7 @@ "start": 266, "end": 269 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -217,9 +213,7 @@ "start": 417, "end": 420 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -289,9 +283,7 @@ "start": 448, "end": 451 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -338,9 +330,7 @@ "start": 466, "end": 469 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -383,9 +373,7 @@ "start": 508, "end": 511 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -464,9 +452,7 @@ "start": 563, "end": 566 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocParamTag2.json b/crates/swc_ecma_parser/tests/tsc/jsdocParamTag2.json index 65d6dca5b6e3..1dd8bfd94503 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocParamTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocParamTag2.json @@ -1071,9 +1071,7 @@ "start": 1396, "end": 1399 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json b/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json index ec5d0a695fc6..eb1ba9ba09e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json @@ -193,9 +193,7 @@ "start": 550, "end": 551 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -247,9 +245,7 @@ "start": 562, "end": 563 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -367,9 +363,7 @@ "start": 756, "end": 764 }, - "ctxt": 0, - "value": "anotherX", - "optional": false + "value": "anotherX" } } } @@ -430,9 +424,7 @@ "start": 776, "end": 784 }, - "ctxt": 0, - "value": "anotherX", - "optional": false + "value": "anotherX" }, "value": { "type": "StringLiteral", @@ -530,9 +522,7 @@ "start": 892, "end": 893 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -584,9 +574,7 @@ "start": 903, "end": 904 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -704,9 +692,7 @@ "start": 1113, "end": 1114 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -767,9 +753,7 @@ "start": 1127, "end": 1128 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -908,9 +892,7 @@ "start": 1786, "end": 1790 }, - "ctxt": 0, - "value": "what", - "optional": false + "value": "what" } }, "property": { @@ -919,9 +901,7 @@ "start": 1791, "end": 1794 }, - "ctxt": 0, - "value": "bad", - "optional": false + "value": "bad" } }, "property": { @@ -947,9 +927,7 @@ "start": 1798, "end": 1802 }, - "ctxt": 0, - "value": "idea", - "optional": false + "value": "idea" } } }, @@ -1004,9 +982,7 @@ "start": 1817, "end": 1823 }, - "ctxt": 0, - "value": "unnest", - "optional": false + "value": "unnest" } } } @@ -1067,9 +1043,7 @@ "start": 1836, "end": 1840 }, - "ctxt": 0, - "value": "help", - "optional": false + "value": "help" }, "value": { "type": "StringLiteral", @@ -1089,9 +1063,7 @@ "start": 1850, "end": 1854 }, - "ctxt": 0, - "value": "what", - "optional": false + "value": "what" }, "value": { "type": "ObjectExpression", @@ -1108,9 +1080,7 @@ "start": 1858, "end": 1859 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1130,9 +1100,7 @@ "start": 1866, "end": 1869 }, - "ctxt": 0, - "value": "bad", - "optional": false + "value": "bad" }, "value": { "type": "ArrayExpression", @@ -1158,9 +1126,7 @@ "start": 1874, "end": 1878 }, - "ctxt": 0, - "value": "idea", - "optional": false + "value": "idea" }, "value": { "type": "StringLiteral", @@ -1180,9 +1146,7 @@ "start": 1888, "end": 1890 }, - "ctxt": 0, - "value": "oh", - "optional": false + "value": "oh" }, "value": { "type": "BooleanLiteral", @@ -1210,9 +1174,7 @@ "start": 1904, "end": 1910 }, - "ctxt": 0, - "value": "unnest", - "optional": false + "value": "unnest" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocParseDotDotDotInJSDocFunction.json b/crates/swc_ecma_parser/tests/tsc/jsdocParseDotDotDotInJSDocFunction.json index 36d69cb81c5d..d71900c350ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocParseDotDotDotInJSDocFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocParseDotDotDotInJSDocFunction.json @@ -209,9 +209,7 @@ "start": 293, "end": 305 }, - "ctxt": 0, - "value": "fromCharCode", - "optional": false + "value": "fromCharCode" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocParseParenthesizedJSDocParameter.json b/crates/swc_ecma_parser/tests/tsc/jsdocParseParenthesizedJSDocParameter.json index 13698417a8df..43e59db9727e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocParseParenthesizedJSDocParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocParseParenthesizedJSDocParameter.json @@ -81,9 +81,7 @@ "start": 151, "end": 159 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocPrototypePropertyAccessWithType.json b/crates/swc_ecma_parser/tests/tsc/jsdocPrototypePropertyAccessWithType.json index 50f5a736bccc..7a51e771f7f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocPrototypePropertyAccessWithType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocPrototypePropertyAccessWithType.json @@ -65,9 +65,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -128,9 +126,7 @@ "start": 133, "end": 142 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -139,9 +135,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -183,9 +177,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocReadonly.json b/crates/swc_ecma_parser/tests/tsc/jsdocReadonly.json index 63c072025331..749396697326 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocReadonly.json @@ -37,9 +37,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -109,9 +105,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -146,9 +140,7 @@ "start": 368, "end": 379 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -191,9 +183,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -239,9 +229,7 @@ "start": 462, "end": 464 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" } }, "right": { @@ -353,9 +341,7 @@ "start": 498, "end": 499 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocReadonlyDeclarations.json b/crates/swc_ecma_parser/tests/tsc/jsdocReadonlyDeclarations.json index f078fc372513..eb310424fa75 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocReadonlyDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocReadonlyDeclarations.json @@ -37,9 +37,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 242, "end": 253 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -139,9 +135,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -188,9 +182,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -255,9 +247,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -321,9 +311,7 @@ "start": 432, "end": 433 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -377,9 +365,7 @@ "start": 511, "end": 522 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateClass.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateClass.json index 845cb899ef5a..544c58cc6645 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateClass.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateClass.json @@ -38,9 +38,7 @@ "start": 242, "end": 253 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -103,9 +101,7 @@ "start": 273, "end": 274 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -137,9 +133,7 @@ "start": 403, "end": 406 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -463,9 +457,7 @@ "start": 501, "end": 502 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -490,9 +482,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction.json index 278d0b2b5911..e0a6ac488f42 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction.json @@ -78,9 +78,7 @@ "start": 245, "end": 246 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } } }, @@ -116,9 +114,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -181,9 +177,7 @@ "start": 313, "end": 322 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -192,9 +186,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "right": { @@ -286,9 +278,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "right": { @@ -327,9 +317,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } } } @@ -380,9 +368,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } } } @@ -498,9 +484,7 @@ "start": 417, "end": 418 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -549,9 +533,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction2.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction2.json index b5261505a2c2..66a071c0cf9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateConstructorFunction2.json @@ -78,9 +78,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } } }, @@ -116,9 +114,7 @@ "start": 203, "end": 204 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -181,9 +177,7 @@ "start": 283, "end": 292 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -192,9 +186,7 @@ "start": 293, "end": 296 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "right": { @@ -286,9 +278,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "right": { @@ -330,9 +320,7 @@ "start": 336, "end": 342 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } } } @@ -363,9 +351,7 @@ "start": 359, "end": 360 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } } } @@ -477,9 +463,7 @@ "start": 384, "end": 385 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -528,9 +512,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "right": { @@ -599,9 +581,7 @@ "start": 439, "end": 442 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -634,9 +614,7 @@ "start": 448, "end": 454 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "NumericLiteral", @@ -700,9 +678,7 @@ "start": 633, "end": 638 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json index 290884124e2a..b48592a1a983 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json @@ -364,9 +364,7 @@ "start": 462, "end": 471 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -375,9 +373,7 @@ "start": 472, "end": 479 }, - "ctxt": 0, - "value": "animate", - "optional": false + "value": "animate" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag2.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag2.json index 9eac7a8b1fd0..2df6ba68297e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag2.json @@ -47,9 +47,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json index ce1771ba5a2d..87d9d863d52b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json @@ -178,9 +178,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -211,9 +209,7 @@ "start": 405, "end": 406 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -222,9 +218,7 @@ "start": 407, "end": 413 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -257,9 +251,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -290,9 +282,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -301,9 +291,7 @@ "start": 426, "end": 432 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -330,9 +318,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -430,9 +416,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -452,9 +436,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -474,9 +456,7 @@ "start": 504, "end": 505 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NullLiteral", @@ -519,9 +499,7 @@ "start": 528, "end": 529 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -540,9 +518,7 @@ "start": 538, "end": 539 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -562,9 +538,7 @@ "start": 545, "end": 546 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -649,9 +623,7 @@ "start": 579, "end": 580 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json index adc7ccbf394b..51ac9475476d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json @@ -65,9 +65,7 @@ "start": 312, "end": 316 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -135,9 +133,7 @@ "start": 402, "end": 411 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -146,9 +142,7 @@ "start": 412, "end": 415 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "right": { @@ -220,9 +214,7 @@ "start": 451, "end": 455 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -347,9 +339,7 @@ "start": 693, "end": 697 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -414,9 +404,7 @@ "start": 784, "end": 793 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -425,9 +413,7 @@ "start": 794, "end": 797 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "right": { @@ -499,9 +485,7 @@ "start": 833, "end": 837 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -623,9 +607,7 @@ "start": 986, "end": 995 }, - "ctxt": 0, - "value": "Multimap3", - "optional": false + "value": "Multimap3" } }, "right": { @@ -678,9 +660,7 @@ "start": 1106, "end": 1110 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -749,9 +729,7 @@ "start": 1190, "end": 1199 }, - "ctxt": 0, - "value": "Multimap3", - "optional": false + "value": "Multimap3" } }, "property": { @@ -760,9 +738,7 @@ "start": 1200, "end": 1209 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -771,9 +747,7 @@ "start": 1210, "end": 1213 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "right": { @@ -845,9 +819,7 @@ "start": 1249, "end": 1253 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json index 1de433439e5e..2986990f3d60 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json @@ -65,9 +65,7 @@ "start": 312, "end": 316 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -129,9 +127,7 @@ "start": 336, "end": 345 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -149,9 +145,7 @@ "start": 436, "end": 439 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [ { @@ -219,9 +213,7 @@ "start": 467, "end": 471 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -348,9 +340,7 @@ "start": 715, "end": 719 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -409,9 +399,7 @@ "start": 740, "end": 749 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -429,9 +417,7 @@ "start": 840, "end": 843 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -502,9 +488,7 @@ "start": 881, "end": 885 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -629,9 +613,7 @@ "start": 1040, "end": 1049 }, - "ctxt": 0, - "value": "Multimap3", - "optional": false + "value": "Multimap3" } }, "right": { @@ -684,9 +666,7 @@ "start": 1160, "end": 1164 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -749,9 +729,7 @@ "start": 1178, "end": 1187 }, - "ctxt": 0, - "value": "Multimap3", - "optional": false + "value": "Multimap3" } }, "property": { @@ -760,9 +738,7 @@ "start": 1188, "end": 1197 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -780,9 +756,7 @@ "start": 1288, "end": 1291 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [ { @@ -850,9 +824,7 @@ "start": 1319, "end": 1323 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json index ec91aaf96c90..8880cff9eb99 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json @@ -315,9 +315,7 @@ "start": 255, "end": 256 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -337,9 +335,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -359,9 +355,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrayExpression", @@ -422,9 +416,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "StringLiteral", @@ -769,9 +761,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -791,9 +781,7 @@ "start": 478, "end": 479 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -813,9 +801,7 @@ "start": 486, "end": 487 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrayExpression", @@ -876,9 +862,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "StringLiteral", @@ -1420,9 +1404,7 @@ "start": 825, "end": 826 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1442,9 +1424,7 @@ "start": 831, "end": 832 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1476,9 +1456,7 @@ "start": 843, "end": 844 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1498,9 +1476,7 @@ "start": 849, "end": 850 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1601,9 +1577,7 @@ "start": 971, "end": 972 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1676,9 +1650,7 @@ "start": 993, "end": 994 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrayExpression", @@ -1722,9 +1694,7 @@ "start": 1006, "end": 1007 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrayExpression", @@ -1832,9 +1802,7 @@ "start": 1039, "end": 1040 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -1851,9 +1819,7 @@ "start": 1044, "end": 1045 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1873,9 +1839,7 @@ "start": 1050, "end": 1051 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1898,9 +1862,7 @@ "start": 1060, "end": 1061 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ObjectExpression", @@ -1917,9 +1879,7 @@ "start": 1065, "end": 1066 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1939,9 +1899,7 @@ "start": 1071, "end": 1072 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1999,9 +1957,7 @@ "start": 1164, "end": 1175 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2048,9 +2004,7 @@ "start": 1248, "end": 1251 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2188,9 +2142,7 @@ "start": 1304, "end": 1305 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -2210,9 +2162,7 @@ "start": 1310, "end": 1311 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -2232,9 +2182,7 @@ "start": 1318, "end": 1319 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "ArrayExpression", @@ -2295,9 +2243,7 @@ "start": 1338, "end": 1339 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "StringLiteral", @@ -2381,9 +2327,7 @@ "start": 1368, "end": 1371 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2624,9 +2568,7 @@ "start": 1545, "end": 1546 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -2646,9 +2588,7 @@ "start": 1551, "end": 1552 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json index 87ea2fce2b70..fdb106f76130 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json @@ -47,9 +47,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -109,9 +107,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -243,9 +239,7 @@ "start": 551, "end": 552 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -330,9 +324,7 @@ "start": 635, "end": 636 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -489,9 +481,7 @@ "start": 898, "end": 899 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -576,9 +566,7 @@ "start": 974, "end": 975 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json index ddc9b0843414..a37bd6f7c0aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json @@ -47,9 +47,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json b/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json index 49720a686edf..7bd801e7ed85 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocThisType.json @@ -261,9 +261,7 @@ "start": 261, "end": 265 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -348,9 +346,7 @@ "start": 339, "end": 343 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -448,9 +444,7 @@ "start": 443, "end": 447 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -535,9 +529,7 @@ "start": 539, "end": 543 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -635,9 +627,7 @@ "start": 649, "end": 653 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -722,9 +712,7 @@ "start": 751, "end": 755 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json index 9c5c0ac64a6b..d571672fde76 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json @@ -65,9 +65,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -113,9 +111,7 @@ "start": 158, "end": 163 }, - "ctxt": 0, - "value": "first", - "optional": false + "value": "first" } }, "right": { @@ -144,9 +140,7 @@ "start": 171, "end": 177 }, - "ctxt": 0, - "value": "second", - "optional": false + "value": "second" } }, "right": { @@ -209,9 +203,7 @@ "start": 211, "end": 220 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -220,9 +212,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -260,9 +250,7 @@ "start": 227, "end": 236 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -271,9 +259,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -365,9 +351,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -417,9 +401,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -451,9 +433,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -545,9 +525,7 @@ "start": 354, "end": 355 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -648,9 +626,7 @@ "start": 376, "end": 377 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [ @@ -705,9 +681,7 @@ "start": 395, "end": 396 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "arguments": [ @@ -762,9 +736,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "arguments": [ @@ -819,9 +791,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "arguments": [ @@ -876,9 +846,7 @@ "start": 479, "end": 484 }, - "ctxt": 0, - "value": "first", - "optional": false + "value": "first" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json index cd799caa25cd..cd76cb2794ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json @@ -40,9 +40,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -74,9 +72,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "right": { @@ -211,9 +207,7 @@ "start": 219, "end": 226 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -222,9 +216,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "right": { @@ -262,9 +254,7 @@ "start": 238, "end": 245 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -273,9 +263,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "right": { @@ -482,9 +470,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -539,9 +525,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [ @@ -596,9 +580,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "arguments": [ @@ -653,9 +635,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment3.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment3.json index 396d733d696c..9fee61ac959c 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment3.json @@ -40,9 +40,7 @@ "start": 81, "end": 89 }, - "ctxt": 0, - "value": "wrapSync", - "optional": false + "value": "wrapSync" } }, "right": { @@ -74,9 +72,7 @@ "start": 100, "end": 112 }, - "ctxt": 0, - "value": "selectSeries", - "optional": false + "value": "selectSeries" } }, "right": { @@ -108,9 +104,7 @@ "start": 123, "end": 134 }, - "ctxt": 0, - "value": "selectLimit", - "optional": false + "value": "selectLimit" } }, "right": { @@ -142,9 +136,7 @@ "start": 145, "end": 151 }, - "ctxt": 0, - "value": "select", - "optional": false + "value": "select" } }, "right": { @@ -176,9 +168,7 @@ "start": 162, "end": 167 }, - "ctxt": 0, - "value": "foldr", - "optional": false + "value": "foldr" } }, "right": { @@ -210,9 +200,7 @@ "start": 178, "end": 183 }, - "ctxt": 0, - "value": "foldl", - "optional": false + "value": "foldl" } }, "right": { @@ -244,9 +232,7 @@ "start": 194, "end": 200 }, - "ctxt": 0, - "value": "inject", - "optional": false + "value": "inject" } }, "right": { @@ -278,9 +264,7 @@ "start": 211, "end": 225 }, - "ctxt": 0, - "value": "forEachOfLimit", - "optional": false + "value": "forEachOfLimit" } }, "right": { @@ -312,9 +296,7 @@ "start": 236, "end": 251 }, - "ctxt": 0, - "value": "forEachOfSeries", - "optional": false + "value": "forEachOfSeries" } }, "right": { @@ -346,9 +328,7 @@ "start": 262, "end": 271 }, - "ctxt": 0, - "value": "forEachOf", - "optional": false + "value": "forEachOf" } }, "right": { @@ -380,9 +360,7 @@ "start": 282, "end": 294 }, - "ctxt": 0, - "value": "forEachLimit", - "optional": false + "value": "forEachLimit" } }, "right": { @@ -414,9 +392,7 @@ "start": 305, "end": 318 }, - "ctxt": 0, - "value": "forEachSeries", - "optional": false + "value": "forEachSeries" } }, "right": { @@ -448,9 +424,7 @@ "start": 329, "end": 336 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "right": { @@ -482,9 +456,7 @@ "start": 347, "end": 357 }, - "ctxt": 0, - "value": "findSeries", - "optional": false + "value": "findSeries" } }, "right": { @@ -516,9 +488,7 @@ "start": 368, "end": 377 }, - "ctxt": 0, - "value": "findLimit", - "optional": false + "value": "findLimit" } }, "right": { @@ -550,9 +520,7 @@ "start": 388, "end": 392 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "right": { @@ -584,9 +552,7 @@ "start": 403, "end": 412 }, - "ctxt": 0, - "value": "anySeries", - "optional": false + "value": "anySeries" } }, "right": { @@ -618,9 +584,7 @@ "start": 423, "end": 431 }, - "ctxt": 0, - "value": "anyLimit", - "optional": false + "value": "anyLimit" } }, "right": { @@ -652,9 +616,7 @@ "start": 442, "end": 445 }, - "ctxt": 0, - "value": "any", - "optional": false + "value": "any" } }, "right": { @@ -686,9 +648,7 @@ "start": 456, "end": 465 }, - "ctxt": 0, - "value": "allSeries", - "optional": false + "value": "allSeries" } }, "right": { @@ -720,9 +680,7 @@ "start": 476, "end": 484 }, - "ctxt": 0, - "value": "allLimit", - "optional": false + "value": "allLimit" } }, "right": { @@ -754,9 +712,7 @@ "start": 495, "end": 498 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "right": { @@ -788,9 +744,7 @@ "start": 509, "end": 515 }, - "ctxt": 0, - "value": "whilst", - "optional": false + "value": "whilst" } }, "right": { @@ -822,9 +776,7 @@ "start": 526, "end": 535 }, - "ctxt": 0, - "value": "waterfall", - "optional": false + "value": "waterfall" } }, "right": { @@ -856,9 +808,7 @@ "start": 546, "end": 551 }, - "ctxt": 0, - "value": "until", - "optional": false + "value": "until" } }, "right": { @@ -890,9 +840,7 @@ "start": 562, "end": 571 }, - "ctxt": 0, - "value": "unmemoize", - "optional": false + "value": "unmemoize" } }, "right": { @@ -924,9 +872,7 @@ "start": 582, "end": 589 }, - "ctxt": 0, - "value": "tryEach", - "optional": false + "value": "tryEach" } }, "right": { @@ -958,9 +904,7 @@ "start": 600, "end": 609 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" } }, "right": { @@ -992,9 +936,7 @@ "start": 620, "end": 631 }, - "ctxt": 0, - "value": "timesSeries", - "optional": false + "value": "timesSeries" } }, "right": { @@ -1026,9 +968,7 @@ "start": 642, "end": 652 }, - "ctxt": 0, - "value": "timesLimit", - "optional": false + "value": "timesLimit" } }, "right": { @@ -1060,9 +1000,7 @@ "start": 663, "end": 668 }, - "ctxt": 0, - "value": "times", - "optional": false + "value": "times" } }, "right": { @@ -1094,9 +1032,7 @@ "start": 679, "end": 686 }, - "ctxt": 0, - "value": "timeout", - "optional": false + "value": "timeout" } }, "right": { @@ -1128,9 +1064,7 @@ "start": 697, "end": 703 }, - "ctxt": 0, - "value": "sortBy", - "optional": false + "value": "sortBy" } }, "right": { @@ -1162,9 +1096,7 @@ "start": 714, "end": 724 }, - "ctxt": 0, - "value": "someSeries", - "optional": false + "value": "someSeries" } }, "right": { @@ -1196,9 +1128,7 @@ "start": 735, "end": 744 }, - "ctxt": 0, - "value": "someLimit", - "optional": false + "value": "someLimit" } }, "right": { @@ -1230,9 +1160,7 @@ "start": 755, "end": 759 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "right": { @@ -1264,9 +1192,7 @@ "start": 770, "end": 782 }, - "ctxt": 0, - "value": "setImmediate", - "optional": false + "value": "setImmediate" } }, "right": { @@ -1298,9 +1224,7 @@ "start": 793, "end": 799 }, - "ctxt": 0, - "value": "series", - "optional": false + "value": "series" } }, "right": { @@ -1332,9 +1256,7 @@ "start": 810, "end": 813 }, - "ctxt": 0, - "value": "seq", - "optional": false + "value": "seq" } }, "right": { @@ -1366,9 +1288,7 @@ "start": 824, "end": 833 }, - "ctxt": 0, - "value": "retryable", - "optional": false + "value": "retryable" } }, "right": { @@ -1400,9 +1320,7 @@ "start": 844, "end": 849 }, - "ctxt": 0, - "value": "retry", - "optional": false + "value": "retry" } }, "right": { @@ -1434,9 +1352,7 @@ "start": 860, "end": 872 }, - "ctxt": 0, - "value": "rejectSeries", - "optional": false + "value": "rejectSeries" } }, "right": { @@ -1468,9 +1384,7 @@ "start": 883, "end": 894 }, - "ctxt": 0, - "value": "rejectLimit", - "optional": false + "value": "rejectLimit" } }, "right": { @@ -1502,9 +1416,7 @@ "start": 905, "end": 911 }, - "ctxt": 0, - "value": "reject", - "optional": false + "value": "reject" } }, "right": { @@ -1536,9 +1448,7 @@ "start": 922, "end": 932 }, - "ctxt": 0, - "value": "reflectAll", - "optional": false + "value": "reflectAll" } }, "right": { @@ -1570,9 +1480,7 @@ "start": 943, "end": 950 }, - "ctxt": 0, - "value": "reflect", - "optional": false + "value": "reflect" } }, "right": { @@ -1604,9 +1512,7 @@ "start": 961, "end": 972 }, - "ctxt": 0, - "value": "reduceRight", - "optional": false + "value": "reduceRight" } }, "right": { @@ -1638,9 +1544,7 @@ "start": 983, "end": 989 }, - "ctxt": 0, - "value": "reduce", - "optional": false + "value": "reduce" } }, "right": { @@ -1672,9 +1576,7 @@ "start": 1000, "end": 1004 }, - "ctxt": 0, - "value": "race", - "optional": false + "value": "race" } }, "right": { @@ -1706,9 +1608,7 @@ "start": 1015, "end": 1020 }, - "ctxt": 0, - "value": "queue", - "optional": false + "value": "queue" } }, "right": { @@ -1740,9 +1640,7 @@ "start": 1031, "end": 1044 }, - "ctxt": 0, - "value": "priorityQueue", - "optional": false + "value": "priorityQueue" } }, "right": { @@ -1774,9 +1672,7 @@ "start": 1055, "end": 1068 }, - "ctxt": 0, - "value": "parallelLimit", - "optional": false + "value": "parallelLimit" } }, "right": { @@ -1808,9 +1704,7 @@ "start": 1079, "end": 1087 }, - "ctxt": 0, - "value": "parallel", - "optional": false + "value": "parallel" } }, "right": { @@ -1842,9 +1736,7 @@ "start": 1098, "end": 1106 }, - "ctxt": 0, - "value": "nextTick", - "optional": false + "value": "nextTick" } }, "right": { @@ -1876,9 +1768,7 @@ "start": 1117, "end": 1124 }, - "ctxt": 0, - "value": "memoize", - "optional": false + "value": "memoize" } }, "right": { @@ -1910,9 +1800,7 @@ "start": 1135, "end": 1150 }, - "ctxt": 0, - "value": "mapValuesSeries", - "optional": false + "value": "mapValuesSeries" } }, "right": { @@ -1944,9 +1832,7 @@ "start": 1161, "end": 1175 }, - "ctxt": 0, - "value": "mapValuesLimit", - "optional": false + "value": "mapValuesLimit" } }, "right": { @@ -1978,9 +1864,7 @@ "start": 1186, "end": 1195 }, - "ctxt": 0, - "value": "mapValues", - "optional": false + "value": "mapValues" } }, "right": { @@ -2012,9 +1896,7 @@ "start": 1206, "end": 1215 }, - "ctxt": 0, - "value": "mapSeries", - "optional": false + "value": "mapSeries" } }, "right": { @@ -2046,9 +1928,7 @@ "start": 1226, "end": 1234 }, - "ctxt": 0, - "value": "mapLimit", - "optional": false + "value": "mapLimit" } }, "right": { @@ -2080,9 +1960,7 @@ "start": 1245, "end": 1248 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "right": { @@ -2114,9 +1992,7 @@ "start": 1259, "end": 1262 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -2148,9 +2024,7 @@ "start": 1273, "end": 1286 }, - "ctxt": 0, - "value": "groupBySeries", - "optional": false + "value": "groupBySeries" } }, "right": { @@ -2182,9 +2056,7 @@ "start": 1297, "end": 1309 }, - "ctxt": 0, - "value": "groupByLimit", - "optional": false + "value": "groupByLimit" } }, "right": { @@ -2216,9 +2088,7 @@ "start": 1320, "end": 1327 }, - "ctxt": 0, - "value": "groupBy", - "optional": false + "value": "groupBy" } }, "right": { @@ -2250,9 +2120,7 @@ "start": 1338, "end": 1345 }, - "ctxt": 0, - "value": "forever", - "optional": false + "value": "forever" } }, "right": { @@ -2284,9 +2152,7 @@ "start": 1356, "end": 1368 }, - "ctxt": 0, - "value": "filterSeries", - "optional": false + "value": "filterSeries" } }, "right": { @@ -2318,9 +2184,7 @@ "start": 1379, "end": 1390 }, - "ctxt": 0, - "value": "filterLimit", - "optional": false + "value": "filterLimit" } }, "right": { @@ -2352,9 +2216,7 @@ "start": 1401, "end": 1407 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "right": { @@ -2386,9 +2248,7 @@ "start": 1418, "end": 1429 }, - "ctxt": 0, - "value": "everySeries", - "optional": false + "value": "everySeries" } }, "right": { @@ -2420,9 +2280,7 @@ "start": 1440, "end": 1450 }, - "ctxt": 0, - "value": "everyLimit", - "optional": false + "value": "everyLimit" } }, "right": { @@ -2454,9 +2312,7 @@ "start": 1461, "end": 1466 }, - "ctxt": 0, - "value": "every", - "optional": false + "value": "every" } }, "right": { @@ -2488,9 +2344,7 @@ "start": 1477, "end": 1488 }, - "ctxt": 0, - "value": "ensureAsync", - "optional": false + "value": "ensureAsync" } }, "right": { @@ -2522,9 +2376,7 @@ "start": 1499, "end": 1509 }, - "ctxt": 0, - "value": "eachSeries", - "optional": false + "value": "eachSeries" } }, "right": { @@ -2556,9 +2408,7 @@ "start": 1520, "end": 1532 }, - "ctxt": 0, - "value": "eachOfSeries", - "optional": false + "value": "eachOfSeries" } }, "right": { @@ -2590,9 +2440,7 @@ "start": 1543, "end": 1554 }, - "ctxt": 0, - "value": "eachOfLimit", - "optional": false + "value": "eachOfLimit" } }, "right": { @@ -2624,9 +2472,7 @@ "start": 1565, "end": 1571 }, - "ctxt": 0, - "value": "eachOf", - "optional": false + "value": "eachOf" } }, "right": { @@ -2658,9 +2504,7 @@ "start": 1582, "end": 1591 }, - "ctxt": 0, - "value": "eachLimit", - "optional": false + "value": "eachLimit" } }, "right": { @@ -2692,9 +2536,7 @@ "start": 1602, "end": 1606 }, - "ctxt": 0, - "value": "each", - "optional": false + "value": "each" } }, "right": { @@ -2726,9 +2568,7 @@ "start": 1617, "end": 1623 }, - "ctxt": 0, - "value": "during", - "optional": false + "value": "during" } }, "right": { @@ -2760,9 +2600,7 @@ "start": 1634, "end": 1642 }, - "ctxt": 0, - "value": "doWhilst", - "optional": false + "value": "doWhilst" } }, "right": { @@ -2794,9 +2632,7 @@ "start": 1653, "end": 1660 }, - "ctxt": 0, - "value": "doUntil", - "optional": false + "value": "doUntil" } }, "right": { @@ -2828,9 +2664,7 @@ "start": 1671, "end": 1679 }, - "ctxt": 0, - "value": "doDuring", - "optional": false + "value": "doDuring" } }, "right": { @@ -2862,9 +2696,7 @@ "start": 1690, "end": 1693 }, - "ctxt": 0, - "value": "dir", - "optional": false + "value": "dir" } }, "right": { @@ -2896,9 +2728,7 @@ "start": 1704, "end": 1716 }, - "ctxt": 0, - "value": "detectSeries", - "optional": false + "value": "detectSeries" } }, "right": { @@ -2930,9 +2760,7 @@ "start": 1727, "end": 1738 }, - "ctxt": 0, - "value": "detectLimit", - "optional": false + "value": "detectLimit" } }, "right": { @@ -2964,9 +2792,7 @@ "start": 1749, "end": 1755 }, - "ctxt": 0, - "value": "detect", - "optional": false + "value": "detect" } }, "right": { @@ -2998,9 +2824,7 @@ "start": 1766, "end": 1774 }, - "ctxt": 0, - "value": "constant", - "optional": false + "value": "constant" } }, "right": { @@ -3032,9 +2856,7 @@ "start": 1785, "end": 1797 }, - "ctxt": 0, - "value": "concatSeries", - "optional": false + "value": "concatSeries" } }, "right": { @@ -3066,9 +2888,7 @@ "start": 1808, "end": 1819 }, - "ctxt": 0, - "value": "concatLimit", - "optional": false + "value": "concatLimit" } }, "right": { @@ -3100,9 +2920,7 @@ "start": 1830, "end": 1836 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "right": { @@ -3134,9 +2952,7 @@ "start": 1847, "end": 1854 }, - "ctxt": 0, - "value": "compose", - "optional": false + "value": "compose" } }, "right": { @@ -3168,9 +2984,7 @@ "start": 1865, "end": 1870 }, - "ctxt": 0, - "value": "cargo", - "optional": false + "value": "cargo" } }, "right": { @@ -3202,9 +3016,7 @@ "start": 1881, "end": 1891 }, - "ctxt": 0, - "value": "autoInject", - "optional": false + "value": "autoInject" } }, "right": { @@ -3236,9 +3048,7 @@ "start": 1902, "end": 1906 }, - "ctxt": 0, - "value": "auto", - "optional": false + "value": "auto" } }, "right": { @@ -3270,9 +3080,7 @@ "start": 1917, "end": 1925 }, - "ctxt": 0, - "value": "asyncify", - "optional": false + "value": "asyncify" } }, "right": { @@ -3304,9 +3112,7 @@ "start": 1936, "end": 1951 }, - "ctxt": 0, - "value": "applyEachSeries", - "optional": false + "value": "applyEachSeries" } }, "right": { @@ -3338,9 +3144,7 @@ "start": 1962, "end": 1971 }, - "ctxt": 0, - "value": "applyEach", - "optional": false + "value": "applyEach" } }, "right": { @@ -3372,9 +3176,7 @@ "start": 1982, "end": 1987 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceExports.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceExports.json index 51b21e0f5dce..1163b70521c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceExports.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceExports.json @@ -40,9 +40,7 @@ "start": 87, "end": 94 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json index 9d12346cfce2..786ae1e1b3f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json @@ -77,9 +77,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "definite": false @@ -165,9 +163,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } }, @@ -254,9 +250,7 @@ "start": 205, "end": 210 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" } } }, @@ -288,9 +282,7 @@ "start": 213, "end": 216 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } } }, @@ -373,9 +365,7 @@ "start": 255, "end": 260 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" } } }, @@ -407,9 +397,7 @@ "start": 263, "end": 266 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } } }, @@ -451,9 +439,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" }, "value": null, "typeAnnotation": { @@ -493,9 +479,7 @@ "start": 329, "end": 332 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json index 6df09a3649ed..793b7f60d638 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json @@ -38,9 +38,7 @@ "start": 176, "end": 187 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -103,9 +101,7 @@ "start": 209, "end": 217 }, - "ctxt": 0, - "value": "compiler", - "optional": false + "value": "compiler" } }, "right": { @@ -167,9 +163,7 @@ "start": 244, "end": 251 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -283,9 +277,7 @@ "start": 349, "end": 356 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -319,9 +311,7 @@ "start": 372, "end": 377 }, - "ctxt": 0, - "value": "watch", - "optional": false + "value": "watch" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json index 969395d58871..d411fb3a7b80 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json @@ -38,9 +38,7 @@ "start": 176, "end": 187 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -103,9 +101,7 @@ "start": 209, "end": 217 }, - "ctxt": 0, - "value": "compiler", - "optional": false + "value": "compiler" } }, "right": { @@ -167,9 +163,7 @@ "start": 244, "end": 251 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -283,9 +277,7 @@ "start": 367, "end": 374 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToMergedClass.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToMergedClass.json index 12243f1daa64..3f337ff4069f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToMergedClass.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToMergedClass.json @@ -111,9 +111,7 @@ "start": 221, "end": 237 }, - "ctxt": 0, - "value": "isServiceProject", - "optional": false + "value": "isServiceProject" } }, "arguments": [], @@ -155,9 +153,7 @@ "start": 251, "end": 258 }, - "ctxt": 0, - "value": "Project", - "optional": false + "value": "Project" } }, "right": { @@ -236,9 +232,7 @@ "start": 289, "end": 296 }, - "ctxt": 0, - "value": "Project", - "optional": false + "value": "Project" } }, "property": { @@ -247,9 +241,7 @@ "start": 297, "end": 306 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -267,9 +259,7 @@ "start": 313, "end": 329 }, - "ctxt": 0, - "value": "isServiceProject", - "optional": false + "value": "isServiceProject" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json index aa58df8c6003..f1b7d151c818 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json @@ -377,9 +377,7 @@ "start": 391, "end": 402 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -422,9 +420,7 @@ "start": 420, "end": 421 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -483,9 +479,7 @@ "start": 477, "end": 488 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -552,9 +546,7 @@ "start": 523, "end": 524 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -622,9 +614,7 @@ "start": 561, "end": 572 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -667,9 +657,7 @@ "start": 590, "end": 591 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -755,9 +743,7 @@ "start": 676, "end": 677 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -1768,9 +1754,7 @@ "start": 1868, "end": 1869 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json index 0a58e0eabf53..0f5b065cb5ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json @@ -37,9 +37,7 @@ "start": 69, "end": 73 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 87, "end": 92 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 106, "end": 112 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": null, "typeAnnotation": { @@ -163,9 +157,7 @@ "start": 126, "end": 133 }, - "ctxt": 0, - "value": "visible", - "optional": false + "value": "visible" }, "value": null, "typeAnnotation": { @@ -232,9 +224,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" }, "value": null, "typeAnnotation": { @@ -310,9 +300,7 @@ "start": 218, "end": 222 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -352,9 +340,7 @@ "start": 236, "end": 241 }, - "ctxt": 0, - "value": "price", - "optional": false + "value": "price" }, "value": null, "typeAnnotation": { @@ -421,9 +407,7 @@ "start": 274, "end": 281 }, - "ctxt": 0, - "value": "visible", - "optional": false + "value": "visible" }, "value": null, "typeAnnotation": { @@ -2708,6 +2692,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2023, + "end": 2026 + }, "left": { "type": "Identifier", "span": { @@ -2724,9 +2712,7 @@ "start": 2025, "end": 2026 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2807,6 +2793,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2068, + "end": 2071 + }, "left": { "type": "Identifier", "span": { @@ -2823,9 +2813,7 @@ "start": 2070, "end": 2071 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -3441,6 +3429,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2471, + "end": 2474 + }, "left": { "type": "Identifier", "span": { @@ -3457,9 +3449,7 @@ "start": 2473, "end": 2474 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -5625,9 +5615,7 @@ "start": 3628, "end": 3633 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" }, "value": null, "typeAnnotation": { @@ -5677,9 +5665,7 @@ "start": 3649, "end": 3660 }, - "ctxt": 0, - "value": "getProperty", - "optional": false + "value": "getProperty" }, "function": { "params": [ @@ -5772,9 +5758,7 @@ "start": 3717, "end": 3722 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -5877,9 +5861,7 @@ "start": 3739, "end": 3750 }, - "ctxt": 0, - "value": "setProperty", - "optional": false + "value": "setProperty" }, "function": { "params": [ @@ -6048,9 +6030,7 @@ "start": 3820, "end": 3825 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -6343,9 +6323,7 @@ "start": 3918, "end": 3929 }, - "ctxt": 0, - "value": "getProperty", - "optional": false + "value": "getProperty" } }, "arguments": [ @@ -6424,9 +6402,7 @@ "start": 3984, "end": 3995 }, - "ctxt": 0, - "value": "getProperty", - "optional": false + "value": "getProperty" } }, "arguments": [ @@ -6531,9 +6507,7 @@ "start": 4069, "end": 4080 }, - "ctxt": 0, - "value": "getProperty", - "optional": false + "value": "getProperty" } }, "arguments": [ @@ -6617,9 +6591,7 @@ "start": 4144, "end": 4155 }, - "ctxt": 0, - "value": "setProperty", - "optional": false + "value": "setProperty" } }, "arguments": [ @@ -6686,9 +6658,7 @@ "start": 4192, "end": 4203 }, - "ctxt": 0, - "value": "setProperty", - "optional": false + "value": "setProperty" } }, "arguments": [ @@ -6781,9 +6751,7 @@ "start": 4249, "end": 4260 }, - "ctxt": 0, - "value": "setProperty", - "optional": false + "value": "setProperty" } }, "arguments": [ @@ -7004,9 +6972,7 @@ "start": 4399, "end": 4402 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -7641,9 +7607,7 @@ "start": 4728, "end": 4732 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -7663,9 +7627,7 @@ "start": 4741, "end": 4746 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "NumericLiteral", @@ -7685,9 +7647,7 @@ "start": 4751, "end": 4757 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "NumericLiteral", @@ -7707,9 +7667,7 @@ "start": 4763, "end": 4770 }, - "ctxt": 0, - "value": "visible", - "optional": false + "value": "visible" }, "value": { "type": "BooleanLiteral", @@ -7967,9 +7925,7 @@ "start": 4899, "end": 4903 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -7989,9 +7945,7 @@ "start": 4912, "end": 4917 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "NumericLiteral", @@ -8011,9 +7965,7 @@ "start": 4922, "end": 4928 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "NumericLiteral", @@ -8033,9 +7985,7 @@ "start": 4934, "end": 4941 }, - "ctxt": 0, - "value": "visible", - "optional": false + "value": "visible" }, "value": { "type": "BooleanLiteral", @@ -8823,9 +8773,7 @@ "start": 5288, "end": 5289 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -8865,9 +8813,7 @@ "start": 5313, "end": 5314 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -8907,9 +8853,7 @@ "start": 5336, "end": 5337 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -13355,9 +13299,7 @@ "start": 6923, "end": 6924 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -13377,9 +13319,7 @@ "start": 6929, "end": 6930 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -13411,9 +13351,7 @@ "start": 6945, "end": 6946 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -13462,9 +13400,7 @@ "start": 6963, "end": 6964 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -13496,9 +13432,7 @@ "start": 6995, "end": 6996 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -13530,9 +13464,7 @@ "start": 7027, "end": 7028 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -13993,9 +13925,7 @@ "start": 7166, "end": 7167 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -14015,9 +13945,7 @@ "start": 7172, "end": 7173 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -14049,9 +13977,7 @@ "start": 7188, "end": 7189 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -14146,9 +14072,7 @@ "start": 7235, "end": 7236 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -14168,9 +14092,7 @@ "start": 7241, "end": 7242 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -14202,9 +14124,7 @@ "start": 7257, "end": 7258 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -14299,9 +14219,7 @@ "start": 7304, "end": 7305 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -14321,9 +14239,7 @@ "start": 7310, "end": 7311 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -14355,9 +14271,7 @@ "start": 7326, "end": 7327 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -14846,9 +14760,7 @@ "start": 7463, "end": 7464 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -14868,9 +14780,7 @@ "start": 7469, "end": 7470 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -14902,9 +14812,7 @@ "start": 7485, "end": 7486 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -14999,9 +14907,7 @@ "start": 7532, "end": 7533 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -15021,9 +14927,7 @@ "start": 7538, "end": 7539 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -15055,9 +14959,7 @@ "start": 7554, "end": 7555 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -15152,9 +15054,7 @@ "start": 7601, "end": 7602 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -15174,9 +15074,7 @@ "start": 7607, "end": 7608 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -15208,9 +15106,7 @@ "start": 7623, "end": 7624 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -15699,9 +15595,7 @@ "start": 7760, "end": 7761 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -15721,9 +15615,7 @@ "start": 7766, "end": 7767 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -15755,9 +15647,7 @@ "start": 7782, "end": 7783 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -15777,9 +15667,7 @@ "start": 7788, "end": 7789 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", @@ -15874,9 +15762,7 @@ "start": 7835, "end": 7836 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -15896,9 +15782,7 @@ "start": 7841, "end": 7842 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -15930,9 +15814,7 @@ "start": 7857, "end": 7858 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -15952,9 +15834,7 @@ "start": 7863, "end": 7864 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", @@ -16115,9 +15995,7 @@ "start": 7973, "end": 7974 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -16356,9 +16234,7 @@ "start": 8090, "end": 8091 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -16367,9 +16243,7 @@ "start": 8092, "end": 8093 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -17153,9 +17027,7 @@ "start": 8333, "end": 8334 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -17172,9 +17044,7 @@ "start": 8338, "end": 8339 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -17261,9 +17131,7 @@ "start": 8385, "end": 8386 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -17280,9 +17148,7 @@ "start": 8390, "end": 8391 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -17837,9 +17703,7 @@ "start": 8583, "end": 8586 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -17856,9 +17720,7 @@ "start": 8590, "end": 8591 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -17957,9 +17819,7 @@ "start": 8644, "end": 8647 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -17976,9 +17836,7 @@ "start": 8651, "end": 8652 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -18054,9 +17912,7 @@ "start": 8699, "end": 8700 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -18096,9 +17952,7 @@ "start": 8714, "end": 8717 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -18268,9 +18122,7 @@ "start": 8786, "end": 8789 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [ @@ -18516,9 +18368,7 @@ "start": 8875, "end": 8878 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -18582,9 +18432,7 @@ "start": 8905, "end": 8906 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -18705,9 +18553,7 @@ "start": 8980, "end": 8983 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -18836,9 +18682,7 @@ "start": 9071, "end": 9072 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -18938,9 +18782,7 @@ "start": 9116, "end": 9119 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -19649,9 +19491,7 @@ "start": 9401, "end": 9407 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -19683,9 +19523,7 @@ "start": 9416, "end": 9422 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -19717,9 +19555,7 @@ "start": 9431, "end": 9437 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -20793,9 +20629,7 @@ "start": 9737, "end": 9740 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -20965,9 +20799,7 @@ "start": 9811, "end": 9814 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [ @@ -21240,9 +21072,7 @@ "start": 9933, "end": 9938 }, - "ctxt": 0, - "value": "parts", - "optional": false + "value": "parts" }, "value": null, "typeAnnotation": { @@ -21283,9 +21113,7 @@ "start": 9952, "end": 9963 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21386,9 +21214,7 @@ "start": 10011, "end": 10014 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -21438,9 +21264,7 @@ "start": 10042, "end": 10050 }, - "ctxt": 0, - "value": "getParts", - "optional": false + "value": "getParts" }, "function": { "params": [], @@ -21490,9 +21314,7 @@ "start": 10075, "end": 10078 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -21574,9 +21396,7 @@ "start": 10121, "end": 10126 }, - "ctxt": 0, - "value": "parts", - "optional": false + "value": "parts" }, "value": null, "typeAnnotation": { @@ -21617,9 +21437,7 @@ "start": 10140, "end": 10151 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -21744,9 +21562,7 @@ "start": 10222, "end": 10230 }, - "ctxt": 0, - "value": "getParts", - "optional": false + "value": "getParts" }, "function": { "params": [], @@ -25213,9 +25029,7 @@ "start": 11606, "end": 11610 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "ArrowFunctionExpression", @@ -25312,9 +25126,7 @@ "start": 11656, "end": 11660 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "ArrowFunctionExpression", @@ -25579,9 +25391,7 @@ "start": 11858, "end": 11869 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -25688,9 +25498,7 @@ "start": 11910, "end": 11913 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -26051,9 +25859,7 @@ "start": 12013, "end": 12017 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -26070,9 +25876,7 @@ "start": 12029, "end": 12034 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" }, "value": { "type": "StringLiteral", @@ -26132,9 +25936,7 @@ "start": 12053, "end": 12056 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -26358,9 +26160,7 @@ "start": 12218, "end": 12229 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -26467,9 +26267,7 @@ "start": 12270, "end": 12273 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -27003,9 +26801,7 @@ "start": 12464, "end": 12467 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } } } @@ -28067,9 +27863,7 @@ "start": 13044, "end": 13048 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -28482,9 +28276,7 @@ "start": 13233, "end": 13241 }, - "ctxt": 0, - "value": "onChange", - "optional": false + "value": "onChange" } }, "arguments": [ @@ -29985,9 +29777,7 @@ "start": 13981, "end": 13986 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" }, "value": null, "typeAnnotation": { @@ -30147,9 +29937,7 @@ "start": 14047, "end": 14048 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -30252,9 +30040,7 @@ "start": 14073, "end": 14074 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -30372,9 +30158,7 @@ "start": 14132, "end": 14150 }, - "ctxt": 0, - "value": "childFormFactories", - "optional": false + "value": "childFormFactories" }, "value": null, "typeAnnotation": { @@ -30611,9 +30395,7 @@ "start": 14206, "end": 14209 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [ @@ -30782,9 +30564,7 @@ "start": 14266, "end": 14284 }, - "ctxt": 0, - "value": "childFormFactories", - "optional": false + "value": "childFormFactories" } }, "property": { @@ -30961,9 +30741,7 @@ "start": 14363, "end": 14368 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" }, "value": null, "typeAnnotation": { @@ -31040,9 +30818,7 @@ "start": 14387, "end": 14398 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -31129,9 +30905,7 @@ "start": 14424, "end": 14429 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "right": { @@ -31163,9 +30937,7 @@ "start": 14439, "end": 14445 }, - "ctxt": 0, - "value": "freeze", - "optional": false + "value": "freeze" } }, "arguments": [ @@ -31542,9 +31314,7 @@ "start": 14618, "end": 14629 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -31665,9 +31435,7 @@ "start": 14669, "end": 14672 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -31777,9 +31545,7 @@ "start": 14735, "end": 14747 }, - "ctxt": 0, - "value": "brokenMethod", - "optional": false + "value": "brokenMethod" }, "function": { "params": [], @@ -31834,9 +31600,7 @@ "start": 14765, "end": 14770 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -31845,9 +31609,7 @@ "start": 14771, "end": 14774 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -31856,9 +31618,7 @@ "start": 14775, "end": 14781 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } } } @@ -35565,9 +35325,7 @@ "start": 16477, "end": 16480 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -37444,9 +37202,7 @@ "start": 17273, "end": 17277 }, - "ctxt": 0, - "value": "cool", - "optional": false + "value": "cool" } } } @@ -37868,9 +37624,7 @@ "start": 17408, "end": 17412 }, - "ctxt": 0, - "value": "cool", - "optional": false + "value": "cool" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json index 9e897c8dd64f..b650132f1ae4 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json @@ -1480,9 +1480,7 @@ "start": 864, "end": 865 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1514,9 +1512,7 @@ "start": 873, "end": 874 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1548,9 +1544,7 @@ "start": 882, "end": 883 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1630,9 +1624,7 @@ "start": 901, "end": 902 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1681,9 +1673,7 @@ "start": 914, "end": 915 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1732,9 +1722,7 @@ "start": 927, "end": 928 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -3930,9 +3918,7 @@ "start": 1930, "end": 1933 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -4376,9 +4362,7 @@ "start": 2088, "end": 2091 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -5433,9 +5417,7 @@ "start": 2574, "end": 2577 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -5885,9 +5867,7 @@ "start": 2750, "end": 2758 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -7480,9 +7460,7 @@ "start": 3454, "end": 3462 }, - "ctxt": 0, - "value": "elements", - "optional": false + "value": "elements" } }, "property": { @@ -8680,9 +8658,7 @@ "start": 3906, "end": 3917 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -8725,9 +8701,7 @@ "start": 3931, "end": 3932 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json index 1c506d40354f..1bb76e56dbfc 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json @@ -37,9 +37,7 @@ "start": 19, "end": 23 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 37, "end": 42 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 56, "end": 62 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": null, "typeAnnotation": { @@ -163,9 +157,7 @@ "start": 76, "end": 83 }, - "ctxt": 0, - "value": "visible", - "optional": false + "value": "visible" }, "value": null, "typeAnnotation": { @@ -8065,9 +8057,7 @@ "start": 3856, "end": 3861 }, - "ctxt": 0, - "value": "testy", - "optional": false + "value": "testy" }, "value": null, "typeAnnotation": { @@ -8118,9 +8108,7 @@ "start": 3869, "end": 3880 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -8207,9 +8195,7 @@ "start": 3898, "end": 3903 }, - "ctxt": 0, - "value": "testy", - "optional": false + "value": "testy" } }, "right": { @@ -8241,9 +8227,7 @@ "start": 3923, "end": 3924 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "function": { "params": [ @@ -8351,9 +8335,7 @@ "start": 3958, "end": 3963 }, - "ctxt": 0, - "value": "testy", - "optional": false + "value": "testy" } }, "property": { @@ -8416,9 +8398,7 @@ "start": 4001, "end": 4006 }, - "ctxt": 0, - "value": "testy", - "optional": false + "value": "testy" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json b/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json index f7d31b5ff748..d75632754f3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json @@ -37,9 +37,7 @@ "start": 47, "end": 52 }, - "ctxt": 0, - "value": "dummy", - "optional": false + "value": "dummy" }, "value": null, "typeAnnotation": { @@ -116,9 +114,7 @@ "start": 104, "end": 109 }, - "ctxt": 0, - "value": "dummy", - "optional": false + "value": "dummy" }, "value": null, "typeAnnotation": { @@ -360,9 +356,7 @@ "start": 179, "end": 184 }, - "ctxt": 0, - "value": "dummy", - "optional": false + "value": "dummy" }, "value": null, "typeAnnotation": { @@ -988,9 +982,7 @@ "start": 428, "end": 440 }, - "ctxt": 0, - "value": "tableColumns", - "optional": false + "value": "tableColumns" }, "function": { "params": [ @@ -1171,9 +1163,7 @@ "start": 506, "end": 511 }, - "ctxt": 0, - "value": "dummy", - "optional": false + "value": "dummy" }, "value": null, "typeAnnotation": { @@ -2075,9 +2065,7 @@ "start": 1027, "end": 1039 }, - "ctxt": 0, - "value": "tableColumns", - "optional": false + "value": "tableColumns" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json index 569514b5291f..612a81b37671 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json @@ -247,9 +247,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -463,9 +461,7 @@ "start": 413, "end": 414 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json index 31b0029fdcb9..e2ddf701f2f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json @@ -137,9 +137,7 @@ "start": 227, "end": 234 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -212,9 +210,7 @@ "start": 256, "end": 263 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -287,9 +283,7 @@ "start": 285, "end": 292 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -298,9 +292,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -514,9 +506,7 @@ "start": 434, "end": 435 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json index d19555a2dc5b..ce71c745a354 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json @@ -131,9 +131,7 @@ "start": 227, "end": 241 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -161,9 +159,7 @@ "start": 249, "end": 256 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -197,9 +193,7 @@ "start": 266, "end": 271 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -253,9 +247,7 @@ "start": 289, "end": 303 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -283,9 +275,7 @@ "start": 311, "end": 318 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -319,9 +309,7 @@ "start": 328, "end": 333 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -381,9 +369,7 @@ "start": 351, "end": 358 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -392,9 +378,7 @@ "start": 359, "end": 360 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -608,9 +592,7 @@ "start": 500, "end": 501 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json index 40c578a59e89..a1b379c2f35d 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json @@ -171,9 +171,7 @@ "start": 239, "end": 248 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -246,9 +244,7 @@ "start": 265, "end": 274 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -502,9 +498,7 @@ "start": 365, "end": 372 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -513,9 +507,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "right": { @@ -571,9 +563,7 @@ "start": 387, "end": 394 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -582,9 +572,7 @@ "start": 395, "end": 396 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -719,9 +707,7 @@ "start": 514, "end": 515 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "arguments": [], @@ -866,9 +852,7 @@ "start": 567, "end": 568 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json index b4c16d0fc298..74fd08fa3e7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json @@ -165,9 +165,7 @@ "start": 239, "end": 248 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -461,9 +459,7 @@ "start": 366, "end": 373 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -472,9 +468,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "right": { @@ -530,9 +524,7 @@ "start": 388, "end": 395 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -541,9 +533,7 @@ "start": 396, "end": 397 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -678,9 +668,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "arguments": [], @@ -825,9 +813,7 @@ "start": 568, "end": 569 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json index 43b2fb08b292..85c9f5aeeecc 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json @@ -171,9 +171,7 @@ "start": 239, "end": 248 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -182,9 +180,7 @@ "start": 249, "end": 259 }, - "ctxt": 0, - "value": "defsAClass", - "optional": false + "value": "defsAClass" } }, "right": { @@ -232,9 +228,7 @@ "start": 275, "end": 289 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -262,9 +256,7 @@ "start": 292, "end": 301 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -298,9 +290,7 @@ "start": 310, "end": 315 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -354,9 +344,7 @@ "start": 332, "end": 346 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -384,9 +372,7 @@ "start": 349, "end": 358 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -420,9 +406,7 @@ "start": 367, "end": 372 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "StringLiteral", @@ -663,9 +647,7 @@ "start": 458, "end": 465 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -674,9 +656,7 @@ "start": 466, "end": 467 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "right": { @@ -732,9 +712,7 @@ "start": 480, "end": 487 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -743,9 +721,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -880,9 +856,7 @@ "start": 607, "end": 608 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "arguments": [], @@ -1027,9 +1001,7 @@ "start": 660, "end": 661 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json index d61ba4fa121c..7e2b0336d610 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json @@ -287,9 +287,7 @@ "start": 251, "end": 258 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -298,9 +296,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "right": { @@ -356,9 +352,7 @@ "start": 273, "end": 280 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -367,9 +361,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } }, "right": { @@ -503,9 +495,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "property": { @@ -584,9 +574,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "property": { @@ -617,9 +605,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "S", - "optional": false + "value": "S" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json index 5569ce585c74..b4184260e478 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json @@ -108,9 +108,7 @@ "start": 228, "end": 239 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -193,9 +191,7 @@ "start": 282, "end": 288 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json index d955f79b582e..5ee9b1b06641 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json @@ -84,9 +84,7 @@ "start": 228, "end": 239 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -169,9 +167,7 @@ "start": 282, "end": 288 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json index f2420c5b2917..5d49d83f5015 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json @@ -108,9 +108,7 @@ "start": 228, "end": 239 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -234,9 +232,7 @@ "start": 306, "end": 312 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json b/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json index c208ee7434de..a546af55e637 100644 --- a/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json +++ b/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json @@ -179,6 +179,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 300, + "end": 305 + }, "left": { "type": "Identifier", "span": { @@ -195,9 +199,7 @@ "start": 302, "end": 305 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" } } } @@ -237,8 +239,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 350, + "end": 367 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 350, + "end": 363 + }, "left": { "type": "Identifier", "span": { @@ -255,9 +265,7 @@ "start": 356, "end": 363 }, - "ctxt": 0, - "value": "calling", - "optional": false + "value": "calling" } }, "right": { @@ -266,9 +274,7 @@ "start": 364, "end": 367 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json index 3d77b5f82f65..805ee2e8f816 100644 --- a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json +++ b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json @@ -402,9 +402,7 @@ "start": 490, "end": 495 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json index 6ba73ff51e73..a6d94a3617c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json +++ b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json @@ -402,9 +402,7 @@ "start": 509, "end": 514 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-1.json b/crates/swc_ecma_parser/tests/tsc/library-reference-1.json index 3ec3cbdcfbe7..dda576bb21c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-1.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-1.json @@ -123,9 +123,7 @@ "start": 274, "end": 277 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-14.json b/crates/swc_ecma_parser/tests/tsc/library-reference-14.json index eae4d1dd1c7e..37e3f5a2808e 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-14.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-14.json @@ -123,9 +123,7 @@ "start": 234, "end": 237 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-15.json b/crates/swc_ecma_parser/tests/tsc/library-reference-15.json index e624a52dbfb8..d4bc97aa3bc2 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-15.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-15.json @@ -206,9 +206,7 @@ "start": 284, "end": 287 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -250,9 +248,7 @@ "start": 307, "end": 310 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-3.json b/crates/swc_ecma_parser/tests/tsc/library-reference-3.json index aae6318fa2ca..1f661c748a7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-3.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-3.json @@ -123,9 +123,7 @@ "start": 273, "end": 276 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-6.json b/crates/swc_ecma_parser/tests/tsc/library-reference-6.json index c2bd3da7f403..18d8a74fddf1 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-6.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-6.json @@ -150,9 +150,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-7.json b/crates/swc_ecma_parser/tests/tsc/library-reference-7.json index 95afdeaa8cce..1ce04f3e2c84 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-7.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-7.json @@ -123,9 +123,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/library-reference-8.json b/crates/swc_ecma_parser/tests/tsc/library-reference-8.json index 53997df1c08b..a2d1a8e38f48 100644 --- a/crates/swc_ecma_parser/tests/tsc/library-reference-8.json +++ b/crates/swc_ecma_parser/tests/tsc/library-reference-8.json @@ -239,9 +239,7 @@ "start": 500, "end": 501 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -266,9 +264,7 @@ "start": 509, "end": 510 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json b/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json index 431d28deb612..d8a1ac64b0b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json @@ -4831,9 +4831,7 @@ "start": 3005, "end": 3012 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -5226,9 +5224,7 @@ "start": 3143, "end": 3147 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -5769,9 +5765,7 @@ "start": 3369, "end": 3372 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -6018,9 +6012,7 @@ "start": 3522, "end": 3523 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -6486,9 +6478,7 @@ "start": 3650, "end": 3651 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -6538,6 +6528,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 3663, + "end": 3666 + }, "left": { "type": "Identifier", "span": { @@ -6554,9 +6548,7 @@ "start": 3665, "end": 3666 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes2.json b/crates/swc_ecma_parser/tests/tsc/literalTypes2.json index c30a9b458884..374c7216bfca 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes2.json @@ -290,9 +290,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -682,9 +680,7 @@ "start": 254, "end": 255 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -1061,9 +1057,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -1440,9 +1434,7 @@ "start": 584, "end": 585 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -1675,6 +1667,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 653, + "end": 656 + }, "left": { "type": "Identifier", "span": { @@ -1691,9 +1687,7 @@ "start": 655, "end": 656 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -1722,9 +1716,7 @@ "start": 661, "end": 662 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -2037,6 +2029,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 774, + "end": 777 + }, "left": { "type": "Identifier", "span": { @@ -2053,9 +2049,7 @@ "start": 776, "end": 777 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2084,9 +2078,7 @@ "start": 782, "end": 783 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -2386,6 +2378,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 893, + "end": 896 + }, "left": { "type": "Identifier", "span": { @@ -2402,9 +2398,7 @@ "start": 895, "end": 896 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -2433,9 +2427,7 @@ "start": 901, "end": 902 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false @@ -2674,9 +2666,7 @@ "start": 1009, "end": 1010 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "alternate": { @@ -2949,9 +2939,7 @@ "start": 1139, "end": 1143 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "NumericLiteral", @@ -3607,9 +3595,7 @@ "start": 1405, "end": 1407 }, - "ctxt": 0, - "value": "x1", - "optional": false + "value": "x1" }, "value": { "type": "NumericLiteral", @@ -3643,9 +3629,7 @@ "start": 1417, "end": 1419 }, - "ctxt": 0, - "value": "x2", - "optional": false + "value": "x2" }, "value": { "type": "UnaryExpression", @@ -3687,9 +3671,7 @@ "start": 1432, "end": 1434 }, - "ctxt": 0, - "value": "x3", - "optional": false + "value": "x3" }, "value": { "type": "BinaryExpression", @@ -3740,9 +3722,7 @@ "start": 1448, "end": 1450 }, - "ctxt": 0, - "value": "x4", - "optional": false + "value": "x4" }, "value": { "type": "StringLiteral", @@ -3776,9 +3756,7 @@ "start": 1464, "end": 1466 }, - "ctxt": 0, - "value": "x5", - "optional": false + "value": "x5" }, "value": { "type": "StringLiteral", @@ -3812,9 +3790,7 @@ "start": 1477, "end": 1479 }, - "ctxt": 0, - "value": "x6", - "optional": false + "value": "x6" }, "value": { "type": "BinaryExpression", @@ -3865,9 +3841,7 @@ "start": 1501, "end": 1503 }, - "ctxt": 0, - "value": "x7", - "optional": false + "value": "x7" }, "value": { "type": "BooleanLiteral", @@ -3900,9 +3874,7 @@ "start": 1516, "end": 1518 }, - "ctxt": 0, - "value": "x8", - "optional": false + "value": "x8" }, "value": { "type": "MemberExpression", @@ -3926,9 +3898,7 @@ "start": 1523, "end": 1524 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeAnnotation": null, @@ -3954,9 +3924,7 @@ "start": 1539, "end": 1541 }, - "ctxt": 0, - "value": "c1", - "optional": false + "value": "c1" }, "value": { "type": "NumericLiteral", @@ -3990,9 +3958,7 @@ "start": 1560, "end": 1562 }, - "ctxt": 0, - "value": "c2", - "optional": false + "value": "c2" }, "value": { "type": "UnaryExpression", @@ -4034,9 +4000,7 @@ "start": 1584, "end": 1586 }, - "ctxt": 0, - "value": "c3", - "optional": false + "value": "c3" }, "value": { "type": "BinaryExpression", @@ -4087,9 +4051,7 @@ "start": 1609, "end": 1611 }, - "ctxt": 0, - "value": "c4", - "optional": false + "value": "c4" }, "value": { "type": "StringLiteral", @@ -4123,9 +4085,7 @@ "start": 1634, "end": 1636 }, - "ctxt": 0, - "value": "c5", - "optional": false + "value": "c5" }, "value": { "type": "StringLiteral", @@ -4159,9 +4119,7 @@ "start": 1656, "end": 1658 }, - "ctxt": 0, - "value": "c6", - "optional": false + "value": "c6" }, "value": { "type": "BinaryExpression", @@ -4212,9 +4170,7 @@ "start": 1689, "end": 1691 }, - "ctxt": 0, - "value": "c7", - "optional": false + "value": "c7" }, "value": { "type": "BooleanLiteral", @@ -4247,9 +4203,7 @@ "start": 1713, "end": 1715 }, - "ctxt": 0, - "value": "c8", - "optional": false + "value": "c8" }, "value": { "type": "MemberExpression", @@ -4273,9 +4227,7 @@ "start": 1720, "end": 1721 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeAnnotation": null, @@ -4366,9 +4318,7 @@ "start": 1759, "end": 1760 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4388,9 +4338,7 @@ "start": 1765, "end": 1766 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -4601,9 +4549,7 @@ "start": 1827, "end": 1828 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4623,9 +4569,7 @@ "start": 1833, "end": 1834 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -4685,9 +4629,7 @@ "start": 1860, "end": 1861 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4707,9 +4649,7 @@ "start": 1866, "end": 1867 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -4920,9 +4860,7 @@ "start": 1926, "end": 1927 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4942,9 +4880,7 @@ "start": 1932, "end": 1933 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -5786,9 +5722,7 @@ "start": 2240, "end": 2242 }, - "ctxt": 0, - "value": "c1", - "optional": false + "value": "c1" }, "value": { "type": "BooleanLiteral", @@ -5807,9 +5741,7 @@ "start": 2251, "end": 2253 }, - "ctxt": 0, - "value": "c2", - "optional": false + "value": "c2" }, "value": { "type": "NumericLiteral", @@ -5829,9 +5761,7 @@ "start": 2258, "end": 2260 }, - "ctxt": 0, - "value": "c3", - "optional": false + "value": "c3" }, "value": { "type": "StringLiteral", @@ -5971,9 +5901,7 @@ "start": 2317, "end": 2319 }, - "ctxt": 0, - "value": "x1", - "optional": false + "value": "x1" }, "value": { "type": "BooleanLiteral", @@ -5992,9 +5920,7 @@ "start": 2328, "end": 2330 }, - "ctxt": 0, - "value": "x2", - "optional": false + "value": "x2" }, "value": { "type": "NumericLiteral", @@ -6014,9 +5940,7 @@ "start": 2335, "end": 2337 }, - "ctxt": 0, - "value": "x3", - "optional": false + "value": "x3" }, "value": { "type": "StringLiteral", @@ -6305,9 +6229,7 @@ "start": 2554, "end": 2557 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -6367,9 +6289,7 @@ "start": 2590, "end": 2593 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -6693,9 +6613,7 @@ "start": 2757, "end": 2758 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "async": false, @@ -9701,9 +9619,7 @@ "start": 3797, "end": 3802 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -9748,9 +9664,7 @@ "start": 3817, "end": 3821 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json b/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json index 458d06290083..e0dab91ad902 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json @@ -159,9 +159,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -224,9 +222,7 @@ "start": 86, "end": 87 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -305,9 +301,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -386,9 +380,7 @@ "start": 132, "end": 133 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -492,9 +484,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -557,9 +547,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -632,9 +620,7 @@ "start": 203, "end": 204 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -707,9 +693,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json b/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json index 2a6b325735f4..a22779bf5210 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json @@ -47,9 +47,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "TsAsExpression", @@ -92,9 +90,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "TsTypeAssertion", @@ -137,9 +133,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -361,9 +355,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -473,9 +465,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -562,9 +552,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "TsAsExpression", @@ -697,9 +685,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "TsAsExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypesWidenInParameterPosition.json b/crates/swc_ecma_parser/tests/tsc/literalTypesWidenInParameterPosition.json index e9c897178984..4d2c04437d4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypesWidenInParameterPosition.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypesWidenInParameterPosition.json @@ -37,9 +37,7 @@ "start": 24, "end": 31 }, - "ctxt": 0, - "value": "noWiden", - "optional": false + "value": "noWiden" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 40, "end": 51 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -158,9 +154,7 @@ "start": 87, "end": 94 }, - "ctxt": 0, - "value": "noWiden", - "optional": false + "value": "noWiden" } }, "right": { @@ -206,9 +200,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "widen", - "optional": false + "value": "widen" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes1.json b/crates/swc_ecma_parser/tests/tsc/localTypes1.json index e0a860d860ab..5ddffd096c5c 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes1.json @@ -140,9 +140,7 @@ "start": 91, "end": 92 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -450,9 +448,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -477,9 +473,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -671,9 +665,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -981,9 +973,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1008,9 +998,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -1288,9 +1276,7 @@ "start": 659, "end": 660 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1598,9 +1584,7 @@ "start": 818, "end": 819 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1625,9 +1609,7 @@ "start": 824, "end": 825 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -1691,9 +1673,7 @@ "start": 912, "end": 913 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2001,9 +1981,7 @@ "start": 1071, "end": 1072 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -2028,9 +2006,7 @@ "start": 1077, "end": 1078 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -2246,9 +2222,7 @@ "start": 1241, "end": 1242 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2481,9 +2455,7 @@ "start": 1385, "end": 1386 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2606,9 +2578,7 @@ "start": 1448, "end": 1459 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2726,9 +2696,7 @@ "start": 1541, "end": 1542 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2790,9 +2758,7 @@ "start": 1567, "end": 1568 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2917,9 +2883,7 @@ "start": 1650, "end": 1651 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -3017,9 +2981,7 @@ "start": 1704, "end": 1705 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -3144,9 +3106,7 @@ "start": 1787, "end": 1788 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -3299,9 +3259,7 @@ "start": 1874, "end": 1875 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -3396,9 +3354,7 @@ "start": 1950, "end": 1951 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -3502,9 +3458,7 @@ "start": 2042, "end": 2043 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -3634,9 +3588,7 @@ "start": 2110, "end": 2111 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3685,9 +3637,7 @@ "start": 2133, "end": 2134 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -3736,9 +3686,7 @@ "start": 2156, "end": 2157 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes2.json b/crates/swc_ecma_parser/tests/tsc/localTypes2.json index 8aa7ad3e8b14..575693962229 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes2.json @@ -94,9 +94,7 @@ "start": 66, "end": 77 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -391,9 +389,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -449,9 +445,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -587,9 +581,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -625,9 +617,7 @@ "start": 333, "end": 344 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -887,9 +877,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -945,9 +933,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1116,9 +1102,7 @@ "start": 572, "end": 573 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -1153,9 +1137,7 @@ "start": 598, "end": 599 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1385,9 +1367,7 @@ "start": 697, "end": 698 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1443,9 +1423,7 @@ "start": 714, "end": 715 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes3.json b/crates/swc_ecma_parser/tests/tsc/localTypes3.json index f99ca03ce1aa..2e2e346e22b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes3.json @@ -94,9 +94,7 @@ "start": 72, "end": 83 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -463,9 +461,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -521,9 +517,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -669,9 +663,7 @@ "start": 316, "end": 317 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -707,9 +699,7 @@ "start": 335, "end": 346 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1039,9 +1029,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1097,9 +1085,7 @@ "start": 476, "end": 477 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1288,9 +1274,7 @@ "start": 570, "end": 571 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -1325,9 +1309,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1609,9 +1591,7 @@ "start": 700, "end": 701 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1667,9 +1647,7 @@ "start": 717, "end": 718 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes4.json b/crates/swc_ecma_parser/tests/tsc/localTypes4.json index f04ea3135137..2fafa0185271 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes4.json @@ -701,9 +701,7 @@ "start": 626, "end": 627 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -894,9 +892,7 @@ "start": 712, "end": 713 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -955,9 +951,7 @@ "start": 752, "end": 753 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes5.json b/crates/swc_ecma_parser/tests/tsc/localTypes5.json index 795fa7c062bc..498ada94e372 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes5.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes5.json @@ -65,9 +65,7 @@ "start": 43, "end": 44 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -448,9 +446,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json b/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json index c36f0292440b..c8ce4e0c9218 100644 --- a/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json @@ -61,9 +61,7 @@ "start": 43, "end": 49 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -142,9 +140,7 @@ "start": 82, "end": 88 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -223,9 +219,7 @@ "start": 121, "end": 127 }, - "ctxt": 0, - "value": "Locale", - "optional": false + "value": "Locale" } }, "arguments": [ @@ -571,9 +565,7 @@ "start": 303, "end": 317 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } }, "arguments": [ @@ -629,9 +621,7 @@ "start": 329, "end": 347 }, - "ctxt": 0, - "value": "toLocaleDateString", - "optional": false + "value": "toLocaleDateString" } }, "arguments": [ @@ -687,9 +677,7 @@ "start": 359, "end": 377 }, - "ctxt": 0, - "value": "toLocaleTimeString", - "optional": false + "value": "toLocaleTimeString" } }, "arguments": [ @@ -745,9 +733,7 @@ "start": 389, "end": 403 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } }, "arguments": [ @@ -828,9 +814,7 @@ "start": 423, "end": 441 }, - "ctxt": 0, - "value": "toLocaleDateString", - "optional": false + "value": "toLocaleDateString" } }, "arguments": [ @@ -911,9 +895,7 @@ "start": 461, "end": 479 }, - "ctxt": 0, - "value": "toLocaleTimeString", - "optional": false + "value": "toLocaleTimeString" } }, "arguments": [ @@ -994,9 +976,7 @@ "start": 500, "end": 514 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } }, "arguments": [ @@ -1052,9 +1032,7 @@ "start": 526, "end": 540 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } }, "arguments": [ @@ -1135,9 +1113,7 @@ "start": 564, "end": 578 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } }, "arguments": [ @@ -1193,9 +1169,7 @@ "start": 593, "end": 607 }, - "ctxt": 0, - "value": "toLocaleString", - "optional": false + "value": "toLocaleString" } }, "arguments": [ @@ -1276,9 +1250,7 @@ "start": 628, "end": 645 }, - "ctxt": 0, - "value": "toLocaleLowerCase", - "optional": false + "value": "toLocaleLowerCase" } }, "arguments": [ @@ -1334,9 +1306,7 @@ "start": 657, "end": 674 }, - "ctxt": 0, - "value": "toLocaleLowerCase", - "optional": false + "value": "toLocaleLowerCase" } }, "arguments": [ @@ -1417,9 +1387,7 @@ "start": 694, "end": 711 }, - "ctxt": 0, - "value": "toLocaleUpperCase", - "optional": false + "value": "toLocaleUpperCase" } }, "arguments": [ @@ -1475,9 +1443,7 @@ "start": 723, "end": 740 }, - "ctxt": 0, - "value": "toLocaleUpperCase", - "optional": false + "value": "toLocaleUpperCase" } }, "arguments": [ @@ -1558,9 +1524,7 @@ "start": 760, "end": 773 }, - "ctxt": 0, - "value": "localeCompare", - "optional": false + "value": "localeCompare" } }, "arguments": [ @@ -1629,9 +1593,7 @@ "start": 790, "end": 803 }, - "ctxt": 0, - "value": "localeCompare", - "optional": false + "value": "localeCompare" } }, "arguments": [ @@ -1725,9 +1687,7 @@ "start": 834, "end": 845 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "arguments": [ @@ -1783,9 +1743,7 @@ "start": 862, "end": 873 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "arguments": [ @@ -1866,9 +1824,7 @@ "start": 898, "end": 909 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "arguments": [ @@ -1930,9 +1886,7 @@ "start": 933, "end": 944 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "property": { @@ -1941,9 +1895,7 @@ "start": 945, "end": 963 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2005,9 +1957,7 @@ "start": 976, "end": 987 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "property": { @@ -2016,9 +1966,7 @@ "start": 988, "end": 1006 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2105,9 +2053,7 @@ "start": 1027, "end": 1038 }, - "ctxt": 0, - "value": "PluralRules", - "optional": false + "value": "PluralRules" } }, "property": { @@ -2116,9 +2062,7 @@ "start": 1039, "end": 1057 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2174,9 +2118,7 @@ "start": 1086, "end": 1104 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "arguments": [ @@ -2232,9 +2174,7 @@ "start": 1121, "end": 1139 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "arguments": [ @@ -2315,9 +2255,7 @@ "start": 1164, "end": 1182 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "arguments": [ @@ -2379,9 +2317,7 @@ "start": 1206, "end": 1224 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "property": { @@ -2390,9 +2326,7 @@ "start": 1225, "end": 1243 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2454,9 +2388,7 @@ "start": 1256, "end": 1274 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "property": { @@ -2465,9 +2397,7 @@ "start": 1275, "end": 1293 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2554,9 +2484,7 @@ "start": 1314, "end": 1332 }, - "ctxt": 0, - "value": "RelativeTimeFormat", - "optional": false + "value": "RelativeTimeFormat" } }, "property": { @@ -2565,9 +2493,7 @@ "start": 1333, "end": 1351 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2623,9 +2549,7 @@ "start": 1380, "end": 1388 }, - "ctxt": 0, - "value": "Collator", - "optional": false + "value": "Collator" } }, "arguments": [ @@ -2681,9 +2605,7 @@ "start": 1405, "end": 1413 }, - "ctxt": 0, - "value": "Collator", - "optional": false + "value": "Collator" } }, "arguments": [ @@ -2764,9 +2686,7 @@ "start": 1438, "end": 1446 }, - "ctxt": 0, - "value": "Collator", - "optional": false + "value": "Collator" } }, "arguments": [ @@ -2828,9 +2748,7 @@ "start": 1470, "end": 1478 }, - "ctxt": 0, - "value": "Collator", - "optional": false + "value": "Collator" } }, "property": { @@ -2839,9 +2757,7 @@ "start": 1479, "end": 1497 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2903,9 +2819,7 @@ "start": 1510, "end": 1518 }, - "ctxt": 0, - "value": "Collator", - "optional": false + "value": "Collator" } }, "property": { @@ -2914,9 +2828,7 @@ "start": 1519, "end": 1537 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -2997,9 +2909,7 @@ "start": 1563, "end": 1577 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [ @@ -3055,9 +2965,7 @@ "start": 1594, "end": 1608 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [ @@ -3138,9 +3046,7 @@ "start": 1633, "end": 1647 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "arguments": [ @@ -3202,9 +3108,7 @@ "start": 1671, "end": 1685 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "property": { @@ -3213,9 +3117,7 @@ "start": 1686, "end": 1704 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -3277,9 +3179,7 @@ "start": 1717, "end": 1731 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "property": { @@ -3288,9 +3188,7 @@ "start": 1732, "end": 1750 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -3377,9 +3275,7 @@ "start": 1771, "end": 1785 }, - "ctxt": 0, - "value": "DateTimeFormat", - "optional": false + "value": "DateTimeFormat" } }, "property": { @@ -3388,9 +3284,7 @@ "start": 1786, "end": 1804 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -3446,9 +3340,7 @@ "start": 1833, "end": 1845 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -3504,9 +3396,7 @@ "start": 1862, "end": 1874 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -3587,9 +3477,7 @@ "start": 1899, "end": 1911 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "arguments": [ @@ -3651,9 +3539,7 @@ "start": 1935, "end": 1947 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "property": { @@ -3662,9 +3548,7 @@ "start": 1948, "end": 1966 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ @@ -3726,9 +3610,7 @@ "start": 1979, "end": 1991 }, - "ctxt": 0, - "value": "NumberFormat", - "optional": false + "value": "NumberFormat" } }, "property": { @@ -3737,9 +3619,7 @@ "start": 1992, "end": 2010 }, - "ctxt": 0, - "value": "supportedLocalesOf", - "optional": false + "value": "supportedLocalesOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json index bf4a969296e8..461ab2708637 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json @@ -237,9 +237,7 @@ "start": 131, "end": 137 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -387,9 +385,7 @@ "start": 184, "end": 190 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json index bf3435d6d547..f57ca27a2d86 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json @@ -690,9 +690,7 @@ "start": 329, "end": 332 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -717,9 +715,7 @@ "start": 344, "end": 347 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -759,9 +755,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -786,9 +780,7 @@ "start": 365, "end": 368 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -828,9 +820,7 @@ "start": 371, "end": 374 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -855,9 +845,7 @@ "start": 386, "end": 389 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -903,9 +891,7 @@ "start": 393, "end": 396 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -953,9 +939,7 @@ "start": 415, "end": 418 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -964,9 +948,7 @@ "start": 419, "end": 422 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -1012,9 +994,7 @@ "start": 425, "end": 428 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1062,9 +1042,7 @@ "start": 447, "end": 450 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1073,9 +1051,7 @@ "start": 451, "end": 454 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -1121,9 +1097,7 @@ "start": 457, "end": 460 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1171,9 +1145,7 @@ "start": 479, "end": 482 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1182,9 +1154,7 @@ "start": 483, "end": 486 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -1243,9 +1213,7 @@ "start": 490, "end": 493 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1254,9 +1222,7 @@ "start": 494, "end": 497 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1268,9 +1234,7 @@ "start": 500, "end": 503 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -1314,9 +1278,7 @@ "start": 515, "end": 518 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1325,9 +1287,7 @@ "start": 519, "end": 522 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1339,9 +1299,7 @@ "start": 525, "end": 528 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -1400,9 +1358,7 @@ "start": 531, "end": 534 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1411,9 +1367,7 @@ "start": 535, "end": 538 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1425,9 +1379,7 @@ "start": 541, "end": 544 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -1471,9 +1423,7 @@ "start": 556, "end": 559 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1482,9 +1432,7 @@ "start": 560, "end": 563 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1496,9 +1444,7 @@ "start": 566, "end": 569 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -1557,9 +1503,7 @@ "start": 572, "end": 575 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1568,9 +1512,7 @@ "start": 576, "end": 579 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1582,9 +1524,7 @@ "start": 582, "end": 585 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -1628,9 +1568,7 @@ "start": 597, "end": 600 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1639,9 +1577,7 @@ "start": 601, "end": 604 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1653,9 +1589,7 @@ "start": 607, "end": 610 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json index 17bc3d86cb58..2e5aee897144 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json @@ -407,9 +407,7 @@ "start": 204, "end": 207 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } }, @@ -435,9 +433,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -483,9 +479,7 @@ "start": 228, "end": 231 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } }, @@ -511,9 +505,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -559,9 +551,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } }, @@ -587,9 +577,7 @@ "start": 268, "end": 271 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json index 7798f50a25b1..88c8a3742d89 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment4.json @@ -150,9 +150,7 @@ "start": 162, "end": 166 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -324,9 +322,7 @@ "start": 244, "end": 248 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -508,9 +504,7 @@ "start": 337, "end": 341 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -692,9 +686,7 @@ "start": 430, "end": 434 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -1112,9 +1104,7 @@ "start": 713, "end": 721 }, - "ctxt": 0, - "value": "original", - "optional": false + "value": "original" } } }, @@ -1154,9 +1144,7 @@ "start": 743, "end": 747 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1278,9 +1266,7 @@ "start": 845, "end": 849 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -1312,9 +1298,7 @@ "start": 876, "end": 880 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1436,9 +1420,7 @@ "start": 977, "end": 981 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -1470,9 +1452,7 @@ "start": 1008, "end": 1012 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -1561,9 +1541,7 @@ "start": 1097, "end": 1101 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -1595,9 +1573,7 @@ "start": 1128, "end": 1132 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json index aec98a925f28..fc5059ce0cdf 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment5.json @@ -832,9 +832,7 @@ "start": 339, "end": 347 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1104,9 +1102,7 @@ "start": 429, "end": 437 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1376,9 +1372,7 @@ "start": 519, "end": 527 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json index eacdbddca7ab..b85b705940a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment6.json @@ -233,9 +233,7 @@ "start": 177, "end": 181 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -490,9 +488,7 @@ "start": 306, "end": 310 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -747,9 +743,7 @@ "start": 435, "end": 439 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json index fa7b0e960ec9..4410d9dfc5f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment7.json @@ -226,9 +226,7 @@ "start": 175, "end": 179 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -476,9 +474,7 @@ "start": 302, "end": 306 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -726,9 +722,7 @@ "start": 429, "end": 433 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json index 50a7a09398e2..79cf060771a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment8.json @@ -276,9 +276,7 @@ "start": 184, "end": 189 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } }, @@ -299,9 +297,7 @@ "start": 197, "end": 201 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -493,9 +489,7 @@ "start": 280, "end": 285 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } }, @@ -516,9 +510,7 @@ "start": 293, "end": 297 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -710,9 +702,7 @@ "start": 376, "end": 381 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } }, @@ -733,9 +723,7 @@ "start": 389, "end": 393 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment9.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment9.json index 61fb02486d58..bf63bf5b6da6 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment9.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment9.json @@ -122,9 +122,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -172,9 +170,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json index 144214781929..37339bfc644b 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json @@ -272,9 +272,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -294,9 +292,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -457,9 +453,7 @@ "start": 203, "end": 204 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -499,9 +493,7 @@ "start": 222, "end": 225 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1238,9 +1230,7 @@ "start": 691, "end": 692 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1304,9 +1294,7 @@ "start": 724, "end": 725 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1370,9 +1358,7 @@ "start": 757, "end": 758 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1436,9 +1422,7 @@ "start": 787, "end": 788 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1568,9 +1552,7 @@ "start": 849, "end": 852 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2192,9 +2174,7 @@ "start": 1198, "end": 1199 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2234,9 +2214,7 @@ "start": 1204, "end": 1205 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithBooleanType.json index df43dd045de6..84f484abe37a 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 441, "end": 442 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 470, "end": 471 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 530, "end": 533 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1045,9 +1031,7 @@ "start": 670, "end": 671 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1087,9 +1071,7 @@ "start": 676, "end": 677 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json index 5223d225eb5a..7f432444c60d 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json @@ -304,9 +304,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -522,9 +520,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } } @@ -621,9 +617,7 @@ "start": 378, "end": 379 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithNumberType.json index 0cfc0038a712..6d5a73f5d87d 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 408, "end": 409 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 414, "end": 415 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 447, "end": 448 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 453, "end": 454 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 545, "end": 546 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 671, "end": 674 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1555,9 +1537,7 @@ "start": 893, "end": 894 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1597,9 +1577,7 @@ "start": 899, "end": 900 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1646,9 +1624,7 @@ "start": 908, "end": 909 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1674,9 +1650,7 @@ "start": 913, "end": 914 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json index c17584d43198..69ca04cd4565 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 173, "end": 176 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 419, "end": 420 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 560, "end": 561 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 589, "end": 590 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 686, "end": 689 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 769, "end": 775 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1651,9 +1631,7 @@ "start": 952, "end": 953 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1679,9 +1657,7 @@ "start": 956, "end": 957 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json index 5d6746188666..b1859df467e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json @@ -104,9 +104,7 @@ "start": 284, "end": 285 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -126,9 +124,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -157,9 +153,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -179,9 +173,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json index 8e72c6044e4d..a173bc786eb6 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsNotContextuallyTyped.json @@ -192,9 +192,7 @@ "start": 327, "end": 338 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json index 28547a5026f0..c333bd679ce9 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json @@ -1331,9 +1331,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json index 6792f47fe8a3..0a4a84f20f3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/looseThisTypeInFunctions.json @@ -278,9 +278,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": { @@ -320,9 +318,7 @@ "start": 233, "end": 245 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" }, "function": { "params": [ @@ -438,9 +434,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -495,9 +489,7 @@ "start": 316, "end": 328 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" }, "function": { "params": [ @@ -581,9 +573,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -638,9 +628,7 @@ "start": 387, "end": 399 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" }, "function": { "params": [ @@ -899,9 +887,7 @@ "start": 482, "end": 494 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" } }, "right": { @@ -926,9 +912,7 @@ "start": 499, "end": 511 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } } } @@ -975,9 +959,7 @@ "start": 566, "end": 567 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -997,9 +979,7 @@ "start": 578, "end": 590 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" }, "value": { "type": "FunctionExpression", @@ -1101,9 +1081,7 @@ "start": 639, "end": 640 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -1112,9 +1090,7 @@ "start": 641, "end": 647 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1135,9 +1111,7 @@ "start": 706, "end": 718 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" }, "params": [ { @@ -1363,9 +1337,7 @@ "start": 787, "end": 788 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -1385,9 +1357,7 @@ "start": 800, "end": 812 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" }, "value": { "type": "FunctionExpression", @@ -1475,9 +1445,7 @@ "start": 854, "end": 855 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -1486,9 +1454,7 @@ "start": 856, "end": 862 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1556,9 +1522,7 @@ "start": 929, "end": 941 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "definite": false @@ -1734,9 +1698,7 @@ "start": 1019, "end": 1033 }, - "ctxt": 0, - "value": "implicitNoThis", - "optional": false + "value": "implicitNoThis" } }, "definite": false @@ -1837,9 +1799,7 @@ "start": 1084, "end": 1096 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" } }, "right": { @@ -1864,9 +1824,7 @@ "start": 1101, "end": 1113 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" } } } @@ -1906,9 +1864,7 @@ "start": 1146, "end": 1158 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" } }, "right": { @@ -1933,9 +1889,7 @@ "start": 1163, "end": 1175 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" } } } @@ -1975,9 +1929,7 @@ "start": 1209, "end": 1221 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" } }, "right": { @@ -2002,9 +1954,7 @@ "start": 1226, "end": 1238 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } } } @@ -2044,9 +1994,7 @@ "start": 1314, "end": 1326 }, - "ctxt": 0, - "value": "implicitThis", - "optional": false + "value": "implicitThis" } }, "right": { @@ -2071,9 +2019,7 @@ "start": 1331, "end": 1343 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } } } @@ -2113,9 +2059,7 @@ "start": 1347, "end": 1359 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -2187,9 +2131,7 @@ "start": 1393, "end": 1394 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -2198,9 +2140,7 @@ "start": 1395, "end": 1401 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/malformedTags.json b/crates/swc_ecma_parser/tests/tsc/malformedTags.json index 742d0fa7722d..da46798b02f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/malformedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/malformedTags.json @@ -54,9 +54,7 @@ "start": 186, "end": 193 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json index 92ef4e3ab3ac..ced700a1f561 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json @@ -3431,9 +3431,7 @@ "start": 1772, "end": 1775 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json index 535de3b04f14..4f3c275d6d9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json @@ -199,9 +199,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -514,9 +512,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -848,9 +844,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -1282,9 +1276,7 @@ "start": 481, "end": 482 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1316,9 +1308,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1350,9 +1340,7 @@ "start": 503, "end": 504 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1780,9 +1768,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1814,9 +1800,7 @@ "start": 628, "end": 629 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -2223,9 +2207,7 @@ "start": 823, "end": 826 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json index 463ef5c1f3fc..60c5bf2c124a 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json @@ -4178,9 +4178,7 @@ "start": 1726, "end": 1733 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json index f9f2b5919af7..358f64de64bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json @@ -4084,9 +4084,7 @@ "start": 1785, "end": 1786 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4106,9 +4104,7 @@ "start": 1791, "end": 1792 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4140,9 +4136,7 @@ "start": 1801, "end": 1802 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4226,9 +4220,7 @@ "start": 1850, "end": 1851 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4248,9 +4240,7 @@ "start": 1856, "end": 1857 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4282,9 +4272,7 @@ "start": 1866, "end": 1867 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4304,9 +4292,7 @@ "start": 1872, "end": 1873 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4390,9 +4376,7 @@ "start": 1911, "end": 1912 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4412,9 +4396,7 @@ "start": 1917, "end": 1918 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4446,9 +4428,7 @@ "start": 1927, "end": 1928 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4468,9 +4448,7 @@ "start": 1933, "end": 1934 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4490,9 +4468,7 @@ "start": 1939, "end": 1940 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -4611,9 +4587,7 @@ "start": 2007, "end": 2008 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4633,9 +4607,7 @@ "start": 2013, "end": 2014 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4667,9 +4639,7 @@ "start": 2023, "end": 2024 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4753,9 +4723,7 @@ "start": 2061, "end": 2062 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4775,9 +4743,7 @@ "start": 2067, "end": 2068 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4809,9 +4775,7 @@ "start": 2077, "end": 2078 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4831,9 +4795,7 @@ "start": 2083, "end": 2084 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4917,9 +4879,7 @@ "start": 2121, "end": 2122 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4939,9 +4899,7 @@ "start": 2127, "end": 2128 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4973,9 +4931,7 @@ "start": 2137, "end": 2138 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4995,9 +4951,7 @@ "start": 2143, "end": 2144 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -5017,9 +4971,7 @@ "start": 2149, "end": 2150 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -5598,9 +5550,7 @@ "start": 2431, "end": 2432 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -5620,9 +5570,7 @@ "start": 2443, "end": 2444 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5694,9 +5642,7 @@ "start": 2468, "end": 2469 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -5716,9 +5662,7 @@ "start": 2479, "end": 2480 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5791,9 +5735,7 @@ "start": 2504, "end": 2505 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -5866,9 +5808,7 @@ "start": 2532, "end": 2533 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -6048,9 +5988,7 @@ "start": 2605, "end": 2606 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -6124,9 +6062,7 @@ "start": 2648, "end": 2649 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -6176,9 +6112,7 @@ "start": 2688, "end": 2693 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" }, "value": null, "typeAnnotation": { @@ -6228,9 +6162,7 @@ "start": 2702, "end": 2710 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" }, "function": { "params": [ @@ -6430,9 +6362,7 @@ "start": 2799, "end": 2804 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -6710,9 +6640,7 @@ "start": 2863, "end": 2871 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -6733,9 +6661,7 @@ "start": 2874, "end": 2875 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -6755,9 +6681,7 @@ "start": 2885, "end": 2886 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -6811,9 +6735,7 @@ "start": 2897, "end": 2905 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -6834,9 +6756,7 @@ "start": 2908, "end": 2909 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -6890,9 +6810,7 @@ "start": 2922, "end": 2930 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -6913,9 +6831,7 @@ "start": 2933, "end": 2934 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -6970,9 +6886,7 @@ "start": 2952, "end": 2960 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -7026,9 +6940,7 @@ "start": 2969, "end": 2977 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -7084,9 +6996,7 @@ "start": 2986, "end": 2994 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -7107,9 +7017,7 @@ "start": 2997, "end": 2998 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -7164,9 +7072,7 @@ "start": 3026, "end": 3034 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -7187,9 +7093,7 @@ "start": 3037, "end": 3038 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -7387,9 +7291,7 @@ "start": 3122, "end": 3123 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -7499,9 +7401,7 @@ "start": 3167, "end": 3168 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -7668,9 +7568,7 @@ "start": 3225, "end": 3226 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -8197,9 +8095,7 @@ "start": 3438, "end": 3439 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -8219,9 +8115,7 @@ "start": 3444, "end": 3445 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -8346,9 +8240,7 @@ "start": 3483, "end": 3485 }, - "ctxt": 0, - "value": "pf", - "optional": false + "value": "pf" }, "value": { "type": "ObjectExpression", @@ -8365,9 +8257,7 @@ "start": 3488, "end": 3489 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -8390,9 +8280,7 @@ "start": 3499, "end": 3501 }, - "ctxt": 0, - "value": "pt", - "optional": false + "value": "pt" }, "value": { "type": "ObjectExpression", @@ -8409,9 +8297,7 @@ "start": 3504, "end": 3505 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -8431,9 +8317,7 @@ "start": 3510, "end": 3511 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -8618,9 +8502,7 @@ "start": 3619, "end": 3622 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -8866,9 +8748,7 @@ "start": 3716, "end": 3719 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json index b169dfa656ae..800ebe8e8ed1 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeInferenceErrors.json @@ -535,9 +535,7 @@ "start": 210, "end": 215 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" }, "value": { "type": "ObjectExpression", @@ -554,9 +552,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -576,9 +572,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -601,9 +595,7 @@ "start": 239, "end": 247 }, - "ctxt": 0, - "value": "computed", - "optional": false + "value": "computed" }, "value": { "type": "ObjectExpression", @@ -620,9 +612,7 @@ "start": 259, "end": 262 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "params": [], "decorators": [], @@ -685,9 +675,7 @@ "start": 300, "end": 303 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -739,9 +727,7 @@ "start": 347, "end": 350 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json index 6d135872ddf3..2e5108c9f5dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json @@ -6839,9 +6839,7 @@ "start": 2080, "end": 2084 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -6927,9 +6925,7 @@ "start": 2114, "end": 2121 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -7069,9 +7065,7 @@ "start": 2166, "end": 2170 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -7133,9 +7127,7 @@ "start": 2193, "end": 2200 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -7275,9 +7267,7 @@ "start": 2245, "end": 2249 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -7345,9 +7335,7 @@ "start": 2272, "end": 2273 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -7356,9 +7344,7 @@ "start": 2274, "end": 2281 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -7555,9 +7541,7 @@ "start": 2341, "end": 2345 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -7619,9 +7603,7 @@ "start": 2368, "end": 2375 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json index 95fcc290802f..c9ed86bea40f 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json @@ -262,6 +262,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 216, + "end": 242 + }, "left": { "type": "Identifier", "span": { @@ -278,9 +282,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "CAT", - "optional": false + "value": "CAT" } }, "typeParams": null @@ -384,6 +386,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 295, + "end": 315 + }, "left": { "type": "Identifier", "span": { @@ -400,9 +406,7 @@ "start": 312, "end": 315 }, - "ctxt": 0, - "value": "CAT", - "optional": false + "value": "CAT" } }, "typeParams": null @@ -750,9 +754,7 @@ "start": 475, "end": 478 }, - "ctxt": 0, - "value": "cat", - "optional": false + "value": "cat" }, "value": { "type": "ArrayExpression", @@ -778,9 +780,7 @@ "start": 488, "end": 492 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "MemberExpression", @@ -804,9 +804,7 @@ "start": 517, "end": 520 }, - "ctxt": 0, - "value": "CAT", - "optional": false + "value": "CAT" } } }, @@ -818,9 +816,7 @@ "start": 522, "end": 529 }, - "ctxt": 0, - "value": "address", - "optional": false + "value": "address" }, "value": { "type": "StringLiteral", @@ -852,9 +848,7 @@ "start": 543, "end": 547 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "MemberExpression", @@ -878,9 +872,7 @@ "start": 566, "end": 569 }, - "ctxt": 0, - "value": "CAT", - "optional": false + "value": "CAT" } } }, @@ -892,9 +884,7 @@ "start": 571, "end": 577 }, - "ctxt": 0, - "value": "planet", - "optional": false + "value": "planet" }, "value": { "type": "StringLiteral", @@ -920,9 +910,7 @@ "start": 591, "end": 594 }, - "ctxt": 0, - "value": "dog", - "optional": false + "value": "dog" }, "value": { "type": "TsAsExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json index b383b2695984..6f6bcb4d64bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json @@ -7228,9 +7228,7 @@ "start": 2104, "end": 2108 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -7544,9 +7542,7 @@ "start": 2233, "end": 2237 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -13210,9 +13206,7 @@ "start": 3873, "end": 3874 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json index 04feb5093be2..cfb472c46ac4 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeWithAny.json @@ -1040,9 +1040,7 @@ "start": 496, "end": 505 }, - "ctxt": 0, - "value": "notAValue", - "optional": false + "value": "notAValue" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json index 3f9e2b15900e..9c1734db9f3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json @@ -3468,9 +3468,7 @@ "start": 1343, "end": 1347 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -3543,9 +3541,7 @@ "start": 1379, "end": 1384 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "NumericLiteral", @@ -3565,9 +3561,7 @@ "start": 1390, "end": 1396 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "NumericLiteral", @@ -4419,9 +4413,7 @@ "start": 1818, "end": 1821 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -4441,9 +4433,7 @@ "start": 1832, "end": 1835 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -4463,9 +4453,7 @@ "start": 1846, "end": 1849 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "StringLiteral", @@ -4585,9 +4573,7 @@ "start": 1902, "end": 1908 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, @@ -4809,9 +4795,7 @@ "start": 2035, "end": 2039 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -4820,9 +4804,7 @@ "start": 2040, "end": 2043 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [], @@ -4873,9 +4855,7 @@ "start": 2053, "end": 2058 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "property": { @@ -4884,9 +4864,7 @@ "start": 2059, "end": 2062 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -5060,9 +5038,7 @@ "start": 2134, "end": 2138 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "definite": false @@ -5118,9 +5094,7 @@ "start": 2176, "end": 2184 }, - "ctxt": 0, - "value": "location", - "optional": false + "value": "location" } }, "definite": false @@ -5176,9 +5150,7 @@ "start": 2231, "end": 2232 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json index a6b627c99706..df4cdc29f0bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes3.json @@ -37,9 +37,7 @@ "start": 43, "end": 48 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -1032,9 +1030,7 @@ "start": 431, "end": 440 }, - "ctxt": 0, - "value": "isPerfect", - "optional": false + "value": "isPerfect" } }, "property": { @@ -1043,9 +1039,7 @@ "start": 441, "end": 446 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "definite": false @@ -1107,9 +1101,7 @@ "start": 468, "end": 474 }, - "ctxt": 0, - "value": "weight", - "optional": false + "value": "weight" } }, "property": { @@ -1118,9 +1110,7 @@ "start": 475, "end": 480 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "definite": false @@ -1346,9 +1336,7 @@ "start": 585, "end": 594 }, - "ctxt": 0, - "value": "isPerfect", - "optional": false + "value": "isPerfect" } }, "definite": false @@ -1404,9 +1392,7 @@ "start": 615, "end": 621 }, - "ctxt": 0, - "value": "weight", - "optional": false + "value": "weight" } }, "definite": false @@ -1632,9 +1618,7 @@ "start": 746, "end": 755 }, - "ctxt": 0, - "value": "isPerfect", - "optional": false + "value": "isPerfect" } }, "definite": false @@ -1690,9 +1674,7 @@ "start": 777, "end": 783 }, - "ctxt": 0, - "value": "weight", - "optional": false + "value": "weight" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json index 6ba08648c2a6..fa4cc1e8e7ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json @@ -567,9 +567,7 @@ "start": 299, "end": 304 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "MemberExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json index 50c4e89ab0f7..6f23bdb15b12 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes5.json @@ -2847,9 +2847,7 @@ "start": 1108, "end": 1114 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -2976,9 +2974,7 @@ "start": 1159, "end": 1165 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -3949,9 +3945,7 @@ "start": 1617, "end": 1623 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -4078,9 +4072,7 @@ "start": 1673, "end": 1679 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json index b115e52dbbb4..88298c9da15d 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes6.json @@ -5503,9 +5503,7 @@ "start": 1885, "end": 1886 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -5537,9 +5535,7 @@ "start": 1902, "end": 1903 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -5571,9 +5567,7 @@ "start": 1931, "end": 1932 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -5605,9 +5599,7 @@ "start": 1960, "end": 1961 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -5650,9 +5642,7 @@ "start": 1994, "end": 1995 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5707,9 +5697,7 @@ "start": 2019, "end": 2020 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5729,9 +5717,7 @@ "start": 2025, "end": 2026 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5786,9 +5772,7 @@ "start": 2040, "end": 2041 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5808,9 +5792,7 @@ "start": 2046, "end": 2047 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5830,9 +5812,7 @@ "start": 2052, "end": 2053 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -5887,9 +5867,7 @@ "start": 2067, "end": 2068 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5909,9 +5887,7 @@ "start": 2073, "end": 2074 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5931,9 +5907,7 @@ "start": 2079, "end": 2080 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -5953,9 +5927,7 @@ "start": 2085, "end": 2086 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -6081,9 +6053,7 @@ "start": 2129, "end": 2130 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -6115,9 +6085,7 @@ "start": 2146, "end": 2147 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -6149,9 +6117,7 @@ "start": 2175, "end": 2176 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -6183,9 +6149,7 @@ "start": 2192, "end": 2193 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -6228,9 +6192,7 @@ "start": 2214, "end": 2215 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6285,9 +6247,7 @@ "start": 2239, "end": 2240 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6307,9 +6267,7 @@ "start": 2245, "end": 2246 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -6364,9 +6322,7 @@ "start": 2270, "end": 2271 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6386,9 +6342,7 @@ "start": 2276, "end": 2277 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -6408,9 +6362,7 @@ "start": 2282, "end": 2283 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -6465,9 +6417,7 @@ "start": 2307, "end": 2308 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6487,9 +6437,7 @@ "start": 2313, "end": 2314 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -6509,9 +6457,7 @@ "start": 2319, "end": 2320 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -6531,9 +6477,7 @@ "start": 2325, "end": 2326 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -6738,9 +6682,7 @@ "start": 2413, "end": 2414 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6789,9 +6731,7 @@ "start": 2423, "end": 2424 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -6922,9 +6862,7 @@ "start": 2475, "end": 2476 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -6973,9 +6911,7 @@ "start": 2495, "end": 2496 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -7106,9 +7042,7 @@ "start": 2548, "end": 2549 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -7157,9 +7091,7 @@ "start": 2558, "end": 2559 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json b/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json index 82765af73594..0ef0da401e0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypesAndObjects.json @@ -1585,9 +1585,7 @@ "start": 720, "end": 726 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "value": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json b/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json index 19e795009792..166aa8378933 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypesArraysTuples.json @@ -5499,9 +5499,7 @@ "start": 2303, "end": 2306 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -5614,9 +5612,7 @@ "start": 2336, "end": 2342 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples2.json index f924d9c0403d..f014d3fbe4d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples2.json @@ -133,9 +133,7 @@ "start": 149, "end": 152 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -241,9 +239,7 @@ "start": 187, "end": 191 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -397,9 +393,7 @@ "start": 264, "end": 269 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json index e11c6fa081be..3a54a1de4a4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionOverloadMixingStaticAndInstance.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 33, "end": 36 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -138,9 +134,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -175,9 +169,7 @@ "start": 84, "end": 87 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -239,9 +231,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -320,9 +310,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -448,9 +436,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -519,9 +505,7 @@ "start": 218, "end": 221 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json index 032b76e6d471..e99f17a4e10a 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json @@ -37,9 +37,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -108,9 +106,7 @@ "start": 51, "end": 54 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -212,9 +208,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -324,9 +318,7 @@ "start": 128, "end": 131 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -403,9 +395,7 @@ "start": 154, "end": 157 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -474,9 +464,7 @@ "start": 182, "end": 185 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -578,9 +566,7 @@ "start": 221, "end": 224 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -690,9 +676,7 @@ "start": 266, "end": 269 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -761,9 +745,7 @@ "start": 301, "end": 304 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -865,9 +847,7 @@ "start": 347, "end": 350 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -977,9 +957,7 @@ "start": 392, "end": 395 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1056,9 +1034,7 @@ "start": 425, "end": 428 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1127,9 +1103,7 @@ "start": 460, "end": 463 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1231,9 +1205,7 @@ "start": 506, "end": 509 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1370,9 +1342,7 @@ "start": 559, "end": 562 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1441,9 +1411,7 @@ "start": 587, "end": 590 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1565,9 +1533,7 @@ "start": 616, "end": 619 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1677,9 +1643,7 @@ "start": 654, "end": 657 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1756,9 +1720,7 @@ "start": 680, "end": 683 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1827,9 +1789,7 @@ "start": 708, "end": 711 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1951,9 +1911,7 @@ "start": 737, "end": 740 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2063,9 +2021,7 @@ "start": 782, "end": 785 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2134,9 +2090,7 @@ "start": 817, "end": 820 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2238,9 +2192,7 @@ "start": 863, "end": 866 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2350,9 +2302,7 @@ "start": 908, "end": 911 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2429,9 +2379,7 @@ "start": 941, "end": 944 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2500,9 +2448,7 @@ "start": 976, "end": 979 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2604,9 +2550,7 @@ "start": 1022, "end": 1025 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2853,9 +2797,7 @@ "start": 1071, "end": 1074 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3006,9 +2948,7 @@ "start": 1118, "end": 1121 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3087,9 +3027,7 @@ "start": 1147, "end": 1150 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -3168,9 +3106,7 @@ "start": 1175, "end": 1178 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json index 80db9019479b..bede8f137559 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json @@ -37,9 +37,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -108,9 +106,7 @@ "start": 49, "end": 52 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -212,9 +208,7 @@ "start": 87, "end": 90 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -324,9 +318,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -403,9 +395,7 @@ "start": 149, "end": 152 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -474,9 +464,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -578,9 +566,7 @@ "start": 214, "end": 217 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -690,9 +676,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -761,9 +745,7 @@ "start": 292, "end": 295 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -865,9 +847,7 @@ "start": 337, "end": 340 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -977,9 +957,7 @@ "start": 381, "end": 384 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1056,9 +1034,7 @@ "start": 413, "end": 416 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1127,9 +1103,7 @@ "start": 447, "end": 450 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1231,9 +1205,7 @@ "start": 492, "end": 495 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1370,9 +1342,7 @@ "start": 544, "end": 547 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1441,9 +1411,7 @@ "start": 571, "end": 574 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1565,9 +1533,7 @@ "start": 599, "end": 602 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1677,9 +1643,7 @@ "start": 636, "end": 639 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1756,9 +1720,7 @@ "start": 661, "end": 664 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1827,9 +1789,7 @@ "start": 688, "end": 691 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1951,9 +1911,7 @@ "start": 716, "end": 719 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2063,9 +2021,7 @@ "start": 760, "end": 763 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2134,9 +2090,7 @@ "start": 794, "end": 797 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2238,9 +2192,7 @@ "start": 839, "end": 842 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2350,9 +2302,7 @@ "start": 883, "end": 886 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2429,9 +2379,7 @@ "start": 915, "end": 918 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2500,9 +2448,7 @@ "start": 949, "end": 952 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2604,9 +2550,7 @@ "start": 994, "end": 997 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json index 7d7ec92be46e..3eb6cc9f2eb2 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json @@ -37,9 +37,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -108,9 +106,7 @@ "start": 50, "end": 53 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -212,9 +208,7 @@ "start": 98, "end": 101 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -324,9 +318,7 @@ "start": 136, "end": 139 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -403,9 +395,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -474,9 +464,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -578,9 +566,7 @@ "start": 237, "end": 240 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -690,9 +676,7 @@ "start": 282, "end": 285 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -761,9 +745,7 @@ "start": 316, "end": 319 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -865,9 +847,7 @@ "start": 371, "end": 374 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -977,9 +957,7 @@ "start": 411, "end": 414 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -1048,9 +1026,7 @@ "start": 450, "end": 453 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -1152,9 +1128,7 @@ "start": 498, "end": 501 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -1264,9 +1238,7 @@ "start": 543, "end": 546 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1343,9 +1315,7 @@ "start": 575, "end": 578 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1414,9 +1384,7 @@ "start": 619, "end": 622 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1518,9 +1486,7 @@ "start": 665, "end": 668 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -1630,9 +1596,7 @@ "start": 712, "end": 715 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -1709,9 +1673,7 @@ "start": 744, "end": 747 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -1780,9 +1742,7 @@ "start": 790, "end": 793 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -1884,9 +1844,7 @@ "start": 838, "end": 841 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -2023,9 +1981,7 @@ "start": 891, "end": 894 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2094,9 +2050,7 @@ "start": 919, "end": 922 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2218,9 +2172,7 @@ "start": 957, "end": 960 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2330,9 +2282,7 @@ "start": 995, "end": 998 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2409,9 +2359,7 @@ "start": 1020, "end": 1023 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2480,9 +2428,7 @@ "start": 1057, "end": 1060 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2604,9 +2550,7 @@ "start": 1086, "end": 1089 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -2716,9 +2660,7 @@ "start": 1124, "end": 1127 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -2787,9 +2729,7 @@ "start": 1155, "end": 1158 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -2891,9 +2831,7 @@ "start": 1203, "end": 1206 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -3003,9 +2941,7 @@ "start": 1248, "end": 1251 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -3074,9 +3010,7 @@ "start": 1282, "end": 1285 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -3178,9 +3112,7 @@ "start": 1337, "end": 1340 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -3290,9 +3222,7 @@ "start": 1382, "end": 1385 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -3369,9 +3299,7 @@ "start": 1414, "end": 1417 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -3440,9 +3368,7 @@ "start": 1458, "end": 1461 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -3544,9 +3470,7 @@ "start": 1504, "end": 1507 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -3656,9 +3580,7 @@ "start": 1548, "end": 1551 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -3727,9 +3649,7 @@ "start": 1594, "end": 1597 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -3831,9 +3751,7 @@ "start": 1642, "end": 1645 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -4080,9 +3998,7 @@ "start": 1690, "end": 1693 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -4233,9 +4149,7 @@ "start": 1737, "end": 1740 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces.json b/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces.json index d13351872e01..f2f4db863393 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces.json @@ -302,9 +302,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -360,9 +358,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -418,9 +414,7 @@ "start": 224, "end": 227 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false @@ -860,9 +854,7 @@ "start": 377, "end": 380 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -918,9 +910,7 @@ "start": 392, "end": 395 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -976,9 +966,7 @@ "start": 408, "end": 411 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false @@ -1307,9 +1295,7 @@ "start": 647, "end": 650 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1365,9 +1351,7 @@ "start": 685, "end": 688 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1423,9 +1407,7 @@ "start": 748, "end": 751 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false @@ -1865,9 +1847,7 @@ "start": 949, "end": 952 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1923,9 +1903,7 @@ "start": 986, "end": 989 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1981,9 +1959,7 @@ "start": 1049, "end": 1052 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces2.json b/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces2.json index a84f041b04b0..090c3546f267 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces2.json +++ b/crates/swc_ecma_parser/tests/tsc/mergeThreeInterfaces2.json @@ -206,9 +206,7 @@ "start": 201, "end": 204 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -264,9 +262,7 @@ "start": 221, "end": 224 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -548,9 +544,7 @@ "start": 377, "end": 380 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -606,9 +600,7 @@ "start": 397, "end": 400 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -664,9 +656,7 @@ "start": 417, "end": 420 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false @@ -908,9 +898,7 @@ "start": 649, "end": 652 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -966,9 +954,7 @@ "start": 673, "end": 676 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1214,9 +1200,7 @@ "start": 825, "end": 828 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1272,9 +1256,7 @@ "start": 848, "end": 851 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1330,9 +1312,7 @@ "start": 872, "end": 875 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false @@ -1578,9 +1558,7 @@ "start": 1024, "end": 1027 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1636,9 +1614,7 @@ "start": 1047, "end": 1050 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1694,9 +1670,7 @@ "start": 1071, "end": 1074 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces.json b/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces.json index 1e5521e91a65..8d1a6c87f4a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces.json @@ -238,9 +238,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -296,9 +294,7 @@ "start": 177, "end": 180 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -669,9 +665,7 @@ "start": 315, "end": 318 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -727,9 +721,7 @@ "start": 330, "end": 333 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -994,9 +986,7 @@ "start": 522, "end": 525 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1052,9 +1042,7 @@ "start": 560, "end": 563 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1390,9 +1378,7 @@ "start": 716, "end": 719 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1448,9 +1434,7 @@ "start": 753, "end": 756 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces2.json b/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces2.json index d32722bcaa30..39a517420eab 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces2.json +++ b/crates/swc_ecma_parser/tests/tsc/mergeTwoInterfaces2.json @@ -206,9 +206,7 @@ "start": 201, "end": 204 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -264,9 +262,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -477,9 +473,7 @@ "start": 322, "end": 325 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -535,9 +529,7 @@ "start": 341, "end": 344 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -779,9 +771,7 @@ "start": 543, "end": 546 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -837,9 +827,7 @@ "start": 566, "end": 569 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1085,9 +1073,7 @@ "start": 717, "end": 720 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1143,9 +1129,7 @@ "start": 740, "end": 743 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mergedClassInterface.json b/crates/swc_ecma_parser/tests/tsc/mergedClassInterface.json index 8b0bfd790ae1..c937e45cbd47 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedClassInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedClassInterface.json @@ -317,9 +317,7 @@ "start": 249, "end": 251 }, - "ctxt": 0, - "value": "x2", - "optional": false + "value": "x2" }, "value": null, "typeAnnotation": { @@ -566,9 +564,7 @@ "start": 393, "end": 395 }, - "ctxt": 0, - "value": "x1", - "optional": false + "value": "x1" } } }, @@ -600,9 +596,7 @@ "start": 400, "end": 402 }, - "ctxt": 0, - "value": "x2", - "optional": false + "value": "x2" } } }, @@ -634,9 +628,7 @@ "start": 407, "end": 409 }, - "ctxt": 0, - "value": "x3", - "optional": false + "value": "x3" } } }, @@ -668,9 +660,7 @@ "start": 414, "end": 416 }, - "ctxt": 0, - "value": "x4", - "optional": false + "value": "x4" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInheritedClassInterface.json b/crates/swc_ecma_parser/tests/tsc/mergedInheritedClassInterface.json index ee57b6938a0f..89a996ea54ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInheritedClassInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInheritedClassInterface.json @@ -136,9 +136,7 @@ "start": 97, "end": 107 }, - "ctxt": 0, - "value": "baseMethod", - "optional": false + "value": "baseMethod" }, "function": { "params": [], @@ -181,9 +179,7 @@ "start": 118, "end": 128 }, - "ctxt": 0, - "value": "baseNumber", - "optional": false + "value": "baseNumber" }, "value": null, "typeAnnotation": { @@ -333,9 +329,7 @@ "start": 244, "end": 255 }, - "ctxt": 0, - "value": "classNumber", - "optional": false + "value": "classNumber" }, "value": null, "typeAnnotation": { @@ -375,9 +369,7 @@ "start": 269, "end": 275 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -539,9 +531,7 @@ "start": 392, "end": 403 }, - "ctxt": 0, - "value": "classString", - "optional": false + "value": "classString" }, "value": null, "typeAnnotation": { @@ -581,9 +571,7 @@ "start": 417, "end": 424 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -740,9 +728,7 @@ "start": 550, "end": 558 }, - "ctxt": 0, - "value": "required", - "optional": false + "value": "required" } } }, @@ -774,9 +760,7 @@ "start": 566, "end": 574 }, - "ctxt": 0, - "value": "optional", - "optional": false + "value": "optional" } } }, @@ -808,9 +792,7 @@ "start": 582, "end": 592 }, - "ctxt": 0, - "value": "additional", - "optional": false + "value": "additional" } } }, @@ -842,9 +824,7 @@ "start": 600, "end": 610 }, - "ctxt": 0, - "value": "baseNumber", - "optional": false + "value": "baseNumber" } } }, @@ -876,9 +856,7 @@ "start": 618, "end": 629 }, - "ctxt": 0, - "value": "classNumber", - "optional": false + "value": "classNumber" } } }, @@ -917,9 +895,7 @@ "start": 637, "end": 647 }, - "ctxt": 0, - "value": "baseMethod", - "optional": false + "value": "baseMethod" } }, "arguments": [], @@ -961,9 +937,7 @@ "start": 657, "end": 663 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -1054,9 +1028,7 @@ "start": 707, "end": 715 }, - "ctxt": 0, - "value": "required", - "optional": false + "value": "required" } } }, @@ -1088,9 +1060,7 @@ "start": 728, "end": 736 }, - "ctxt": 0, - "value": "optional", - "optional": false + "value": "optional" } } }, @@ -1122,9 +1092,7 @@ "start": 749, "end": 760 }, - "ctxt": 0, - "value": "additional2", - "optional": false + "value": "additional2" } } }, @@ -1156,9 +1124,7 @@ "start": 773, "end": 784 }, - "ctxt": 0, - "value": "classString", - "optional": false + "value": "classString" } } }, @@ -1197,9 +1163,7 @@ "start": 797, "end": 804 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInheritedMembersSatisfyAbstractBase.json b/crates/swc_ecma_parser/tests/tsc/mergedInheritedMembersSatisfyAbstractBase.json index 8f6efc0a58b3..20c3c24afb56 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInheritedMembersSatisfyAbstractBase.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInheritedMembersSatisfyAbstractBase.json @@ -37,9 +37,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -258,9 +256,7 @@ "start": 230, "end": 233 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates.json index e8d509ca9126..07553846f5d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -253,9 +251,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -295,9 +291,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -337,9 +331,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -425,9 +417,7 @@ "start": 235, "end": 236 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -467,9 +457,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -509,9 +497,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -670,9 +656,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates2.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates2.json index 84565617c28f..d373269f3217 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates2.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates2.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": null, "typeAnnotation": { @@ -341,9 +337,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": null, "typeAnnotation": { @@ -383,9 +377,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -425,9 +417,7 @@ "start": 243, "end": 244 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -522,9 +512,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": null, "typeAnnotation": { @@ -564,9 +552,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -606,9 +592,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -776,9 +760,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -834,9 +816,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates3.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates3.json index ce4ef15b0dfc..9d29b2f119cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates3.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithInheritedPrivates3.json @@ -37,9 +37,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -341,9 +337,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -383,9 +377,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -505,9 +497,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -574,9 +564,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases.json index d9ce7d125fa2..d6bd6f75f437 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases.json @@ -37,9 +37,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -341,9 +337,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -383,9 +377,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -425,9 +417,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -467,9 +457,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -628,9 +616,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -694,9 +680,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -803,9 +787,7 @@ "start": 481, "end": 482 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -1200,9 +1182,7 @@ "start": 654, "end": 655 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1242,9 +1222,7 @@ "start": 674, "end": 675 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -1284,9 +1262,7 @@ "start": 693, "end": 694 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1326,9 +1302,7 @@ "start": 713, "end": 714 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases2.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases2.json index e41cf39cf398..b910ab3860a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases2.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases2.json @@ -37,9 +37,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -244,9 +238,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -515,9 +507,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -557,9 +547,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -599,9 +587,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -641,9 +627,7 @@ "start": 401, "end": 402 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -683,9 +667,7 @@ "start": 416, "end": 417 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -725,9 +707,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -886,9 +866,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -952,9 +930,7 @@ "start": 539, "end": 540 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1061,9 +1037,7 @@ "start": 578, "end": 579 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -1170,9 +1144,7 @@ "start": 617, "end": 618 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -1279,9 +1251,7 @@ "start": 656, "end": 657 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1754,9 +1724,7 @@ "start": 848, "end": 849 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1796,9 +1764,7 @@ "start": 868, "end": 869 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -1838,9 +1804,7 @@ "start": 887, "end": 888 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -1880,9 +1844,7 @@ "start": 907, "end": 908 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1922,9 +1884,7 @@ "start": 926, "end": 927 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1964,9 +1924,7 @@ "start": 946, "end": 947 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases3.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases3.json index d94988572781..d969dd9e0284 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases3.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases3.json @@ -37,9 +37,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -146,9 +144,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -255,9 +251,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -364,9 +358,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -819,9 +811,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -861,9 +851,7 @@ "start": 398, "end": 399 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -913,9 +901,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -955,9 +941,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -997,9 +981,7 @@ "start": 441, "end": 442 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1039,9 +1021,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases4.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases4.json index ca88ef057984..0aa66651f131 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases4.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithMultipleBases4.json @@ -37,9 +37,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -146,9 +144,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -255,9 +251,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -364,9 +358,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -819,9 +811,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -861,9 +851,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -903,9 +891,7 @@ "start": 400, "end": 401 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -945,9 +931,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -987,9 +971,7 @@ "start": 430, "end": 431 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -1029,9 +1011,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json b/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json index 2f32b19c15f3..bc92d80d0fb9 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json @@ -186,9 +186,7 @@ "start": 111, "end": 122 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json b/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json index b6ccade227b9..fb073a09f3de 100644 --- a/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/methodSignaturesWithOverloads2.json @@ -347,9 +347,7 @@ "start": 249, "end": 254 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } }, "right": { @@ -374,9 +372,7 @@ "start": 259, "end": 264 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } } } @@ -416,9 +412,7 @@ "start": 268, "end": 273 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } }, "right": { @@ -443,9 +437,7 @@ "start": 278, "end": 283 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } } } @@ -952,9 +944,7 @@ "start": 451, "end": 456 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } }, "right": { @@ -979,9 +969,7 @@ "start": 462, "end": 467 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } } } @@ -1021,9 +1009,7 @@ "start": 472, "end": 477 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } }, "right": { @@ -1048,9 +1034,7 @@ "start": 483, "end": 488 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/methodsReturningThis.json b/crates/swc_ecma_parser/tests/tsc/methodsReturningThis.json index 83940d7a38f3..110af5863e4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/methodsReturningThis.json +++ b/crates/swc_ecma_parser/tests/tsc/methodsReturningThis.json @@ -80,9 +80,7 @@ "start": 146, "end": 155 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -91,9 +89,7 @@ "start": 156, "end": 169 }, - "ctxt": 0, - "value": "containsError", - "optional": false + "value": "containsError" } }, "right": { @@ -139,9 +135,7 @@ "start": 198, "end": 208 }, - "ctxt": 0, - "value": "notPresent", - "optional": false + "value": "notPresent" } } } @@ -195,9 +189,7 @@ "start": 293, "end": 302 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -206,9 +198,7 @@ "start": 303, "end": 305 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "right": { @@ -408,9 +398,7 @@ "start": 362, "end": 371 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -419,9 +407,7 @@ "start": 372, "end": 374 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" } }, "right": { @@ -545,9 +531,7 @@ "start": 417, "end": 426 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -556,9 +540,7 @@ "start": 427, "end": 429 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" } }, "right": { @@ -682,9 +664,7 @@ "start": 472, "end": 481 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -693,9 +673,7 @@ "start": 482, "end": 484 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" } }, "right": { @@ -800,9 +778,7 @@ "start": 528, "end": 537 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -811,9 +787,7 @@ "start": 538, "end": 540 }, - "ctxt": 0, - "value": "m5", - "optional": false + "value": "m5" } }, "right": { @@ -918,9 +892,7 @@ "start": 585, "end": 594 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -929,9 +901,7 @@ "start": 595, "end": 597 }, - "ctxt": 0, - "value": "m6", - "optional": false + "value": "m6" } }, "right": { @@ -1188,9 +1158,7 @@ "start": 696, "end": 705 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1199,9 +1167,7 @@ "start": 706, "end": 708 }, - "ctxt": 0, - "value": "m7", - "optional": false + "value": "m7" } }, "right": { @@ -1306,9 +1272,7 @@ "start": 752, "end": 761 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1317,9 +1281,7 @@ "start": 762, "end": 764 }, - "ctxt": 0, - "value": "m8", - "optional": false + "value": "m8" } }, "right": { @@ -1404,9 +1366,7 @@ "start": 802, "end": 811 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1415,9 +1375,7 @@ "start": 812, "end": 814 }, - "ctxt": 0, - "value": "m9", - "optional": false + "value": "m9" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/missingAndExcessProperties.json b/crates/swc_ecma_parser/tests/tsc/missingAndExcessProperties.json index 58b0e43b9c17..8e791ab9db2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/missingAndExcessProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/missingAndExcessProperties.json @@ -601,9 +601,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -720,9 +718,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -801,9 +797,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -841,9 +835,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "AssignmentPattern", @@ -964,9 +956,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -986,9 +976,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1067,9 +1055,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1089,9 +1075,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1170,9 +1154,7 @@ "start": 450, "end": 451 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1192,9 +1174,7 @@ "start": 456, "end": 457 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1292,9 +1272,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1314,9 +1292,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1493,9 +1469,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1515,9 +1489,7 @@ "start": 588, "end": 589 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1598,9 +1570,7 @@ "start": 612, "end": 613 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1620,9 +1590,7 @@ "start": 618, "end": 619 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1703,9 +1671,7 @@ "start": 642, "end": 643 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1725,9 +1691,7 @@ "start": 648, "end": 649 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1827,9 +1791,7 @@ "start": 675, "end": 676 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1849,9 +1811,7 @@ "start": 681, "end": 682 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/mixedPropertyElementAccessAssignmentDeclaration.json b/crates/swc_ecma_parser/tests/tsc/mixedPropertyElementAccessAssignmentDeclaration.json index ab3ebe4b3d28..a90c60f4e101 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixedPropertyElementAccessAssignmentDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/mixedPropertyElementAccessAssignmentDeclaration.json @@ -108,9 +108,7 @@ "start": 50, "end": 54 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json index 277ffe333f46..95eb3c7ee6c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClasses.json @@ -174,9 +174,7 @@ "start": 312, "end": 323 }, - "ctxt": 0, - "value": "mixinMethod", - "optional": false + "value": "mixinMethod" }, "function": { "params": [], @@ -503,9 +501,7 @@ "start": 395, "end": 405 }, - "ctxt": 0, - "value": "baseMethod", - "optional": false + "value": "baseMethod" }, "function": { "params": [], @@ -575,9 +571,7 @@ "start": 457, "end": 475 }, - "ctxt": 0, - "value": "abstractBaseMethod", - "optional": false + "value": "abstractBaseMethod" }, "function": { "params": [], @@ -766,9 +760,7 @@ "start": 606, "end": 616 }, - "ctxt": 0, - "value": "baseMethod", - "optional": false + "value": "baseMethod" } }, "arguments": [], @@ -810,9 +802,7 @@ "start": 632, "end": 643 }, - "ctxt": 0, - "value": "mixinMethod", - "optional": false + "value": "mixinMethod" } }, "arguments": [], @@ -851,9 +841,7 @@ "start": 708, "end": 726 }, - "ctxt": 0, - "value": "abstractBaseMethod", - "optional": false + "value": "abstractBaseMethod" }, "function": { "params": [], @@ -1010,9 +998,7 @@ "start": 794, "end": 812 }, - "ctxt": 0, - "value": "abstractBaseMethod", - "optional": false + "value": "abstractBaseMethod" } }, "arguments": [], @@ -1054,9 +1040,7 @@ "start": 828, "end": 839 }, - "ctxt": 0, - "value": "mixinMethod", - "optional": false + "value": "mixinMethod" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json index 6de3e4c905d3..ce649c231278 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinAbstractClassesReturnTypeInference.json @@ -102,9 +102,7 @@ "start": 133, "end": 151 }, - "ctxt": 0, - "value": "abstractBaseMethod", - "optional": false + "value": "abstractBaseMethod" }, "function": { "params": [], @@ -252,9 +250,7 @@ "start": 476, "end": 487 }, - "ctxt": 0, - "value": "mixinMethod", - "optional": false + "value": "mixinMethod" }, "function": { "params": [], @@ -311,9 +307,7 @@ "start": 514, "end": 531 }, - "ctxt": 0, - "value": "staticMixinMethod", - "optional": false + "value": "staticMixinMethod" }, "function": { "params": [], @@ -548,9 +542,7 @@ "start": 637, "end": 655 }, - "ctxt": 0, - "value": "abstractBaseMethod", - "optional": false + "value": "abstractBaseMethod" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json b/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json index 684d7386b7bf..8c58f93b9296 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinAccessModifiers.json @@ -127,9 +127,7 @@ "start": 95, "end": 106 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -209,9 +207,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -279,9 +275,7 @@ "start": 168, "end": 179 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -361,9 +355,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -431,9 +423,7 @@ "start": 242, "end": 253 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -513,9 +503,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -555,9 +543,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -625,9 +611,7 @@ "start": 348, "end": 359 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -707,9 +691,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -749,9 +731,7 @@ "start": 420, "end": 421 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -819,9 +799,7 @@ "start": 450, "end": 461 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -901,9 +879,7 @@ "start": 490, "end": 491 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -943,9 +919,7 @@ "start": 516, "end": 517 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -1013,9 +987,7 @@ "start": 547, "end": 558 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1095,9 +1067,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -1137,9 +1107,7 @@ "start": 613, "end": 614 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -1301,9 +1269,7 @@ "start": 667, "end": 668 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -1441,9 +1407,7 @@ "start": 773, "end": 774 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -1581,9 +1545,7 @@ "start": 876, "end": 877 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -1721,9 +1683,7 @@ "start": 985, "end": 986 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -1861,9 +1821,7 @@ "start": 1088, "end": 1089 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -2001,9 +1959,7 @@ "start": 1176, "end": 1177 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -2478,9 +2434,7 @@ "start": 1508, "end": 1509 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -2656,9 +2610,7 @@ "start": 1541, "end": 1542 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2690,9 +2642,7 @@ "start": 1549, "end": 1550 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2724,9 +2674,7 @@ "start": 1557, "end": 1558 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -2756,9 +2704,7 @@ "start": 1571, "end": 1572 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -2804,9 +2750,7 @@ "start": 1582, "end": 1583 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -2838,9 +2782,7 @@ "start": 1590, "end": 1591 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -2872,9 +2814,7 @@ "start": 1598, "end": 1599 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -2977,9 +2917,7 @@ "start": 1649, "end": 1650 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -3155,9 +3093,7 @@ "start": 1682, "end": 1683 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -3189,9 +3125,7 @@ "start": 1739, "end": 1740 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -3223,9 +3157,7 @@ "start": 1747, "end": 1748 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -3255,9 +3187,7 @@ "start": 1761, "end": 1762 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -3303,9 +3233,7 @@ "start": 1772, "end": 1773 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -3337,9 +3265,7 @@ "start": 1829, "end": 1830 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -3371,9 +3297,7 @@ "start": 1837, "end": 1838 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -3476,9 +3400,7 @@ "start": 1886, "end": 1887 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -3654,9 +3576,7 @@ "start": 1919, "end": 1920 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -3688,9 +3608,7 @@ "start": 1976, "end": 1977 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -3722,9 +3640,7 @@ "start": 1984, "end": 1985 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -3754,9 +3670,7 @@ "start": 1998, "end": 1999 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -3802,9 +3716,7 @@ "start": 2009, "end": 2010 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -3836,9 +3748,7 @@ "start": 2066, "end": 2067 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -3870,9 +3780,7 @@ "start": 2074, "end": 2075 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -3975,9 +3883,7 @@ "start": 2119, "end": 2132 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" }, "function": { "params": [], @@ -4020,9 +3926,7 @@ "start": 2149, "end": 2164 }, - "ctxt": 0, - "value": "protectedMethod", - "optional": false + "value": "protectedMethod" }, "function": { "params": [], @@ -4122,9 +4026,7 @@ "start": 2211, "end": 2224 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" }, "function": { "params": [], @@ -4167,9 +4069,7 @@ "start": 2241, "end": 2256 }, - "ctxt": 0, - "value": "protectedMethod", - "optional": false + "value": "protectedMethod" }, "function": { "params": [], @@ -4403,9 +4303,7 @@ "start": 2330, "end": 2343 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" } }, "arguments": [], @@ -4447,9 +4345,7 @@ "start": 2406, "end": 2421 }, - "ctxt": 0, - "value": "protectedMethod", - "optional": false + "value": "protectedMethod" } }, "arguments": [], @@ -4736,9 +4632,7 @@ "start": 2572, "end": 2585 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" } }, "arguments": [], @@ -4780,9 +4674,7 @@ "start": 2648, "end": 2663 }, - "ctxt": 0, - "value": "protectedMethod", - "optional": false + "value": "protectedMethod" } }, "arguments": [], @@ -5069,9 +4961,7 @@ "start": 2813, "end": 2826 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" } }, "arguments": [], @@ -5113,9 +5003,7 @@ "start": 2889, "end": 2904 }, - "ctxt": 0, - "value": "protectedMethod", - "optional": false + "value": "protectedMethod" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json index f623f282ec49..9f7621a582a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json @@ -167,9 +167,7 @@ "start": 90, "end": 101 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -297,9 +295,7 @@ "start": 177, "end": 188 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -643,9 +639,7 @@ "start": 467, "end": 474 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" }, "value": { "type": "StringLiteral", @@ -679,9 +673,7 @@ "start": 494, "end": 499 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -759,9 +751,7 @@ "start": 536, "end": 537 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -793,9 +783,7 @@ "start": 551, "end": 552 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1204,9 +1192,7 @@ "start": 737, "end": 741 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" }, "value": null, "typeAnnotation": { @@ -1247,9 +1233,7 @@ "start": 759, "end": 770 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1386,9 +1370,7 @@ "start": 834, "end": 838 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } }, "right": { @@ -1769,9 +1751,7 @@ "start": 965, "end": 972 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } }, @@ -1919,9 +1899,7 @@ "start": 1040, "end": 1041 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1953,9 +1931,7 @@ "start": 1053, "end": 1057 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } } } @@ -2110,9 +2086,7 @@ "start": 1127, "end": 1128 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2144,9 +2118,7 @@ "start": 1140, "end": 1144 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } } }, @@ -2185,9 +2157,7 @@ "start": 1156, "end": 1161 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], @@ -2234,9 +2204,7 @@ "start": 1202, "end": 1213 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2374,9 +2342,7 @@ "start": 1269, "end": 1273 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } }, "right": { @@ -2408,9 +2374,7 @@ "start": 1291, "end": 1295 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -2460,9 +2424,7 @@ "start": 1313, "end": 1318 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json index f92f4baecce5..31eaf422744e 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json @@ -167,9 +167,7 @@ "start": 67, "end": 78 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -297,9 +295,7 @@ "start": 154, "end": 165 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -578,9 +574,7 @@ "start": 342, "end": 349 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" }, "value": { "type": "StringLiteral", @@ -614,9 +608,7 @@ "start": 365, "end": 370 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" }, "function": { "params": [], @@ -694,9 +686,7 @@ "start": 403, "end": 404 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -728,9 +718,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -954,9 +942,7 @@ "start": 531, "end": 535 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" }, "value": null, "typeAnnotation": { @@ -997,9 +983,7 @@ "start": 553, "end": 564 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1136,9 +1120,7 @@ "start": 628, "end": 632 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } }, "right": { @@ -1442,9 +1424,7 @@ "start": 759, "end": 766 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } }, @@ -1592,9 +1572,7 @@ "start": 834, "end": 835 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1626,9 +1604,7 @@ "start": 847, "end": 851 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } } } @@ -1783,9 +1759,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1817,9 +1791,7 @@ "start": 934, "end": 938 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } } }, @@ -1858,9 +1830,7 @@ "start": 950, "end": 955 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], @@ -1907,9 +1877,7 @@ "start": 996, "end": 1007 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2047,9 +2015,7 @@ "start": 1063, "end": 1067 }, - "ctxt": 0, - "value": "_tag", - "optional": false + "value": "_tag" } }, "right": { @@ -2081,9 +2047,7 @@ "start": 1085, "end": 1089 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -2133,9 +2097,7 @@ "start": 1107, "end": 1112 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [], @@ -2279,9 +2241,7 @@ "start": 1255, "end": 1264 }, - "ctxt": 0, - "value": "timestamp", - "optional": false + "value": "timestamp" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json index 6bf578923825..b2536cdaae32 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json @@ -37,9 +37,7 @@ "start": 54, "end": 55 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -164,9 +158,7 @@ "start": 117, "end": 128 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -220,9 +212,7 @@ "start": 145, "end": 156 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -303,9 +293,7 @@ "start": 195, "end": 206 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -377,9 +365,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -419,9 +405,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -489,9 +473,7 @@ "start": 287, "end": 298 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -563,9 +545,7 @@ "start": 320, "end": 321 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -614,9 +594,7 @@ "start": 344, "end": 345 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -1829,9 +1807,7 @@ "start": 963, "end": 964 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1863,9 +1839,7 @@ "start": 972, "end": 973 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -1897,9 +1871,7 @@ "start": 986, "end": 987 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -2030,9 +2002,7 @@ "start": 1047, "end": 1048 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2064,9 +2034,7 @@ "start": 1056, "end": 1057 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2098,9 +2066,7 @@ "start": 1070, "end": 1071 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -2231,9 +2197,7 @@ "start": 1131, "end": 1132 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2265,9 +2229,7 @@ "start": 1140, "end": 1141 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2306,9 +2268,7 @@ "start": 1149, "end": 1150 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2343,9 +2303,7 @@ "start": 1165, "end": 1166 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2384,9 +2342,7 @@ "start": 1179, "end": 1180 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2520,9 +2476,7 @@ "start": 1242, "end": 1243 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2554,9 +2508,7 @@ "start": 1251, "end": 1252 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2595,9 +2547,7 @@ "start": 1260, "end": 1261 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2632,9 +2582,7 @@ "start": 1276, "end": 1277 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2673,9 +2621,7 @@ "start": 1290, "end": 1291 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2796,9 +2742,7 @@ "start": 1346, "end": 1347 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2837,9 +2781,7 @@ "start": 1355, "end": 1356 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2874,9 +2816,7 @@ "start": 1371, "end": 1372 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -2915,9 +2855,7 @@ "start": 1385, "end": 1386 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2964,9 +2902,7 @@ "start": 1423, "end": 1434 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3039,9 +2975,7 @@ "start": 1476, "end": 1477 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -3070,9 +3004,7 @@ "start": 1492, "end": 1493 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3101,9 +3033,7 @@ "start": 1508, "end": 1509 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -3161,9 +3091,7 @@ "start": 1550, "end": 1561 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3236,9 +3164,7 @@ "start": 1598, "end": 1599 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -3267,9 +3193,7 @@ "start": 1614, "end": 1615 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -3298,9 +3222,7 @@ "start": 1630, "end": 1631 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -3336,9 +3258,7 @@ "start": 1646, "end": 1647 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -3362,9 +3282,7 @@ "start": 1661, "end": 1662 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -3414,9 +3332,7 @@ "start": 1680, "end": 1681 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/modifierOnClassDeclarationMemberInFunction.json b/crates/swc_ecma_parser/tests/tsc/modifierOnClassDeclarationMemberInFunction.json index b4ec201918e2..e1dba1000930 100644 --- a/crates/swc_ecma_parser/tests/tsc/modifierOnClassDeclarationMemberInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/modifierOnClassDeclarationMemberInFunction.json @@ -65,9 +65,7 @@ "start": 68, "end": 71 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "NumericLiteral", @@ -101,9 +99,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -146,9 +142,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/modifierOnClassExpressionMemberInFunction.json b/crates/swc_ecma_parser/tests/tsc/modifierOnClassExpressionMemberInFunction.json index d1844a798b02..c24898bdd82c 100644 --- a/crates/swc_ecma_parser/tests/tsc/modifierOnClassExpressionMemberInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/modifierOnClassExpressionMemberInFunction.json @@ -91,9 +91,7 @@ "start": 98, "end": 103 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" }, "value": { "type": "NumericLiteral", @@ -127,9 +125,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -172,9 +168,7 @@ "start": 150, "end": 155 }, - "ctxt": 0, - "value": "prop2", - "optional": false + "value": "prop2" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json index 82c862c0d2d1..dbbd9dfd324f 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json @@ -68,9 +68,7 @@ "start": 88, "end": 93 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } } }, @@ -102,9 +100,7 @@ "start": 97, "end": 102 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } } }, @@ -136,9 +132,7 @@ "start": 106, "end": 111 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } } }, @@ -170,9 +164,7 @@ "start": 115, "end": 120 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } } }, @@ -204,9 +196,7 @@ "start": 124, "end": 129 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } } }, @@ -238,9 +228,7 @@ "start": 133, "end": 138 }, - "ctxt": 0, - "value": "func6", - "optional": false + "value": "func6" } } }, @@ -272,9 +260,7 @@ "start": 142, "end": 147 }, - "ctxt": 0, - "value": "func7", - "optional": false + "value": "func7" } } }, @@ -306,9 +292,7 @@ "start": 151, "end": 156 }, - "ctxt": 0, - "value": "func8", - "optional": false + "value": "func8" } } }, @@ -340,9 +324,7 @@ "start": 160, "end": 165 }, - "ctxt": 0, - "value": "func9", - "optional": false + "value": "func9" } } }, @@ -374,9 +356,7 @@ "start": 169, "end": 175 }, - "ctxt": 0, - "value": "func10", - "optional": false + "value": "func10" } } }, @@ -408,9 +388,7 @@ "start": 179, "end": 185 }, - "ctxt": 0, - "value": "func11", - "optional": false + "value": "func11" } } }, @@ -442,9 +420,7 @@ "start": 189, "end": 195 }, - "ctxt": 0, - "value": "func12", - "optional": false + "value": "func12" } } }, @@ -476,9 +452,7 @@ "start": 199, "end": 205 }, - "ctxt": 0, - "value": "func13", - "optional": false + "value": "func13" } } }, @@ -510,9 +484,7 @@ "start": 209, "end": 215 }, - "ctxt": 0, - "value": "func14", - "optional": false + "value": "func14" } } }, @@ -544,9 +516,7 @@ "start": 219, "end": 225 }, - "ctxt": 0, - "value": "func15", - "optional": false + "value": "func15" } } }, @@ -578,9 +548,7 @@ "start": 229, "end": 235 }, - "ctxt": 0, - "value": "func16", - "optional": false + "value": "func16" } } }, @@ -612,9 +580,7 @@ "start": 239, "end": 245 }, - "ctxt": 0, - "value": "func17", - "optional": false + "value": "func17" } } }, @@ -646,9 +612,7 @@ "start": 249, "end": 255 }, - "ctxt": 0, - "value": "func18", - "optional": false + "value": "func18" } } }, @@ -680,9 +644,7 @@ "start": 259, "end": 265 }, - "ctxt": 0, - "value": "func19", - "optional": false + "value": "func19" } } }, @@ -714,9 +676,7 @@ "start": 269, "end": 275 }, - "ctxt": 0, - "value": "func20", - "optional": false + "value": "func20" } } }, @@ -796,9 +756,7 @@ "start": 339, "end": 344 }, - "ctxt": 0, - "value": "func1", - "optional": false + "value": "func1" } }, "right": { @@ -862,9 +820,7 @@ "start": 372, "end": 377 }, - "ctxt": 0, - "value": "func2", - "optional": false + "value": "func2" } }, "right": { @@ -942,9 +898,7 @@ "start": 430, "end": 437 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "definite": false @@ -986,9 +940,7 @@ "start": 458, "end": 463 }, - "ctxt": 0, - "value": "func3", - "optional": false + "value": "func3" } }, "right": { @@ -1058,9 +1010,7 @@ "start": 490, "end": 497 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -1069,9 +1019,7 @@ "start": 498, "end": 503 }, - "ctxt": 0, - "value": "func4", - "optional": false + "value": "func4" } }, "right": { @@ -1167,9 +1115,7 @@ "start": 573, "end": 580 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1212,9 +1158,7 @@ "start": 608, "end": 613 }, - "ctxt": 0, - "value": "func5", - "optional": false + "value": "func5" } }, "right": { @@ -1299,9 +1243,7 @@ "start": 673, "end": 680 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -1354,9 +1296,7 @@ "start": 718, "end": 723 }, - "ctxt": 0, - "value": "func6", - "optional": false + "value": "func6" } }, "right": { @@ -1512,9 +1452,7 @@ "start": 854, "end": 859 }, - "ctxt": 0, - "value": "func7", - "optional": false + "value": "func7" } }, "right": { @@ -1610,9 +1548,7 @@ "start": 939, "end": 946 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -1655,9 +1591,7 @@ "start": 974, "end": 979 }, - "ctxt": 0, - "value": "func8", - "optional": false + "value": "func8" } }, "right": { @@ -1742,9 +1676,7 @@ "start": 1039, "end": 1046 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -1814,9 +1746,7 @@ "start": 1089, "end": 1094 }, - "ctxt": 0, - "value": "func9", - "optional": false + "value": "func9" } }, "right": { @@ -1919,9 +1849,7 @@ "start": 1164, "end": 1171 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -1973,9 +1901,7 @@ "start": 1204, "end": 1210 }, - "ctxt": 0, - "value": "func10", - "optional": false + "value": "func10" } }, "right": { @@ -2057,9 +1983,7 @@ "start": 1248, "end": 1255 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -2127,9 +2051,7 @@ "start": 1290, "end": 1296 }, - "ctxt": 0, - "value": "func11", - "optional": false + "value": "func11" } }, "right": { @@ -2199,9 +2121,7 @@ "start": 1323, "end": 1330 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -2210,9 +2130,7 @@ "start": 1331, "end": 1337 }, - "ctxt": 0, - "value": "func12", - "optional": false + "value": "func12" } }, "right": { @@ -2294,9 +2212,7 @@ "start": 1375, "end": 1382 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -2364,9 +2280,7 @@ "start": 1417, "end": 1423 }, - "ctxt": 0, - "value": "func11", - "optional": false + "value": "func11" } }, "right": { @@ -2436,9 +2350,7 @@ "start": 1450, "end": 1457 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -2447,9 +2359,7 @@ "start": 1458, "end": 1464 }, - "ctxt": 0, - "value": "func12", - "optional": false + "value": "func12" } }, "right": { @@ -2531,9 +2441,7 @@ "start": 1502, "end": 1509 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -2582,9 +2490,7 @@ "start": 1524, "end": 1530 }, - "ctxt": 0, - "value": "func13", - "optional": false + "value": "func13" } }, "right": { @@ -2654,9 +2560,7 @@ "start": 1557, "end": 1564 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -2665,9 +2569,7 @@ "start": 1565, "end": 1571 }, - "ctxt": 0, - "value": "func14", - "optional": false + "value": "func14" } }, "right": { @@ -2749,9 +2651,7 @@ "start": 1609, "end": 1616 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -2800,9 +2700,7 @@ "start": 1631, "end": 1637 }, - "ctxt": 0, - "value": "func15", - "optional": false + "value": "func15" } }, "right": { @@ -2872,9 +2770,7 @@ "start": 1664, "end": 1671 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -2883,9 +2779,7 @@ "start": 1672, "end": 1678 }, - "ctxt": 0, - "value": "func16", - "optional": false + "value": "func16" } }, "right": { @@ -2949,9 +2843,7 @@ "start": 1706, "end": 1713 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -3018,9 +2910,7 @@ "start": 1738, "end": 1744 }, - "ctxt": 0, - "value": "func17", - "optional": false + "value": "func17" } }, "right": { @@ -3090,9 +2980,7 @@ "start": 1771, "end": 1778 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -3101,9 +2989,7 @@ "start": 1779, "end": 1785 }, - "ctxt": 0, - "value": "func18", - "optional": false + "value": "func18" } }, "right": { @@ -3167,9 +3053,7 @@ "start": 1813, "end": 1820 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -3217,9 +3101,7 @@ "start": 1835, "end": 1841 }, - "ctxt": 0, - "value": "func19", - "optional": false + "value": "func19" } }, "right": { @@ -3289,9 +3171,7 @@ "start": 1868, "end": 1875 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -3300,9 +3180,7 @@ "start": 1876, "end": 1882 }, - "ctxt": 0, - "value": "func20", - "optional": false + "value": "func20" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json index d310d6e941cb..ce4aa7c132ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json @@ -260,9 +260,7 @@ "start": 263, "end": 270 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -313,9 +311,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -432,9 +428,7 @@ "start": 322, "end": 323 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -575,9 +569,7 @@ "start": 430, "end": 431 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias3.json index 1fcada0223ee..dd096140ce4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias3.json @@ -66,9 +66,7 @@ "start": 109, "end": 116 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json index f070a1564497..6609b5da30ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json @@ -104,9 +104,7 @@ "start": 111, "end": 118 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -177,9 +175,7 @@ "start": 139, "end": 146 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -188,9 +184,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias5.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias5.json index e698edd5855c..4bc8c0c789f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias5.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias5.json @@ -113,9 +113,7 @@ "start": 138, "end": 145 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -166,9 +164,7 @@ "start": 165, "end": 172 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "right": { @@ -217,9 +213,7 @@ "start": 190, "end": 213 }, - "ctxt": 0, - "value": "WebpackOptionsDefaulter", - "optional": false + "value": "WebpackOptionsDefaulter" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasExports.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasExports.json index 809554c45c79..72aba7ed9a1c 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasExports.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasExports.json @@ -77,9 +77,7 @@ "start": 169, "end": 175 }, - "ctxt": 0, - "value": "bigOak", - "optional": false + "value": "bigOak" } }, "right": { @@ -128,9 +126,7 @@ "start": 188, "end": 198 }, - "ctxt": 0, - "value": "everywhere", - "optional": false + "value": "everywhere" } }, "right": { @@ -179,9 +175,7 @@ "start": 210, "end": 217 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json index b26fd95ecb5f..633e0beed51d 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json @@ -40,9 +40,7 @@ "start": 126, "end": 133 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "right": { @@ -125,9 +123,7 @@ "start": 166, "end": 173 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasUnknown.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasUnknown.json index a7a6be722915..d2dae067b8af 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasUnknown.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasUnknown.json @@ -40,9 +40,7 @@ "start": 87, "end": 94 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -67,9 +65,7 @@ "start": 104, "end": 111 }, - "ctxt": 0, - "value": "nonprop", - "optional": false + "value": "nonprop" } } } @@ -109,9 +105,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json index 036a0c0842d2..94e187cd065b 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json @@ -37,9 +37,7 @@ "start": 122, "end": 124 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" }, "function": { "params": [ @@ -153,9 +151,7 @@ "start": 154, "end": 161 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -218,9 +214,7 @@ "start": 181, "end": 183 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" } }, "arguments": [ @@ -281,9 +275,7 @@ "start": 233, "end": 240 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -292,9 +284,7 @@ "start": 241, "end": 243 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" } }, "arguments": [ @@ -349,9 +339,7 @@ "start": 270, "end": 271 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -406,9 +394,7 @@ "start": 283, "end": 290 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -417,9 +403,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -461,9 +445,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -501,9 +483,7 @@ "start": 313, "end": 320 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -512,9 +492,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -610,9 +588,7 @@ "start": 385, "end": 386 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -644,9 +620,7 @@ "start": 394, "end": 396 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment2.json index 009ae5b20930..0db7c705eee5 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment2.json @@ -61,9 +61,7 @@ "start": 92, "end": 99 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -156,9 +154,7 @@ "start": 129, "end": 136 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -167,9 +163,7 @@ "start": 137, "end": 152 }, - "ctxt": 0, - "value": "asReadInstalled", - "optional": false + "value": "asReadInstalled" } }, "right": { @@ -286,9 +280,7 @@ "start": 236, "end": 243 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json index 4fdec731fac8..d709ca827a26 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json @@ -40,9 +40,7 @@ "start": 82, "end": 89 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -115,9 +113,7 @@ "start": 116, "end": 123 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json index a4900e32827e..57b0ecacf479 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json @@ -40,9 +40,7 @@ "start": 85, "end": 92 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { @@ -60,9 +58,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "NumericLiteral", @@ -82,9 +78,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -135,9 +129,7 @@ "start": 117, "end": 124 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment5.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment5.json index 35e4011ae37c..2d120785479a 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment5.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment5.json @@ -38,9 +38,7 @@ "start": 95, "end": 106 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -67,9 +65,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -193,9 +189,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -237,9 +231,7 @@ "start": 236, "end": 243 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -295,9 +287,7 @@ "start": 260, "end": 267 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -306,9 +296,7 @@ "start": 268, "end": 275 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment6.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment6.json index 9ce146ab143f..ff5d5e9b1851 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment6.json @@ -38,9 +38,7 @@ "start": 137, "end": 148 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -103,9 +101,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -152,9 +148,7 @@ "start": 186, "end": 193 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -198,9 +192,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -270,9 +262,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -428,9 +418,7 @@ "start": 346, "end": 353 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } } @@ -583,9 +571,7 @@ "start": 552, "end": 559 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json index c901978280be..db8325a80f30 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json @@ -37,9 +37,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -268,9 +264,7 @@ "start": 226, "end": 233 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -318,9 +312,7 @@ "start": 280, "end": 283 }, - "ctxt": 0, - "value": "qux", - "optional": false + "value": "qux" }, "value": { "type": "Identifier", @@ -341,9 +333,7 @@ "start": 294, "end": 297 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "params": [], "decorators": [], @@ -391,9 +381,7 @@ "start": 318, "end": 325 }, - "ctxt": 0, - "value": "literal", - "optional": false + "value": "literal" }, "value": { "type": "StringLiteral", @@ -641,9 +629,7 @@ "start": 669, "end": 670 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -668,9 +654,7 @@ "start": 675, "end": 676 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -780,9 +764,7 @@ "start": 705, "end": 711 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1026,9 +1008,7 @@ "start": 1079, "end": 1085 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1053,9 +1033,7 @@ "start": 1090, "end": 1096 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -1165,9 +1143,7 @@ "start": 1125, "end": 1131 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1642,9 +1618,7 @@ "start": 1403, "end": 1404 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1669,9 +1643,7 @@ "start": 1409, "end": 1410 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1781,9 +1753,7 @@ "start": 1439, "end": 1445 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2314,9 +2284,7 @@ "start": 1743, "end": 1749 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -2341,9 +2309,7 @@ "start": 1754, "end": 1760 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -2453,9 +2419,7 @@ "start": 1789, "end": 1795 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json index ca75ae64aa6e..85411c9f944b 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json @@ -40,9 +40,7 @@ "start": 131, "end": 136 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -126,9 +124,7 @@ "start": 175, "end": 180 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [], @@ -170,9 +166,7 @@ "start": 191, "end": 196 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -222,9 +216,7 @@ "start": 210, "end": 215 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json index a9af7d2f95e7..9fb1fe7d16bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json @@ -46,9 +46,7 @@ "start": 130, "end": 137 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -57,9 +55,7 @@ "start": 138, "end": 143 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -149,9 +145,7 @@ "start": 181, "end": 188 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -160,9 +154,7 @@ "start": 189, "end": 194 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -218,9 +210,7 @@ "start": 207, "end": 214 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -229,9 +219,7 @@ "start": 215, "end": 220 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -287,9 +275,7 @@ "start": 233, "end": 240 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -298,9 +284,7 @@ "start": 241, "end": 246 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json index 642fbdb4268a..505aee9275a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json @@ -40,9 +40,7 @@ "start": 131, "end": 136 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -92,9 +90,7 @@ "start": 158, "end": 163 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -178,9 +174,7 @@ "start": 202, "end": 207 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -230,9 +224,7 @@ "start": 221, "end": 226 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [], @@ -274,9 +266,7 @@ "start": 237, "end": 242 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -352,9 +342,7 @@ "start": 267, "end": 272 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "property": { @@ -363,9 +351,7 @@ "start": 273, "end": 284 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -410,9 +396,7 @@ "start": 295, "end": 300 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "right": { @@ -565,9 +549,7 @@ "start": 412, "end": 419 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json b/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json index c2fae91418b2..bb5596401628 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json @@ -46,9 +46,7 @@ "start": 83, "end": 90 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -57,9 +55,7 @@ "start": 91, "end": 92 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -119,9 +115,7 @@ "start": 106, "end": 113 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -130,9 +124,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -141,9 +133,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "right": { @@ -205,9 +195,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -271,9 +259,7 @@ "start": 161, "end": 168 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -282,9 +268,7 @@ "start": 169, "end": 176 }, - "ctxt": 0, - "value": "Classic", - "optional": false + "value": "Classic" } }, "right": { @@ -310,9 +294,7 @@ "start": 191, "end": 202 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -355,9 +337,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -485,9 +465,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -496,9 +474,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "K", - "optional": false + "value": "K" } }, "arguments": [], @@ -536,9 +512,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -598,9 +572,7 @@ "start": 328, "end": 335 }, - "ctxt": 0, - "value": "Classic", - "optional": false + "value": "Classic" } }, "arguments": [], @@ -705,9 +677,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -739,9 +709,7 @@ "start": 440, "end": 441 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportPropertyAssignmentDefault.json b/crates/swc_ecma_parser/tests/tsc/moduleExportPropertyAssignmentDefault.json index c878efab9566..46ffa89662ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportPropertyAssignmentDefault.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportPropertyAssignmentDefault.json @@ -79,9 +79,7 @@ "start": 100, "end": 107 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -137,9 +135,7 @@ "start": 156, "end": 163 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -148,9 +144,7 @@ "start": 164, "end": 171 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json index 122c0ecb3a94..1435a1628462 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json @@ -196,9 +196,7 @@ "start": 235, "end": 242 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -268,9 +266,7 @@ "start": 293, "end": 300 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -279,9 +275,7 @@ "start": 301, "end": 302 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -456,9 +450,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json index c34c964618e8..8bc7023b61ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json @@ -196,9 +196,7 @@ "start": 235, "end": 242 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -253,9 +251,7 @@ "start": 254, "end": 261 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -264,9 +260,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -394,9 +388,7 @@ "start": 377, "end": 384 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [ @@ -451,9 +443,7 @@ "start": 394, "end": 395 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json index fb20fba10d53..aea0736acc32 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json @@ -202,9 +202,7 @@ "start": 235, "end": 242 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -213,9 +211,7 @@ "start": 243, "end": 253 }, - "ctxt": 0, - "value": "bothBefore", - "optional": false + "value": "bothBefore" } }, "right": { @@ -264,9 +260,7 @@ "start": 272, "end": 279 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -284,9 +278,7 @@ "start": 288, "end": 298 }, - "ctxt": 0, - "value": "justExport", - "optional": false + "value": "justExport" }, "value": { "type": "NumericLiteral", @@ -306,9 +298,7 @@ "start": 307, "end": 317 }, - "ctxt": 0, - "value": "bothBefore", - "optional": false + "value": "bothBefore" }, "value": { "type": "NumericLiteral", @@ -328,9 +318,7 @@ "start": 326, "end": 335 }, - "ctxt": 0, - "value": "bothAfter", - "optional": false + "value": "bothAfter" }, "value": { "type": "NumericLiteral", @@ -387,9 +375,7 @@ "start": 349, "end": 356 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -398,9 +384,7 @@ "start": 357, "end": 366 }, - "ctxt": 0, - "value": "bothAfter", - "optional": false + "value": "bothAfter" } }, "right": { @@ -455,9 +439,7 @@ "start": 385, "end": 392 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -466,9 +448,7 @@ "start": 393, "end": 405 }, - "ctxt": 0, - "value": "justProperty", - "optional": false + "value": "justProperty" } }, "right": { @@ -587,9 +567,7 @@ "start": 512, "end": 522 }, - "ctxt": 0, - "value": "justExport", - "optional": false + "value": "justExport" } }, "property": { @@ -598,9 +576,7 @@ "start": 523, "end": 530 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -648,9 +624,7 @@ "start": 538, "end": 548 }, - "ctxt": 0, - "value": "bothBefore", - "optional": false + "value": "bothBefore" } }, "property": { @@ -659,9 +633,7 @@ "start": 549, "end": 556 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -709,9 +681,7 @@ "start": 609, "end": 618 }, - "ctxt": 0, - "value": "bothAfter", - "optional": false + "value": "bothAfter" } }, "property": { @@ -720,9 +690,7 @@ "start": 619, "end": 626 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -763,9 +731,7 @@ "start": 679, "end": 691 }, - "ctxt": 0, - "value": "justProperty", - "optional": false + "value": "justProperty" } }, "property": { @@ -774,9 +740,7 @@ "start": 692, "end": 698 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json index e45ad45768f2..e6a076d95c58 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json @@ -202,9 +202,7 @@ "start": 235, "end": 242 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -213,9 +211,7 @@ "start": 243, "end": 253 }, - "ctxt": 0, - "value": "bothBefore", - "optional": false + "value": "bothBefore" } }, "right": { @@ -264,9 +260,7 @@ "start": 267, "end": 277 }, - "ctxt": 0, - "value": "justExport", - "optional": false + "value": "justExport" } }, "right": { @@ -315,9 +309,7 @@ "start": 284, "end": 294 }, - "ctxt": 0, - "value": "bothBefore", - "optional": false + "value": "bothBefore" } }, "right": { @@ -366,9 +358,7 @@ "start": 301, "end": 310 }, - "ctxt": 0, - "value": "bothAfter", - "optional": false + "value": "bothAfter" } }, "right": { @@ -417,9 +407,7 @@ "start": 322, "end": 329 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -494,9 +482,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -558,9 +544,7 @@ "start": 373, "end": 380 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -569,9 +553,7 @@ "start": 381, "end": 390 }, - "ctxt": 0, - "value": "bothAfter", - "optional": false + "value": "bothAfter" } }, "right": { @@ -626,9 +608,7 @@ "start": 409, "end": 416 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -637,9 +617,7 @@ "start": 417, "end": 429 }, - "ctxt": 0, - "value": "justProperty", - "optional": false + "value": "justProperty" } }, "right": { @@ -758,9 +736,7 @@ "start": 536, "end": 546 }, - "ctxt": 0, - "value": "justExport", - "optional": false + "value": "justExport" } }, "property": { @@ -769,9 +745,7 @@ "start": 547, "end": 554 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -819,9 +793,7 @@ "start": 562, "end": 572 }, - "ctxt": 0, - "value": "bothBefore", - "optional": false + "value": "bothBefore" } }, "property": { @@ -830,9 +802,7 @@ "start": 573, "end": 580 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -880,9 +850,7 @@ "start": 597, "end": 606 }, - "ctxt": 0, - "value": "bothAfter", - "optional": false + "value": "bothAfter" } }, "property": { @@ -891,9 +859,7 @@ "start": 607, "end": 614 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -934,9 +900,7 @@ "start": 622, "end": 634 }, - "ctxt": 0, - "value": "justProperty", - "optional": false + "value": "justProperty" } }, "property": { @@ -945,9 +909,7 @@ "start": 635, "end": 641 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop1.json b/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop1.json index 5a1f34b5d890..c762b815b21e 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop1.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop1.json @@ -40,9 +40,7 @@ "start": 81, "end": 84 }, - "ctxt": 0, - "value": "fn1", - "optional": false + "value": "fn1" } }, "arguments": [], @@ -84,9 +82,7 @@ "start": 96, "end": 99 }, - "ctxt": 0, - "value": "fn2", - "optional": false + "value": "fn2" } }, "right": { @@ -111,9 +107,7 @@ "start": 107, "end": 110 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop2.json index a251ee36ad61..420906452284 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportsAliasLoop2.json @@ -47,9 +47,7 @@ "start": 87, "end": 90 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" }, "value": { "type": "NumericLiteral", @@ -102,9 +100,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "fn1", - "optional": false + "value": "fn1" } }, "arguments": [], @@ -146,9 +142,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "fn2", - "optional": false + "value": "fn2" } }, "right": { @@ -173,9 +167,7 @@ "start": 130, "end": 133 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json index fabcb888b864..a33096fdc328 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json @@ -40,9 +40,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -60,9 +58,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -139,9 +135,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -218,9 +212,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -277,9 +269,7 @@ "start": 219, "end": 226 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -314,9 +304,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -492,9 +480,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -600,9 +586,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -634,9 +618,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -668,9 +650,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -702,9 +682,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -742,9 +720,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "property": { @@ -753,9 +729,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } }, @@ -787,9 +761,7 @@ "start": 407, "end": 414 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json index 5564eafa9077..24f686a0e305 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json @@ -47,9 +47,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -317,9 +315,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json index 2054a345df88..841f05fb1427 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json @@ -61,9 +61,7 @@ "start": 156, "end": 160 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json index 7012debbbdb2..be4686a063eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json @@ -61,9 +61,7 @@ "start": 155, "end": 159 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/moduleScoping.json b/crates/swc_ecma_parser/tests/tsc/moduleScoping.json index 2cb4bf1a49cd..ecd3fc8a732e 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleScoping.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleScoping.json @@ -426,9 +426,7 @@ "start": 347, "end": 349 }, - "ctxt": 0, - "value": "v3", - "optional": false + "value": "v3" } }, "definite": false @@ -477,9 +475,7 @@ "start": 361, "end": 362 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -498,9 +494,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json b/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json index cd66496b7f37..25c4ccbe4bdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json @@ -62,9 +62,7 @@ "start": 26, "end": 27 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -304,9 +300,7 @@ "start": 141, "end": 143 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -417,9 +411,7 @@ "start": 190, "end": 192 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -550,9 +542,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -1011,9 +1001,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", @@ -1033,9 +1021,7 @@ "start": 489, "end": 491 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -1055,9 +1041,7 @@ "start": 496, "end": 503 }, - "ctxt": 0, - "value": "isvalid", - "optional": false + "value": "isvalid" }, "value": { "type": "BooleanLiteral", @@ -1106,9 +1090,7 @@ "start": 552, "end": 553 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1209,9 +1191,7 @@ "start": 604, "end": 605 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -1285,9 +1265,7 @@ "start": 641, "end": 642 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -1472,9 +1450,7 @@ "start": 740, "end": 742 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -1592,9 +1568,7 @@ "start": 796, "end": 798 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -1732,9 +1706,7 @@ "start": 860, "end": 861 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -2235,9 +2207,7 @@ "start": 1132, "end": 1133 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", @@ -2257,9 +2227,7 @@ "start": 1144, "end": 1146 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -2279,9 +2247,7 @@ "start": 1151, "end": 1158 }, - "ctxt": 0, - "value": "isvalid", - "optional": false + "value": "isvalid" }, "value": { "type": "BooleanLiteral", @@ -2337,9 +2303,7 @@ "start": 1214, "end": 1215 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json b/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json index 40603704a75e..10b97b010254 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json @@ -65,9 +65,7 @@ "start": 89, "end": 90 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -127,9 +125,7 @@ "start": 103, "end": 112 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -138,9 +134,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -193,9 +187,7 @@ "start": 139, "end": 146 }, - "ctxt": 0, - "value": "nothing", - "optional": false + "value": "nothing" } }, "arguments": [], @@ -244,9 +236,7 @@ "start": 166, "end": 177 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -289,9 +279,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -326,9 +314,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "property": { @@ -337,9 +323,7 @@ "start": 206, "end": 210 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -390,9 +374,7 @@ "start": 231, "end": 238 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" } }, "right": { @@ -423,9 +405,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -468,9 +448,7 @@ "start": 297, "end": 304 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" }, "function": { "params": [], @@ -600,9 +578,7 @@ "start": 336, "end": 345 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -611,9 +587,7 @@ "start": 346, "end": 353 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" } }, "right": { @@ -661,9 +635,7 @@ "start": 365, "end": 366 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -698,9 +670,7 @@ "start": 372, "end": 379 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" } } }, @@ -736,9 +706,7 @@ "start": 395, "end": 402 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" }, "function": { "params": [], @@ -781,9 +749,7 @@ "start": 417, "end": 418 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -827,9 +793,7 @@ "start": 433, "end": 444 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -872,9 +836,7 @@ "start": 462, "end": 463 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -909,9 +871,7 @@ "start": 471, "end": 472 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "property": { @@ -920,9 +880,7 @@ "start": 473, "end": 477 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -973,9 +931,7 @@ "start": 498, "end": 505 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" } }, "right": { @@ -1042,9 +998,7 @@ "start": 540, "end": 549 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1053,9 +1007,7 @@ "start": 550, "end": 557 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" } }, "right": { @@ -1154,9 +1106,7 @@ "start": 585, "end": 586 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1198,9 +1148,7 @@ "start": 592, "end": 599 }, - "ctxt": 0, - "value": "mistake", - "optional": false + "value": "mistake" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json index 10472b12e18e..11f2bd27c5e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json @@ -66,9 +66,7 @@ "start": 62, "end": 66 }, - "ctxt": 0, - "value": "uhoh", - "optional": false + "value": "uhoh" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json index 434a3236dabc..ef5ed5731fdf 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json @@ -26,9 +26,7 @@ "start": 22, "end": 26 }, - "ctxt": 0, - "value": "uhoh", - "optional": false + "value": "uhoh" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json index 0269949755a1..6f4d2b99a8e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json @@ -26,9 +26,7 @@ "start": 22, "end": 26 }, - "ctxt": 0, - "value": "uhoh", - "optional": false + "value": "uhoh" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json index f6a79827ae9e..1a9a627c4796 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json @@ -58,9 +58,7 @@ "start": 50, "end": 54 }, - "ctxt": 0, - "value": "uhoh", - "optional": false + "value": "uhoh" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault6.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault6.json index 390481eb0a2a..34b5f65a4365 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault6.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault6.json @@ -26,9 +26,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "lol", - "optional": false + "value": "lol" }, "value": { "type": "NumericLiteral", @@ -64,9 +62,7 @@ "start": 53, "end": 56 }, - "ctxt": 0, - "value": "lol", - "optional": false + "value": "lol" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json b/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json index 3cab89ec41b3..ad7459165674 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json @@ -573,9 +573,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nameCollision.json b/crates/swc_ecma_parser/tests/tsc/nameCollision.json index 5b788850a33c..ea4ae7fce1f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameCollision.json +++ b/crates/swc_ecma_parser/tests/tsc/nameCollision.json @@ -238,9 +238,7 @@ "start": 294, "end": 298 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json b/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json index 059b3deec7a0..73aa3ef675b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json +++ b/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json @@ -143,9 +143,7 @@ "start": 145, "end": 148 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json b/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json index a883bc9b429f..2d97d3115828 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json +++ b/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json @@ -143,9 +143,7 @@ "start": 138, "end": 141 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json b/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json index 3c30769096ad..52ecf16f94fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json +++ b/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json @@ -330,9 +330,7 @@ "start": 363, "end": 365 }, - "ctxt": 0, - "value": "M2", - "optional": false + "value": "M2" } }, "property": { @@ -341,9 +339,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "consequent": { @@ -410,9 +406,7 @@ "start": 384, "end": 387 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -444,9 +438,7 @@ "start": 395, "end": 396 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json b/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json index 1ad4bb3ed4e8..34b44d47f308 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json @@ -40,9 +40,7 @@ "start": 143, "end": 150 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -160,9 +158,7 @@ "start": 215, "end": 225 }, - "ctxt": 0, - "value": "assignment", - "optional": false + "value": "assignment" } }, "property": { @@ -171,9 +167,7 @@ "start": 226, "end": 232 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "right": { @@ -221,9 +215,7 @@ "start": 242, "end": 249 }, - "ctxt": 0, - "value": "noError", - "optional": false + "value": "noError" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json index b836dffea9b6..9d9edbaf1147 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json @@ -179,6 +179,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 135, + "end": 142 + }, "left": { "type": "Identifier", "span": { @@ -195,9 +199,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeArguments": null @@ -248,6 +250,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 158, + "end": 165 + }, "left": { "type": "Identifier", "span": { @@ -264,9 +270,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeArguments": null @@ -344,9 +348,7 @@ "start": 287, "end": 288 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" }, "value": { "type": "TsAsExpression", @@ -382,9 +384,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": { "type": "TsAsExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json index c73a7993f79f..3653f4efae67 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json @@ -319,9 +319,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" }, "value": { "type": "TsAsExpression", @@ -357,9 +355,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": { "type": "TsAsExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json index 422f0527bd66..e00318d25041 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json @@ -260,9 +260,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" }, "value": { "type": "TsAsExpression", @@ -298,9 +296,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": { "type": "TsAsExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json index f23f7d26873c..73552849d997 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json @@ -255,9 +255,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" }, "value": { "type": "TsAsExpression", @@ -293,9 +291,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" }, "value": { "type": "TsAsExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json b/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json index eb90a4a15e49..4492eb6cbfdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -171,9 +169,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json b/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json index 5c23b0267035..ce522d79e2ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json @@ -321,9 +321,7 @@ "start": 253, "end": 262 }, - "ctxt": 0, - "value": "dontPanic", - "optional": false + "value": "dontPanic" } }, "arguments": [], @@ -365,9 +363,7 @@ "start": 288, "end": 295 }, - "ctxt": 0, - "value": "doPanic", - "optional": false + "value": "doPanic" } }, "arguments": [], @@ -446,9 +442,7 @@ "start": 427, "end": 434 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } }, @@ -480,9 +474,7 @@ "start": 452, "end": 459 }, - "ctxt": 0, - "value": "massage", - "optional": false + "value": "massage" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json index eea5a19460fa..3c998e9bb1c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json @@ -252,9 +252,7 @@ "start": 155, "end": 159 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -339,9 +337,7 @@ "start": 251, "end": 257 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -449,9 +445,7 @@ "start": 366, "end": 373 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } }, @@ -483,9 +477,7 @@ "start": 381, "end": 387 }, - "ctxt": 0, - "value": "mesage", - "optional": false + "value": "mesage" } } } @@ -570,9 +562,7 @@ "start": 423, "end": 430 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -614,9 +604,7 @@ "start": 440, "end": 448 }, - "ctxt": 0, - "value": "getHuors", - "optional": false + "value": "getHuors" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json index ca0cc6ed4053..a14d3d546bb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json @@ -723,9 +723,7 @@ "start": 359, "end": 363 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -816,9 +814,7 @@ "start": 447, "end": 453 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -939,9 +935,7 @@ "start": 572, "end": 578 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -1055,9 +1049,7 @@ "start": 619, "end": 626 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } }, @@ -1089,9 +1081,7 @@ "start": 634, "end": 640 }, - "ctxt": 0, - "value": "mesage", - "optional": false + "value": "mesage" } } } @@ -1182,9 +1172,7 @@ "start": 668, "end": 675 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -1226,9 +1214,7 @@ "start": 685, "end": 693 }, - "ctxt": 0, - "value": "getHuors", - "optional": false + "value": "getHuors" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json b/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json index a89dcb64d4d8..e5add7f08872 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowingConstrainedTypeVariable.json @@ -798,9 +798,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json b/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json index 1583ce1458d4..1af5b3fcf9b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowingGenericTypeFromInstanceof01.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithBooleanType.json index e36960a96bc3..222185a65298 100644 --- a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 359, "end": 360 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 523, "end": 526 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -988,9 +974,7 @@ "start": 605, "end": 606 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1030,9 +1014,7 @@ "start": 611, "end": 612 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json index 00c8cc1b89b0..2d6128c6a3fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json @@ -303,9 +303,7 @@ "start": 197, "end": 198 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithNumberType.json index fdc088eb97ee..f63fa71d068f 100644 --- a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 539, "end": 540 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 567, "end": 568 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 661, "end": 664 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1408,9 +1390,7 @@ "start": 778, "end": 779 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1450,9 +1430,7 @@ "start": 784, "end": 785 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1499,9 +1477,7 @@ "start": 793, "end": 794 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1527,9 +1503,7 @@ "start": 798, "end": 799 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json index 806a6bea3873..c14bd5d0bc75 100644 --- a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 173, "end": 176 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 456, "end": 457 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 554, "end": 555 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 676, "end": 679 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 757, "end": 763 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1504,9 +1484,7 @@ "start": 836, "end": 837 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1532,9 +1510,7 @@ "start": 840, "end": 841 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json b/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json index 53cea0f6cb06..d11f4bff6721 100644 --- a/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json +++ b/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json @@ -47,9 +47,7 @@ "start": 118, "end": 122 }, - "ctxt": 0, - "value": "grey", - "optional": false + "value": "grey" }, "value": { "type": "ObjectExpression", @@ -107,9 +105,7 @@ "start": 137, "end": 144 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -118,9 +114,7 @@ "start": 145, "end": 150 }, - "ctxt": 0, - "value": "chalk", - "optional": false + "value": "chalk" } }, "right": { @@ -166,9 +160,7 @@ "start": 194, "end": 199 }, - "ctxt": 0, - "value": "chalk", - "optional": false + "value": "chalk" }, "value": { "type": "ObjectPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/nestedModules.json b/crates/swc_ecma_parser/tests/tsc/nestedModules.json index 746ff672dcfc..63ff03a6ebbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/nestedModules.json +++ b/crates/swc_ecma_parser/tests/tsc/nestedModules.json @@ -272,6 +272,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 144, + "end": 151 + }, "left": { "type": "Identifier", "span": { @@ -288,9 +292,7 @@ "start": 146, "end": 151 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -312,9 +314,7 @@ "start": 156, "end": 157 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -334,9 +334,7 @@ "start": 162, "end": 163 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -679,9 +677,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "definite": false @@ -783,9 +779,7 @@ "start": 426, "end": 431 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "definite": false @@ -948,8 +942,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 474, + "end": 484 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 474, + "end": 478 + }, "left": { "type": "Identifier", "span": { @@ -966,9 +968,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "right": { @@ -977,9 +977,7 @@ "start": 479, "end": 484 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json b/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json index 9b89758282e2..71a2f6ef2b95 100644 --- a/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json @@ -164,9 +164,7 @@ "start": 140, "end": 145 }, - "ctxt": 0, - "value": "types", - "optional": false + "value": "types" } }, "property": { @@ -175,9 +173,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/nestedPrototypeAssignment.json b/crates/swc_ecma_parser/tests/tsc/nestedPrototypeAssignment.json index 9dd5b70490b6..38796f37fef8 100644 --- a/crates/swc_ecma_parser/tests/tsc/nestedPrototypeAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/nestedPrototypeAssignment.json @@ -40,9 +40,7 @@ "start": 132, "end": 141 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -102,9 +100,7 @@ "start": 149, "end": 158 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -113,9 +109,7 @@ "start": 159, "end": 162 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -124,9 +118,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/neverInference.json b/crates/swc_ecma_parser/tests/tsc/neverInference.json index 6ce22342f053..b59bda99a626 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverInference.json +++ b/crates/swc_ecma_parser/tests/tsc/neverInference.json @@ -1655,9 +1655,7 @@ "start": 702, "end": 706 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ @@ -1826,9 +1824,7 @@ "start": 748, "end": 752 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json b/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json index 5259ee31ef5f..bd2e2a2924af 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json +++ b/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json @@ -312,9 +312,7 @@ "start": 244, "end": 250 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -905,9 +903,7 @@ "start": 595, "end": 601 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1647,9 +1643,7 @@ "start": 1033, "end": 1037 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } }, "arguments": [ @@ -1699,9 +1693,7 @@ "start": 1067, "end": 1073 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1861,9 +1853,7 @@ "start": 1159, "end": 1163 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } }, "arguments": [ @@ -2035,9 +2025,7 @@ "start": 1264, "end": 1268 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } }, "arguments": [], @@ -2195,9 +2183,7 @@ "start": 1355, "end": 1359 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } } }, @@ -2261,9 +2247,7 @@ "start": 1407, "end": 1411 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" }, "function": { "params": [ @@ -2396,9 +2380,7 @@ "start": 1483, "end": 1485 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [ @@ -2533,9 +2515,7 @@ "start": 1545, "end": 1549 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } }, "arguments": [ @@ -2585,9 +2565,7 @@ "start": 1583, "end": 1589 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2617,9 +2595,7 @@ "start": 1612, "end": 1614 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" }, "function": { "params": [ @@ -2755,9 +2731,7 @@ "start": 1679, "end": 1683 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } }, "arguments": [ @@ -2834,9 +2808,7 @@ "start": 1741, "end": 1743 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "function": { "params": [ @@ -2937,9 +2909,7 @@ "start": 1792, "end": 1796 }, - "ctxt": 0, - "value": "fail", - "optional": false + "value": "fail" } }, "arguments": [], @@ -3569,9 +3539,7 @@ "start": 2351, "end": 2352 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -3665,9 +3633,7 @@ "start": 2424, "end": 2425 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3720,9 +3686,7 @@ "start": 2491, "end": 2492 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -6432,9 +6396,7 @@ "start": 4191, "end": 4197 }, - "ctxt": 0, - "value": "schema", - "optional": false + "value": "schema" }, "value": { "type": "ObjectExpression", @@ -6451,9 +6413,7 @@ "start": 4203, "end": 4213 }, - "ctxt": 0, - "value": "myProperty", - "optional": false + "value": "myProperty" }, "value": { "type": "ObjectExpression", @@ -6470,9 +6430,7 @@ "start": 4220, "end": 4227 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "ArrayExpression", @@ -6491,9 +6449,7 @@ "start": 4236, "end": 4241 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" }, "params": [], "decorators": [], @@ -6555,9 +6511,7 @@ "start": 4277, "end": 4283 }, - "ctxt": 0, - "value": "string", - "optional": false + "value": "string" }, "value": { "type": "ObjectExpression", @@ -6574,9 +6528,7 @@ "start": 4287, "end": 4291 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -6599,9 +6551,7 @@ "start": 4307, "end": 4310 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" }, "value": { "type": "NumericLiteral", @@ -6624,9 +6574,7 @@ "start": 4319, "end": 4323 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" }, "params": [], "decorators": [], @@ -6681,9 +6629,7 @@ "start": 4335, "end": 4339 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -6692,9 +6638,7 @@ "start": 4340, "end": 4343 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } }, "right": { @@ -6746,9 +6690,7 @@ "start": 4356, "end": 4358 }, - "ctxt": 0, - "value": "el", - "optional": false + "value": "el" } }, "property": { @@ -6757,9 +6699,7 @@ "start": 4359, "end": 4371 }, - "ctxt": 0, - "value": "setAttribute", - "optional": false + "value": "setAttribute" } }, "arguments": [ @@ -6806,9 +6746,7 @@ "start": 4414, "end": 4420 }, - "ctxt": 0, - "value": "update", - "optional": false + "value": "update" }, "params": [], "decorators": [], @@ -6839,9 +6777,7 @@ "start": 4428, "end": 4432 }, - "ctxt": 0, - "value": "tick", - "optional": false + "value": "tick" }, "params": [], "decorators": [], @@ -6872,9 +6808,7 @@ "start": 4440, "end": 4446 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "params": [], "decorators": [], @@ -6905,9 +6839,7 @@ "start": 4454, "end": 4459 }, - "ctxt": 0, - "value": "pause", - "optional": false + "value": "pause" }, "params": [], "decorators": [], @@ -6938,9 +6870,7 @@ "start": 4467, "end": 4471 }, - "ctxt": 0, - "value": "play", - "optional": false + "value": "play" }, "params": [], "decorators": [], @@ -6971,9 +6901,7 @@ "start": 4480, "end": 4488 }, - "ctxt": 0, - "value": "multiply", - "optional": false + "value": "multiply" }, "params": [ { @@ -7079,9 +7007,7 @@ "start": 4594, "end": 4598 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -7090,9 +7016,7 @@ "start": 4599, "end": 4602 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } } }, @@ -7133,9 +7057,7 @@ "start": 4610, "end": 4616 }, - "ctxt": 0, - "value": "system", - "optional": false + "value": "system" } } }, @@ -7145,9 +7067,7 @@ "start": 4618, "end": 4622 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -7156,9 +7076,7 @@ "start": 4623, "end": 4630 }, - "ctxt": 0, - "value": "counter", - "optional": false + "value": "counter" } } } @@ -7212,9 +7130,7 @@ "start": 4686, "end": 4691 }, - "ctxt": 0, - "value": "throw", - "optional": false + "value": "throw" }, "function": { "params": [], @@ -7326,9 +7242,7 @@ "start": 4786, "end": 4789 }, - "ctxt": 0, - "value": "err", - "optional": false + "value": "err" }, "function": { "params": [ @@ -7412,9 +7326,7 @@ "start": 4826, "end": 4831 }, - "ctxt": 0, - "value": "throw", - "optional": false + "value": "throw" } }, "arguments": [], @@ -7461,9 +7373,7 @@ "start": 4844, "end": 4846 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" }, "function": { "params": [], @@ -7513,9 +7423,7 @@ "start": 4871, "end": 4876 }, - "ctxt": 0, - "value": "throw", - "optional": false + "value": "throw" } }, "arguments": [], @@ -7879,9 +7787,7 @@ "start": 5079, "end": 5084 }, - "ctxt": 0, - "value": "panic", - "optional": false + "value": "panic" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/neverType.json b/crates/swc_ecma_parser/tests/tsc/neverType.json index 2d818fe3268f..e3c871bbbb20 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverType.json +++ b/crates/swc_ecma_parser/tests/tsc/neverType.json @@ -1286,9 +1286,7 @@ "start": 955, "end": 960 }, - "ctxt": 0, - "value": "void1", - "optional": false + "value": "void1" }, "function": { "params": [], @@ -1359,9 +1357,7 @@ "start": 1002, "end": 1007 }, - "ctxt": 0, - "value": "void2", - "optional": false + "value": "void2" }, "function": { "params": [], @@ -1429,9 +1425,7 @@ "start": 1046, "end": 1052 }, - "ctxt": 0, - "value": "never1", - "optional": false + "value": "never1" }, "function": { "params": [], @@ -1516,9 +1510,7 @@ "start": 1101, "end": 1107 }, - "ctxt": 0, - "value": "never2", - "optional": false + "value": "never2" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json index d249f5be4e56..eff27338f926 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json +++ b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json @@ -979,9 +979,7 @@ "start": 503, "end": 508 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json index eb7c82b95eef..b5c19081bbae 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json +++ b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json @@ -979,9 +979,7 @@ "start": 531, "end": 536 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json b/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json index 32cf06d5827b..360c42d7b6c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json +++ b/crates/swc_ecma_parser/tests/tsc/newOperatorConformance.json @@ -64,9 +64,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -188,9 +186,7 @@ "start": 89, "end": 100 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/newTarget.es5.json b/crates/swc_ecma_parser/tests/tsc/newTarget.es5.json index 8c5d0ca79644..10357909e42f 100644 --- a/crates/swc_ecma_parser/tests/tsc/newTarget.es5.json +++ b/crates/swc_ecma_parser/tests/tsc/newTarget.es5.json @@ -38,9 +38,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -159,9 +157,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "FunctionExpression", @@ -226,9 +222,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "FunctionExpression", @@ -321,9 +315,7 @@ "start": 239, "end": 250 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -785,9 +777,7 @@ "start": 526, "end": 527 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/newTarget.es6.json b/crates/swc_ecma_parser/tests/tsc/newTarget.es6.json index 8c5d0ca79644..10357909e42f 100644 --- a/crates/swc_ecma_parser/tests/tsc/newTarget.es6.json +++ b/crates/swc_ecma_parser/tests/tsc/newTarget.es6.json @@ -38,9 +38,7 @@ "start": 31, "end": 42 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -159,9 +157,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "FunctionExpression", @@ -226,9 +222,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "FunctionExpression", @@ -321,9 +315,7 @@ "start": 239, "end": 250 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -785,9 +777,7 @@ "start": 526, "end": 527 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json b/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json index d2aa1ea0a287..78841e6b3c17 100644 --- a/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.json @@ -141,9 +141,7 @@ "start": 94, "end": 100 }, - "ctxt": 0, - "value": "marked", - "optional": false + "value": "marked" } }, "right": { @@ -209,9 +207,7 @@ "start": 132, "end": 138 }, - "ctxt": 0, - "value": "marked", - "optional": false + "value": "marked" } } } @@ -265,9 +261,7 @@ "start": 150, "end": 156 }, - "ctxt": 0, - "value": "marked", - "optional": false + "value": "marked" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpread.json b/crates/swc_ecma_parser/tests/tsc/newWithSpread.json index 6e74fd990ab5..a45bfcee0860 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpread.json @@ -448,9 +448,7 @@ "start": 187, "end": 198 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1947,9 +1945,7 @@ "start": 750, "end": 751 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2028,9 +2024,7 @@ "start": 775, "end": 776 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2113,9 +2107,7 @@ "start": 796, "end": 797 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2216,9 +2208,7 @@ "start": 858, "end": 859 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2304,9 +2294,7 @@ "start": 885, "end": 886 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2396,9 +2384,7 @@ "start": 908, "end": 909 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2517,9 +2503,7 @@ "start": 974, "end": 975 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2621,9 +2605,7 @@ "start": 1002, "end": 1003 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2729,9 +2711,7 @@ "start": 1026, "end": 1027 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2849,9 +2829,7 @@ "start": 1116, "end": 1117 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2953,9 +2931,7 @@ "start": 1148, "end": 1149 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3061,9 +3037,7 @@ "start": 1176, "end": 1177 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json index 7c03c865545e..72958ab5d40c 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json @@ -448,9 +448,7 @@ "start": 201, "end": 212 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1947,9 +1945,7 @@ "start": 764, "end": 765 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2028,9 +2024,7 @@ "start": 789, "end": 790 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2113,9 +2107,7 @@ "start": 810, "end": 811 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2216,9 +2208,7 @@ "start": 872, "end": 873 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2304,9 +2294,7 @@ "start": 899, "end": 900 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2396,9 +2384,7 @@ "start": 922, "end": 923 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2517,9 +2503,7 @@ "start": 988, "end": 989 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2621,9 +2605,7 @@ "start": 1016, "end": 1017 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2729,9 +2711,7 @@ "start": 1040, "end": 1041 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2849,9 +2829,7 @@ "start": 1130, "end": 1131 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2953,9 +2931,7 @@ "start": 1162, "end": 1163 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3061,9 +3037,7 @@ "start": 1190, "end": 1191 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json index e412a2f332ac..3926672743f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json @@ -448,9 +448,7 @@ "start": 202, "end": 213 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1947,9 +1945,7 @@ "start": 765, "end": 766 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2028,9 +2024,7 @@ "start": 790, "end": 791 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2113,9 +2107,7 @@ "start": 811, "end": 812 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2216,9 +2208,7 @@ "start": 873, "end": 874 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2304,9 +2294,7 @@ "start": 900, "end": 901 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2396,9 +2384,7 @@ "start": 923, "end": 924 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -2517,9 +2503,7 @@ "start": 989, "end": 990 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2621,9 +2605,7 @@ "start": 1017, "end": 1018 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2729,9 +2711,7 @@ "start": 1041, "end": 1042 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2849,9 +2829,7 @@ "start": 1131, "end": 1132 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2953,9 +2931,7 @@ "start": 1163, "end": 1164 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3061,9 +3037,7 @@ "start": 1191, "end": 1192 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/noInfer.json b/crates/swc_ecma_parser/tests/tsc/noInfer.json index 3ed4655be987..d3a1c54c4ea2 100644 --- a/crates/swc_ecma_parser/tests/tsc/noInfer.json +++ b/crates/swc_ecma_parser/tests/tsc/noInfer.json @@ -2822,9 +2822,7 @@ "start": 1300, "end": 1301 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -2896,9 +2894,7 @@ "start": 1335, "end": 1336 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -2949,9 +2945,7 @@ "start": 1380, "end": 1384 }, - "ctxt": 0, - "value": "move", - "optional": false + "value": "move" }, "function": { "params": [], @@ -3027,9 +3021,7 @@ "start": 1430, "end": 1434 }, - "ctxt": 0, - "value": "woof", - "optional": false + "value": "woof" }, "function": { "params": [], @@ -3766,9 +3758,7 @@ "start": 1772, "end": 1773 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3800,9 +3790,7 @@ "start": 1782, "end": 1783 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3863,9 +3851,7 @@ "start": 1809, "end": 1810 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3885,9 +3871,7 @@ "start": 1815, "end": 1816 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3959,9 +3943,7 @@ "start": 1840, "end": 1841 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4411,9 +4393,7 @@ "start": 2005, "end": 2006 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4433,9 +4413,7 @@ "start": 2011, "end": 2012 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4495,9 +4473,7 @@ "start": 2036, "end": 2037 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4517,9 +4493,7 @@ "start": 2042, "end": 2043 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -5012,9 +4986,7 @@ "start": 2258, "end": 2261 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -5502,9 +5474,7 @@ "start": 2472, "end": 2483 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -5676,9 +5646,7 @@ "start": 2556, "end": 2561 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "function": { "params": [], @@ -5721,9 +5689,7 @@ "start": 2589, "end": 2595 }, - "ctxt": 0, - "value": "_value", - "optional": false + "value": "_value" } } } @@ -5835,9 +5801,7 @@ "start": 2635, "end": 2646 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json b/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json index 5bfa44486a01..4acff82fe283 100644 --- a/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json +++ b/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json @@ -533,9 +533,7 @@ "start": 292, "end": 295 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -607,9 +605,7 @@ "start": 335, "end": 338 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -681,9 +677,7 @@ "start": 372, "end": 375 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -755,9 +749,7 @@ "start": 415, "end": 418 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -836,9 +828,7 @@ "start": 462, "end": 465 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -926,9 +916,7 @@ "start": 517, "end": 520 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json index f3c33f3c72c5..447b4ad3c6c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json @@ -625,9 +625,7 @@ "start": 469, "end": 472 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1293,9 +1291,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1389,9 +1385,7 @@ "start": 780, "end": 781 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1485,9 +1479,7 @@ "start": 824, "end": 825 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1587,9 +1579,7 @@ "start": 868, "end": 869 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeAnnotation": { @@ -1708,9 +1698,7 @@ "start": 928, "end": 929 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeAnnotation": { @@ -1829,9 +1817,7 @@ "start": 989, "end": 990 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeAnnotation": { @@ -2125,9 +2111,7 @@ "start": 1156, "end": 1159 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -2698,9 +2682,7 @@ "start": 1536, "end": 1539 }, - "ctxt": 0, - "value": "qua", - "optional": false + "value": "qua" } }, "right": { @@ -3324,9 +3306,7 @@ "start": 1893, "end": 1894 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -3420,9 +3400,7 @@ "start": 1942, "end": 1943 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccessDestructuring.json b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccessDestructuring.json index 9eab341a7c64..e3dfda641fd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccessDestructuring.json +++ b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccessDestructuring.json @@ -224,9 +224,7 @@ "start": 264, "end": 272 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -332,9 +330,7 @@ "start": 405, "end": 409 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -456,9 +452,7 @@ "start": 575, "end": 579 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -672,9 +666,7 @@ "start": 773, "end": 781 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -786,9 +778,7 @@ "start": 854, "end": 855 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -797,9 +787,7 @@ "start": 856, "end": 864 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1133,9 +1121,7 @@ "start": 1055, "end": 1062 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1177,9 +1163,7 @@ "start": 1085, "end": 1092 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1221,9 +1205,7 @@ "start": 1115, "end": 1122 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1358,9 +1340,7 @@ "start": 1190, "end": 1197 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1408,9 +1388,7 @@ "start": 1220, "end": 1221 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -1419,9 +1397,7 @@ "start": 1222, "end": 1229 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1469,9 +1445,7 @@ "start": 1252, "end": 1253 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -1480,9 +1454,7 @@ "start": 1254, "end": 1261 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1617,9 +1589,7 @@ "start": 1334, "end": 1341 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1667,9 +1637,7 @@ "start": 1370, "end": 1371 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -1678,9 +1646,7 @@ "start": 1372, "end": 1379 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -1728,9 +1694,7 @@ "start": 1408, "end": 1409 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -1739,9 +1703,7 @@ "start": 1410, "end": 1417 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json b/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json index 5ba323a6f093..f69e459e612d 100644 --- a/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json +++ b/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json @@ -40,9 +40,7 @@ "start": 94, "end": 97 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -122,9 +120,7 @@ "start": 159, "end": 162 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json b/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json index 548320a45387..4b78d165fcd6 100644 --- a/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json +++ b/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json @@ -150,9 +150,7 @@ "start": 335, "end": 342 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -247,9 +245,7 @@ "start": 513, "end": 520 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/nonInstantiatedModule.json b/crates/swc_ecma_parser/tests/tsc/nonInstantiatedModule.json index 9aaf2b7d03da..9471126cd5c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonInstantiatedModule.json +++ b/crates/swc_ecma_parser/tests/tsc/nonInstantiatedModule.json @@ -378,9 +378,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -482,9 +480,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -602,9 +598,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -624,9 +618,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -942,6 +934,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 452, + "end": 460 + }, "left": { "type": "Identifier", "span": { @@ -958,9 +954,7 @@ "start": 455, "end": 460 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeParams": null @@ -1165,6 +1159,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 528, + "end": 536 + }, "left": { "type": "Identifier", "span": { @@ -1181,9 +1179,7 @@ "start": 531, "end": 536 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "typeArguments": null @@ -1399,9 +1395,7 @@ "start": 694, "end": 698 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json index 4893f1be45c9..2f0dcb712a3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json +++ b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json @@ -47,9 +47,7 @@ "start": 11, "end": 16 }, - "ctxt": 0, - "value": "bogus", - "optional": false + "value": "bogus" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAccessProperty.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAccessProperty.json index 7d5a1b381ef4..7445f00e2b9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAccessProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAccessProperty.json @@ -86,9 +86,7 @@ "start": 18, "end": 26 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -130,9 +128,7 @@ "start": 32, "end": 40 }, - "ctxt": 0, - "value": "nonExist", - "optional": false + "value": "nonExist" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndEmptyObject.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndEmptyObject.json index 22022bf67c4a..7f44f4889d3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndEmptyObject.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndEmptyObject.json @@ -325,9 +325,7 @@ "start": 251, "end": 258 }, - "ctxt": 0, - "value": "barProp", - "optional": false + "value": "barProp" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json index 037b45388f7a..9571027727c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAndTypeVariables.json @@ -647,9 +647,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -834,9 +832,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json index 2816add16431..53dbc6fb9c0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json @@ -135,9 +135,7 @@ "start": 99, "end": 102 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -154,9 +152,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -243,9 +239,7 @@ "start": 148, "end": 151 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json index bfda41ba9bfe..aee235b0f1f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json @@ -86,9 +86,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json index 8ec23630655b..9acb38436711 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json @@ -37,9 +37,7 @@ "start": 20, "end": 28 }, - "ctxt": 0, - "value": "narrowed", - "optional": false + "value": "narrowed" }, "value": null, "typeAnnotation": { @@ -190,9 +188,7 @@ "start": 89, "end": 97 }, - "ctxt": 0, - "value": "narrowed", - "optional": false + "value": "narrowed" } } }, @@ -319,9 +315,7 @@ "start": 165, "end": 172 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -479,9 +473,7 @@ "start": 251, "end": 259 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -533,9 +525,7 @@ "start": 298, "end": 306 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json index 417077479bef..c4aea82b0e59 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json @@ -363,9 +363,7 @@ "start": 187, "end": 190 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -492,9 +490,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json b/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json index 90e53eac71ec..a063d5508602 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/nullAssignableToEveryType.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json b/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json index 372d26812305..24edb9d7b186 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json +++ b/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json @@ -1003,9 +1003,7 @@ "start": 511, "end": 514 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -1094,9 +1092,7 @@ "start": 553, "end": 556 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -1861,9 +1857,7 @@ "start": 896, "end": 899 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2112,9 +2106,7 @@ "start": 994, "end": 997 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2615,9 +2607,7 @@ "start": 1168, "end": 1169 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "alternate": { @@ -2702,9 +2692,7 @@ "start": 1204, "end": 1205 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -3035,9 +3023,7 @@ "start": 1347, "end": 1350 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/nullPropertyName.json b/crates/swc_ecma_parser/tests/tsc/nullPropertyName.json index 267fbb5dc497..e705fd04c04a 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullPropertyName.json +++ b/crates/swc_ecma_parser/tests/tsc/nullPropertyName.json @@ -74,9 +74,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -125,9 +123,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -176,9 +172,7 @@ "start": 95, "end": 100 }, - "ctxt": 0, - "value": "break", - "optional": false + "value": "break" } }, "right": { @@ -227,9 +221,7 @@ "start": 110, "end": 114 }, - "ctxt": 0, - "value": "case", - "optional": false + "value": "case" } }, "right": { @@ -278,9 +270,7 @@ "start": 124, "end": 129 }, - "ctxt": 0, - "value": "catch", - "optional": false + "value": "catch" } }, "right": { @@ -329,9 +319,7 @@ "start": 139, "end": 144 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } }, "right": { @@ -380,9 +368,7 @@ "start": 154, "end": 159 }, - "ctxt": 0, - "value": "const", - "optional": false + "value": "const" } }, "right": { @@ -431,9 +417,7 @@ "start": 169, "end": 177 }, - "ctxt": 0, - "value": "continue", - "optional": false + "value": "continue" } }, "right": { @@ -482,9 +466,7 @@ "start": 187, "end": 195 }, - "ctxt": 0, - "value": "debugger", - "optional": false + "value": "debugger" } }, "right": { @@ -533,9 +515,7 @@ "start": 205, "end": 212 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { @@ -584,9 +564,7 @@ "start": 222, "end": 228 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "right": { @@ -635,9 +613,7 @@ "start": 238, "end": 240 }, - "ctxt": 0, - "value": "do", - "optional": false + "value": "do" } }, "right": { @@ -686,9 +662,7 @@ "start": 250, "end": 254 }, - "ctxt": 0, - "value": "else", - "optional": false + "value": "else" } }, "right": { @@ -737,9 +711,7 @@ "start": 264, "end": 268 }, - "ctxt": 0, - "value": "enum", - "optional": false + "value": "enum" } }, "right": { @@ -788,9 +760,7 @@ "start": 278, "end": 284 }, - "ctxt": 0, - "value": "export", - "optional": false + "value": "export" } }, "right": { @@ -839,9 +809,7 @@ "start": 294, "end": 301 }, - "ctxt": 0, - "value": "extends", - "optional": false + "value": "extends" } }, "right": { @@ -890,9 +858,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "false", - "optional": false + "value": "false" } }, "right": { @@ -941,9 +907,7 @@ "start": 326, "end": 333 }, - "ctxt": 0, - "value": "finally", - "optional": false + "value": "finally" } }, "right": { @@ -992,9 +956,7 @@ "start": 343, "end": 346 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "right": { @@ -1043,9 +1005,7 @@ "start": 356, "end": 364 }, - "ctxt": 0, - "value": "function", - "optional": false + "value": "function" } }, "right": { @@ -1094,9 +1054,7 @@ "start": 374, "end": 376 }, - "ctxt": 0, - "value": "if", - "optional": false + "value": "if" } }, "right": { @@ -1145,9 +1103,7 @@ "start": 386, "end": 392 }, - "ctxt": 0, - "value": "import", - "optional": false + "value": "import" } }, "right": { @@ -1196,9 +1152,7 @@ "start": 402, "end": 404 }, - "ctxt": 0, - "value": "in", - "optional": false + "value": "in" } }, "right": { @@ -1247,9 +1201,7 @@ "start": 414, "end": 424 }, - "ctxt": 0, - "value": "instanceof", - "optional": false + "value": "instanceof" } }, "right": { @@ -1298,9 +1250,7 @@ "start": 434, "end": 437 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" } }, "right": { @@ -1349,9 +1299,7 @@ "start": 447, "end": 451 }, - "ctxt": 0, - "value": "null", - "optional": false + "value": "null" } }, "right": { @@ -1400,9 +1348,7 @@ "start": 461, "end": 467 }, - "ctxt": 0, - "value": "return", - "optional": false + "value": "return" } }, "right": { @@ -1451,9 +1397,7 @@ "start": 477, "end": 482 }, - "ctxt": 0, - "value": "super", - "optional": false + "value": "super" } }, "right": { @@ -1502,9 +1446,7 @@ "start": 492, "end": 498 }, - "ctxt": 0, - "value": "switch", - "optional": false + "value": "switch" } }, "right": { @@ -1553,9 +1495,7 @@ "start": 508, "end": 512 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "right": { @@ -1604,9 +1544,7 @@ "start": 522, "end": 527 }, - "ctxt": 0, - "value": "throw", - "optional": false + "value": "throw" } }, "right": { @@ -1655,9 +1593,7 @@ "start": 537, "end": 541 }, - "ctxt": 0, - "value": "true", - "optional": false + "value": "true" } }, "right": { @@ -1706,9 +1642,7 @@ "start": 551, "end": 554 }, - "ctxt": 0, - "value": "try", - "optional": false + "value": "try" } }, "right": { @@ -1757,9 +1691,7 @@ "start": 564, "end": 570 }, - "ctxt": 0, - "value": "typeof", - "optional": false + "value": "typeof" } }, "right": { @@ -1808,9 +1740,7 @@ "start": 580, "end": 583 }, - "ctxt": 0, - "value": "var", - "optional": false + "value": "var" } }, "right": { @@ -1859,9 +1789,7 @@ "start": 593, "end": 597 }, - "ctxt": 0, - "value": "void", - "optional": false + "value": "void" } }, "right": { @@ -1910,9 +1838,7 @@ "start": 607, "end": 612 }, - "ctxt": 0, - "value": "while", - "optional": false + "value": "while" } }, "right": { @@ -1961,9 +1887,7 @@ "start": 622, "end": 626 }, - "ctxt": 0, - "value": "with", - "optional": false + "value": "with" } }, "right": { @@ -2012,9 +1936,7 @@ "start": 636, "end": 646 }, - "ctxt": 0, - "value": "implements", - "optional": false + "value": "implements" } }, "right": { @@ -2063,9 +1985,7 @@ "start": 656, "end": 665 }, - "ctxt": 0, - "value": "interface", - "optional": false + "value": "interface" } }, "right": { @@ -2114,9 +2034,7 @@ "start": 675, "end": 678 }, - "ctxt": 0, - "value": "let", - "optional": false + "value": "let" } }, "right": { @@ -2165,9 +2083,7 @@ "start": 688, "end": 695 }, - "ctxt": 0, - "value": "package", - "optional": false + "value": "package" } }, "right": { @@ -2216,9 +2132,7 @@ "start": 705, "end": 712 }, - "ctxt": 0, - "value": "private", - "optional": false + "value": "private" } }, "right": { @@ -2267,9 +2181,7 @@ "start": 722, "end": 731 }, - "ctxt": 0, - "value": "protected", - "optional": false + "value": "protected" } }, "right": { @@ -2318,9 +2230,7 @@ "start": 741, "end": 747 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" } }, "right": { @@ -2369,9 +2279,7 @@ "start": 757, "end": 763 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" } }, "right": { @@ -2420,9 +2328,7 @@ "start": 773, "end": 778 }, - "ctxt": 0, - "value": "yield", - "optional": false + "value": "yield" } }, "right": { @@ -2471,9 +2377,7 @@ "start": 788, "end": 796 }, - "ctxt": 0, - "value": "abstract", - "optional": false + "value": "abstract" } }, "right": { @@ -2522,9 +2426,7 @@ "start": 806, "end": 808 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" } }, "right": { @@ -2573,9 +2475,7 @@ "start": 818, "end": 825 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "right": { @@ -2624,9 +2524,7 @@ "start": 835, "end": 838 }, - "ctxt": 0, - "value": "any", - "optional": false + "value": "any" } }, "right": { @@ -2675,9 +2573,7 @@ "start": 848, "end": 853 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" } }, "right": { @@ -2726,9 +2622,7 @@ "start": 863, "end": 868 }, - "ctxt": 0, - "value": "await", - "optional": false + "value": "await" } }, "right": { @@ -2777,9 +2671,7 @@ "start": 878, "end": 885 }, - "ctxt": 0, - "value": "boolean", - "optional": false + "value": "boolean" } }, "right": { @@ -2828,9 +2720,7 @@ "start": 895, "end": 906 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "right": { @@ -2879,9 +2769,7 @@ "start": 916, "end": 923 }, - "ctxt": 0, - "value": "declare", - "optional": false + "value": "declare" } }, "right": { @@ -2930,9 +2818,7 @@ "start": 933, "end": 936 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "right": { @@ -2981,9 +2867,7 @@ "start": 946, "end": 951 }, - "ctxt": 0, - "value": "infer", - "optional": false + "value": "infer" } }, "right": { @@ -3032,9 +2916,7 @@ "start": 961, "end": 963 }, - "ctxt": 0, - "value": "is", - "optional": false + "value": "is" } }, "right": { @@ -3083,9 +2965,7 @@ "start": 973, "end": 978 }, - "ctxt": 0, - "value": "keyof", - "optional": false + "value": "keyof" } }, "right": { @@ -3134,9 +3014,7 @@ "start": 988, "end": 994 }, - "ctxt": 0, - "value": "module", - "optional": false + "value": "module" } }, "right": { @@ -3185,9 +3063,7 @@ "start": 1004, "end": 1013 }, - "ctxt": 0, - "value": "namespace", - "optional": false + "value": "namespace" } }, "right": { @@ -3236,9 +3112,7 @@ "start": 1023, "end": 1028 }, - "ctxt": 0, - "value": "never", - "optional": false + "value": "never" } }, "right": { @@ -3287,9 +3161,7 @@ "start": 1038, "end": 1046 }, - "ctxt": 0, - "value": "readonly", - "optional": false + "value": "readonly" } }, "right": { @@ -3338,9 +3210,7 @@ "start": 1056, "end": 1063 }, - "ctxt": 0, - "value": "require", - "optional": false + "value": "require" } }, "right": { @@ -3389,9 +3259,7 @@ "start": 1073, "end": 1079 }, - "ctxt": 0, - "value": "number", - "optional": false + "value": "number" } }, "right": { @@ -3440,9 +3308,7 @@ "start": 1089, "end": 1095 }, - "ctxt": 0, - "value": "object", - "optional": false + "value": "object" } }, "right": { @@ -3491,9 +3357,7 @@ "start": 1105, "end": 1108 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "right": { @@ -3542,9 +3406,7 @@ "start": 1118, "end": 1124 }, - "ctxt": 0, - "value": "string", - "optional": false + "value": "string" } }, "right": { @@ -3593,9 +3455,7 @@ "start": 1134, "end": 1140 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "right": { @@ -3644,9 +3504,7 @@ "start": 1150, "end": 1154 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -3695,9 +3553,7 @@ "start": 1164, "end": 1173 }, - "ctxt": 0, - "value": "undefined", - "optional": false + "value": "undefined" } }, "right": { @@ -3746,9 +3602,7 @@ "start": 1183, "end": 1189 }, - "ctxt": 0, - "value": "unique", - "optional": false + "value": "unique" } }, "right": { @@ -3797,9 +3651,7 @@ "start": 1199, "end": 1206 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -3848,9 +3700,7 @@ "start": 1216, "end": 1220 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "right": { @@ -3899,9 +3749,7 @@ "start": 1230, "end": 1236 }, - "ctxt": 0, - "value": "global", - "optional": false + "value": "global" } }, "right": { @@ -3950,9 +3798,7 @@ "start": 1246, "end": 1252 }, - "ctxt": 0, - "value": "bigint", - "optional": false + "value": "bigint" } }, "right": { @@ -4001,9 +3847,7 @@ "start": 1262, "end": 1264 }, - "ctxt": 0, - "value": "of", - "optional": false + "value": "of" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json index cf5a7fdc5088..558bb5c27bab 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json @@ -1996,9 +1996,7 @@ "start": 1091, "end": 1092 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2076,9 +2074,7 @@ "start": 1117, "end": 1118 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2156,9 +2152,7 @@ "start": 1143, "end": 1144 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2236,9 +2230,7 @@ "start": 1169, "end": 1170 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json index b8446b4a356c..364444a11358 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json @@ -189,9 +189,7 @@ "start": 91, "end": 98 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator12.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator12.json index 73a7f2ac470f..c2d686f4d1c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator12.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator12.json @@ -104,9 +104,7 @@ "start": 68, "end": 71 }, - "ctxt": 0, - "value": "arr", - "optional": false + "value": "arr" }, "value": { "type": "ArrayExpression", @@ -198,9 +196,7 @@ "start": 100, "end": 103 }, - "ctxt": 0, - "value": "arr", - "optional": false + "value": "arr" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json index 26376e09495a..d92f0c767eff 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json @@ -157,9 +157,7 @@ "start": 87, "end": 98 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -243,9 +241,7 @@ "start": 122, "end": 139 }, - "ctxt": 0, - "value": "toLocaleUpperCase", - "optional": false + "value": "toLocaleUpperCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json index 4c4d69baf181..df264ccbcd2b 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json @@ -365,9 +365,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -447,9 +445,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -546,9 +542,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -576,9 +570,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -611,9 +603,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json index 9c4d50af122d..7529e528dd24 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.json @@ -237,9 +237,7 @@ "start": 97, "end": 108 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -380,9 +378,7 @@ "start": 147, "end": 158 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json index 2b333b9a8380..95ed60550041 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInAsyncGenerator.json @@ -159,9 +159,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json index bbd8316db8b2..0f05abcdd073 100644 --- a/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json @@ -101,9 +101,7 @@ "start": 22, "end": 35 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], @@ -169,9 +167,7 @@ "start": 49, "end": 63 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json index bb2899ee62f3..b03086ae111a 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json @@ -172,9 +172,7 @@ "start": 187, "end": 198 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -201,9 +199,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -243,9 +239,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -285,9 +279,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -640,9 +632,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -702,9 +692,7 @@ "start": 505, "end": 506 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [ @@ -767,9 +755,7 @@ "start": 525, "end": 528 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -829,9 +815,7 @@ "start": 571, "end": 573 }, - "ctxt": 0, - "value": "sa", - "optional": false + "value": "sa" }, "value": null, "typeAnnotation": { @@ -871,9 +855,7 @@ "start": 600, "end": 602 }, - "ctxt": 0, - "value": "sb", - "optional": false + "value": "sb" }, "value": null, "typeAnnotation": { @@ -913,9 +895,7 @@ "start": 630, "end": 633 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -958,9 +938,7 @@ "start": 661, "end": 662 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -2233,9 +2211,7 @@ "start": 1444, "end": 1445 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -2255,9 +2231,7 @@ "start": 1455, "end": 1456 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2277,9 +2251,7 @@ "start": 1466, "end": 1467 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -2438,9 +2410,7 @@ "start": 1569, "end": 1570 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "TsTypeAssertion", @@ -2487,9 +2457,7 @@ "start": 1593, "end": 1594 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "typeAnnotation": null, "body": { @@ -2531,9 +2499,7 @@ "start": 1634, "end": 1635 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "thisParam": null, "param": { @@ -2565,9 +2531,7 @@ "start": 1649, "end": 1652 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json index e6ae88c0556c..3fbda67198ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json +++ b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json @@ -37,9 +37,7 @@ "start": 80, "end": 83 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -140,9 +138,7 @@ "start": 136, "end": 139 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json index c5d37d7e0cda..9d61ca0457e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json @@ -5386,9 +5386,7 @@ "start": 2009, "end": 2013 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5436,9 +5434,7 @@ "start": 2042, "end": 2043 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -5488,9 +5484,7 @@ "start": 2070, "end": 2071 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -5540,9 +5534,7 @@ "start": 2098, "end": 2099 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -5657,9 +5649,7 @@ "start": 2148, "end": 2152 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5707,9 +5697,7 @@ "start": 2181, "end": 2182 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -5759,9 +5747,7 @@ "start": 2209, "end": 2210 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -5811,9 +5797,7 @@ "start": 2237, "end": 2238 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json index b3d66fedb3fd..537ef0c17122 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json @@ -5386,9 +5386,7 @@ "start": 2037, "end": 2041 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5436,9 +5434,7 @@ "start": 2070, "end": 2071 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -5488,9 +5484,7 @@ "start": 2098, "end": 2099 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -5540,9 +5534,7 @@ "start": 2126, "end": 2127 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -5657,9 +5649,7 @@ "start": 2176, "end": 2180 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -5707,9 +5697,7 @@ "start": 2209, "end": 2210 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -5759,9 +5747,7 @@ "start": 2237, "end": 2238 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -5811,9 +5797,7 @@ "start": 2265, "end": 2266 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers05.json b/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers05.json index 0fb543444640..4e671fc1a8df 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers05.json +++ b/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers05.json @@ -66,9 +66,7 @@ "start": 17, "end": 19 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers06.json b/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers06.json index fb02a4da0242..fb44283e6d2b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers06.json +++ b/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers06.json @@ -36,9 +36,7 @@ "start": 8, "end": 10 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "Identifier", @@ -71,9 +69,7 @@ "start": 21, "end": 23 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json index 5bebb098d725..3583ec44cc72 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json @@ -324,9 +324,7 @@ "start": 534, "end": 538 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -456,9 +454,7 @@ "start": 585, "end": 589 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -478,9 +474,7 @@ "start": 603, "end": 614 }, - "ctxt": 0, - "value": "description", - "optional": false + "value": "description" }, "value": { "type": "StringLiteral", @@ -610,9 +604,7 @@ "start": 664, "end": 668 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -632,9 +624,7 @@ "start": 682, "end": 693 }, - "ctxt": 0, - "value": "description", - "optional": false + "value": "description" }, "value": { "type": "BooleanLiteral", @@ -763,9 +753,7 @@ "start": 735, "end": 736 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json index eac354bc8675..961ed8dcf91f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json @@ -62,9 +62,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -96,9 +94,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -118,9 +114,7 @@ "start": 127, "end": 128 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -152,9 +146,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -174,9 +166,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -196,9 +186,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -263,9 +251,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -297,9 +283,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -331,9 +315,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -376,9 +358,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -433,9 +413,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -455,9 +433,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -512,9 +488,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -569,9 +543,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -643,9 +615,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -665,9 +635,7 @@ "start": 364, "end": 365 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -699,9 +667,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -778,9 +744,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -812,9 +776,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -857,9 +819,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -879,9 +839,7 @@ "start": 475, "end": 476 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -936,9 +894,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1027,9 +983,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -1049,9 +1003,7 @@ "start": 529, "end": 530 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1106,9 +1058,7 @@ "start": 555, "end": 556 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1388,9 +1338,7 @@ "start": 718, "end": 719 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -1825,9 +1773,7 @@ "start": 1008, "end": 1009 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1847,9 +1793,7 @@ "start": 1014, "end": 1015 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1948,9 +1892,7 @@ "start": 1051, "end": 1052 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1970,9 +1912,7 @@ "start": 1057, "end": 1058 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2048,9 +1988,7 @@ "start": 1124, "end": 1128 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -2070,9 +2008,7 @@ "start": 1135, "end": 1138 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" }, "value": { "type": "ObjectExpression", @@ -2089,9 +2025,7 @@ "start": 1142, "end": 1143 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2111,9 +2045,7 @@ "start": 1148, "end": 1149 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2148,9 +2080,7 @@ "start": 1160, "end": 1164 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -2170,9 +2100,7 @@ "start": 1171, "end": 1174 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" }, "value": { "type": "ConditionalExpression", @@ -2211,9 +2139,7 @@ "start": 1186, "end": 1187 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -2242,9 +2168,7 @@ "start": 1199, "end": 1200 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2314,9 +2238,7 @@ "start": 1216, "end": 1220 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } } }, @@ -2348,9 +2270,7 @@ "start": 1225, "end": 1228 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } } }, @@ -2388,9 +2308,7 @@ "start": 1233, "end": 1236 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "property": { @@ -2399,9 +2317,7 @@ "start": 1237, "end": 1238 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2439,9 +2355,7 @@ "start": 1243, "end": 1246 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "property": { @@ -2450,9 +2364,7 @@ "start": 1247, "end": 1248 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -2490,9 +2402,7 @@ "start": 1253, "end": 1256 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "property": { @@ -2501,9 +2411,7 @@ "start": 1257, "end": 1258 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2541,9 +2449,7 @@ "start": 1263, "end": 1266 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "property": { @@ -2552,9 +2458,7 @@ "start": 1267, "end": 1268 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2938,9 +2842,7 @@ "start": 1439, "end": 1440 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -2960,9 +2862,7 @@ "start": 1445, "end": 1446 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2994,9 +2894,7 @@ "start": 1455, "end": 1456 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -3102,9 +3000,7 @@ "start": 1489, "end": 1490 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -3136,9 +3032,7 @@ "start": 1503, "end": 1504 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -3158,9 +3052,7 @@ "start": 1509, "end": 1510 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -3257,9 +3149,7 @@ "start": 1537, "end": 1538 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -3343,9 +3233,7 @@ "start": 1559, "end": 1560 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandProperties.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandProperties.json index 2372634480c6..4692def9e074 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandProperties.json @@ -219,9 +219,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -261,9 +259,7 @@ "start": 112, "end": 113 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "params": [], "decorators": [], @@ -304,9 +300,7 @@ "start": 133, "end": 139 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesES6.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesES6.json index 2372634480c6..4692def9e074 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesES6.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesES6.json @@ -219,9 +219,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -261,9 +259,7 @@ "start": 112, "end": 113 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "params": [], "decorators": [], @@ -304,9 +300,7 @@ "start": 133, "end": 139 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json index 82196bd8654c..7bb6a2d4a9c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json @@ -395,9 +395,7 @@ "start": 174, "end": 178 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "Identifier", @@ -418,9 +416,7 @@ "start": 186, "end": 188 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModule.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModule.json index dbe34679a0b2..452f521618c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModule.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModule.json @@ -180,9 +180,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModuleES6.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModuleES6.json index 6a1a83e99aa3..ac8d7894c999 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModuleES6.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesWithModuleES6.json @@ -180,9 +180,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralWidened.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralWidened.json index 6bc05dca852d..84d69d516c5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralWidened.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralWidened.json @@ -47,9 +47,7 @@ "start": 65, "end": 68 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NullLiteral", @@ -67,9 +65,7 @@ "start": 80, "end": 83 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "Identifier", @@ -130,9 +126,7 @@ "start": 113, "end": 116 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NullLiteral", @@ -150,9 +144,7 @@ "start": 128, "end": 131 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -169,9 +161,7 @@ "start": 143, "end": 146 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "NullLiteral", @@ -189,9 +179,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "boo", - "optional": false + "value": "boo" }, "value": { "type": "Identifier", @@ -362,9 +350,7 @@ "start": 278, "end": 281 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -385,9 +371,7 @@ "start": 290, "end": 293 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "Identifier", @@ -448,9 +432,7 @@ "start": 315, "end": 318 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "Identifier", @@ -471,9 +453,7 @@ "start": 327, "end": 330 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -490,9 +470,7 @@ "start": 342, "end": 345 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "Identifier", @@ -513,9 +491,7 @@ "start": 358, "end": 361 }, - "ctxt": 0, - "value": "boo", - "optional": false + "value": "boo" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRest.json b/crates/swc_ecma_parser/tests/tsc/objectRest.json index 6bcc06bea61e..4731d69f96e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRest.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRest.json @@ -47,9 +47,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 36, "end": 37 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -286,9 +282,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -555,9 +549,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectPattern", @@ -700,9 +692,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -722,9 +712,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -773,9 +761,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "Identifier", @@ -1245,9 +1231,7 @@ "start": 459, "end": 461 }, - "ctxt": 0, - "value": "n1", - "optional": false + "value": "n1" }, "value": { "type": "ObjectPattern", @@ -1283,9 +1267,7 @@ "start": 468, "end": 470 }, - "ctxt": 0, - "value": "n2", - "optional": false + "value": "n2" }, "value": { "type": "ObjectPattern", @@ -1321,9 +1303,7 @@ "start": 477, "end": 479 }, - "ctxt": 0, - "value": "n3", - "optional": false + "value": "n3" }, "value": { "type": "ObjectPattern", @@ -1602,9 +1582,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectPattern", @@ -1668,9 +1646,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1759,9 +1735,7 @@ "start": 629, "end": 630 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectPattern", @@ -1825,9 +1799,7 @@ "start": 651, "end": 652 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -1965,9 +1937,7 @@ "start": 706, "end": 707 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1987,9 +1957,7 @@ "start": 712, "end": 713 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2094,9 +2062,7 @@ "start": 741, "end": 742 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2116,9 +2082,7 @@ "start": 747, "end": 748 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2167,9 +2131,7 @@ "start": 787, "end": 788 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2209,9 +2171,7 @@ "start": 812, "end": 813 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -2251,9 +2211,7 @@ "start": 831, "end": 832 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "function": { "params": [ @@ -2330,9 +2288,7 @@ "start": 860, "end": 864 }, - "ctxt": 0, - "value": "both", - "optional": false + "value": "both" }, "function": { "params": [], @@ -2406,9 +2362,7 @@ "start": 897, "end": 901 }, - "ctxt": 0, - "value": "both", - "optional": false + "value": "both" }, "function": { "params": [ @@ -2485,9 +2439,7 @@ "start": 925, "end": 926 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -2530,9 +2482,7 @@ "start": 937, "end": 944 }, - "ctxt": 0, - "value": "removed", - "optional": false + "value": "removed" }, "value": null, "typeAnnotation": { @@ -2572,9 +2522,7 @@ "start": 958, "end": 967 }, - "ctxt": 0, - "value": "remainder", - "optional": false + "value": "remainder" }, "value": null, "typeAnnotation": { @@ -3496,9 +3444,7 @@ "start": 1455, "end": 1467 }, - "ctxt": 0, - "value": "anythingGoes", - "optional": false + "value": "anythingGoes" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectRest2.json b/crates/swc_ecma_parser/tests/tsc/objectRest2.json index 56e671b9ad03..548eaf314781 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRest2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRest2.json @@ -195,9 +195,7 @@ "start": 180, "end": 187 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" }, "value": { "type": "ArrowFunctionExpression", @@ -305,9 +303,7 @@ "start": 252, "end": 259 }, - "ctxt": 0, - "value": "objects", - "optional": false + "value": "objects" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestAssignment.json b/crates/swc_ecma_parser/tests/tsc/objectRestAssignment.json index 3c11d483afa1..aa7a5aa53a6b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestAssignment.json @@ -405,9 +405,7 @@ "start": 132, "end": 133 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectPattern", @@ -471,9 +469,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -929,9 +925,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrayPattern", @@ -1010,9 +1004,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectPattern", @@ -1143,9 +1135,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrayPattern", @@ -1224,9 +1214,7 @@ "start": 576, "end": 577 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ObjectPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json b/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json index 6923ede2eb90..b2149d5f8444 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json @@ -423,9 +423,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -597,9 +595,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -663,9 +659,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -734,9 +728,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -764,9 +756,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json b/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json index 96680c86e1cc..158060532586 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json @@ -47,9 +47,7 @@ "start": 35, "end": 36 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json b/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json index 7d1edae73952..5ac6055d37f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json @@ -465,9 +465,7 @@ "start": 178, "end": 179 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -531,9 +529,7 @@ "start": 203, "end": 204 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "async": false, @@ -601,9 +597,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectPattern", @@ -709,9 +703,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -728,9 +720,7 @@ "start": 264, "end": 265 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -750,9 +740,7 @@ "start": 270, "end": 272 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" }, "value": { "type": "NumericLiteral", @@ -775,9 +763,7 @@ "start": 279, "end": 280 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -822,9 +808,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -849,9 +833,7 @@ "start": 310, "end": 312 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" } } }, @@ -897,9 +879,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -1103,9 +1083,7 @@ "start": 441, "end": 442 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -1490,9 +1468,7 @@ "start": 610, "end": 613 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "StringLiteral", @@ -1552,9 +1528,7 @@ "start": 636, "end": 639 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -1571,9 +1545,7 @@ "start": 643, "end": 651 }, - "ctxt": 0, - "value": "greeting", - "optional": false + "value": "greeting" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json b/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json index 4978294a67f7..ad1c7b7c61ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json @@ -465,9 +465,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -531,9 +529,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "async": false, @@ -601,9 +597,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectPattern", @@ -709,9 +703,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -728,9 +720,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -750,9 +740,7 @@ "start": 267, "end": 269 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" }, "value": { "type": "NumericLiteral", @@ -775,9 +763,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -822,9 +808,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -849,9 +833,7 @@ "start": 307, "end": 309 }, - "ctxt": 0, - "value": "ka", - "optional": false + "value": "ka" } } }, @@ -897,9 +879,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -1103,9 +1083,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -1490,9 +1468,7 @@ "start": 607, "end": 610 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "StringLiteral", @@ -1552,9 +1528,7 @@ "start": 633, "end": 636 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -1571,9 +1545,7 @@ "start": 640, "end": 648 }, - "ctxt": 0, - "value": "greeting", - "optional": false + "value": "greeting" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestPropertyMustBeLast.json b/crates/swc_ecma_parser/tests/tsc/objectRestPropertyMustBeLast.json index 2a1987340395..bce26ad6d73b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestPropertyMustBeLast.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestPropertyMustBeLast.json @@ -89,9 +89,7 @@ "start": 20, "end": 21 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -196,9 +194,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -322,9 +318,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -452,9 +446,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json b/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json index 365546095afd..bb54530d4499 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json @@ -230,9 +230,7 @@ "start": 109, "end": 112 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -252,9 +250,7 @@ "start": 123, "end": 126 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "StringLiteral", @@ -274,9 +270,7 @@ "start": 137, "end": 141 }, - "ctxt": 0, - "value": "quux", - "optional": false + "value": "quux" }, "value": { "type": "StringLiteral", @@ -412,9 +406,7 @@ "start": 196, "end": 199 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpread.json b/crates/swc_ecma_parser/tests/tsc/objectSpread.json index e9b936feb440..fa716502e7fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpread.json @@ -47,9 +47,7 @@ "start": 54, "end": 55 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -131,9 +127,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -153,9 +147,7 @@ "start": 91, "end": 92 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -214,9 +206,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -236,9 +226,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "UnaryExpression", @@ -443,9 +431,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -624,9 +610,7 @@ "start": 270, "end": 271 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -804,9 +788,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -999,9 +981,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1034,9 +1014,7 @@ "start": 429, "end": 430 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", @@ -1055,9 +1033,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -1083,9 +1059,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -1493,9 +1467,7 @@ "start": 625, "end": 626 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -1688,9 +1660,7 @@ "start": 715, "end": 716 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1723,9 +1693,7 @@ "start": 726, "end": 727 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", @@ -1744,9 +1712,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -1772,9 +1738,7 @@ "start": 756, "end": 757 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "UnaryExpression", @@ -1963,9 +1927,7 @@ "start": 824, "end": 825 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ObjectExpression", @@ -2046,9 +2008,7 @@ "start": 961, "end": 962 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "typeAnnotation": null, "body": { @@ -2228,9 +2188,7 @@ "start": 1034, "end": 1035 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -2283,9 +2241,7 @@ "start": 1048, "end": 1049 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2732,9 +2688,7 @@ "start": 1311, "end": 1317 }, - "ctxt": 0, - "value": "header", - "optional": false + "value": "header" } } }, @@ -2937,9 +2891,7 @@ "start": 1511, "end": 1512 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2959,9 +2911,7 @@ "start": 1518, "end": 1519 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3065,9 +3015,7 @@ "start": 1568, "end": 1569 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3159,9 +3107,7 @@ "start": 1607, "end": 1608 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3396,9 +3342,7 @@ "start": 1719, "end": 1720 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3418,9 +3362,7 @@ "start": 1726, "end": 1727 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3524,9 +3466,7 @@ "start": 1777, "end": 1778 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -3619,9 +3559,7 @@ "start": 1817, "end": 1818 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -3857,9 +3795,7 @@ "start": 1929, "end": 1930 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -3879,9 +3815,7 @@ "start": 1938, "end": 1939 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3985,9 +3919,7 @@ "start": 1989, "end": 1990 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -4080,9 +4012,7 @@ "start": 2029, "end": 2030 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -4349,9 +4279,7 @@ "start": 2170, "end": 2171 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -4385,9 +4313,7 @@ "start": 2177, "end": 2178 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -4752,9 +4678,7 @@ "start": 2324, "end": 2328 }, - "ctxt": 0, - "value": "plus", - "optional": false + "value": "plus" }, "params": [], "decorators": [], @@ -4803,9 +4727,7 @@ "start": 2345, "end": 2346 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -4867,9 +4789,7 @@ "start": 2363, "end": 2367 }, - "ctxt": 0, - "value": "plus", - "optional": false + "value": "plus" } }, "arguments": [], @@ -5020,9 +4940,7 @@ "start": 2490, "end": 2491 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -6192,9 +6110,7 @@ "start": 3266, "end": 3267 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -6390,9 +6306,7 @@ "start": 3365, "end": 3366 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -6877,9 +6791,7 @@ "start": 3623, "end": 3625 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -7205,9 +7117,7 @@ "start": 3723, "end": 3724 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -7227,9 +7137,7 @@ "start": 3729, "end": 3730 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -7261,9 +7169,7 @@ "start": 3743, "end": 3744 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -7283,9 +7189,7 @@ "start": 3752, "end": 3753 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BooleanLiteral", @@ -7488,9 +7392,7 @@ "start": 3824, "end": 3825 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -7522,9 +7424,7 @@ "start": 3834, "end": 3835 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -7544,9 +7444,7 @@ "start": 3840, "end": 3841 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -7715,9 +7613,7 @@ "start": 3910, "end": 3911 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -7749,9 +7645,7 @@ "start": 3920, "end": 3921 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -7990,9 +7884,7 @@ "start": 4012, "end": 4013 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -8012,9 +7904,7 @@ "start": 4018, "end": 4020 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "BooleanLiteral", @@ -8045,9 +7935,7 @@ "start": 4032, "end": 4033 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -8067,9 +7955,7 @@ "start": 4038, "end": 4039 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -8762,9 +8648,7 @@ "start": 4275, "end": 4276 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -8784,9 +8668,7 @@ "start": 4281, "end": 4282 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -8880,9 +8762,7 @@ "start": 4320, "end": 4321 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -8902,9 +8782,7 @@ "start": 4326, "end": 4327 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -8964,9 +8842,7 @@ "start": 4353, "end": 4354 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -8986,9 +8862,7 @@ "start": 4359, "end": 4360 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -9025,9 +8899,7 @@ "start": 4374, "end": 4375 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -9103,9 +8975,7 @@ "start": 4409, "end": 4410 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -9142,9 +9012,7 @@ "start": 4421, "end": 4422 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -9164,9 +9032,7 @@ "start": 4430, "end": 4431 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "BooleanLiteral", @@ -9242,9 +9108,7 @@ "start": 4465, "end": 4466 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -9281,9 +9145,7 @@ "start": 4477, "end": 4478 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadIndexSignature.json index d9e6c1e946b4..c9910d5dffb2 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadIndexSignature.json @@ -428,9 +428,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -917,9 +915,7 @@ "start": 535, "end": 536 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json index 6a938a568510..12bb4afe03ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json @@ -47,9 +47,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -131,9 +127,7 @@ "start": 65, "end": 66 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json index 15091ed6954d..95b2f43aeba2 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedComplexity.json @@ -222,9 +222,7 @@ "start": 264, "end": 269 }, - "ctxt": 0, - "value": "prop0", - "optional": false + "value": "prop0" }, "value": { "type": "NumericLiteral", @@ -308,9 +306,7 @@ "start": 396, "end": 402 }, - "ctxt": 0, - "value": "prop3a", - "optional": false + "value": "prop3a" }, "value": { "type": "NumericLiteral", @@ -330,9 +326,7 @@ "start": 419, "end": 425 }, - "ctxt": 0, - "value": "prop3b", - "optional": false + "value": "prop3b" }, "value": { "type": "NumericLiteral", @@ -416,9 +410,7 @@ "start": 478, "end": 484 }, - "ctxt": 0, - "value": "prop4a", - "optional": false + "value": "prop4a" }, "value": { "type": "NumericLiteral", @@ -438,9 +430,7 @@ "start": 501, "end": 507 }, - "ctxt": 0, - "value": "prop4b", - "optional": false + "value": "prop4b" }, "value": { "type": "NumericLiteral", @@ -524,9 +514,7 @@ "start": 560, "end": 566 }, - "ctxt": 0, - "value": "prop5a", - "optional": false + "value": "prop5a" }, "value": { "type": "NumericLiteral", @@ -546,9 +534,7 @@ "start": 583, "end": 589 }, - "ctxt": 0, - "value": "prop5b", - "optional": false + "value": "prop5b" }, "value": { "type": "NumericLiteral", @@ -632,9 +618,7 @@ "start": 642, "end": 648 }, - "ctxt": 0, - "value": "prop6a", - "optional": false + "value": "prop6a" }, "value": { "type": "NumericLiteral", @@ -654,9 +638,7 @@ "start": 665, "end": 671 }, - "ctxt": 0, - "value": "prop6b", - "optional": false + "value": "prop6b" }, "value": { "type": "NumericLiteral", @@ -740,9 +722,7 @@ "start": 724, "end": 730 }, - "ctxt": 0, - "value": "prop7a", - "optional": false + "value": "prop7a" }, "value": { "type": "NumericLiteral", @@ -762,9 +742,7 @@ "start": 747, "end": 753 }, - "ctxt": 0, - "value": "prop7b", - "optional": false + "value": "prop7b" }, "value": { "type": "NumericLiteral", @@ -848,9 +826,7 @@ "start": 806, "end": 812 }, - "ctxt": 0, - "value": "prop8a", - "optional": false + "value": "prop8a" }, "value": { "type": "NumericLiteral", @@ -870,9 +846,7 @@ "start": 829, "end": 835 }, - "ctxt": 0, - "value": "prop8b", - "optional": false + "value": "prop8b" }, "value": { "type": "NumericLiteral", @@ -956,9 +930,7 @@ "start": 888, "end": 894 }, - "ctxt": 0, - "value": "prop9a", - "optional": false + "value": "prop9a" }, "value": { "type": "NumericLiteral", @@ -978,9 +950,7 @@ "start": 911, "end": 917 }, - "ctxt": 0, - "value": "prop9b", - "optional": false + "value": "prop9b" }, "value": { "type": "NumericLiteral", @@ -1064,9 +1034,7 @@ "start": 971, "end": 978 }, - "ctxt": 0, - "value": "prop10a", - "optional": false + "value": "prop10a" }, "value": { "type": "NumericLiteral", @@ -1086,9 +1054,7 @@ "start": 995, "end": 1002 }, - "ctxt": 0, - "value": "prop10b", - "optional": false + "value": "prop10b" }, "value": { "type": "NumericLiteral", @@ -1172,9 +1138,7 @@ "start": 1056, "end": 1063 }, - "ctxt": 0, - "value": "prop11a", - "optional": false + "value": "prop11a" }, "value": { "type": "NumericLiteral", @@ -1194,9 +1158,7 @@ "start": 1080, "end": 1087 }, - "ctxt": 0, - "value": "prop11b", - "optional": false + "value": "prop11b" }, "value": { "type": "NumericLiteral", @@ -1280,9 +1242,7 @@ "start": 1141, "end": 1148 }, - "ctxt": 0, - "value": "prop12a", - "optional": false + "value": "prop12a" }, "value": { "type": "NumericLiteral", @@ -1302,9 +1262,7 @@ "start": 1165, "end": 1172 }, - "ctxt": 0, - "value": "prop12b", - "optional": false + "value": "prop12b" }, "value": { "type": "NumericLiteral", @@ -1388,9 +1346,7 @@ "start": 1226, "end": 1233 }, - "ctxt": 0, - "value": "prop13a", - "optional": false + "value": "prop13a" }, "value": { "type": "NumericLiteral", @@ -1410,9 +1366,7 @@ "start": 1250, "end": 1257 }, - "ctxt": 0, - "value": "prop13b", - "optional": false + "value": "prop13b" }, "value": { "type": "NumericLiteral", @@ -1496,9 +1450,7 @@ "start": 1311, "end": 1318 }, - "ctxt": 0, - "value": "prop14a", - "optional": false + "value": "prop14a" }, "value": { "type": "NumericLiteral", @@ -1518,9 +1470,7 @@ "start": 1335, "end": 1342 }, - "ctxt": 0, - "value": "prop14b", - "optional": false + "value": "prop14b" }, "value": { "type": "NumericLiteral", @@ -1604,9 +1554,7 @@ "start": 1396, "end": 1403 }, - "ctxt": 0, - "value": "prop15a", - "optional": false + "value": "prop15a" }, "value": { "type": "NumericLiteral", @@ -1626,9 +1574,7 @@ "start": 1420, "end": 1427 }, - "ctxt": 0, - "value": "prop15b", - "optional": false + "value": "prop15b" }, "value": { "type": "NumericLiteral", @@ -1712,9 +1658,7 @@ "start": 1481, "end": 1488 }, - "ctxt": 0, - "value": "prop16a", - "optional": false + "value": "prop16a" }, "value": { "type": "NumericLiteral", @@ -1734,9 +1678,7 @@ "start": 1505, "end": 1512 }, - "ctxt": 0, - "value": "prop16b", - "optional": false + "value": "prop16b" }, "value": { "type": "NumericLiteral", @@ -1820,9 +1762,7 @@ "start": 1566, "end": 1573 }, - "ctxt": 0, - "value": "prop17a", - "optional": false + "value": "prop17a" }, "value": { "type": "NumericLiteral", @@ -1842,9 +1782,7 @@ "start": 1590, "end": 1597 }, - "ctxt": 0, - "value": "prop17b", - "optional": false + "value": "prop17b" }, "value": { "type": "NumericLiteral", @@ -1928,9 +1866,7 @@ "start": 1651, "end": 1658 }, - "ctxt": 0, - "value": "prop18a", - "optional": false + "value": "prop18a" }, "value": { "type": "NumericLiteral", @@ -1950,9 +1886,7 @@ "start": 1675, "end": 1682 }, - "ctxt": 0, - "value": "prop18b", - "optional": false + "value": "prop18b" }, "value": { "type": "NumericLiteral", @@ -2036,9 +1970,7 @@ "start": 1736, "end": 1743 }, - "ctxt": 0, - "value": "prop19a", - "optional": false + "value": "prop19a" }, "value": { "type": "NumericLiteral", @@ -2058,9 +1990,7 @@ "start": 1760, "end": 1767 }, - "ctxt": 0, - "value": "prop19b", - "optional": false + "value": "prop19b" }, "value": { "type": "NumericLiteral", @@ -2144,9 +2074,7 @@ "start": 1821, "end": 1828 }, - "ctxt": 0, - "value": "prop20a", - "optional": false + "value": "prop20a" }, "value": { "type": "NumericLiteral", @@ -2166,9 +2094,7 @@ "start": 1845, "end": 1852 }, - "ctxt": 0, - "value": "prop20b", - "optional": false + "value": "prop20b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json index fe91a22229e9..b1ef8c4d7367 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadRepeatedNullCheckPerf.json @@ -1095,9 +1095,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1126,9 +1124,7 @@ "start": 781, "end": 782 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "CallExpression", @@ -1165,9 +1161,7 @@ "start": 791, "end": 792 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -1176,9 +1170,7 @@ "start": 793, "end": 801 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1231,9 +1223,7 @@ "start": 825, "end": 826 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -1262,9 +1252,7 @@ "start": 846, "end": 847 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "CallExpression", @@ -1301,9 +1289,7 @@ "start": 856, "end": 857 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -1312,9 +1298,7 @@ "start": 858, "end": 866 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1367,9 +1351,7 @@ "start": 890, "end": 891 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1398,9 +1380,7 @@ "start": 911, "end": 912 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -1437,9 +1417,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "property": { @@ -1448,9 +1426,7 @@ "start": 923, "end": 931 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1503,9 +1479,7 @@ "start": 955, "end": 956 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -1534,9 +1508,7 @@ "start": 976, "end": 977 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "CallExpression", @@ -1573,9 +1545,7 @@ "start": 986, "end": 987 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "property": { @@ -1584,9 +1554,7 @@ "start": 988, "end": 996 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1639,9 +1607,7 @@ "start": 1020, "end": 1021 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -1670,9 +1636,7 @@ "start": 1041, "end": 1042 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "CallExpression", @@ -1709,9 +1673,7 @@ "start": 1051, "end": 1052 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "property": { @@ -1720,9 +1682,7 @@ "start": 1053, "end": 1061 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1775,9 +1735,7 @@ "start": 1085, "end": 1086 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -1806,9 +1764,7 @@ "start": 1106, "end": 1107 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "CallExpression", @@ -1845,9 +1801,7 @@ "start": 1116, "end": 1117 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "property": { @@ -1856,9 +1810,7 @@ "start": 1118, "end": 1126 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1911,9 +1863,7 @@ "start": 1150, "end": 1151 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "right": { @@ -1942,9 +1892,7 @@ "start": 1171, "end": 1172 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "CallExpression", @@ -1981,9 +1929,7 @@ "start": 1181, "end": 1182 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "property": { @@ -1992,9 +1938,7 @@ "start": 1183, "end": 1191 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2047,9 +1991,7 @@ "start": 1215, "end": 1216 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "right": { @@ -2078,9 +2020,7 @@ "start": 1236, "end": 1237 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "CallExpression", @@ -2117,9 +2057,7 @@ "start": 1246, "end": 1247 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "property": { @@ -2128,9 +2066,7 @@ "start": 1248, "end": 1256 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2183,9 +2119,7 @@ "start": 1280, "end": 1281 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "right": { @@ -2214,9 +2148,7 @@ "start": 1301, "end": 1302 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "CallExpression", @@ -2253,9 +2185,7 @@ "start": 1311, "end": 1312 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "property": { @@ -2264,9 +2194,7 @@ "start": 1313, "end": 1321 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2319,9 +2247,7 @@ "start": 1345, "end": 1346 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { @@ -2350,9 +2276,7 @@ "start": 1366, "end": 1367 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "CallExpression", @@ -2389,9 +2313,7 @@ "start": 1376, "end": 1377 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "property": { @@ -2400,9 +2322,7 @@ "start": 1378, "end": 1386 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2455,9 +2375,7 @@ "start": 1410, "end": 1411 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } }, "right": { @@ -2486,9 +2404,7 @@ "start": 1431, "end": 1432 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" }, "value": { "type": "CallExpression", @@ -2525,9 +2441,7 @@ "start": 1441, "end": 1442 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } }, "property": { @@ -2536,9 +2450,7 @@ "start": 1443, "end": 1451 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2591,9 +2503,7 @@ "start": 1475, "end": 1476 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" } }, "right": { @@ -2622,9 +2532,7 @@ "start": 1496, "end": 1497 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" }, "value": { "type": "CallExpression", @@ -2661,9 +2569,7 @@ "start": 1506, "end": 1507 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" } }, "property": { @@ -2672,9 +2578,7 @@ "start": 1508, "end": 1516 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2727,9 +2631,7 @@ "start": 1540, "end": 1541 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -2758,9 +2660,7 @@ "start": 1561, "end": 1562 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "CallExpression", @@ -2797,9 +2697,7 @@ "start": 1571, "end": 1572 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "property": { @@ -2808,9 +2706,7 @@ "start": 1573, "end": 1581 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2863,9 +2759,7 @@ "start": 1605, "end": 1606 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -2894,9 +2788,7 @@ "start": 1626, "end": 1627 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "CallExpression", @@ -2933,9 +2825,7 @@ "start": 1636, "end": 1637 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "property": { @@ -2944,9 +2834,7 @@ "start": 1638, "end": 1646 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2999,9 +2887,7 @@ "start": 1670, "end": 1671 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } }, "right": { @@ -3030,9 +2916,7 @@ "start": 1691, "end": 1692 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "CallExpression", @@ -3069,9 +2953,7 @@ "start": 1701, "end": 1702 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } }, "property": { @@ -3080,9 +2962,7 @@ "start": 1703, "end": 1711 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3135,9 +3015,7 @@ "start": 1735, "end": 1736 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -3166,9 +3044,7 @@ "start": 1756, "end": 1757 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "CallExpression", @@ -3205,9 +3081,7 @@ "start": 1766, "end": 1767 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "property": { @@ -3216,9 +3090,7 @@ "start": 1768, "end": 1776 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3271,9 +3143,7 @@ "start": 1800, "end": 1801 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -3302,9 +3172,7 @@ "start": 1821, "end": 1822 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "CallExpression", @@ -3341,9 +3209,7 @@ "start": 1831, "end": 1832 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "property": { @@ -3352,9 +3218,7 @@ "start": 1833, "end": 1841 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3407,9 +3271,7 @@ "start": 1865, "end": 1866 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "right": { @@ -3438,9 +3300,7 @@ "start": 1886, "end": 1887 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "CallExpression", @@ -3477,9 +3337,7 @@ "start": 1896, "end": 1897 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "property": { @@ -3488,9 +3346,7 @@ "start": 1898, "end": 1906 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3543,9 +3399,7 @@ "start": 1930, "end": 1931 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -3574,9 +3428,7 @@ "start": 1951, "end": 1952 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "CallExpression", @@ -3613,9 +3465,7 @@ "start": 1961, "end": 1962 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "property": { @@ -3624,9 +3474,7 @@ "start": 1963, "end": 1971 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3679,9 +3527,7 @@ "start": 1995, "end": 1996 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -3710,9 +3556,7 @@ "start": 2016, "end": 2017 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "CallExpression", @@ -3749,9 +3593,7 @@ "start": 2026, "end": 2027 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "property": { @@ -3760,9 +3602,7 @@ "start": 2028, "end": 2036 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3815,9 +3655,7 @@ "start": 2060, "end": 2061 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "right": { @@ -3846,9 +3684,7 @@ "start": 2081, "end": 2082 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": { "type": "CallExpression", @@ -3885,9 +3721,7 @@ "start": 2091, "end": 2092 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "property": { @@ -3896,9 +3730,7 @@ "start": 2093, "end": 2101 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3951,9 +3783,7 @@ "start": 2125, "end": 2126 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" } }, "right": { @@ -3982,9 +3812,7 @@ "start": 2146, "end": 2147 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": { "type": "CallExpression", @@ -4021,9 +3849,7 @@ "start": 2156, "end": 2157 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" } }, "property": { @@ -4032,9 +3858,7 @@ "start": 2158, "end": 2166 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -4087,9 +3911,7 @@ "start": 2190, "end": 2191 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "right": { @@ -4118,9 +3940,7 @@ "start": 2211, "end": 2212 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": { "type": "CallExpression", @@ -4157,9 +3977,7 @@ "start": 2221, "end": 2222 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "property": { @@ -4168,9 +3986,7 @@ "start": 2223, "end": 2231 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -4223,9 +4039,7 @@ "start": 2255, "end": 2256 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -4254,9 +4068,7 @@ "start": 2276, "end": 2277 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "CallExpression", @@ -4293,9 +4105,7 @@ "start": 2286, "end": 2287 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -4304,9 +4114,7 @@ "start": 2288, "end": 2296 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -4359,9 +4167,7 @@ "start": 2320, "end": 2321 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -4390,9 +4196,7 @@ "start": 2341, "end": 2342 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "CallExpression", @@ -4429,9 +4233,7 @@ "start": 2351, "end": 2352 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "property": { @@ -4440,9 +4242,7 @@ "start": 2353, "end": 2361 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -4495,9 +4295,7 @@ "start": 2385, "end": 2386 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -4526,9 +4324,7 @@ "start": 2406, "end": 2407 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "CallExpression", @@ -4565,9 +4361,7 @@ "start": 2416, "end": 2417 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "property": { @@ -4576,9 +4370,7 @@ "start": 2418, "end": 2426 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -4664,9 +4456,7 @@ "start": 2458, "end": 2459 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4686,9 +4476,7 @@ "start": 2464, "end": 2465 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -4708,9 +4496,7 @@ "start": 2470, "end": 2471 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json index 2bbda760f156..21f97c8804c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.json @@ -132,9 +132,7 @@ "start": 83, "end": 86 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -171,9 +169,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "thisParam": null, "param": { @@ -312,9 +308,7 @@ "start": 158, "end": 161 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -351,9 +345,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "thisParam": null, "param": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json index 09435b8f7289..be58dd90b24b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json @@ -1751,9 +1751,7 @@ "start": 1252, "end": 1257 }, - "ctxt": 0, - "value": "title", - "optional": false + "value": "title" }, "value": { "type": "StringLiteral", @@ -1773,9 +1771,7 @@ "start": 1273, "end": 1285 }, - "ctxt": 0, - "value": "yearReleased", - "optional": false + "value": "yearReleased" }, "value": { "type": "NumericLiteral", @@ -1876,9 +1872,7 @@ "start": 1394, "end": 1399 }, - "ctxt": 0, - "value": "title", - "optional": false + "value": "title" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json index d43e6716ce49..8ebcf67dc45e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json @@ -37,9 +37,7 @@ "start": 46, "end": 49 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 86, "end": 89 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -319,9 +315,7 @@ "start": 176, "end": 183 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" }, "function": { "params": [], @@ -364,9 +358,7 @@ "start": 194, "end": 198 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -588,9 +580,7 @@ "start": 255, "end": 262 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], @@ -673,9 +663,7 @@ "start": 281, "end": 285 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -1097,9 +1085,7 @@ "start": 469, "end": 476 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], @@ -1182,9 +1168,7 @@ "start": 495, "end": 499 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -1361,9 +1345,7 @@ "start": 597, "end": 604 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" }, "value": { "type": "ArrowFunctionExpression", @@ -1396,9 +1378,7 @@ "start": 621, "end": 625 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "NewExpression", @@ -1497,9 +1477,7 @@ "start": 655, "end": 662 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], @@ -1582,9 +1560,7 @@ "start": 681, "end": 685 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -1968,9 +1944,7 @@ "start": 835, "end": 842 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObject.json b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObject.json index d57d811599be..67d72daef355 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObject.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObject.json @@ -37,9 +37,7 @@ "start": 109, "end": 116 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" }, "function": { "params": [], @@ -203,9 +201,7 @@ "start": 153, "end": 160 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], @@ -406,9 +402,7 @@ "start": 230, "end": 237 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], @@ -460,9 +454,7 @@ "start": 256, "end": 263 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" }, "value": { "type": "ArrowFunctionExpression", @@ -563,9 +555,7 @@ "start": 295, "end": 302 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], @@ -728,9 +718,7 @@ "start": 357, "end": 364 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat.json b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat.json index 33c7eeadcfaa..252159b757ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat.json @@ -286,9 +286,7 @@ "start": 109, "end": 117 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -510,9 +508,7 @@ "start": 186, "end": 194 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat2.json b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat2.json index cf6432f67ccc..de2de411bc88 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfObjectAssignmentCompat2.json @@ -286,9 +286,7 @@ "start": 114, "end": 122 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -527,9 +525,7 @@ "start": 206, "end": 214 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json index ce9979830f79..e06ac73fd46d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json @@ -37,9 +37,7 @@ "start": 103, "end": 106 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -186,9 +184,7 @@ "start": 140, "end": 148 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -321,9 +317,7 @@ "start": 189, "end": 192 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -570,9 +564,7 @@ "start": 268, "end": 276 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -705,9 +697,7 @@ "start": 317, "end": 320 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -820,9 +810,7 @@ "start": 356, "end": 359 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -896,9 +884,7 @@ "start": 378, "end": 386 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1031,9 +1017,7 @@ "start": 428, "end": 431 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json index f69ae120b1e5..3a685467019d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureAppearsToBeFunctionType.json @@ -309,9 +309,7 @@ "start": 215, "end": 220 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -584,9 +582,7 @@ "start": 307, "end": 312 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json index 19b12e7173a3..c37713fd7d6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json @@ -562,9 +562,7 @@ "start": 336, "end": 341 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -720,9 +718,7 @@ "start": 405, "end": 409 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -778,9 +774,7 @@ "start": 423, "end": 432 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false @@ -836,9 +830,7 @@ "start": 446, "end": 450 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -1303,9 +1295,7 @@ "start": 645, "end": 650 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -1461,9 +1451,7 @@ "start": 714, "end": 718 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -1519,9 +1507,7 @@ "start": 732, "end": 741 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false @@ -1577,9 +1563,7 @@ "start": 755, "end": 759 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json index 8c7f4a739bec..00b452b60b8d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfFunction.json @@ -437,9 +437,7 @@ "start": 269, "end": 274 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -595,9 +593,7 @@ "start": 338, "end": 342 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -653,9 +649,7 @@ "start": 356, "end": 365 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false @@ -1056,9 +1050,7 @@ "start": 521, "end": 526 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -1214,9 +1206,7 @@ "start": 590, "end": 594 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -1272,9 +1262,7 @@ "start": 608, "end": 617 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json index 4ca518e9a7ee..d8dc1b85467c 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureAppearsToBeFunctionType.json @@ -374,9 +374,7 @@ "start": 164, "end": 169 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -714,9 +712,7 @@ "start": 290, "end": 295 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json index 66982a11260b..95340702e39d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json @@ -562,9 +562,7 @@ "start": 241, "end": 246 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -720,9 +718,7 @@ "start": 310, "end": 314 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -778,9 +774,7 @@ "start": 328, "end": 337 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false @@ -836,9 +830,7 @@ "start": 351, "end": 355 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -1303,9 +1295,7 @@ "start": 555, "end": 560 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -1461,9 +1451,7 @@ "start": 624, "end": 628 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -1519,9 +1507,7 @@ "start": 642, "end": 651 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false @@ -1577,9 +1563,7 @@ "start": 665, "end": 669 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json index f33e86afc7a3..5bb1d75a270f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfFunction.json @@ -437,9 +437,7 @@ "start": 174, "end": 179 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -595,9 +593,7 @@ "start": 243, "end": 247 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -653,9 +649,7 @@ "start": 261, "end": 270 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false @@ -1056,9 +1050,7 @@ "start": 431, "end": 436 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "definite": false @@ -1214,9 +1206,7 @@ "start": 500, "end": 504 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "definite": false @@ -1272,9 +1262,7 @@ "start": 518, "end": 527 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty.json index 477511ba1e3e..6c0b954c78c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty.json @@ -37,9 +37,7 @@ "start": 46, "end": 50 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 59, "end": 63 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty2.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty2.json index 477511ba1e3e..6c0b954c78c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedProperty2.json @@ -37,9 +37,7 @@ "start": 46, "end": 50 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 59, "end": 63 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json index 94f91b06c4f6..852de3232b19 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithRecursiveWrappedPropertyCheckedNominally.json @@ -37,9 +37,7 @@ "start": 100, "end": 104 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 113, "end": 117 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { @@ -250,9 +246,7 @@ "start": 159, "end": 163 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -302,9 +296,7 @@ "start": 172, "end": 176 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json index 1f7d67eb5976..aa3e5885cba6 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json @@ -230,9 +230,7 @@ "start": 282, "end": 285 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json index 3ee91922de02..18bf982e23e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 122, "end": 125 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -440,9 +434,7 @@ "start": 201, "end": 204 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json index a35b0b4bfd6f..2c55a676c759 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity2.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 123, "end": 126 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -499,9 +493,7 @@ "start": 213, "end": 216 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "MemberExpression", @@ -525,9 +517,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json index 1531a1a33c3a..eca562946526 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -172,9 +170,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -307,9 +303,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -843,9 +837,7 @@ "start": 337, "end": 340 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json index 96f2dc392bea..a5a3023aef4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -172,9 +170,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -307,9 +303,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -853,9 +847,7 @@ "start": 336, "end": 339 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json index bf356c1352f4..2cff070a5790 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -172,9 +170,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -340,9 +336,7 @@ "start": 187, "end": 190 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -944,9 +938,7 @@ "start": 365, "end": 368 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json index 9906e13b193b..f304077a2d06 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -122,9 +120,7 @@ "start": 87, "end": 90 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -207,9 +203,7 @@ "start": 115, "end": 118 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -342,9 +336,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -427,9 +419,7 @@ "start": 194, "end": 197 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -512,9 +502,7 @@ "start": 222, "end": 225 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -647,9 +635,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -732,9 +718,7 @@ "start": 304, "end": 307 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -817,9 +801,7 @@ "start": 332, "end": 335 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -922,9 +904,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1686,9 +1666,7 @@ "start": 639, "end": 642 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json index c427687538fd..59261d1b5469 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures.json @@ -38,9 +38,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -129,9 +127,7 @@ "start": 103, "end": 114 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -220,9 +216,7 @@ "start": 150, "end": 161 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json index 72bd4ce00e4c..128954d5807a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json @@ -38,9 +38,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -144,9 +142,7 @@ "start": 119, "end": 130 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -614,9 +610,7 @@ "start": 284, "end": 287 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json index 50a04b90389e..b16b24120146 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json @@ -38,9 +38,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -177,9 +175,7 @@ "start": 130, "end": 141 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -705,9 +701,7 @@ "start": 313, "end": 316 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json index 465232d7a56b..9788fd5053da 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -222,9 +220,7 @@ "start": 112, "end": 115 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -407,9 +403,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1043,9 +1037,7 @@ "start": 309, "end": 312 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json index 82d409e039ff..d3bf9c6cf49d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignatures2.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -287,9 +285,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -537,9 +533,7 @@ "start": 183, "end": 186 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1409,9 +1403,7 @@ "start": 363, "end": 366 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json index 5f6efc4bd0f5..213fdc26c622 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -229,9 +227,7 @@ "start": 443, "end": 446 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -437,9 +433,7 @@ "start": 513, "end": 516 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1117,9 +1111,7 @@ "start": 733, "end": 736 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json index ba95c9cbe465..53bb2786ac81 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -311,9 +309,7 @@ "start": 475, "end": 478 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -601,9 +597,7 @@ "start": 564, "end": 567 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -875,9 +869,7 @@ "start": 653, "end": 656 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1859,9 +1851,7 @@ "start": 936, "end": 939 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json index 69b5984ad6b4..96aa3da58471 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json @@ -37,9 +37,7 @@ "start": 348, "end": 351 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 374, "end": 377 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -572,9 +568,7 @@ "start": 538, "end": 541 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -846,9 +840,7 @@ "start": 652, "end": 655 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1120,9 +1112,7 @@ "start": 740, "end": 743 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1394,9 +1384,7 @@ "start": 835, "end": 838 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2418,9 +2406,7 @@ "start": 1126, "end": 1129 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json index 559a831034e7..4767e10d20b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -212,9 +210,7 @@ "start": 408, "end": 411 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -387,9 +383,7 @@ "start": 463, "end": 466 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1013,9 +1007,7 @@ "start": 624, "end": 627 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json index 83531a35baa6..0e2477c06827 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -229,9 +227,7 @@ "start": 434, "end": 437 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -421,9 +417,7 @@ "start": 502, "end": 505 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1115,9 +1109,7 @@ "start": 702, "end": 705 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json index 5e3c653f8ea8..ee1d8b756463 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -222,9 +220,7 @@ "start": 115, "end": 118 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -429,9 +425,7 @@ "start": 171, "end": 174 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1329,9 +1323,7 @@ "start": 348, "end": 351 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json index 4c6b509bd9bf..fa11d762565b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -222,9 +220,7 @@ "start": 112, "end": 115 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -407,9 +403,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1043,9 +1037,7 @@ "start": 309, "end": 312 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json index 3c34aa3c2c4b..193367826239 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -265,9 +263,7 @@ "start": 410, "end": 413 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -493,9 +489,7 @@ "start": 467, "end": 470 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1277,9 +1271,7 @@ "start": 642, "end": 645 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json index df7939be8063..c89de4be99b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -287,9 +285,7 @@ "start": 416, "end": 419 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -537,9 +533,7 @@ "start": 476, "end": 479 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1409,9 +1403,7 @@ "start": 660, "end": 663 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json index 1816b0bbf492..e32a2a386fe9 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.json @@ -37,9 +37,7 @@ "start": 350, "end": 353 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -287,9 +285,7 @@ "start": 416, "end": 419 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -537,9 +533,7 @@ "start": 475, "end": 478 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1409,9 +1403,7 @@ "start": 658, "end": 661 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json index f037ed756a16..8fd436109d6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json @@ -38,9 +38,7 @@ "start": 375, "end": 386 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -217,9 +215,7 @@ "start": 445, "end": 456 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -831,9 +827,7 @@ "start": 665, "end": 668 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json index 810d827a8f1c..4889d5fab6b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json @@ -38,9 +38,7 @@ "start": 388, "end": 399 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -299,9 +297,7 @@ "start": 477, "end": 488 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -544,9 +540,7 @@ "start": 566, "end": 577 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1462,9 +1456,7 @@ "start": 849, "end": 852 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json index 652f76a32194..0c4cbdf023a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json @@ -37,9 +37,7 @@ "start": 348, "end": 351 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 374, "end": 377 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -573,9 +569,7 @@ "start": 566, "end": 577 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -818,9 +812,7 @@ "start": 654, "end": 665 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1063,9 +1055,7 @@ "start": 749, "end": 760 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2021,9 +2011,7 @@ "start": 1040, "end": 1043 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json index 8d3e5b191876..8ed81b684676 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.json @@ -38,9 +38,7 @@ "start": 353, "end": 364 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -184,9 +182,7 @@ "start": 408, "end": 419 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -744,9 +740,7 @@ "start": 568, "end": 571 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json index 549d9492732d..a564ac67650b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.json @@ -38,9 +38,7 @@ "start": 366, "end": 377 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -201,9 +199,7 @@ "start": 434, "end": 445 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -829,9 +825,7 @@ "start": 633, "end": 636 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json index 4f093cb8e158..f8c896009373 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.json @@ -38,9 +38,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -206,9 +204,7 @@ "start": 126, "end": 137 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1198,9 +1194,7 @@ "start": 335, "end": 338 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json index bd6f32be3c2e..8df7708c05cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.json @@ -38,9 +38,7 @@ "start": 62, "end": 73 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -184,9 +182,7 @@ "start": 117, "end": 128 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -822,9 +818,7 @@ "start": 278, "end": 281 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json index bbc4e24336a2..65b09979e7e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.json @@ -38,9 +38,7 @@ "start": 353, "end": 364 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -227,9 +225,7 @@ "start": 415, "end": 426 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1013,9 +1009,7 @@ "start": 604, "end": 607 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json index 57d7152cfcd0..89d5ea0d5f79 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.json @@ -38,9 +38,7 @@ "start": 356, "end": 367 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -249,9 +247,7 @@ "start": 421, "end": 432 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1177,9 +1173,7 @@ "start": 629, "end": 632 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json index cc1e47d7693c..dac5a38d7ba6 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.json @@ -38,9 +38,7 @@ "start": 356, "end": 367 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -249,9 +247,7 @@ "start": 420, "end": 431 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1177,9 +1173,7 @@ "start": 628, "end": 631 }, - "ctxt": 0, - "value": "new", - "optional": false + "value": "new" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json index dd506a2173b8..cbedc1b84cbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers2.json @@ -37,9 +37,7 @@ "start": 58, "end": 61 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json index b3f9caf902f6..f5fe50696f9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json @@ -37,9 +37,7 @@ "start": 59, "end": 62 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 122, "end": 125 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -440,9 +434,7 @@ "start": 203, "end": 206 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json index ea02f0802dc1..c99a3ba4d1ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json @@ -37,9 +37,7 @@ "start": 67, "end": 70 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -510,9 +504,7 @@ "start": 273, "end": 276 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json index 39a7638afb76..b9e93a747d77 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates2.json @@ -37,9 +37,7 @@ "start": 70, "end": 73 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates3.json index 08862f8e059c..073dc8b8466e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates3.json @@ -115,9 +115,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -200,9 +198,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, @@ -414,9 +410,7 @@ "start": 223, "end": 224 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -523,9 +517,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json index bc0e8fcb0a8b..e03b44d4c9c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json @@ -37,9 +37,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 103, "end": 106 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 143, "end": 146 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -440,9 +434,7 @@ "start": 222, "end": 225 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json index d45a936de9bc..0f93ece87f2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json @@ -635,9 +635,7 @@ "start": 319, "end": 322 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json index 2c1f2a5baf8b..ef9d1f642e90 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers2.json @@ -37,9 +37,7 @@ "start": 58, "end": 61 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -832,9 +828,7 @@ "start": 391, "end": 394 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "TsTypeAssertion", diff --git a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json index 7cf5be7beb74..a4e32c77af30 100644 --- a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json @@ -228,9 +228,7 @@ "start": 972, "end": 973 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -250,9 +248,7 @@ "start": 989, "end": 990 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -364,9 +360,7 @@ "start": 1634, "end": 1635 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -386,9 +380,7 @@ "start": 1651, "end": 1652 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json index 7cf5be7beb74..a4e32c77af30 100644 --- a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json +++ b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json @@ -228,9 +228,7 @@ "start": 972, "end": 973 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -250,9 +248,7 @@ "start": 989, "end": 990 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", @@ -364,9 +360,7 @@ "start": 1634, "end": 1635 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -386,9 +380,7 @@ "start": 1651, "end": 1652 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json b/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json index d01fe4ea66f7..213706862f88 100644 --- a/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json @@ -848,9 +848,7 @@ "start": 564, "end": 575 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -1034,9 +1032,7 @@ "start": 651, "end": 662 }, - "ctxt": 0, - "value": "toPrecision", - "optional": false + "value": "toPrecision" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json index 69568d205ebe..7afd0abbf998 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json @@ -277,9 +277,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -299,9 +297,7 @@ "start": 86, "end": 87 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -321,9 +317,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "BooleanLiteral", @@ -382,9 +376,7 @@ "start": 112, "end": 113 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -403,9 +395,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -425,9 +415,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json index 8a40aa49b346..eb16821ea28c 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json @@ -356,9 +356,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -378,9 +376,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -400,9 +396,7 @@ "start": 122, "end": 123 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "BooleanLiteral", @@ -461,9 +455,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -482,9 +474,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -504,9 +494,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInArrow.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInArrow.json index 44ee9bd63697..b4a508a66f02 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInArrow.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInArrow.json @@ -116,9 +116,7 @@ "start": 173, "end": 179 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json index 97276aabbd97..80e8b0f4d1c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json @@ -163,9 +163,7 @@ "start": 176, "end": 178 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" } }, "property": { @@ -174,9 +172,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -220,9 +216,7 @@ "start": 188, "end": 190 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" } }, "property": { @@ -231,9 +225,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "property": { @@ -242,9 +234,7 @@ "start": 193, "end": 197 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "arguments": [ @@ -313,9 +303,7 @@ "start": 212, "end": 213 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -352,9 +340,7 @@ "start": 223, "end": 225 }, - "ctxt": 0, - "value": "xp", - "optional": false + "value": "xp" } }, "consequent": { @@ -450,9 +436,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "body": { @@ -498,9 +482,7 @@ "start": 286, "end": 287 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" } }, "right": { @@ -552,9 +534,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "property": { @@ -563,9 +543,7 @@ "start": 300, "end": 306 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json index d2d56c1d6eb7..c74814261962 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json @@ -207,9 +207,7 @@ "start": 197, "end": 198 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } @@ -420,9 +418,7 @@ "start": 254, "end": 255 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json index ed85e01b0b49..f0e33b3a1d7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json @@ -207,9 +207,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json index 9a54c9bedade..f43db01744eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json @@ -209,9 +209,7 @@ "start": 198, "end": 199 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } @@ -392,9 +390,7 @@ "start": 245, "end": 246 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.json index 419a1e0793e6..aede08db8d6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.json @@ -209,9 +209,7 @@ "start": 181, "end": 182 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json index c70e671691ae..b0071a719820 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json @@ -37,9 +37,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -182,9 +180,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "typeAnnotation": { @@ -256,9 +252,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "typeAnnotation": { @@ -330,9 +324,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "typeAnnotation": { @@ -404,9 +396,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "typeAnnotation": { @@ -477,9 +467,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -499,9 +487,7 @@ "start": 277, "end": 283 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -558,9 +544,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -580,9 +564,7 @@ "start": 299, "end": 305 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -667,9 +649,7 @@ "start": 327, "end": 333 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -754,9 +734,7 @@ "start": 353, "end": 359 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json index cb215b76a6b1..94c3f10bc563 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json @@ -587,9 +587,7 @@ "start": 322, "end": 327 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -620,9 +618,7 @@ "start": 333, "end": 339 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -754,9 +750,7 @@ "start": 387, "end": 392 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "TsAsExpression", @@ -793,9 +787,7 @@ "start": 398, "end": 404 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -1020,9 +1012,7 @@ "start": 505, "end": 510 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -1053,9 +1043,7 @@ "start": 516, "end": 522 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1187,9 +1175,7 @@ "start": 570, "end": 575 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -1347,9 +1333,7 @@ "start": 632, "end": 637 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -1520,9 +1504,7 @@ "start": 701, "end": 706 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -1566,9 +1548,7 @@ "start": 713, "end": 717 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -1578,9 +1558,7 @@ "start": 718, "end": 724 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1712,9 +1690,7 @@ "start": 772, "end": 777 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -1758,9 +1734,7 @@ "start": 784, "end": 788 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -1910,9 +1884,7 @@ "start": 846, "end": 851 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "OptionalChainingExpression", @@ -1957,9 +1929,7 @@ "start": 859, "end": 863 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/optionalMethod.json b/crates/swc_ecma_parser/tests/tsc/optionalMethod.json index 09cdfc8b9703..081f6acf10d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalMethod.json @@ -37,9 +37,7 @@ "start": 65, "end": 71 }, - "ctxt": 0, - "value": "method", - "optional": true + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/optionalMethodDeclarations.json b/crates/swc_ecma_parser/tests/tsc/optionalMethodDeclarations.json index f9fc740b24f8..f7edef378186 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalMethodDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalMethodDeclarations.json @@ -37,9 +37,7 @@ "start": 184, "end": 190 }, - "ctxt": 0, - "value": "method", - "optional": true + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/optionalMethods.json b/crates/swc_ecma_parser/tests/tsc/optionalMethods.json index 9cdcfd51e582..108ddb9ff0b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalMethods.json @@ -276,9 +276,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -310,9 +308,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -344,9 +340,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -378,9 +372,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -440,9 +432,7 @@ "start": 212, "end": 213 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -508,9 +498,7 @@ "start": 232, "end": 233 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "right": { @@ -542,9 +530,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -610,9 +596,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "consequent": { @@ -644,9 +628,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -705,9 +687,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -747,9 +727,7 @@ "start": 308, "end": 309 }, - "ctxt": 0, - "value": "b", - "optional": true + "value": "b" }, "value": null, "typeAnnotation": { @@ -789,9 +767,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "c", - "optional": true + "value": "c" }, "value": { "type": "NumericLiteral", @@ -826,9 +802,7 @@ "start": 336, "end": 347 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -930,9 +904,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -992,9 +964,7 @@ "start": 423, "end": 424 }, - "ctxt": 0, - "value": "g", - "optional": true + "value": "g" }, "function": { "params": [], @@ -1043,9 +1013,7 @@ "start": 484, "end": 485 }, - "ctxt": 0, - "value": "h", - "optional": true + "value": "h" }, "function": { "params": [], @@ -1200,9 +1168,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1234,9 +1200,7 @@ "start": 558, "end": 559 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1268,9 +1232,7 @@ "start": 567, "end": 568 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1302,9 +1264,7 @@ "start": 576, "end": 577 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1336,9 +1296,7 @@ "start": 585, "end": 586 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } }, @@ -1370,9 +1328,7 @@ "start": 594, "end": 595 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -1404,9 +1360,7 @@ "start": 603, "end": 604 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -1466,9 +1420,7 @@ "start": 621, "end": 622 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1534,9 +1486,7 @@ "start": 641, "end": 642 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "right": { @@ -1568,9 +1518,7 @@ "start": 648, "end": 649 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -1636,9 +1584,7 @@ "start": 668, "end": 669 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "consequent": { @@ -1670,9 +1616,7 @@ "start": 674, "end": 675 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -1748,9 +1692,7 @@ "start": 698, "end": 699 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "right": { @@ -1782,9 +1724,7 @@ "start": 705, "end": 706 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "arguments": [], @@ -1850,9 +1790,7 @@ "start": 725, "end": 726 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "consequent": { @@ -1884,9 +1822,7 @@ "start": 731, "end": 732 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "arguments": [], @@ -1945,9 +1881,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "a", - "optional": true + "value": "a" }, "value": null, "typeAnnotation": { @@ -1987,9 +1921,7 @@ "start": 776, "end": 777 }, - "ctxt": 0, - "value": "f", - "optional": true + "value": "f" }, "function": { "params": [], @@ -2065,9 +1997,7 @@ "start": 826, "end": 827 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -2101,9 +2031,7 @@ "start": 837, "end": 838 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json b/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json index cc1a6886eda5..35fc3de5a49f 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json @@ -187,9 +187,7 @@ "start": 148, "end": 157 }, - "ctxt": 0, - "value": "required1", - "optional": false + "value": "required1" }, "value": { "type": "StringLiteral", @@ -274,9 +272,7 @@ "start": 192, "end": 201 }, - "ctxt": 0, - "value": "required1", - "optional": false + "value": "required1" }, "value": { "type": "StringLiteral", @@ -296,9 +292,7 @@ "start": 212, "end": 220 }, - "ctxt": 0, - "value": "optional", - "optional": false + "value": "optional" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/optionalProperties02.json b/crates/swc_ecma_parser/tests/tsc/optionalProperties02.json index 9b84081406fd..889bd1703453 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalProperties02.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalProperties02.json @@ -131,9 +131,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/optionalProperty.json b/crates/swc_ecma_parser/tests/tsc/optionalProperty.json index 75b88ec588ec..9f8afe9f2e80 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalProperty.json @@ -37,9 +37,7 @@ "start": 96, "end": 100 }, - "ctxt": 0, - "value": "prop", - "optional": true + "value": "prop" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolution.json b/crates/swc_ecma_parser/tests/tsc/overloadResolution.json index 5c734c7c931f..6d665861251f 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolution.json @@ -37,9 +37,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -134,9 +130,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -198,9 +192,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -262,9 +254,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -4079,9 +4069,7 @@ "start": 2972, "end": 2979 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -4196,9 +4184,7 @@ "start": 3005, "end": 3011 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json b/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json index 95cfa842a199..912cfa09bc20 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json @@ -37,9 +37,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -134,9 +130,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -198,9 +192,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -262,9 +254,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -327,9 +317,7 @@ "start": 305, "end": 316 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -383,9 +371,7 @@ "start": 333, "end": 344 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -439,9 +425,7 @@ "start": 361, "end": 372 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -576,9 +560,7 @@ "start": 592, "end": 603 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -665,9 +647,7 @@ "start": 631, "end": 642 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -764,9 +744,7 @@ "start": 665, "end": 676 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1160,9 +1138,7 @@ "start": 1261, "end": 1272 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1226,9 +1202,7 @@ "start": 1284, "end": 1295 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1368,9 +1342,7 @@ "start": 1324, "end": 1335 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1520,9 +1492,7 @@ "start": 1359, "end": 1370 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2126,9 +2096,7 @@ "start": 1970, "end": 1981 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2235,9 +2203,7 @@ "start": 1999, "end": 2010 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3049,9 +3015,7 @@ "start": 2807, "end": 2818 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -3147,9 +3111,7 @@ "start": 2848, "end": 2859 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -3245,9 +3207,7 @@ "start": 2889, "end": 2900 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3362,9 +3322,7 @@ "start": 2944, "end": 2951 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -3455,9 +3413,7 @@ "start": 2973, "end": 2979 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -3554,9 +3510,7 @@ "start": 3002, "end": 3006 }, - "ctxt": 0, - "value": "blah", - "optional": false + "value": "blah" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json b/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json index 133539ac50b0..52a0576101a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json @@ -37,9 +37,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -134,9 +130,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -198,9 +192,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -262,9 +254,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": null, "typeAnnotation": null, @@ -3940,9 +3930,7 @@ "start": 3023, "end": 3030 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -4057,9 +4045,7 @@ "start": 3060, "end": 3066 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/overloadTag2.json b/crates/swc_ecma_parser/tests/tsc/overloadTag2.json index 81688b6d98df..a1472449c6a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadTag2.json @@ -126,9 +126,7 @@ "start": 619, "end": 630 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/overloadTag3.json b/crates/swc_ecma_parser/tests/tsc/overloadTag3.json index 170efd9ebf5a..47cab7be05dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadTag3.json @@ -44,9 +44,7 @@ "start": 190, "end": 201 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -73,9 +71,7 @@ "start": 253, "end": 256 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/override1.json b/crates/swc_ecma_parser/tests/tsc/override1.json index c0995972f299..a26204bd90d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/override1.json +++ b/crates/swc_ecma_parser/tests/tsc/override1.json @@ -37,9 +37,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -116,9 +114,7 @@ "start": 89, "end": 93 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -222,9 +218,7 @@ "start": 145, "end": 148 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -301,9 +295,7 @@ "start": 169, "end": 173 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -380,9 +372,7 @@ "start": 203, "end": 206 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -495,9 +485,7 @@ "start": 247, "end": 250 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -625,9 +613,7 @@ "start": 330, "end": 333 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -704,9 +690,7 @@ "start": 362, "end": 366 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -783,9 +767,7 @@ "start": 404, "end": 407 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -906,9 +888,7 @@ "start": 504, "end": 507 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -951,9 +931,7 @@ "start": 519, "end": 522 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -996,9 +974,7 @@ "start": 535, "end": 538 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -1041,9 +1017,7 @@ "start": 558, "end": 562 }, - "ctxt": 0, - "value": "bazz", - "optional": false + "value": "bazz" }, "function": { "params": [], @@ -1103,9 +1077,7 @@ "start": 460, "end": 463 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1148,9 +1120,7 @@ "start": 475, "end": 478 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -1250,9 +1220,7 @@ "start": 625, "end": 628 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override10.json b/crates/swc_ecma_parser/tests/tsc/override10.json index 156621be4f6d..ecd1aa8194b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/override10.json +++ b/crates/swc_ecma_parser/tests/tsc/override10.json @@ -37,9 +37,7 @@ "start": 88, "end": 91 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -88,9 +86,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -166,9 +162,7 @@ "start": 189, "end": 192 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -217,9 +211,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override12.json b/crates/swc_ecma_parser/tests/tsc/override12.json index e10b15c92aba..4d45c12ea9ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/override12.json +++ b/crates/swc_ecma_parser/tests/tsc/override12.json @@ -37,9 +37,7 @@ "start": 78, "end": 80 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -113,9 +111,7 @@ "start": 129, "end": 131 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -189,9 +185,7 @@ "start": 180, "end": 182 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -275,9 +269,7 @@ "start": 230, "end": 232 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -337,9 +329,7 @@ "start": 276, "end": 278 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -413,9 +403,7 @@ "start": 330, "end": 332 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override13.json b/crates/swc_ecma_parser/tests/tsc/override13.json index c3fdea134eee..feb591738412 100644 --- a/crates/swc_ecma_parser/tests/tsc/override13.json +++ b/crates/swc_ecma_parser/tests/tsc/override13.json @@ -37,9 +37,7 @@ "start": 66, "end": 74 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 90, "end": 104 }, - "ctxt": 0, - "value": "staticProperty", - "optional": false + "value": "staticProperty" }, "value": { "type": "NumericLiteral", @@ -136,9 +132,7 @@ "start": 143, "end": 151 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "NumericLiteral", @@ -172,9 +166,7 @@ "start": 162, "end": 176 }, - "ctxt": 0, - "value": "staticProperty", - "optional": false + "value": "staticProperty" }, "value": { "type": "NumericLiteral", @@ -244,9 +236,7 @@ "start": 230, "end": 238 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "NumericLiteral", @@ -280,9 +270,7 @@ "start": 256, "end": 270 }, - "ctxt": 0, - "value": "staticProperty", - "optional": false + "value": "staticProperty" }, "value": { "type": "NumericLiteral", @@ -387,9 +375,7 @@ "start": 356, "end": 364 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "NumericLiteral", @@ -423,9 +409,7 @@ "start": 375, "end": 389 }, - "ctxt": 0, - "value": "staticProperty", - "optional": false + "value": "staticProperty" }, "value": { "type": "NumericLiteral", @@ -495,9 +479,7 @@ "start": 453, "end": 461 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "NumericLiteral", @@ -531,9 +513,7 @@ "start": 479, "end": 493 }, - "ctxt": 0, - "value": "staticProperty", - "optional": false + "value": "staticProperty" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/override14.json b/crates/swc_ecma_parser/tests/tsc/override14.json index abda9d5cbe9b..7bbd1312e82e 100644 --- a/crates/swc_ecma_parser/tests/tsc/override14.json +++ b/crates/swc_ecma_parser/tests/tsc/override14.json @@ -37,9 +37,7 @@ "start": 66, "end": 74 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 121, "end": 129 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/override15.json b/crates/swc_ecma_parser/tests/tsc/override15.json index 0701ad4bb5e1..800fe48492db 100644 --- a/crates/swc_ecma_parser/tests/tsc/override15.json +++ b/crates/swc_ecma_parser/tests/tsc/override15.json @@ -37,9 +37,7 @@ "start": 45, "end": 56 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 98, "end": 109 }, - "ctxt": 0, - "value": "doSomethang", - "optional": false + "value": "doSomethang" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override16.json b/crates/swc_ecma_parser/tests/tsc/override16.json index 948e211fd443..a6334073681a 100644 --- a/crates/swc_ecma_parser/tests/tsc/override16.json +++ b/crates/swc_ecma_parser/tests/tsc/override16.json @@ -37,9 +37,7 @@ "start": 71, "end": 74 }, - "ctxt": 0, - "value": "foo", - "optional": true + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/override17.json b/crates/swc_ecma_parser/tests/tsc/override17.json index 1588603935c8..2912561efc8d 100644 --- a/crates/swc_ecma_parser/tests/tsc/override17.json +++ b/crates/swc_ecma_parser/tests/tsc/override17.json @@ -37,9 +37,7 @@ "start": 112, "end": 114 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -113,9 +111,7 @@ "start": 163, "end": 165 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -189,9 +185,7 @@ "start": 214, "end": 216 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], @@ -275,9 +269,7 @@ "start": 264, "end": 266 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -337,9 +329,7 @@ "start": 310, "end": 312 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -413,9 +403,7 @@ "start": 364, "end": 366 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override18.json b/crates/swc_ecma_parser/tests/tsc/override18.json index 124bbc033101..34ef89ffa9b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/override18.json +++ b/crates/swc_ecma_parser/tests/tsc/override18.json @@ -37,9 +37,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "foo", - "optional": true + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/override19.json b/crates/swc_ecma_parser/tests/tsc/override19.json index 1f58fb9cd849..b1e7156e29f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/override19.json +++ b/crates/swc_ecma_parser/tests/tsc/override19.json @@ -527,9 +527,7 @@ "start": 271, "end": 282 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" }, "function": { "params": [], @@ -599,9 +597,7 @@ "start": 345, "end": 348 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -717,9 +713,7 @@ "start": 431, "end": 442 }, - "ctxt": 0, - "value": "doSomethang", - "optional": false + "value": "doSomethang" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override2.json b/crates/swc_ecma_parser/tests/tsc/override2.json index b720756a8cae..aa3778a97fa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/override2.json +++ b/crates/swc_ecma_parser/tests/tsc/override2.json @@ -37,9 +37,7 @@ "start": 85, "end": 88 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -122,9 +120,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -207,9 +203,7 @@ "start": 156, "end": 159 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -354,9 +348,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -483,9 +475,7 @@ "start": 345, "end": 348 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -584,9 +574,7 @@ "start": 397, "end": 400 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -635,9 +623,7 @@ "start": 414, "end": 417 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], @@ -730,9 +716,7 @@ "start": 468, "end": 471 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -831,9 +815,7 @@ "start": 501, "end": 504 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -932,9 +914,7 @@ "start": 525, "end": 528 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override20.json b/crates/swc_ecma_parser/tests/tsc/override20.json index ed6ca421a4fd..8502d58cc984 100644 --- a/crates/swc_ecma_parser/tests/tsc/override20.json +++ b/crates/swc_ecma_parser/tests/tsc/override20.json @@ -105,9 +105,7 @@ "start": 91, "end": 93 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -150,9 +148,7 @@ "start": 108, "end": 110 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -614,9 +610,7 @@ "start": 337, "end": 339 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [], @@ -666,9 +660,7 @@ "start": 358, "end": 360 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "arguments": [], @@ -701,9 +693,7 @@ "start": 374, "end": 376 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -753,9 +743,7 @@ "start": 395, "end": 397 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override3.json b/crates/swc_ecma_parser/tests/tsc/override3.json index 5ab451760357..7477870a49df 100644 --- a/crates/swc_ecma_parser/tests/tsc/override3.json +++ b/crates/swc_ecma_parser/tests/tsc/override3.json @@ -37,9 +37,7 @@ "start": 74, "end": 77 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -88,9 +86,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -166,9 +162,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -217,9 +211,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -304,9 +296,7 @@ "start": 215, "end": 218 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -363,9 +353,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -458,9 +446,7 @@ "start": 295, "end": 298 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -517,9 +503,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -612,9 +596,7 @@ "start": 366, "end": 369 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -671,9 +653,7 @@ "start": 394, "end": 397 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override4.json b/crates/swc_ecma_parser/tests/tsc/override4.json index ac6ded4a15fa..53e6c1e122bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/override4.json +++ b/crates/swc_ecma_parser/tests/tsc/override4.json @@ -37,9 +37,7 @@ "start": 66, "end": 68 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -87,9 +85,7 @@ "start": 86, "end": 88 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "NumericLiteral", @@ -137,9 +133,7 @@ "start": 106, "end": 108 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": null, "typeAnnotation": { @@ -195,9 +189,7 @@ "start": 126, "end": 128 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "value": null, "typeAnnotation": { @@ -253,9 +245,7 @@ "start": 146, "end": 149 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -332,9 +322,7 @@ "start": 169, "end": 173 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -438,9 +426,7 @@ "start": 216, "end": 218 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -488,9 +474,7 @@ "start": 245, "end": 247 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "NumericLiteral", @@ -538,9 +522,7 @@ "start": 265, "end": 267 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": null, "typeAnnotation": { @@ -596,9 +578,7 @@ "start": 294, "end": 296 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "value": null, "typeAnnotation": { @@ -654,9 +634,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -733,9 +711,7 @@ "start": 347, "end": 351 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -848,9 +824,7 @@ "start": 405, "end": 408 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -906,9 +880,7 @@ "start": 425, "end": 429 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/override6.json b/crates/swc_ecma_parser/tests/tsc/override6.json index ebab2940c18f..4a3ce0795e4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/override6.json +++ b/crates/swc_ecma_parser/tests/tsc/override6.json @@ -37,9 +37,7 @@ "start": 73, "end": 76 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "NumericLiteral", @@ -88,9 +86,7 @@ "start": 94, "end": 105 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -217,9 +213,7 @@ "start": 189, "end": 192 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -268,9 +262,7 @@ "start": 209, "end": 220 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/override8.json b/crates/swc_ecma_parser/tests/tsc/override8.json index ad8933bc80af..f820d978878a 100644 --- a/crates/swc_ecma_parser/tests/tsc/override8.json +++ b/crates/swc_ecma_parser/tests/tsc/override8.json @@ -37,9 +37,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -107,9 +105,7 @@ "start": 103, "end": 114 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -271,9 +267,7 @@ "start": 194, "end": 205 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -365,9 +359,7 @@ "start": 262, "end": 273 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -506,9 +498,7 @@ "start": 354, "end": 355 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -549,9 +539,7 @@ "start": 370, "end": 381 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -666,9 +654,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json b/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json index 7d7c022e3df9..4a82f7f2358a 100644 --- a/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/overrideInterfaceProperty.json @@ -621,9 +621,7 @@ "start": 379, "end": 383 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "function": { "params": [], @@ -719,9 +717,7 @@ "start": 432, "end": 436 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "value": { "type": "UnaryExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/overrideWithoutNoImplicitOverride1.json b/crates/swc_ecma_parser/tests/tsc/overrideWithoutNoImplicitOverride1.json index 1d9047acad13..701ea868c98c 100644 --- a/crates/swc_ecma_parser/tests/tsc/overrideWithoutNoImplicitOverride1.json +++ b/crates/swc_ecma_parser/tests/tsc/overrideWithoutNoImplicitOverride1.json @@ -43,9 +43,7 @@ "start": 81, "end": 86 }, - "ctxt": 0, - "value": "yadda", - "optional": false + "value": "yadda" }, "function": { "params": [], @@ -128,9 +126,7 @@ "start": 143, "end": 148 }, - "ctxt": 0, - "value": "yadda", - "optional": false + "value": "yadda" }, "function": { "params": [], @@ -221,9 +217,7 @@ "start": 209, "end": 212 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -306,9 +300,7 @@ "start": 287, "end": 290 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -357,9 +349,7 @@ "start": 314, "end": 317 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -476,9 +466,7 @@ "start": 413, "end": 416 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -561,9 +549,7 @@ "start": 495, "end": 498 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -612,9 +598,7 @@ "start": 526, "end": 529 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -709,9 +693,7 @@ "start": 589, "end": 592 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -802,9 +784,7 @@ "start": 667, "end": 670 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -861,9 +841,7 @@ "start": 696, "end": 699 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/override_js1.json b/crates/swc_ecma_parser/tests/tsc/override_js1.json index e852060a4bbe..e651e06d3acb 100644 --- a/crates/swc_ecma_parser/tests/tsc/override_js1.json +++ b/crates/swc_ecma_parser/tests/tsc/override_js1.json @@ -37,9 +37,7 @@ "start": 99, "end": 102 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -102,9 +100,7 @@ "start": 114, "end": 118 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -194,9 +190,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -259,9 +253,7 @@ "start": 189, "end": 193 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -324,9 +316,7 @@ "start": 226, "end": 229 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -425,9 +415,7 @@ "start": 253, "end": 256 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -470,9 +458,7 @@ "start": 288, "end": 292 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -535,9 +521,7 @@ "start": 325, "end": 328 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/override_js2.json b/crates/swc_ecma_parser/tests/tsc/override_js2.json index 5d498ebc24ce..36fb1af9d87d 100644 --- a/crates/swc_ecma_parser/tests/tsc/override_js2.json +++ b/crates/swc_ecma_parser/tests/tsc/override_js2.json @@ -37,9 +37,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -102,9 +100,7 @@ "start": 132, "end": 136 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -194,9 +190,7 @@ "start": 171, "end": 174 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -259,9 +253,7 @@ "start": 207, "end": 211 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -324,9 +316,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -425,9 +415,7 @@ "start": 271, "end": 274 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -470,9 +458,7 @@ "start": 306, "end": 310 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -535,9 +521,7 @@ "start": 343, "end": 346 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/override_js3.json b/crates/swc_ecma_parser/tests/tsc/override_js3.json index b18f7fb1ccd5..58366775b67f 100644 --- a/crates/swc_ecma_parser/tests/tsc/override_js3.json +++ b/crates/swc_ecma_parser/tests/tsc/override_js3.json @@ -37,9 +37,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -102,9 +100,7 @@ "start": 132, "end": 136 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ @@ -194,9 +190,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -259,9 +253,7 @@ "start": 216, "end": 220 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/override_js4.json b/crates/swc_ecma_parser/tests/tsc/override_js4.json index 284408ec6e22..f2a2466ff1ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/override_js4.json +++ b/crates/swc_ecma_parser/tests/tsc/override_js4.json @@ -37,9 +37,7 @@ "start": 117, "end": 128 }, - "ctxt": 0, - "value": "doSomething", - "optional": false + "value": "doSomething" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 183, "end": 194 }, - "ctxt": 0, - "value": "doSomethang", - "optional": false + "value": "doSomethang" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject.json b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject.json index 060817830390..b43bb4456297 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject.json @@ -81,9 +81,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject2.json b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject2.json index 0d10ddfbbfaa..6cc8c0b4235a 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject2.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject2.json @@ -87,9 +87,7 @@ "start": 206, "end": 209 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -98,9 +96,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject3.json b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject3.json index 588ac5e59f51..982faa958888 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject3.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject3.json @@ -87,9 +87,7 @@ "start": 202, "end": 205 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -98,9 +96,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject4.json b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject4.json index 71be8222c455..4ccbc7bd8521 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject4.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagNestedWithoutTopLevelObject4.json @@ -87,9 +87,7 @@ "start": 179, "end": 182 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -98,9 +96,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json b/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json index b6c99a07e180..f71e8708634c 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json @@ -114,9 +114,7 @@ "start": 227, "end": 235 }, - "ctxt": 0, - "value": "inherits", - "optional": false + "value": "inherits" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json b/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json index a8bf941ead9b..94f6013acc29 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json @@ -230,9 +230,7 @@ "start": 282, "end": 288 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json b/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json index 13fa1c4f9f05..8de15f834129 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json @@ -40,9 +40,7 @@ "start": 149, "end": 156 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution2.json b/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution2.json index ed2c1829f95d..b419337b4885 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution2.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution2.json @@ -119,9 +119,7 @@ "start": 198, "end": 199 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -153,9 +151,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "params": [ { @@ -227,9 +223,7 @@ "start": 226, "end": 233 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersBackwardReferencing.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersBackwardReferencing.json index e3c19f0773a1..c9167ca7bfcf 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersBackwardReferencing.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersBackwardReferencing.json @@ -208,9 +208,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.json index 1017de980d0d..118cec919a95 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.json @@ -1081,9 +1081,7 @@ "start": 486, "end": 497 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1182,9 +1180,7 @@ "start": 520, "end": 526 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json index e90183b36b86..0a1f14cc0d82 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json @@ -1001,9 +1001,7 @@ "start": 615, "end": 626 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json index d88cf3ed958a..b8ac75f5170b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json @@ -1001,9 +1001,7 @@ "start": 635, "end": 646 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parametersWithNoAnnotationAreAny.json b/crates/swc_ecma_parser/tests/tsc/parametersWithNoAnnotationAreAny.json index 2fafc7c9698e..17612f2ef9cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/parametersWithNoAnnotationAreAny.json +++ b/crates/swc_ecma_parser/tests/tsc/parametersWithNoAnnotationAreAny.json @@ -373,9 +373,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -682,9 +680,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -753,9 +749,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", @@ -837,9 +831,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parentheses.json b/crates/swc_ecma_parser/tests/tsc/parentheses.json index 1194e46dc490..742fe7469154 100644 --- a/crates/swc_ecma_parser/tests/tsc/parentheses.json +++ b/crates/swc_ecma_parser/tests/tsc/parentheses.json @@ -833,9 +833,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -937,9 +935,7 @@ "start": 328, "end": 329 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1058,9 +1054,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1074,9 +1068,7 @@ "start": 352, "end": 353 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json index c2bc46f5f3a3..e5e7983f22d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping1.json @@ -1989,9 +1989,7 @@ "start": 474, "end": 480 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2194,9 +2192,7 @@ "start": 540, "end": 546 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2413,9 +2409,7 @@ "start": 610, "end": 616 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2676,9 +2670,7 @@ "start": 689, "end": 695 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -3366,9 +3358,7 @@ "start": 945, "end": 946 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", @@ -3440,9 +3430,7 @@ "start": 969, "end": 970 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -3584,9 +3572,7 @@ "start": 1018, "end": 1019 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", @@ -3658,9 +3644,7 @@ "start": 1042, "end": 1043 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json index 263663bab3d0..b0dd0ec83d86 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping2.json @@ -2782,9 +2782,7 @@ "start": 1276, "end": 1282 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -3061,9 +3059,7 @@ "start": 1376, "end": 1382 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -3354,9 +3350,7 @@ "start": 1480, "end": 1486 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -3765,9 +3759,7 @@ "start": 1627, "end": 1633 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -4687,9 +4679,7 @@ "start": 1992, "end": 1993 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", @@ -4761,9 +4751,7 @@ "start": 2016, "end": 2017 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -4905,9 +4893,7 @@ "start": 2065, "end": 2066 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", @@ -4979,9 +4965,7 @@ "start": 2089, "end": 2090 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json b/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json index 058f8e3d7f14..21afd8837c4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json @@ -75,9 +75,7 @@ "start": 549, "end": 557 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "value": { "type": "FunctionExpression", @@ -601,9 +599,7 @@ "start": 747, "end": 754 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -700,9 +696,7 @@ "start": 811, "end": 818 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -768,9 +762,7 @@ "start": 871, "end": 878 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -844,9 +836,7 @@ "start": 931, "end": 938 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parser509534.json b/crates/swc_ecma_parser/tests/tsc/parser509534.json index 3b8c60298541..4339080d161f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509534.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509534.json @@ -126,9 +126,7 @@ "start": 57, "end": 64 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -137,9 +135,7 @@ "start": 65, "end": 70 }, - "ctxt": 0, - "value": "route", - "optional": false + "value": "route" } }, "right": { @@ -215,9 +211,7 @@ "start": 126, "end": 129 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -258,9 +252,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "env", - "optional": false + "value": "env" } }, "property": { @@ -269,9 +261,7 @@ "start": 141, "end": 149 }, - "ctxt": 0, - "value": "siteRoot", - "optional": false + "value": "siteRoot" } }, "right": { @@ -398,9 +388,7 @@ "start": 263, "end": 271 }, - "ctxt": 0, - "value": "redirect", - "optional": false + "value": "redirect" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parser509546.json b/crates/swc_ecma_parser/tests/tsc/parser509546.json index 7cf0d46cda66..f36f6de5e968 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509546.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509546.json @@ -43,9 +43,7 @@ "start": 29, "end": 35 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parser509546_1.json b/crates/swc_ecma_parser/tests/tsc/parser509546_1.json index 7cf0d46cda66..f36f6de5e968 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509546_1.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509546_1.json @@ -43,9 +43,7 @@ "start": 29, "end": 35 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parser509546_2.json b/crates/swc_ecma_parser/tests/tsc/parser509546_2.json index 547575e407bd..578f18a7cbcb 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509546_2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509546_2.json @@ -59,9 +59,7 @@ "start": 44, "end": 50 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parser509693.json b/crates/swc_ecma_parser/tests/tsc/parser509693.json index 187c093a5a7e..5c11cdd03efa 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509693.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509693.json @@ -40,9 +40,7 @@ "start": 13, "end": 20 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -81,9 +79,7 @@ "start": 29, "end": 36 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/parser630933.json b/crates/swc_ecma_parser/tests/tsc/parser630933.json index 07225a1a5269..98c8dcb536e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser630933.json +++ b/crates/swc_ecma_parser/tests/tsc/parser630933.json @@ -101,9 +101,7 @@ "start": 28, "end": 33 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parser768531.json b/crates/swc_ecma_parser/tests/tsc/parser768531.json index e705c0eb5fd0..e3fb6f6fe731 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser768531.json +++ b/crates/swc_ecma_parser/tests/tsc/parser768531.json @@ -25,9 +25,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic11.json b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic11.json index 626d4f2086d4..b2fcf092cb3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic11.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic11.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic14.json b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic14.json index b3c0280be7dd..c875d53d3261 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic14.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic14.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic2.json b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic2.json index a31d44238cce..0a2c06a88c45 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic2.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic3.json b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic3.json index 451a3ad30fab..3e304392aa16 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic3.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic4.json b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic4.json index 29b5714319e5..c340b49dd5e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic4.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic5.json b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic5.json index e03a807b8937..abc66f353ce2 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessibilityAfterStatic5.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessors1.json b/crates/swc_ecma_parser/tests/tsc/parserAccessors1.json index 78bad6d0e450..4f63cf466bc3 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessors1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessors1.json @@ -37,9 +37,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessors2.json b/crates/swc_ecma_parser/tests/tsc/parserAccessors2.json index 4152a9612d17..632b6015f134 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessors2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessors2.json @@ -37,9 +37,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessors3.json b/crates/swc_ecma_parser/tests/tsc/parserAccessors3.json index 49b64f2dcc8a..1cca973867da 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessors3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessors3.json @@ -51,9 +51,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "typeAnnotation": null, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserAccessors4.json b/crates/swc_ecma_parser/tests/tsc/parserAccessors4.json index a20220b57b75..9109d3b77997 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAccessors4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAccessors4.json @@ -51,9 +51,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "thisParam": null, "param": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserAdditiveExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserAdditiveExpression1.json index e34940060318..ba8b477d9486 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAdditiveExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAdditiveExpression1.json @@ -47,9 +47,7 @@ "start": 3, "end": 8 }, - "ctxt": 0, - "value": "index", - "optional": false + "value": "index" } }, "right": { @@ -107,9 +105,7 @@ "start": 16, "end": 22 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json b/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json index a11efceb4dd6..6703cf33e066 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json @@ -151,9 +151,7 @@ "start": 74, "end": 83 }, - "ctxt": 0, - "value": "className", - "optional": false + "value": "className" } }, "right": { @@ -191,9 +189,7 @@ "start": 91, "end": 100 }, - "ctxt": 0, - "value": "className", - "optional": false + "value": "className" } }, "property": { @@ -202,9 +198,7 @@ "start": 101, "end": 108 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -390,9 +384,7 @@ "start": 222, "end": 228 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -417,9 +409,7 @@ "start": 246, "end": 252 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json b/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json index ee412b0c068f..1fd6972ca989 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression6.json @@ -213,9 +213,7 @@ "start": 84, "end": 90 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression7.json b/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression7.json index bbffeb7e090b..72178cf6614c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression7.json @@ -32,9 +32,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json b/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json index c645f508147e..81c665f3d4b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserAstSpans1.json @@ -554,9 +554,7 @@ "start": 384, "end": 389 }, - "ctxt": 0, - "value": "i1_p1", - "optional": false + "value": "i1_p1" }, "value": null, "typeAnnotation": { @@ -596,9 +594,7 @@ "start": 410, "end": 415 }, - "ctxt": 0, - "value": "i1_f1", - "optional": false + "value": "i1_f1" }, "function": { "params": [], @@ -641,9 +637,7 @@ "start": 437, "end": 442 }, - "ctxt": 0, - "value": "i1_l1", - "optional": false + "value": "i1_l1" }, "value": null, "typeAnnotation": { @@ -699,9 +693,7 @@ "start": 467, "end": 475 }, - "ctxt": 0, - "value": "i1_nc_p1", - "optional": false + "value": "i1_nc_p1" }, "value": null, "typeAnnotation": { @@ -741,9 +733,7 @@ "start": 496, "end": 504 }, - "ctxt": 0, - "value": "i1_nc_f1", - "optional": false + "value": "i1_nc_f1" }, "function": { "params": [], @@ -786,9 +776,7 @@ "start": 526, "end": 534 }, - "ctxt": 0, - "value": "i1_nc_l1", - "optional": false + "value": "i1_nc_l1" }, "value": null, "typeAnnotation": { @@ -844,9 +832,7 @@ "start": 575, "end": 577 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": null, "typeAnnotation": { @@ -886,9 +872,7 @@ "start": 614, "end": 616 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -931,9 +915,7 @@ "start": 654, "end": 656 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" }, "value": null, "typeAnnotation": { @@ -989,9 +971,7 @@ "start": 700, "end": 705 }, - "ctxt": 0, - "value": "nc_p1", - "optional": false + "value": "nc_p1" }, "value": null, "typeAnnotation": { @@ -1031,9 +1011,7 @@ "start": 745, "end": 750 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" }, "function": { "params": [], @@ -1076,9 +1054,7 @@ "start": 791, "end": 796 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" }, "value": null, "typeAnnotation": { @@ -1239,9 +1215,7 @@ "start": 831, "end": 836 }, - "ctxt": 0, - "value": "i1_f1", - "optional": false + "value": "i1_f1" } }, "arguments": [], @@ -1283,9 +1257,7 @@ "start": 845, "end": 853 }, - "ctxt": 0, - "value": "i1_nc_f1", - "optional": false + "value": "i1_nc_f1" } }, "arguments": [], @@ -1327,9 +1299,7 @@ "start": 862, "end": 864 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -1371,9 +1341,7 @@ "start": 873, "end": 878 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -1415,9 +1383,7 @@ "start": 887, "end": 892 }, - "ctxt": 0, - "value": "i1_l1", - "optional": false + "value": "i1_l1" } }, "arguments": [], @@ -1459,9 +1425,7 @@ "start": 901, "end": 909 }, - "ctxt": 0, - "value": "i1_nc_l1", - "optional": false + "value": "i1_nc_l1" } }, "arguments": [], @@ -1503,9 +1467,7 @@ "start": 918, "end": 920 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" } }, "arguments": [], @@ -1547,9 +1509,7 @@ "start": 929, "end": 934 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" } }, "arguments": [], @@ -1642,9 +1602,7 @@ "start": 964, "end": 969 }, - "ctxt": 0, - "value": "i1_f1", - "optional": false + "value": "i1_f1" } }, "arguments": [], @@ -1686,9 +1644,7 @@ "start": 978, "end": 986 }, - "ctxt": 0, - "value": "i1_nc_f1", - "optional": false + "value": "i1_nc_f1" } }, "arguments": [], @@ -1730,9 +1686,7 @@ "start": 995, "end": 997 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -1774,9 +1728,7 @@ "start": 1006, "end": 1011 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -1818,9 +1770,7 @@ "start": 1020, "end": 1025 }, - "ctxt": 0, - "value": "i1_l1", - "optional": false + "value": "i1_l1" } }, "arguments": [], @@ -1862,9 +1812,7 @@ "start": 1034, "end": 1042 }, - "ctxt": 0, - "value": "i1_nc_l1", - "optional": false + "value": "i1_nc_l1" } }, "arguments": [], @@ -1906,9 +1854,7 @@ "start": 1051, "end": 1053 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" } }, "arguments": [], @@ -1950,9 +1896,7 @@ "start": 1062, "end": 1067 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" } }, "arguments": [], @@ -2030,9 +1974,7 @@ "start": 1112, "end": 1117 }, - "ctxt": 0, - "value": "i1_f1", - "optional": false + "value": "i1_f1" } }, "arguments": [], @@ -2074,9 +2016,7 @@ "start": 1126, "end": 1134 }, - "ctxt": 0, - "value": "i1_nc_f1", - "optional": false + "value": "i1_nc_f1" } }, "arguments": [], @@ -2118,9 +2058,7 @@ "start": 1143, "end": 1145 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -2162,9 +2100,7 @@ "start": 1154, "end": 1159 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -2206,9 +2142,7 @@ "start": 1168, "end": 1173 }, - "ctxt": 0, - "value": "i1_l1", - "optional": false + "value": "i1_l1" } }, "arguments": [], @@ -2250,9 +2184,7 @@ "start": 1182, "end": 1190 }, - "ctxt": 0, - "value": "i1_nc_l1", - "optional": false + "value": "i1_nc_l1" } }, "arguments": [], @@ -2294,9 +2226,7 @@ "start": 1199, "end": 1201 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" } }, "arguments": [], @@ -2338,9 +2268,7 @@ "start": 1210, "end": 1215 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" } }, "arguments": [], @@ -2379,9 +2307,7 @@ "start": 1261, "end": 1266 }, - "ctxt": 0, - "value": "c2_p1", - "optional": false + "value": "c2_p1" }, "value": null, "typeAnnotation": { @@ -2421,9 +2347,7 @@ "start": 1306, "end": 1311 }, - "ctxt": 0, - "value": "c2_f1", - "optional": false + "value": "c2_f1" }, "function": { "params": [], @@ -2466,9 +2390,7 @@ "start": 1358, "end": 1365 }, - "ctxt": 0, - "value": "c2_prop", - "optional": false + "value": "c2_prop" }, "function": { "params": [], @@ -2528,9 +2450,7 @@ "start": 1406, "end": 1414 }, - "ctxt": 0, - "value": "c2_nc_p1", - "optional": false + "value": "c2_nc_p1" }, "value": null, "typeAnnotation": { @@ -2570,9 +2490,7 @@ "start": 1435, "end": 1443 }, - "ctxt": 0, - "value": "c2_nc_f1", - "optional": false + "value": "c2_nc_f1" }, "function": { "params": [], @@ -2615,9 +2533,7 @@ "start": 1469, "end": 1479 }, - "ctxt": 0, - "value": "c2_nc_prop", - "optional": false + "value": "c2_nc_prop" }, "function": { "params": [], @@ -2677,9 +2593,7 @@ "start": 1536, "end": 1538 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": null, "typeAnnotation": { @@ -2719,9 +2633,7 @@ "start": 1575, "end": 1577 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -2764,9 +2676,7 @@ "start": 1621, "end": 1625 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "function": { "params": [], @@ -2826,9 +2736,7 @@ "start": 1666, "end": 1671 }, - "ctxt": 0, - "value": "nc_p1", - "optional": false + "value": "nc_p1" }, "value": null, "typeAnnotation": { @@ -2868,9 +2776,7 @@ "start": 1692, "end": 1697 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" }, "function": { "params": [], @@ -2913,9 +2819,7 @@ "start": 1723, "end": 1730 }, - "ctxt": 0, - "value": "nc_prop", - "optional": false + "value": "nc_prop" }, "function": { "params": [], @@ -2976,9 +2880,7 @@ "start": 1789, "end": 1800 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -3055,9 +2957,7 @@ "start": 1827, "end": 1832 }, - "ctxt": 0, - "value": "c2_p1", - "optional": false + "value": "c2_p1" } }, "right": { @@ -3117,9 +3017,7 @@ "start": 1872, "end": 1883 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3199,9 +3097,7 @@ "start": 1920, "end": 1922 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -3223,9 +3119,7 @@ "start": 1931, "end": 1936 }, - "ctxt": 0, - "value": "c2_p1", - "optional": false + "value": "c2_p1" } } } @@ -3247,9 +3141,7 @@ "start": 1971, "end": 1973 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": null, "typeAnnotation": { @@ -3289,9 +3181,7 @@ "start": 2010, "end": 2012 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -3334,9 +3224,7 @@ "start": 2056, "end": 2060 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "function": { "params": [], @@ -3396,9 +3284,7 @@ "start": 2101, "end": 2106 }, - "ctxt": 0, - "value": "nc_p1", - "optional": false + "value": "nc_p1" }, "value": null, "typeAnnotation": { @@ -3438,9 +3324,7 @@ "start": 2127, "end": 2132 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" }, "function": { "params": [], @@ -3483,9 +3367,7 @@ "start": 2158, "end": 2165 }, - "ctxt": 0, - "value": "nc_prop", - "optional": false + "value": "nc_prop" }, "function": { "params": [], @@ -3699,9 +3581,7 @@ "start": 2246, "end": 2251 }, - "ctxt": 0, - "value": "c2_f1", - "optional": false + "value": "c2_f1" } }, "arguments": [], @@ -3743,9 +3623,7 @@ "start": 2260, "end": 2268 }, - "ctxt": 0, - "value": "c2_nc_f1", - "optional": false + "value": "c2_nc_f1" } }, "arguments": [], @@ -3787,9 +3665,7 @@ "start": 2277, "end": 2279 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -3831,9 +3707,7 @@ "start": 2288, "end": 2293 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -3875,9 +3749,7 @@ "start": 2302, "end": 2307 }, - "ctxt": 0, - "value": "c2_f1", - "optional": false + "value": "c2_f1" } }, "arguments": [], @@ -3919,9 +3791,7 @@ "start": 2316, "end": 2324 }, - "ctxt": 0, - "value": "c2_nc_f1", - "optional": false + "value": "c2_nc_f1" } }, "arguments": [], @@ -3963,9 +3833,7 @@ "start": 2333, "end": 2335 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -4007,9 +3875,7 @@ "start": 2344, "end": 2349 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -4087,9 +3953,7 @@ "start": 2381, "end": 2386 }, - "ctxt": 0, - "value": "c2_f1", - "optional": false + "value": "c2_f1" } }, "arguments": [], @@ -4131,9 +3995,7 @@ "start": 2395, "end": 2403 }, - "ctxt": 0, - "value": "c2_nc_f1", - "optional": false + "value": "c2_nc_f1" } }, "arguments": [], @@ -4175,9 +4037,7 @@ "start": 2412, "end": 2414 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -4219,9 +4079,7 @@ "start": 2423, "end": 2428 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -5283,9 +5141,7 @@ "start": 3059, "end": 3064 }, - "ctxt": 0, - "value": "i2_f1", - "optional": false + "value": "i2_f1" } }, "arguments": [], @@ -5327,9 +5183,7 @@ "start": 3073, "end": 3081 }, - "ctxt": 0, - "value": "i2_nc_f1", - "optional": false + "value": "i2_nc_f1" } }, "arguments": [], @@ -5371,9 +5225,7 @@ "start": 3090, "end": 3092 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -5415,9 +5267,7 @@ "start": 3101, "end": 3106 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -5459,9 +5309,7 @@ "start": 3115, "end": 3120 }, - "ctxt": 0, - "value": "i2_l1", - "optional": false + "value": "i2_l1" } }, "arguments": [], @@ -5503,9 +5351,7 @@ "start": 3129, "end": 3137 }, - "ctxt": 0, - "value": "i2_nc_l1", - "optional": false + "value": "i2_nc_l1" } }, "arguments": [], @@ -5547,9 +5393,7 @@ "start": 3146, "end": 3148 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" } }, "arguments": [], @@ -5591,9 +5435,7 @@ "start": 3157, "end": 3162 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" } }, "arguments": [], @@ -5635,9 +5477,7 @@ "start": 3171, "end": 3176 }, - "ctxt": 0, - "value": "i2_f1", - "optional": false + "value": "i2_f1" } }, "arguments": [], @@ -5679,9 +5519,7 @@ "start": 3185, "end": 3193 }, - "ctxt": 0, - "value": "i2_nc_f1", - "optional": false + "value": "i2_nc_f1" } }, "arguments": [], @@ -5723,9 +5561,7 @@ "start": 3202, "end": 3204 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -5767,9 +5603,7 @@ "start": 3213, "end": 3218 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -5811,9 +5645,7 @@ "start": 3227, "end": 3232 }, - "ctxt": 0, - "value": "i2_l1", - "optional": false + "value": "i2_l1" } }, "arguments": [], @@ -5855,9 +5687,7 @@ "start": 3241, "end": 3249 }, - "ctxt": 0, - "value": "i2_nc_l1", - "optional": false + "value": "i2_nc_l1" } }, "arguments": [], @@ -5899,9 +5729,7 @@ "start": 3258, "end": 3260 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" } }, "arguments": [], @@ -5943,9 +5771,7 @@ "start": 3269, "end": 3274 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" } }, "arguments": [], @@ -6023,9 +5849,7 @@ "start": 3319, "end": 3324 }, - "ctxt": 0, - "value": "i2_f1", - "optional": false + "value": "i2_f1" } }, "arguments": [], @@ -6067,9 +5891,7 @@ "start": 3333, "end": 3341 }, - "ctxt": 0, - "value": "i2_nc_f1", - "optional": false + "value": "i2_nc_f1" } }, "arguments": [], @@ -6111,9 +5933,7 @@ "start": 3350, "end": 3352 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -6155,9 +5975,7 @@ "start": 3361, "end": 3366 }, - "ctxt": 0, - "value": "nc_f1", - "optional": false + "value": "nc_f1" } }, "arguments": [], @@ -6199,9 +6017,7 @@ "start": 3375, "end": 3380 }, - "ctxt": 0, - "value": "i2_l1", - "optional": false + "value": "i2_l1" } }, "arguments": [], @@ -6243,9 +6059,7 @@ "start": 3389, "end": 3397 }, - "ctxt": 0, - "value": "i2_nc_l1", - "optional": false + "value": "i2_nc_l1" } }, "arguments": [], @@ -6287,9 +6101,7 @@ "start": 3406, "end": 3408 }, - "ctxt": 0, - "value": "l1", - "optional": false + "value": "l1" } }, "arguments": [], @@ -6331,9 +6143,7 @@ "start": 3417, "end": 3422 }, - "ctxt": 0, - "value": "nc_l1", - "optional": false + "value": "nc_l1" } }, "arguments": [], @@ -6372,9 +6182,7 @@ "start": 3463, "end": 3464 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -6441,9 +6249,7 @@ "start": 3509, "end": 3510 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": null, @@ -6470,9 +6276,7 @@ "start": 3516, "end": 3527 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -6539,9 +6343,7 @@ "start": 3562, "end": 3563 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -6563,9 +6365,7 @@ "start": 3572, "end": 3573 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserClass1.json b/crates/swc_ecma_parser/tests/tsc/parserClass1.json index 171a55feea7a..9ae183798572 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClass1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClass1.json @@ -43,9 +43,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" }, "function": { "params": [], @@ -118,9 +116,7 @@ "start": 121, "end": 126 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" }, "function": { "params": [], @@ -193,9 +189,7 @@ "start": 171, "end": 178 }, - "ctxt": 0, - "value": "warning", - "optional": false + "value": "warning" }, "function": { "params": [], @@ -268,9 +262,7 @@ "start": 223, "end": 228 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "function": { "params": [], @@ -343,9 +335,7 @@ "start": 273, "end": 278 }, - "ctxt": 0, - "value": "fatal", - "optional": false + "value": "fatal" }, "function": { "params": [], @@ -418,9 +408,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserClass2.json b/crates/swc_ecma_parser/tests/tsc/parserClass2.json index 3e8d76efc8ea..e23b1946ae2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClass2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClass2.json @@ -44,9 +44,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -136,9 +134,7 @@ "start": 120, "end": 132 }, - "ctxt": 0, - "value": "_information", - "optional": false + "value": "_information" } }, "right": { @@ -173,9 +169,7 @@ "start": 140, "end": 146 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -184,9 +178,7 @@ "start": 147, "end": 158 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration10.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration10.json index 29be5c6665e0..ba69a11c0bb0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration10.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration10.json @@ -38,9 +38,7 @@ "start": 14, "end": 25 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": null, @@ -59,9 +57,7 @@ "start": 32, "end": 35 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration11.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration11.json index 8f00cdc8bc5f..b3d294b6e814 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration11.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration11.json @@ -38,9 +38,7 @@ "start": 14, "end": 25 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": null, @@ -59,9 +57,7 @@ "start": 32, "end": 35 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration12.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration12.json index 222a46d684b6..63bf213ea1af 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration12.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration12.json @@ -38,9 +38,7 @@ "start": 14, "end": 25 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": null, @@ -60,9 +58,7 @@ "start": 32, "end": 43 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration13.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration13.json index 79026d26f811..cff371db8276 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration13.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration13.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 24, "end": 27 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration14.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration14.json index 1368e62505ba..35dd78fcddd9 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration14.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration14.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -75,9 +73,7 @@ "start": 24, "end": 35 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration15.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration15.json index d0b8d3e0ff69..23a9ba1c70b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration15.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration15.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -75,9 +73,7 @@ "start": 24, "end": 35 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration16.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration16.json index c1b9e103453a..069530f5403f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration16.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration16.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 24, "end": 27 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json index be8ae75fa379..9eaf52ff9881 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration17.json @@ -37,9 +37,7 @@ "start": 52, "end": 57 }, - "ctxt": 0, - "value": "atEnd", - "optional": false + "value": "atEnd" }, "function": { "params": [], @@ -88,9 +86,7 @@ "start": 81, "end": 89 }, - "ctxt": 0, - "value": "moveNext", - "optional": false + "value": "moveNext" }, "function": { "params": [], @@ -125,9 +121,7 @@ "start": 104, "end": 108 }, - "ctxt": 0, - "value": "item", - "optional": false + "value": "item" }, "function": { "params": [], @@ -177,9 +171,7 @@ "start": 121, "end": 132 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json index 2accbea77c87..f2832866fe2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration25.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration25.json index 62a0086b6ff8..eab5a65c933d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration25.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration25.json @@ -178,9 +178,7 @@ "start": 99, "end": 103 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "function": { "params": [], @@ -239,9 +237,7 @@ "start": 114, "end": 118 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration26.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration26.json index 937b3e283ba5..e2c8afef2b4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration26.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration26.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "var", - "optional": false + "value": "var" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 21, "end": 27 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration8.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration8.json index 9b65104ba81a..830d18478ea9 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration8.json @@ -38,9 +38,7 @@ "start": 13, "end": 24 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration9.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration9.json index f0a815a50823..8fcb5ccc6691 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration9.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration9.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserCommaInTypeMemberList2.json b/crates/swc_ecma_parser/tests/tsc/parserCommaInTypeMemberList2.json index eae150a46a80..c4ff72c58cf6 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserCommaInTypeMemberList2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserCommaInTypeMemberList2.json @@ -61,9 +61,7 @@ "start": 11, "end": 17 }, - "ctxt": 0, - "value": "extend", - "optional": false + "value": "extend" } }, "arguments": [ @@ -84,9 +82,7 @@ "start": 74, "end": 82 }, - "ctxt": 0, - "value": "workItem", - "optional": false + "value": "workItem" }, "value": { "type": "MemberExpression", @@ -107,9 +103,7 @@ "start": 89, "end": 98 }, - "ctxt": 0, - "value": "_workItem", - "optional": false + "value": "_workItem" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserConditionalExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserConditionalExpression1.json index 7a398e827d45..b1da15a2b6e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserConditionalExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserConditionalExpression1.json @@ -66,9 +66,7 @@ "start": 9, "end": 10 }, - "ctxt": 0, - "value": "R", - "optional": false + "value": "R" } }, "property": { @@ -120,9 +118,7 @@ "start": 17, "end": 19 }, - "ctxt": 0, - "value": "JW", - "optional": false + "value": "JW" } }, "right": { @@ -167,9 +163,7 @@ "start": 24, "end": 26 }, - "ctxt": 0, - "value": "e5", - "optional": false + "value": "e5" } }, "arguments": [ @@ -228,9 +222,7 @@ "start": 37, "end": 39 }, - "ctxt": 0, - "value": "JW", - "optional": false + "value": "JW" } }, "right": { @@ -255,9 +247,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "l", - "optional": false + "value": "l" } } } @@ -284,9 +274,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration1.json b/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration1.json index fe622da76513..6aa10bbf6821 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration1.json @@ -38,9 +38,7 @@ "start": 19, "end": 30 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration5.json b/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration5.json index a8b5c3b37353..7fb262b2ac5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserConstructorDeclaration5.json @@ -38,9 +38,7 @@ "start": 21, "end": 32 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors1.json b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors1.json index 9efe005410db..b40945734a8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors1.json @@ -37,9 +37,7 @@ "start": 19, "end": 22 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors2.json b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors2.json index 2eef838260db..557afadec0db 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors2.json @@ -37,9 +37,7 @@ "start": 19, "end": 22 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors3.json b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors3.json index 95c0ac6c3f9b..d9974f07f64f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors3.json @@ -51,9 +51,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "typeAnnotation": null, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors4.json b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors4.json index d46bb222d974..ff2fc80e6437 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES3Accessors4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES3Accessors4.json @@ -51,9 +51,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "thisParam": null, "param": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty1.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty1.json index 7a8af1125d8a..ced71ac74fc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty1.json @@ -60,9 +60,7 @@ "start": 42, "end": 50 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty2.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty2.json index e38f926b9390..ddccbb51e061 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty2.json @@ -59,9 +59,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty3.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty3.json index 12d6d646455f..23e498b85f16 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty3.json @@ -59,9 +59,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json index f265c43a6851..41e4b238c15e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json @@ -59,9 +59,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty7.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty7.json index e0c56dfe2e3a..4dadca1c9c0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty7.json @@ -59,9 +59,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty8.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty8.json index 821d7b43a84f..e79f2d7189d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty8.json @@ -71,9 +71,7 @@ "start": 37, "end": 48 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty9.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty9.json index bbf47be0f381..94988b5d5551 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty9.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty9.json @@ -72,9 +72,7 @@ "start": 37, "end": 48 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json index e77ea851a972..d5dfe200b255 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json @@ -133,9 +133,7 @@ "start": 158, "end": 161 }, - "ctxt": 0, - "value": "con", - "optional": false + "value": "con" }, "value": null, "typeAnnotation": { @@ -184,9 +182,7 @@ "start": 203, "end": 214 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -286,9 +282,7 @@ "start": 292, "end": 299 }, - "ctxt": 0, - "value": "getDist", - "optional": false + "value": "getDist" }, "function": { "params": [], @@ -341,9 +335,7 @@ "start": 316, "end": 320 }, - "ctxt": 0, - "value": "sqrt", - "optional": false + "value": "sqrt" } }, "arguments": [ @@ -382,9 +374,7 @@ "start": 326, "end": 327 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -406,9 +396,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -438,9 +426,7 @@ "start": 344, "end": 345 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -462,9 +448,7 @@ "start": 353, "end": 354 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -500,9 +484,7 @@ "start": 400, "end": 406 }, - "ctxt": 0, - "value": "origin", - "optional": false + "value": "origin" }, "value": { "type": "NewExpression", @@ -670,9 +652,7 @@ "start": 482, "end": 487 }, - "ctxt": 0, - "value": "Point", - "optional": false + "value": "Point" } }, "arguments": [ @@ -763,9 +743,7 @@ "start": 508, "end": 515 }, - "ctxt": 0, - "value": "getDist", - "optional": false + "value": "getDist" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json index e1ab7060d2c0..bcb32baedb9d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_ParameterList6.json @@ -37,9 +37,7 @@ "start": 24, "end": 30 }, - "ctxt": 0, - "value": "banana", - "optional": false + "value": "banana" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserExportAsFunctionIdentifier.json b/crates/swc_ecma_parser/tests/tsc/parserExportAsFunctionIdentifier.json index f425797a47af..40da309d0417 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserExportAsFunctionIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/parserExportAsFunctionIdentifier.json @@ -182,9 +182,7 @@ "start": 67, "end": 73 }, - "ctxt": 0, - "value": "export", - "optional": false + "value": "export" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json b/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json index e291115652d5..9bb22924336c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json @@ -151,9 +151,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -321,9 +319,7 @@ "start": 170, "end": 173 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json b/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json index d5e8c9f28ec0..da57e9e99a6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json @@ -142,9 +142,7 @@ "start": 131, "end": 134 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -303,9 +301,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserForStatement3.json b/crates/swc_ecma_parser/tests/tsc/parserForStatement3.json index 63a4f7b945f5..86fe490efd17 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForStatement3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForStatement3.json @@ -64,9 +64,7 @@ "start": 12, "end": 14 }, - "ctxt": 0, - "value": "jh", - "optional": false + "value": "jh" } }, "property": { @@ -122,9 +120,7 @@ "start": 20, "end": 22 }, - "ctxt": 0, - "value": "jh", - "optional": false + "value": "jh" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json b/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json index afb20828aec4..198ce6accf8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json @@ -183,9 +183,7 @@ "start": 120, "end": 123 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -385,9 +383,7 @@ "start": 178, "end": 181 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment1.json b/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment1.json index 0dbb9e2858ec..73bfcb4a1a73 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment1.json @@ -47,9 +47,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json index 05ed9c0c4ef4..2cdbab6802eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts1.json @@ -320,6 +320,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 86, + "end": 89 + }, "left": { "type": "Identifier", "span": { @@ -336,9 +340,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "typeParams": { @@ -415,8 +417,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 102, + "end": 107 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 102, + "end": 105 + }, "left": { "type": "Identifier", "span": { @@ -433,9 +443,7 @@ "start": 104, "end": 105 }, - "ctxt": 0, - "value": "H", - "optional": false + "value": "H" } }, "right": { @@ -444,9 +452,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json index 58b766e5b01b..717ea7bea2ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserGenericsInTypeContexts2.json @@ -704,6 +704,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 134, + "end": 137 + }, "left": { "type": "Identifier", "span": { @@ -720,9 +724,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } }, "typeParams": { @@ -895,8 +897,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 162, + "end": 167 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 162, + "end": 165 + }, "left": { "type": "Identifier", "span": { @@ -913,9 +923,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "H", - "optional": false + "value": "H" } }, "right": { @@ -924,9 +932,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "typeParams": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserImportDeclaration1.json b/crates/swc_ecma_parser/tests/tsc/parserImportDeclaration1.json index b8603484c7eb..c59b3ec3d348 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserImportDeclaration1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserImportDeclaration1.json @@ -25,6 +25,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 21, + "end": 50 + }, "left": { "type": "Identifier", "span": { @@ -41,9 +45,7 @@ "start": 40, "end": 50 }, - "ctxt": 0, - "value": "TypeScript", - "optional": false + "value": "TypeScript" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json index f57d474e4891..e186f206a841 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json @@ -40,9 +40,7 @@ "start": 9, "end": 12 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration2.json index fbedc5fb6f05..bbf6e4b0a8ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration2.json @@ -88,9 +88,7 @@ "start": 44, "end": 45 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration3.json b/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration3.json index b0f52189b628..5961074f3808 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration3.json @@ -88,9 +88,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration4.json b/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration4.json index ee7ce41b3171..0370af569fd2 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserIndexMemberDeclaration4.json @@ -88,9 +88,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "v", - "optional": false + "value": "v" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserInvocationOfMemberAccessOffOfObjectCreationExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserInvocationOfMemberAccessOffOfObjectCreationExpression1.json index 3b2e3b438f96..6635f9c3f611 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserInvocationOfMemberAccessOffOfObjectCreationExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserInvocationOfMemberAccessOffOfObjectCreationExpression1.json @@ -50,9 +50,7 @@ "start": 9, "end": 10 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserKeywordsAsIdentifierName1.json b/crates/swc_ecma_parser/tests/tsc/parserKeywordsAsIdentifierName1.json index 44fb251cc9d7..1d3f44996a5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserKeywordsAsIdentifierName1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserKeywordsAsIdentifierName1.json @@ -47,9 +47,7 @@ "start": 16, "end": 21 }, - "ctxt": 0, - "value": "break", - "optional": false + "value": "break" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 30, "end": 35 }, - "ctxt": 0, - "value": "super", - "optional": false + "value": "super" }, "value": { "type": "NumericLiteral", @@ -91,9 +87,7 @@ "start": 44, "end": 49 }, - "ctxt": 0, - "value": "const", - "optional": false + "value": "const" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessor1.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessor1.json index c67f751fad14..4d741f56f26a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessor1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessor1.json @@ -37,9 +37,7 @@ "start": 33, "end": 36 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 49, "end": 52 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration1.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration1.json index 52cb0328fa13..1bd42c1919ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration1.json @@ -37,9 +37,7 @@ "start": 33, "end": 34 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json index 3319e05c0b17..b043b14c4b15 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration15.json @@ -37,9 +37,7 @@ "start": 34, "end": 37 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration4.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration4.json index 4a94e91931f6..235b2ba62f2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration4.json @@ -37,9 +37,7 @@ "start": 33, "end": 34 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberFunctionDeclarationAmbiguities1.json b/crates/swc_ecma_parser/tests/tsc/parserMemberFunctionDeclarationAmbiguities1.json index 5c04166cce5b..e56bde203220 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberFunctionDeclarationAmbiguities1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberFunctionDeclarationAmbiguities1.json @@ -37,9 +37,7 @@ "start": 13, "end": 19 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 27, "end": 33 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" }, "function": { "params": [], @@ -127,9 +123,7 @@ "start": 49, "end": 55 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], @@ -172,9 +166,7 @@ "start": 70, "end": 76 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" }, "function": { "params": [], @@ -217,9 +209,7 @@ "start": 99, "end": 105 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], @@ -262,9 +252,7 @@ "start": 127, "end": 133 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" }, "function": { "params": [], @@ -307,9 +295,7 @@ "start": 151, "end": 157 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], @@ -352,9 +338,7 @@ "start": 172, "end": 178 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberVariableDeclaration5.json b/crates/swc_ecma_parser/tests/tsc/parserMemberVariableDeclaration5.json index 440af9a1864a..f2805a487a71 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberVariableDeclaration5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberVariableDeclaration5.json @@ -37,9 +37,7 @@ "start": 21, "end": 24 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/parserModule1.json b/crates/swc_ecma_parser/tests/tsc/parserModule1.json index 0e766686bb86..36320c22f011 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserModule1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserModule1.json @@ -437,9 +437,7 @@ "start": 399, "end": 404 }, - "ctxt": 0, - "value": "Alert", - "optional": false + "value": "Alert" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json index 9653faffa64a..747302d0420e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json +++ b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json @@ -163,9 +163,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -224,6 +222,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 109, + "end": 117 + }, "left": { "type": "Identifier", "span": { @@ -240,9 +242,7 @@ "start": 116, "end": 117 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/parserNoASIOnCallAfterFunctionExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserNoASIOnCallAfterFunctionExpression1.json index ec60fd2201f2..dda2bb9f1971 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserNoASIOnCallAfterFunctionExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserNoASIOnCallAfterFunctionExpression1.json @@ -107,9 +107,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json b/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json index e1a5884f445e..d51902bd5e43 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json @@ -47,9 +47,7 @@ "start": 10, "end": 12 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 21, "end": 23 }, - "ctxt": 0, - "value": "x0", - "optional": false + "value": "x0" }, "value": { "type": "StringLiteral", @@ -124,9 +120,7 @@ "start": 41, "end": 45 }, - "ctxt": 0, - "value": "info", - "optional": false + "value": "info" } }, "arguments": [ @@ -154,9 +148,7 @@ "start": 49, "end": 51 }, - "ctxt": 0, - "value": "x0", - "optional": false + "value": "x0" } } } @@ -199,9 +191,7 @@ "start": 182, "end": 186 }, - "ctxt": 0, - "value": "info", - "optional": false + "value": "info" } }, "arguments": [ @@ -229,9 +219,7 @@ "start": 190, "end": 192 }, - "ctxt": 0, - "value": "e0", - "optional": false + "value": "e0" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserObjectLiterals1.json b/crates/swc_ecma_parser/tests/tsc/parserObjectLiterals1.json index bb790536d00a..308d2f8ce846 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserObjectLiterals1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserObjectLiterals1.json @@ -47,9 +47,7 @@ "start": 11, "end": 12 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 17, "end": 18 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList14.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList14.json index b6fdfedbc61a..60f515b7c1bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList14.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList14.json @@ -37,9 +37,7 @@ "start": 21, "end": 24 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList16.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList16.json index ad39e05f7900..569044cf6ad1 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList16.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList16.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -110,9 +108,7 @@ "start": 29, "end": 32 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList17.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList17.json index bf962e8ab024..799236099206 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList17.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList17.json @@ -38,9 +38,7 @@ "start": 14, "end": 25 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -96,9 +94,7 @@ "start": 37, "end": 48 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json index 693b10df7d4a..5c59e9f64e6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList6.json @@ -38,9 +38,7 @@ "start": 13, "end": 24 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json index 04ccdbc36118..da491b8018b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList7.json @@ -38,9 +38,7 @@ "start": 13, "end": 24 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -97,9 +95,7 @@ "start": 54, "end": 65 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -156,9 +152,7 @@ "start": 96, "end": 107 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json b/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json index 3e564b68d5bc..46c08c0e4f98 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserParameterList8.json @@ -38,9 +38,7 @@ "start": 21, "end": 32 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -97,9 +95,7 @@ "start": 62, "end": 73 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -156,9 +152,7 @@ "start": 104, "end": 115 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json index 9b9d481977c9..0a92a1e5fef8 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json @@ -462,9 +462,7 @@ "start": 630, "end": 635 }, - "ctxt": 0, - "value": "Alert", - "optional": false + "value": "Alert" } }, "arguments": [ @@ -1176,9 +1174,7 @@ "start": 1267, "end": 1278 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" }, "function": { "params": [], @@ -1251,9 +1247,7 @@ "start": 1323, "end": 1328 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" }, "function": { "params": [], @@ -1326,9 +1320,7 @@ "start": 1373, "end": 1380 }, - "ctxt": 0, - "value": "warning", - "optional": false + "value": "warning" }, "function": { "params": [], @@ -1401,9 +1393,7 @@ "start": 1425, "end": 1430 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "function": { "params": [], @@ -1476,9 +1466,7 @@ "start": 1475, "end": 1480 }, - "ctxt": 0, - "value": "fatal", - "optional": false + "value": "fatal" }, "function": { "params": [], @@ -1551,9 +1539,7 @@ "start": 1525, "end": 1528 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [ @@ -1697,9 +1683,7 @@ "start": 1633, "end": 1645 }, - "ctxt": 0, - "value": "_information", - "optional": false + "value": "_information" }, "value": null, "typeAnnotation": { @@ -1739,9 +1723,7 @@ "start": 1672, "end": 1678 }, - "ctxt": 0, - "value": "_debug", - "optional": false + "value": "_debug" }, "value": null, "typeAnnotation": { @@ -1781,9 +1763,7 @@ "start": 1705, "end": 1713 }, - "ctxt": 0, - "value": "_warning", - "optional": false + "value": "_warning" }, "value": null, "typeAnnotation": { @@ -1823,9 +1803,7 @@ "start": 1740, "end": 1746 }, - "ctxt": 0, - "value": "_error", - "optional": false + "value": "_error" }, "value": null, "typeAnnotation": { @@ -1865,9 +1843,7 @@ "start": 1773, "end": 1779 }, - "ctxt": 0, - "value": "_fatal", - "optional": false + "value": "_fatal" }, "value": null, "typeAnnotation": { @@ -1908,9 +1884,7 @@ "start": 1799, "end": 1810 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2000,9 +1974,7 @@ "start": 1856, "end": 1868 }, - "ctxt": 0, - "value": "_information", - "optional": false + "value": "_information" } }, "right": { @@ -2037,9 +2009,7 @@ "start": 1876, "end": 1882 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2048,9 +2018,7 @@ "start": 1883, "end": 1894 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" } }, "arguments": [], @@ -2090,9 +2058,7 @@ "start": 1915, "end": 1921 }, - "ctxt": 0, - "value": "_debug", - "optional": false + "value": "_debug" } }, "right": { @@ -2127,9 +2093,7 @@ "start": 1929, "end": 1935 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2138,9 +2102,7 @@ "start": 1936, "end": 1941 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [], @@ -2180,9 +2142,7 @@ "start": 1962, "end": 1970 }, - "ctxt": 0, - "value": "_warning", - "optional": false + "value": "_warning" } }, "right": { @@ -2217,9 +2177,7 @@ "start": 1978, "end": 1984 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2228,9 +2186,7 @@ "start": 1985, "end": 1992 }, - "ctxt": 0, - "value": "warning", - "optional": false + "value": "warning" } }, "arguments": [], @@ -2270,9 +2226,7 @@ "start": 2013, "end": 2019 }, - "ctxt": 0, - "value": "_error", - "optional": false + "value": "_error" } }, "right": { @@ -2307,9 +2261,7 @@ "start": 2027, "end": 2033 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2318,9 +2270,7 @@ "start": 2034, "end": 2039 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [], @@ -2360,9 +2310,7 @@ "start": 2060, "end": 2066 }, - "ctxt": 0, - "value": "_fatal", - "optional": false + "value": "_fatal" } }, "right": { @@ -2397,9 +2345,7 @@ "start": 2074, "end": 2080 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2408,9 +2354,7 @@ "start": 2081, "end": 2086 }, - "ctxt": 0, - "value": "fatal", - "optional": false + "value": "fatal" } }, "arguments": [], @@ -2435,9 +2379,7 @@ "start": 2117, "end": 2128 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" }, "function": { "params": [], @@ -2480,9 +2422,7 @@ "start": 2154, "end": 2166 }, - "ctxt": 0, - "value": "_information", - "optional": false + "value": "_information" } } } @@ -2526,9 +2466,7 @@ "start": 2185, "end": 2190 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" }, "function": { "params": [], @@ -2571,9 +2509,7 @@ "start": 2216, "end": 2222 }, - "ctxt": 0, - "value": "_debug", - "optional": false + "value": "_debug" } } } @@ -2617,9 +2553,7 @@ "start": 2241, "end": 2248 }, - "ctxt": 0, - "value": "warning", - "optional": false + "value": "warning" }, "function": { "params": [], @@ -2662,9 +2596,7 @@ "start": 2274, "end": 2282 }, - "ctxt": 0, - "value": "_warning", - "optional": false + "value": "_warning" } } } @@ -2708,9 +2640,7 @@ "start": 2301, "end": 2306 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "function": { "params": [], @@ -2753,9 +2683,7 @@ "start": 2332, "end": 2338 }, - "ctxt": 0, - "value": "_error", - "optional": false + "value": "_error" } } } @@ -2799,9 +2727,7 @@ "start": 2357, "end": 2362 }, - "ctxt": 0, - "value": "fatal", - "optional": false + "value": "fatal" }, "function": { "params": [], @@ -2844,9 +2770,7 @@ "start": 2388, "end": 2394 }, - "ctxt": 0, - "value": "_fatal", - "optional": false + "value": "_fatal" } } } @@ -2890,9 +2814,7 @@ "start": 2413, "end": 2416 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [ @@ -2982,9 +2904,7 @@ "start": 2453, "end": 2459 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2993,9 +2913,7 @@ "start": 2460, "end": 2463 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -3109,9 +3027,7 @@ "start": 2553, "end": 2564 }, - "ctxt": 0, - "value": "logContents", - "optional": false + "value": "logContents" }, "value": { "type": "ArrayExpression", @@ -3144,9 +3060,7 @@ "start": 2587, "end": 2598 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" }, "function": { "params": [], @@ -3219,9 +3133,7 @@ "start": 2643, "end": 2648 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" }, "function": { "params": [], @@ -3294,9 +3206,7 @@ "start": 2693, "end": 2700 }, - "ctxt": 0, - "value": "warning", - "optional": false + "value": "warning" }, "function": { "params": [], @@ -3369,9 +3279,7 @@ "start": 2745, "end": 2750 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "function": { "params": [], @@ -3444,9 +3352,7 @@ "start": 2795, "end": 2800 }, - "ctxt": 0, - "value": "fatal", - "optional": false + "value": "fatal" }, "function": { "params": [], @@ -3519,9 +3425,7 @@ "start": 2845, "end": 2848 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [ @@ -3611,9 +3515,7 @@ "start": 2885, "end": 2896 }, - "ctxt": 0, - "value": "logContents", - "optional": false + "value": "logContents" } }, "property": { @@ -3622,9 +3524,7 @@ "start": 2897, "end": 2901 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -4064,9 +3964,7 @@ "start": 3129, "end": 3132 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -4469,9 +4367,7 @@ "start": 3399, "end": 3409 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -5061,9 +4957,7 @@ "start": 4348, "end": 4354 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -5162,9 +5056,7 @@ "start": 4417, "end": 4423 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -5497,9 +5389,7 @@ "start": 4609, "end": 4615 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -5556,9 +5446,7 @@ "start": 4633, "end": 4639 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -5679,9 +5567,7 @@ "start": 4710, "end": 4716 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json index f3346d7128b4..eba82cc52658 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json @@ -301,9 +301,7 @@ "start": 438, "end": 448 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" }, "value": { "type": "BooleanLiteral", @@ -336,9 +334,7 @@ "start": 472, "end": 485 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" }, "value": { "type": "BooleanLiteral", @@ -371,9 +367,7 @@ "start": 509, "end": 524 }, - "ctxt": 0, - "value": "reverseSiblings", - "optional": false + "value": "reverseSiblings" }, "value": { "type": "BooleanLiteral", @@ -406,9 +400,7 @@ "start": 595, "end": 603 }, - "ctxt": 0, - "value": "stopWalk", - "optional": false + "value": "stopWalk" }, "function": { "params": [ @@ -507,9 +499,7 @@ "start": 644, "end": 654 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -564,9 +554,7 @@ "start": 681, "end": 694 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -986,9 +974,7 @@ "start": 987, "end": 998 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1243,9 +1229,7 @@ "start": 1248, "end": 1252 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" }, "function": { "params": [ @@ -1403,9 +1387,7 @@ "start": 1313, "end": 1316 }, - "ctxt": 0, - "value": "pre", - "optional": false + "value": "pre" } }, "arguments": [ @@ -1565,9 +1547,7 @@ "start": 1442, "end": 1449 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -1576,9 +1556,7 @@ "start": 1450, "end": 1460 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "consequent": { @@ -1641,9 +1619,7 @@ "start": 1499, "end": 1506 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -1652,9 +1628,7 @@ "start": 1507, "end": 1520 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "definite": false @@ -1699,9 +1673,7 @@ "start": 1543, "end": 1550 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -1710,9 +1682,7 @@ "start": 1551, "end": 1564 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -1763,9 +1733,7 @@ "start": 1675, "end": 1690 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -1796,9 +1764,7 @@ "start": 1695, "end": 1703 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } } } @@ -1882,9 +1848,7 @@ "start": 1746, "end": 1753 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -1893,9 +1857,7 @@ "start": 1754, "end": 1767 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -1958,9 +1920,7 @@ "start": 1902, "end": 1909 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -1969,9 +1929,7 @@ "start": 1910, "end": 1920 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -2012,9 +1970,7 @@ "start": 1964, "end": 1968 }, - "ctxt": 0, - "value": "post", - "optional": false + "value": "post" } }, "consequent": { @@ -2078,9 +2034,7 @@ "start": 2007, "end": 2011 }, - "ctxt": 0, - "value": "post", - "optional": false + "value": "post" } }, "arguments": [ @@ -2358,9 +2312,7 @@ "start": 2315, "end": 2330 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" }, "value": { "type": "ArrayExpression", @@ -2425,9 +2377,7 @@ "start": 2366, "end": 2377 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2470,9 +2420,7 @@ "start": 2400, "end": 2419 }, - "ctxt": 0, - "value": "initChildrenWalkers", - "optional": false + "value": "initChildrenWalkers" } }, "arguments": [], @@ -2496,9 +2444,7 @@ "start": 2449, "end": 2453 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" }, "function": { "params": [ @@ -2767,9 +2713,7 @@ "start": 2582, "end": 2591 }, - "ctxt": 0, - "value": "getWalker", - "optional": false + "value": "getWalker" } }, "arguments": [ @@ -2834,9 +2778,7 @@ "start": 2619, "end": 2623 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -2917,9 +2859,7 @@ "start": 2661, "end": 2670 }, - "ctxt": 0, - "value": "getWalker", - "optional": false + "value": "getWalker" }, "function": { "params": [ @@ -3132,9 +3072,7 @@ "start": 2796, "end": 2809 }, - "ctxt": 0, - "value": "getSlowWalker", - "optional": false + "value": "getSlowWalker" } }, "arguments": [ @@ -3244,9 +3182,7 @@ "start": 2865, "end": 2878 }, - "ctxt": 0, - "value": "getSlowWalker", - "optional": false + "value": "getSlowWalker" }, "function": { "params": [ @@ -3554,9 +3490,7 @@ "start": 3109, "end": 3124 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } } }, @@ -3666,9 +3600,7 @@ "start": 3181, "end": 3200 }, - "ctxt": 0, - "value": "initChildrenWalkers", - "optional": false + "value": "initChildrenWalkers" }, "function": { "params": [], @@ -3724,9 +3656,7 @@ "start": 3228, "end": 3243 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -3757,9 +3687,7 @@ "start": 3253, "end": 3257 }, - "ctxt": 0, - "value": "None", - "optional": false + "value": "None" } } } @@ -3786,9 +3714,7 @@ "start": 3277, "end": 3285 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -3831,9 +3757,7 @@ "start": 3304, "end": 3319 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -3864,9 +3788,7 @@ "start": 3329, "end": 3334 }, - "ctxt": 0, - "value": "Empty", - "optional": false + "value": "Empty" } } } @@ -3893,9 +3815,7 @@ "start": 3354, "end": 3362 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -3938,9 +3858,7 @@ "start": 3381, "end": 3396 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -3971,9 +3889,7 @@ "start": 3406, "end": 3415 }, - "ctxt": 0, - "value": "EmptyExpr", - "optional": false + "value": "EmptyExpr" } } } @@ -4000,9 +3916,7 @@ "start": 3435, "end": 3443 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4045,9 +3959,7 @@ "start": 3462, "end": 3477 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4078,9 +3990,7 @@ "start": 3487, "end": 3491 }, - "ctxt": 0, - "value": "True", - "optional": false + "value": "True" } } } @@ -4107,9 +4017,7 @@ "start": 3511, "end": 3519 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4152,9 +4060,7 @@ "start": 3538, "end": 3553 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4185,9 +4091,7 @@ "start": 3563, "end": 3568 }, - "ctxt": 0, - "value": "False", - "optional": false + "value": "False" } } } @@ -4214,9 +4118,7 @@ "start": 3588, "end": 3596 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4259,9 +4161,7 @@ "start": 3615, "end": 3630 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4292,9 +4192,7 @@ "start": 3640, "end": 3644 }, - "ctxt": 0, - "value": "This", - "optional": false + "value": "This" } } } @@ -4321,9 +4219,7 @@ "start": 3664, "end": 3672 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4366,9 +4262,7 @@ "start": 3691, "end": 3706 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4399,9 +4293,7 @@ "start": 3716, "end": 3721 }, - "ctxt": 0, - "value": "Super", - "optional": false + "value": "Super" } } } @@ -4428,9 +4320,7 @@ "start": 3741, "end": 3749 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4473,9 +4363,7 @@ "start": 3768, "end": 3783 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4506,9 +4394,7 @@ "start": 3793, "end": 3800 }, - "ctxt": 0, - "value": "QString", - "optional": false + "value": "QString" } } } @@ -4535,9 +4421,7 @@ "start": 3820, "end": 3828 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4580,9 +4464,7 @@ "start": 3847, "end": 3862 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4613,9 +4495,7 @@ "start": 3872, "end": 3877 }, - "ctxt": 0, - "value": "Regex", - "optional": false + "value": "Regex" } } } @@ -4642,9 +4522,7 @@ "start": 3897, "end": 3905 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4687,9 +4565,7 @@ "start": 3924, "end": 3939 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4720,9 +4596,7 @@ "start": 3949, "end": 3953 }, - "ctxt": 0, - "value": "Null", - "optional": false + "value": "Null" } } } @@ -4749,9 +4623,7 @@ "start": 3973, "end": 3981 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -4794,9 +4666,7 @@ "start": 4000, "end": 4015 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4827,9 +4697,7 @@ "start": 4025, "end": 4033 }, - "ctxt": 0, - "value": "ArrayLit", - "optional": false + "value": "ArrayLit" } } } @@ -4856,9 +4724,7 @@ "start": 4053, "end": 4080 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -4901,9 +4767,7 @@ "start": 4099, "end": 4114 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -4934,9 +4798,7 @@ "start": 4124, "end": 4133 }, - "ctxt": 0, - "value": "ObjectLit", - "optional": false + "value": "ObjectLit" } } } @@ -4963,9 +4825,7 @@ "start": 4153, "end": 4180 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -5008,9 +4868,7 @@ "start": 4199, "end": 4214 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5041,9 +4899,7 @@ "start": 4224, "end": 4228 }, - "ctxt": 0, - "value": "Void", - "optional": false + "value": "Void" } } } @@ -5070,9 +4926,7 @@ "start": 4248, "end": 4275 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -5115,9 +4969,7 @@ "start": 4294, "end": 4309 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5148,9 +5000,7 @@ "start": 4319, "end": 4324 }, - "ctxt": 0, - "value": "Comma", - "optional": false + "value": "Comma" } } } @@ -5177,9 +5027,7 @@ "start": 4344, "end": 4372 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -5222,9 +5070,7 @@ "start": 4391, "end": 4406 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5255,9 +5101,7 @@ "start": 4416, "end": 4419 }, - "ctxt": 0, - "value": "Pos", - "optional": false + "value": "Pos" } } } @@ -5284,9 +5128,7 @@ "start": 4439, "end": 4466 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -5329,9 +5171,7 @@ "start": 4485, "end": 4500 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5362,9 +5202,7 @@ "start": 4510, "end": 4513 }, - "ctxt": 0, - "value": "Neg", - "optional": false + "value": "Neg" } } } @@ -5391,9 +5229,7 @@ "start": 4533, "end": 4560 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -5436,9 +5272,7 @@ "start": 4579, "end": 4594 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5469,9 +5303,7 @@ "start": 4604, "end": 4610 }, - "ctxt": 0, - "value": "Delete", - "optional": false + "value": "Delete" } } } @@ -5498,9 +5330,7 @@ "start": 4630, "end": 4657 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -5543,9 +5373,7 @@ "start": 4676, "end": 4691 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5576,9 +5404,7 @@ "start": 4701, "end": 4706 }, - "ctxt": 0, - "value": "Await", - "optional": false + "value": "Await" } } } @@ -5605,9 +5431,7 @@ "start": 4726, "end": 4753 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -5650,9 +5474,7 @@ "start": 4772, "end": 4787 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5683,9 +5505,7 @@ "start": 4797, "end": 4799 }, - "ctxt": 0, - "value": "In", - "optional": false + "value": "In" } } } @@ -5712,9 +5532,7 @@ "start": 4819, "end": 4847 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -5757,9 +5575,7 @@ "start": 4866, "end": 4881 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5790,9 +5606,7 @@ "start": 4891, "end": 4894 }, - "ctxt": 0, - "value": "Dot", - "optional": false + "value": "Dot" } } } @@ -5819,9 +5633,7 @@ "start": 4914, "end": 4942 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -5864,9 +5676,7 @@ "start": 4961, "end": 4976 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -5897,9 +5707,7 @@ "start": 4986, "end": 4990 }, - "ctxt": 0, - "value": "From", - "optional": false + "value": "From" } } } @@ -5926,9 +5734,7 @@ "start": 5010, "end": 5038 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -5971,9 +5777,7 @@ "start": 5057, "end": 5072 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6004,9 +5808,7 @@ "start": 5082, "end": 5084 }, - "ctxt": 0, - "value": "Is", - "optional": false + "value": "Is" } } } @@ -6033,9 +5835,7 @@ "start": 5104, "end": 5132 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -6078,9 +5878,7 @@ "start": 5151, "end": 5166 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6111,9 +5909,7 @@ "start": 5176, "end": 5182 }, - "ctxt": 0, - "value": "InstOf", - "optional": false + "value": "InstOf" } } } @@ -6140,9 +5936,7 @@ "start": 5202, "end": 5230 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -6185,9 +5979,7 @@ "start": 5249, "end": 5264 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6218,9 +6010,7 @@ "start": 5274, "end": 5280 }, - "ctxt": 0, - "value": "Typeof", - "optional": false + "value": "Typeof" } } } @@ -6247,9 +6037,7 @@ "start": 5300, "end": 5327 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -6292,9 +6080,7 @@ "start": 5346, "end": 5361 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6325,9 +6111,7 @@ "start": 5371, "end": 5380 }, - "ctxt": 0, - "value": "NumberLit", - "optional": false + "value": "NumberLit" } } } @@ -6354,9 +6138,7 @@ "start": 5400, "end": 5408 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -6399,9 +6181,7 @@ "start": 5427, "end": 5442 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6432,9 +6212,7 @@ "start": 5452, "end": 5456 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -6461,9 +6239,7 @@ "start": 5476, "end": 5484 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -6506,9 +6282,7 @@ "start": 5503, "end": 5518 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6539,9 +6313,7 @@ "start": 5528, "end": 5535 }, - "ctxt": 0, - "value": "TypeRef", - "optional": false + "value": "TypeRef" } } } @@ -6568,9 +6340,7 @@ "start": 5555, "end": 5580 }, - "ctxt": 0, - "value": "walkTypeReferenceChildren", - "optional": false + "value": "walkTypeReferenceChildren" } } } @@ -6613,9 +6383,7 @@ "start": 5599, "end": 5614 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6646,9 +6414,7 @@ "start": 5624, "end": 5629 }, - "ctxt": 0, - "value": "Index", - "optional": false + "value": "Index" } } } @@ -6675,9 +6441,7 @@ "start": 5649, "end": 5677 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -6720,9 +6484,7 @@ "start": 5696, "end": 5711 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6753,9 +6515,7 @@ "start": 5721, "end": 5725 }, - "ctxt": 0, - "value": "Call", - "optional": false + "value": "Call" } } } @@ -6782,9 +6542,7 @@ "start": 5745, "end": 5771 }, - "ctxt": 0, - "value": "walkCallExpressionChildren", - "optional": false + "value": "walkCallExpressionChildren" } } } @@ -6827,9 +6585,7 @@ "start": 5790, "end": 5805 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6860,9 +6616,7 @@ "start": 5815, "end": 5818 }, - "ctxt": 0, - "value": "New", - "optional": false + "value": "New" } } } @@ -6889,9 +6643,7 @@ "start": 5838, "end": 5864 }, - "ctxt": 0, - "value": "walkCallExpressionChildren", - "optional": false + "value": "walkCallExpressionChildren" } } } @@ -6934,9 +6686,7 @@ "start": 5883, "end": 5898 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -6967,9 +6717,7 @@ "start": 5908, "end": 5911 }, - "ctxt": 0, - "value": "Asg", - "optional": false + "value": "Asg" } } } @@ -6996,9 +6744,7 @@ "start": 5931, "end": 5959 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7041,9 +6787,7 @@ "start": 5978, "end": 5993 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7074,9 +6818,7 @@ "start": 6003, "end": 6009 }, - "ctxt": 0, - "value": "AsgAdd", - "optional": false + "value": "AsgAdd" } } } @@ -7103,9 +6845,7 @@ "start": 6029, "end": 6057 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7148,9 +6888,7 @@ "start": 6076, "end": 6091 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7181,9 +6919,7 @@ "start": 6101, "end": 6107 }, - "ctxt": 0, - "value": "AsgSub", - "optional": false + "value": "AsgSub" } } } @@ -7210,9 +6946,7 @@ "start": 6127, "end": 6155 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7255,9 +6989,7 @@ "start": 6174, "end": 6189 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7288,9 +7020,7 @@ "start": 6199, "end": 6205 }, - "ctxt": 0, - "value": "AsgDiv", - "optional": false + "value": "AsgDiv" } } } @@ -7317,9 +7047,7 @@ "start": 6225, "end": 6253 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7362,9 +7090,7 @@ "start": 6272, "end": 6287 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7395,9 +7121,7 @@ "start": 6297, "end": 6303 }, - "ctxt": 0, - "value": "AsgMul", - "optional": false + "value": "AsgMul" } } } @@ -7424,9 +7148,7 @@ "start": 6323, "end": 6351 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7469,9 +7191,7 @@ "start": 6370, "end": 6385 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7502,9 +7222,7 @@ "start": 6395, "end": 6401 }, - "ctxt": 0, - "value": "AsgMod", - "optional": false + "value": "AsgMod" } } } @@ -7531,9 +7249,7 @@ "start": 6421, "end": 6449 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7576,9 +7292,7 @@ "start": 6468, "end": 6483 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7609,9 +7323,7 @@ "start": 6493, "end": 6499 }, - "ctxt": 0, - "value": "AsgAnd", - "optional": false + "value": "AsgAnd" } } } @@ -7638,9 +7350,7 @@ "start": 6519, "end": 6547 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7683,9 +7393,7 @@ "start": 6566, "end": 6581 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7716,9 +7424,7 @@ "start": 6591, "end": 6597 }, - "ctxt": 0, - "value": "AsgXor", - "optional": false + "value": "AsgXor" } } } @@ -7745,9 +7451,7 @@ "start": 6617, "end": 6645 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7790,9 +7494,7 @@ "start": 6664, "end": 6679 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7823,9 +7525,7 @@ "start": 6689, "end": 6694 }, - "ctxt": 0, - "value": "AsgOr", - "optional": false + "value": "AsgOr" } } } @@ -7852,9 +7552,7 @@ "start": 6714, "end": 6742 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -7897,9 +7595,7 @@ "start": 6761, "end": 6776 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -7930,9 +7626,7 @@ "start": 6786, "end": 6792 }, - "ctxt": 0, - "value": "AsgLsh", - "optional": false + "value": "AsgLsh" } } } @@ -7959,9 +7653,7 @@ "start": 6812, "end": 6840 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8004,9 +7696,7 @@ "start": 6859, "end": 6874 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8037,9 +7727,7 @@ "start": 6884, "end": 6890 }, - "ctxt": 0, - "value": "AsgRsh", - "optional": false + "value": "AsgRsh" } } } @@ -8066,9 +7754,7 @@ "start": 6910, "end": 6938 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8111,9 +7797,7 @@ "start": 6957, "end": 6972 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8144,9 +7828,7 @@ "start": 6982, "end": 6988 }, - "ctxt": 0, - "value": "AsgRs2", - "optional": false + "value": "AsgRs2" } } } @@ -8173,9 +7855,7 @@ "start": 7008, "end": 7036 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8218,9 +7898,7 @@ "start": 7055, "end": 7070 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8251,9 +7929,7 @@ "start": 7080, "end": 7101 }, - "ctxt": 0, - "value": "ConditionalExpression", - "optional": false + "value": "ConditionalExpression" } } } @@ -8280,9 +7956,7 @@ "start": 7121, "end": 7150 }, - "ctxt": 0, - "value": "walkTrinaryExpressionChildren", - "optional": false + "value": "walkTrinaryExpressionChildren" } } } @@ -8325,9 +7999,7 @@ "start": 7169, "end": 7184 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8358,9 +8030,7 @@ "start": 7194, "end": 7199 }, - "ctxt": 0, - "value": "LogOr", - "optional": false + "value": "LogOr" } } } @@ -8387,9 +8057,7 @@ "start": 7219, "end": 7247 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8432,9 +8100,7 @@ "start": 7266, "end": 7281 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8465,9 +8131,7 @@ "start": 7291, "end": 7297 }, - "ctxt": 0, - "value": "LogAnd", - "optional": false + "value": "LogAnd" } } } @@ -8494,9 +8158,7 @@ "start": 7317, "end": 7345 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8539,9 +8201,7 @@ "start": 7364, "end": 7379 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8572,9 +8232,7 @@ "start": 7389, "end": 7391 }, - "ctxt": 0, - "value": "Or", - "optional": false + "value": "Or" } } } @@ -8601,9 +8259,7 @@ "start": 7411, "end": 7439 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8646,9 +8302,7 @@ "start": 7458, "end": 7473 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8679,9 +8333,7 @@ "start": 7483, "end": 7486 }, - "ctxt": 0, - "value": "Xor", - "optional": false + "value": "Xor" } } } @@ -8708,9 +8360,7 @@ "start": 7506, "end": 7534 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8753,9 +8403,7 @@ "start": 7553, "end": 7568 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8786,9 +8434,7 @@ "start": 7578, "end": 7581 }, - "ctxt": 0, - "value": "And", - "optional": false + "value": "And" } } } @@ -8815,9 +8461,7 @@ "start": 7601, "end": 7629 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8860,9 +8504,7 @@ "start": 7648, "end": 7663 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -8893,9 +8535,7 @@ "start": 7673, "end": 7675 }, - "ctxt": 0, - "value": "Eq", - "optional": false + "value": "Eq" } } } @@ -8922,9 +8562,7 @@ "start": 7695, "end": 7723 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -8967,9 +8605,7 @@ "start": 7742, "end": 7757 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9000,9 +8636,7 @@ "start": 7767, "end": 7769 }, - "ctxt": 0, - "value": "Ne", - "optional": false + "value": "Ne" } } } @@ -9029,9 +8663,7 @@ "start": 7789, "end": 7817 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9074,9 +8706,7 @@ "start": 7836, "end": 7851 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9107,9 +8737,7 @@ "start": 7861, "end": 7864 }, - "ctxt": 0, - "value": "Eqv", - "optional": false + "value": "Eqv" } } } @@ -9136,9 +8764,7 @@ "start": 7884, "end": 7912 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9181,9 +8807,7 @@ "start": 7931, "end": 7946 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9214,9 +8838,7 @@ "start": 7956, "end": 7960 }, - "ctxt": 0, - "value": "NEqv", - "optional": false + "value": "NEqv" } } } @@ -9243,9 +8865,7 @@ "start": 7980, "end": 8008 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9288,9 +8908,7 @@ "start": 8027, "end": 8042 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9321,9 +8939,7 @@ "start": 8052, "end": 8054 }, - "ctxt": 0, - "value": "Lt", - "optional": false + "value": "Lt" } } } @@ -9350,9 +8966,7 @@ "start": 8074, "end": 8102 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9395,9 +9009,7 @@ "start": 8121, "end": 8136 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9428,9 +9040,7 @@ "start": 8146, "end": 8148 }, - "ctxt": 0, - "value": "Le", - "optional": false + "value": "Le" } } } @@ -9457,9 +9067,7 @@ "start": 8168, "end": 8196 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9502,9 +9110,7 @@ "start": 8215, "end": 8230 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9535,9 +9141,7 @@ "start": 8240, "end": 8242 }, - "ctxt": 0, - "value": "Gt", - "optional": false + "value": "Gt" } } } @@ -9564,9 +9168,7 @@ "start": 8262, "end": 8290 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9609,9 +9211,7 @@ "start": 8309, "end": 8324 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9642,9 +9242,7 @@ "start": 8334, "end": 8336 }, - "ctxt": 0, - "value": "Ge", - "optional": false + "value": "Ge" } } } @@ -9671,9 +9269,7 @@ "start": 8356, "end": 8384 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9716,9 +9312,7 @@ "start": 8403, "end": 8418 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9749,9 +9343,7 @@ "start": 8428, "end": 8431 }, - "ctxt": 0, - "value": "Add", - "optional": false + "value": "Add" } } } @@ -9778,9 +9370,7 @@ "start": 8451, "end": 8479 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9823,9 +9413,7 @@ "start": 8498, "end": 8513 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9856,9 +9444,7 @@ "start": 8523, "end": 8526 }, - "ctxt": 0, - "value": "Sub", - "optional": false + "value": "Sub" } } } @@ -9885,9 +9471,7 @@ "start": 8546, "end": 8574 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -9930,9 +9514,7 @@ "start": 8593, "end": 8608 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -9963,9 +9545,7 @@ "start": 8618, "end": 8621 }, - "ctxt": 0, - "value": "Mul", - "optional": false + "value": "Mul" } } } @@ -9992,9 +9572,7 @@ "start": 8641, "end": 8669 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -10037,9 +9615,7 @@ "start": 8688, "end": 8703 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10070,9 +9646,7 @@ "start": 8713, "end": 8716 }, - "ctxt": 0, - "value": "Div", - "optional": false + "value": "Div" } } } @@ -10099,9 +9673,7 @@ "start": 8736, "end": 8764 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -10144,9 +9716,7 @@ "start": 8783, "end": 8798 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10177,9 +9747,7 @@ "start": 8808, "end": 8811 }, - "ctxt": 0, - "value": "Mod", - "optional": false + "value": "Mod" } } } @@ -10206,9 +9774,7 @@ "start": 8831, "end": 8859 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -10251,9 +9817,7 @@ "start": 8878, "end": 8893 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10284,9 +9848,7 @@ "start": 8903, "end": 8906 }, - "ctxt": 0, - "value": "Lsh", - "optional": false + "value": "Lsh" } } } @@ -10313,9 +9875,7 @@ "start": 8926, "end": 8954 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -10358,9 +9918,7 @@ "start": 8973, "end": 8988 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10391,9 +9949,7 @@ "start": 8998, "end": 9001 }, - "ctxt": 0, - "value": "Rsh", - "optional": false + "value": "Rsh" } } } @@ -10420,9 +9976,7 @@ "start": 9021, "end": 9049 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -10465,9 +10019,7 @@ "start": 9068, "end": 9083 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10498,9 +10050,7 @@ "start": 9093, "end": 9096 }, - "ctxt": 0, - "value": "Rs2", - "optional": false + "value": "Rs2" } } } @@ -10527,9 +10077,7 @@ "start": 9116, "end": 9144 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -10572,9 +10120,7 @@ "start": 9163, "end": 9178 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10605,9 +10151,7 @@ "start": 9188, "end": 9191 }, - "ctxt": 0, - "value": "Not", - "optional": false + "value": "Not" } } } @@ -10634,9 +10178,7 @@ "start": 9211, "end": 9238 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -10679,9 +10221,7 @@ "start": 9257, "end": 9272 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10712,9 +10252,7 @@ "start": 9282, "end": 9288 }, - "ctxt": 0, - "value": "LogNot", - "optional": false + "value": "LogNot" } } } @@ -10741,9 +10279,7 @@ "start": 9308, "end": 9335 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -10786,9 +10322,7 @@ "start": 9354, "end": 9369 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10819,9 +10353,7 @@ "start": 9379, "end": 9385 }, - "ctxt": 0, - "value": "IncPre", - "optional": false + "value": "IncPre" } } } @@ -10848,9 +10380,7 @@ "start": 9405, "end": 9432 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -10893,9 +10423,7 @@ "start": 9451, "end": 9466 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -10926,9 +10454,7 @@ "start": 9476, "end": 9482 }, - "ctxt": 0, - "value": "DecPre", - "optional": false + "value": "DecPre" } } } @@ -10955,9 +10481,7 @@ "start": 9502, "end": 9529 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -11000,9 +10524,7 @@ "start": 9548, "end": 9563 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11033,9 +10555,7 @@ "start": 9573, "end": 9580 }, - "ctxt": 0, - "value": "IncPost", - "optional": false + "value": "IncPost" } } } @@ -11062,9 +10582,7 @@ "start": 9600, "end": 9627 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -11107,9 +10625,7 @@ "start": 9646, "end": 9661 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11140,9 +10656,7 @@ "start": 9671, "end": 9678 }, - "ctxt": 0, - "value": "DecPost", - "optional": false + "value": "DecPost" } } } @@ -11169,9 +10683,7 @@ "start": 9698, "end": 9725 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -11214,9 +10726,7 @@ "start": 9744, "end": 9759 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11247,9 +10757,7 @@ "start": 9769, "end": 9782 }, - "ctxt": 0, - "value": "TypeAssertion", - "optional": false + "value": "TypeAssertion" } } } @@ -11276,9 +10784,7 @@ "start": 9802, "end": 9829 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -11321,9 +10827,7 @@ "start": 9848, "end": 9863 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11354,9 +10858,7 @@ "start": 9873, "end": 9881 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -11383,9 +10885,7 @@ "start": 9901, "end": 9921 }, - "ctxt": 0, - "value": "walkFuncDeclChildren", - "optional": false + "value": "walkFuncDeclChildren" } } } @@ -11428,9 +10928,7 @@ "start": 9940, "end": 9955 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11461,9 +10959,7 @@ "start": 9965, "end": 9971 }, - "ctxt": 0, - "value": "Member", - "optional": false + "value": "Member" } } } @@ -11490,9 +10986,7 @@ "start": 9991, "end": 10019 }, - "ctxt": 0, - "value": "walkBinaryExpressionChildren", - "optional": false + "value": "walkBinaryExpressionChildren" } } } @@ -11535,9 +11029,7 @@ "start": 10038, "end": 10053 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11568,9 +11060,7 @@ "start": 10063, "end": 10070 }, - "ctxt": 0, - "value": "VarDecl", - "optional": false + "value": "VarDecl" } } } @@ -11597,9 +11087,7 @@ "start": 10090, "end": 10111 }, - "ctxt": 0, - "value": "walkBoundDeclChildren", - "optional": false + "value": "walkBoundDeclChildren" } } } @@ -11642,9 +11130,7 @@ "start": 10130, "end": 10145 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11675,9 +11161,7 @@ "start": 10155, "end": 10162 }, - "ctxt": 0, - "value": "ArgDecl", - "optional": false + "value": "ArgDecl" } } } @@ -11704,9 +11188,7 @@ "start": 10182, "end": 10203 }, - "ctxt": 0, - "value": "walkBoundDeclChildren", - "optional": false + "value": "walkBoundDeclChildren" } } } @@ -11749,9 +11231,7 @@ "start": 10222, "end": 10237 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11782,9 +11262,7 @@ "start": 10247, "end": 10253 }, - "ctxt": 0, - "value": "Return", - "optional": false + "value": "Return" } } } @@ -11811,9 +11289,7 @@ "start": 10273, "end": 10300 }, - "ctxt": 0, - "value": "walkReturnStatementChildren", - "optional": false + "value": "walkReturnStatementChildren" } } } @@ -11856,9 +11332,7 @@ "start": 10319, "end": 10334 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11889,9 +11363,7 @@ "start": 10344, "end": 10349 }, - "ctxt": 0, - "value": "Break", - "optional": false + "value": "Break" } } } @@ -11918,9 +11390,7 @@ "start": 10369, "end": 10377 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -11963,9 +11433,7 @@ "start": 10396, "end": 10411 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -11996,9 +11464,7 @@ "start": 10421, "end": 10429 }, - "ctxt": 0, - "value": "Continue", - "optional": false + "value": "Continue" } } } @@ -12025,9 +11491,7 @@ "start": 10449, "end": 10457 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -12070,9 +11534,7 @@ "start": 10476, "end": 10491 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12103,9 +11565,7 @@ "start": 10501, "end": 10506 }, - "ctxt": 0, - "value": "Throw", - "optional": false + "value": "Throw" } } } @@ -12132,9 +11592,7 @@ "start": 10526, "end": 10553 }, - "ctxt": 0, - "value": "walkUnaryExpressionChildren", - "optional": false + "value": "walkUnaryExpressionChildren" } } } @@ -12177,9 +11635,7 @@ "start": 10572, "end": 10587 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12210,9 +11666,7 @@ "start": 10597, "end": 10600 }, - "ctxt": 0, - "value": "For", - "optional": false + "value": "For" } } } @@ -12239,9 +11693,7 @@ "start": 10620, "end": 10644 }, - "ctxt": 0, - "value": "walkForStatementChildren", - "optional": false + "value": "walkForStatementChildren" } } } @@ -12284,9 +11736,7 @@ "start": 10663, "end": 10678 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12317,9 +11767,7 @@ "start": 10688, "end": 10693 }, - "ctxt": 0, - "value": "ForIn", - "optional": false + "value": "ForIn" } } } @@ -12346,9 +11794,7 @@ "start": 10713, "end": 10739 }, - "ctxt": 0, - "value": "walkForInStatementChildren", - "optional": false + "value": "walkForInStatementChildren" } } } @@ -12391,9 +11837,7 @@ "start": 10758, "end": 10773 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12424,9 +11868,7 @@ "start": 10783, "end": 10785 }, - "ctxt": 0, - "value": "If", - "optional": false + "value": "If" } } } @@ -12453,9 +11895,7 @@ "start": 10805, "end": 10828 }, - "ctxt": 0, - "value": "walkIfStatementChildren", - "optional": false + "value": "walkIfStatementChildren" } } } @@ -12498,9 +11938,7 @@ "start": 10847, "end": 10862 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12531,9 +11969,7 @@ "start": 10872, "end": 10877 }, - "ctxt": 0, - "value": "While", - "optional": false + "value": "While" } } } @@ -12560,9 +11996,7 @@ "start": 10897, "end": 10923 }, - "ctxt": 0, - "value": "walkWhileStatementChildren", - "optional": false + "value": "walkWhileStatementChildren" } } } @@ -12605,9 +12039,7 @@ "start": 10942, "end": 10957 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12638,9 +12070,7 @@ "start": 10967, "end": 10974 }, - "ctxt": 0, - "value": "DoWhile", - "optional": false + "value": "DoWhile" } } } @@ -12667,9 +12097,7 @@ "start": 10994, "end": 11022 }, - "ctxt": 0, - "value": "walkDoWhileStatementChildren", - "optional": false + "value": "walkDoWhileStatementChildren" } } } @@ -12712,9 +12140,7 @@ "start": 11041, "end": 11056 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12745,9 +12171,7 @@ "start": 11066, "end": 11071 }, - "ctxt": 0, - "value": "Block", - "optional": false + "value": "Block" } } } @@ -12774,9 +12198,7 @@ "start": 11091, "end": 11108 }, - "ctxt": 0, - "value": "walkBlockChildren", - "optional": false + "value": "walkBlockChildren" } } } @@ -12819,9 +12241,7 @@ "start": 11127, "end": 11142 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12852,9 +12272,7 @@ "start": 11152, "end": 11156 }, - "ctxt": 0, - "value": "Case", - "optional": false + "value": "Case" } } } @@ -12881,9 +12299,7 @@ "start": 11176, "end": 11201 }, - "ctxt": 0, - "value": "walkCaseStatementChildren", - "optional": false + "value": "walkCaseStatementChildren" } } } @@ -12926,9 +12342,7 @@ "start": 11220, "end": 11235 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -12959,9 +12373,7 @@ "start": 11245, "end": 11251 }, - "ctxt": 0, - "value": "Switch", - "optional": false + "value": "Switch" } } } @@ -12988,9 +12400,7 @@ "start": 11271, "end": 11298 }, - "ctxt": 0, - "value": "walkSwitchStatementChildren", - "optional": false + "value": "walkSwitchStatementChildren" } } } @@ -13033,9 +12443,7 @@ "start": 11317, "end": 11332 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13066,9 +12474,7 @@ "start": 11342, "end": 11345 }, - "ctxt": 0, - "value": "Try", - "optional": false + "value": "Try" } } } @@ -13095,9 +12501,7 @@ "start": 11365, "end": 11380 }, - "ctxt": 0, - "value": "walkTryChildren", - "optional": false + "value": "walkTryChildren" } } } @@ -13140,9 +12544,7 @@ "start": 11399, "end": 11414 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13173,9 +12575,7 @@ "start": 11424, "end": 11432 }, - "ctxt": 0, - "value": "TryCatch", - "optional": false + "value": "TryCatch" } } } @@ -13202,9 +12602,7 @@ "start": 11452, "end": 11472 }, - "ctxt": 0, - "value": "walkTryCatchChildren", - "optional": false + "value": "walkTryCatchChildren" } } } @@ -13247,9 +12645,7 @@ "start": 11491, "end": 11506 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13280,9 +12676,7 @@ "start": 11516, "end": 11526 }, - "ctxt": 0, - "value": "TryFinally", - "optional": false + "value": "TryFinally" } } } @@ -13309,9 +12703,7 @@ "start": 11546, "end": 11568 }, - "ctxt": 0, - "value": "walkTryFinallyChildren", - "optional": false + "value": "walkTryFinallyChildren" } } } @@ -13354,9 +12746,7 @@ "start": 11587, "end": 11602 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13387,9 +12777,7 @@ "start": 11612, "end": 11619 }, - "ctxt": 0, - "value": "Finally", - "optional": false + "value": "Finally" } } } @@ -13416,9 +12804,7 @@ "start": 11639, "end": 11658 }, - "ctxt": 0, - "value": "walkFinallyChildren", - "optional": false + "value": "walkFinallyChildren" } } } @@ -13461,9 +12847,7 @@ "start": 11677, "end": 11692 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13494,9 +12878,7 @@ "start": 11702, "end": 11707 }, - "ctxt": 0, - "value": "Catch", - "optional": false + "value": "Catch" } } } @@ -13523,9 +12905,7 @@ "start": 11727, "end": 11744 }, - "ctxt": 0, - "value": "walkCatchChildren", - "optional": false + "value": "walkCatchChildren" } } } @@ -13568,9 +12948,7 @@ "start": 11763, "end": 11778 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13601,9 +12979,7 @@ "start": 11788, "end": 11792 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -13630,9 +13006,7 @@ "start": 11812, "end": 11828 }, - "ctxt": 0, - "value": "walkListChildren", - "optional": false + "value": "walkListChildren" } } } @@ -13675,9 +13049,7 @@ "start": 11847, "end": 11862 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13708,9 +13080,7 @@ "start": 11872, "end": 11878 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } } } @@ -13737,9 +13107,7 @@ "start": 11898, "end": 11916 }, - "ctxt": 0, - "value": "walkScriptChildren", - "optional": false + "value": "walkScriptChildren" } } } @@ -13782,9 +13150,7 @@ "start": 11935, "end": 11950 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13815,9 +13181,7 @@ "start": 11960, "end": 11976 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } } @@ -13844,9 +13208,7 @@ "start": 11996, "end": 12017 }, - "ctxt": 0, - "value": "walkClassDeclChildren", - "optional": false + "value": "walkClassDeclChildren" } } } @@ -13889,9 +13251,7 @@ "start": 12036, "end": 12051 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -13922,9 +13282,7 @@ "start": 12061, "end": 12081 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } } } @@ -13951,9 +13309,7 @@ "start": 12101, "end": 12121 }, - "ctxt": 0, - "value": "walkTypeDeclChildren", - "optional": false + "value": "walkTypeDeclChildren" } } } @@ -13996,9 +13352,7 @@ "start": 12140, "end": 12155 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14029,9 +13383,7 @@ "start": 12165, "end": 12182 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } } @@ -14058,9 +13410,7 @@ "start": 12202, "end": 12224 }, - "ctxt": 0, - "value": "walkModuleDeclChildren", - "optional": false + "value": "walkModuleDeclChildren" } } } @@ -14103,9 +13453,7 @@ "start": 12243, "end": 12258 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14136,9 +13484,7 @@ "start": 12268, "end": 12285 }, - "ctxt": 0, - "value": "ImportDeclaration", - "optional": false + "value": "ImportDeclaration" } } } @@ -14165,9 +13511,7 @@ "start": 12305, "end": 12327 }, - "ctxt": 0, - "value": "walkImportDeclChildren", - "optional": false + "value": "walkImportDeclChildren" } } } @@ -14210,9 +13554,7 @@ "start": 12346, "end": 12361 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14243,9 +13585,7 @@ "start": 12371, "end": 12375 }, - "ctxt": 0, - "value": "With", - "optional": false + "value": "With" } } } @@ -14272,9 +13612,7 @@ "start": 12395, "end": 12420 }, - "ctxt": 0, - "value": "walkWithStatementChildren", - "optional": false + "value": "walkWithStatementChildren" } } } @@ -14317,9 +13655,7 @@ "start": 12439, "end": 12454 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14350,9 +13686,7 @@ "start": 12464, "end": 12469 }, - "ctxt": 0, - "value": "Label", - "optional": false + "value": "Label" } } } @@ -14379,9 +13713,7 @@ "start": 12489, "end": 12506 }, - "ctxt": 0, - "value": "walkLabelChildren", - "optional": false + "value": "walkLabelChildren" } } } @@ -14424,9 +13756,7 @@ "start": 12525, "end": 12540 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14457,9 +13787,7 @@ "start": 12550, "end": 12566 }, - "ctxt": 0, - "value": "LabeledStatement", - "optional": false + "value": "LabeledStatement" } } } @@ -14486,9 +13814,7 @@ "start": 12586, "end": 12614 }, - "ctxt": 0, - "value": "walkLabeledStatementChildren", - "optional": false + "value": "walkLabeledStatementChildren" } } } @@ -14531,9 +13857,7 @@ "start": 12633, "end": 12648 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14564,9 +13888,7 @@ "start": 12658, "end": 12665 }, - "ctxt": 0, - "value": "EBStart", - "optional": false + "value": "EBStart" } } } @@ -14593,9 +13915,7 @@ "start": 12685, "end": 12693 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -14638,9 +13958,7 @@ "start": 12712, "end": 12727 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14671,9 +13989,7 @@ "start": 12737, "end": 12743 }, - "ctxt": 0, - "value": "GotoEB", - "optional": false + "value": "GotoEB" } } } @@ -14700,9 +14016,7 @@ "start": 12763, "end": 12771 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -14745,9 +14059,7 @@ "start": 12790, "end": 12805 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14778,9 +14090,7 @@ "start": 12815, "end": 12822 }, - "ctxt": 0, - "value": "EndCode", - "optional": false + "value": "EndCode" } } } @@ -14807,9 +14117,7 @@ "start": 12842, "end": 12850 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -14852,9 +14160,7 @@ "start": 12869, "end": 12884 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14885,9 +14191,7 @@ "start": 12894, "end": 12899 }, - "ctxt": 0, - "value": "Error", - "optional": false + "value": "Error" } } } @@ -14914,9 +14218,7 @@ "start": 12919, "end": 12927 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -14959,9 +14261,7 @@ "start": 12946, "end": 12961 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -14992,9 +14292,7 @@ "start": 12971, "end": 12978 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } } } @@ -15021,9 +14319,7 @@ "start": 12998, "end": 13006 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -15066,9 +14362,7 @@ "start": 13025, "end": 13040 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "property": { @@ -15099,9 +14393,7 @@ "start": 13050, "end": 13058 }, - "ctxt": 0, - "value": "Debugger", - "optional": false + "value": "Debugger" } } } @@ -15128,9 +14420,7 @@ "start": 13078, "end": 13086 }, - "ctxt": 0, - "value": "walkNone", - "optional": false + "value": "walkNone" } } } @@ -15217,9 +14507,7 @@ "start": 13190, "end": 13194 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "body": { @@ -15280,9 +14568,7 @@ "start": 13229, "end": 13244 }, - "ctxt": 0, - "value": "childrenWalkers", - "optional": false + "value": "childrenWalkers" } }, "typeAnnotation": { @@ -16065,9 +15351,7 @@ "start": 13970, "end": 13977 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -16076,9 +15360,7 @@ "start": 13978, "end": 13984 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -16119,9 +15401,7 @@ "start": 14009, "end": 14016 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -16130,9 +15410,7 @@ "start": 14017, "end": 14032 }, - "ctxt": 0, - "value": "reverseSiblings", - "optional": false + "value": "reverseSiblings" } }, "consequent": { @@ -16295,9 +15573,7 @@ "start": 14120, "end": 14127 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -16306,9 +15582,7 @@ "start": 14128, "end": 14141 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "consequent": { @@ -16360,9 +15634,7 @@ "start": 14176, "end": 14183 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -16412,9 +15684,7 @@ "start": 14196, "end": 14200 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -16448,9 +15718,7 @@ "start": 14208, "end": 14215 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -16642,9 +15910,7 @@ "start": 14381, "end": 14388 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -16653,9 +15919,7 @@ "start": 14389, "end": 14402 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "consequent": { @@ -16707,9 +15971,7 @@ "start": 14437, "end": 14444 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -16759,9 +16021,7 @@ "start": 14457, "end": 14461 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -16795,9 +16055,7 @@ "start": 14469, "end": 14476 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -17061,9 +16319,7 @@ "start": 14696, "end": 14704 }, - "ctxt": 0, - "value": "castTerm", - "optional": false + "value": "castTerm" } }, "consequent": { @@ -17109,9 +16365,7 @@ "start": 14731, "end": 14739 }, - "ctxt": 0, - "value": "castTerm", - "optional": false + "value": "castTerm" } }, "right": { @@ -17143,9 +16397,7 @@ "start": 14749, "end": 14753 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -17173,9 +16425,7 @@ "start": 14761, "end": 14769 }, - "ctxt": 0, - "value": "castTerm", - "optional": false + "value": "castTerm" } } }, @@ -17229,9 +16479,7 @@ "start": 14817, "end": 14824 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "consequent": { @@ -17277,9 +16525,7 @@ "start": 14851, "end": 14858 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "right": { @@ -17311,9 +16557,7 @@ "start": 14868, "end": 14872 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -17341,9 +16585,7 @@ "start": 14880, "end": 14887 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } } }, @@ -17589,9 +16831,7 @@ "start": 15066, "end": 15073 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -17600,9 +16840,7 @@ "start": 15074, "end": 15089 }, - "ctxt": 0, - "value": "reverseSiblings", - "optional": false + "value": "reverseSiblings" } }, "consequent": { @@ -17641,9 +16879,7 @@ "start": 15120, "end": 15128 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } }, "consequent": { @@ -17689,9 +16925,7 @@ "start": 15159, "end": 15167 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } }, "right": { @@ -17723,9 +16957,7 @@ "start": 15177, "end": 15181 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -17753,9 +16985,7 @@ "start": 15189, "end": 15197 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } } }, @@ -17822,9 +17052,7 @@ "start": 15254, "end": 15262 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } } }, @@ -17862,9 +17090,7 @@ "start": 15275, "end": 15282 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -17873,9 +17099,7 @@ "start": 15283, "end": 15296 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -17923,9 +17147,7 @@ "start": 15328, "end": 15336 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } }, "right": { @@ -17957,9 +17179,7 @@ "start": 15346, "end": 15350 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -17987,9 +17207,7 @@ "start": 15358, "end": 15366 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } } }, @@ -18053,9 +17271,7 @@ "start": 15443, "end": 15451 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } }, "consequent": { @@ -18101,9 +17317,7 @@ "start": 15482, "end": 15490 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } }, "right": { @@ -18135,9 +17349,7 @@ "start": 15500, "end": 15504 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -18165,9 +17377,7 @@ "start": 15512, "end": 15520 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } } }, @@ -18234,9 +17444,7 @@ "start": 15577, "end": 15585 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } } }, @@ -18274,9 +17482,7 @@ "start": 15598, "end": 15605 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -18285,9 +17491,7 @@ "start": 15606, "end": 15619 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -18335,9 +17539,7 @@ "start": 15651, "end": 15659 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } }, "right": { @@ -18369,9 +17571,7 @@ "start": 15669, "end": 15673 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -18399,9 +17599,7 @@ "start": 15681, "end": 15689 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } } }, @@ -18644,9 +17842,7 @@ "start": 15880, "end": 15884 }, - "ctxt": 0, - "value": "term", - "optional": false + "value": "term" } }, "consequent": { @@ -18692,9 +17888,7 @@ "start": 15911, "end": 15915 }, - "ctxt": 0, - "value": "term", - "optional": false + "value": "term" } }, "right": { @@ -18726,9 +17920,7 @@ "start": 15925, "end": 15929 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -18756,9 +17948,7 @@ "start": 15937, "end": 15941 }, - "ctxt": 0, - "value": "term", - "optional": false + "value": "term" } } }, @@ -19011,9 +18201,7 @@ "start": 16117, "end": 16124 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -19022,9 +18210,7 @@ "start": 16125, "end": 16140 }, - "ctxt": 0, - "value": "reverseSiblings", - "optional": false + "value": "reverseSiblings" } } }, @@ -19071,9 +18257,7 @@ "start": 16167, "end": 16173 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } }, "right": { @@ -19105,9 +18289,7 @@ "start": 16183, "end": 16187 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -19135,9 +18317,7 @@ "start": 16195, "end": 16201 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } } }, @@ -19198,9 +18378,7 @@ "start": 16249, "end": 16258 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -19237,9 +18415,7 @@ "start": 16270, "end": 16277 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -19248,9 +18424,7 @@ "start": 16278, "end": 16291 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -19298,9 +18472,7 @@ "start": 16319, "end": 16328 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -19338,9 +18510,7 @@ "start": 16348, "end": 16352 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -19368,9 +18538,7 @@ "start": 16360, "end": 16369 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } } }, @@ -19462,9 +18630,7 @@ "start": 16418, "end": 16425 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -19473,9 +18639,7 @@ "start": 16426, "end": 16441 }, - "ctxt": 0, - "value": "reverseSiblings", - "optional": false + "value": "reverseSiblings" } } }, @@ -19513,9 +18677,7 @@ "start": 16454, "end": 16461 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -19524,9 +18686,7 @@ "start": 16462, "end": 16475 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -19574,9 +18734,7 @@ "start": 16503, "end": 16509 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } }, "right": { @@ -19608,9 +18766,7 @@ "start": 16519, "end": 16523 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -19638,9 +18794,7 @@ "start": 16531, "end": 16537 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } } }, @@ -19880,9 +19034,7 @@ "start": 16722, "end": 16730 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } }, "consequent": { @@ -19928,9 +19080,7 @@ "start": 16757, "end": 16765 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } }, "right": { @@ -19962,9 +19112,7 @@ "start": 16775, "end": 16779 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -19992,9 +19140,7 @@ "start": 16787, "end": 16795 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } } }, @@ -20055,9 +19201,7 @@ "start": 16843, "end": 16851 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } }, "right": { @@ -20094,9 +19238,7 @@ "start": 16863, "end": 16870 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -20105,9 +19247,7 @@ "start": 16871, "end": 16884 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -20155,9 +19295,7 @@ "start": 16912, "end": 16920 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } }, "right": { @@ -20189,9 +19327,7 @@ "start": 16930, "end": 16934 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -20219,9 +19355,7 @@ "start": 16942, "end": 16950 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } } }, @@ -20282,9 +19416,7 @@ "start": 16998, "end": 17006 }, - "ctxt": 0, - "value": "operand3", - "optional": false + "value": "operand3" } }, "right": { @@ -20321,9 +19453,7 @@ "start": 17018, "end": 17025 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -20332,9 +19462,7 @@ "start": 17026, "end": 17039 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -20382,9 +19510,7 @@ "start": 17067, "end": 17075 }, - "ctxt": 0, - "value": "operand3", - "optional": false + "value": "operand3" } }, "right": { @@ -20416,9 +19542,7 @@ "start": 17085, "end": 17089 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -20446,9 +19570,7 @@ "start": 17097, "end": 17105 }, - "ctxt": 0, - "value": "operand3", - "optional": false + "value": "operand3" } } }, @@ -20688,9 +19810,7 @@ "start": 17268, "end": 17272 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "consequent": { @@ -20736,9 +19856,7 @@ "start": 17299, "end": 17303 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -20776,9 +19894,7 @@ "start": 17325, "end": 17329 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -20806,9 +19922,7 @@ "start": 17337, "end": 17341 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -20895,9 +20009,7 @@ "start": 17389, "end": 17398 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -20947,9 +20059,7 @@ "start": 17410, "end": 17419 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "property": { @@ -20958,9 +20068,7 @@ "start": 17420, "end": 17427 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -20969,9 +20077,7 @@ "start": 17428, "end": 17434 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -21020,9 +20126,7 @@ "start": 17451, "end": 17458 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -21031,9 +20135,7 @@ "start": 17459, "end": 17472 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -21081,9 +20183,7 @@ "start": 17500, "end": 17509 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -21121,9 +20221,7 @@ "start": 17528, "end": 17532 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -21151,9 +20249,7 @@ "start": 17540, "end": 17549 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } } }, @@ -21233,9 +20329,7 @@ "start": 17597, "end": 17617 }, - "ctxt": 0, - "value": "returnTypeAnnotation", - "optional": false + "value": "returnTypeAnnotation" } }, "right": { @@ -21272,9 +20366,7 @@ "start": 17629, "end": 17636 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -21283,9 +20375,7 @@ "start": 17637, "end": 17650 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -21333,9 +20423,7 @@ "start": 17678, "end": 17698 }, - "ctxt": 0, - "value": "returnTypeAnnotation", - "optional": false + "value": "returnTypeAnnotation" } }, "right": { @@ -21367,9 +20455,7 @@ "start": 17708, "end": 17712 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -21397,9 +20483,7 @@ "start": 17720, "end": 17740 }, - "ctxt": 0, - "value": "returnTypeAnnotation", - "optional": false + "value": "returnTypeAnnotation" } } }, @@ -21467,9 +20551,7 @@ "start": 17788, "end": 17791 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "right": { @@ -21519,9 +20601,7 @@ "start": 17803, "end": 17806 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "property": { @@ -21530,9 +20610,7 @@ "start": 17807, "end": 17814 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -21541,9 +20619,7 @@ "start": 17815, "end": 17821 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -21592,9 +20668,7 @@ "start": 17838, "end": 17845 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -21603,9 +20677,7 @@ "start": 17846, "end": 17859 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -21653,9 +20725,7 @@ "start": 17887, "end": 17890 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "right": { @@ -21693,9 +20763,7 @@ "start": 17909, "end": 17913 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -21723,9 +20791,7 @@ "start": 17921, "end": 17924 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } } }, @@ -21984,9 +21050,7 @@ "start": 18089, "end": 18091 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "consequent": { @@ -22032,9 +21096,7 @@ "start": 18118, "end": 18120 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -22072,9 +21134,7 @@ "start": 18142, "end": 18146 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -22102,9 +21162,7 @@ "start": 18154, "end": 18156 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } }, @@ -22177,9 +21235,7 @@ "start": 18204, "end": 18208 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } }, "consequent": { @@ -22225,9 +21281,7 @@ "start": 18235, "end": 18239 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } }, "right": { @@ -22259,9 +21313,7 @@ "start": 18249, "end": 18253 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -22289,9 +21341,7 @@ "start": 18261, "end": 18265 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } } }, @@ -22358,9 +21408,7 @@ "start": 18314, "end": 18322 }, - "ctxt": 0, - "value": "typeExpr", - "optional": false + "value": "typeExpr" } } }, @@ -22398,9 +21446,7 @@ "start": 18335, "end": 18342 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -22409,9 +21455,7 @@ "start": 18343, "end": 18356 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -22459,9 +21503,7 @@ "start": 18384, "end": 18392 }, - "ctxt": 0, - "value": "typeExpr", - "optional": false + "value": "typeExpr" } }, "right": { @@ -22493,9 +21535,7 @@ "start": 18402, "end": 18406 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -22523,9 +21563,7 @@ "start": 18414, "end": 18422 }, - "ctxt": 0, - "value": "typeExpr", - "optional": false + "value": "typeExpr" } } }, @@ -22765,9 +21803,7 @@ "start": 18599, "end": 18615 }, - "ctxt": 0, - "value": "returnExpression", - "optional": false + "value": "returnExpression" } }, "consequent": { @@ -22813,9 +21849,7 @@ "start": 18642, "end": 18658 }, - "ctxt": 0, - "value": "returnExpression", - "optional": false + "value": "returnExpression" } }, "right": { @@ -22847,9 +21881,7 @@ "start": 18668, "end": 18672 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -22877,9 +21909,7 @@ "start": 18680, "end": 18696 }, - "ctxt": 0, - "value": "returnExpression", - "optional": false + "value": "returnExpression" } } }, @@ -23119,9 +22149,7 @@ "start": 18867, "end": 18871 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } }, "consequent": { @@ -23167,9 +22195,7 @@ "start": 18898, "end": 18902 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } }, "right": { @@ -23201,9 +22227,7 @@ "start": 18912, "end": 18916 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -23231,9 +22255,7 @@ "start": 18924, "end": 18928 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" } } }, @@ -23294,9 +22316,7 @@ "start": 18977, "end": 18981 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } }, "right": { @@ -23327,9 +22347,7 @@ "start": 18992, "end": 18999 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -23338,9 +22356,7 @@ "start": 19000, "end": 19013 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -23387,9 +22403,7 @@ "start": 19040, "end": 19044 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } }, "right": { @@ -23421,9 +22435,7 @@ "start": 19054, "end": 19058 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -23451,9 +22463,7 @@ "start": 19066, "end": 19070 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } } }, @@ -23514,9 +22524,7 @@ "start": 19119, "end": 19123 }, - "ctxt": 0, - "value": "incr", - "optional": false + "value": "incr" } }, "right": { @@ -23547,9 +22555,7 @@ "start": 19134, "end": 19141 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -23558,9 +22564,7 @@ "start": 19142, "end": 19155 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -23607,9 +22611,7 @@ "start": 19182, "end": 19186 }, - "ctxt": 0, - "value": "incr", - "optional": false + "value": "incr" } }, "right": { @@ -23641,9 +22643,7 @@ "start": 19196, "end": 19200 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -23671,9 +22671,7 @@ "start": 19208, "end": 19212 }, - "ctxt": 0, - "value": "incr", - "optional": false + "value": "incr" } } }, @@ -23734,9 +22732,7 @@ "start": 19261, "end": 19265 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -23767,9 +22763,7 @@ "start": 19276, "end": 19283 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -23778,9 +22772,7 @@ "start": 19284, "end": 19297 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -23827,9 +22819,7 @@ "start": 19324, "end": 19328 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -23861,9 +22851,7 @@ "start": 19338, "end": 19342 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -23891,9 +22879,7 @@ "start": 19350, "end": 19354 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -24140,9 +23126,7 @@ "start": 19525, "end": 19529 }, - "ctxt": 0, - "value": "lval", - "optional": false + "value": "lval" } }, "right": { @@ -24174,9 +23158,7 @@ "start": 19539, "end": 19543 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -24204,9 +23186,7 @@ "start": 19551, "end": 19555 }, - "ctxt": 0, - "value": "lval", - "optional": false + "value": "lval" } } }, @@ -24262,9 +23242,7 @@ "start": 19589, "end": 19596 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -24273,9 +23251,7 @@ "start": 19597, "end": 19610 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "consequent": { @@ -24321,9 +23297,7 @@ "start": 19637, "end": 19640 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } }, "right": { @@ -24355,9 +23329,7 @@ "start": 19650, "end": 19654 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -24385,9 +23357,7 @@ "start": 19662, "end": 19665 }, - "ctxt": 0, - "value": "obj", - "optional": false + "value": "obj" } } }, @@ -24448,9 +23418,7 @@ "start": 19713, "end": 19717 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -24487,9 +23455,7 @@ "start": 19729, "end": 19736 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -24498,9 +23464,7 @@ "start": 19737, "end": 19750 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -24548,9 +23512,7 @@ "start": 19778, "end": 19782 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -24582,9 +23544,7 @@ "start": 19792, "end": 19796 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -24612,9 +23572,7 @@ "start": 19804, "end": 19808 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -24861,9 +23819,7 @@ "start": 19973, "end": 19977 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } }, "right": { @@ -24895,9 +23851,7 @@ "start": 19987, "end": 19991 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -24925,9 +23879,7 @@ "start": 19999, "end": 20003 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } } }, @@ -24984,9 +23936,7 @@ "start": 20037, "end": 20044 }, - "ctxt": 0, - "value": "thenBod", - "optional": false + "value": "thenBod" } }, "right": { @@ -25023,9 +23973,7 @@ "start": 20056, "end": 20063 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -25034,9 +23982,7 @@ "start": 20064, "end": 20077 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -25084,9 +24030,7 @@ "start": 20105, "end": 20112 }, - "ctxt": 0, - "value": "thenBod", - "optional": false + "value": "thenBod" } }, "right": { @@ -25118,9 +24062,7 @@ "start": 20122, "end": 20126 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -25148,9 +24090,7 @@ "start": 20134, "end": 20141 }, - "ctxt": 0, - "value": "thenBod", - "optional": false + "value": "thenBod" } } }, @@ -25211,9 +24151,7 @@ "start": 20189, "end": 20196 }, - "ctxt": 0, - "value": "elseBod", - "optional": false + "value": "elseBod" } }, "right": { @@ -25250,9 +24188,7 @@ "start": 20208, "end": 20215 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -25261,9 +24197,7 @@ "start": 20216, "end": 20229 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -25311,9 +24245,7 @@ "start": 20257, "end": 20264 }, - "ctxt": 0, - "value": "elseBod", - "optional": false + "value": "elseBod" } }, "right": { @@ -25345,9 +24277,7 @@ "start": 20274, "end": 20278 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -25375,9 +24305,7 @@ "start": 20286, "end": 20293 }, - "ctxt": 0, - "value": "elseBod", - "optional": false + "value": "elseBod" } } }, @@ -25624,9 +24552,7 @@ "start": 20464, "end": 20468 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } }, "right": { @@ -25658,9 +24584,7 @@ "start": 20478, "end": 20482 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -25688,9 +24612,7 @@ "start": 20490, "end": 20494 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } } }, @@ -25747,9 +24669,7 @@ "start": 20528, "end": 20532 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -25786,9 +24706,7 @@ "start": 20544, "end": 20551 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -25797,9 +24715,7 @@ "start": 20552, "end": 20565 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -25847,9 +24763,7 @@ "start": 20593, "end": 20597 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -25881,9 +24795,7 @@ "start": 20607, "end": 20611 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -25911,9 +24823,7 @@ "start": 20619, "end": 20623 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -26160,9 +25070,7 @@ "start": 20798, "end": 20802 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } }, "right": { @@ -26194,9 +25102,7 @@ "start": 20812, "end": 20816 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -26224,9 +25130,7 @@ "start": 20824, "end": 20828 }, - "ctxt": 0, - "value": "cond", - "optional": false + "value": "cond" } } }, @@ -26283,9 +25187,7 @@ "start": 20862, "end": 20866 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -26322,9 +25224,7 @@ "start": 20878, "end": 20885 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -26333,9 +25233,7 @@ "start": 20886, "end": 20899 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } } @@ -26383,9 +25281,7 @@ "start": 20927, "end": 20931 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -26417,9 +25313,7 @@ "start": 20941, "end": 20945 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -26447,9 +25341,7 @@ "start": 20953, "end": 20957 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -26689,9 +25581,7 @@ "start": 21114, "end": 21124 }, - "ctxt": 0, - "value": "statements", - "optional": false + "value": "statements" } }, "consequent": { @@ -26737,9 +25627,7 @@ "start": 21151, "end": 21161 }, - "ctxt": 0, - "value": "statements", - "optional": false + "value": "statements" } }, "right": { @@ -26777,9 +25665,7 @@ "start": 21180, "end": 21184 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -26807,9 +25693,7 @@ "start": 21192, "end": 21202 }, - "ctxt": 0, - "value": "statements", - "optional": false + "value": "statements" } } }, @@ -27068,9 +25952,7 @@ "start": 21375, "end": 21379 }, - "ctxt": 0, - "value": "expr", - "optional": false + "value": "expr" } }, "consequent": { @@ -27116,9 +25998,7 @@ "start": 21406, "end": 21410 }, - "ctxt": 0, - "value": "expr", - "optional": false + "value": "expr" } }, "right": { @@ -27150,9 +26030,7 @@ "start": 21420, "end": 21424 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -27180,9 +26058,7 @@ "start": 21432, "end": 21436 }, - "ctxt": 0, - "value": "expr", - "optional": false + "value": "expr" } } }, @@ -27243,9 +26119,7 @@ "start": 21485, "end": 21489 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -27276,9 +26150,7 @@ "start": 21500, "end": 21507 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -27287,9 +26159,7 @@ "start": 21508, "end": 21521 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -27336,9 +26206,7 @@ "start": 21548, "end": 21552 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -27376,9 +26244,7 @@ "start": 21571, "end": 21575 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -27406,9 +26272,7 @@ "start": 21583, "end": 21587 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -27667,9 +26531,7 @@ "start": 21764, "end": 21767 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" } }, "consequent": { @@ -27715,9 +26577,7 @@ "start": 21794, "end": 21797 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" } }, "right": { @@ -27749,9 +26609,7 @@ "start": 21807, "end": 21811 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -27779,9 +26637,7 @@ "start": 21819, "end": 21822 }, - "ctxt": 0, - "value": "val", - "optional": false + "value": "val" } } }, @@ -27848,9 +26704,7 @@ "start": 21872, "end": 21880 }, - "ctxt": 0, - "value": "caseList", - "optional": false + "value": "caseList" } } }, @@ -27882,9 +26736,7 @@ "start": 21892, "end": 21899 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -27893,9 +26745,7 @@ "start": 21900, "end": 21913 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -27942,9 +26792,7 @@ "start": 21940, "end": 21948 }, - "ctxt": 0, - "value": "caseList", - "optional": false + "value": "caseList" } }, "right": { @@ -27982,9 +26830,7 @@ "start": 21967, "end": 21971 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -28012,9 +26858,7 @@ "start": 21979, "end": 21987 }, - "ctxt": 0, - "value": "caseList", - "optional": false + "value": "caseList" } } }, @@ -28273,9 +27117,7 @@ "start": 22140, "end": 22144 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "consequent": { @@ -28321,9 +27163,7 @@ "start": 22171, "end": 22175 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -28355,9 +27195,7 @@ "start": 22185, "end": 22189 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -28385,9 +27223,7 @@ "start": 22197, "end": 22201 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -28627,9 +27463,7 @@ "start": 22364, "end": 22371 }, - "ctxt": 0, - "value": "tryNode", - "optional": false + "value": "tryNode" } }, "consequent": { @@ -28675,9 +27509,7 @@ "start": 22398, "end": 22405 }, - "ctxt": 0, - "value": "tryNode", - "optional": false + "value": "tryNode" } }, "right": { @@ -28715,9 +27547,7 @@ "start": 22420, "end": 22424 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -28745,9 +27575,7 @@ "start": 22432, "end": 22439 }, - "ctxt": 0, - "value": "tryNode", - "optional": false + "value": "tryNode" } } }, @@ -28833,9 +27661,7 @@ "start": 22489, "end": 22498 }, - "ctxt": 0, - "value": "catchNode", - "optional": false + "value": "catchNode" } } }, @@ -28867,9 +27693,7 @@ "start": 22510, "end": 22517 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -28878,9 +27702,7 @@ "start": 22518, "end": 22531 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -28927,9 +27749,7 @@ "start": 22558, "end": 22567 }, - "ctxt": 0, - "value": "catchNode", - "optional": false + "value": "catchNode" } }, "right": { @@ -28967,9 +27787,7 @@ "start": 22584, "end": 22588 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -28997,9 +27815,7 @@ "start": 22596, "end": 22605 }, - "ctxt": 0, - "value": "catchNode", - "optional": false + "value": "catchNode" } } }, @@ -29258,9 +28074,7 @@ "start": 22772, "end": 22779 }, - "ctxt": 0, - "value": "tryNode", - "optional": false + "value": "tryNode" } }, "consequent": { @@ -29306,9 +28120,7 @@ "start": 22806, "end": 22813 }, - "ctxt": 0, - "value": "tryNode", - "optional": false + "value": "tryNode" } }, "right": { @@ -29340,9 +28152,7 @@ "start": 22823, "end": 22827 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -29370,9 +28180,7 @@ "start": 22835, "end": 22842 }, - "ctxt": 0, - "value": "tryNode", - "optional": false + "value": "tryNode" } } }, @@ -29433,9 +28241,7 @@ "start": 22891, "end": 22902 }, - "ctxt": 0, - "value": "finallyNode", - "optional": false + "value": "finallyNode" } }, "right": { @@ -29466,9 +28272,7 @@ "start": 22913, "end": 22920 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -29477,9 +28281,7 @@ "start": 22921, "end": 22934 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -29526,9 +28328,7 @@ "start": 22961, "end": 22972 }, - "ctxt": 0, - "value": "finallyNode", - "optional": false + "value": "finallyNode" } }, "right": { @@ -29566,9 +28366,7 @@ "start": 22991, "end": 22995 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -29596,9 +28394,7 @@ "start": 23003, "end": 23014 }, - "ctxt": 0, - "value": "finallyNode", - "optional": false + "value": "finallyNode" } } }, @@ -29857,9 +28653,7 @@ "start": 23175, "end": 23179 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "consequent": { @@ -29905,9 +28699,7 @@ "start": 23206, "end": 23210 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -29939,9 +28731,7 @@ "start": 23220, "end": 23224 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -29969,9 +28759,7 @@ "start": 23232, "end": 23236 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -30211,9 +28999,7 @@ "start": 23393, "end": 23398 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" } }, "consequent": { @@ -30259,9 +29045,7 @@ "start": 23425, "end": 23430 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" } }, "right": { @@ -30299,9 +29083,7 @@ "start": 23449, "end": 23453 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -30329,9 +29111,7 @@ "start": 23461, "end": 23466 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" } } }, @@ -30417,9 +29197,7 @@ "start": 23516, "end": 23520 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -30451,9 +29229,7 @@ "start": 23532, "end": 23539 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -30462,9 +29238,7 @@ "start": 23540, "end": 23553 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -30511,9 +29285,7 @@ "start": 23580, "end": 23584 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -30545,9 +29317,7 @@ "start": 23594, "end": 23598 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -30575,9 +29345,7 @@ "start": 23606, "end": 23610 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -30824,9 +29592,7 @@ "start": 23775, "end": 23779 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -30864,9 +29630,7 @@ "start": 23801, "end": 23805 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -30894,9 +29658,7 @@ "start": 23813, "end": 23817 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -30978,9 +29740,7 @@ "start": 23851, "end": 23858 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -30989,9 +29749,7 @@ "start": 23859, "end": 23872 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -31016,9 +29774,7 @@ "start": 23883, "end": 23890 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } } }, @@ -31065,9 +29821,7 @@ "start": 23917, "end": 23924 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -31105,9 +29859,7 @@ "start": 23943, "end": 23947 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -31135,9 +29887,7 @@ "start": 23955, "end": 23962 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } } }, @@ -31729,9 +30479,7 @@ "start": 24374, "end": 24381 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -31740,9 +30488,7 @@ "start": 24382, "end": 24395 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -31767,9 +30513,7 @@ "start": 24406, "end": 24417 }, - "ctxt": 0, - "value": "extendsList", - "optional": false + "value": "extendsList" } } }, @@ -31816,9 +30560,7 @@ "start": 24444, "end": 24455 }, - "ctxt": 0, - "value": "extendsList", - "optional": false + "value": "extendsList" } }, "right": { @@ -31856,9 +30598,7 @@ "start": 24474, "end": 24478 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -31886,9 +30626,7 @@ "start": 24486, "end": 24497 }, - "ctxt": 0, - "value": "extendsList", - "optional": false + "value": "extendsList" } } }, @@ -31974,9 +30712,7 @@ "start": 24546, "end": 24553 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -31985,9 +30721,7 @@ "start": 24554, "end": 24567 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -32012,9 +30746,7 @@ "start": 24578, "end": 24592 }, - "ctxt": 0, - "value": "implementsList", - "optional": false + "value": "implementsList" } } }, @@ -32061,9 +30793,7 @@ "start": 24619, "end": 24633 }, - "ctxt": 0, - "value": "implementsList", - "optional": false + "value": "implementsList" } }, "right": { @@ -32101,9 +30831,7 @@ "start": 24652, "end": 24656 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -32131,9 +30859,7 @@ "start": 24664, "end": 24678 }, - "ctxt": 0, - "value": "implementsList", - "optional": false + "value": "implementsList" } } }, @@ -32392,9 +31118,7 @@ "start": 24837, "end": 24840 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "consequent": { @@ -32440,9 +31164,7 @@ "start": 24867, "end": 24870 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "right": { @@ -32480,9 +31202,7 @@ "start": 24889, "end": 24893 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -32510,9 +31230,7 @@ "start": 24901, "end": 24904 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } } }, @@ -32851,9 +31569,7 @@ "start": 25190, "end": 25197 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -32862,9 +31578,7 @@ "start": 25198, "end": 25211 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -32889,9 +31603,7 @@ "start": 25222, "end": 25233 }, - "ctxt": 0, - "value": "extendsList", - "optional": false + "value": "extendsList" } } }, @@ -32938,9 +31650,7 @@ "start": 25260, "end": 25271 }, - "ctxt": 0, - "value": "extendsList", - "optional": false + "value": "extendsList" } }, "right": { @@ -32978,9 +31688,7 @@ "start": 25290, "end": 25294 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -33008,9 +31716,7 @@ "start": 25302, "end": 25313 }, - "ctxt": 0, - "value": "extendsList", - "optional": false + "value": "extendsList" } } }, @@ -33096,9 +31802,7 @@ "start": 25362, "end": 25369 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -33107,9 +31811,7 @@ "start": 25370, "end": 25383 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "right": { @@ -33134,9 +31836,7 @@ "start": 25394, "end": 25408 }, - "ctxt": 0, - "value": "implementsList", - "optional": false + "value": "implementsList" } } }, @@ -33183,9 +31883,7 @@ "start": 25435, "end": 25449 }, - "ctxt": 0, - "value": "implementsList", - "optional": false + "value": "implementsList" } }, "right": { @@ -33223,9 +31921,7 @@ "start": 25468, "end": 25472 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -33253,9 +31949,7 @@ "start": 25480, "end": 25494 }, - "ctxt": 0, - "value": "implementsList", - "optional": false + "value": "implementsList" } } }, @@ -33767,9 +32461,7 @@ "start": 25850, "end": 25852 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "consequent": { @@ -33815,9 +32507,7 @@ "start": 25879, "end": 25881 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -33855,9 +32545,7 @@ "start": 25903, "end": 25907 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -33885,9 +32573,7 @@ "start": 25915, "end": 25917 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } }, @@ -33960,9 +32646,7 @@ "start": 25965, "end": 25970 }, - "ctxt": 0, - "value": "alias", - "optional": false + "value": "alias" } }, "consequent": { @@ -34008,9 +32692,7 @@ "start": 25997, "end": 26002 }, - "ctxt": 0, - "value": "alias", - "optional": false + "value": "alias" } }, "right": { @@ -34042,9 +32724,7 @@ "start": 26012, "end": 26016 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -34072,9 +32752,7 @@ "start": 26024, "end": 26029 }, - "ctxt": 0, - "value": "alias", - "optional": false + "value": "alias" } } }, @@ -34314,9 +32992,7 @@ "start": 26202, "end": 26206 }, - "ctxt": 0, - "value": "expr", - "optional": false + "value": "expr" } }, "consequent": { @@ -34362,9 +33038,7 @@ "start": 26233, "end": 26237 }, - "ctxt": 0, - "value": "expr", - "optional": false + "value": "expr" } }, "right": { @@ -34396,9 +33070,7 @@ "start": 26247, "end": 26251 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -34426,9 +33098,7 @@ "start": 26259, "end": 26263 }, - "ctxt": 0, - "value": "expr", - "optional": false + "value": "expr" } } }, @@ -34489,9 +33159,7 @@ "start": 26312, "end": 26316 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -34522,9 +33190,7 @@ "start": 26327, "end": 26334 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -34533,9 +33199,7 @@ "start": 26335, "end": 26348 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } } }, @@ -34582,9 +33246,7 @@ "start": 26375, "end": 26379 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -34616,9 +33278,7 @@ "start": 26389, "end": 26393 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -34646,9 +33306,7 @@ "start": 26401, "end": 26405 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } } }, @@ -35080,9 +33738,7 @@ "start": 26720, "end": 26726 }, - "ctxt": 0, - "value": "labels", - "optional": false + "value": "labels" } }, "right": { @@ -35120,9 +33776,7 @@ "start": 26745, "end": 26749 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -35150,9 +33804,7 @@ "start": 26757, "end": 26763 }, - "ctxt": 0, - "value": "labels", - "optional": false + "value": "labels" } } }, @@ -35227,9 +33879,7 @@ "start": 26797, "end": 26804 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -35238,9 +33888,7 @@ "start": 26805, "end": 26818 }, - "ctxt": 0, - "value": "goNextSibling", - "optional": false + "value": "goNextSibling" } }, "consequent": { @@ -35286,9 +33934,7 @@ "start": 26845, "end": 26849 }, - "ctxt": 0, - "value": "stmt", - "optional": false + "value": "stmt" } }, "right": { @@ -35320,9 +33966,7 @@ "start": 26859, "end": 26863 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -35350,9 +33994,7 @@ "start": 26871, "end": 26875 }, - "ctxt": 0, - "value": "stmt", - "optional": false + "value": "stmt" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json index 0055d58abc48..ff81cfa854ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json @@ -9241,9 +9241,7 @@ "start": 5881, "end": 5888 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -9252,9 +9250,7 @@ "start": 5889, "end": 5899 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -9621,9 +9617,7 @@ "start": 6145, "end": 6164 }, - "ctxt": 0, - "value": "getAstWalkerFactory", - "optional": false + "value": "getAstWalkerFactory" } }, "arguments": [], @@ -9635,9 +9629,7 @@ "start": 6167, "end": 6176 }, - "ctxt": 0, - "value": "getWalker", - "optional": false + "value": "getWalker" } }, "arguments": [ @@ -9709,9 +9701,7 @@ "start": 6204, "end": 6208 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -9961,9 +9951,7 @@ "start": 6444, "end": 6452 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "definite": false @@ -10054,9 +10042,7 @@ "start": 6499, "end": 6503 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -10249,9 +10235,7 @@ "start": 6655, "end": 6670 }, - "ctxt": 0, - "value": "DefaultCallback", - "optional": false + "value": "DefaultCallback" } }, "consequent": { @@ -10297,9 +10281,7 @@ "start": 6702, "end": 6717 }, - "ctxt": 0, - "value": "DefaultCallback", - "optional": false + "value": "DefaultCallback" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json index c42c0cf8e0b1..672b8fe18289 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json @@ -184,9 +184,7 @@ "start": 320, "end": 326 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -259,9 +257,7 @@ "start": 355, "end": 361 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -708,9 +704,7 @@ "start": 763, "end": 767 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" }, "value": { "type": "ArrayExpression", @@ -740,6 +734,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 769, + "end": 783 + }, "left": { "type": "Identifier", "span": { @@ -756,9 +754,7 @@ "start": 780, "end": 783 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -787,9 +783,7 @@ "start": 807, "end": 810 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" }, "value": { "type": "UnaryExpression", @@ -845,9 +839,7 @@ "start": 841, "end": 855 }, - "ctxt": 0, - "value": "reverseIndexOf", - "optional": false + "value": "reverseIndexOf" }, "function": { "params": [ @@ -1018,9 +1010,7 @@ "start": 936, "end": 942 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1101,9 +1091,7 @@ "start": 974, "end": 980 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1171,9 +1159,7 @@ "start": 1021, "end": 1026 }, - "ctxt": 0, - "value": "clone", - "optional": false + "value": "clone" }, "function": { "params": [], @@ -1277,9 +1263,7 @@ "start": 1097, "end": 1101 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "right": { @@ -1314,9 +1298,7 @@ "start": 1109, "end": 1113 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -1325,9 +1307,7 @@ "start": 1114, "end": 1117 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -1426,9 +1406,7 @@ "start": 1167, "end": 1170 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -1450,9 +1428,7 @@ "start": 1178, "end": 1181 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -1524,9 +1500,7 @@ "start": 1235, "end": 1238 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" }, "function": { "params": [], @@ -1597,9 +1571,7 @@ "start": 1287, "end": 1290 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -1641,9 +1613,7 @@ "start": 1311, "end": 1313 }, - "ctxt": 0, - "value": "up", - "optional": false + "value": "up" } }, "arguments": [], @@ -1688,9 +1658,7 @@ "start": 1342, "end": 1346 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -1699,9 +1667,7 @@ "start": 1347, "end": 1353 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1730,9 +1696,7 @@ "start": 1361, "end": 1366 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -1785,9 +1749,7 @@ "start": 1393, "end": 1397 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -1796,9 +1758,7 @@ "start": 1398, "end": 1401 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -1844,6 +1804,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1242, + "end": 1256 + }, "left": { "type": "Identifier", "span": { @@ -1860,9 +1824,7 @@ "start": 1253, "end": 1256 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -1888,9 +1850,7 @@ "start": 1470, "end": 1474 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" }, "function": { "params": [ @@ -1924,6 +1884,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1480, + "end": 1494 + }, "left": { "type": "Identifier", "span": { @@ -1940,9 +1904,7 @@ "start": 1491, "end": 1494 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -2003,9 +1965,7 @@ "start": 1522, "end": 1526 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -2014,9 +1974,7 @@ "start": 1527, "end": 1533 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -2045,9 +2003,7 @@ "start": 1541, "end": 1546 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -2100,9 +2056,7 @@ "start": 1573, "end": 1577 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -2111,9 +2065,7 @@ "start": 1578, "end": 1581 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -2155,9 +2107,7 @@ "start": 1616, "end": 1619 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -2185,9 +2135,7 @@ "start": 1627, "end": 1631 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -2196,9 +2144,7 @@ "start": 1632, "end": 1638 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2241,9 +2187,7 @@ "start": 1657, "end": 1661 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -2252,9 +2196,7 @@ "start": 1662, "end": 1666 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -2301,9 +2243,7 @@ "start": 1699, "end": 1701 }, - "ctxt": 0, - "value": "up", - "optional": false + "value": "up" }, "function": { "params": [], @@ -2353,9 +2293,7 @@ "start": 1727, "end": 1730 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -2451,9 +2389,7 @@ "start": 1812, "end": 1815 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -2484,9 +2420,7 @@ "start": 1845, "end": 1849 }, - "ctxt": 0, - "value": "down", - "optional": false + "value": "down" }, "function": { "params": [], @@ -2536,9 +2470,7 @@ "start": 1875, "end": 1878 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -2573,9 +2505,7 @@ "start": 1887, "end": 1890 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "property": { @@ -2584,9 +2514,7 @@ "start": 1891, "end": 1897 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -2675,9 +2603,7 @@ "start": 1979, "end": 1982 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -2708,9 +2634,7 @@ "start": 2012, "end": 2020 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" }, "function": { "params": [], @@ -2767,9 +2691,7 @@ "start": 2067, "end": 2070 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -2817,9 +2739,7 @@ "start": 2116, "end": 2124 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -2828,9 +2748,7 @@ "start": 2125, "end": 2129 }, - "ctxt": 0, - "value": "None", - "optional": false + "value": "None" } } }, @@ -2874,9 +2792,7 @@ "start": 2155, "end": 2158 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -2888,9 +2804,7 @@ "start": 2161, "end": 2169 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } } } @@ -2913,6 +2827,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2024, + "end": 2043 + }, "left": { "type": "Identifier", "span": { @@ -2929,9 +2847,7 @@ "start": 2035, "end": 2043 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "typeParams": null @@ -2957,9 +2873,7 @@ "start": 2197, "end": 2200 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" }, "function": { "params": [], @@ -3018,9 +2932,7 @@ "start": 2248, "end": 2262 }, - "ctxt": 0, - "value": "reverseIndexOf", - "optional": false + "value": "reverseIndexOf" } }, "arguments": [ @@ -3045,9 +2957,7 @@ "start": 2268, "end": 2272 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } }, @@ -3085,9 +2995,7 @@ "start": 2279, "end": 2283 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -3096,9 +3004,7 @@ "start": 2284, "end": 2290 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -3133,9 +3039,7 @@ "start": 2299, "end": 2302 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -3162,6 +3066,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2225, + "end": 2239 + }, "left": { "type": "Identifier", "span": { @@ -3178,9 +3086,7 @@ "start": 2236, "end": 2239 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -3213,9 +3119,7 @@ "start": 2336, "end": 2342 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "function": { "params": [], @@ -3274,9 +3178,7 @@ "start": 2390, "end": 2404 }, - "ctxt": 0, - "value": "reverseIndexOf", - "optional": false + "value": "reverseIndexOf" } }, "arguments": [ @@ -3301,9 +3203,7 @@ "start": 2410, "end": 2414 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } }, @@ -3341,9 +3241,7 @@ "start": 2421, "end": 2425 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -3352,9 +3250,7 @@ "start": 2426, "end": 2432 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -3376,9 +3272,7 @@ "start": 2440, "end": 2443 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -3394,6 +3288,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2367, + "end": 2381 + }, "left": { "type": "Identifier", "span": { @@ -3410,9 +3308,7 @@ "start": 2378, "end": 2381 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -3445,9 +3341,7 @@ "start": 2472, "end": 2477 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" }, "function": { "params": [], @@ -3497,9 +3391,7 @@ "start": 2506, "end": 2509 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -3539,9 +3431,7 @@ "start": 2541, "end": 2544 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -3624,9 +3514,7 @@ "start": 2602, "end": 2606 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -3667,6 +3555,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2561, + "end": 2575 + }, "left": { "type": "Identifier", "span": { @@ -3683,9 +3575,7 @@ "start": 2572, "end": 2575 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -3711,9 +3601,7 @@ "start": 2641, "end": 2654 }, - "ctxt": 0, - "value": "isNameOfClass", - "optional": false + "value": "isNameOfClass" }, "function": { "params": [], @@ -3777,9 +3665,7 @@ "start": 2689, "end": 2692 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -3826,9 +3712,7 @@ "start": 2712, "end": 2718 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -3925,9 +3809,7 @@ "start": 2787, "end": 2790 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -3939,9 +3821,7 @@ "start": 2793, "end": 2801 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -3972,9 +3852,7 @@ "start": 2817, "end": 2825 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -3983,9 +3861,7 @@ "start": 2826, "end": 2830 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -4035,9 +3911,7 @@ "start": 2857, "end": 2863 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -4049,9 +3923,7 @@ "start": 2866, "end": 2874 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -4082,9 +3954,7 @@ "start": 2890, "end": 2898 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -4093,9 +3963,7 @@ "start": 2899, "end": 2915 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } } @@ -4158,9 +4026,7 @@ "start": 2976, "end": 2982 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -4174,6 +4040,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2939, + "end": 2970 + }, "left": { "type": "Identifier", "span": { @@ -4190,9 +4060,7 @@ "start": 2950, "end": 2970 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } }, "typeParams": null @@ -4205,9 +4073,7 @@ "start": 2986, "end": 2990 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -4236,9 +4102,7 @@ "start": 3000, "end": 3003 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -4288,9 +4152,7 @@ "start": 3034, "end": 3051 }, - "ctxt": 0, - "value": "isNameOfInterface", - "optional": false + "value": "isNameOfInterface" }, "function": { "params": [], @@ -4354,9 +4216,7 @@ "start": 3086, "end": 3089 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -4403,9 +4263,7 @@ "start": 3109, "end": 3115 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -4502,9 +4360,7 @@ "start": 3184, "end": 3187 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -4516,9 +4372,7 @@ "start": 3190, "end": 3198 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -4549,9 +4403,7 @@ "start": 3214, "end": 3222 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -4560,9 +4412,7 @@ "start": 3223, "end": 3227 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -4612,9 +4462,7 @@ "start": 3254, "end": 3260 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -4626,9 +4474,7 @@ "start": 3263, "end": 3271 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -4659,9 +4505,7 @@ "start": 3287, "end": 3295 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -4670,9 +4514,7 @@ "start": 3296, "end": 3316 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } } } @@ -4735,9 +4577,7 @@ "start": 3377, "end": 3383 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -4751,6 +4591,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 3340, + "end": 3371 + }, "left": { "type": "Identifier", "span": { @@ -4767,9 +4611,7 @@ "start": 3351, "end": 3371 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } }, "typeParams": null @@ -4782,9 +4624,7 @@ "start": 3387, "end": 3391 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -4813,9 +4653,7 @@ "start": 3401, "end": 3404 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -4865,9 +4703,7 @@ "start": 3435, "end": 3451 }, - "ctxt": 0, - "value": "isNameOfArgument", - "optional": false + "value": "isNameOfArgument" }, "function": { "params": [], @@ -4931,9 +4767,7 @@ "start": 3486, "end": 3489 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -4980,9 +4814,7 @@ "start": 3509, "end": 3515 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -5079,9 +4911,7 @@ "start": 3584, "end": 3587 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -5093,9 +4923,7 @@ "start": 3590, "end": 3598 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -5126,9 +4954,7 @@ "start": 3614, "end": 3622 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -5137,9 +4963,7 @@ "start": 3623, "end": 3627 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -5189,9 +5013,7 @@ "start": 3654, "end": 3660 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -5203,9 +5025,7 @@ "start": 3663, "end": 3671 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -5236,9 +5056,7 @@ "start": 3687, "end": 3695 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -5247,9 +5065,7 @@ "start": 3696, "end": 3703 }, - "ctxt": 0, - "value": "ArgDecl", - "optional": false + "value": "ArgDecl" } } } @@ -5312,9 +5128,7 @@ "start": 3751, "end": 3757 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -5328,6 +5142,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 3727, + "end": 3745 + }, "left": { "type": "Identifier", "span": { @@ -5344,9 +5162,7 @@ "start": 3738, "end": 3745 }, - "ctxt": 0, - "value": "ArgDecl", - "optional": false + "value": "ArgDecl" } }, "typeParams": null @@ -5359,9 +5175,7 @@ "start": 3761, "end": 3763 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -5390,9 +5204,7 @@ "start": 3773, "end": 3776 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -5442,9 +5254,7 @@ "start": 3807, "end": 3823 }, - "ctxt": 0, - "value": "isNameOfVariable", - "optional": false + "value": "isNameOfVariable" }, "function": { "params": [], @@ -5508,9 +5318,7 @@ "start": 3858, "end": 3861 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -5557,9 +5365,7 @@ "start": 3881, "end": 3887 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -5656,9 +5462,7 @@ "start": 3956, "end": 3959 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -5670,9 +5474,7 @@ "start": 3962, "end": 3970 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -5703,9 +5505,7 @@ "start": 3986, "end": 3994 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -5714,9 +5514,7 @@ "start": 3995, "end": 3999 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -5766,9 +5564,7 @@ "start": 4026, "end": 4032 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -5780,9 +5576,7 @@ "start": 4035, "end": 4043 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -5813,9 +5607,7 @@ "start": 4059, "end": 4067 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -5824,9 +5616,7 @@ "start": 4068, "end": 4075 }, - "ctxt": 0, - "value": "VarDecl", - "optional": false + "value": "VarDecl" } } } @@ -5889,9 +5679,7 @@ "start": 4123, "end": 4129 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -5905,6 +5693,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 4099, + "end": 4117 + }, "left": { "type": "Identifier", "span": { @@ -5921,9 +5713,7 @@ "start": 4110, "end": 4117 }, - "ctxt": 0, - "value": "VarDecl", - "optional": false + "value": "VarDecl" } }, "typeParams": null @@ -5936,9 +5726,7 @@ "start": 4133, "end": 4135 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -5967,9 +5755,7 @@ "start": 4145, "end": 4148 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -6019,9 +5805,7 @@ "start": 4179, "end": 4193 }, - "ctxt": 0, - "value": "isNameOfModule", - "optional": false + "value": "isNameOfModule" }, "function": { "params": [], @@ -6085,9 +5869,7 @@ "start": 4228, "end": 4231 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -6134,9 +5916,7 @@ "start": 4251, "end": 4257 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -6233,9 +6013,7 @@ "start": 4326, "end": 4329 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -6247,9 +6025,7 @@ "start": 4332, "end": 4340 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -6280,9 +6056,7 @@ "start": 4356, "end": 4364 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -6291,9 +6065,7 @@ "start": 4365, "end": 4369 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -6343,9 +6115,7 @@ "start": 4396, "end": 4402 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -6357,9 +6127,7 @@ "start": 4405, "end": 4413 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -6390,9 +6158,7 @@ "start": 4429, "end": 4437 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -6401,9 +6167,7 @@ "start": 4438, "end": 4455 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } } @@ -6466,9 +6230,7 @@ "start": 4513, "end": 4519 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -6482,6 +6244,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 4479, + "end": 4507 + }, "left": { "type": "Identifier", "span": { @@ -6498,9 +6264,7 @@ "start": 4490, "end": 4507 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } }, "typeParams": null @@ -6513,9 +6277,7 @@ "start": 4523, "end": 4527 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -6544,9 +6306,7 @@ "start": 4537, "end": 4540 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -6596,9 +6356,7 @@ "start": 4571, "end": 4587 }, - "ctxt": 0, - "value": "isNameOfFunction", - "optional": false + "value": "isNameOfFunction" }, "function": { "params": [], @@ -6662,9 +6420,7 @@ "start": 4622, "end": 4625 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -6711,9 +6467,7 @@ "start": 4645, "end": 4651 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -6810,9 +6564,7 @@ "start": 4720, "end": 4723 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -6824,9 +6576,7 @@ "start": 4726, "end": 4734 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -6857,9 +6607,7 @@ "start": 4750, "end": 4758 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -6868,9 +6616,7 @@ "start": 4759, "end": 4763 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -6920,9 +6666,7 @@ "start": 4790, "end": 4796 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -6934,9 +6678,7 @@ "start": 4799, "end": 4807 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -6967,9 +6709,7 @@ "start": 4823, "end": 4831 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -6978,9 +6718,7 @@ "start": 4832, "end": 4840 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -7043,9 +6781,7 @@ "start": 4889, "end": 4895 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "arguments": [], @@ -7059,6 +6795,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 4864, + "end": 4883 + }, "left": { "type": "Identifier", "span": { @@ -7075,9 +6815,7 @@ "start": 4875, "end": 4883 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "typeParams": null @@ -7090,9 +6828,7 @@ "start": 4899, "end": 4903 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -7121,9 +6857,7 @@ "start": 4913, "end": 4916 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -7173,9 +6907,7 @@ "start": 4947, "end": 4962 }, - "ctxt": 0, - "value": "isChildOfScript", - "optional": false + "value": "isChildOfScript" }, "function": { "params": [], @@ -7259,9 +6991,7 @@ "start": 5010, "end": 5014 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } } @@ -7332,9 +7062,7 @@ "start": 5041, "end": 5046 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -7382,9 +7110,7 @@ "start": 5078, "end": 5082 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -7412,9 +7138,7 @@ "start": 5088, "end": 5091 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -7469,9 +7193,7 @@ "start": 5125, "end": 5129 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -7506,9 +7228,7 @@ "start": 5135, "end": 5138 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -7529,9 +7249,7 @@ "start": 5144, "end": 5152 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -7562,9 +7280,7 @@ "start": 5168, "end": 5176 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -7573,9 +7289,7 @@ "start": 5177, "end": 5181 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -7618,9 +7332,7 @@ "start": 5206, "end": 5210 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -7655,9 +7367,7 @@ "start": 5216, "end": 5219 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -7678,9 +7388,7 @@ "start": 5225, "end": 5233 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -7711,9 +7419,7 @@ "start": 5249, "end": 5257 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -7722,9 +7428,7 @@ "start": 5258, "end": 5264 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } } } @@ -7770,9 +7474,7 @@ "start": 5292, "end": 5307 }, - "ctxt": 0, - "value": "isChildOfModule", - "optional": false + "value": "isChildOfModule" }, "function": { "params": [], @@ -7856,9 +7558,7 @@ "start": 5355, "end": 5359 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } } @@ -7929,9 +7629,7 @@ "start": 5386, "end": 5391 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -7979,9 +7677,7 @@ "start": 5423, "end": 5427 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -8009,9 +7705,7 @@ "start": 5433, "end": 5436 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -8066,9 +7760,7 @@ "start": 5470, "end": 5474 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -8103,9 +7795,7 @@ "start": 5480, "end": 5483 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -8126,9 +7816,7 @@ "start": 5489, "end": 5497 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -8159,9 +7847,7 @@ "start": 5513, "end": 5521 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -8170,9 +7856,7 @@ "start": 5522, "end": 5526 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -8215,9 +7899,7 @@ "start": 5551, "end": 5555 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -8252,9 +7934,7 @@ "start": 5561, "end": 5564 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -8275,9 +7955,7 @@ "start": 5570, "end": 5578 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -8308,9 +7986,7 @@ "start": 5594, "end": 5602 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -8319,9 +7995,7 @@ "start": 5603, "end": 5620 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } } @@ -8367,9 +8041,7 @@ "start": 5648, "end": 5662 }, - "ctxt": 0, - "value": "isChildOfClass", - "optional": false + "value": "isChildOfClass" }, "function": { "params": [], @@ -8453,9 +8125,7 @@ "start": 5710, "end": 5714 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } } @@ -8526,9 +8196,7 @@ "start": 5741, "end": 5746 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -8576,9 +8244,7 @@ "start": 5778, "end": 5782 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -8606,9 +8272,7 @@ "start": 5788, "end": 5791 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -8663,9 +8327,7 @@ "start": 5825, "end": 5829 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -8700,9 +8362,7 @@ "start": 5835, "end": 5838 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -8723,9 +8383,7 @@ "start": 5844, "end": 5852 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -8756,9 +8414,7 @@ "start": 5868, "end": 5876 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -8767,9 +8423,7 @@ "start": 5877, "end": 5881 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -8812,9 +8466,7 @@ "start": 5906, "end": 5910 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -8849,9 +8501,7 @@ "start": 5916, "end": 5919 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -8872,9 +8522,7 @@ "start": 5925, "end": 5933 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -8905,9 +8553,7 @@ "start": 5949, "end": 5957 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -8916,9 +8562,7 @@ "start": 5958, "end": 5974 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } } @@ -8964,9 +8608,7 @@ "start": 6002, "end": 6030 }, - "ctxt": 0, - "value": "isArgumentOfClassConstructor", - "optional": false + "value": "isArgumentOfClassConstructor" }, "function": { "params": [], @@ -9050,9 +8692,7 @@ "start": 6078, "end": 6082 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } } @@ -9158,9 +8798,7 @@ "start": 6109, "end": 6114 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -9208,9 +8846,7 @@ "start": 6146, "end": 6150 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -9238,9 +8874,7 @@ "start": 6156, "end": 6159 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -9295,9 +8929,7 @@ "start": 6193, "end": 6197 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -9332,9 +8964,7 @@ "start": 6203, "end": 6206 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -9355,9 +8985,7 @@ "start": 6212, "end": 6220 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -9388,9 +9016,7 @@ "start": 6236, "end": 6244 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -9399,9 +9025,7 @@ "start": 6245, "end": 6249 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -9444,9 +9068,7 @@ "start": 6274, "end": 6278 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -9481,9 +9103,7 @@ "start": 6284, "end": 6287 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -9504,9 +9124,7 @@ "start": 6293, "end": 6301 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -9537,9 +9155,7 @@ "start": 6317, "end": 6325 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -9548,9 +9164,7 @@ "start": 6326, "end": 6334 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -9593,9 +9207,7 @@ "start": 6359, "end": 6363 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -9630,9 +9242,7 @@ "start": 6369, "end": 6372 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -9653,9 +9263,7 @@ "start": 6378, "end": 6386 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -9686,9 +9294,7 @@ "start": 6402, "end": 6410 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -9697,9 +9303,7 @@ "start": 6411, "end": 6415 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -9742,9 +9346,7 @@ "start": 6440, "end": 6444 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -9779,9 +9381,7 @@ "start": 6450, "end": 6453 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -9802,9 +9402,7 @@ "start": 6459, "end": 6467 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -9835,9 +9433,7 @@ "start": 6483, "end": 6491 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -9846,9 +9442,7 @@ "start": 6492, "end": 6508 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } } @@ -9902,9 +9496,7 @@ "start": 6556, "end": 6560 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -9939,9 +9531,7 @@ "start": 6566, "end": 6569 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -9964,6 +9554,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 6531, + "end": 6550 + }, "left": { "type": "Identifier", "span": { @@ -9980,9 +9574,7 @@ "start": 6542, "end": 6550 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "typeParams": null @@ -9995,9 +9587,7 @@ "start": 6576, "end": 6589 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } } @@ -10058,9 +9648,7 @@ "start": 6638, "end": 6642 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10095,9 +9683,7 @@ "start": 6648, "end": 6651 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -10120,6 +9706,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 6613, + "end": 6632 + }, "left": { "type": "Identifier", "span": { @@ -10136,9 +9726,7 @@ "start": 6624, "end": 6632 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "typeParams": null @@ -10151,9 +9739,7 @@ "start": 6658, "end": 6667 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -10181,9 +9767,7 @@ "start": 6677, "end": 6681 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10218,9 +9802,7 @@ "start": 6687, "end": 6690 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -10294,9 +9876,7 @@ "start": 6752, "end": 6756 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10331,9 +9911,7 @@ "start": 6762, "end": 6765 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -10356,6 +9934,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 6719, + "end": 6746 + }, "left": { "type": "Identifier", "span": { @@ -10372,9 +9954,7 @@ "start": 6730, "end": 6746 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } }, "typeParams": null @@ -10387,9 +9967,7 @@ "start": 6772, "end": 6787 }, - "ctxt": 0, - "value": "constructorDecl", - "optional": false + "value": "constructorDecl" } }, "right": { @@ -10417,9 +9995,7 @@ "start": 6797, "end": 6801 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10454,9 +10030,7 @@ "start": 6807, "end": 6810 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -10515,9 +10089,7 @@ "start": 6844, "end": 6862 }, - "ctxt": 0, - "value": "isChildOfInterface", - "optional": false + "value": "isChildOfInterface" }, "function": { "params": [], @@ -10601,9 +10173,7 @@ "start": 6910, "end": 6914 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } } } @@ -10674,9 +10244,7 @@ "start": 6941, "end": 6946 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -10724,9 +10292,7 @@ "start": 6978, "end": 6982 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10754,9 +10320,7 @@ "start": 6988, "end": 6991 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -10811,9 +10375,7 @@ "start": 7025, "end": 7029 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10848,9 +10410,7 @@ "start": 7035, "end": 7038 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -10871,9 +10431,7 @@ "start": 7044, "end": 7052 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -10904,9 +10462,7 @@ "start": 7068, "end": 7076 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -10915,9 +10471,7 @@ "start": 7077, "end": 7081 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -10960,9 +10514,7 @@ "start": 7106, "end": 7110 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -10997,9 +10549,7 @@ "start": 7116, "end": 7119 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -11020,9 +10570,7 @@ "start": 7125, "end": 7133 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -11053,9 +10601,7 @@ "start": 7149, "end": 7157 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -11064,9 +10610,7 @@ "start": 7158, "end": 7178 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } } } @@ -11112,9 +10656,7 @@ "start": 7206, "end": 7230 }, - "ctxt": 0, - "value": "isTopLevelImplicitModule", - "optional": false + "value": "isTopLevelImplicitModule" }, "function": { "params": [], @@ -11185,9 +10727,7 @@ "start": 7259, "end": 7264 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -11241,9 +10781,7 @@ "start": 7296, "end": 7300 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -11271,9 +10809,7 @@ "start": 7306, "end": 7309 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -11284,9 +10820,7 @@ "start": 7311, "end": 7319 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -11317,9 +10851,7 @@ "start": 7335, "end": 7343 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -11328,9 +10860,7 @@ "start": 7344, "end": 7361 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } } @@ -11364,9 +10894,7 @@ "start": 7392, "end": 7399 }, - "ctxt": 0, - "value": "hasFlag", - "optional": false + "value": "hasFlag" } }, "arguments": [ @@ -11415,9 +10943,7 @@ "start": 7436, "end": 7440 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -11445,9 +10971,7 @@ "start": 7446, "end": 7449 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -11460,6 +10984,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7402, + "end": 7430 + }, "left": { "type": "Identifier", "span": { @@ -11476,9 +11004,7 @@ "start": 7413, "end": 7430 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } }, "typeParams": null @@ -11491,9 +11017,7 @@ "start": 7452, "end": 7460 }, - "ctxt": 0, - "value": "modFlags", - "optional": false + "value": "modFlags" } } }, @@ -11527,9 +11051,7 @@ "start": 7473, "end": 7484 }, - "ctxt": 0, - "value": "ModuleFlags", - "optional": false + "value": "ModuleFlags" } }, "property": { @@ -11538,9 +11060,7 @@ "start": 7485, "end": 7496 }, - "ctxt": 0, - "value": "IsWholeFile", - "optional": false + "value": "IsWholeFile" } } } @@ -11575,9 +11095,7 @@ "start": 7525, "end": 7555 }, - "ctxt": 0, - "value": "isBodyOfTopLevelImplicitModule", - "optional": false + "value": "isBodyOfTopLevelImplicitModule" }, "function": { "params": [], @@ -11662,9 +11180,7 @@ "start": 7584, "end": 7589 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -11718,9 +11234,7 @@ "start": 7621, "end": 7625 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -11755,9 +11269,7 @@ "start": 7631, "end": 7634 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -11778,9 +11290,7 @@ "start": 7640, "end": 7648 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -11811,9 +11321,7 @@ "start": 7664, "end": 7672 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -11822,9 +11330,7 @@ "start": 7673, "end": 7677 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -11867,9 +11373,7 @@ "start": 7702, "end": 7706 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -11904,9 +11408,7 @@ "start": 7712, "end": 7715 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -11927,9 +11429,7 @@ "start": 7721, "end": 7729 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -11960,9 +11460,7 @@ "start": 7745, "end": 7753 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -11971,9 +11469,7 @@ "start": 7754, "end": 7771 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } } @@ -12028,9 +11524,7 @@ "start": 7828, "end": 7832 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -12065,9 +11559,7 @@ "start": 7838, "end": 7841 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -12090,6 +11582,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7794, + "end": 7822 + }, "left": { "type": "Identifier", "span": { @@ -12106,9 +11602,7 @@ "start": 7805, "end": 7822 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } }, "typeParams": null @@ -12121,9 +11615,7 @@ "start": 7848, "end": 7855 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -12151,9 +11643,7 @@ "start": 7864, "end": 7868 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -12188,9 +11678,7 @@ "start": 7874, "end": 7877 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -12236,9 +11724,7 @@ "start": 7913, "end": 7920 }, - "ctxt": 0, - "value": "hasFlag", - "optional": false + "value": "hasFlag" } }, "arguments": [ @@ -12287,9 +11773,7 @@ "start": 7957, "end": 7961 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -12324,9 +11808,7 @@ "start": 7967, "end": 7970 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -12349,6 +11831,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7923, + "end": 7951 + }, "left": { "type": "Identifier", "span": { @@ -12365,9 +11851,7 @@ "start": 7934, "end": 7951 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } }, "typeParams": null @@ -12380,9 +11864,7 @@ "start": 7977, "end": 7985 }, - "ctxt": 0, - "value": "modFlags", - "optional": false + "value": "modFlags" } } }, @@ -12416,9 +11898,7 @@ "start": 7998, "end": 8009 }, - "ctxt": 0, - "value": "ModuleFlags", - "optional": false + "value": "ModuleFlags" } }, "property": { @@ -12427,9 +11907,7 @@ "start": 8010, "end": 8021 }, - "ctxt": 0, - "value": "IsWholeFile", - "optional": false + "value": "IsWholeFile" } } } @@ -12464,9 +11942,7 @@ "start": 8050, "end": 8064 }, - "ctxt": 0, - "value": "isBodyOfScript", - "optional": false + "value": "isBodyOfScript" }, "function": { "params": [], @@ -12537,9 +12013,7 @@ "start": 8102, "end": 8107 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -12593,9 +12067,7 @@ "start": 8139, "end": 8143 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -12630,9 +12102,7 @@ "start": 8149, "end": 8152 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -12653,9 +12123,7 @@ "start": 8158, "end": 8166 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -12686,9 +12154,7 @@ "start": 8182, "end": 8190 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -12697,9 +12163,7 @@ "start": 8191, "end": 8197 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } } } @@ -12754,9 +12218,7 @@ "start": 8243, "end": 8247 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -12791,9 +12253,7 @@ "start": 8253, "end": 8256 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -12816,6 +12276,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 8220, + "end": 8237 + }, "left": { "type": "Identifier", "span": { @@ -12832,9 +12296,7 @@ "start": 8231, "end": 8237 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } }, "typeParams": null @@ -12847,9 +12309,7 @@ "start": 8263, "end": 8266 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "right": { @@ -12877,9 +12337,7 @@ "start": 8275, "end": 8279 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -12914,9 +12372,7 @@ "start": 8285, "end": 8288 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -12974,9 +12430,7 @@ "start": 8321, "end": 8335 }, - "ctxt": 0, - "value": "isBodyOfSwitch", - "optional": false + "value": "isBodyOfSwitch" }, "function": { "params": [], @@ -13047,9 +12501,7 @@ "start": 8373, "end": 8378 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -13103,9 +12555,7 @@ "start": 8410, "end": 8414 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -13140,9 +12590,7 @@ "start": 8420, "end": 8423 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -13163,9 +12611,7 @@ "start": 8429, "end": 8437 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -13196,9 +12642,7 @@ "start": 8453, "end": 8461 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -13207,9 +12651,7 @@ "start": 8462, "end": 8468 }, - "ctxt": 0, - "value": "Switch", - "optional": false + "value": "Switch" } } } @@ -13264,9 +12706,7 @@ "start": 8523, "end": 8527 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -13301,9 +12741,7 @@ "start": 8533, "end": 8536 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -13326,6 +12764,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 8491, + "end": 8517 + }, "left": { "type": "Identifier", "span": { @@ -13342,9 +12784,7 @@ "start": 8502, "end": 8517 }, - "ctxt": 0, - "value": "SwitchStatement", - "optional": false + "value": "SwitchStatement" } }, "typeParams": null @@ -13357,9 +12797,7 @@ "start": 8543, "end": 8551 }, - "ctxt": 0, - "value": "caseList", - "optional": false + "value": "caseList" } }, "right": { @@ -13387,9 +12825,7 @@ "start": 8560, "end": 8564 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -13424,9 +12860,7 @@ "start": 8570, "end": 8573 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -13484,9 +12918,7 @@ "start": 8606, "end": 8620 }, - "ctxt": 0, - "value": "isBodyOfModule", - "optional": false + "value": "isBodyOfModule" }, "function": { "params": [], @@ -13557,9 +12989,7 @@ "start": 8658, "end": 8663 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -13613,9 +13043,7 @@ "start": 8695, "end": 8699 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -13650,9 +13078,7 @@ "start": 8705, "end": 8708 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -13673,9 +13099,7 @@ "start": 8714, "end": 8722 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -13706,9 +13130,7 @@ "start": 8738, "end": 8746 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -13717,9 +13139,7 @@ "start": 8747, "end": 8764 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } } @@ -13774,9 +13194,7 @@ "start": 8821, "end": 8825 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -13811,9 +13229,7 @@ "start": 8831, "end": 8834 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -13836,6 +13252,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 8787, + "end": 8815 + }, "left": { "type": "Identifier", "span": { @@ -13852,9 +13272,7 @@ "start": 8798, "end": 8815 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } }, "typeParams": null @@ -13867,9 +13285,7 @@ "start": 8841, "end": 8848 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -13897,9 +13313,7 @@ "start": 8857, "end": 8861 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -13934,9 +13348,7 @@ "start": 8867, "end": 8870 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -13994,9 +13406,7 @@ "start": 8903, "end": 8916 }, - "ctxt": 0, - "value": "isBodyOfClass", - "optional": false + "value": "isBodyOfClass" }, "function": { "params": [], @@ -14067,9 +13477,7 @@ "start": 8954, "end": 8959 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -14123,9 +13531,7 @@ "start": 8991, "end": 8995 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -14160,9 +13566,7 @@ "start": 9001, "end": 9004 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -14183,9 +13587,7 @@ "start": 9010, "end": 9018 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -14216,9 +13618,7 @@ "start": 9034, "end": 9042 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -14227,9 +13627,7 @@ "start": 9043, "end": 9059 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } } @@ -14284,9 +13682,7 @@ "start": 9115, "end": 9119 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -14321,9 +13717,7 @@ "start": 9125, "end": 9128 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -14346,6 +13740,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 9082, + "end": 9109 + }, "left": { "type": "Identifier", "span": { @@ -14362,9 +13760,7 @@ "start": 9093, "end": 9109 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } }, "typeParams": null @@ -14377,9 +13773,7 @@ "start": 9135, "end": 9142 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -14407,9 +13801,7 @@ "start": 9151, "end": 9155 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -14444,9 +13836,7 @@ "start": 9161, "end": 9164 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -14504,9 +13894,7 @@ "start": 9197, "end": 9213 }, - "ctxt": 0, - "value": "isBodyOfFunction", - "optional": false + "value": "isBodyOfFunction" }, "function": { "params": [], @@ -14577,9 +13965,7 @@ "start": 9251, "end": 9256 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -14633,9 +14019,7 @@ "start": 9288, "end": 9292 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -14670,9 +14054,7 @@ "start": 9298, "end": 9301 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -14693,9 +14075,7 @@ "start": 9307, "end": 9315 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -14726,9 +14106,7 @@ "start": 9331, "end": 9339 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -14737,9 +14115,7 @@ "start": 9340, "end": 9348 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -14794,9 +14170,7 @@ "start": 9396, "end": 9400 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -14831,9 +14205,7 @@ "start": 9406, "end": 9409 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -14856,6 +14228,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 9371, + "end": 9390 + }, "left": { "type": "Identifier", "span": { @@ -14872,9 +14248,7 @@ "start": 9382, "end": 9390 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "typeParams": null @@ -14887,9 +14261,7 @@ "start": 9416, "end": 9419 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "right": { @@ -14917,9 +14289,7 @@ "start": 9428, "end": 9432 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -14954,9 +14324,7 @@ "start": 9438, "end": 9441 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -15014,9 +14382,7 @@ "start": 9474, "end": 9491 }, - "ctxt": 0, - "value": "isBodyOfInterface", - "optional": false + "value": "isBodyOfInterface" }, "function": { "params": [], @@ -15087,9 +14453,7 @@ "start": 9529, "end": 9534 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -15143,9 +14507,7 @@ "start": 9566, "end": 9570 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -15180,9 +14542,7 @@ "start": 9576, "end": 9579 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -15203,9 +14563,7 @@ "start": 9585, "end": 9593 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -15236,9 +14594,7 @@ "start": 9609, "end": 9617 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -15247,9 +14603,7 @@ "start": 9618, "end": 9638 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } } } @@ -15304,9 +14658,7 @@ "start": 9698, "end": 9702 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -15341,9 +14693,7 @@ "start": 9708, "end": 9711 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -15366,6 +14716,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 9661, + "end": 9692 + }, "left": { "type": "Identifier", "span": { @@ -15382,9 +14736,7 @@ "start": 9672, "end": 9692 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } }, "typeParams": null @@ -15397,9 +14749,7 @@ "start": 9718, "end": 9725 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -15427,9 +14777,7 @@ "start": 9734, "end": 9738 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -15464,9 +14812,7 @@ "start": 9744, "end": 9747 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -15524,9 +14870,7 @@ "start": 9780, "end": 9793 }, - "ctxt": 0, - "value": "isBodyOfBlock", - "optional": false + "value": "isBodyOfBlock" }, "function": { "params": [], @@ -15597,9 +14941,7 @@ "start": 9831, "end": 9836 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -15653,9 +14995,7 @@ "start": 9868, "end": 9872 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -15690,9 +15030,7 @@ "start": 9878, "end": 9881 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -15713,9 +15051,7 @@ "start": 9887, "end": 9895 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -15746,9 +15082,7 @@ "start": 9911, "end": 9919 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -15757,9 +15091,7 @@ "start": 9920, "end": 9925 }, - "ctxt": 0, - "value": "Block", - "optional": false + "value": "Block" } } } @@ -15814,9 +15146,7 @@ "start": 9969, "end": 9973 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -15851,9 +15181,7 @@ "start": 9979, "end": 9982 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -15876,6 +15204,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 9947, + "end": 9963 + }, "left": { "type": "Identifier", "span": { @@ -15892,9 +15224,7 @@ "start": 9958, "end": 9963 }, - "ctxt": 0, - "value": "Block", - "optional": false + "value": "Block" } }, "typeParams": null @@ -15907,9 +15237,7 @@ "start": 9989, "end": 9999 }, - "ctxt": 0, - "value": "statements", - "optional": false + "value": "statements" } }, "right": { @@ -15937,9 +15265,7 @@ "start": 10008, "end": 10012 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -15974,9 +15300,7 @@ "start": 10018, "end": 10021 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -16034,9 +15358,7 @@ "start": 10054, "end": 10065 }, - "ctxt": 0, - "value": "isBodyOfFor", - "optional": false + "value": "isBodyOfFor" }, "function": { "params": [], @@ -16107,9 +15429,7 @@ "start": 10103, "end": 10108 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -16163,9 +15483,7 @@ "start": 10140, "end": 10144 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -16200,9 +15518,7 @@ "start": 10150, "end": 10153 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -16223,9 +15539,7 @@ "start": 10159, "end": 10167 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -16256,9 +15570,7 @@ "start": 10183, "end": 10191 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -16267,9 +15579,7 @@ "start": 10192, "end": 10195 }, - "ctxt": 0, - "value": "For", - "optional": false + "value": "For" } } } @@ -16324,9 +15634,7 @@ "start": 10246, "end": 10250 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -16361,9 +15669,7 @@ "start": 10256, "end": 10259 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -16386,6 +15692,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 10217, + "end": 10240 + }, "left": { "type": "Identifier", "span": { @@ -16402,9 +15712,7 @@ "start": 10228, "end": 10240 }, - "ctxt": 0, - "value": "ForStatement", - "optional": false + "value": "ForStatement" } }, "typeParams": null @@ -16417,9 +15725,7 @@ "start": 10266, "end": 10270 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -16447,9 +15753,7 @@ "start": 10279, "end": 10283 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -16484,9 +15788,7 @@ "start": 10289, "end": 10292 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -16544,9 +15846,7 @@ "start": 10325, "end": 10337 }, - "ctxt": 0, - "value": "isBodyOfCase", - "optional": false + "value": "isBodyOfCase" }, "function": { "params": [], @@ -16617,9 +15917,7 @@ "start": 10375, "end": 10380 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -16673,9 +15971,7 @@ "start": 10412, "end": 10416 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -16710,9 +16006,7 @@ "start": 10422, "end": 10425 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -16733,9 +16027,7 @@ "start": 10431, "end": 10439 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -16766,9 +16058,7 @@ "start": 10455, "end": 10463 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -16777,9 +16067,7 @@ "start": 10464, "end": 10468 }, - "ctxt": 0, - "value": "Case", - "optional": false + "value": "Case" } } } @@ -16834,9 +16122,7 @@ "start": 10520, "end": 10524 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -16871,9 +16157,7 @@ "start": 10530, "end": 10533 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -16896,6 +16180,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 10490, + "end": 10514 + }, "left": { "type": "Identifier", "span": { @@ -16912,9 +16200,7 @@ "start": 10501, "end": 10514 }, - "ctxt": 0, - "value": "CaseStatement", - "optional": false + "value": "CaseStatement" } }, "typeParams": null @@ -16927,9 +16213,7 @@ "start": 10540, "end": 10544 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -16957,9 +16241,7 @@ "start": 10553, "end": 10557 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -16994,9 +16276,7 @@ "start": 10563, "end": 10566 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -17054,9 +16334,7 @@ "start": 10599, "end": 10610 }, - "ctxt": 0, - "value": "isBodyOfTry", - "optional": false + "value": "isBodyOfTry" }, "function": { "params": [], @@ -17127,9 +16405,7 @@ "start": 10648, "end": 10653 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -17183,9 +16459,7 @@ "start": 10685, "end": 10689 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -17220,9 +16494,7 @@ "start": 10695, "end": 10698 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -17243,9 +16515,7 @@ "start": 10704, "end": 10712 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -17276,9 +16546,7 @@ "start": 10728, "end": 10736 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -17287,9 +16555,7 @@ "start": 10737, "end": 10740 }, - "ctxt": 0, - "value": "Try", - "optional": false + "value": "Try" } } } @@ -17344,9 +16610,7 @@ "start": 10782, "end": 10786 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -17381,9 +16645,7 @@ "start": 10792, "end": 10795 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -17406,6 +16668,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 10762, + "end": 10776 + }, "left": { "type": "Identifier", "span": { @@ -17422,9 +16688,7 @@ "start": 10773, "end": 10776 }, - "ctxt": 0, - "value": "Try", - "optional": false + "value": "Try" } }, "typeParams": null @@ -17437,9 +16701,7 @@ "start": 10802, "end": 10806 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -17467,9 +16729,7 @@ "start": 10815, "end": 10819 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -17504,9 +16764,7 @@ "start": 10825, "end": 10828 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -17564,9 +16822,7 @@ "start": 10861, "end": 10874 }, - "ctxt": 0, - "value": "isBodyOfCatch", - "optional": false + "value": "isBodyOfCatch" }, "function": { "params": [], @@ -17637,9 +16893,7 @@ "start": 10912, "end": 10917 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -17693,9 +16947,7 @@ "start": 10949, "end": 10953 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -17730,9 +16982,7 @@ "start": 10959, "end": 10962 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -17753,9 +17003,7 @@ "start": 10968, "end": 10976 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -17786,9 +17034,7 @@ "start": 10992, "end": 11000 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -17797,9 +17043,7 @@ "start": 11001, "end": 11006 }, - "ctxt": 0, - "value": "Catch", - "optional": false + "value": "Catch" } } } @@ -17854,9 +17098,7 @@ "start": 11050, "end": 11054 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -17891,9 +17133,7 @@ "start": 11060, "end": 11063 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -17916,6 +17156,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 11028, + "end": 11044 + }, "left": { "type": "Identifier", "span": { @@ -17932,9 +17176,7 @@ "start": 11039, "end": 11044 }, - "ctxt": 0, - "value": "Catch", - "optional": false + "value": "Catch" } }, "typeParams": null @@ -17947,9 +17189,7 @@ "start": 11070, "end": 11074 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -17977,9 +17217,7 @@ "start": 11083, "end": 11087 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -18014,9 +17252,7 @@ "start": 11093, "end": 11096 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -18074,9 +17310,7 @@ "start": 11129, "end": 11144 }, - "ctxt": 0, - "value": "isBodyOfDoWhile", - "optional": false + "value": "isBodyOfDoWhile" }, "function": { "params": [], @@ -18147,9 +17381,7 @@ "start": 11182, "end": 11187 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -18203,9 +17435,7 @@ "start": 11219, "end": 11223 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -18240,9 +17470,7 @@ "start": 11229, "end": 11232 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -18263,9 +17491,7 @@ "start": 11238, "end": 11246 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -18296,9 +17522,7 @@ "start": 11262, "end": 11270 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -18307,9 +17531,7 @@ "start": 11271, "end": 11278 }, - "ctxt": 0, - "value": "DoWhile", - "optional": false + "value": "DoWhile" } } } @@ -18364,9 +17586,7 @@ "start": 11333, "end": 11337 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -18401,9 +17621,7 @@ "start": 11343, "end": 11346 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -18426,6 +17644,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 11300, + "end": 11327 + }, "left": { "type": "Identifier", "span": { @@ -18442,9 +17664,7 @@ "start": 11311, "end": 11327 }, - "ctxt": 0, - "value": "DoWhileStatement", - "optional": false + "value": "DoWhileStatement" } }, "typeParams": null @@ -18457,9 +17677,7 @@ "start": 11353, "end": 11357 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -18487,9 +17705,7 @@ "start": 11366, "end": 11370 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -18524,9 +17740,7 @@ "start": 11376, "end": 11379 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -18584,9 +17798,7 @@ "start": 11412, "end": 11425 }, - "ctxt": 0, - "value": "isBodyOfWhile", - "optional": false + "value": "isBodyOfWhile" }, "function": { "params": [], @@ -18657,9 +17869,7 @@ "start": 11463, "end": 11468 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -18713,9 +17923,7 @@ "start": 11500, "end": 11504 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -18750,9 +17958,7 @@ "start": 11510, "end": 11513 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -18773,9 +17979,7 @@ "start": 11519, "end": 11527 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -18806,9 +18010,7 @@ "start": 11543, "end": 11551 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -18817,9 +18019,7 @@ "start": 11552, "end": 11557 }, - "ctxt": 0, - "value": "While", - "optional": false + "value": "While" } } } @@ -18874,9 +18074,7 @@ "start": 11610, "end": 11614 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -18911,9 +18109,7 @@ "start": 11620, "end": 11623 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -18936,6 +18132,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 11579, + "end": 11604 + }, "left": { "type": "Identifier", "span": { @@ -18952,9 +18152,7 @@ "start": 11590, "end": 11604 }, - "ctxt": 0, - "value": "WhileStatement", - "optional": false + "value": "WhileStatement" } }, "typeParams": null @@ -18967,9 +18165,7 @@ "start": 11630, "end": 11634 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -18997,9 +18193,7 @@ "start": 11643, "end": 11647 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -19034,9 +18228,7 @@ "start": 11653, "end": 11656 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -19094,9 +18286,7 @@ "start": 11689, "end": 11702 }, - "ctxt": 0, - "value": "isBodyOfForIn", - "optional": false + "value": "isBodyOfForIn" }, "function": { "params": [], @@ -19167,9 +18357,7 @@ "start": 11740, "end": 11745 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -19223,9 +18411,7 @@ "start": 11777, "end": 11781 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -19260,9 +18446,7 @@ "start": 11787, "end": 11790 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -19283,9 +18467,7 @@ "start": 11796, "end": 11804 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19316,9 +18498,7 @@ "start": 11820, "end": 11828 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -19327,9 +18507,7 @@ "start": 11829, "end": 11834 }, - "ctxt": 0, - "value": "ForIn", - "optional": false + "value": "ForIn" } } } @@ -19384,9 +18562,7 @@ "start": 11887, "end": 11891 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -19421,9 +18597,7 @@ "start": 11897, "end": 11900 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -19446,6 +18620,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 11856, + "end": 11881 + }, "left": { "type": "Identifier", "span": { @@ -19462,9 +18640,7 @@ "start": 11867, "end": 11881 }, - "ctxt": 0, - "value": "ForInStatement", - "optional": false + "value": "ForInStatement" } }, "typeParams": null @@ -19477,9 +18653,7 @@ "start": 11907, "end": 11911 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -19507,9 +18681,7 @@ "start": 11920, "end": 11924 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -19544,9 +18716,7 @@ "start": 11930, "end": 11933 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -19604,9 +18774,7 @@ "start": 11966, "end": 11978 }, - "ctxt": 0, - "value": "isBodyOfWith", - "optional": false + "value": "isBodyOfWith" }, "function": { "params": [], @@ -19677,9 +18845,7 @@ "start": 12016, "end": 12021 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -19733,9 +18899,7 @@ "start": 12053, "end": 12057 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -19770,9 +18934,7 @@ "start": 12063, "end": 12066 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -19793,9 +18955,7 @@ "start": 12072, "end": 12080 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19826,9 +18986,7 @@ "start": 12096, "end": 12104 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -19837,9 +18995,7 @@ "start": 12105, "end": 12109 }, - "ctxt": 0, - "value": "With", - "optional": false + "value": "With" } } } @@ -19894,9 +19050,7 @@ "start": 12161, "end": 12165 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -19931,9 +19085,7 @@ "start": 12171, "end": 12174 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -19956,6 +19108,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 12131, + "end": 12155 + }, "left": { "type": "Identifier", "span": { @@ -19972,9 +19128,7 @@ "start": 12142, "end": 12155 }, - "ctxt": 0, - "value": "WithStatement", - "optional": false + "value": "WithStatement" } }, "typeParams": null @@ -19987,9 +19141,7 @@ "start": 12181, "end": 12185 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -20017,9 +19169,7 @@ "start": 12194, "end": 12198 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -20054,9 +19204,7 @@ "start": 12204, "end": 12207 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -20114,9 +19262,7 @@ "start": 12240, "end": 12255 }, - "ctxt": 0, - "value": "isBodyOfFinally", - "optional": false + "value": "isBodyOfFinally" }, "function": { "params": [], @@ -20187,9 +19333,7 @@ "start": 12293, "end": 12298 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -20243,9 +19387,7 @@ "start": 12330, "end": 12334 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -20280,9 +19422,7 @@ "start": 12340, "end": 12343 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -20303,9 +19443,7 @@ "start": 12349, "end": 12357 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -20336,9 +19474,7 @@ "start": 12373, "end": 12381 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -20347,9 +19483,7 @@ "start": 12382, "end": 12389 }, - "ctxt": 0, - "value": "Finally", - "optional": false + "value": "Finally" } } } @@ -20404,9 +19538,7 @@ "start": 12435, "end": 12439 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -20441,9 +19573,7 @@ "start": 12445, "end": 12448 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -20466,6 +19596,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 12411, + "end": 12429 + }, "left": { "type": "Identifier", "span": { @@ -20482,9 +19616,7 @@ "start": 12422, "end": 12429 }, - "ctxt": 0, - "value": "Finally", - "optional": false + "value": "Finally" } }, "typeParams": null @@ -20497,9 +19629,7 @@ "start": 12455, "end": 12459 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -20527,9 +19657,7 @@ "start": 12468, "end": 12472 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -20564,9 +19692,7 @@ "start": 12478, "end": 12481 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -20624,9 +19750,7 @@ "start": 12514, "end": 12528 }, - "ctxt": 0, - "value": "isCaseOfSwitch", - "optional": false + "value": "isCaseOfSwitch" }, "function": { "params": [], @@ -20704,9 +19828,7 @@ "start": 12566, "end": 12571 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -20760,9 +19882,7 @@ "start": 12603, "end": 12607 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -20797,9 +19917,7 @@ "start": 12613, "end": 12616 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -20820,9 +19938,7 @@ "start": 12622, "end": 12630 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -20853,9 +19969,7 @@ "start": 12646, "end": 12654 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -20864,9 +19978,7 @@ "start": 12655, "end": 12661 }, - "ctxt": 0, - "value": "Switch", - "optional": false + "value": "Switch" } } } @@ -20909,9 +20021,7 @@ "start": 12686, "end": 12690 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -20946,9 +20056,7 @@ "start": 12696, "end": 12699 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -20969,9 +20077,7 @@ "start": 12705, "end": 12713 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -21002,9 +20108,7 @@ "start": 12729, "end": 12737 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -21013,9 +20117,7 @@ "start": 12738, "end": 12742 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -21070,9 +20172,7 @@ "start": 12796, "end": 12800 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -21107,9 +20207,7 @@ "start": 12806, "end": 12809 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -21132,6 +20230,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 12764, + "end": 12790 + }, "left": { "type": "Identifier", "span": { @@ -21148,9 +20250,7 @@ "start": 12775, "end": 12790 }, - "ctxt": 0, - "value": "SwitchStatement", - "optional": false + "value": "SwitchStatement" } }, "typeParams": null @@ -21163,9 +20263,7 @@ "start": 12816, "end": 12824 }, - "ctxt": 0, - "value": "caseList", - "optional": false + "value": "caseList" } }, "right": { @@ -21193,9 +20291,7 @@ "start": 12833, "end": 12837 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -21230,9 +20326,7 @@ "start": 12843, "end": 12846 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -21290,9 +20384,7 @@ "start": 12879, "end": 12900 }, - "ctxt": 0, - "value": "isDefaultCaseOfSwitch", - "optional": false + "value": "isDefaultCaseOfSwitch" }, "function": { "params": [], @@ -21377,9 +20469,7 @@ "start": 12938, "end": 12943 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -21433,9 +20523,7 @@ "start": 12975, "end": 12979 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -21470,9 +20558,7 @@ "start": 12985, "end": 12988 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -21493,9 +20579,7 @@ "start": 12994, "end": 13002 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -21526,9 +20610,7 @@ "start": 13018, "end": 13026 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -21537,9 +20619,7 @@ "start": 13027, "end": 13033 }, - "ctxt": 0, - "value": "Switch", - "optional": false + "value": "Switch" } } } @@ -21582,9 +20662,7 @@ "start": 13058, "end": 13062 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -21619,9 +20697,7 @@ "start": 13068, "end": 13071 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -21642,9 +20718,7 @@ "start": 13077, "end": 13085 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -21675,9 +20749,7 @@ "start": 13101, "end": 13109 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -21686,9 +20758,7 @@ "start": 13110, "end": 13114 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -21743,9 +20813,7 @@ "start": 13168, "end": 13172 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -21780,9 +20848,7 @@ "start": 13178, "end": 13181 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -21805,6 +20871,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 13136, + "end": 13162 + }, "left": { "type": "Identifier", "span": { @@ -21821,9 +20891,7 @@ "start": 13147, "end": 13162 }, - "ctxt": 0, - "value": "SwitchStatement", - "optional": false + "value": "SwitchStatement" } }, "typeParams": null @@ -21836,9 +20904,7 @@ "start": 13188, "end": 13196 }, - "ctxt": 0, - "value": "caseList", - "optional": false + "value": "caseList" } }, "right": { @@ -21866,9 +20932,7 @@ "start": 13205, "end": 13209 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -21903,9 +20967,7 @@ "start": 13215, "end": 13218 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -21972,9 +21034,7 @@ "start": 13277, "end": 13281 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -22009,9 +21069,7 @@ "start": 13287, "end": 13290 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -22034,6 +21092,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 13245, + "end": 13271 + }, "left": { "type": "Identifier", "span": { @@ -22050,9 +21112,7 @@ "start": 13256, "end": 13271 }, - "ctxt": 0, - "value": "SwitchStatement", - "optional": false + "value": "SwitchStatement" } }, "typeParams": null @@ -22065,9 +21125,7 @@ "start": 13297, "end": 13308 }, - "ctxt": 0, - "value": "defaultCase", - "optional": false + "value": "defaultCase" } }, "right": { @@ -22095,9 +21153,7 @@ "start": 13317, "end": 13321 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -22132,9 +21188,7 @@ "start": 13327, "end": 13330 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -22192,9 +21246,7 @@ "start": 13363, "end": 13380 }, - "ctxt": 0, - "value": "isListOfObjectLit", - "optional": false + "value": "isListOfObjectLit" }, "function": { "params": [], @@ -22272,9 +21324,7 @@ "start": 13418, "end": 13423 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -22328,9 +21378,7 @@ "start": 13455, "end": 13459 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -22365,9 +21413,7 @@ "start": 13465, "end": 13468 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -22388,9 +21434,7 @@ "start": 13474, "end": 13482 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -22421,9 +21465,7 @@ "start": 13498, "end": 13506 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -22432,9 +21474,7 @@ "start": 13507, "end": 13516 }, - "ctxt": 0, - "value": "ObjectLit", - "optional": false + "value": "ObjectLit" } } } @@ -22477,9 +21517,7 @@ "start": 13541, "end": 13545 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -22514,9 +21552,7 @@ "start": 13551, "end": 13554 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -22537,9 +21573,7 @@ "start": 13560, "end": 13568 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -22570,9 +21604,7 @@ "start": 13584, "end": 13592 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -22581,9 +21613,7 @@ "start": 13593, "end": 13597 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -22638,9 +21668,7 @@ "start": 13651, "end": 13655 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -22675,9 +21703,7 @@ "start": 13661, "end": 13664 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -22700,6 +21726,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 13619, + "end": 13645 + }, "left": { "type": "Identifier", "span": { @@ -22716,9 +21746,7 @@ "start": 13630, "end": 13645 }, - "ctxt": 0, - "value": "UnaryExpression", - "optional": false + "value": "UnaryExpression" } }, "typeParams": null @@ -22731,9 +21759,7 @@ "start": 13671, "end": 13678 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "right": { @@ -22761,9 +21787,7 @@ "start": 13687, "end": 13691 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -22798,9 +21822,7 @@ "start": 13697, "end": 13700 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -22858,9 +21880,7 @@ "start": 13733, "end": 13750 }, - "ctxt": 0, - "value": "isBodyOfObjectLit", - "optional": false + "value": "isBodyOfObjectLit" }, "function": { "params": [], @@ -22910,9 +21930,7 @@ "start": 13788, "end": 13805 }, - "ctxt": 0, - "value": "isListOfObjectLit", - "optional": false + "value": "isListOfObjectLit" } }, "arguments": [], @@ -22959,9 +21977,7 @@ "start": 13835, "end": 13857 }, - "ctxt": 0, - "value": "isEmptyListOfObjectLit", - "optional": false + "value": "isEmptyListOfObjectLit" }, "function": { "params": [], @@ -23046,9 +22062,7 @@ "start": 13895, "end": 13900 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -23102,9 +22116,7 @@ "start": 13932, "end": 13936 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -23139,9 +22151,7 @@ "start": 13942, "end": 13945 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -23162,9 +22172,7 @@ "start": 13951, "end": 13959 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -23195,9 +22203,7 @@ "start": 13975, "end": 13983 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -23206,9 +22212,7 @@ "start": 13984, "end": 13993 }, - "ctxt": 0, - "value": "ObjectLit", - "optional": false + "value": "ObjectLit" } } } @@ -23251,9 +22255,7 @@ "start": 14018, "end": 14022 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -23288,9 +22290,7 @@ "start": 14028, "end": 14031 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -23311,9 +22311,7 @@ "start": 14037, "end": 14045 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -23344,9 +22342,7 @@ "start": 14061, "end": 14069 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -23355,9 +22351,7 @@ "start": 14070, "end": 14074 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -23412,9 +22406,7 @@ "start": 14128, "end": 14132 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -23449,9 +22441,7 @@ "start": 14138, "end": 14141 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -23474,6 +22464,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 14096, + "end": 14122 + }, "left": { "type": "Identifier", "span": { @@ -23490,9 +22484,7 @@ "start": 14107, "end": 14122 }, - "ctxt": 0, - "value": "UnaryExpression", - "optional": false + "value": "UnaryExpression" } }, "typeParams": null @@ -23505,9 +22497,7 @@ "start": 14148, "end": 14155 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "right": { @@ -23535,9 +22525,7 @@ "start": 14164, "end": 14168 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -23572,9 +22560,7 @@ "start": 14174, "end": 14177 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -23647,9 +22633,7 @@ "start": 14228, "end": 14232 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -23684,9 +22668,7 @@ "start": 14238, "end": 14241 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -23709,6 +22691,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 14204, + "end": 14222 + }, "left": { "type": "Identifier", "span": { @@ -23725,9 +22711,7 @@ "start": 14215, "end": 14222 }, - "ctxt": 0, - "value": "ASTList", - "optional": false + "value": "ASTList" } }, "typeParams": null @@ -23740,9 +22724,7 @@ "start": 14248, "end": 14255 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -23751,9 +22733,7 @@ "start": 14256, "end": 14262 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -23808,9 +22788,7 @@ "start": 14295, "end": 14314 }, - "ctxt": 0, - "value": "isMemberOfObjectLit", - "optional": false + "value": "isMemberOfObjectLit" }, "function": { "params": [], @@ -23895,9 +22873,7 @@ "start": 14352, "end": 14357 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -23951,9 +22927,7 @@ "start": 14389, "end": 14393 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -23988,9 +22962,7 @@ "start": 14399, "end": 14402 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24011,9 +22983,7 @@ "start": 14408, "end": 14416 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -24044,9 +23014,7 @@ "start": 14432, "end": 14440 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -24055,9 +23023,7 @@ "start": 14441, "end": 14450 }, - "ctxt": 0, - "value": "ObjectLit", - "optional": false + "value": "ObjectLit" } } } @@ -24100,9 +23066,7 @@ "start": 14475, "end": 14479 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -24137,9 +23101,7 @@ "start": 14485, "end": 14488 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24160,9 +23122,7 @@ "start": 14494, "end": 14502 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -24193,9 +23153,7 @@ "start": 14518, "end": 14526 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -24204,9 +23162,7 @@ "start": 14527, "end": 14531 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -24249,9 +23205,7 @@ "start": 14556, "end": 14560 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -24286,9 +23240,7 @@ "start": 14566, "end": 14569 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24309,9 +23261,7 @@ "start": 14575, "end": 14583 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -24342,9 +23292,7 @@ "start": 14599, "end": 14607 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -24353,9 +23301,7 @@ "start": 14608, "end": 14614 }, - "ctxt": 0, - "value": "Member", - "optional": false + "value": "Member" } } } @@ -24410,9 +23356,7 @@ "start": 14668, "end": 14672 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -24447,9 +23391,7 @@ "start": 14678, "end": 14681 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24472,6 +23414,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 14636, + "end": 14662 + }, "left": { "type": "Identifier", "span": { @@ -24488,9 +23434,7 @@ "start": 14647, "end": 14662 }, - "ctxt": 0, - "value": "UnaryExpression", - "optional": false + "value": "UnaryExpression" } }, "typeParams": null @@ -24503,9 +23447,7 @@ "start": 14688, "end": 14695 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "right": { @@ -24533,9 +23475,7 @@ "start": 14704, "end": 14708 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -24570,9 +23510,7 @@ "start": 14714, "end": 14717 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24630,9 +23568,7 @@ "start": 14750, "end": 14775 }, - "ctxt": 0, - "value": "isNameOfMemberOfObjectLit", - "optional": false + "value": "isNameOfMemberOfObjectLit" }, "function": { "params": [], @@ -24724,9 +23660,7 @@ "start": 14813, "end": 14818 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -24780,9 +23714,7 @@ "start": 14850, "end": 14854 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -24817,9 +23749,7 @@ "start": 14860, "end": 14863 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24840,9 +23770,7 @@ "start": 14869, "end": 14877 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -24873,9 +23801,7 @@ "start": 14893, "end": 14901 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -24884,9 +23810,7 @@ "start": 14902, "end": 14911 }, - "ctxt": 0, - "value": "ObjectLit", - "optional": false + "value": "ObjectLit" } } } @@ -24929,9 +23853,7 @@ "start": 14936, "end": 14940 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -24966,9 +23888,7 @@ "start": 14946, "end": 14949 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -24989,9 +23909,7 @@ "start": 14955, "end": 14963 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -25022,9 +23940,7 @@ "start": 14979, "end": 14987 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -25033,9 +23949,7 @@ "start": 14988, "end": 14992 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -25078,9 +23992,7 @@ "start": 15017, "end": 15021 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -25115,9 +24027,7 @@ "start": 15027, "end": 15030 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -25138,9 +24048,7 @@ "start": 15036, "end": 15044 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -25171,9 +24079,7 @@ "start": 15060, "end": 15068 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -25182,9 +24088,7 @@ "start": 15069, "end": 15075 }, - "ctxt": 0, - "value": "Member", - "optional": false + "value": "Member" } } } @@ -25227,9 +24131,7 @@ "start": 15100, "end": 15104 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -25264,9 +24166,7 @@ "start": 15110, "end": 15113 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -25287,9 +24187,7 @@ "start": 15119, "end": 15127 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -25320,9 +24218,7 @@ "start": 15143, "end": 15151 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -25331,9 +24227,7 @@ "start": 15152, "end": 15156 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -25388,9 +24282,7 @@ "start": 15210, "end": 15214 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -25425,9 +24317,7 @@ "start": 15220, "end": 15223 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -25450,6 +24340,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 15178, + "end": 15204 + }, "left": { "type": "Identifier", "span": { @@ -25466,9 +24360,7 @@ "start": 15189, "end": 15204 }, - "ctxt": 0, - "value": "UnaryExpression", - "optional": false + "value": "UnaryExpression" } }, "typeParams": null @@ -25481,9 +24373,7 @@ "start": 15230, "end": 15237 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "right": { @@ -25511,9 +24401,7 @@ "start": 15246, "end": 15250 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -25548,9 +24436,7 @@ "start": 15256, "end": 15259 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -25608,9 +24494,7 @@ "start": 15292, "end": 15308 }, - "ctxt": 0, - "value": "isListOfArrayLit", - "optional": false + "value": "isListOfArrayLit" }, "function": { "params": [], @@ -25688,9 +24572,7 @@ "start": 15346, "end": 15351 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -25744,9 +24626,7 @@ "start": 15383, "end": 15387 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -25781,9 +24661,7 @@ "start": 15393, "end": 15396 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -25804,9 +24682,7 @@ "start": 15402, "end": 15410 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -25837,9 +24713,7 @@ "start": 15426, "end": 15434 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -25848,9 +24722,7 @@ "start": 15435, "end": 15443 }, - "ctxt": 0, - "value": "ArrayLit", - "optional": false + "value": "ArrayLit" } } } @@ -25893,9 +24765,7 @@ "start": 15468, "end": 15472 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -25930,9 +24800,7 @@ "start": 15478, "end": 15481 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -25953,9 +24821,7 @@ "start": 15487, "end": 15495 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -25986,9 +24852,7 @@ "start": 15511, "end": 15519 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -25997,9 +24861,7 @@ "start": 15520, "end": 15524 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -26054,9 +24916,7 @@ "start": 15578, "end": 15582 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -26091,9 +24951,7 @@ "start": 15588, "end": 15591 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -26116,6 +24974,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 15546, + "end": 15572 + }, "left": { "type": "Identifier", "span": { @@ -26132,9 +24994,7 @@ "start": 15557, "end": 15572 }, - "ctxt": 0, - "value": "UnaryExpression", - "optional": false + "value": "UnaryExpression" } }, "typeParams": null @@ -26147,9 +25007,7 @@ "start": 15598, "end": 15605 }, - "ctxt": 0, - "value": "operand", - "optional": false + "value": "operand" } }, "right": { @@ -26177,9 +25035,7 @@ "start": 15614, "end": 15618 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -26214,9 +25070,7 @@ "start": 15624, "end": 15627 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -26274,9 +25128,7 @@ "start": 15660, "end": 15676 }, - "ctxt": 0, - "value": "isTargetOfMember", - "optional": false + "value": "isTargetOfMember" }, "function": { "params": [], @@ -26347,9 +25199,7 @@ "start": 15714, "end": 15719 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -26403,9 +25253,7 @@ "start": 15751, "end": 15755 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -26440,9 +25288,7 @@ "start": 15761, "end": 15764 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -26463,9 +25309,7 @@ "start": 15770, "end": 15778 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -26496,9 +25340,7 @@ "start": 15794, "end": 15802 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -26507,9 +25349,7 @@ "start": 15803, "end": 15809 }, - "ctxt": 0, - "value": "Member", - "optional": false + "value": "Member" } } } @@ -26564,9 +25404,7 @@ "start": 15864, "end": 15868 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -26601,9 +25439,7 @@ "start": 15874, "end": 15877 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -26626,6 +25462,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 15831, + "end": 15858 + }, "left": { "type": "Identifier", "span": { @@ -26642,9 +25482,7 @@ "start": 15842, "end": 15858 }, - "ctxt": 0, - "value": "BinaryExpression", - "optional": false + "value": "BinaryExpression" } }, "typeParams": null @@ -26657,9 +25495,7 @@ "start": 15884, "end": 15892 }, - "ctxt": 0, - "value": "operand1", - "optional": false + "value": "operand1" } }, "right": { @@ -26687,9 +25523,7 @@ "start": 15902, "end": 15906 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -26724,9 +25558,7 @@ "start": 15912, "end": 15915 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -26784,9 +25616,7 @@ "start": 15948, "end": 15964 }, - "ctxt": 0, - "value": "isMemberOfMember", - "optional": false + "value": "isMemberOfMember" }, "function": { "params": [], @@ -26857,9 +25687,7 @@ "start": 16002, "end": 16007 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -26913,9 +25741,7 @@ "start": 16039, "end": 16043 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -26950,9 +25776,7 @@ "start": 16049, "end": 16052 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -26973,9 +25797,7 @@ "start": 16058, "end": 16066 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -27006,9 +25828,7 @@ "start": 16082, "end": 16090 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -27017,9 +25837,7 @@ "start": 16091, "end": 16097 }, - "ctxt": 0, - "value": "Member", - "optional": false + "value": "Member" } } } @@ -27074,9 +25892,7 @@ "start": 16152, "end": 16156 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -27111,9 +25927,7 @@ "start": 16162, "end": 16165 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -27136,6 +25950,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 16119, + "end": 16146 + }, "left": { "type": "Identifier", "span": { @@ -27152,9 +25970,7 @@ "start": 16130, "end": 16146 }, - "ctxt": 0, - "value": "BinaryExpression", - "optional": false + "value": "BinaryExpression" } }, "typeParams": null @@ -27167,9 +25983,7 @@ "start": 16172, "end": 16180 }, - "ctxt": 0, - "value": "operand2", - "optional": false + "value": "operand2" } }, "right": { @@ -27197,9 +26011,7 @@ "start": 16190, "end": 16194 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -27234,9 +26046,7 @@ "start": 16200, "end": 16203 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -27294,9 +26104,7 @@ "start": 16236, "end": 16248 }, - "ctxt": 0, - "value": "isItemOfList", - "optional": false + "value": "isItemOfList" }, "function": { "params": [], @@ -27360,9 +26168,7 @@ "start": 16286, "end": 16291 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -27416,9 +26222,7 @@ "start": 16323, "end": 16327 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -27453,9 +26257,7 @@ "start": 16333, "end": 16336 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -27476,9 +26278,7 @@ "start": 16342, "end": 16350 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -27509,9 +26309,7 @@ "start": 16366, "end": 16374 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -27520,9 +26318,7 @@ "start": 16375, "end": 16379 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -27568,9 +26364,7 @@ "start": 16500, "end": 16510 }, - "ctxt": 0, - "value": "isThenOfIf", - "optional": false + "value": "isThenOfIf" }, "function": { "params": [], @@ -27641,9 +26435,7 @@ "start": 16548, "end": 16553 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -27697,9 +26489,7 @@ "start": 16585, "end": 16589 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -27734,9 +26524,7 @@ "start": 16595, "end": 16598 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -27757,9 +26545,7 @@ "start": 16604, "end": 16612 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -27790,9 +26576,7 @@ "start": 16628, "end": 16636 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -27801,9 +26585,7 @@ "start": 16637, "end": 16639 }, - "ctxt": 0, - "value": "If", - "optional": false + "value": "If" } } } @@ -27858,9 +26640,7 @@ "start": 16689, "end": 16693 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -27895,9 +26675,7 @@ "start": 16699, "end": 16702 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -27920,6 +26698,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 16661, + "end": 16683 + }, "left": { "type": "Identifier", "span": { @@ -27936,9 +26718,7 @@ "start": 16672, "end": 16683 }, - "ctxt": 0, - "value": "IfStatement", - "optional": false + "value": "IfStatement" } }, "typeParams": null @@ -27951,9 +26731,7 @@ "start": 16709, "end": 16716 }, - "ctxt": 0, - "value": "thenBod", - "optional": false + "value": "thenBod" } }, "right": { @@ -27981,9 +26759,7 @@ "start": 16725, "end": 16729 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -28018,9 +26794,7 @@ "start": 16735, "end": 16738 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -28078,9 +26852,7 @@ "start": 16771, "end": 16781 }, - "ctxt": 0, - "value": "isElseOfIf", - "optional": false + "value": "isElseOfIf" }, "function": { "params": [], @@ -28151,9 +26923,7 @@ "start": 16819, "end": 16824 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -28207,9 +26977,7 @@ "start": 16856, "end": 16860 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -28244,9 +27012,7 @@ "start": 16866, "end": 16869 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -28267,9 +27033,7 @@ "start": 16875, "end": 16883 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -28300,9 +27064,7 @@ "start": 16899, "end": 16907 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -28311,9 +27073,7 @@ "start": 16908, "end": 16910 }, - "ctxt": 0, - "value": "If", - "optional": false + "value": "If" } } } @@ -28368,9 +27128,7 @@ "start": 16960, "end": 16964 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -28405,9 +27163,7 @@ "start": 16970, "end": 16973 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -28430,6 +27186,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 16932, + "end": 16954 + }, "left": { "type": "Identifier", "span": { @@ -28446,9 +27206,7 @@ "start": 16943, "end": 16954 }, - "ctxt": 0, - "value": "IfStatement", - "optional": false + "value": "IfStatement" } }, "typeParams": null @@ -28461,9 +27219,7 @@ "start": 16980, "end": 16987 }, - "ctxt": 0, - "value": "elseBod", - "optional": false + "value": "elseBod" } }, "right": { @@ -28491,9 +27247,7 @@ "start": 16996, "end": 17000 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -28528,9 +27282,7 @@ "start": 17006, "end": 17009 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -28588,9 +27340,7 @@ "start": 17042, "end": 17061 }, - "ctxt": 0, - "value": "isBodyOfDefaultCase", - "optional": false + "value": "isBodyOfDefaultCase" }, "function": { "params": [], @@ -28640,9 +27390,7 @@ "start": 17099, "end": 17111 }, - "ctxt": 0, - "value": "isBodyOfCase", - "optional": false + "value": "isBodyOfCase" } }, "arguments": [], @@ -28689,9 +27437,7 @@ "start": 17141, "end": 17162 }, - "ctxt": 0, - "value": "isSingleStatementList", - "optional": false + "value": "isSingleStatementList" }, "function": { "params": [], @@ -28762,9 +27508,7 @@ "start": 17200, "end": 17205 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -28818,9 +27562,7 @@ "start": 17237, "end": 17241 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -28848,9 +27590,7 @@ "start": 17247, "end": 17250 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -28861,9 +27601,7 @@ "start": 17252, "end": 17260 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -28894,9 +27632,7 @@ "start": 17276, "end": 17284 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -28905,9 +27641,7 @@ "start": 17285, "end": 17289 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -28968,9 +27702,7 @@ "start": 17335, "end": 17339 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -28998,9 +27730,7 @@ "start": 17345, "end": 17348 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } } } @@ -29013,6 +27743,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 17311, + "end": 17329 + }, "left": { "type": "Identifier", "span": { @@ -29029,9 +27763,7 @@ "start": 17322, "end": 17329 }, - "ctxt": 0, - "value": "ASTList", - "optional": false + "value": "ASTList" } }, "typeParams": null @@ -29044,9 +27776,7 @@ "start": 17351, "end": 17358 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -29055,9 +27785,7 @@ "start": 17359, "end": 17365 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -29112,9 +27840,7 @@ "start": 17399, "end": 17423 }, - "ctxt": 0, - "value": "isArgumentListOfFunction", - "optional": false + "value": "isArgumentListOfFunction" }, "function": { "params": [], @@ -29192,9 +27918,7 @@ "start": 17461, "end": 17466 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -29248,9 +27972,7 @@ "start": 17498, "end": 17502 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -29285,9 +28007,7 @@ "start": 17508, "end": 17511 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -29308,9 +28028,7 @@ "start": 17517, "end": 17525 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -29341,9 +28059,7 @@ "start": 17541, "end": 17549 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -29352,9 +28068,7 @@ "start": 17550, "end": 17554 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -29397,9 +28111,7 @@ "start": 17579, "end": 17583 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -29434,9 +28146,7 @@ "start": 17589, "end": 17592 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -29457,9 +28167,7 @@ "start": 17598, "end": 17606 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -29490,9 +28198,7 @@ "start": 17622, "end": 17630 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -29501,9 +28207,7 @@ "start": 17631, "end": 17639 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -29558,9 +28262,7 @@ "start": 17686, "end": 17690 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -29595,9 +28297,7 @@ "start": 17696, "end": 17699 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -29620,6 +28320,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 17661, + "end": 17680 + }, "left": { "type": "Identifier", "span": { @@ -29636,9 +28340,7 @@ "start": 17672, "end": 17680 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "typeParams": null @@ -29651,9 +28353,7 @@ "start": 17706, "end": 17715 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -29681,9 +28381,7 @@ "start": 17725, "end": 17729 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -29718,9 +28416,7 @@ "start": 17735, "end": 17738 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -29778,9 +28474,7 @@ "start": 17771, "end": 17791 }, - "ctxt": 0, - "value": "isArgumentOfFunction", - "optional": false + "value": "isArgumentOfFunction" }, "function": { "params": [], @@ -29858,9 +28552,7 @@ "start": 17829, "end": 17834 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -29914,9 +28606,7 @@ "start": 17866, "end": 17870 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -29951,9 +28641,7 @@ "start": 17876, "end": 17879 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -29974,9 +28662,7 @@ "start": 17885, "end": 17893 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -30007,9 +28693,7 @@ "start": 17909, "end": 17917 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -30018,9 +28702,7 @@ "start": 17918, "end": 17922 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -30063,9 +28745,7 @@ "start": 17947, "end": 17951 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -30100,9 +28780,7 @@ "start": 17957, "end": 17960 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -30123,9 +28801,7 @@ "start": 17966, "end": 17974 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -30156,9 +28832,7 @@ "start": 17990, "end": 17998 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -30167,9 +28841,7 @@ "start": 17999, "end": 18007 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -30224,9 +28896,7 @@ "start": 18054, "end": 18058 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -30261,9 +28931,7 @@ "start": 18064, "end": 18067 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -30286,6 +28954,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 18029, + "end": 18048 + }, "left": { "type": "Identifier", "span": { @@ -30302,9 +28974,7 @@ "start": 18040, "end": 18048 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "typeParams": null @@ -30317,9 +28987,7 @@ "start": 18074, "end": 18083 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -30347,9 +29015,7 @@ "start": 18093, "end": 18097 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -30384,9 +29050,7 @@ "start": 18103, "end": 18106 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -30444,9 +29108,7 @@ "start": 18139, "end": 18159 }, - "ctxt": 0, - "value": "isArgumentListOfCall", - "optional": false + "value": "isArgumentListOfCall" }, "function": { "params": [], @@ -30524,9 +29186,7 @@ "start": 18197, "end": 18202 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -30580,9 +29240,7 @@ "start": 18234, "end": 18238 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -30617,9 +29275,7 @@ "start": 18244, "end": 18247 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -30640,9 +29296,7 @@ "start": 18253, "end": 18261 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -30673,9 +29327,7 @@ "start": 18277, "end": 18285 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -30684,9 +29336,7 @@ "start": 18286, "end": 18290 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -30729,9 +29379,7 @@ "start": 18315, "end": 18319 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -30766,9 +29414,7 @@ "start": 18325, "end": 18328 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -30789,9 +29435,7 @@ "start": 18334, "end": 18342 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -30822,9 +29466,7 @@ "start": 18358, "end": 18366 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -30833,9 +29475,7 @@ "start": 18367, "end": 18371 }, - "ctxt": 0, - "value": "Call", - "optional": false + "value": "Call" } } } @@ -30890,9 +29530,7 @@ "start": 18424, "end": 18428 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -30927,9 +29565,7 @@ "start": 18434, "end": 18437 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -30952,6 +29588,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 18393, + "end": 18418 + }, "left": { "type": "Identifier", "span": { @@ -30968,9 +29608,7 @@ "start": 18404, "end": 18418 }, - "ctxt": 0, - "value": "CallExpression", - "optional": false + "value": "CallExpression" } }, "typeParams": null @@ -30983,9 +29621,7 @@ "start": 18444, "end": 18453 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -31013,9 +29649,7 @@ "start": 18463, "end": 18467 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -31050,9 +29684,7 @@ "start": 18473, "end": 18476 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -31110,9 +29742,7 @@ "start": 18509, "end": 18528 }, - "ctxt": 0, - "value": "isArgumentListOfNew", - "optional": false + "value": "isArgumentListOfNew" }, "function": { "params": [], @@ -31190,9 +29820,7 @@ "start": 18566, "end": 18571 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -31246,9 +29874,7 @@ "start": 18603, "end": 18607 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -31283,9 +29909,7 @@ "start": 18613, "end": 18616 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -31306,9 +29930,7 @@ "start": 18622, "end": 18630 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -31339,9 +29961,7 @@ "start": 18646, "end": 18654 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -31350,9 +29970,7 @@ "start": 18655, "end": 18659 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } } @@ -31395,9 +30013,7 @@ "start": 18684, "end": 18688 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -31432,9 +30048,7 @@ "start": 18694, "end": 18697 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -31455,9 +30069,7 @@ "start": 18703, "end": 18711 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -31488,9 +30100,7 @@ "start": 18727, "end": 18735 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -31499,9 +30109,7 @@ "start": 18736, "end": 18739 }, - "ctxt": 0, - "value": "New", - "optional": false + "value": "New" } } } @@ -31556,9 +30164,7 @@ "start": 18792, "end": 18796 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -31593,9 +30199,7 @@ "start": 18802, "end": 18805 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -31618,6 +30222,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 18761, + "end": 18786 + }, "left": { "type": "Identifier", "span": { @@ -31634,9 +30242,7 @@ "start": 18772, "end": 18786 }, - "ctxt": 0, - "value": "CallExpression", - "optional": false + "value": "CallExpression" } }, "typeParams": null @@ -31649,9 +30255,7 @@ "start": 18812, "end": 18821 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" } }, "right": { @@ -31679,9 +30283,7 @@ "start": 18831, "end": 18835 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -31716,9 +30318,7 @@ "start": 18841, "end": 18844 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -31776,9 +30376,7 @@ "start": 18877, "end": 18895 }, - "ctxt": 0, - "value": "isSynthesizedBlock", - "optional": false + "value": "isSynthesizedBlock" }, "function": { "params": [], @@ -31849,9 +30447,7 @@ "start": 18933, "end": 18938 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -31905,9 +30501,7 @@ "start": 18970, "end": 18974 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -31942,9 +30536,7 @@ "start": 18980, "end": 18983 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -31965,9 +30557,7 @@ "start": 18989, "end": 18997 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -31998,9 +30588,7 @@ "start": 19013, "end": 19021 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -32009,9 +30597,7 @@ "start": 19022, "end": 19027 }, - "ctxt": 0, - "value": "Block", - "optional": false + "value": "Block" } } } @@ -32066,9 +30652,7 @@ "start": 19071, "end": 19075 }, - "ctxt": 0, - "value": "asts", - "optional": false + "value": "asts" } }, "property": { @@ -32103,9 +30687,7 @@ "start": 19081, "end": 19084 }, - "ctxt": 0, - "value": "top", - "optional": false + "value": "top" } }, "right": { @@ -32128,6 +30710,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 19049, + "end": 19065 + }, "left": { "type": "Identifier", "span": { @@ -32144,9 +30730,7 @@ "start": 19060, "end": 19065 }, - "ctxt": 0, - "value": "Block", - "optional": false + "value": "Block" } }, "typeParams": null @@ -32159,9 +30743,7 @@ "start": 19091, "end": 19107 }, - "ctxt": 0, - "value": "isStatementBlock", - "optional": false + "value": "isStatementBlock" } }, "right": { @@ -32261,6 +30843,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 19176, + "end": 19194 + }, "left": { "type": "Identifier", "span": { @@ -32277,9 +30863,7 @@ "start": 19187, "end": 19194 }, - "ctxt": 0, - "value": "ASTSpan", - "optional": false + "value": "ASTSpan" } }, "typeParams": null @@ -32392,9 +30976,7 @@ "start": 19276, "end": 19283 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "right": { @@ -32444,9 +31026,7 @@ "start": 19298, "end": 19305 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } }, "right": { @@ -32560,9 +31140,7 @@ "start": 19418, "end": 19422 }, - "ctxt": 0, - "value": "path", - "optional": false + "value": "path" }, "value": { "type": "NewExpression", @@ -32593,9 +31171,7 @@ "start": 19440, "end": 19447 }, - "ctxt": 0, - "value": "AstPath", - "optional": false + "value": "AstPath" } }, "arguments": [], @@ -32793,6 +31369,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 20305, + "end": 20319 + }, "left": { "type": "Identifier", "span": { @@ -32809,9 +31389,7 @@ "start": 20316, "end": 20319 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -32898,9 +31476,7 @@ "start": 20362, "end": 20369 }, - "ctxt": 0, - "value": "Default", - "optional": false + "value": "Default" } } } @@ -32984,6 +31560,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 20433, + "end": 20451 + }, "left": { "type": "Identifier", "span": { @@ -33000,9 +31580,7 @@ "start": 20444, "end": 20451 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } }, "typeParams": null @@ -33071,9 +31649,7 @@ "start": 20497, "end": 20503 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -33180,9 +31756,7 @@ "start": 20556, "end": 20562 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -33286,9 +31860,7 @@ "start": 20617, "end": 20624 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "definite": false @@ -33368,9 +31940,7 @@ "start": 20672, "end": 20679 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } }, "definite": false @@ -33436,9 +32006,7 @@ "start": 20718, "end": 20732 }, - "ctxt": 0, - "value": "isBlockComment", - "optional": false + "value": "isBlockComment" } } }, @@ -33599,9 +32167,7 @@ "start": 20952, "end": 20956 }, - "ctxt": 0, - "value": "path", - "optional": false + "value": "path" } }, "property": { @@ -33610,9 +32176,7 @@ "start": 20957, "end": 20961 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -33740,6 +32304,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 21074, + "end": 21088 + }, "left": { "type": "Identifier", "span": { @@ -33756,9 +32324,7 @@ "start": 21085, "end": 21088 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -33796,6 +32362,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 21098, + "end": 21112 + }, "left": { "type": "Identifier", "span": { @@ -33812,9 +32382,7 @@ "start": 21109, "end": 21112 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -34024,9 +32592,7 @@ "start": 21737, "end": 21750 }, - "ctxt": 0, - "value": "EdgeInclusive", - "optional": false + "value": "EdgeInclusive" } } } @@ -34062,9 +32628,7 @@ "start": 21779, "end": 21787 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -34095,9 +32659,7 @@ "start": 21803, "end": 21811 }, - "ctxt": 0, - "value": "NodeType", - "optional": false + "value": "NodeType" } }, "property": { @@ -34106,9 +32668,7 @@ "start": 21812, "end": 21816 }, - "ctxt": 0, - "value": "Name", - "optional": false + "value": "Name" } } } @@ -34152,9 +32712,7 @@ "start": 21855, "end": 21862 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } } } @@ -34212,9 +32770,7 @@ "start": 21921, "end": 21928 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "definite": false @@ -34277,9 +32833,7 @@ "start": 21964, "end": 21971 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } }, "right": { @@ -34469,9 +33023,7 @@ "start": 22252, "end": 22256 }, - "ctxt": 0, - "value": "path", - "optional": false + "value": "path" } }, "property": { @@ -34480,9 +33032,7 @@ "start": 22257, "end": 22260 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "arguments": [], @@ -34572,9 +33122,7 @@ "start": 22313, "end": 22320 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "right": { @@ -34599,9 +33147,7 @@ "start": 22333, "end": 22340 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } } }, @@ -34634,9 +33180,7 @@ "start": 22348, "end": 22355 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } }, "right": { @@ -34661,9 +33205,7 @@ "start": 22368, "end": 22375 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } } } @@ -34719,9 +33261,7 @@ "start": 22408, "end": 22412 }, - "ctxt": 0, - "value": "path", - "optional": false + "value": "path" } }, "property": { @@ -34730,9 +33270,7 @@ "start": 22413, "end": 22417 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -34859,9 +33397,7 @@ "start": 22843, "end": 22854 }, - "ctxt": 0, - "value": "preComments", - "optional": false + "value": "preComments" } } } @@ -34963,9 +33499,7 @@ "start": 22952, "end": 22964 }, - "ctxt": 0, - "value": "postComments", - "optional": false + "value": "postComments" } } } @@ -35045,9 +33579,7 @@ "start": 23042, "end": 23072 }, - "ctxt": 0, - "value": "DontPruneSearchBasedOnPosition", - "optional": false + "value": "DontPruneSearchBasedOnPosition" } } } @@ -35104,9 +33636,7 @@ "start": 23198, "end": 23205 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -35115,9 +33645,7 @@ "start": 23206, "end": 23216 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -35328,9 +33856,7 @@ "start": 23381, "end": 23400 }, - "ctxt": 0, - "value": "getAstWalkerFactory", - "optional": false + "value": "getAstWalkerFactory" } }, "arguments": [], @@ -35342,9 +33868,7 @@ "start": 23403, "end": 23407 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -35439,9 +33963,7 @@ "start": 23458, "end": 23462 }, - "ctxt": 0, - "value": "path", - "optional": false + "value": "path" } } } @@ -35464,6 +33986,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 20372, + "end": 20390 + }, "left": { "type": "Identifier", "span": { @@ -35480,9 +34006,7 @@ "start": 20383, "end": 20390 }, - "ctxt": 0, - "value": "AstPath", - "optional": false + "value": "AstPath" } }, "typeParams": null @@ -35540,6 +34064,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 23700, + "end": 23717 + }, "left": { "type": "Identifier", "span": { @@ -35556,9 +34084,7 @@ "start": 23711, "end": 23717 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } }, "typeParams": null @@ -35712,6 +34238,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 23799, + "end": 23813 + }, "left": { "type": "Identifier", "span": { @@ -35728,9 +34258,7 @@ "start": 23810, "end": 23813 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -35760,6 +34288,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 23823, + "end": 23837 + }, "left": { "type": "Identifier", "span": { @@ -35776,9 +34308,7 @@ "start": 23834, "end": 23837 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -35808,6 +34338,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 23847, + "end": 23868 + }, "left": { "type": "Identifier", "span": { @@ -35824,9 +34358,7 @@ "start": 23858, "end": 23868 }, - "ctxt": 0, - "value": "IAstWalker", - "optional": false + "value": "IAstWalker" } }, "typeParams": null @@ -35877,9 +34409,7 @@ "start": 23918, "end": 23932 }, - "ctxt": 0, - "value": "isValidAstNode", - "optional": false + "value": "isValidAstNode" } }, "arguments": [ @@ -35942,9 +34472,7 @@ "start": 24013, "end": 24020 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "right": { @@ -36045,9 +34573,7 @@ "start": 24089, "end": 24096 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } } } @@ -36102,9 +34628,7 @@ "start": 24216, "end": 24223 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "right": { @@ -36147,9 +34671,7 @@ "start": 24242, "end": 24249 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } }, "right": { @@ -36213,9 +34735,7 @@ "start": 24293, "end": 24300 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -36224,9 +34744,7 @@ "start": 24301, "end": 24311 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -36283,6 +34801,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 23871, + "end": 23885 + }, "left": { "type": "Identifier", "span": { @@ -36299,9 +34821,7 @@ "start": 23882, "end": 23885 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -36360,9 +34880,7 @@ "start": 24408, "end": 24427 }, - "ctxt": 0, - "value": "getAstWalkerFactory", - "optional": false + "value": "getAstWalkerFactory" } }, "arguments": [], @@ -36374,9 +34892,7 @@ "start": 24430, "end": 24434 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -36499,6 +35015,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24605, + "end": 24619 + }, "left": { "type": "Identifier", "span": { @@ -36515,9 +35035,7 @@ "start": 24616, "end": 24619 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -36612,6 +35130,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24655, + "end": 24676 + }, "left": { "type": "Identifier", "span": { @@ -36628,9 +35150,7 @@ "start": 24666, "end": 24676 }, - "ctxt": 0, - "value": "IAstWalker", - "optional": false + "value": "IAstWalker" } }, "typeParams": null @@ -36734,6 +35254,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24729, + "end": 24743 + }, "left": { "type": "Identifier", "span": { @@ -36750,9 +35274,7 @@ "start": 24740, "end": 24743 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -36790,6 +35312,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24753, + "end": 24767 + }, "left": { "type": "Identifier", "span": { @@ -36806,9 +35332,7 @@ "start": 24764, "end": 24767 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -36846,6 +35370,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24777, + "end": 24798 + }, "left": { "type": "Identifier", "span": { @@ -36862,9 +35390,7 @@ "start": 24788, "end": 24798 }, - "ctxt": 0, - "value": "IAstWalker", - "optional": false + "value": "IAstWalker" } }, "typeParams": null @@ -36926,6 +35452,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24824, + "end": 24842 + }, "left": { "type": "Identifier", "span": { @@ -36942,9 +35472,7 @@ "start": 24835, "end": 24842 }, - "ctxt": 0, - "value": "AstPath", - "optional": false + "value": "AstPath" } }, "typeParams": null @@ -36973,9 +35501,7 @@ "start": 24852, "end": 24857 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "definite": false @@ -37017,9 +35543,7 @@ "start": 24876, "end": 24880 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -37183,6 +35707,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 24991, + "end": 25005 + }, "left": { "type": "Identifier", "span": { @@ -37199,9 +35727,7 @@ "start": 25002, "end": 25005 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -37239,6 +35765,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 25015, + "end": 25029 + }, "left": { "type": "Identifier", "span": { @@ -37255,9 +35785,7 @@ "start": 25026, "end": 25029 }, - "ctxt": 0, - "value": "AST", - "optional": false + "value": "AST" } }, "typeParams": null @@ -37295,6 +35823,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 25039, + "end": 25060 + }, "left": { "type": "Identifier", "span": { @@ -37311,9 +35843,7 @@ "start": 25050, "end": 25060 }, - "ctxt": 0, - "value": "IAstWalker", - "optional": false + "value": "IAstWalker" } }, "typeParams": null @@ -37375,6 +35905,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 25086, + "end": 25104 + }, "left": { "type": "Identifier", "span": { @@ -37391,9 +35925,7 @@ "start": 25097, "end": 25104 }, - "ctxt": 0, - "value": "AstPath", - "optional": false + "value": "AstPath" } }, "typeParams": null @@ -37422,9 +35954,7 @@ "start": 25114, "end": 25119 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "definite": false @@ -37466,9 +35996,7 @@ "start": 25138, "end": 25141 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -37602,9 +36130,7 @@ "start": 25233, "end": 25252 }, - "ctxt": 0, - "value": "getAstWalkerFactory", - "optional": false + "value": "getAstWalkerFactory" } }, "arguments": [], @@ -37616,9 +36142,7 @@ "start": 25255, "end": 25259 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json index 8f6e6689be81..6bd2cf3ca0eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json @@ -8556,9 +8556,7 @@ "start": 8151, "end": 8154 }, - "ctxt": 0, - "value": "ES3", - "optional": false + "value": "ES3" } }, "definite": false @@ -8645,9 +8643,7 @@ "start": 8223, "end": 8234 }, - "ctxt": 0, - "value": "Synchronous", - "optional": false + "value": "Synchronous" } }, "definite": false @@ -9202,9 +9198,7 @@ "start": 8569, "end": 8575 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json index 590b6e6200c6..f53914d1d59b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json @@ -68,9 +68,7 @@ "start": 330, "end": 337 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" }, "value": { "type": "StringLiteral", @@ -104,9 +102,7 @@ "start": 359, "end": 366 }, - "ctxt": 0, - "value": "indent1", - "optional": false + "value": "indent1" }, "value": { "type": "StringLiteral", @@ -140,9 +136,7 @@ "start": 390, "end": 403 }, - "ctxt": 0, - "value": "indentStrings", - "optional": false + "value": "indentStrings" }, "value": { "type": "ArrayExpression", @@ -196,9 +190,7 @@ "start": 435, "end": 444 }, - "ctxt": 0, - "value": "indentAmt", - "optional": false + "value": "indentAmt" }, "value": { "type": "NumericLiteral", @@ -233,9 +225,7 @@ "start": 459, "end": 470 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -355,9 +345,7 @@ "start": 552, "end": 566 }, - "ctxt": 0, - "value": "increaseIndent", - "optional": false + "value": "increaseIndent" }, "function": { "params": [], @@ -408,9 +396,7 @@ "start": 588, "end": 597 }, - "ctxt": 0, - "value": "indentAmt", - "optional": false + "value": "indentAmt" } } } @@ -441,9 +427,7 @@ "start": 627, "end": 641 }, - "ctxt": 0, - "value": "decreaseIndent", - "optional": false + "value": "decreaseIndent" }, "function": { "params": [], @@ -494,9 +478,7 @@ "start": 663, "end": 672 }, - "ctxt": 0, - "value": "indentAmt", - "optional": false + "value": "indentAmt" } } } @@ -527,9 +509,7 @@ "start": 702, "end": 711 }, - "ctxt": 0, - "value": "startLine", - "optional": false + "value": "startLine" }, "function": { "params": [], @@ -585,9 +565,7 @@ "start": 737, "end": 744 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } }, "property": { @@ -596,9 +574,7 @@ "start": 745, "end": 751 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -654,9 +630,7 @@ "start": 795, "end": 800 }, - "ctxt": 0, - "value": "Alert", - "optional": false + "value": "Alert" } }, "arguments": [ @@ -681,9 +655,7 @@ "start": 806, "end": 813 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } } } @@ -747,9 +719,7 @@ "start": 866, "end": 879 }, - "ctxt": 0, - "value": "indentStrings", - "optional": false + "value": "indentStrings" } }, "property": { @@ -777,9 +747,7 @@ "start": 885, "end": 894 }, - "ctxt": 0, - "value": "indentAmt", - "optional": false + "value": "indentAmt" } } } @@ -947,9 +915,7 @@ "start": 1019, "end": 1028 }, - "ctxt": 0, - "value": "indentAmt", - "optional": false + "value": "indentAmt" } } }, @@ -1023,9 +989,7 @@ "start": 1078, "end": 1085 }, - "ctxt": 0, - "value": "indent1", - "optional": false + "value": "indent1" } } } @@ -1071,9 +1035,7 @@ "start": 1126, "end": 1139 }, - "ctxt": 0, - "value": "indentStrings", - "optional": false + "value": "indentStrings" } }, "property": { @@ -1101,9 +1063,7 @@ "start": 1145, "end": 1154 }, - "ctxt": 0, - "value": "indentAmt", - "optional": false + "value": "indentAmt" } } } @@ -1156,9 +1116,7 @@ "start": 1203, "end": 1210 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } }, "right": { @@ -1199,9 +1157,7 @@ "start": 1254, "end": 1259 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" }, "function": { "params": [ @@ -1271,9 +1227,7 @@ "start": 1282, "end": 1289 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } }, "right": { @@ -1314,9 +1268,7 @@ "start": 1322, "end": 1331 }, - "ctxt": 0, - "value": "writeLine", - "optional": false + "value": "writeLine" }, "function": { "params": [ @@ -1386,9 +1338,7 @@ "start": 1354, "end": 1361 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } }, "right": { @@ -1441,9 +1391,7 @@ "start": 1385, "end": 1392 }, - "ctxt": 0, - "value": "outfile", - "optional": false + "value": "outfile" } }, "property": { @@ -1452,9 +1400,7 @@ "start": 1393, "end": 1402 }, - "ctxt": 0, - "value": "WriteLine", - "optional": false + "value": "WriteLine" } }, "arguments": [ @@ -1479,9 +1425,7 @@ "start": 1408, "end": 1415 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } } } @@ -1521,9 +1465,7 @@ "start": 1435, "end": 1442 }, - "ctxt": 0, - "value": "builder", - "optional": false + "value": "builder" } }, "right": { @@ -1802,9 +1744,7 @@ "start": 1596, "end": 1601 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "typeAnnotation": { @@ -1865,9 +1805,7 @@ "start": 1616, "end": 1621 }, - "ctxt": 0, - "value": "print", - "optional": false + "value": "print" } }, "arguments": [ @@ -1923,9 +1861,7 @@ "start": 1638, "end": 1652 }, - "ctxt": 0, - "value": "increaseIndent", - "optional": false + "value": "increaseIndent" } }, "arguments": [], @@ -2200,9 +2136,7 @@ "start": 1814, "end": 1819 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "typeAnnotation": { @@ -2263,9 +2197,7 @@ "start": 1832, "end": 1846 }, - "ctxt": 0, - "value": "decreaseIndent", - "optional": false + "value": "decreaseIndent" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json index 12063960c78a..3a89b48901a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource6.json @@ -68,9 +68,7 @@ "start": 288, "end": 294 }, - "ctxt": 0, - "value": "script", - "optional": false + "value": "script" }, "value": { "type": "NullLiteral", @@ -127,9 +125,7 @@ "start": 320, "end": 331 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -283,9 +279,7 @@ "start": 465, "end": 469 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "NullLiteral", @@ -341,9 +335,7 @@ "start": 499, "end": 502 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" }, "value": { "type": "NullLiteral", @@ -399,9 +391,7 @@ "start": 531, "end": 536 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" }, "value": null, "typeAnnotation": { @@ -451,9 +441,7 @@ "start": 566, "end": 573 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" }, "value": { "type": "NewExpression", @@ -499,9 +487,7 @@ "start": 607, "end": 618 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -691,9 +677,7 @@ "start": 767, "end": 778 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" }, "value": { "type": "NullLiteral", @@ -765,9 +749,7 @@ "start": 821, "end": 845 }, - "ctxt": 0, - "value": "objectLiteralScopeGetter", - "optional": false + "value": "objectLiteralScopeGetter" }, "value": { "type": "NullLiteral", @@ -839,9 +821,7 @@ "start": 888, "end": 901 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" }, "value": { "type": "NullLiteral", @@ -897,9 +877,7 @@ "start": 930, "end": 954 }, - "ctxt": 0, - "value": "skipNextFuncDeclForClass", - "optional": false + "value": "skipNextFuncDeclForClass" }, "value": { "type": "BooleanLiteral", @@ -932,9 +910,7 @@ "start": 979, "end": 996 }, - "ctxt": 0, - "value": "deepestModuleDecl", - "optional": false + "value": "deepestModuleDecl" }, "value": { "type": "NullLiteral", @@ -990,9 +966,7 @@ "start": 1039, "end": 1057 }, - "ctxt": 0, - "value": "enclosingClassDecl", - "optional": false + "value": "enclosingClassDecl" }, "value": { "type": "NullLiteral", @@ -1048,9 +1022,7 @@ "start": 1098, "end": 1116 }, - "ctxt": 0, - "value": "enclosingObjectLit", - "optional": false + "value": "enclosingObjectLit" }, "value": { "type": "NullLiteral", @@ -1106,9 +1078,7 @@ "start": 1157, "end": 1168 }, - "ctxt": 0, - "value": "publicsOnly", - "optional": false + "value": "publicsOnly" }, "value": { "type": "BooleanLiteral", @@ -1141,9 +1111,7 @@ "start": 1192, "end": 1202 }, - "ctxt": 0, - "value": "useFullAst", - "optional": false + "value": "useFullAst" }, "value": { "type": "BooleanLiteral", @@ -1176,9 +1144,7 @@ "start": 1228, "end": 1242 }, - "ctxt": 0, - "value": "scriptFragment", - "optional": false + "value": "scriptFragment" }, "value": null, "typeAnnotation": { @@ -1229,9 +1195,7 @@ "start": 1261, "end": 1272 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1469,9 +1433,7 @@ "start": 1511, "end": 1519 }, - "ctxt": 0, - "value": "getScope", - "optional": false + "value": "getScope" }, "function": { "params": [], @@ -1521,9 +1483,7 @@ "start": 1561, "end": 1572 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "arguments": [], @@ -1580,9 +1540,7 @@ "start": 1602, "end": 1623 }, - "ctxt": 0, - "value": "getObjectLiteralScope", - "optional": false + "value": "getObjectLiteralScope" }, "function": { "params": [], @@ -1632,9 +1590,7 @@ "start": 1665, "end": 1689 }, - "ctxt": 0, - "value": "objectLiteralScopeGetter", - "optional": false + "value": "objectLiteralScopeGetter" } }, "arguments": [], @@ -1691,9 +1647,7 @@ "start": 1719, "end": 1730 }, - "ctxt": 0, - "value": "getScopeAST", - "optional": false + "value": "getScopeAST" }, "function": { "params": [], @@ -1736,9 +1690,7 @@ "start": 1759, "end": 1772 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } } } @@ -1768,9 +1720,7 @@ "start": 1800, "end": 1816 }, - "ctxt": 0, - "value": "getScopePosition", - "optional": false + "value": "getScopePosition" }, "function": { "params": [], @@ -1819,9 +1769,7 @@ "start": 1845, "end": 1858 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "property": { @@ -1830,9 +1778,7 @@ "start": 1859, "end": 1866 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } } } @@ -1862,9 +1808,7 @@ "start": 1894, "end": 1919 }, - "ctxt": 0, - "value": "getScriptFragmentStartAST", - "optional": false + "value": "getScriptFragmentStartAST" }, "function": { "params": [], @@ -1907,9 +1851,7 @@ "start": 1953, "end": 1966 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } } } @@ -1963,9 +1905,7 @@ "start": 1994, "end": 2019 }, - "ctxt": 0, - "value": "getScriptFragmentPosition", - "optional": false + "value": "getScriptFragmentPosition" }, "function": { "params": [], @@ -2021,9 +1961,7 @@ "start": 2056, "end": 2081 }, - "ctxt": 0, - "value": "getScriptFragmentStartAST", - "optional": false + "value": "getScriptFragmentStartAST" } }, "arguments": [], @@ -2035,9 +1973,7 @@ "start": 2084, "end": 2091 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } } } @@ -2081,9 +2017,7 @@ "start": 2119, "end": 2136 }, - "ctxt": 0, - "value": "getScriptFragment", - "optional": false + "value": "getScriptFragment" }, "function": { "params": [], @@ -2133,9 +2067,7 @@ "start": 2170, "end": 2184 }, - "ctxt": 0, - "value": "scriptFragment", - "optional": false + "value": "scriptFragment" } }, "right": { @@ -2207,9 +2139,7 @@ "start": 2227, "end": 2252 }, - "ctxt": 0, - "value": "getScriptFragmentStartAST", - "optional": false + "value": "getScriptFragmentStartAST" } }, "arguments": [], @@ -2268,9 +2198,7 @@ "start": 2290, "end": 2297 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "definite": false @@ -2335,9 +2263,7 @@ "start": 2335, "end": 2353 }, - "ctxt": 0, - "value": "isMemberCompletion", - "optional": false + "value": "isMemberCompletion" } }, "consequent": { @@ -2359,9 +2285,7 @@ "start": 2361, "end": 2364 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "alternate": { @@ -2390,9 +2314,7 @@ "start": 2372, "end": 2375 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "right": { @@ -2443,9 +2365,7 @@ "start": 2403, "end": 2417 }, - "ctxt": 0, - "value": "scriptFragment", - "optional": false + "value": "scriptFragment" } }, "right": { @@ -2483,9 +2403,7 @@ "start": 2431, "end": 2441 }, - "ctxt": 0, - "value": "quickParse", - "optional": false + "value": "quickParse" } }, "arguments": [ @@ -2510,9 +2428,7 @@ "start": 2447, "end": 2453 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } } }, @@ -2550,9 +2466,7 @@ "start": 2465, "end": 2469 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } } }, @@ -2601,9 +2515,7 @@ "start": 2511, "end": 2517 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } } } @@ -2637,9 +2549,7 @@ "start": 2557, "end": 2571 }, - "ctxt": 0, - "value": "scriptFragment", - "optional": false + "value": "scriptFragment" } } } @@ -2926,9 +2836,7 @@ "start": 2724, "end": 2729 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "definite": false @@ -2990,9 +2898,7 @@ "start": 2755, "end": 2760 }, - "ctxt": 0, - "value": "flags", - "optional": false + "value": "flags" } } }, @@ -3020,9 +2926,7 @@ "start": 2771, "end": 2780 }, - "ctxt": 0, - "value": "matchFlag", - "optional": false + "value": "matchFlag" } } } @@ -3077,9 +2981,7 @@ "start": 2796, "end": 2799 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "right": { @@ -3128,9 +3030,7 @@ "start": 2818, "end": 2821 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "right": { @@ -3155,9 +3055,7 @@ "start": 2829, "end": 2836 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } } } @@ -3208,9 +3106,7 @@ "start": 2863, "end": 2866 }, - "ctxt": 0, - "value": "ast", - "optional": false + "value": "ast" } }, "right": { @@ -3273,9 +3169,7 @@ "start": 2895, "end": 2899 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -3322,9 +3216,7 @@ "start": 2922, "end": 2925 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "right": { @@ -3388,9 +3280,7 @@ "start": 2960, "end": 2964 }, - "ctxt": 0, - "value": "flow", - "optional": false + "value": "flow" } }, "property": { @@ -3399,9 +3289,7 @@ "start": 2965, "end": 2981 }, - "ctxt": 0, - "value": "inScopeTypeCheck", - "optional": false + "value": "inScopeTypeCheck" } }, "arguments": [ @@ -3442,9 +3330,7 @@ "start": 2996, "end": 3001 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -3491,9 +3377,7 @@ "start": 3039, "end": 3043 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -3518,9 +3402,7 @@ "start": 3050, "end": 3054 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -3566,9 +3448,7 @@ "start": 3077, "end": 3084 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -3577,9 +3457,7 @@ "start": 3085, "end": 3093 }, - "ctxt": 0, - "value": "stopWalk", - "optional": false + "value": "stopWalk" } }, "arguments": [], @@ -4270,9 +4148,7 @@ "start": 3692, "end": 3702 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } } }, @@ -4331,9 +4207,7 @@ "start": 3728, "end": 3736 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "right": { @@ -4383,9 +4257,7 @@ "start": 3763, "end": 3772 }, - "ctxt": 0, - "value": "classType", - "optional": false + "value": "classType" } }, "right": { @@ -4435,9 +4307,7 @@ "start": 3800, "end": 3810 }, - "ctxt": 0, - "value": "moduleDecl", - "optional": false + "value": "moduleDecl" } }, "right": { @@ -4487,9 +4357,7 @@ "start": 3841, "end": 3851 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "right": { @@ -4625,9 +4493,7 @@ "start": 3961, "end": 3971 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "right": { @@ -4658,9 +4524,7 @@ "start": 3982, "end": 3992 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -4669,9 +4533,7 @@ "start": 3993, "end": 4001 }, - "ctxt": 0, - "value": "previous", - "optional": false + "value": "previous" } } } @@ -4921,9 +4783,7 @@ "start": 4149, "end": 4154 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "definite": false @@ -4979,9 +4839,7 @@ "start": 4182, "end": 4189 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } }, "definite": false @@ -5037,9 +4895,7 @@ "start": 4217, "end": 4224 }, - "ctxt": 0, - "value": "limChar", - "optional": false + "value": "limChar" } }, "definite": false @@ -5088,9 +4944,7 @@ "start": 4380, "end": 4388 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -5115,9 +4969,7 @@ "start": 4401, "end": 4407 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } } }, @@ -5150,9 +5002,7 @@ "start": 4419, "end": 4422 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } }, "right": { @@ -5213,9 +5063,7 @@ "start": 4464, "end": 4467 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } } } @@ -5280,9 +5128,7 @@ "start": 4502, "end": 4505 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } } } @@ -5332,9 +5178,7 @@ "start": 4542, "end": 4545 }, - "ctxt": 0, - "value": "pos", - "optional": false + "value": "pos" } } } @@ -5376,9 +5220,7 @@ "start": 4574, "end": 4582 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "cases": [ @@ -5410,9 +5252,7 @@ "start": 4616, "end": 4622 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } }, "consequent": [ @@ -5517,9 +5357,7 @@ "start": 4698, "end": 4709 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "right": { @@ -5581,9 +5419,7 @@ "start": 4764, "end": 4767 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "right": { @@ -5629,9 +5465,7 @@ "start": 4793, "end": 4796 }, - "ctxt": 0, - "value": "bod", - "optional": false + "value": "bod" } }, "property": { @@ -5640,9 +5474,7 @@ "start": 4797, "end": 4811 }, - "ctxt": 0, - "value": "enclosingScope", - "optional": false + "value": "enclosingScope" } } } @@ -5691,9 +5523,7 @@ "start": 4864, "end": 4877 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "right": { @@ -5746,9 +5576,7 @@ "start": 4946, "end": 4962 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } }, "consequent": [ @@ -5787,9 +5615,7 @@ "start": 4992, "end": 5003 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "right": { @@ -5864,9 +5690,7 @@ "start": 5056, "end": 5060 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -5918,9 +5742,7 @@ "start": 5077, "end": 5081 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -5929,9 +5751,7 @@ "start": 5082, "end": 5094 }, - "ctxt": 0, - "value": "instanceType", - "optional": false + "value": "instanceType" } }, "property": { @@ -5940,9 +5760,7 @@ "start": 5095, "end": 5109 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -5996,9 +5814,7 @@ "start": 5133, "end": 5137 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -6007,9 +5823,7 @@ "start": 5138, "end": 5150 }, - "ctxt": 0, - "value": "instanceType", - "optional": false + "value": "instanceType" } }, "property": { @@ -6018,9 +5832,7 @@ "start": 5151, "end": 5165 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -6069,9 +5881,7 @@ "start": 5218, "end": 5231 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "right": { @@ -6121,9 +5931,7 @@ "start": 5267, "end": 5285 }, - "ctxt": 0, - "value": "enclosingClassDecl", - "optional": false + "value": "enclosingClassDecl" } }, "right": { @@ -6201,9 +6009,7 @@ "start": 5368, "end": 5377 }, - "ctxt": 0, - "value": "ObjectLit", - "optional": false + "value": "ObjectLit" } }, "consequent": [ @@ -6301,9 +6107,7 @@ "start": 5537, "end": 5547 }, - "ctxt": 0, - "value": "targetType", - "optional": false + "value": "targetType" } }, "consequent": { @@ -6349,9 +6153,7 @@ "start": 5583, "end": 5594 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "right": { @@ -6406,9 +6208,7 @@ "start": 5656, "end": 5666 }, - "ctxt": 0, - "value": "targetType", - "optional": false + "value": "targetType" } }, "property": { @@ -6417,9 +6217,7 @@ "start": 5667, "end": 5681 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -6467,9 +6265,7 @@ "start": 5742, "end": 5766 }, - "ctxt": 0, - "value": "objectLiteralScopeGetter", - "optional": false + "value": "objectLiteralScopeGetter" } }, "right": { @@ -6524,9 +6320,7 @@ "start": 5828, "end": 5838 }, - "ctxt": 0, - "value": "targetType", - "optional": false + "value": "targetType" } }, "property": { @@ -6535,9 +6329,7 @@ "start": 5839, "end": 5850 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } } } @@ -6585,9 +6377,7 @@ "start": 5910, "end": 5928 }, - "ctxt": 0, - "value": "enclosingObjectLit", - "optional": false + "value": "enclosingObjectLit" } }, "right": { @@ -6644,9 +6434,7 @@ "start": 6022, "end": 6039 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } }, "consequent": [ @@ -6685,9 +6473,7 @@ "start": 6069, "end": 6086 }, - "ctxt": 0, - "value": "deepestModuleDecl", - "optional": false + "value": "deepestModuleDecl" } }, "right": { @@ -6762,9 +6548,7 @@ "start": 6141, "end": 6152 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "right": { @@ -6826,9 +6610,7 @@ "start": 6204, "end": 6208 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -6874,9 +6656,7 @@ "start": 6231, "end": 6235 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -6885,9 +6665,7 @@ "start": 6236, "end": 6250 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -6936,9 +6714,7 @@ "start": 6303, "end": 6316 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "right": { @@ -6991,9 +6767,7 @@ "start": 6382, "end": 6402 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } }, "consequent": [ @@ -7032,9 +6806,7 @@ "start": 6432, "end": 6443 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "right": { @@ -7102,9 +6874,7 @@ "start": 6496, "end": 6500 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -7151,9 +6921,7 @@ "start": 6524, "end": 6528 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -7162,9 +6930,7 @@ "start": 6529, "end": 6543 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -7213,9 +6979,7 @@ "start": 6596, "end": 6609 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "right": { @@ -7268,9 +7032,7 @@ "start": 6675, "end": 6683 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } }, "consequent": [ @@ -7376,9 +7138,7 @@ "start": 6769, "end": 6793 }, - "ctxt": 0, - "value": "skipNextFuncDeclForClass", - "optional": false + "value": "skipNextFuncDeclForClass" } }, "consequent": { @@ -7424,9 +7184,7 @@ "start": 6829, "end": 6853 }, - "ctxt": 0, - "value": "skipNextFuncDeclForClass", - "optional": false + "value": "skipNextFuncDeclForClass" } }, "right": { @@ -7484,9 +7242,7 @@ "start": 6944, "end": 6955 }, - "ctxt": 0, - "value": "scopeGetter", - "optional": false + "value": "scopeGetter" } }, "right": { @@ -7542,9 +7298,7 @@ "start": 7117, "end": 7130 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } }, "right": { @@ -7589,9 +7343,7 @@ "start": 7151, "end": 7159 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -7619,9 +7371,7 @@ "start": 7170, "end": 7181 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -7672,9 +7422,7 @@ "start": 7226, "end": 7230 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -7705,9 +7453,7 @@ "start": 7238, "end": 7242 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -7716,9 +7462,7 @@ "start": 7243, "end": 7256 }, - "ctxt": 0, - "value": "enclosingType", - "optional": false + "value": "enclosingType" } } }, @@ -7770,9 +7514,7 @@ "start": 7307, "end": 7311 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -7781,9 +7523,7 @@ "start": 7312, "end": 7325 }, - "ctxt": 0, - "value": "enclosingType", - "optional": false + "value": "enclosingType" } }, "property": { @@ -7792,9 +7532,7 @@ "start": 7326, "end": 7342 }, - "ctxt": 0, - "value": "constructorScope", - "optional": false + "value": "constructorScope" } } } @@ -7834,9 +7572,7 @@ "start": 7450, "end": 7459 }, - "ctxt": 0, - "value": "scopeType", - "optional": false + "value": "scopeType" } }, "consequent": { @@ -7881,9 +7617,7 @@ "start": 7511, "end": 7520 }, - "ctxt": 0, - "value": "scopeType", - "optional": false + "value": "scopeType" } }, "property": { @@ -7892,9 +7626,7 @@ "start": 7521, "end": 7535 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -7930,9 +7662,7 @@ "start": 7609, "end": 7613 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "consequent": { @@ -7977,9 +7707,7 @@ "start": 7665, "end": 7669 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -7988,9 +7716,7 @@ "start": 7670, "end": 7684 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -8056,9 +7782,7 @@ "start": 7816, "end": 7829 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "right": { @@ -8131,9 +7855,7 @@ "start": 7937, "end": 7944 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -8142,9 +7864,7 @@ "start": 7945, "end": 7955 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -8208,9 +7928,7 @@ "start": 8008, "end": 8015 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -8219,9 +7937,7 @@ "start": 8016, "end": 8026 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -8657,9 +8373,7 @@ "start": 8566, "end": 8585 }, - "ctxt": 0, - "value": "getAstWalkerFactory", - "optional": false + "value": "getAstWalkerFactory" } }, "arguments": [], @@ -8671,9 +8385,7 @@ "start": 8588, "end": 8592 }, - "ctxt": 0, - "value": "walk", - "optional": false + "value": "walk" } }, "arguments": [ @@ -8775,9 +8487,7 @@ "start": 8667, "end": 8680 }, - "ctxt": 0, - "value": "scopeStartAST", - "optional": false + "value": "scopeStartAST" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json index b972a088e461..8296637872d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json @@ -69,9 +69,7 @@ "start": 279, "end": 290 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -569,9 +567,7 @@ "start": 666, "end": 676 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } } }, @@ -630,9 +626,7 @@ "start": 700, "end": 708 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "right": { @@ -682,9 +676,7 @@ "start": 731, "end": 740 }, - "ctxt": 0, - "value": "classType", - "optional": false + "value": "classType" } }, "right": { @@ -734,9 +726,7 @@ "start": 768, "end": 771 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "right": { @@ -786,9 +776,7 @@ "start": 795, "end": 805 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "right": { @@ -924,9 +912,7 @@ "start": 904, "end": 914 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "right": { @@ -957,9 +943,7 @@ "start": 925, "end": 935 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -968,9 +952,7 @@ "start": 936, "end": 944 }, - "ctxt": 0, - "value": "previous", - "optional": false + "value": "previous" } } } @@ -1197,9 +1179,7 @@ "start": 1045, "end": 1063 }, - "ctxt": 0, - "value": "isInstanceProperty", - "optional": false + "value": "isInstanceProperty" } }, "arguments": [], @@ -1385,9 +1365,7 @@ "start": 1226, "end": 1244 }, - "ctxt": 0, - "value": "isInstanceProperty", - "optional": false + "value": "isInstanceProperty" } }, "arguments": [], @@ -1441,9 +1419,7 @@ "start": 1301, "end": 1312 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1692,9 +1668,7 @@ "start": 1446, "end": 1452 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" }, "value": { "type": "NullLiteral", @@ -1750,9 +1724,7 @@ "start": 1485, "end": 1490 }, - "ctxt": 0, - "value": "reset", - "optional": false + "value": "reset" }, "function": { "params": [], @@ -1802,9 +1774,7 @@ "start": 1512, "end": 1518 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } }, "right": { @@ -1842,9 +1812,7 @@ "start": 1553, "end": 1559 }, - "ctxt": 0, - "value": "update", - "optional": false + "value": "update" }, "function": { "params": [ @@ -1938,9 +1906,7 @@ "start": 1599, "end": 1605 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } }, "right": { @@ -1969,9 +1935,7 @@ "start": 1613, "end": 1619 }, - "ctxt": 0, - "value": "select", - "optional": false + "value": "select" } }, "arguments": [ @@ -1996,9 +1960,7 @@ "start": 1625, "end": 1631 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } } }, @@ -2045,9 +2007,7 @@ "start": 1658, "end": 1664 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } }, "consequent": { @@ -2090,9 +2050,7 @@ "start": 1696, "end": 1700 }, - "ctxt": 0, - "value": "stop", - "optional": false + "value": "stop" } }, "arguments": [ @@ -2117,9 +2075,7 @@ "start": 1706, "end": 1712 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } } } @@ -2622,9 +2578,7 @@ "start": 2159, "end": 2163 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -2649,9 +2603,7 @@ "start": 2178, "end": 2181 }, - "ctxt": 0, - "value": "mod", - "optional": false + "value": "mod" } } }, @@ -2704,9 +2656,7 @@ "start": 2208, "end": 2212 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -2715,9 +2665,7 @@ "start": 2213, "end": 2216 }, - "ctxt": 0, - "value": "sym", - "optional": false + "value": "sym" } }, "right": { @@ -2748,9 +2696,7 @@ "start": 2230, "end": 2233 }, - "ctxt": 0, - "value": "mod", - "optional": false + "value": "mod" } }, "property": { @@ -2759,9 +2705,7 @@ "start": 2234, "end": 2240 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -2819,9 +2763,7 @@ "start": 2282, "end": 2285 }, - "ctxt": 0, - "value": "mod", - "optional": false + "value": "mod" } }, "definite": false @@ -2938,9 +2880,7 @@ "start": 2441, "end": 2448 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } } }, @@ -2968,9 +2908,7 @@ "start": 2454, "end": 2468 }, - "ctxt": 0, - "value": "ambientMembers", - "optional": false + "value": "ambientMembers" } } }, @@ -2998,9 +2936,7 @@ "start": 2474, "end": 2487 }, - "ctxt": 0, - "value": "enclosedTypes", - "optional": false + "value": "enclosedTypes" } } }, @@ -3028,9 +2964,7 @@ "start": 2493, "end": 2513 }, - "ctxt": 0, - "value": "ambientEnclosedTypes", - "optional": false + "value": "ambientEnclosedTypes" } } }, @@ -3058,9 +2992,7 @@ "start": 2519, "end": 2525 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -3104,9 +3036,7 @@ "start": 2540, "end": 2551 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "right": { @@ -3162,9 +3092,7 @@ "start": 2583, "end": 2595 }, - "ctxt": 0, - "value": "modDeclChain", - "optional": false + "value": "modDeclChain" } }, "property": { @@ -3173,9 +3101,7 @@ "start": 2596, "end": 2600 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -3243,9 +3169,7 @@ "start": 2630, "end": 2638 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -3254,9 +3178,7 @@ "start": 2639, "end": 2646 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -3265,9 +3187,7 @@ "start": 2647, "end": 2661 }, - "ctxt": 0, - "value": "currentModDecl", - "optional": false + "value": "currentModDecl" } }, "right": { @@ -3348,9 +3268,7 @@ "start": 2724, "end": 2730 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -3394,9 +3312,7 @@ "start": 2750, "end": 2764 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -3452,9 +3368,7 @@ "start": 2796, "end": 2810 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -3488,9 +3402,7 @@ "start": 2819, "end": 2829 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -3499,9 +3411,7 @@ "start": 2830, "end": 2835 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -3628,9 +3538,7 @@ "start": 2912, "end": 2926 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -3673,9 +3581,7 @@ "start": 2955, "end": 2961 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "consequent": { @@ -3727,9 +3633,7 @@ "start": 2985, "end": 2993 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -3738,9 +3642,7 @@ "start": 2994, "end": 3012 }, - "ctxt": 0, - "value": "addLocalsFromScope", - "optional": false + "value": "addLocalsFromScope" } }, "arguments": [ @@ -3768,9 +3670,7 @@ "start": 3017, "end": 3031 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } }, @@ -3798,9 +3698,7 @@ "start": 3037, "end": 3043 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } }, @@ -3828,9 +3726,7 @@ "start": 3056, "end": 3060 }, - "ctxt": 0, - "value": "vars", - "optional": false + "value": "vars" } } }, @@ -3864,9 +3760,7 @@ "start": 3066, "end": 3073 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "property": { @@ -3875,9 +3769,7 @@ "start": 3074, "end": 3088 }, - "ctxt": 0, - "value": "privateMembers", - "optional": false + "value": "privateMembers" } } }, @@ -4254,9 +4146,7 @@ "start": 3371, "end": 3375 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -4281,9 +4171,7 @@ "start": 3389, "end": 3393 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -4336,9 +4224,7 @@ "start": 3419, "end": 3423 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -4347,9 +4233,7 @@ "start": 3424, "end": 3427 }, - "ctxt": 0, - "value": "sym", - "optional": false + "value": "sym" } }, "right": { @@ -4380,9 +4264,7 @@ "start": 3440, "end": 3444 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -4391,9 +4273,7 @@ "start": 3445, "end": 3451 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -4451,9 +4331,7 @@ "start": 3492, "end": 3496 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "definite": false @@ -4533,9 +4411,7 @@ "start": 3561, "end": 3567 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "definite": false @@ -4613,9 +4489,7 @@ "start": 3621, "end": 3629 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -4624,9 +4498,7 @@ "start": 3630, "end": 3637 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -4635,9 +4507,7 @@ "start": 3638, "end": 3645 }, - "ctxt": 0, - "value": "scopeOf", - "optional": false + "value": "scopeOf" } }, "arguments": [ @@ -4744,9 +4614,7 @@ "start": 3717, "end": 3723 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -4790,9 +4658,7 @@ "start": 3747, "end": 3761 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -4848,9 +4714,7 @@ "start": 3797, "end": 3811 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -4884,9 +4748,7 @@ "start": 3820, "end": 3830 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -4895,9 +4757,7 @@ "start": 3831, "end": 3836 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -4940,9 +4800,7 @@ "start": 3862, "end": 3876 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -4992,9 +4850,7 @@ "start": 3911, "end": 3922 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "right": { @@ -5058,9 +4914,7 @@ "start": 3980, "end": 3992 }, - "ctxt": 0, - "value": "instanceType", - "optional": false + "value": "instanceType" } }, "definite": false @@ -5138,9 +4992,7 @@ "start": 4046, "end": 4054 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -5149,9 +5001,7 @@ "start": 4055, "end": 4062 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -5160,9 +5010,7 @@ "start": 4063, "end": 4070 }, - "ctxt": 0, - "value": "scopeOf", - "optional": false + "value": "scopeOf" } }, "arguments": [ @@ -5238,9 +5086,7 @@ "start": 4111, "end": 4122 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "right": { @@ -5321,9 +5167,7 @@ "start": 4200, "end": 4206 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -5367,9 +5211,7 @@ "start": 4230, "end": 4244 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -5403,9 +5245,7 @@ "start": 4253, "end": 4263 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -5414,9 +5254,7 @@ "start": 4264, "end": 4269 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -5549,9 +5387,7 @@ "start": 4377, "end": 4391 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -5611,9 +5447,7 @@ "start": 4445, "end": 4449 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -5644,9 +5478,7 @@ "start": 4460, "end": 4468 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -5655,9 +5487,7 @@ "start": 4469, "end": 4476 }, - "ctxt": 0, - "value": "anyType", - "optional": false + "value": "anyType" } } } @@ -6019,9 +5849,7 @@ "start": 4764, "end": 4768 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -6046,9 +5874,7 @@ "start": 4786, "end": 4790 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -6101,9 +5927,7 @@ "start": 4820, "end": 4824 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -6112,9 +5936,7 @@ "start": 4825, "end": 4828 }, - "ctxt": 0, - "value": "sym", - "optional": false + "value": "sym" } }, "right": { @@ -6145,9 +5967,7 @@ "start": 4845, "end": 4849 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -6156,9 +5976,7 @@ "start": 4850, "end": 4856 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -6216,9 +6034,7 @@ "start": 4901, "end": 4905 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "definite": false @@ -6296,9 +6112,7 @@ "start": 4955, "end": 4963 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -6307,9 +6121,7 @@ "start": 4964, "end": 4971 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -6318,9 +6130,7 @@ "start": 4972, "end": 4979 }, - "ctxt": 0, - "value": "scopeOf", - "optional": false + "value": "scopeOf" } }, "arguments": [ @@ -6396,9 +6206,7 @@ "start": 5018, "end": 5029 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "right": { @@ -6479,9 +6287,7 @@ "start": 5103, "end": 5109 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -6525,9 +6331,7 @@ "start": 5129, "end": 5143 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -6583,9 +6387,7 @@ "start": 5175, "end": 5189 }, - "ctxt": 0, - "value": "addParentScope", - "optional": false + "value": "addParentScope" } }, "arguments": [ @@ -6619,9 +6421,7 @@ "start": 5198, "end": 5208 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -6630,9 +6430,7 @@ "start": 5209, "end": 5214 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -6759,9 +6557,7 @@ "start": 5301, "end": 5315 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -7020,9 +6816,7 @@ "start": 5491, "end": 5495 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "definite": false @@ -7393,9 +7187,7 @@ "start": 5814, "end": 5821 }, - "ctxt": 0, - "value": "minChar", - "optional": false + "value": "minChar" } } }, @@ -7441,9 +7233,7 @@ "start": 5831, "end": 5839 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -7452,9 +7242,7 @@ "start": 5840, "end": 5847 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -7463,9 +7251,7 @@ "start": 5848, "end": 5860 }, - "ctxt": 0, - "value": "locationInfo", - "optional": false + "value": "locationInfo" } }, "property": { @@ -7474,9 +7260,7 @@ "start": 5861, "end": 5870 }, - "ctxt": 0, - "value": "unitIndex", - "optional": false + "value": "unitIndex" } } }, @@ -7535,9 +7319,7 @@ "start": 5900, "end": 5907 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -7587,9 +7369,7 @@ "start": 5936, "end": 5950 }, - "ctxt": 0, - "value": "ambientMembers", - "optional": false + "value": "ambientMembers" } }, "right": { @@ -7639,9 +7419,7 @@ "start": 5986, "end": 5992 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "right": { @@ -7691,9 +7469,7 @@ "start": 6024, "end": 6044 }, - "ctxt": 0, - "value": "setHasImplementation", - "optional": false + "value": "setHasImplementation" } }, "arguments": [], @@ -7735,9 +7511,7 @@ "start": 6065, "end": 6069 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -7808,9 +7582,7 @@ "start": 6122, "end": 6140 }, - "ctxt": 0, - "value": "SymbolScopeBuilder", - "optional": false + "value": "SymbolScopeBuilder" } }, "arguments": [ @@ -7838,9 +7610,7 @@ "start": 6150, "end": 6157 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } } }, @@ -7868,9 +7638,7 @@ "start": 6168, "end": 6182 }, - "ctxt": 0, - "value": "ambientMembers", - "optional": false + "value": "ambientMembers" } } }, @@ -7924,9 +7692,7 @@ "start": 6204, "end": 6214 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -7935,9 +7701,7 @@ "start": 6215, "end": 6220 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } }, @@ -7965,9 +7729,7 @@ "start": 6231, "end": 6237 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -8097,9 +7859,7 @@ "start": 6321, "end": 6335 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -8461,9 +8221,7 @@ "start": 6582, "end": 6586 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "consequent": { @@ -8526,9 +8284,7 @@ "start": 6623, "end": 6627 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -8537,9 +8293,7 @@ "start": 6628, "end": 6634 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -8617,9 +8371,7 @@ "start": 6687, "end": 6695 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -8647,9 +8399,7 @@ "start": 6706, "end": 6712 }, - "ctxt": 0, - "value": "Static", - "optional": false + "value": "Static" } } } @@ -8739,9 +8489,7 @@ "start": 6763, "end": 6773 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -8750,9 +8498,7 @@ "start": 6774, "end": 6777 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "right": { @@ -8851,9 +8597,7 @@ "start": 6940, "end": 6950 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -8862,9 +8606,7 @@ "start": 6951, "end": 6954 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "property": { @@ -8873,9 +8615,7 @@ "start": 6955, "end": 6959 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -8884,9 +8624,7 @@ "start": 6960, "end": 6971 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "alternate": { @@ -8917,9 +8655,7 @@ "start": 6982, "end": 6992 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -8928,9 +8664,7 @@ "start": 6993, "end": 6998 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } }, @@ -8979,9 +8713,7 @@ "start": 7347, "end": 7357 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -8990,9 +8722,7 @@ "start": 7358, "end": 7366 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "right": { @@ -9037,9 +8767,7 @@ "start": 7393, "end": 7406 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -9085,9 +8813,7 @@ "start": 7427, "end": 7435 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -9115,9 +8841,7 @@ "start": 7446, "end": 7457 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -9190,9 +8914,7 @@ "start": 7498, "end": 7508 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -9201,9 +8923,7 @@ "start": 7509, "end": 7517 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "definite": false @@ -9265,9 +8985,7 @@ "start": 7547, "end": 7556 }, - "ctxt": 0, - "value": "typeFlags", - "optional": false + "value": "typeFlags" } }, "right": { @@ -9292,9 +9010,7 @@ "start": 7569, "end": 7576 }, - "ctxt": 0, - "value": "IsClass", - "optional": false + "value": "IsClass" } } } @@ -9349,9 +9065,7 @@ "start": 7599, "end": 7607 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -9379,9 +9093,7 @@ "start": 7618, "end": 7629 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -9447,9 +9159,7 @@ "start": 7664, "end": 7672 }, - "ctxt": 0, - "value": "isMethod", - "optional": false + "value": "isMethod" } }, "arguments": [], @@ -9521,9 +9231,7 @@ "start": 7733, "end": 7749 }, - "ctxt": 0, - "value": "constructorScope", - "optional": false + "value": "constructorScope" } } } @@ -9584,9 +9292,7 @@ "start": 7900, "end": 7914 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -9671,9 +9377,7 @@ "start": 7995, "end": 8005 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -9682,9 +9386,7 @@ "start": 8006, "end": 8014 }, - "ctxt": 0, - "value": "previous", - "optional": false + "value": "previous" } }, "property": { @@ -9693,9 +9395,7 @@ "start": 8015, "end": 8020 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } }, "property": { @@ -9704,9 +9404,7 @@ "start": 8021, "end": 8030 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } }, "right": { @@ -9755,9 +9453,7 @@ "start": 8062, "end": 8072 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -9766,9 +9462,7 @@ "start": 8073, "end": 8081 }, - "ctxt": 0, - "value": "previous", - "optional": false + "value": "previous" } }, "property": { @@ -9777,9 +9471,7 @@ "start": 8082, "end": 8087 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } }, "property": { @@ -9788,9 +9480,7 @@ "start": 8088, "end": 8097 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } }, "property": { @@ -9799,9 +9489,7 @@ "start": 8098, "end": 8105 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } } }, @@ -9864,9 +9552,7 @@ "start": 8137, "end": 8147 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -9875,9 +9561,7 @@ "start": 8148, "end": 8156 }, - "ctxt": 0, - "value": "previous", - "optional": false + "value": "previous" } }, "property": { @@ -9886,9 +9570,7 @@ "start": 8157, "end": 8162 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } }, "property": { @@ -9897,9 +9579,7 @@ "start": 8163, "end": 8172 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } }, "property": { @@ -9908,9 +9588,7 @@ "start": 8173, "end": 8180 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } }, "property": { @@ -9919,9 +9597,7 @@ "start": 8181, "end": 8189 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -9946,9 +9622,7 @@ "start": 8202, "end": 8210 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -10017,9 +9691,7 @@ "start": 8253, "end": 8263 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10028,9 +9700,7 @@ "start": 8264, "end": 8272 }, - "ctxt": 0, - "value": "previous", - "optional": false + "value": "previous" } }, "property": { @@ -10039,9 +9709,7 @@ "start": 8273, "end": 8278 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } }, "property": { @@ -10050,9 +9718,7 @@ "start": 8279, "end": 8288 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } }, "property": { @@ -10061,9 +9727,7 @@ "start": 8289, "end": 8296 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } }, "typeAnnotation": { @@ -10092,9 +9756,7 @@ "start": 8298, "end": 8311 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -10152,9 +9814,7 @@ "start": 8452, "end": 8468 }, - "ctxt": 0, - "value": "constructorScope", - "optional": false + "value": "constructorScope" } } } @@ -10212,9 +9872,7 @@ "start": 8533, "end": 8543 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10223,9 +9881,7 @@ "start": 8544, "end": 8553 }, - "ctxt": 0, - "value": "classType", - "optional": false + "value": "classType" } } }, @@ -10295,9 +9951,7 @@ "start": 8599, "end": 8609 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10306,9 +9960,7 @@ "start": 8610, "end": 8619 }, - "ctxt": 0, - "value": "classType", - "optional": false + "value": "classType" } }, "property": { @@ -10317,9 +9969,7 @@ "start": 8620, "end": 8634 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -10380,9 +10030,7 @@ "start": 8773, "end": 8787 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } } } @@ -10440,9 +10088,7 @@ "start": 8854, "end": 8860 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -10484,9 +10130,7 @@ "start": 8898, "end": 8911 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } }, "right": { @@ -10517,9 +10161,7 @@ "start": 8923, "end": 8933 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10528,9 +10170,7 @@ "start": 8934, "end": 8942 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } } }, @@ -10600,9 +10240,7 @@ "start": 9078, "end": 9088 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10611,9 +10249,7 @@ "start": 9089, "end": 9097 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "property": { @@ -10622,9 +10258,7 @@ "start": 9098, "end": 9104 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -10676,9 +10310,7 @@ "start": 9138, "end": 9142 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -10743,9 +10375,7 @@ "start": 9171, "end": 9175 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -10754,9 +10384,7 @@ "start": 9176, "end": 9182 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "property": { @@ -10765,9 +10393,7 @@ "start": 9183, "end": 9188 }, - "ctxt": 0, - "value": "flags", - "optional": false + "value": "flags" } } }, @@ -10795,9 +10421,7 @@ "start": 9202, "end": 9230 }, - "ctxt": 0, - "value": "TypeSetDuringScopeAssignment", - "optional": false + "value": "TypeSetDuringScopeAssignment" } } } @@ -10854,9 +10478,7 @@ "start": 9259, "end": 9269 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10865,9 +10487,7 @@ "start": 9270, "end": 9273 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "right": { @@ -10904,9 +10524,7 @@ "start": 9285, "end": 9295 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -10915,9 +10533,7 @@ "start": 9296, "end": 9299 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "property": { @@ -10926,9 +10542,7 @@ "start": 9300, "end": 9304 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -11004,9 +10618,7 @@ "start": 9344, "end": 9354 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -11015,9 +10627,7 @@ "start": 9355, "end": 9358 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "property": { @@ -11026,9 +10636,7 @@ "start": 9359, "end": 9363 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -11037,9 +10645,7 @@ "start": 9364, "end": 9370 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -11165,9 +10771,7 @@ "start": 9466, "end": 9476 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -11176,9 +10780,7 @@ "start": 9477, "end": 9480 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "definite": false @@ -11240,9 +10842,7 @@ "start": 9518, "end": 9522 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "consequent": { @@ -11273,9 +10873,7 @@ "start": 9534, "end": 9538 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -11284,9 +10882,7 @@ "start": 9539, "end": 9549 }, - "ctxt": 0, - "value": "actualText", - "optional": false + "value": "actualText" } }, "alternate": { @@ -11435,9 +11031,7 @@ "start": 9956, "end": 9960 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -11446,9 +11040,7 @@ "start": 9961, "end": 9968 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -11494,9 +11086,7 @@ "start": 9990, "end": 9997 }, - "ctxt": 0, - "value": "getType", - "optional": false + "value": "getType" } }, "arguments": [], @@ -11508,9 +11098,7 @@ "start": 10000, "end": 10011 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } } }, @@ -11563,9 +11151,7 @@ "start": 10044, "end": 10048 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -11574,9 +11160,7 @@ "start": 10049, "end": 10056 }, - "ctxt": 0, - "value": "members", - "optional": false + "value": "members" } }, "right": { @@ -11657,9 +11241,7 @@ "start": 10104, "end": 10108 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -11668,9 +11250,7 @@ "start": 10109, "end": 10120 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "typeAnnotation": { @@ -11699,9 +11279,7 @@ "start": 10122, "end": 10134 }, - "ctxt": 0, - "value": "valueMembers", - "optional": false + "value": "valueMembers" } } } @@ -11774,9 +11352,7 @@ "start": 10190, "end": 10200 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -11785,9 +11361,7 @@ "start": 10201, "end": 10204 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } }, "property": { @@ -11796,9 +11370,7 @@ "start": 10205, "end": 10209 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -11807,9 +11379,7 @@ "start": 10210, "end": 10221 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } } } @@ -11855,9 +11425,7 @@ "start": 10248, "end": 10264 }, - "ctxt": 0, - "value": "innerStaticFuncs", - "optional": false + "value": "innerStaticFuncs" } }, "property": { @@ -11894,9 +11462,7 @@ "start": 10274, "end": 10290 }, - "ctxt": 0, - "value": "innerStaticFuncs", - "optional": false + "value": "innerStaticFuncs" } }, "property": { @@ -11905,9 +11471,7 @@ "start": 10291, "end": 10297 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -12004,9 +11568,7 @@ "start": 10375, "end": 10388 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -12043,9 +11605,7 @@ "start": 10455, "end": 10462 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } } }, @@ -12084,9 +11644,7 @@ "start": 10496, "end": 10503 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } }, "property": { @@ -12095,9 +11653,7 @@ "start": 10504, "end": 10512 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -12122,9 +11678,7 @@ "start": 10525, "end": 10533 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -12169,9 +11723,7 @@ "start": 10578, "end": 10585 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } }, "typeAnnotation": { @@ -12200,9 +11752,7 @@ "start": 10587, "end": 10600 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -12242,9 +11792,7 @@ "start": 10634, "end": 10642 }, - "ctxt": 0, - "value": "isMethod", - "optional": false + "value": "isMethod" } }, "arguments": [], @@ -12318,9 +11866,7 @@ "start": 10688, "end": 10698 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -12329,9 +11875,7 @@ "start": 10699, "end": 10707 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "property": { @@ -12340,9 +11884,7 @@ "start": 10708, "end": 10724 }, - "ctxt": 0, - "value": "constructorScope", - "optional": false + "value": "constructorScope" } } } @@ -12409,9 +11951,7 @@ "start": 10816, "end": 10826 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -12420,9 +11960,7 @@ "start": 10827, "end": 10832 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -12527,9 +12065,7 @@ "start": 11208, "end": 11218 }, - "ctxt": 0, - "value": "isAccessor", - "optional": false + "value": "isAccessor" } }, "arguments": [], @@ -12622,9 +12158,7 @@ "start": 11294, "end": 11303 }, - "ctxt": 0, - "value": "findLocal", - "optional": false + "value": "findLocal" } }, "arguments": [ @@ -12731,9 +12265,7 @@ "start": 11496, "end": 11505 }, - "ctxt": 0, - "value": "findLocal", - "optional": false + "value": "findLocal" } }, "arguments": [ @@ -12831,9 +12363,7 @@ "start": 11584, "end": 11592 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -12842,9 +12372,7 @@ "start": 11593, "end": 11600 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -12853,9 +12381,7 @@ "start": 11601, "end": 11624 }, - "ctxt": 0, - "value": "createFunctionSignature", - "optional": false + "value": "createFunctionSignature" } }, "arguments": [ @@ -13006,9 +12532,7 @@ "start": 11848, "end": 11862 }, - "ctxt": 0, - "value": "accessorSymbol", - "optional": false + "value": "accessorSymbol" } } }, @@ -13047,9 +12571,7 @@ "start": 11893, "end": 11901 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } }, "right": { @@ -13074,9 +12596,7 @@ "start": 11913, "end": 11924 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -13172,9 +12692,7 @@ "start": 11993, "end": 12000 }, - "ctxt": 0, - "value": "declAST", - "optional": false + "value": "declAST" } }, "property": { @@ -13183,9 +12701,7 @@ "start": 12001, "end": 12009 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -13210,9 +12726,7 @@ "start": 12022, "end": 12030 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } } @@ -13247,9 +12761,7 @@ "start": 12044, "end": 12054 }, - "ctxt": 0, - "value": "isAccessor", - "optional": false + "value": "isAccessor" } }, "arguments": [], @@ -13310,9 +12822,7 @@ "start": 12098, "end": 12108 }, - "ctxt": 0, - "value": "isAccessor", - "optional": false + "value": "isAccessor" } }, "arguments": [], @@ -13364,9 +12874,7 @@ "start": 12153, "end": 12167 }, - "ctxt": 0, - "value": "accessorSymbol", - "optional": false + "value": "accessorSymbol" } }, "right": { @@ -13410,9 +12918,7 @@ "start": 12178, "end": 12186 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -13421,9 +12927,7 @@ "start": 12187, "end": 12194 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -13432,9 +12936,7 @@ "start": 12195, "end": 12215 }, - "ctxt": 0, - "value": "createAccessorSymbol", - "optional": false + "value": "createAccessorSymbol" } }, "arguments": [ @@ -13495,9 +12997,7 @@ "start": 12243, "end": 12250 }, - "ctxt": 0, - "value": "getType", - "optional": false + "value": "getType" } }, "arguments": [], @@ -13548,9 +13048,7 @@ "start": 12264, "end": 12272 }, - "ctxt": 0, - "value": "isMethod", - "optional": false + "value": "isMethod" } }, "arguments": [], @@ -13662,9 +13160,7 @@ "start": 12354, "end": 12358 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -13673,9 +13169,7 @@ "start": 12359, "end": 12365 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "property": { @@ -13684,9 +13178,7 @@ "start": 12366, "end": 12371 }, - "ctxt": 0, - "value": "flags", - "optional": false + "value": "flags" } }, "right": { @@ -13711,9 +13203,7 @@ "start": 12387, "end": 12415 }, - "ctxt": 0, - "value": "TypeSetDuringScopeAssignment", - "optional": false + "value": "TypeSetDuringScopeAssignment" } } } @@ -13757,9 +13247,7 @@ "start": 12509, "end": 12513 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -13784,9 +13272,7 @@ "start": 12526, "end": 12530 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -13839,9 +13325,7 @@ "start": 12555, "end": 12559 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -13850,9 +13334,7 @@ "start": 12560, "end": 12563 }, - "ctxt": 0, - "value": "sym", - "optional": false + "value": "sym" } }, "right": { @@ -13883,9 +13365,7 @@ "start": 12575, "end": 12579 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -13894,9 +13374,7 @@ "start": 12580, "end": 12586 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -13940,9 +13418,7 @@ "start": 12793, "end": 12802 }, - "ctxt": 0, - "value": "scopeType", - "optional": false + "value": "scopeType" } }, "right": { @@ -13967,9 +13443,7 @@ "start": 12814, "end": 12818 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -14002,9 +13476,7 @@ "start": 12891, "end": 12901 }, - "ctxt": 0, - "value": "isOverload", - "optional": false + "value": "isOverload" } }, "consequent": { @@ -14714,9 +14186,7 @@ "start": 13733, "end": 13742 }, - "ctxt": 0, - "value": "unitIndex", - "optional": false + "value": "unitIndex" } }, "right": { @@ -14759,9 +14229,7 @@ "start": 13753, "end": 13761 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -14770,9 +14238,7 @@ "start": 13762, "end": 13769 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -14781,9 +14247,7 @@ "start": 13770, "end": 13782 }, - "ctxt": 0, - "value": "locationInfo", - "optional": false + "value": "locationInfo" } }, "property": { @@ -14792,9 +14256,7 @@ "start": 13783, "end": 13792 }, - "ctxt": 0, - "value": "unitIndex", - "optional": false + "value": "unitIndex" } } } @@ -15079,9 +14541,7 @@ "start": 14058, "end": 14071 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } }, "right": { @@ -15112,9 +14572,7 @@ "start": 14083, "end": 14093 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -15123,9 +14581,7 @@ "start": 14094, "end": 14102 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } } }, @@ -15184,9 +14640,7 @@ "start": 14126, "end": 14136 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -15195,9 +14649,7 @@ "start": 14137, "end": 14145 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "property": { @@ -15206,9 +14658,7 @@ "start": 14146, "end": 14162 }, - "ctxt": 0, - "value": "constructorScope", - "optional": false + "value": "constructorScope" } }, "right": { @@ -15262,9 +14712,7 @@ "start": 14820, "end": 14827 }, - "ctxt": 0, - "value": "symbols", - "optional": false + "value": "symbols" } }, "right": { @@ -15321,9 +14769,7 @@ "start": 14864, "end": 14875 }, - "ctxt": 0, - "value": "isSpecialFn", - "optional": false + "value": "isSpecialFn" } }, "arguments": [], @@ -15387,9 +14833,7 @@ "start": 14914, "end": 14918 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "definite": false @@ -15445,9 +14889,7 @@ "start": 14957, "end": 14966 }, - "ctxt": 0, - "value": "signature", - "optional": false + "value": "signature" } }, "definite": false @@ -15489,9 +14931,7 @@ "start": 14995, "end": 15008 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -15538,9 +14978,7 @@ "start": 15034, "end": 15048 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -15590,9 +15028,7 @@ "start": 15082, "end": 15091 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } }, "right": { @@ -15617,9 +15053,7 @@ "start": 15100, "end": 15106 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -15659,9 +15093,7 @@ "start": 15131, "end": 15142 }, - "ctxt": 0, - "value": "memberScope", - "optional": false + "value": "memberScope" } }, "right": { @@ -15711,9 +15143,7 @@ "start": 15178, "end": 15187 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } }, "right": { @@ -15738,9 +15168,7 @@ "start": 15196, "end": 15202 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } } } @@ -15784,9 +15212,7 @@ "start": 15239, "end": 15251 }, - "ctxt": 0, - "value": "enclosingFnc", - "optional": false + "value": "enclosingFnc" } }, "right": { @@ -15817,9 +15243,7 @@ "start": 15262, "end": 15272 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -15828,9 +15252,7 @@ "start": 15273, "end": 15276 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } } } @@ -15870,9 +15292,7 @@ "start": 15296, "end": 15309 }, - "ctxt": 0, - "value": "enclosingType", - "optional": false + "value": "enclosingType" } }, "right": { @@ -15919,9 +15339,7 @@ "start": 15331, "end": 15341 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -15930,9 +15348,7 @@ "start": 15342, "end": 15351 }, - "ctxt": 0, - "value": "classType", - "optional": false + "value": "classType" } }, "alternate": { @@ -15963,9 +15379,7 @@ "start": 15362, "end": 15372 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -15974,9 +15388,7 @@ "start": 15373, "end": 15381 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } } } @@ -16043,9 +15455,7 @@ "start": 15469, "end": 15473 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "property": { @@ -16054,9 +15464,7 @@ "start": 15474, "end": 15480 }, - "ctxt": 0, - "value": "symbol", - "optional": false + "value": "symbol" } }, "typeAnnotation": { @@ -16143,9 +15551,7 @@ "start": 15509, "end": 15517 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } }, "right": { @@ -16170,9 +15576,7 @@ "start": 15529, "end": 15538 }, - "ctxt": 0, - "value": "Signature", - "optional": false + "value": "Signature" } } } @@ -16199,9 +15603,7 @@ "start": 15552, "end": 15556 }, - "ctxt": 0, - "value": "None", - "optional": false + "value": "None" } } } @@ -16228,9 +15630,7 @@ "start": 15570, "end": 15574 }, - "ctxt": 0, - "value": "vars", - "optional": false + "value": "vars" } } }, @@ -16283,9 +15683,7 @@ "start": 15602, "end": 15610 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -16294,9 +15692,7 @@ "start": 15611, "end": 15629 }, - "ctxt": 0, - "value": "addLocalsFromScope", - "optional": false + "value": "addLocalsFromScope" } }, "arguments": [ @@ -16350,9 +15746,7 @@ "start": 15654, "end": 15658 }, - "ctxt": 0, - "value": "vars", - "optional": false + "value": "vars" } } }, @@ -16425,9 +15819,7 @@ "start": 15755, "end": 15763 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -16436,9 +15828,7 @@ "start": 15764, "end": 15782 }, - "ctxt": 0, - "value": "addLocalsFromScope", - "optional": false + "value": "addLocalsFromScope" } }, "arguments": [ @@ -16492,9 +15882,7 @@ "start": 15808, "end": 15815 }, - "ctxt": 0, - "value": "statics", - "optional": false + "value": "statics" } } }, @@ -16558,9 +15946,7 @@ "start": 15934, "end": 15944 }, - "ctxt": 0, - "value": "parameters", - "optional": false + "value": "parameters" } }, "consequent": { @@ -16626,9 +16012,7 @@ "start": 15984, "end": 15994 }, - "ctxt": 0, - "value": "parameters", - "optional": false + "value": "parameters" } }, "property": { @@ -16637,9 +16021,7 @@ "start": 15995, "end": 16001 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -16826,9 +16208,7 @@ "start": 16113, "end": 16123 }, - "ctxt": 0, - "value": "parameters", - "optional": false + "value": "parameters" } }, "property": { @@ -16900,9 +16280,7 @@ "start": 16156, "end": 16164 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -16911,9 +16289,7 @@ "start": 16165, "end": 16172 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -16922,9 +16298,7 @@ "start": 16173, "end": 16188 }, - "ctxt": 0, - "value": "resolveTypeLink", - "optional": false + "value": "resolveTypeLink" } }, "arguments": [ @@ -16971,9 +16345,7 @@ "start": 16270, "end": 16279 }, - "ctxt": 0, - "value": "parameter", - "optional": false + "value": "parameter" } }, "property": { @@ -16982,9 +16354,7 @@ "start": 16280, "end": 16288 }, - "ctxt": 0, - "value": "typeLink", - "optional": false + "value": "typeLink" } } }, @@ -17057,9 +16427,7 @@ "start": 16349, "end": 16357 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -17068,9 +16436,7 @@ "start": 16358, "end": 16365 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -17079,9 +16445,7 @@ "start": 16366, "end": 16381 }, - "ctxt": 0, - "value": "resolveTypeLink", - "optional": false + "value": "resolveTypeLink" } }, "arguments": [ @@ -17122,9 +16486,7 @@ "start": 16400, "end": 16410 }, - "ctxt": 0, - "value": "returnType", - "optional": false + "value": "returnType" } } }, @@ -17159,9 +16521,7 @@ "start": 16477, "end": 16488 }, - "ctxt": 0, - "value": "isSignature", - "optional": false + "value": "isSignature" } }, "arguments": [], @@ -17218,9 +16578,7 @@ "start": 16526, "end": 16539 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -17266,9 +16624,7 @@ "start": 16560, "end": 16568 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -17296,9 +16652,7 @@ "start": 16579, "end": 16590 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -17382,9 +16736,7 @@ "start": 16632, "end": 16645 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } }, "right": { @@ -17429,9 +16781,7 @@ "start": 16666, "end": 16674 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -17459,9 +16809,7 @@ "start": 16685, "end": 16696 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -17498,9 +16846,7 @@ "start": 16709, "end": 16719 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -17509,9 +16855,7 @@ "start": 16720, "end": 16728 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } }, "alternate": { @@ -17843,9 +17187,7 @@ "start": 16968, "end": 16973 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" } }, "consequent": { @@ -18096,9 +17438,7 @@ "start": 17263, "end": 17273 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -18107,9 +17447,7 @@ "start": 17274, "end": 17279 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } }, @@ -18149,9 +17487,7 @@ "start": 17340, "end": 17350 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -18160,9 +17496,7 @@ "start": 17351, "end": 17356 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } }, "property": { @@ -18171,9 +17505,7 @@ "start": 17357, "end": 17366 }, - "ctxt": 0, - "value": "container", - "optional": false + "value": "container" } } } @@ -18219,9 +17551,7 @@ "start": 17392, "end": 17406 }, - "ctxt": 0, - "value": "containedScope", - "optional": false + "value": "containedScope" } }, "right": { @@ -18316,9 +17646,7 @@ "start": 17480, "end": 17490 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -18327,9 +17655,7 @@ "start": 17491, "end": 17499 }, - "ctxt": 0, - "value": "thisType", - "optional": false + "value": "thisType" } } }, @@ -18363,9 +17689,7 @@ "start": 17509, "end": 17519 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -18374,9 +17698,7 @@ "start": 17520, "end": 17529 }, - "ctxt": 0, - "value": "classType", - "optional": false + "value": "classType" } } }, @@ -18410,9 +17732,7 @@ "start": 17539, "end": 17549 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -18421,9 +17741,7 @@ "start": 17550, "end": 17553 }, - "ctxt": 0, - "value": "fnc", - "optional": false + "value": "fnc" } } } @@ -18680,9 +17998,7 @@ "start": 17702, "end": 17707 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "definite": false @@ -18787,9 +18103,7 @@ "start": 17772, "end": 17780 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -18814,9 +18128,7 @@ "start": 17793, "end": 17797 }, - "ctxt": 0, - "value": "List", - "optional": false + "value": "List" } } }, @@ -18929,9 +18241,7 @@ "start": 17863, "end": 17877 }, - "ctxt": 0, - "value": "enclosingScope", - "optional": false + "value": "enclosingScope" } }, "right": { @@ -18962,9 +18272,7 @@ "start": 17888, "end": 17898 }, - "ctxt": 0, - "value": "scopeChain", - "optional": false + "value": "scopeChain" } }, "property": { @@ -18973,9 +18281,7 @@ "start": 17899, "end": 17904 }, - "ctxt": 0, - "value": "scope", - "optional": false + "value": "scope" } } } @@ -19017,9 +18323,7 @@ "start": 17945, "end": 17953 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19044,9 +18348,7 @@ "start": 17966, "end": 17983 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } }, @@ -19149,9 +18451,7 @@ "start": 18079, "end": 18087 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19176,9 +18476,7 @@ "start": 18100, "end": 18116 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } }, @@ -19281,9 +18579,7 @@ "start": 18211, "end": 18219 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19308,9 +18604,7 @@ "start": 18232, "end": 18252 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } } }, @@ -19413,9 +18707,7 @@ "start": 18351, "end": 18359 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19440,9 +18732,7 @@ "start": 18372, "end": 18376 }, - "ctxt": 0, - "value": "With", - "optional": false + "value": "With" } } }, @@ -19545,9 +18835,7 @@ "start": 18470, "end": 18478 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19572,9 +18860,7 @@ "start": 18491, "end": 18499 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } }, @@ -19677,9 +18963,7 @@ "start": 18597, "end": 18605 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19704,9 +18988,7 @@ "start": 18618, "end": 18623 }, - "ctxt": 0, - "value": "Catch", - "optional": false + "value": "Catch" } } }, @@ -19809,9 +19091,7 @@ "start": 18718, "end": 18726 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -19836,9 +19116,7 @@ "start": 18739, "end": 18746 }, - "ctxt": 0, - "value": "TypeRef", - "optional": false + "value": "TypeRef" } } }, @@ -19940,9 +19218,7 @@ "start": 18817, "end": 18824 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -19951,9 +19227,7 @@ "start": 18825, "end": 18835 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { @@ -20230,9 +19504,7 @@ "start": 18999, "end": 19004 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "definite": false @@ -20337,9 +19609,7 @@ "start": 19068, "end": 19076 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -20364,9 +19634,7 @@ "start": 19089, "end": 19106 }, - "ctxt": 0, - "value": "ModuleDeclaration", - "optional": false + "value": "ModuleDeclaration" } } }, @@ -20526,9 +19794,7 @@ "start": 19235, "end": 19247 }, - "ctxt": 0, - "value": "modDeclChain", - "optional": false + "value": "modDeclChain" } }, "property": { @@ -20537,9 +19803,7 @@ "start": 19248, "end": 19251 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -20587,9 +19851,7 @@ "start": 19283, "end": 19295 }, - "ctxt": 0, - "value": "modDeclChain", - "optional": false + "value": "modDeclChain" } }, "property": { @@ -20598,9 +19860,7 @@ "start": 19296, "end": 19302 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -20668,9 +19928,7 @@ "start": 19339, "end": 19347 }, - "ctxt": 0, - "value": "typeFlow", - "optional": false + "value": "typeFlow" } }, "property": { @@ -20679,9 +19937,7 @@ "start": 19348, "end": 19355 }, - "ctxt": 0, - "value": "checker", - "optional": false + "value": "checker" } }, "property": { @@ -20690,9 +19946,7 @@ "start": 19356, "end": 19370 }, - "ctxt": 0, - "value": "currentModDecl", - "optional": false + "value": "currentModDecl" } }, "right": { @@ -20723,9 +19977,7 @@ "start": 19381, "end": 19393 }, - "ctxt": 0, - "value": "modDeclChain", - "optional": false + "value": "modDeclChain" } }, "property": { @@ -20769,9 +20021,7 @@ "start": 19402, "end": 19414 }, - "ctxt": 0, - "value": "modDeclChain", - "optional": false + "value": "modDeclChain" } }, "property": { @@ -20780,9 +20030,7 @@ "start": 19415, "end": 19421 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -20840,9 +20088,7 @@ "start": 19485, "end": 19493 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -20867,9 +20113,7 @@ "start": 19506, "end": 19522 }, - "ctxt": 0, - "value": "ClassDeclaration", - "optional": false + "value": "ClassDeclaration" } } }, @@ -20959,9 +20203,7 @@ "start": 19606, "end": 19614 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -20986,9 +20228,7 @@ "start": 19627, "end": 19647 }, - "ctxt": 0, - "value": "InterfaceDeclaration", - "optional": false + "value": "InterfaceDeclaration" } } }, @@ -21078,9 +20318,7 @@ "start": 19731, "end": 19739 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -21105,9 +20343,7 @@ "start": 19752, "end": 19756 }, - "ctxt": 0, - "value": "With", - "optional": false + "value": "With" } } }, @@ -21197,9 +20433,7 @@ "start": 19840, "end": 19848 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -21224,9 +20458,7 @@ "start": 19861, "end": 19869 }, - "ctxt": 0, - "value": "FuncDecl", - "optional": false + "value": "FuncDecl" } } }, @@ -21359,9 +20591,7 @@ "start": 19950, "end": 19963 }, - "ctxt": 0, - "value": "isConstructor", - "optional": false + "value": "isConstructor" } } }, @@ -21407,9 +20637,7 @@ "start": 19984, "end": 19992 }, - "ctxt": 0, - "value": "fncFlags", - "optional": false + "value": "fncFlags" } } }, @@ -21437,9 +20665,7 @@ "start": 20003, "end": 20014 }, - "ctxt": 0, - "value": "ClassMethod", - "optional": false + "value": "ClassMethod" } } } @@ -21477,9 +20703,7 @@ "start": 20030, "end": 20040 }, - "ctxt": 0, - "value": "isOverload", - "optional": false + "value": "isOverload" } } } @@ -21574,9 +20798,7 @@ "start": 20146, "end": 20154 }, - "ctxt": 0, - "value": "nodeType", - "optional": false + "value": "nodeType" } }, "right": { @@ -21601,9 +20823,7 @@ "start": 20167, "end": 20172 }, - "ctxt": 0, - "value": "Catch", - "optional": false + "value": "Catch" } } }, @@ -21709,9 +20929,7 @@ "start": 20252, "end": 20257 }, - "ctxt": 0, - "value": "param", - "optional": false + "value": "param" } }, "consequent": { @@ -21864,9 +21082,7 @@ "start": 20424, "end": 20431 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -21875,9 +21091,7 @@ "start": 20432, "end": 20442 }, - "ctxt": 0, - "value": "goChildren", - "optional": false + "value": "goChildren" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression2.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression2.json index cadda365686f..d4e92edde10c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression2.json @@ -46,9 +46,7 @@ "start": 6, "end": 11 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json index 12d25445369c..d4815f83bfde 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json @@ -47,9 +47,7 @@ "start": 8, "end": 12 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -77,9 +75,7 @@ "start": 15, "end": 19 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -129,9 +125,7 @@ "start": 27, "end": 31 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -159,9 +153,7 @@ "start": 34, "end": 38 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -196,9 +188,7 @@ "start": 59, "end": 63 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -226,9 +216,7 @@ "start": 66, "end": 70 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -271,9 +259,7 @@ "start": 88, "end": 92 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -301,9 +287,7 @@ "start": 95, "end": 99 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -361,9 +345,7 @@ "start": 127, "end": 131 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -391,9 +373,7 @@ "start": 134, "end": 138 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -471,9 +451,7 @@ "start": 172, "end": 176 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -501,9 +479,7 @@ "start": 179, "end": 183 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -722,9 +698,7 @@ "start": 254, "end": 263 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -786,9 +760,7 @@ "start": 276, "end": 280 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "property": { @@ -797,9 +769,7 @@ "start": 281, "end": 287 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression5.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression5.json index 14242b145806..a35877ba7dd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression5.json @@ -55,9 +55,7 @@ "start": 33, "end": 37 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -85,9 +83,7 @@ "start": 40, "end": 44 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity1.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity1.json index 18b87dd39050..ff9c917b2b2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity1.json @@ -74,9 +74,7 @@ "start": 16, "end": 19 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity2.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity2.json index 9503c38e6a29..f2f854159a73 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity2.json @@ -81,9 +81,7 @@ "start": 18, "end": 21 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity5.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity5.json index d788487fb134..ed13f418a35d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity5.json @@ -40,9 +40,7 @@ "start": 7, "end": 13 }, - "ctxt": 0, - "value": "rotate", - "optional": false + "value": "rotate" } }, "arguments": [ @@ -106,9 +104,7 @@ "start": 32, "end": 34 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } } }, @@ -171,9 +167,7 @@ "start": 57, "end": 59 }, - "ctxt": 0, - "value": "PI", - "optional": false + "value": "PI" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserReturnStatement4.json b/crates/swc_ecma_parser/tests/tsc/parserReturnStatement4.json index 280a07809acf..736cf33fa518 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserReturnStatement4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserReturnStatement4.json @@ -51,9 +51,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "typeAnnotation": null, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression1.json index fa9441e49886..b96a3b3982b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression1.json @@ -37,9 +37,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -89,9 +87,7 @@ "start": 45, "end": 48 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -194,9 +190,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -246,9 +240,7 @@ "start": 132, "end": 135 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression2.json b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression2.json index 3fbce438f38d..b37e4b18c77d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression2.json @@ -37,9 +37,7 @@ "start": 13, "end": 14 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression3.json b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression3.json index 0f92b88becaf..c634491f5d53 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression3.json @@ -37,9 +37,7 @@ "start": 13, "end": 14 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" }, "function": { "params": [], @@ -89,9 +87,7 @@ "start": 28, "end": 33 }, - "ctxt": 0, - "value": "super", - "optional": false + "value": "super" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression4.json b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression4.json index 750c4338077f..1d247d4ae9f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSuperExpression4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSuperExpression4.json @@ -37,9 +37,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -89,9 +87,7 @@ "start": 45, "end": 48 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -201,9 +197,7 @@ "start": 107, "end": 110 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -253,9 +247,7 @@ "start": 133, "end": 136 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty1.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty1.json index 7a8af1125d8a..ced71ac74fc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty1.json @@ -60,9 +60,7 @@ "start": 42, "end": 50 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty2.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty2.json index e38f926b9390..ddccbb51e061 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty2.json @@ -59,9 +59,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty3.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty3.json index 12d6d646455f..23e498b85f16 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty3.json @@ -59,9 +59,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty4.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty4.json index 38dab97690b7..a1749c0e910c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty4.json @@ -59,9 +59,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty5.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty5.json index 1e7783768371..341b382907f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty5.json @@ -59,9 +59,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json index f265c43a6851..41e4b238c15e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json @@ -59,9 +59,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty7.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty7.json index e0c56dfe2e3a..4dadca1c9c0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty7.json @@ -59,9 +59,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty8.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty8.json index 821d7b43a84f..e79f2d7189d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty8.json @@ -71,9 +71,7 @@ "start": 37, "end": 48 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty9.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty9.json index bbf47be0f381..94988b5d5551 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty9.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty9.json @@ -72,9 +72,7 @@ "start": 37, "end": 48 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserTernaryAndCommaOperators1.json b/crates/swc_ecma_parser/tests/tsc/parserTernaryAndCommaOperators1.json index 76233223cf3b..e6ca8e95420e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserTernaryAndCommaOperators1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserTernaryAndCommaOperators1.json @@ -46,9 +46,7 @@ "start": 3, "end": 6 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/parserTypeQuery5.json b/crates/swc_ecma_parser/tests/tsc/parserTypeQuery5.json index 95b017ee16b7..208b88b80321 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserTypeQuery5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserTypeQuery5.json @@ -44,6 +44,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 15, + "end": 18 + }, "left": { "type": "Identifier", "span": { @@ -60,9 +64,7 @@ "start": 17, "end": 18 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/parserTypeQuery6.json b/crates/swc_ecma_parser/tests/tsc/parserTypeQuery6.json index b122160f57df..54929e7b6f0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserTypeQuery6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserTypeQuery6.json @@ -44,6 +44,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 15, + "end": 18 + }, "left": { "type": "Identifier", "span": { @@ -60,9 +64,7 @@ "start": 17, "end": 18 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json b/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json index ee224a079403..573eb50f1e5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json @@ -200,9 +200,7 @@ "start": 158, "end": 167 }, - "ctxt": 0, - "value": "Utilities", - "optional": false + "value": "Utilities" } }, "property": { @@ -211,9 +209,7 @@ "start": 168, "end": 194 }, - "ctxt": 0, - "value": "markSupportedForProcessing", - "optional": false + "value": "markSupportedForProcessing" } }, "arguments": [ @@ -306,9 +302,7 @@ "start": 293, "end": 302 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -685,9 +679,7 @@ "start": 711, "end": 720 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -729,9 +721,7 @@ "start": 750, "end": 759 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -763,9 +753,7 @@ "start": 769, "end": 775 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -828,9 +816,7 @@ "start": 824, "end": 833 }, - "ctxt": 0, - "value": "Utilities", - "optional": false + "value": "Utilities" } }, "property": { @@ -839,9 +825,7 @@ "start": 834, "end": 860 }, - "ctxt": 0, - "value": "markSupportedForProcessing", - "optional": false + "value": "markSupportedForProcessing" } }, "arguments": [ @@ -897,9 +881,7 @@ "start": 898, "end": 912 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -927,9 +909,7 @@ "start": 925, "end": 934 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -962,9 +942,7 @@ "start": 953, "end": 958 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -985,9 +963,7 @@ "start": 973, "end": 981 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -1006,9 +982,7 @@ "start": 989, "end": 1001 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -1027,9 +1001,7 @@ "start": 1009, "end": 1019 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -1119,9 +1091,7 @@ "start": 1122, "end": 1131 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -1581,9 +1551,7 @@ "start": 1610, "end": 1616 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1692,9 +1660,7 @@ "start": 1683, "end": 1692 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration2.json index 047908b9f12a..60d3bf6b7b63 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration2.json @@ -187,9 +187,7 @@ "start": 122, "end": 126 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration3.json b/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration3.json index ae99bbc1f9e9..b4e8256a063b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserVariableDeclaration3.json @@ -95,9 +95,7 @@ "start": 53, "end": 61 }, - "ctxt": 0, - "value": "Compiler", - "optional": false + "value": "Compiler" } }, "property": { @@ -106,9 +104,7 @@ "start": 62, "end": 78 }, - "ctxt": 0, - "value": "WriterAggregator", - "optional": false + "value": "WriterAggregator" } }, "arguments": [], @@ -168,9 +164,7 @@ "start": 110, "end": 118 }, - "ctxt": 0, - "value": "Compiler", - "optional": false + "value": "Compiler" } }, "property": { @@ -179,9 +173,7 @@ "start": 119, "end": 135 }, - "ctxt": 0, - "value": "WriterAggregator", - "optional": false + "value": "WriterAggregator" } }, "arguments": [], @@ -241,9 +233,7 @@ "start": 203, "end": 221 }, - "ctxt": 0, - "value": "TypeScriptCompiler", - "optional": false + "value": "TypeScriptCompiler" } }, "arguments": [ @@ -271,6 +261,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 158, + "end": 187 + }, "left": { "type": "Identifier", "span": { @@ -287,9 +281,7 @@ "start": 169, "end": 187 }, - "ctxt": 0, - "value": "TypeScriptCompiler", - "optional": false + "value": "TypeScriptCompiler" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json index ed28e564eb3a..a0ac00418504 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json @@ -17,9 +17,7 @@ "start": 1, "end": 7 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "BreakStatement", @@ -33,9 +31,7 @@ "start": 17, "end": 23 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json index d1935ee72f28..a5dfcb133a37 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json @@ -17,9 +17,7 @@ "start": 1, "end": 7 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "WhileStatement", @@ -55,9 +53,7 @@ "start": 32, "end": 38 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json index 0b64109405f5..15ff924c4189 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json @@ -17,9 +17,7 @@ "start": 30, "end": 37 }, - "ctxt": 0, - "value": "target1", - "optional": false + "value": "target1" }, "body": { "type": "LabeledStatement", @@ -33,9 +31,7 @@ "start": 39, "end": 46 }, - "ctxt": 0, - "value": "target2", - "optional": false + "value": "target2" }, "body": { "type": "WhileStatement", @@ -71,9 +67,7 @@ "start": 71, "end": 78 }, - "ctxt": 0, - "value": "target1", - "optional": false + "value": "target1" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json index aa5692331280..e2de246ad87b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json @@ -17,9 +17,7 @@ "start": 30, "end": 37 }, - "ctxt": 0, - "value": "target1", - "optional": false + "value": "target1" }, "body": { "type": "LabeledStatement", @@ -33,9 +31,7 @@ "start": 39, "end": 46 }, - "ctxt": 0, - "value": "target2", - "optional": false + "value": "target2" }, "body": { "type": "WhileStatement", @@ -71,9 +67,7 @@ "start": 71, "end": 78 }, - "ctxt": 0, - "value": "target2", - "optional": false + "value": "target2" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json b/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json index d51bc9555ec7..67da5a58e0c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json @@ -17,9 +17,7 @@ "start": 1, "end": 7 }, - "ctxt": 0, - "value": "label1", - "optional": false + "value": "label1" }, "body": { "type": "ForStatement", @@ -133,9 +131,7 @@ "start": 51, "end": 57 }, - "ctxt": 0, - "value": "label1", - "optional": false + "value": "label1" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json index e519fb66d380..6c5d7f3047e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json @@ -17,9 +17,7 @@ "start": 1, "end": 7 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "WhileStatement", @@ -55,9 +53,7 @@ "start": 35, "end": 41 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json index 6b4555b81a02..7346acc88c0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json @@ -17,9 +17,7 @@ "start": 30, "end": 37 }, - "ctxt": 0, - "value": "target1", - "optional": false + "value": "target1" }, "body": { "type": "LabeledStatement", @@ -33,9 +31,7 @@ "start": 39, "end": 46 }, - "ctxt": 0, - "value": "target2", - "optional": false + "value": "target2" }, "body": { "type": "WhileStatement", @@ -71,9 +67,7 @@ "start": 74, "end": 81 }, - "ctxt": 0, - "value": "target1", - "optional": false + "value": "target1" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json index b543abfe5478..7c5c5d7d6a1c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json @@ -17,9 +17,7 @@ "start": 30, "end": 37 }, - "ctxt": 0, - "value": "target1", - "optional": false + "value": "target1" }, "body": { "type": "LabeledStatement", @@ -33,9 +31,7 @@ "start": 39, "end": 46 }, - "ctxt": 0, - "value": "target2", - "optional": false + "value": "target2" }, "body": { "type": "WhileStatement", @@ -71,9 +67,7 @@ "start": 74, "end": 81 }, - "ctxt": 0, - "value": "target2", - "optional": false + "value": "target2" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json index 51364fd11b27..5600e0210faf 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json @@ -17,9 +17,7 @@ "start": 30, "end": 36 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "WhileStatement", @@ -83,9 +81,7 @@ "start": 74, "end": 80 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "WhileStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json index aba0eedf4cbf..19db8dcc965c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json @@ -17,9 +17,7 @@ "start": 61, "end": 67 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "WhileStatement", @@ -58,9 +56,7 @@ "start": 87, "end": 93 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" }, "body": { "type": "WhileStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/parserindenter.json b/crates/swc_ecma_parser/tests/tsc/parserindenter.json index 4a031e55faee..e26f18b5e3ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserindenter.json +++ b/crates/swc_ecma_parser/tests/tsc/parserindenter.json @@ -68,9 +68,7 @@ "start": 768, "end": 782 }, - "ctxt": 0, - "value": "indentationBag", - "optional": false + "value": "indentationBag" }, "value": null, "typeAnnotation": { @@ -120,9 +118,7 @@ "start": 816, "end": 842 }, - "ctxt": 0, - "value": "scriptBlockBeginLineNumber", - "optional": false + "value": "scriptBlockBeginLineNumber" }, "value": null, "typeAnnotation": { @@ -162,9 +158,7 @@ "start": 868, "end": 891 }, - "ctxt": 0, - "value": "offsetIndentationDeltas", - "optional": false + "value": "offsetIndentationDeltas" }, "value": null, "typeAnnotation": { @@ -215,9 +209,7 @@ "start": 922, "end": 933 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -253,6 +245,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 962, + "end": 980 + }, "left": { "type": "Identifier", "span": { @@ -269,9 +265,7 @@ "start": 973, "end": 980 }, - "ctxt": 0, - "value": "ILogger", - "optional": false + "value": "ILogger" } }, "typeParams": null @@ -440,6 +434,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1148, + "end": 1170 + }, "left": { "type": "Identifier", "span": { @@ -456,9 +454,7 @@ "start": 1157, "end": 1170 }, - "ctxt": 0, - "value": "EditorOptions", - "optional": false + "value": "EditorOptions" } }, "typeParams": null @@ -589,9 +585,7 @@ "start": 1275, "end": 1289 }, - "ctxt": 0, - "value": "indentationBag", - "optional": false + "value": "indentationBag" } }, "right": { @@ -633,9 +627,7 @@ "start": 1316, "end": 1324 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } } } @@ -676,9 +668,7 @@ "start": 1344, "end": 1370 }, - "ctxt": 0, - "value": "scriptBlockBeginLineNumber", - "optional": false + "value": "scriptBlockBeginLineNumber" } }, "right": { @@ -732,9 +722,7 @@ "start": 1394, "end": 1417 }, - "ctxt": 0, - "value": "offsetIndentationDeltas", - "optional": false + "value": "offsetIndentationDeltas" } }, "right": { @@ -803,9 +791,7 @@ "start": 1570, "end": 1574 }, - "ctxt": 0, - "value": "tree", - "optional": false + "value": "tree" } }, "property": { @@ -814,9 +800,7 @@ "start": 1575, "end": 1579 }, - "ctxt": 0, - "value": "Root", - "optional": false + "value": "Root" } }, "property": { @@ -825,9 +809,7 @@ "start": 1580, "end": 1602 }, - "ctxt": 0, - "value": "SetIndentationOverride", - "optional": false + "value": "SetIndentationOverride" } }, "arguments": [ @@ -879,9 +861,7 @@ "start": 1626, "end": 1653 }, - "ctxt": 0, - "value": "ApplyScriptBlockIndentation", - "optional": false + "value": "ApplyScriptBlockIndentation" } }, "arguments": [ @@ -906,9 +886,7 @@ "start": 1659, "end": 1682 }, - "ctxt": 0, - "value": "languageHostIndentation", - "optional": false + "value": "languageHostIndentation" } } }, @@ -933,9 +911,7 @@ "start": 1689, "end": 1693 }, - "ctxt": 0, - "value": "tree", - "optional": false + "value": "tree" } } } @@ -975,9 +951,7 @@ "start": 1713, "end": 1737 }, - "ctxt": 0, - "value": "FillInheritedIndentation", - "optional": false + "value": "FillInheritedIndentation" } }, "arguments": [ @@ -1002,9 +976,7 @@ "start": 1743, "end": 1747 }, - "ctxt": 0, - "value": "tree", - "optional": false + "value": "tree" } } } @@ -1029,9 +1001,7 @@ "start": 1777, "end": 1796 }, - "ctxt": 0, - "value": "GetIndentationEdits", - "optional": false + "value": "GetIndentationEdits" }, "function": { "params": [ @@ -1250,9 +1220,7 @@ "start": 1921, "end": 1927 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -1261,9 +1229,7 @@ "start": 1928, "end": 1939 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" } }, "arguments": [], @@ -1315,9 +1281,7 @@ "start": 1966, "end": 1972 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -1326,9 +1290,7 @@ "start": 1973, "end": 1976 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1451,9 +1413,7 @@ "start": 2037, "end": 2041 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -1462,9 +1422,7 @@ "start": 2042, "end": 2055 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -1516,9 +1474,7 @@ "start": 2072, "end": 2076 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -1527,9 +1483,7 @@ "start": 2077, "end": 2088 }, - "ctxt": 0, - "value": "endPosition", - "optional": false + "value": "endPosition" } }, "arguments": [], @@ -1657,9 +1611,7 @@ "start": 2170, "end": 2174 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -1668,9 +1620,7 @@ "start": 2175, "end": 2188 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -1721,9 +1671,7 @@ "start": 2209, "end": 2213 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -1732,9 +1680,7 @@ "start": 2214, "end": 2225 }, - "ctxt": 0, - "value": "endPosition", - "optional": false + "value": "endPosition" } }, "arguments": [], @@ -1827,9 +1773,7 @@ "start": 2309, "end": 2334 }, - "ctxt": 0, - "value": "GetIndentationEditsWorker", - "optional": false + "value": "GetIndentationEditsWorker" } }, "arguments": [ @@ -1930,9 +1874,7 @@ "start": 2398, "end": 2404 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -1941,9 +1883,7 @@ "start": 2405, "end": 2416 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" } }, "arguments": [], @@ -2049,9 +1989,7 @@ "start": 2465, "end": 2470 }, - "ctxt": 0, - "value": "count", - "optional": false + "value": "count" } }, "arguments": [], @@ -2141,9 +2079,7 @@ "start": 2520, "end": 2523 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -2205,9 +2141,7 @@ "start": 2553, "end": 2559 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -2216,9 +2150,7 @@ "start": 2560, "end": 2563 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2297,9 +2229,7 @@ "start": 2588, "end": 2596 }, - "ctxt": 0, - "value": "position", - "optional": false + "value": "position" } } }, @@ -2348,9 +2278,7 @@ "start": 2620, "end": 2628 }, - "ctxt": 0, - "value": "position", - "optional": false + "value": "position" } }, "right": { @@ -2375,9 +2303,7 @@ "start": 2636, "end": 2642 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2422,9 +2348,7 @@ "start": 2671, "end": 2686 }, - "ctxt": 0, - "value": "stringToLiteral", - "optional": false + "value": "stringToLiteral" } }, "arguments": [ @@ -2452,9 +2376,7 @@ "start": 2692, "end": 2703 }, - "ctxt": 0, - "value": "replaceWith", - "optional": false + "value": "replaceWith" } } }, @@ -2563,9 +2485,7 @@ "start": 2804, "end": 2829 }, - "ctxt": 0, - "value": "GetIndentationEditsWorker", - "optional": false + "value": "GetIndentationEditsWorker" }, "function": { "params": [ @@ -2891,9 +2811,7 @@ "start": 3712, "end": 3737 }, - "ctxt": 0, - "value": "AdjustStartOffsetIfNeeded", - "optional": false + "value": "AdjustStartOffsetIfNeeded" } }, "arguments": [ @@ -2959,9 +2877,7 @@ "start": 3849, "end": 3875 }, - "ctxt": 0, - "value": "scriptBlockBeginLineNumber", - "optional": false + "value": "scriptBlockBeginLineNumber" } }, "right": { @@ -2993,9 +2909,7 @@ "start": 3885, "end": 3895 }, - "ctxt": 0, - "value": "lineNumber", - "optional": false + "value": "lineNumber" } }, "arguments": [], @@ -3088,9 +3002,7 @@ "start": 4034, "end": 4051 }, - "ctxt": 0, - "value": "IsMultiLineString", - "optional": false + "value": "IsMultiLineString" } }, "arguments": [ @@ -3190,9 +3102,7 @@ "start": 4253, "end": 4278 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentation", - "optional": false + "value": "GetSpecialCaseIndentation" } }, "arguments": [ @@ -3322,9 +3232,7 @@ "start": 4580, "end": 4589 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -3360,9 +3268,7 @@ "start": 4600, "end": 4606 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } }, "right": { @@ -3422,9 +3328,7 @@ "start": 4624, "end": 4628 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -3433,9 +3337,7 @@ "start": 4629, "end": 4633 }, - "ctxt": 0, - "value": "span", - "optional": false + "value": "span" } }, "property": { @@ -3444,9 +3346,7 @@ "start": 4634, "end": 4639 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" } }, "arguments": [], @@ -3492,9 +3392,7 @@ "start": 4650, "end": 4656 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } }, "property": { @@ -3503,9 +3401,7 @@ "start": 4657, "end": 4667 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -3514,9 +3410,7 @@ "start": 4668, "end": 4675 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -3525,9 +3419,7 @@ "start": 4676, "end": 4687 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -3578,9 +3470,7 @@ "start": 4721, "end": 4727 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -3628,9 +3518,7 @@ "start": 4755, "end": 4764 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -3684,9 +3572,7 @@ "start": 4776, "end": 4780 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -3695,9 +3581,7 @@ "start": 4781, "end": 4785 }, - "ctxt": 0, - "value": "span", - "optional": false + "value": "span" } }, "property": { @@ -3706,9 +3590,7 @@ "start": 4786, "end": 4791 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" } }, "arguments": [], @@ -3748,9 +3630,7 @@ "start": 4802, "end": 4812 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -3759,9 +3639,7 @@ "start": 4813, "end": 4820 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -3770,9 +3648,7 @@ "start": 4821, "end": 4832 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -3838,9 +3714,7 @@ "start": 4879, "end": 4902 }, - "ctxt": 0, - "value": "GetEffectiveIndentation", - "optional": false + "value": "GetEffectiveIndentation" } }, "arguments": [ @@ -3918,9 +3792,7 @@ "start": 5158, "end": 5163 }, - "ctxt": 0, - "value": "Token", - "optional": false + "value": "Token" } }, "right": { @@ -3945,9 +3817,7 @@ "start": 5183, "end": 5196 }, - "ctxt": 0, - "value": "atkIdentifier", - "optional": false + "value": "atkIdentifier" } } }, @@ -4006,9 +3876,7 @@ "start": 5231, "end": 5236 }, - "ctxt": 0, - "value": "Token", - "optional": false + "value": "Token" } }, "right": { @@ -4033,9 +3901,7 @@ "start": 5256, "end": 5264 }, - "ctxt": 0, - "value": "atkColon", - "optional": false + "value": "atkColon" } } } @@ -4101,9 +3967,7 @@ "start": 5638, "end": 5669 }, - "ctxt": 0, - "value": "GetEffectiveChildrenIndentation", - "optional": false + "value": "GetEffectiveChildrenIndentation" } }, "arguments": [ @@ -4182,9 +4046,7 @@ "start": 6097, "end": 6128 }, - "ctxt": 0, - "value": "ApplyIndentationDeltaFromParent", - "optional": false + "value": "ApplyIndentationDeltaFromParent" } }, "arguments": [ @@ -4321,9 +4183,7 @@ "start": 6334, "end": 6347 }, - "ctxt": 0, - "value": "GetIndentEdit", - "optional": false + "value": "GetIndentEdit" } }, "arguments": [ @@ -4377,9 +4237,7 @@ "start": 6371, "end": 6375 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -4388,9 +4246,7 @@ "start": 6376, "end": 6389 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -4488,9 +4344,7 @@ "start": 6471, "end": 6490 }, - "ctxt": 0, - "value": "RegisterIndentation", - "optional": false + "value": "RegisterIndentation" } }, "arguments": [ @@ -4559,9 +4413,7 @@ "start": 6542, "end": 6545 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -4617,9 +4469,7 @@ "start": 6675, "end": 6680 }, - "ctxt": 0, - "value": "Token", - "optional": false + "value": "Token" } }, "right": { @@ -4644,9 +4494,7 @@ "start": 6700, "end": 6710 }, - "ctxt": 0, - "value": "atkComment", - "optional": false + "value": "atkComment" } } }, @@ -4711,9 +4559,7 @@ "start": 6762, "end": 6788 }, - "ctxt": 0, - "value": "GetCommentIndentationEdits", - "optional": false + "value": "GetCommentIndentationEdits" } }, "arguments": [ @@ -4772,9 +4618,7 @@ "start": 6834, "end": 6841 }, - "ctxt": 0, - "value": "foreach", - "optional": false + "value": "foreach" } }, "arguments": [ @@ -4843,9 +4687,7 @@ "start": 6889, "end": 6892 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -4957,9 +4799,7 @@ "start": 7037, "end": 7063 }, - "ctxt": 0, - "value": "GetCommentIndentationEdits", - "optional": false + "value": "GetCommentIndentationEdits" }, "function": { "params": [ @@ -5107,9 +4947,7 @@ "start": 7176, "end": 7181 }, - "ctxt": 0, - "value": "Token", - "optional": false + "value": "Token" } }, "right": { @@ -5134,9 +4972,7 @@ "start": 7201, "end": 7211 }, - "ctxt": 0, - "value": "atkComment", - "optional": false + "value": "atkComment" } } }, @@ -5218,9 +5054,7 @@ "start": 7290, "end": 7298 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -5229,9 +5063,7 @@ "start": 7299, "end": 7324 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -5272,9 +5104,7 @@ "start": 7331, "end": 7335 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -5283,9 +5113,7 @@ "start": 7336, "end": 7347 }, - "ctxt": 0, - "value": "endPosition", - "optional": false + "value": "endPosition" } }, "arguments": [], @@ -5341,9 +5169,7 @@ "start": 7374, "end": 7384 }, - "ctxt": 0, - "value": "lineNumber", - "optional": false + "value": "lineNumber" } }, "arguments": [], @@ -5432,9 +5258,7 @@ "start": 7501, "end": 7520 }, - "ctxt": 0, - "value": "GetIndentationDelta", - "optional": false + "value": "GetIndentationDelta" } }, "arguments": [ @@ -5475,9 +5299,7 @@ "start": 7527, "end": 7531 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -5486,9 +5308,7 @@ "start": 7532, "end": 7545 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -5623,9 +5443,7 @@ "start": 7659, "end": 7669 }, - "ctxt": 0, - "value": "lineNumber", - "optional": false + "value": "lineNumber" } }, "arguments": [], @@ -5772,9 +5590,7 @@ "start": 7767, "end": 7775 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -5783,9 +5599,7 @@ "start": 7776, "end": 7797 }, - "ctxt": 0, - "value": "GetLineFromLineNumber", - "optional": false + "value": "GetLineFromLineNumber" } }, "arguments": [ @@ -5811,9 +5625,7 @@ "start": 7804, "end": 7817 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -5876,9 +5688,7 @@ "start": 7863, "end": 7890 }, - "ctxt": 0, - "value": "GetLineIndentationForOffset", - "optional": false + "value": "GetLineIndentationForOffset" } }, "arguments": [ @@ -5955,9 +5765,7 @@ "start": 7966, "end": 7988 }, - "ctxt": 0, - "value": "ApplyIndentationDelta2", - "optional": false + "value": "ApplyIndentationDelta2" } }, "arguments": [ @@ -6099,9 +5907,7 @@ "start": 8174, "end": 8180 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -6162,9 +5968,7 @@ "start": 8240, "end": 8253 }, - "ctxt": 0, - "value": "GetIndentEdit", - "optional": false + "value": "GetIndentEdit" } }, "arguments": [ @@ -6286,9 +6090,7 @@ "start": 8403, "end": 8406 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -6391,9 +6193,7 @@ "start": 8566, "end": 8593 }, - "ctxt": 0, - "value": "GetIndentSizeFromIndentText", - "optional": false + "value": "GetIndentSizeFromIndentText" }, "function": { "params": [ @@ -6460,6 +6260,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 8629, + "end": 8651 + }, "left": { "type": "Identifier", "span": { @@ -6476,9 +6280,7 @@ "start": 8638, "end": 8651 }, - "ctxt": 0, - "value": "EditorOptions", - "optional": false + "value": "EditorOptions" } }, "typeParams": null @@ -6606,9 +6408,7 @@ "start": 8792, "end": 8813 }, - "ctxt": 0, - "value": "GetIndentSizeFromText", - "optional": false + "value": "GetIndentSizeFromText" }, "function": { "params": [ @@ -6675,6 +6475,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 8843, + "end": 8865 + }, "left": { "type": "Identifier", "span": { @@ -6691,9 +6495,7 @@ "start": 8852, "end": 8865 }, - "ctxt": 0, - "value": "EditorOptions", - "optional": false + "value": "EditorOptions" } }, "typeParams": null @@ -6874,9 +6676,7 @@ "start": 8979, "end": 8985 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -6963,9 +6763,7 @@ "start": 9023, "end": 9029 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -7098,9 +6896,7 @@ "start": 9127, "end": 9134 }, - "ctxt": 0, - "value": "TabSize", - "optional": false + "value": "TabSize" } } } @@ -7150,9 +6946,7 @@ "start": 9166, "end": 9173 }, - "ctxt": 0, - "value": "TabSize", - "optional": false + "value": "TabSize" } } } @@ -7360,9 +7154,7 @@ "start": 9506, "end": 9531 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentation", - "optional": false + "value": "GetSpecialCaseIndentation" }, "function": { "params": [ @@ -7557,9 +7349,7 @@ "start": 9670, "end": 9675 }, - "ctxt": 0, - "value": "Token", - "optional": false + "value": "Token" } }, "cases": [ @@ -7591,9 +7381,7 @@ "start": 9716, "end": 9725 }, - "ctxt": 0, - "value": "atkLCurly", - "optional": false + "value": "atkLCurly" } }, "consequent": [ @@ -7647,9 +7435,7 @@ "start": 9799, "end": 9833 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentationForLCurly", - "optional": false + "value": "GetSpecialCaseIndentationForLCurly" } }, "arguments": [ @@ -7718,9 +7504,7 @@ "start": 9923, "end": 9930 }, - "ctxt": 0, - "value": "atkElse", - "optional": false + "value": "atkElse" } }, "consequent": [] @@ -7753,9 +7537,7 @@ "start": 10003, "end": 10012 }, - "ctxt": 0, - "value": "atkRBrack", - "optional": false + "value": "atkRBrack" } }, "consequent": [ @@ -7812,9 +7594,7 @@ "start": 10086, "end": 10113 }, - "ctxt": 0, - "value": "GetNodeStartLineIndentation", - "optional": false + "value": "GetNodeStartLineIndentation" } }, "arguments": [ @@ -7880,9 +7660,7 @@ "start": 10203, "end": 10212 }, - "ctxt": 0, - "value": "atkRCurly", - "optional": false + "value": "atkRCurly" } }, "consequent": [ @@ -7940,9 +7718,7 @@ "start": 10360, "end": 10370 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -7951,9 +7727,7 @@ "start": 10371, "end": 10378 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -7962,9 +7736,7 @@ "start": 10379, "end": 10383 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -7989,9 +7761,7 @@ "start": 10407, "end": 10416 }, - "ctxt": 0, - "value": "apnkBlock", - "optional": false + "value": "apnkBlock" } } }, @@ -8030,9 +7800,7 @@ "start": 10425, "end": 10435 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -8041,9 +7809,7 @@ "start": 10436, "end": 10445 }, - "ctxt": 0, - "value": "EdgeLabel", - "optional": false + "value": "EdgeLabel" } }, "right": { @@ -8068,9 +7834,7 @@ "start": 10469, "end": 10477 }, - "ctxt": 0, - "value": "apneBody", - "optional": false + "value": "apneBody" } } } @@ -8121,9 +7885,7 @@ "start": 10515, "end": 10521 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -8183,9 +7945,7 @@ "start": 10566, "end": 10593 }, - "ctxt": 0, - "value": "GetNodeStartLineIndentation", - "optional": false + "value": "GetNodeStartLineIndentation" } }, "arguments": [ @@ -8251,9 +8011,7 @@ "start": 10683, "end": 10691 }, - "ctxt": 0, - "value": "atkWhile", - "optional": false + "value": "atkWhile" } }, "consequent": [ @@ -8304,9 +8062,7 @@ "start": 10769, "end": 10779 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -8315,9 +8071,7 @@ "start": 10780, "end": 10787 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -8326,9 +8080,7 @@ "start": 10788, "end": 10792 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -8353,9 +8105,7 @@ "start": 10816, "end": 10827 }, - "ctxt": 0, - "value": "apnkDoWhile", - "optional": false + "value": "apnkDoWhile" } } }, @@ -8420,9 +8170,7 @@ "start": 10878, "end": 10905 }, - "ctxt": 0, - "value": "GetNodeStartLineIndentation", - "optional": false + "value": "GetNodeStartLineIndentation" } }, "arguments": [ @@ -8506,9 +8254,7 @@ "start": 11055, "end": 11064 }, - "ctxt": 0, - "value": "atkSColon", - "optional": false + "value": "atkSColon" } }, "consequent": [ @@ -8544,9 +8290,7 @@ "start": 11098, "end": 11135 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentationForSemicolon", - "optional": false + "value": "GetSpecialCaseIndentationForSemicolon" } }, "arguments": [ @@ -8610,9 +8354,7 @@ "start": 11188, "end": 11198 }, - "ctxt": 0, - "value": "atkComment", - "optional": false + "value": "atkComment" } }, "consequent": [ @@ -8648,9 +8390,7 @@ "start": 11232, "end": 11267 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentationForComment", - "optional": false + "value": "GetSpecialCaseIndentationForComment" } }, "arguments": [ @@ -8765,9 +8505,7 @@ "start": 11393, "end": 11427 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentationForLCurly", - "optional": false + "value": "GetSpecialCaseIndentationForLCurly" }, "function": { "params": [ @@ -8952,9 +8690,7 @@ "start": 11543, "end": 11553 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -8963,9 +8699,7 @@ "start": 11554, "end": 11561 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -8974,9 +8708,7 @@ "start": 11562, "end": 11566 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -9001,9 +8733,7 @@ "start": 11590, "end": 11601 }, - "ctxt": 0, - "value": "apnkFncDecl", - "optional": false + "value": "apnkFncDecl" } } }, @@ -9042,9 +8772,7 @@ "start": 11626, "end": 11636 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -9053,9 +8781,7 @@ "start": 11637, "end": 11646 }, - "ctxt": 0, - "value": "EdgeLabel", - "optional": false + "value": "EdgeLabel" } }, "right": { @@ -9080,9 +8806,7 @@ "start": 11670, "end": 11678 }, - "ctxt": 0, - "value": "apneThen", - "optional": false + "value": "apneThen" } } } @@ -9122,9 +8846,7 @@ "start": 11687, "end": 11697 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -9133,9 +8855,7 @@ "start": 11698, "end": 11707 }, - "ctxt": 0, - "value": "EdgeLabel", - "optional": false + "value": "EdgeLabel" } }, "right": { @@ -9160,9 +8880,7 @@ "start": 11731, "end": 11739 }, - "ctxt": 0, - "value": "apneElse", - "optional": false + "value": "apneElse" } } } @@ -9228,9 +8946,7 @@ "start": 11843, "end": 11870 }, - "ctxt": 0, - "value": "GetNodeStartLineIndentation", - "optional": false + "value": "GetNodeStartLineIndentation" } }, "arguments": [ @@ -9322,9 +9038,7 @@ "start": 11958, "end": 11968 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -9333,9 +9047,7 @@ "start": 11969, "end": 11976 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -9344,9 +9056,7 @@ "start": 11977, "end": 11981 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -9371,9 +9081,7 @@ "start": 12005, "end": 12015 }, - "ctxt": 0, - "value": "apnkObject", - "optional": false + "value": "apnkObject" } } }, @@ -9413,9 +9121,7 @@ "start": 12025, "end": 12034 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -9503,9 +9209,7 @@ "start": 12256, "end": 12279 }, - "ctxt": 0, - "value": "GetEffectiveIndentation", - "optional": false + "value": "GetEffectiveIndentation" } }, "arguments": [ @@ -9591,9 +9295,7 @@ "start": 12350, "end": 12387 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentationForSemicolon", - "optional": false + "value": "GetSpecialCaseIndentationForSemicolon" }, "function": { "params": [ @@ -9785,9 +9487,7 @@ "start": 12521, "end": 12532 }, - "ctxt": 0, - "value": "smartIndent", - "optional": false + "value": "smartIndent" } }, "consequent": { @@ -9851,9 +9551,7 @@ "start": 12575, "end": 12606 }, - "ctxt": 0, - "value": "GetEffectiveChildrenIndentation", - "optional": false + "value": "GetEffectiveChildrenIndentation" } }, "arguments": [ @@ -9946,9 +9644,7 @@ "start": 12843, "end": 12853 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -9957,9 +9653,7 @@ "start": 12854, "end": 12861 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -9968,9 +9662,7 @@ "start": 12862, "end": 12866 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -9995,9 +9687,7 @@ "start": 12890, "end": 12897 }, - "ctxt": 0, - "value": "apnkFor", - "optional": false + "value": "apnkFor" } } }, @@ -10091,9 +9781,7 @@ "start": 13302, "end": 13306 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -10102,9 +9790,7 @@ "start": 13307, "end": 13320 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -10183,9 +9869,7 @@ "start": 13365, "end": 13385 }, - "ctxt": 0, - "value": "FindCommonParentNode", - "optional": false + "value": "FindCommonParentNode" } }, "arguments": [ @@ -10286,9 +9970,7 @@ "start": 13476, "end": 13507 }, - "ctxt": 0, - "value": "GetEffectiveChildrenIndentation", - "optional": false + "value": "GetEffectiveChildrenIndentation" } }, "arguments": [ @@ -10395,9 +10077,7 @@ "start": 13644, "end": 13679 }, - "ctxt": 0, - "value": "GetSpecialCaseIndentationForComment", - "optional": false + "value": "GetSpecialCaseIndentationForComment" }, "function": { "params": [ @@ -10626,9 +10306,7 @@ "start": 13904, "end": 13908 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -10637,9 +10315,7 @@ "start": 13909, "end": 13921 }, - "ctxt": 0, - "value": "Intersection", - "optional": false + "value": "Intersection" } }, "arguments": [ @@ -10700,9 +10376,7 @@ "start": 13937, "end": 13941 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -10711,9 +10385,7 @@ "start": 13942, "end": 13955 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -10830,9 +10502,7 @@ "start": 14016, "end": 14023 }, - "ctxt": 0, - "value": "GetText", - "optional": false + "value": "GetText" } }, "arguments": [], @@ -10884,9 +10554,7 @@ "start": 14049, "end": 14056 }, - "ctxt": 0, - "value": "GetText", - "optional": false + "value": "GetText" } }, "arguments": [], @@ -10955,9 +10623,7 @@ "start": 14099, "end": 14123 }, - "ctxt": 0, - "value": "ChildrenIndentationDelta", - "optional": false + "value": "ChildrenIndentationDelta" } }, "right": { @@ -10997,9 +10663,7 @@ "start": 14140, "end": 14146 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } }, "right": { @@ -11057,9 +10721,7 @@ "start": 14188, "end": 14194 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -11097,9 +10759,7 @@ "start": 14222, "end": 14238 }, - "ctxt": 0, - "value": "CanIndentComment", - "optional": false + "value": "CanIndentComment" } }, "arguments": [ @@ -11193,9 +10853,7 @@ "start": 14298, "end": 14339 }, - "ctxt": 0, - "value": "GetEffectiveChildrenIndentationForComment", - "optional": false + "value": "GetEffectiveChildrenIndentationForComment" } }, "arguments": [ @@ -11274,9 +10932,7 @@ "start": 14431, "end": 14462 }, - "ctxt": 0, - "value": "ApplyIndentationDeltaFromParent", - "optional": false + "value": "ApplyIndentationDeltaFromParent" } }, "arguments": [ @@ -11385,9 +11041,7 @@ "start": 14573, "end": 14589 }, - "ctxt": 0, - "value": "CanIndentComment", - "optional": false + "value": "CanIndentComment" }, "function": { "params": [ @@ -11532,9 +11186,7 @@ "start": 14661, "end": 14671 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -11543,9 +11195,7 @@ "start": 14672, "end": 14679 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -11554,9 +11204,7 @@ "start": 14680, "end": 14684 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "cases": [ @@ -11588,9 +11236,7 @@ "start": 14729, "end": 14737 }, - "ctxt": 0, - "value": "apnkProg", - "optional": false + "value": "apnkProg" } }, "consequent": [] @@ -11623,9 +11269,7 @@ "start": 14780, "end": 14789 }, - "ctxt": 0, - "value": "apnkBlock", - "optional": false + "value": "apnkBlock" } }, "consequent": [] @@ -11658,9 +11302,7 @@ "start": 14832, "end": 14842 }, - "ctxt": 0, - "value": "apnkSwitch", - "optional": false + "value": "apnkSwitch" } }, "consequent": [] @@ -11693,9 +11335,7 @@ "start": 14885, "end": 14893 }, - "ctxt": 0, - "value": "apnkCase", - "optional": false + "value": "apnkCase" } }, "consequent": [] @@ -11728,9 +11368,7 @@ "start": 14936, "end": 14951 }, - "ctxt": 0, - "value": "apnkDefaultCase", - "optional": false + "value": "apnkDefaultCase" } }, "consequent": [] @@ -11763,9 +11401,7 @@ "start": 14994, "end": 15000 }, - "ctxt": 0, - "value": "apnkIf", - "optional": false + "value": "apnkIf" } }, "consequent": [] @@ -11798,9 +11434,7 @@ "start": 15043, "end": 15050 }, - "ctxt": 0, - "value": "apnkFor", - "optional": false + "value": "apnkFor" } }, "consequent": [] @@ -11833,9 +11467,7 @@ "start": 15093, "end": 15102 }, - "ctxt": 0, - "value": "apnkForIn", - "optional": false + "value": "apnkForIn" } }, "consequent": [] @@ -11868,9 +11500,7 @@ "start": 15145, "end": 15154 }, - "ctxt": 0, - "value": "apnkWhile", - "optional": false + "value": "apnkWhile" } }, "consequent": [] @@ -11903,9 +11533,7 @@ "start": 15197, "end": 15205 }, - "ctxt": 0, - "value": "apnkWith", - "optional": false + "value": "apnkWith" } }, "consequent": [] @@ -11938,9 +11566,7 @@ "start": 15248, "end": 15259 }, - "ctxt": 0, - "value": "apnkDoWhile", - "optional": false + "value": "apnkDoWhile" } }, "consequent": [] @@ -11973,9 +11599,7 @@ "start": 15302, "end": 15312 }, - "ctxt": 0, - "value": "apnkObject", - "optional": false + "value": "apnkObject" } }, "consequent": [ @@ -12024,9 +11648,7 @@ "start": 15389, "end": 15400 }, - "ctxt": 0, - "value": "apnkFncDecl", - "optional": false + "value": "apnkFncDecl" } }, "consequent": [ @@ -12125,9 +11747,7 @@ "start": 15869, "end": 15889 }, - "ctxt": 0, - "value": "FindChildrenWithEdge", - "optional": false + "value": "FindChildrenWithEdge" } }, "arguments": [ @@ -12168,9 +11788,7 @@ "start": 15916, "end": 15928 }, - "ctxt": 0, - "value": "apneArgument", - "optional": false + "value": "apneArgument" } } } @@ -12216,9 +11834,7 @@ "start": 15960, "end": 15967 }, - "ctxt": 0, - "value": "foreach", - "optional": false + "value": "foreach" } }, "arguments": [ @@ -12300,9 +11916,7 @@ "start": 16022, "end": 16026 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -12311,9 +11925,7 @@ "start": 16027, "end": 16040 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -12353,9 +11965,7 @@ "start": 16058, "end": 16068 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -12364,9 +11974,7 @@ "start": 16069, "end": 16076 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -12375,9 +11983,7 @@ "start": 16077, "end": 16088 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } }, @@ -12505,9 +12111,7 @@ "start": 16262, "end": 16289 }, - "ctxt": 0, - "value": "ApplyScriptBlockIndentation", - "optional": false + "value": "ApplyScriptBlockIndentation" }, "function": { "params": [ @@ -12669,9 +12273,7 @@ "start": 16412, "end": 16425 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } }, "right": { @@ -12746,9 +12348,7 @@ "start": 16506, "end": 16527 }, - "ctxt": 0, - "value": "ApplyIndentationLevel", - "optional": false + "value": "ApplyIndentationLevel" } }, "arguments": [ @@ -12825,9 +12425,7 @@ "start": 18845, "end": 18849 }, - "ctxt": 0, - "value": "Root", - "optional": false + "value": "Root" } }, "property": { @@ -12836,9 +12434,7 @@ "start": 18850, "end": 18872 }, - "ctxt": 0, - "value": "SetIndentationOverride", - "optional": false + "value": "SetIndentationOverride" } }, "arguments": [ @@ -12899,9 +12495,7 @@ "start": 18925, "end": 18938 }, - "ctxt": 0, - "value": "GetIndentEdit", - "optional": false + "value": "GetIndentEdit" }, "function": { "params": [ @@ -13082,9 +12676,7 @@ "start": 19071, "end": 19092 }, - "ctxt": 0, - "value": "ApplyIndentationLevel", - "optional": false + "value": "ApplyIndentationLevel" } }, "arguments": [ @@ -13112,9 +12704,7 @@ "start": 19104, "end": 19110 }, - "ctxt": 0, - "value": "Prefix", - "optional": false + "value": "Prefix" } } }, @@ -13142,9 +12732,7 @@ "start": 19123, "end": 19128 }, - "ctxt": 0, - "value": "Level", - "optional": false + "value": "Level" } } } @@ -13314,9 +12902,7 @@ "start": 19315, "end": 19323 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -13325,9 +12911,7 @@ "start": 19324, "end": 19343 }, - "ctxt": 0, - "value": "GetLineFromPosition", - "optional": false + "value": "GetLineFromPosition" } }, "arguments": [ @@ -13427,9 +13011,7 @@ "start": 19427, "end": 19440 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -13484,9 +13066,7 @@ "start": 19478, "end": 19491 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -13560,9 +13140,7 @@ "start": 19541, "end": 19549 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -13571,9 +13149,7 @@ "start": 19550, "end": 19557 }, - "ctxt": 0, - "value": "GetText", - "optional": false + "value": "GetText" } }, "arguments": [ @@ -13677,9 +13253,7 @@ "start": 19664, "end": 19670 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -13688,9 +13262,7 @@ "start": 19671, "end": 19676 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [], @@ -13787,9 +13359,7 @@ "start": 19822, "end": 19828 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -13907,9 +13477,7 @@ "start": 19900, "end": 19910 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -13975,9 +13543,7 @@ "start": 19960, "end": 19972 }, - "ctxt": 0, - "value": "IsWhiteSpace", - "optional": false + "value": "IsWhiteSpace" } }, "arguments": [ @@ -14041,9 +13607,7 @@ "start": 20017, "end": 20021 }, - "ctxt": 0, - "value": "Fail", - "optional": false + "value": "Fail" } }, "arguments": [ @@ -14094,9 +13658,7 @@ "start": 20105, "end": 20112 }, - "ctxt": 0, - "value": "getText", - "optional": false + "value": "getText" } }, "arguments": [], @@ -14182,9 +13744,7 @@ "start": 20296, "end": 20301 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" } }, "arguments": [], @@ -14222,9 +13782,7 @@ "start": 20323, "end": 20329 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "arguments": [], @@ -14319,9 +13877,7 @@ "start": 20431, "end": 20452 }, - "ctxt": 0, - "value": "ApplyIndentationLevel", - "optional": false + "value": "ApplyIndentationLevel" }, "function": { "params": [ @@ -14458,9 +14014,7 @@ "start": 20541, "end": 20554 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } }, "property": { @@ -14469,9 +14023,7 @@ "start": 20555, "end": 20565 }, - "ctxt": 0, - "value": "IndentSize", - "optional": false + "value": "IndentSize" } }, "definite": false @@ -14530,9 +14082,7 @@ "start": 20598, "end": 20611 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } }, "property": { @@ -14541,9 +14091,7 @@ "start": 20612, "end": 20619 }, - "ctxt": 0, - "value": "TabSize", - "optional": false + "value": "TabSize" } }, "definite": false @@ -14602,9 +14150,7 @@ "start": 20664, "end": 20677 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } }, "property": { @@ -14613,9 +14159,7 @@ "start": 20678, "end": 20697 }, - "ctxt": 0, - "value": "ConvertTabsToSpaces", - "optional": false + "value": "ConvertTabsToSpaces" } }, "definite": false @@ -14698,9 +14242,7 @@ "start": 20761, "end": 20774 }, - "ctxt": 0, - "value": "IsNullOrEmpty", - "optional": false + "value": "IsNullOrEmpty" } }, "arguments": [ @@ -14813,9 +14355,7 @@ "start": 20894, "end": 20901 }, - "ctxt": 0, - "value": "foreach", - "optional": false + "value": "foreach" } }, "arguments": [ @@ -15105,9 +14645,7 @@ "start": 21272, "end": 21287 }, - "ctxt": 0, - "value": "GetIndentString", - "optional": false + "value": "GetIndentString" } }, "arguments": [ @@ -15260,9 +14798,7 @@ "start": 21431, "end": 21446 }, - "ctxt": 0, - "value": "GetIndentString", - "optional": false + "value": "GetIndentString" } }, "arguments": [ @@ -15362,9 +14898,7 @@ "start": 21543, "end": 21558 }, - "ctxt": 0, - "value": "GetIndentString", - "optional": false + "value": "GetIndentString" }, "function": { "params": [ @@ -15587,9 +15121,7 @@ "start": 21719, "end": 21725 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -15717,9 +15249,7 @@ "start": 21805, "end": 21818 }, - "ctxt": 0, - "value": "IsNullOrEmpty", - "optional": false + "value": "IsNullOrEmpty" } }, "arguments": [ @@ -16116,9 +15646,7 @@ "start": 22269, "end": 22300 }, - "ctxt": 0, - "value": "ApplyIndentationDeltaFromParent", - "optional": false + "value": "ApplyIndentationDeltaFromParent" }, "function": { "params": [ @@ -16400,9 +15928,7 @@ "start": 22519, "end": 22528 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -16456,9 +15982,7 @@ "start": 22584, "end": 22590 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -16543,9 +16067,7 @@ "start": 22654, "end": 22664 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -16554,9 +16076,7 @@ "start": 22665, "end": 22672 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -16565,9 +16085,7 @@ "start": 22673, "end": 22677 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -16592,9 +16110,7 @@ "start": 22701, "end": 22709 }, - "ctxt": 0, - "value": "apnkProg", - "optional": false + "value": "apnkProg" } } } @@ -16660,9 +16176,7 @@ "start": 22767, "end": 22786 }, - "ctxt": 0, - "value": "GetIndentationDelta", - "optional": false + "value": "GetIndentationDelta" } }, "arguments": [ @@ -16702,9 +16216,7 @@ "start": 22804, "end": 22814 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -16713,9 +16225,7 @@ "start": 22815, "end": 22822 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -16724,9 +16234,7 @@ "start": 22823, "end": 22834 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } }, @@ -16767,9 +16275,7 @@ "start": 22842, "end": 22846 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -16778,9 +16284,7 @@ "start": 22847, "end": 22860 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -16886,9 +16390,7 @@ "start": 22972, "end": 22994 }, - "ctxt": 0, - "value": "ApplyIndentationDelta1", - "optional": false + "value": "ApplyIndentationDelta1" } }, "arguments": [ @@ -16929,9 +16431,7 @@ "start": 23001, "end": 23005 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -16940,9 +16440,7 @@ "start": 23006, "end": 23019 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -17042,9 +16540,7 @@ "start": 23148, "end": 23170 }, - "ctxt": 0, - "value": "ApplyIndentationDelta1", - "optional": false + "value": "ApplyIndentationDelta1" }, "function": { "params": [ @@ -17188,9 +16684,7 @@ "start": 23308, "end": 23316 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -17199,9 +16693,7 @@ "start": 23317, "end": 23336 }, - "ctxt": 0, - "value": "GetLineFromPosition", - "optional": false + "value": "GetLineFromPosition" } }, "arguments": [ @@ -17301,9 +16793,7 @@ "start": 23416, "end": 23429 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -17358,9 +16848,7 @@ "start": 23467, "end": 23480 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -17434,9 +16922,7 @@ "start": 23522, "end": 23530 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -17445,9 +16931,7 @@ "start": 23531, "end": 23538 }, - "ctxt": 0, - "value": "GetText", - "optional": false + "value": "GetText" } }, "arguments": [ @@ -17503,9 +16987,7 @@ "start": 23660, "end": 23682 }, - "ctxt": 0, - "value": "ApplyIndentationDelta2", - "optional": false + "value": "ApplyIndentationDelta2" } }, "arguments": [ @@ -17589,9 +17071,7 @@ "start": 23733, "end": 23755 }, - "ctxt": 0, - "value": "ApplyIndentationDelta2", - "optional": false + "value": "ApplyIndentationDelta2" }, "function": { "params": [ @@ -17781,9 +17261,7 @@ "start": 23916, "end": 23943 }, - "ctxt": 0, - "value": "GetIndentSizeFromIndentText", - "optional": false + "value": "GetIndentSizeFromIndentText" } }, "arguments": [ @@ -17821,9 +17299,7 @@ "start": 23964, "end": 23977 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } } } @@ -18026,9 +17502,7 @@ "start": 24160, "end": 24175 }, - "ctxt": 0, - "value": "GetIndentString", - "optional": false + "value": "GetIndentString" } }, "arguments": [ @@ -18082,9 +17556,7 @@ "start": 24202, "end": 24215 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } }, "property": { @@ -18093,9 +17565,7 @@ "start": 24216, "end": 24223 }, - "ctxt": 0, - "value": "TabSize", - "optional": false + "value": "TabSize" } } }, @@ -18126,9 +17596,7 @@ "start": 24230, "end": 24243 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } }, "property": { @@ -18137,9 +17605,7 @@ "start": 24244, "end": 24263 }, - "ctxt": 0, - "value": "ConvertTabsToSpaces", - "optional": false + "value": "ConvertTabsToSpaces" } } } @@ -18310,9 +17776,7 @@ "start": 24428, "end": 24447 }, - "ctxt": 0, - "value": "GetIndentationDelta", - "optional": false + "value": "GetIndentationDelta" }, "function": { "params": [ @@ -18432,9 +17896,7 @@ "start": 24547, "end": 24553 }, - "ctxt": 0, - "value": "Assert", - "optional": false + "value": "Assert" } }, "arguments": [ @@ -18544,9 +18006,7 @@ "start": 24696, "end": 24719 }, - "ctxt": 0, - "value": "offsetIndentationDeltas", - "optional": false + "value": "offsetIndentationDeltas" } }, "property": { @@ -18555,9 +18015,7 @@ "start": 24720, "end": 24728 }, - "ctxt": 0, - "value": "GetValue", - "optional": false + "value": "GetValue" } }, "arguments": [ @@ -18679,9 +18137,7 @@ "start": 24841, "end": 24855 }, - "ctxt": 0, - "value": "indentationBag", - "optional": false + "value": "indentationBag" } }, "property": { @@ -18690,9 +18146,7 @@ "start": 24856, "end": 24866 }, - "ctxt": 0, - "value": "FindIndent", - "optional": false + "value": "FindIndent" } }, "arguments": [ @@ -18822,9 +18276,7 @@ "start": 25065, "end": 25073 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -18833,9 +18285,7 @@ "start": 25074, "end": 25081 }, - "ctxt": 0, - "value": "GetText", - "optional": false + "value": "GetText" } }, "arguments": [ @@ -18883,9 +18333,7 @@ "start": 25106, "end": 25124 }, - "ctxt": 0, - "value": "OrigIndentPosition", - "optional": false + "value": "OrigIndentPosition" } } }, @@ -18920,9 +18368,7 @@ "start": 25141, "end": 25157 }, - "ctxt": 0, - "value": "OrigIndentLength", - "optional": false + "value": "OrigIndentLength" } }, "arguments": [], @@ -18996,9 +18442,7 @@ "start": 25214, "end": 25225 }, - "ctxt": 0, - "value": "Indentation", - "optional": false + "value": "Indentation" } }, "arguments": [], @@ -19064,9 +18508,7 @@ "start": 25276, "end": 25297 }, - "ctxt": 0, - "value": "GetIndentSizeFromText", - "optional": false + "value": "GetIndentSizeFromText" } }, "arguments": [ @@ -19104,9 +18546,7 @@ "start": 25319, "end": 25332 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } } }, @@ -19184,9 +18624,7 @@ "start": 25411, "end": 25438 }, - "ctxt": 0, - "value": "GetIndentSizeFromIndentText", - "optional": false + "value": "GetIndentSizeFromIndentText" } }, "arguments": [ @@ -19224,9 +18662,7 @@ "start": 25459, "end": 25472 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } } } @@ -19348,9 +18784,7 @@ "start": 26634, "end": 26642 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -19359,9 +18793,7 @@ "start": 26643, "end": 26662 }, - "ctxt": 0, - "value": "GetLineFromPosition", - "optional": false + "value": "GetLineFromPosition" } }, "arguments": [ @@ -19387,9 +18819,7 @@ "start": 26688, "end": 26701 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -19458,9 +18888,7 @@ "start": 26752, "end": 26760 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -19469,9 +18897,7 @@ "start": 26761, "end": 26768 }, - "ctxt": 0, - "value": "GetText", - "optional": false + "value": "GetText" } }, "arguments": [ @@ -19606,9 +19032,7 @@ "start": 26916, "end": 26943 }, - "ctxt": 0, - "value": "GetIndentSizeFromIndentText", - "optional": false + "value": "GetIndentSizeFromIndentText" } }, "arguments": [ @@ -19646,9 +19070,7 @@ "start": 26966, "end": 26979 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } } } @@ -19746,9 +19168,7 @@ "start": 27091, "end": 27118 }, - "ctxt": 0, - "value": "GetIndentSizeFromIndentText", - "optional": false + "value": "GetIndentSizeFromIndentText" } }, "arguments": [ @@ -19786,9 +19206,7 @@ "start": 27140, "end": 27153 }, - "ctxt": 0, - "value": "editorOptions", - "optional": false + "value": "editorOptions" } } } @@ -19895,9 +19313,7 @@ "start": 27267, "end": 27290 }, - "ctxt": 0, - "value": "offsetIndentationDeltas", - "optional": false + "value": "offsetIndentationDeltas" } }, "property": { @@ -19906,9 +19322,7 @@ "start": 27291, "end": 27294 }, - "ctxt": 0, - "value": "Add", - "optional": false + "value": "Add" } }, "arguments": [ @@ -20003,9 +19417,7 @@ "start": 27421, "end": 27445 }, - "ctxt": 0, - "value": "FillInheritedIndentation", - "optional": false + "value": "FillInheritedIndentation" }, "function": { "params": [ @@ -20212,9 +19624,7 @@ "start": 27576, "end": 27589 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } }, "right": { @@ -20286,9 +19696,7 @@ "start": 27627, "end": 27638 }, - "ctxt": 0, - "value": "smartIndent", - "optional": false + "value": "smartIndent" } } }, @@ -20321,9 +19729,7 @@ "start": 27647, "end": 27671 }, - "ctxt": 0, - "value": "StartNodePreviousSibling", - "optional": false + "value": "StartNodePreviousSibling" } }, "right": { @@ -20376,9 +19782,7 @@ "start": 27689, "end": 27702 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } }, "property": { @@ -20387,9 +19791,7 @@ "start": 27703, "end": 27713 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -20398,9 +19800,7 @@ "start": 27714, "end": 27719 }, - "ctxt": 0, - "value": "Label", - "optional": false + "value": "Label" } }, "right": { @@ -20449,9 +19849,7 @@ "start": 27733, "end": 27757 }, - "ctxt": 0, - "value": "StartNodePreviousSibling", - "optional": false + "value": "StartNodePreviousSibling" } }, "property": { @@ -20460,9 +19858,7 @@ "start": 27758, "end": 27763 }, - "ctxt": 0, - "value": "Label", - "optional": false + "value": "Label" } }, "right": { @@ -20530,9 +19926,7 @@ "start": 27810, "end": 27823 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } } } @@ -20595,9 +19989,7 @@ "start": 27859, "end": 27883 }, - "ctxt": 0, - "value": "StartNodePreviousSibling", - "optional": false + "value": "StartNodePreviousSibling" } }, "property": { @@ -20606,9 +19998,7 @@ "start": 27884, "end": 27891 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -20617,9 +20007,7 @@ "start": 27892, "end": 27903 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -20683,9 +20071,7 @@ "start": 28226, "end": 28234 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -20694,9 +20080,7 @@ "start": 28235, "end": 28260 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -20803,9 +20187,7 @@ "start": 28345, "end": 28351 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } }, "right": { @@ -20855,9 +20237,7 @@ "start": 28368, "end": 28376 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -20866,9 +20246,7 @@ "start": 28377, "end": 28402 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -20914,9 +20292,7 @@ "start": 28408, "end": 28414 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } }, "property": { @@ -20925,9 +20301,7 @@ "start": 28415, "end": 28425 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -20936,9 +20310,7 @@ "start": 28426, "end": 28433 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -20947,9 +20319,7 @@ "start": 28434, "end": 28445 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -21022,9 +20392,7 @@ "start": 28497, "end": 28503 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -21064,9 +20432,7 @@ "start": 28538, "end": 28547 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -21151,9 +20517,7 @@ "start": 28639, "end": 28655 }, - "ctxt": 0, - "value": "IndentationDelta", - "optional": false + "value": "IndentationDelta" } }, "right": { @@ -21265,9 +20629,7 @@ "start": 28884, "end": 28895 }, - "ctxt": 0, - "value": "smartIndent", - "optional": false + "value": "smartIndent" } }, "consequent": { @@ -21324,9 +20686,7 @@ "start": 29183, "end": 29196 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } } } @@ -21410,9 +20770,7 @@ "start": 29254, "end": 29264 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -21421,9 +20779,7 @@ "start": 29265, "end": 29272 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -21432,9 +20788,7 @@ "start": 29273, "end": 29284 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } }, "right": { @@ -21475,9 +20829,7 @@ "start": 29293, "end": 29303 }, - "ctxt": 0, - "value": "firstToken", - "optional": false + "value": "firstToken" } }, "property": { @@ -21486,9 +20838,7 @@ "start": 29304, "end": 29308 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -21497,9 +20847,7 @@ "start": 29309, "end": 29322 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -21553,9 +20901,7 @@ "start": 29370, "end": 29376 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -21630,9 +20976,7 @@ "start": 29578, "end": 29586 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -21641,9 +20985,7 @@ "start": 29587, "end": 29612 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -21689,9 +21031,7 @@ "start": 29618, "end": 29631 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } }, "property": { @@ -21700,9 +21040,7 @@ "start": 29632, "end": 29642 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -21711,9 +21049,7 @@ "start": 29643, "end": 29650 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -21722,9 +21058,7 @@ "start": 29651, "end": 29662 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -21787,9 +21121,7 @@ "start": 29703, "end": 29716 }, - "ctxt": 0, - "value": "StartNodeSelf", - "optional": false + "value": "StartNodeSelf" } }, "property": { @@ -21798,9 +21130,7 @@ "start": 29717, "end": 29723 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -21892,9 +21222,7 @@ "start": 29834, "end": 29842 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -21903,9 +21231,7 @@ "start": 29843, "end": 29868 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -21945,9 +21271,7 @@ "start": 29876, "end": 29886 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -21956,9 +21280,7 @@ "start": 29887, "end": 29894 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -21967,9 +21289,7 @@ "start": 29895, "end": 29906 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -22032,9 +21352,7 @@ "start": 29955, "end": 29961 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -22119,9 +21437,7 @@ "start": 30170, "end": 30179 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -22183,9 +21499,7 @@ "start": 30225, "end": 30231 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -22272,9 +21586,7 @@ "start": 30369, "end": 30379 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -22283,9 +21595,7 @@ "start": 30380, "end": 30387 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -22294,9 +21604,7 @@ "start": 30388, "end": 30392 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -22321,9 +21629,7 @@ "start": 30416, "end": 30424 }, - "ctxt": 0, - "value": "apnkProg", - "optional": false + "value": "apnkProg" } } } @@ -22394,9 +21700,7 @@ "start": 30468, "end": 30478 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -22405,9 +21709,7 @@ "start": 30479, "end": 30486 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -22416,9 +21718,7 @@ "start": 30487, "end": 30498 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -22562,9 +21862,7 @@ "start": 30680, "end": 30707 }, - "ctxt": 0, - "value": "GetLineIndentationForOffset", - "optional": false + "value": "GetLineIndentationForOffset" } }, "arguments": [ @@ -22634,9 +21932,7 @@ "start": 30832, "end": 30843 }, - "ctxt": 0, - "value": "smartIndent", - "optional": false + "value": "smartIndent" } } }, @@ -22669,9 +21965,7 @@ "start": 30852, "end": 30876 }, - "ctxt": 0, - "value": "StartNodePreviousSibling", - "optional": false + "value": "StartNodePreviousSibling" } }, "right": { @@ -22712,9 +22006,7 @@ "start": 30900, "end": 30906 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } }, "right": { @@ -22782,9 +22074,7 @@ "start": 30958, "end": 30969 }, - "ctxt": 0, - "value": "GetChildren", - "optional": false + "value": "GetChildren" } }, "arguments": [ @@ -22812,9 +22102,7 @@ "start": 30981, "end": 30987 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -22827,9 +22115,7 @@ "start": 30989, "end": 30996 }, - "ctxt": 0, - "value": "foreach", - "optional": false + "value": "foreach" } }, "arguments": [ @@ -22940,9 +22226,7 @@ "start": 31106, "end": 31115 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -22983,9 +22267,7 @@ "start": 31159, "end": 31181 }, - "ctxt": 0, - "value": "SetIndentationOverride", - "optional": false + "value": "SetIndentationOverride" } }, "arguments": [ @@ -23127,9 +22409,7 @@ "start": 31497, "end": 31505 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -23138,9 +22418,7 @@ "start": 31506, "end": 31531 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -23180,9 +22458,7 @@ "start": 31543, "end": 31553 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -23191,9 +22467,7 @@ "start": 31554, "end": 31561 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -23202,9 +22476,7 @@ "start": 31562, "end": 31573 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -23313,9 +22585,7 @@ "start": 31640, "end": 31648 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -23324,9 +22594,7 @@ "start": 31649, "end": 31674 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -23366,9 +22634,7 @@ "start": 31686, "end": 31696 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -23377,9 +22643,7 @@ "start": 31697, "end": 31704 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -23388,9 +22652,7 @@ "start": 31705, "end": 31716 }, - "ctxt": 0, - "value": "StartOffset", - "optional": false + "value": "StartOffset" } } } @@ -23529,9 +22791,7 @@ "start": 31864, "end": 31885 }, - "ctxt": 0, - "value": "ApplyIndentationLevel", - "optional": false + "value": "ApplyIndentationLevel" } }, "arguments": [ @@ -23648,9 +22908,7 @@ "start": 32012, "end": 32021 }, - "ctxt": 0, - "value": "CanIndent", - "optional": false + "value": "CanIndent" } }, "arguments": [], @@ -23699,9 +22957,7 @@ "start": 32062, "end": 32084 }, - "ctxt": 0, - "value": "SetIndentationOverride", - "optional": false + "value": "SetIndentationOverride" } }, "arguments": [ @@ -23768,9 +23024,7 @@ "start": 32149, "end": 32165 }, - "ctxt": 0, - "value": "IndentationDelta", - "optional": false + "value": "IndentationDelta" } } } @@ -23825,9 +23079,7 @@ "start": 32234, "end": 32240 }, - "ctxt": 0, - "value": "Parent", - "optional": false + "value": "Parent" } } } @@ -23879,9 +23131,7 @@ "start": 32344, "end": 32371 }, - "ctxt": 0, - "value": "GetLineIndentationForOffset", - "optional": false + "value": "GetLineIndentationForOffset" }, "function": { "params": [ @@ -24045,9 +23295,7 @@ "start": 32574, "end": 32588 }, - "ctxt": 0, - "value": "indentationBag", - "optional": false + "value": "indentationBag" } }, "property": { @@ -24056,9 +23304,7 @@ "start": 32589, "end": 32599 }, - "ctxt": 0, - "value": "FindIndent", - "optional": false + "value": "FindIndent" } }, "arguments": [ @@ -24154,9 +23400,7 @@ "start": 32691, "end": 32702 }, - "ctxt": 0, - "value": "Indentation", - "optional": false + "value": "Indentation" } }, "arguments": [], @@ -24232,9 +23476,7 @@ "start": 32841, "end": 32849 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -24243,9 +23485,7 @@ "start": 32850, "end": 32869 }, - "ctxt": 0, - "value": "GetLineFromPosition", - "optional": false + "value": "GetLineFromPosition" } }, "arguments": [ @@ -24325,9 +23565,7 @@ "start": 32915, "end": 32922 }, - "ctxt": 0, - "value": "getText", - "optional": false + "value": "getText" } }, "arguments": [], @@ -24429,9 +23667,7 @@ "start": 32998, "end": 33004 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -24484,9 +23720,7 @@ "start": 33018, "end": 33024 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -24552,9 +23786,7 @@ "start": 33051, "end": 33057 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -24659,9 +23891,7 @@ "start": 33157, "end": 33163 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -24737,9 +23967,7 @@ "start": 33216, "end": 33235 }, - "ctxt": 0, - "value": "RegisterIndentation", - "optional": false + "value": "RegisterIndentation" }, "function": { "params": [ @@ -24992,9 +24220,7 @@ "start": 33581, "end": 33589 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -25003,9 +24229,7 @@ "start": 33590, "end": 33609 }, - "ctxt": 0, - "value": "GetLineFromPosition", - "optional": false + "value": "GetLineFromPosition" } }, "arguments": [ @@ -25033,9 +24257,7 @@ "start": 33617, "end": 33625 }, - "ctxt": 0, - "value": "Position", - "optional": false + "value": "Position" } } } @@ -25048,9 +24270,7 @@ "start": 33627, "end": 33640 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -25116,9 +24336,7 @@ "start": 33690, "end": 33698 }, - "ctxt": 0, - "value": "Position", - "optional": false + "value": "Position" } }, "right": { @@ -25189,9 +24407,7 @@ "start": 33775, "end": 33782 }, - "ctxt": 0, - "value": "create2", - "optional": false + "value": "create2" } }, "arguments": [ @@ -25219,9 +24435,7 @@ "start": 33790, "end": 33798 }, - "ctxt": 0, - "value": "Position", - "optional": false + "value": "Position" } } }, @@ -25249,9 +24463,7 @@ "start": 33807, "end": 33818 }, - "ctxt": 0, - "value": "ReplaceWith", - "optional": false + "value": "ReplaceWith" } } }, @@ -25397,9 +24609,7 @@ "start": 33990, "end": 34004 }, - "ctxt": 0, - "value": "indentationBag", - "optional": false + "value": "indentationBag" } }, "property": { @@ -25408,9 +24618,7 @@ "start": 34005, "end": 34014 }, - "ctxt": 0, - "value": "AddIndent", - "optional": false + "value": "AddIndent" } }, "arguments": [ @@ -25471,9 +24679,7 @@ "start": 34059, "end": 34079 }, - "ctxt": 0, - "value": "RegisterIndentation2", - "optional": false + "value": "RegisterIndentation2" }, "function": { "params": [ @@ -25590,9 +24796,7 @@ "start": 34147, "end": 34166 }, - "ctxt": 0, - "value": "RegisterIndentation", - "optional": false + "value": "RegisterIndentation" } }, "arguments": [ @@ -25713,9 +24917,7 @@ "start": 34241, "end": 34266 }, - "ctxt": 0, - "value": "AdjustStartOffsetIfNeeded", - "optional": false + "value": "AdjustStartOffsetIfNeeded" }, "function": { "params": [ @@ -25928,9 +25130,7 @@ "start": 34444, "end": 34449 }, - "ctxt": 0, - "value": "Token", - "optional": false + "value": "Token" } }, "cases": [ @@ -25962,9 +25162,7 @@ "start": 34490, "end": 34501 }, - "ctxt": 0, - "value": "atkFunction", - "optional": false + "value": "atkFunction" } }, "consequent": [ @@ -26033,9 +25231,7 @@ "start": 34548, "end": 34558 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -26044,9 +25240,7 @@ "start": 34559, "end": 34566 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -26055,9 +25249,7 @@ "start": 34567, "end": 34571 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -26082,9 +25274,7 @@ "start": 34595, "end": 34606 }, - "ctxt": 0, - "value": "apnkFncDecl", - "optional": false + "value": "apnkFncDecl" } } } @@ -26128,9 +25318,7 @@ "start": 34673, "end": 34682 }, - "ctxt": 0, - "value": "atkLCurly", - "optional": false + "value": "atkLCurly" } }, "consequent": [ @@ -26199,9 +25387,7 @@ "start": 34729, "end": 34739 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -26210,9 +25396,7 @@ "start": 34740, "end": 34747 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -26221,9 +25405,7 @@ "start": 34748, "end": 34752 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -26248,9 +25430,7 @@ "start": 34776, "end": 34786 }, - "ctxt": 0, - "value": "apnkObject", - "optional": false + "value": "apnkObject" } } } @@ -26294,9 +25474,7 @@ "start": 34853, "end": 34862 }, - "ctxt": 0, - "value": "atkLBrack", - "optional": false + "value": "atkLBrack" } }, "consequent": [ @@ -26365,9 +25543,7 @@ "start": 34909, "end": 34919 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -26376,9 +25552,7 @@ "start": 34920, "end": 34927 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -26387,9 +25561,7 @@ "start": 34928, "end": 34932 }, - "ctxt": 0, - "value": "Kind", - "optional": false + "value": "Kind" } }, "right": { @@ -26414,9 +25586,7 @@ "start": 34956, "end": 34965 }, - "ctxt": 0, - "value": "apnkArray", - "optional": false + "value": "apnkArray" } } } @@ -26493,9 +25663,7 @@ "start": 35082, "end": 35093 }, - "ctxt": 0, - "value": "SetNodeSpan", - "optional": false + "value": "SetNodeSpan" } }, "arguments": [ @@ -26549,9 +25717,7 @@ "start": 35106, "end": 35110 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -26560,9 +25726,7 @@ "start": 35111, "end": 35124 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], @@ -26605,9 +25769,7 @@ "start": 35133, "end": 35143 }, - "ctxt": 0, - "value": "AuthorNode", - "optional": false + "value": "AuthorNode" } }, "property": { @@ -26616,9 +25778,7 @@ "start": 35144, "end": 35151 }, - "ctxt": 0, - "value": "Details", - "optional": false + "value": "Details" } }, "property": { @@ -26627,9 +25787,7 @@ "start": 35152, "end": 35161 }, - "ctxt": 0, - "value": "EndOffset", - "optional": false + "value": "EndOffset" } } } @@ -26681,9 +25839,7 @@ "start": 35205, "end": 35222 }, - "ctxt": 0, - "value": "IsMultiLineString", - "optional": false + "value": "IsMultiLineString" }, "function": { "params": [ @@ -26787,9 +25943,7 @@ "start": 35277, "end": 35284 }, - "ctxt": 0, - "value": "tokenID", - "optional": false + "value": "tokenID" } }, "right": { @@ -26820,9 +25974,7 @@ "start": 35300, "end": 35307 }, - "ctxt": 0, - "value": "TokenID", - "optional": false + "value": "TokenID" } }, "property": { @@ -26831,9 +25983,7 @@ "start": 35308, "end": 35321 }, - "ctxt": 0, - "value": "StringLiteral", - "optional": false + "value": "StringLiteral" } } }, @@ -26876,9 +26026,7 @@ "start": 35346, "end": 35354 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -26887,9 +26035,7 @@ "start": 35355, "end": 35380 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -26930,9 +26076,7 @@ "start": 35387, "end": 35391 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -26941,9 +26085,7 @@ "start": 35392, "end": 35403 }, - "ctxt": 0, - "value": "endPosition", - "optional": false + "value": "endPosition" } }, "arguments": [], @@ -26985,9 +26127,7 @@ "start": 35414, "end": 35422 }, - "ctxt": 0, - "value": "snapshot", - "optional": false + "value": "snapshot" } }, "property": { @@ -26996,9 +26136,7 @@ "start": 35423, "end": 35448 }, - "ctxt": 0, - "value": "GetLineNumberFromPosition", - "optional": false + "value": "GetLineNumberFromPosition" } }, "arguments": [ @@ -27039,9 +26177,7 @@ "start": 35455, "end": 35459 }, - "ctxt": 0, - "value": "Span", - "optional": false + "value": "Span" } }, "property": { @@ -27050,9 +26186,7 @@ "start": 35460, "end": 35473 }, - "ctxt": 0, - "value": "startPosition", - "optional": false + "value": "startPosition" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parservoidInQualifiedName2.json b/crates/swc_ecma_parser/tests/tsc/parservoidInQualifiedName2.json index c66f80506c7c..c0c7c23a9fac 100644 --- a/crates/swc_ecma_parser/tests/tsc/parservoidInQualifiedName2.json +++ b/crates/swc_ecma_parser/tests/tsc/parservoidInQualifiedName2.json @@ -44,6 +44,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 9, + "end": 15 + }, "left": { "type": "Identifier", "span": { @@ -60,9 +64,7 @@ "start": 11, "end": 15 }, - "ctxt": 0, - "value": "void", - "optional": false + "value": "void" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json index 6b9e3a7582f3..bfbde6ab4a14 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceError.json @@ -37,9 +37,7 @@ "start": 13, "end": 17 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 51, "end": 56 }, - "ctxt": 0, - "value": "test2", - "optional": false + "value": "test2" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json index 15a79470befc..a183b2e1f93d 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyAnnotatedFunctionInferenceWithTypeParameter.json @@ -37,9 +37,7 @@ "start": 13, "end": 17 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 51, "end": 56 }, - "ctxt": 0, - "value": "test2", - "optional": false + "value": "test2" }, "value": null, "typeAnnotation": { @@ -759,9 +755,7 @@ "start": 251, "end": 256 }, - "ctxt": 0, - "value": "test2", - "optional": false + "value": "test2" } } } @@ -894,9 +888,7 @@ "start": 285, "end": 290 }, - "ctxt": 0, - "value": "test2", - "optional": false + "value": "test2" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json index 53abb5ea43c5..2ad6a80e6ea8 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json @@ -1318,9 +1318,7 @@ "start": 688, "end": 691 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors4.json b/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors4.json index e68165026dff..e7172ff3c948 100644 --- a/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors4.json +++ b/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors4.json @@ -62,9 +62,7 @@ "start": 135, "end": 136 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare.json b/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare.json index 37d77eb85574..ae1c0a945edc 100644 --- a/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare.json +++ b/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare.json @@ -136,9 +136,7 @@ "start": 120, "end": 133 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare2.json b/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare2.json index 4ab85a6b8236..f0e84a09b6c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare2.json +++ b/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare2.json @@ -136,9 +136,7 @@ "start": 138, "end": 151 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare3.json b/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare3.json index 460252eb739a..6328899b3c35 100644 --- a/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare3.json +++ b/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare3.json @@ -136,9 +136,7 @@ "start": 139, "end": 152 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithBooleanType.json index 273383180cd6..16068b164e35 100644 --- a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 359, "end": 360 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 368, "end": 369 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 523, "end": 526 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -988,9 +974,7 @@ "start": 605, "end": 606 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1030,9 +1014,7 @@ "start": 611, "end": 612 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json index cd1e8bbc6395..e8d644b4ea37 100644 --- a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json @@ -488,9 +488,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithNumberType.json index be4fe3a25f51..d864b875716d 100644 --- a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 142, "end": 143 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 164, "end": 167 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 539, "end": 540 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 567, "end": 568 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 661, "end": 664 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1408,9 +1390,7 @@ "start": 778, "end": 779 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1450,9 +1430,7 @@ "start": 784, "end": 785 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1499,9 +1477,7 @@ "start": 793, "end": 794 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1527,9 +1503,7 @@ "start": 798, "end": 799 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json index c60630f4187d..e8ef9450d494 100644 --- a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 173, "end": 176 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 456, "end": 457 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 554, "end": 555 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 676, "end": 679 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 757, "end": 763 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1504,9 +1484,7 @@ "start": 836, "end": 837 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1532,9 +1510,7 @@ "start": 840, "end": 841 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinClass.json b/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinClass.json index 74f9c78d4394..6948bd8283ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinClass.json +++ b/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinClass.json @@ -37,9 +37,7 @@ "start": 37, "end": 38 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -156,9 +150,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -228,9 +220,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -252,9 +242,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -285,9 +273,7 @@ "start": 141, "end": 144 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -330,9 +316,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -362,9 +346,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -404,9 +386,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -449,9 +429,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -481,9 +459,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -553,9 +529,7 @@ "start": 280, "end": 281 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -577,9 +551,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -610,9 +582,7 @@ "start": 313, "end": 316 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -655,9 +625,7 @@ "start": 333, "end": 336 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -687,9 +655,7 @@ "start": 359, "end": 362 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -739,9 +705,7 @@ "start": 372, "end": 375 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -801,9 +765,7 @@ "start": 442, "end": 443 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -843,9 +805,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -896,9 +856,7 @@ "start": 486, "end": 487 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -947,9 +905,7 @@ "start": 520, "end": 521 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -1041,9 +997,7 @@ "start": 540, "end": 541 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1065,9 +1019,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1106,9 +1058,7 @@ "start": 568, "end": 571 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1159,9 +1109,7 @@ "start": 587, "end": 590 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, @@ -1196,9 +1144,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1238,9 +1184,7 @@ "start": 648, "end": 649 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -1291,9 +1235,7 @@ "start": 665, "end": 666 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -1342,9 +1284,7 @@ "start": 706, "end": 707 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -1436,9 +1376,7 @@ "start": 734, "end": 735 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1460,9 +1398,7 @@ "start": 743, "end": 744 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1501,9 +1437,7 @@ "start": 774, "end": 777 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1554,9 +1488,7 @@ "start": 793, "end": 796 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, @@ -1591,9 +1523,7 @@ "start": 819, "end": 822 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -1651,9 +1581,7 @@ "start": 838, "end": 841 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinNestedClass.json b/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinNestedClass.json index c5354e5202b9..a596c87cb99b 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinNestedClass.json +++ b/crates/swc_ecma_parser/tests/tsc/privateClassPropertyAccessibleWithinNestedClass.json @@ -37,9 +37,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 80, "end": 81 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -156,9 +150,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -228,9 +220,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -252,9 +242,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -285,9 +273,7 @@ "start": 157, "end": 160 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -330,9 +316,7 @@ "start": 177, "end": 180 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -362,9 +346,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -404,9 +386,7 @@ "start": 238, "end": 239 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -449,9 +429,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -481,9 +459,7 @@ "start": 284, "end": 285 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -553,9 +529,7 @@ "start": 296, "end": 297 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -577,9 +551,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -610,9 +582,7 @@ "start": 329, "end": 332 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -655,9 +625,7 @@ "start": 349, "end": 352 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -687,9 +655,7 @@ "start": 375, "end": 378 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -739,9 +705,7 @@ "start": 388, "end": 391 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -774,9 +738,7 @@ "start": 410, "end": 413 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -826,9 +788,7 @@ "start": 457, "end": 460 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -951,9 +911,7 @@ "start": 518, "end": 521 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1009,9 +967,7 @@ "start": 550, "end": 553 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1067,9 +1023,7 @@ "start": 582, "end": 583 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1125,9 +1079,7 @@ "start": 612, "end": 613 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1183,9 +1135,7 @@ "start": 644, "end": 645 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1241,9 +1191,7 @@ "start": 675, "end": 676 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1299,9 +1247,7 @@ "start": 706, "end": 709 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1357,9 +1303,7 @@ "start": 739, "end": 742 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1466,9 +1410,7 @@ "start": 805, "end": 808 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1524,9 +1466,7 @@ "start": 837, "end": 840 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1582,9 +1522,7 @@ "start": 869, "end": 870 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1640,9 +1578,7 @@ "start": 899, "end": 900 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/privateConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/privateConstructorFunction.json index cbfc8e816b71..e2db1e9a5913 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/privateConstructorFunction.json @@ -73,9 +73,7 @@ "start": 295, "end": 296 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateIdentifierExpando.json b/crates/swc_ecma_parser/tests/tsc/privateIdentifierExpando.json index dbc53f6dd340..51cea6ee6666 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateIdentifierExpando.json +++ b/crates/swc_ecma_parser/tests/tsc/privateIdentifierExpando.json @@ -94,9 +94,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json b/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json index 828a85d42677..fe2e555c10c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json @@ -235,9 +235,7 @@ "start": 149, "end": 160 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -409,9 +407,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -479,9 +475,7 @@ "start": 287, "end": 290 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json index 9550c6b1119d..13d14bd25d3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json @@ -111,9 +111,7 @@ "start": 80, "end": 81 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -287,9 +285,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -323,9 +319,7 @@ "start": 163, "end": 167 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -915,9 +909,7 @@ "start": 484, "end": 495 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1020,9 +1012,7 @@ "start": 538, "end": 549 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json index bb9adea76253..bd01dfd9c368 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndAny.json @@ -145,9 +145,7 @@ "start": 107, "end": 113 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -405,9 +403,7 @@ "start": 255, "end": 262 }, - "ctxt": 0, - "value": "methodU", - "optional": false + "value": "methodU" }, "function": { "params": [ @@ -665,9 +661,7 @@ "start": 393, "end": 400 }, - "ctxt": 0, - "value": "methodN", - "optional": false + "value": "methodN" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json index 6ecb0eecf486..d59448171fa4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json @@ -185,9 +185,7 @@ "start": 200, "end": 211 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json index 3693a92f577b..ceaa255fadc3 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndObjectRestSpread.json @@ -103,9 +103,7 @@ "start": 93, "end": 99 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndStaticInitializer.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndStaticInitializer.json index 4274f402572b..c265e7256aae 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndStaticInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndStaticInitializer.json @@ -70,9 +70,7 @@ "start": 68, "end": 72 }, - "ctxt": 0, - "value": "inst", - "optional": false + "value": "inst" }, "value": { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json b/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json index 0cf19ab2ab6e..3c4bd990be05 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json @@ -179,9 +179,7 @@ "start": 79, "end": 83 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json index df73866c4219..27543869353f 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json @@ -215,9 +215,7 @@ "start": 145, "end": 156 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -337,9 +335,7 @@ "start": 218, "end": 222 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -447,9 +443,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -469,9 +463,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -491,9 +483,7 @@ "start": 290, "end": 291 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -513,9 +503,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -535,9 +523,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "StringLiteral", @@ -863,9 +849,7 @@ "start": 502, "end": 505 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1358,9 +1342,7 @@ "start": 709, "end": 712 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1486,9 +1468,7 @@ "start": 747, "end": 751 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json index 615c59a27aef..5315a81309ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json @@ -358,9 +358,7 @@ "start": 141, "end": 144 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json index ce5c56186b76..483ac4b7d335 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json @@ -63,9 +63,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -160,9 +158,7 @@ "start": 123, "end": 131 }, - "ctxt": 0, - "value": "getValue", - "optional": false + "value": "getValue" }, "function": { "params": [ @@ -545,9 +541,7 @@ "start": 352, "end": 355 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -605,9 +599,7 @@ "start": 372, "end": 380 }, - "ctxt": 0, - "value": "getValue", - "optional": false + "value": "getValue" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/privateNameConstructorSignature.json index f017bec19674..a5c17d894469 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameConstructorSignature.json @@ -126,9 +126,7 @@ "start": 81, "end": 85 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -342,9 +340,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameDeclaration.json b/crates/swc_ecma_parser/tests/tsc/privateNameDeclaration.json index 7eb5243a98ab..b37dc5cbfcc2 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameDeclaration.json @@ -109,9 +109,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -151,9 +149,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "qux", - "optional": false + "value": "qux" }, "value": { "type": "NumericLiteral", @@ -187,9 +183,7 @@ "start": 119, "end": 123 }, - "ctxt": 0, - "value": "quux", - "optional": false + "value": "quux" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameDeclarationMerging.json b/crates/swc_ecma_parser/tests/tsc/privateNameDeclarationMerging.json index 3169e84d8089..d88adb46fbad 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameDeclarationMerging.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameDeclarationMerging.json @@ -95,9 +95,7 @@ "start": 53, "end": 56 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json b/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json index f4220fce016b..34dac6794d03 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json @@ -38,9 +38,7 @@ "start": 32, "end": 43 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameField.json b/crates/swc_ecma_parser/tests/tsc/privateNameField.json index 5b12aa68dd64..a84eed40ace4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameField.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameField.json @@ -77,9 +77,7 @@ "start": 68, "end": 79 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json index 74dbb8d97045..9e53b5353eb7 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json @@ -71,9 +71,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -119,9 +117,7 @@ "start": 97, "end": 100 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldAssignment.json index cdc57666751e..ed5a1a18d9f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldAssignment.json @@ -71,9 +71,7 @@ "start": 51, "end": 62 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -730,9 +728,7 @@ "start": 423, "end": 434 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -806,9 +802,7 @@ "start": 459, "end": 470 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -882,9 +876,7 @@ "start": 496, "end": 507 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -958,9 +950,7 @@ "start": 533, "end": 544 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1034,9 +1024,7 @@ "start": 570, "end": 581 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1110,9 +1098,7 @@ "start": 607, "end": 618 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1186,9 +1172,7 @@ "start": 645, "end": 656 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1262,9 +1246,7 @@ "start": 682, "end": 693 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1338,9 +1320,7 @@ "start": 720, "end": 731 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1414,9 +1394,7 @@ "start": 758, "end": 769 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1490,9 +1468,7 @@ "start": 798, "end": 809 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1566,9 +1542,7 @@ "start": 836, "end": 847 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1642,9 +1616,7 @@ "start": 874, "end": 885 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1687,9 +1659,7 @@ "start": 919, "end": 930 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json index 0c6612ed48e9..cf8dc631a5fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json @@ -90,9 +90,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -233,9 +231,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -269,9 +265,7 @@ "start": 132, "end": 136 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -908,9 +902,7 @@ "start": 482, "end": 493 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1013,9 +1005,7 @@ "start": 536, "end": 547 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json index 13b2c08720d4..c52509266f0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json @@ -63,9 +63,7 @@ "start": 58, "end": 69 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -111,9 +109,7 @@ "start": 94, "end": 97 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -150,9 +146,7 @@ "start": 133, "end": 137 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "NumericLiteral", @@ -236,9 +230,7 @@ "start": 191, "end": 201 }, - "ctxt": 0, - "value": "otherClass", - "optional": false + "value": "otherClass" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json index 3c21b9d9e60a..f6df1408f5d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldDestructuredBinding.json @@ -70,9 +70,7 @@ "start": 67, "end": 78 }, - "ctxt": 0, - "value": "otherObject", - "optional": false + "value": "otherObject" }, "value": { "type": "NewExpression", @@ -117,9 +115,7 @@ "start": 94, "end": 104 }, - "ctxt": 0, - "value": "testObject", - "optional": false + "value": "testObject" }, "function": { "params": [], @@ -158,9 +154,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -180,9 +174,7 @@ "start": 133, "end": 134 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -223,9 +215,7 @@ "start": 151, "end": 160 }, - "ctxt": 0, - "value": "testArray", - "optional": false + "value": "testArray" }, "function": { "params": [], @@ -310,9 +300,7 @@ "start": 200, "end": 211 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -403,9 +391,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -479,9 +465,7 @@ "start": 277, "end": 287 }, - "ctxt": 0, - "value": "testObject", - "optional": false + "value": "testObject" } }, "arguments": [], @@ -579,9 +563,7 @@ "start": 325, "end": 334 }, - "ctxt": 0, - "value": "testArray", - "optional": false + "value": "testArray" } }, "arguments": [], @@ -624,9 +606,7 @@ "start": 350, "end": 351 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "MemberExpression", @@ -659,9 +639,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayPattern", @@ -716,9 +694,7 @@ "start": 389, "end": 390 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -738,9 +714,7 @@ "start": 395, "end": 396 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayExpression", @@ -929,9 +903,7 @@ "start": 466, "end": 467 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -980,9 +952,7 @@ "start": 486, "end": 487 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayPattern", @@ -1053,9 +1023,7 @@ "start": 513, "end": 514 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayExpression", @@ -1194,9 +1162,7 @@ "start": 569, "end": 580 }, - "ctxt": 0, - "value": "otherObject", - "optional": false + "value": "otherObject" } }, "property": { @@ -1249,9 +1215,7 @@ "start": 616, "end": 620 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json index 9b5d754e9310..74f0040be5e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldParenthesisLeftAssignment.json @@ -77,9 +77,7 @@ "start": 54, "end": 65 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -188,9 +186,7 @@ "start": 119, "end": 121 }, - "ctxt": 0, - "value": "t1", - "optional": false + "value": "t1" }, "function": { "params": [ @@ -337,9 +333,7 @@ "start": 179, "end": 181 }, - "ctxt": 0, - "value": "t2", - "optional": false + "value": "t2" }, "function": { "params": [ @@ -500,9 +494,7 @@ "start": 243, "end": 245 }, - "ctxt": 0, - "value": "t3", - "optional": false + "value": "t3" }, "function": { "params": [ @@ -634,9 +626,7 @@ "start": 293, "end": 295 }, - "ctxt": 0, - "value": "t4", - "optional": false + "value": "t4" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldUnaryMutation.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldUnaryMutation.json index fcbda6460018..8853a66ba1e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldUnaryMutation.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldUnaryMutation.json @@ -85,9 +85,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1485,9 +1483,7 @@ "start": 790, "end": 794 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -1551,9 +1547,7 @@ "start": 812, "end": 823 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1616,9 +1610,7 @@ "start": 848, "end": 859 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1681,9 +1673,7 @@ "start": 886, "end": 897 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1746,9 +1736,7 @@ "start": 922, "end": 933 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1832,9 +1820,7 @@ "start": 966, "end": 977 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1921,9 +1907,7 @@ "start": 1012, "end": 1023 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2010,9 +1994,7 @@ "start": 1060, "end": 1071 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2099,9 +2081,7 @@ "start": 1106, "end": 1117 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2166,9 +2146,7 @@ "start": 1145, "end": 1156 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2232,9 +2210,7 @@ "start": 1175, "end": 1186 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2299,9 +2275,7 @@ "start": 1208, "end": 1219 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2372,9 +2346,7 @@ "start": 1250, "end": 1261 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2438,9 +2410,7 @@ "start": 1280, "end": 1291 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2505,9 +2475,7 @@ "start": 1311, "end": 1322 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2585,9 +2553,7 @@ "start": 1352, "end": 1363 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2657,9 +2623,7 @@ "start": 1390, "end": 1401 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2729,9 +2693,7 @@ "start": 1430, "end": 1441 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2801,9 +2763,7 @@ "start": 1468, "end": 1479 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2894,9 +2854,7 @@ "start": 1514, "end": 1525 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -2990,9 +2948,7 @@ "start": 1562, "end": 1573 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3086,9 +3042,7 @@ "start": 1612, "end": 1623 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3182,9 +3136,7 @@ "start": 1660, "end": 1671 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3250,9 +3202,7 @@ "start": 1700, "end": 1711 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3316,9 +3266,7 @@ "start": 1730, "end": 1741 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3389,9 +3337,7 @@ "start": 1764, "end": 1775 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3463,9 +3409,7 @@ "start": 1807, "end": 1818 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3529,9 +3473,7 @@ "start": 1837, "end": 1848 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3602,9 +3544,7 @@ "start": 1869, "end": 1880 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -3657,9 +3597,7 @@ "start": 1906, "end": 1917 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json index 0e268769d0c3..1222e6ad82b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json @@ -37,9 +37,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -106,9 +104,7 @@ "start": 104, "end": 105 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -167,9 +163,7 @@ "start": 129, "end": 135 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -222,9 +216,7 @@ "start": 156, "end": 159 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -338,9 +330,7 @@ "start": 213, "end": 216 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -457,9 +447,7 @@ "start": 283, "end": 287 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -512,9 +500,7 @@ "start": 308, "end": 311 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -582,9 +568,7 @@ "start": 338, "end": 341 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameImplicitDeclaration.json b/crates/swc_ecma_parser/tests/tsc/privateNameImplicitDeclaration.json index 41b014235ab9..4aa38e6897d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameImplicitDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameImplicitDeclaration.json @@ -38,9 +38,7 @@ "start": 117, "end": 128 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json b/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json index 5cd4518a7206..a6cebb63423d 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameInInExpressionUnused.json @@ -115,9 +115,7 @@ "start": 177, "end": 182 }, - "ctxt": 0, - "value": "isFoo", - "optional": false + "value": "isFoo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json index 834c42437e62..41b8749cf838 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json @@ -70,9 +70,7 @@ "start": 59, "end": 68 }, - "ctxt": 0, - "value": "something", - "optional": false + "value": "something" }, "function": { "params": [ @@ -301,9 +299,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", @@ -342,9 +338,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -484,9 +478,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", @@ -525,9 +517,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameLateSuper.json b/crates/swc_ecma_parser/tests/tsc/privateNameLateSuper.json index 3cb9e226f0dd..13d7d219761a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameLateSuper.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameLateSuper.json @@ -89,9 +89,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameLateSuperUseDefineForClassFields.json b/crates/swc_ecma_parser/tests/tsc/privateNameLateSuperUseDefineForClassFields.json index 6dfa86451283..812f338d5581 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameLateSuperUseDefineForClassFields.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameLateSuperUseDefineForClassFields.json @@ -89,9 +89,7 @@ "start": 105, "end": 116 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json index 68dd75e48db2..7c916f0206e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json @@ -146,9 +146,7 @@ "start": 112, "end": 123 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json index 77a81c2586b5..3d76b5e0ca5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethodAssignment.json @@ -88,9 +88,7 @@ "start": 55, "end": 66 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -395,9 +393,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -441,9 +437,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethodAsync.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethodAsync.json index 958ee86d7026..40f02c54d685 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethodAsync.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethodAsync.json @@ -113,9 +113,7 @@ "start": 79, "end": 86 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -162,9 +160,7 @@ "start": 104, "end": 107 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -352,9 +348,7 @@ "start": 181, "end": 185 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "arguments": [], @@ -366,9 +360,7 @@ "start": 188, "end": 193 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -465,9 +457,7 @@ "start": 222, "end": 226 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "arguments": [], @@ -481,9 +471,7 @@ "start": 230, "end": 235 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -664,9 +652,7 @@ "start": 324, "end": 331 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -773,9 +759,7 @@ "start": 355, "end": 358 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -787,9 +771,7 @@ "start": 361, "end": 365 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -817,9 +799,7 @@ "start": 374, "end": 377 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json index 27a6d6860fce..9a38bb1ef684 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json @@ -87,9 +87,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -237,9 +235,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -273,9 +269,7 @@ "start": 105, "end": 109 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -865,9 +859,7 @@ "start": 418, "end": 429 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -989,9 +981,7 @@ "start": 473, "end": 484 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1123,9 +1113,7 @@ "start": 541, "end": 552 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1255,9 +1243,7 @@ "start": 615, "end": 626 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" } }, "arguments": [], @@ -1363,9 +1349,7 @@ "start": 673, "end": 684 }, - "ctxt": 0, - "value": "getInstance", - "optional": false + "value": "getInstance" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethodInStaticFieldInit.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethodInStaticFieldInit.json index 541ab4325e15..ade13c497cb8 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethodInStaticFieldInit.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethodInStaticFieldInit.json @@ -37,9 +37,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "CallExpression", @@ -199,9 +197,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -229,9 +225,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameNestedClassNameConflict.json b/crates/swc_ecma_parser/tests/tsc/privateNameNestedClassNameConflict.json index 0b1dcf814c02..7aeb20d5963f 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameNestedClassNameConflict.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameNestedClassNameConflict.json @@ -77,9 +77,7 @@ "start": 53, "end": 64 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json b/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json index 220a94a4e13d..293a646305c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json @@ -97,9 +97,7 @@ "start": 57, "end": 60 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -181,9 +179,7 @@ "start": 93, "end": 96 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -264,9 +260,7 @@ "start": 145, "end": 148 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -311,9 +305,7 @@ "start": 157, "end": 160 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json b/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json index ab0b0960ffa6..2a9dc42bc476 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameSetterExprReturnValue.json @@ -114,9 +114,7 @@ "start": 62, "end": 65 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -263,9 +261,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -352,9 +348,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameSetterNoGetter.json b/crates/swc_ecma_parser/tests/tsc/privateNameSetterNoGetter.json index 763a242a59d3..d8a5138154d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameSetterNoGetter.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameSetterNoGetter.json @@ -117,9 +117,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -243,9 +241,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -290,9 +286,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json index 8acdb7c012cf..e08682e0978a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json @@ -235,9 +235,7 @@ "start": 170, "end": 181 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -415,9 +413,7 @@ "start": 271, "end": 274 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -488,9 +484,7 @@ "start": 302, "end": 305 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json index c5684ee0d47e..f65d3d3eb095 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json @@ -321,9 +321,7 @@ "start": 190, "end": 194 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -913,9 +911,7 @@ "start": 511, "end": 519 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1018,9 +1014,7 @@ "start": 569, "end": 577 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json index 56eb5d134f20..e317300202a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.json @@ -111,9 +111,7 @@ "start": 93, "end": 99 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -210,9 +208,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -301,9 +297,7 @@ "start": 199, "end": 205 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ @@ -400,9 +394,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json index 050ccf620218..97e255f2dbc5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json @@ -71,9 +71,7 @@ "start": 72, "end": 83 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -119,9 +117,7 @@ "start": 104, "end": 107 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -192,9 +188,7 @@ "start": 142, "end": 145 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAssignment.json index 25a959b705a3..5359de67fda5 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAssignment.json @@ -71,9 +71,7 @@ "start": 58, "end": 69 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -769,9 +767,7 @@ "start": 391, "end": 399 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -845,9 +841,7 @@ "start": 424, "end": 432 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -921,9 +915,7 @@ "start": 458, "end": 466 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -997,9 +989,7 @@ "start": 492, "end": 500 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1073,9 +1063,7 @@ "start": 526, "end": 534 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1149,9 +1137,7 @@ "start": 560, "end": 568 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1225,9 +1211,7 @@ "start": 595, "end": 603 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1301,9 +1285,7 @@ "start": 629, "end": 637 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1377,9 +1359,7 @@ "start": 664, "end": 672 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1453,9 +1433,7 @@ "start": 699, "end": 707 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1529,9 +1507,7 @@ "start": 736, "end": 744 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1605,9 +1581,7 @@ "start": 771, "end": 779 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1681,9 +1655,7 @@ "start": 806, "end": 814 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1726,9 +1698,7 @@ "start": 848, "end": 856 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json index db983383707b..865d7543ffbc 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json @@ -90,9 +90,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -233,9 +231,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -269,9 +265,7 @@ "start": 148, "end": 152 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -929,9 +923,7 @@ "start": 477, "end": 485 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1034,9 +1026,7 @@ "start": 528, "end": 536 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json index aaa15765440a..ba5871f94985 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json @@ -63,9 +63,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -111,9 +109,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -192,9 +188,7 @@ "start": 167, "end": 171 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": { "type": "NumericLiteral", @@ -228,9 +222,7 @@ "start": 187, "end": 192 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" }, "value": { "type": "NumericLiteral", @@ -314,9 +306,7 @@ "start": 252, "end": 262 }, - "ctxt": 0, - "value": "otherClass", - "optional": false + "value": "otherClass" }, "value": { "type": "NumericLiteral", @@ -366,9 +356,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -421,9 +409,7 @@ "start": 304, "end": 307 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -466,9 +452,7 @@ "start": 315, "end": 319 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } } } @@ -526,9 +510,7 @@ "start": 336, "end": 340 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "right": { @@ -595,9 +577,7 @@ "start": 368, "end": 373 }, - "ctxt": 0, - "value": "field", - "optional": false + "value": "field" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json index 3d23071b1304..37c758845447 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldDestructuredBinding.json @@ -70,9 +70,7 @@ "start": 109, "end": 119 }, - "ctxt": 0, - "value": "otherClass", - "optional": false + "value": "otherClass" }, "value": { "type": "Identifier", @@ -107,9 +105,7 @@ "start": 129, "end": 139 }, - "ctxt": 0, - "value": "testObject", - "optional": false + "value": "testObject" }, "function": { "params": [], @@ -148,9 +144,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -170,9 +164,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -213,9 +205,7 @@ "start": 186, "end": 195 }, - "ctxt": 0, - "value": "testArray", - "optional": false + "value": "testArray" }, "function": { "params": [], @@ -300,9 +290,7 @@ "start": 235, "end": 246 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -393,9 +381,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -472,9 +458,7 @@ "start": 309, "end": 319 }, - "ctxt": 0, - "value": "testObject", - "optional": false + "value": "testObject" } }, "arguments": [], @@ -575,9 +559,7 @@ "start": 354, "end": 363 }, - "ctxt": 0, - "value": "testArray", - "optional": false + "value": "testArray" } }, "arguments": [], @@ -620,9 +602,7 @@ "start": 379, "end": 380 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "MemberExpression", @@ -658,9 +638,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayPattern", @@ -718,9 +696,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -740,9 +716,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayExpression", @@ -937,9 +911,7 @@ "start": 483, "end": 484 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "AssignmentPattern", @@ -991,9 +963,7 @@ "start": 500, "end": 501 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayPattern", @@ -1067,9 +1037,7 @@ "start": 524, "end": 525 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrayExpression", @@ -1211,9 +1179,7 @@ "start": 577, "end": 587 }, - "ctxt": 0, - "value": "otherClass", - "optional": false + "value": "otherClass" } }, "property": { @@ -1266,9 +1232,7 @@ "start": 623, "end": 627 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldUnaryMutation.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldUnaryMutation.json index ee1fcc320915..9fb365951bbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldUnaryMutation.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldUnaryMutation.json @@ -85,9 +85,7 @@ "start": 66, "end": 77 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -807,9 +805,7 @@ "start": 392, "end": 396 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -873,9 +869,7 @@ "start": 414, "end": 422 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -938,9 +932,7 @@ "start": 447, "end": 455 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1003,9 +995,7 @@ "start": 482, "end": 490 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1068,9 +1058,7 @@ "start": 515, "end": 523 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1154,9 +1142,7 @@ "start": 556, "end": 564 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1243,9 +1229,7 @@ "start": 599, "end": 607 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1332,9 +1316,7 @@ "start": 644, "end": 652 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1421,9 +1403,7 @@ "start": 687, "end": 695 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1488,9 +1468,7 @@ "start": 723, "end": 731 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1554,9 +1532,7 @@ "start": 750, "end": 758 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1621,9 +1597,7 @@ "start": 780, "end": 788 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1694,9 +1668,7 @@ "start": 819, "end": 827 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1760,9 +1732,7 @@ "start": 846, "end": 854 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1827,9 +1797,7 @@ "start": 874, "end": 882 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1881,9 +1849,7 @@ "start": 907, "end": 915 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json index a0008813c47d..96fd3a972deb 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json @@ -146,9 +146,7 @@ "start": 119, "end": 130 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json index bec4a56ca482..a114362e6424 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodAssignment.json @@ -88,9 +88,7 @@ "start": 62, "end": 73 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -398,9 +396,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -447,9 +443,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json index 9a33d036041b..d5b5e2a7d3f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json @@ -87,9 +87,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -237,9 +235,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -273,9 +269,7 @@ "start": 126, "end": 130 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [], @@ -886,9 +880,7 @@ "start": 425, "end": 433 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1013,9 +1005,7 @@ "start": 475, "end": 483 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1150,9 +1140,7 @@ "start": 538, "end": 546 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1285,9 +1273,7 @@ "start": 607, "end": 615 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" } }, "arguments": [], @@ -1393,9 +1379,7 @@ "start": 669, "end": 677 }, - "ctxt": 0, - "value": "getClass", - "optional": false + "value": "getClass" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodInStaticFieldInit.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodInStaticFieldInit.json index f95fe0210358..adb1e54ee6a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodInStaticFieldInit.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodInStaticFieldInit.json @@ -37,9 +37,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "CallExpression", @@ -189,9 +187,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -219,9 +215,7 @@ "start": 112, "end": 113 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json index 42006e395a1b..fd621b78a528 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json @@ -537,9 +537,7 @@ "start": 410, "end": 421 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -960,9 +958,7 @@ "start": 597, "end": 608 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json b/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json index 6e68b658897b..872418a00feb 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json @@ -110,9 +110,7 @@ "start": 128, "end": 139 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -158,9 +156,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -345,9 +341,7 @@ "start": 246, "end": 257 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -393,9 +387,7 @@ "start": 279, "end": 282 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -792,9 +784,7 @@ "start": 468, "end": 479 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -840,9 +830,7 @@ "start": 501, "end": 504 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json b/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json index 2d8dfd54fb58..2840f2d5916a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json @@ -70,9 +70,7 @@ "start": 129, "end": 131 }, - "ctxt": 0, - "value": "dd", - "optional": false + "value": "dd" }, "value": { "type": "MemberExpression", @@ -206,9 +204,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -294,9 +290,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" }, "value": { "type": "ClassExpression", @@ -329,9 +323,7 @@ "start": 348, "end": 349 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -477,9 +469,7 @@ "start": 484, "end": 485 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" }, "function": { "params": [], @@ -525,9 +515,7 @@ "start": 532, "end": 533 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -755,9 +743,7 @@ "start": 728, "end": 730 }, - "ctxt": 0, - "value": "dd", - "optional": false + "value": "dd" }, "value": { "type": "MemberExpression", @@ -891,9 +877,7 @@ "start": 827, "end": 828 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -979,9 +963,7 @@ "start": 896, "end": 897 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" }, "value": { "type": "ClassExpression", @@ -1014,9 +996,7 @@ "start": 931, "end": 932 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1162,9 +1142,7 @@ "start": 1066, "end": 1067 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" }, "function": { "params": [], @@ -1210,9 +1188,7 @@ "start": 1114, "end": 1115 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json index eeacb7c36404..ecb4b99d09d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json @@ -77,9 +77,7 @@ "start": 67, "end": 78 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -220,9 +218,7 @@ "start": 158, "end": 169 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json index e4b9e6f18a77..858415e0897e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json @@ -537,9 +537,7 @@ "start": 351, "end": 362 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -942,9 +940,7 @@ "start": 549, "end": 560 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json index 42006e395a1b..fd621b78a528 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json @@ -537,9 +537,7 @@ "start": 410, "end": 421 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -960,9 +958,7 @@ "start": 597, "end": 608 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json index 862828acfc6d..af583bf9b4fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json @@ -271,9 +271,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -307,9 +305,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json index 09938c07bc28..2f52b060a224 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json @@ -257,9 +257,7 @@ "start": 233, "end": 235 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [ @@ -631,9 +629,7 @@ "start": 431, "end": 433 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json index bb145637a9d6..96315c5cb35c 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json @@ -103,9 +103,7 @@ "start": 75, "end": 91 }, - "ctxt": 0, - "value": "accessChildProps", - "optional": false + "value": "accessChildProps" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json index 9cf0e8832496..8c59f7128d18 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json @@ -103,9 +103,7 @@ "start": 78, "end": 94 }, - "ctxt": 0, - "value": "accessChildProps", - "optional": false + "value": "accessChildProps" }, "function": { "params": [], @@ -483,9 +481,7 @@ "start": 455, "end": 471 }, - "ctxt": 0, - "value": "accessChildProps", - "optional": false + "value": "accessChildProps" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json index c1f6ed9464dc..56d800522c0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json @@ -68,9 +68,7 @@ "start": 70, "end": 74 }, - "ctxt": 0, - "value": "copy", - "optional": false + "value": "copy" }, "function": { "params": [ @@ -489,9 +487,7 @@ "start": 319, "end": 323 }, - "ctxt": 0, - "value": "copy", - "optional": false + "value": "copy" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json index 3970bce6dc77..94d1a5723609 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-3.json @@ -161,9 +161,7 @@ "start": 336, "end": 340 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/privateProtectedMembersAreNotAccessibleDestructuring.json b/crates/swc_ecma_parser/tests/tsc/privateProtectedMembersAreNotAccessibleDestructuring.json index f3ac5ae79f21..4c136badc9d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateProtectedMembersAreNotAccessibleDestructuring.json +++ b/crates/swc_ecma_parser/tests/tsc/privateProtectedMembersAreNotAccessibleDestructuring.json @@ -37,9 +37,7 @@ "start": 23, "end": 27 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 43, "end": 47 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" }, "value": null, "typeAnnotation": null, @@ -93,9 +89,7 @@ "start": 61, "end": 74 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" }, "function": { "params": [], @@ -138,9 +132,7 @@ "start": 85, "end": 86 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -189,9 +181,7 @@ "start": 105, "end": 109 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" }, "value": { "type": "Identifier", @@ -213,9 +203,7 @@ "start": 114, "end": 118 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" }, "value": { "type": "Identifier", @@ -386,9 +374,7 @@ "start": 214, "end": 216 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "function": { "params": [], @@ -437,9 +423,7 @@ "start": 235, "end": 239 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" }, "value": { "type": "Identifier", @@ -499,9 +483,7 @@ "start": 276, "end": 280 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" }, "value": { "type": "Identifier", @@ -822,9 +804,7 @@ "start": 421, "end": 425 }, - "ctxt": 0, - "value": "priv", - "optional": false + "value": "priv" }, "value": { "type": "Identifier", @@ -846,9 +826,7 @@ "start": 430, "end": 434 }, - "ctxt": 0, - "value": "prot", - "optional": false + "value": "prot" }, "value": { "type": "Identifier", @@ -870,9 +848,7 @@ "start": 439, "end": 452 }, - "ctxt": 0, - "value": "privateMethod", - "optional": false + "value": "privateMethod" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/privateStaticMemberAccessibility.json b/crates/swc_ecma_parser/tests/tsc/privateStaticMemberAccessibility.json index 6aee023256ad..2c190b49a943 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateStaticMemberAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/privateStaticMemberAccessibility.json @@ -37,9 +37,7 @@ "start": 33, "end": 36 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "MemberExpression", @@ -132,9 +128,7 @@ "start": 100, "end": 103 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null, @@ -160,9 +154,7 @@ "start": 118, "end": 122 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": { "type": "ArrowFunctionExpression", @@ -194,9 +186,7 @@ "start": 136, "end": 139 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateStaticNameShadowing.json b/crates/swc_ecma_parser/tests/tsc/privateStaticNameShadowing.json index 1ffcbc44e76b..cf84537346d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateStaticNameShadowing.json +++ b/crates/swc_ecma_parser/tests/tsc/privateStaticNameShadowing.json @@ -97,9 +97,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule.json b/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule.json index f708219c8142..ff1a914c3269 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule.json +++ b/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule.json @@ -37,9 +37,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -196,9 +192,7 @@ "start": 241, "end": 244 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule2.json b/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule2.json index bb0f2112eba3..0d91342d6018 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateStaticNotAccessibleInClodule2.json @@ -37,9 +37,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 233, "end": 236 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -274,9 +268,7 @@ "start": 284, "end": 287 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json b/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json index 5ddc152b0539..80499e1e2fe4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json +++ b/crates/swc_ecma_parser/tests/tsc/privateWriteOnlyAccessorRead.json @@ -424,9 +424,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -486,9 +484,7 @@ "start": 203, "end": 206 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -541,9 +537,7 @@ "start": 225, "end": 228 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -735,9 +729,7 @@ "start": 334, "end": 337 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -786,9 +778,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "MemberExpression", @@ -832,9 +822,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "ObjectExpression", @@ -981,9 +969,7 @@ "start": 452, "end": 455 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "MemberExpression", @@ -1019,9 +1005,7 @@ "start": 469, "end": 472 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -1085,9 +1069,7 @@ "start": 508, "end": 511 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectPattern", @@ -1140,9 +1122,7 @@ "start": 530, "end": 533 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeAnnotation": null @@ -1220,9 +1200,7 @@ "start": 578, "end": 579 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "MemberExpression", @@ -1585,9 +1563,7 @@ "start": 781, "end": 782 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json b/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json index be660655babd..06e6449b8da1 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json @@ -104,9 +104,7 @@ "start": 273, "end": 277 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -151,9 +149,7 @@ "start": 324, "end": 329 }, - "ctxt": 0, - "value": "_map2", - "optional": false + "value": "_map2" } }, "right": { @@ -418,9 +414,7 @@ "start": 545, "end": 549 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -499,9 +493,7 @@ "start": 590, "end": 595 }, - "ctxt": 0, - "value": "_map2", - "optional": false + "value": "_map2" } }, "property": { @@ -580,9 +572,7 @@ "start": 637, "end": 641 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -661,9 +651,7 @@ "start": 682, "end": 687 }, - "ctxt": 0, - "value": "_map2", - "optional": false + "value": "_map2" } }, "property": { @@ -767,9 +755,7 @@ "start": 770, "end": 771 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -815,9 +801,7 @@ "start": 785, "end": 786 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -874,9 +858,7 @@ "start": 796, "end": 805 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -894,9 +876,7 @@ "start": 814, "end": 816 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" }, "params": [], "decorators": [], @@ -938,9 +918,7 @@ "start": 833, "end": 834 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -959,9 +937,7 @@ "start": 842, "end": 844 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" }, "params": [], "decorators": [], @@ -1010,9 +986,7 @@ "start": 854, "end": 855 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -1041,9 +1015,7 @@ "start": 863, "end": 864 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1083,9 +1055,7 @@ "start": 882, "end": 883 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -1213,9 +1183,7 @@ "start": 941, "end": 942 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1271,9 +1239,7 @@ "start": 976, "end": 977 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1336,9 +1302,7 @@ "start": 1011, "end": 1013 }, - "ctxt": 0, - "value": "m1", - "optional": false + "value": "m1" } }, "arguments": [], @@ -1404,9 +1368,7 @@ "start": 1049, "end": 1051 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccess.json b/crates/swc_ecma_parser/tests/tsc/propertyAccess.json index ab2f9d9bea0c..90ff72fc5aae 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccess.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -536,9 +532,7 @@ "start": 242, "end": 247 }, - "ctxt": 0, - "value": "North", - "optional": false + "value": "North" } } }, @@ -575,9 +569,7 @@ "start": 262, "end": 266 }, - "ctxt": 0, - "value": "East", - "optional": false + "value": "East" } } } @@ -853,9 +845,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -875,9 +865,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -897,9 +885,7 @@ "start": 429, "end": 430 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "ObjectExpression", @@ -916,9 +902,7 @@ "start": 434, "end": 435 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "StringLiteral", @@ -938,9 +922,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "NumericLiteral", @@ -960,9 +942,7 @@ "start": 453, "end": 454 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" }, "value": { "type": "ArrowFunctionExpression", @@ -1249,9 +1229,7 @@ "start": 631, "end": 632 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1300,9 +1278,7 @@ "start": 688, "end": 689 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1334,9 +1310,7 @@ "start": 699, "end": 700 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1368,9 +1342,7 @@ "start": 707, "end": 708 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1395,9 +1367,7 @@ "start": 718, "end": 719 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } @@ -1453,9 +1423,7 @@ "start": 785, "end": 786 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1511,9 +1479,7 @@ "start": 877, "end": 891 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "definite": false @@ -1569,9 +1535,7 @@ "start": 989, "end": 992 }, - "ctxt": 0, - "value": "qqq", - "optional": false + "value": "qqq" } }, "definite": false @@ -2199,9 +2163,7 @@ "start": 1867, "end": 1872 }, - "ctxt": 0, - "value": "South", - "optional": false + "value": "South" } } } @@ -2973,9 +2935,7 @@ "start": 2857, "end": 2861 }, - "ctxt": 0, - "value": "East", - "optional": false + "value": "East" } } } @@ -3464,9 +3424,7 @@ "start": 3424, "end": 3429 }, - "ctxt": 0, - "value": "South", - "optional": false + "value": "South" } } } @@ -3890,9 +3848,7 @@ "start": 4021, "end": 4025 }, - "ctxt": 0, - "value": "East", - "optional": false + "value": "East" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.2.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.2.json index 33bcf2ea64d1..248f5421ab3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.2.json @@ -139,9 +139,7 @@ "start": 69, "end": 70 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -329,9 +327,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -341,9 +337,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -524,9 +518,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -535,9 +527,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.3.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.3.json index fd289232fe85..a350a17c4c0b 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.3.json @@ -94,9 +94,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -158,9 +156,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -170,9 +166,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -221,9 +215,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -285,9 +277,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -297,9 +287,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -348,9 +336,7 @@ "start": 96, "end": 97 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -412,9 +398,7 @@ "start": 106, "end": 107 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -424,9 +408,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -475,9 +457,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -539,9 +519,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -551,9 +529,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -601,9 +577,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -673,9 +647,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +657,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -744,9 +714,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -816,9 +784,7 @@ "start": 178, "end": 179 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -828,9 +794,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -880,9 +844,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -950,9 +912,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -962,9 +922,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1020,9 +978,7 @@ "start": 241, "end": 242 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1091,9 +1047,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1103,9 +1057,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1159,9 +1111,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Invalid", @@ -1190,9 +1140,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1243,9 +1191,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Invalid", @@ -1274,9 +1220,7 @@ "start": 323, "end": 324 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1357,9 +1301,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1440,9 +1382,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.json index 4d7d69da1019..8209df820b0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessChain.json @@ -139,9 +139,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -329,9 +327,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -341,9 +337,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -524,9 +518,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -535,9 +527,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -799,9 +789,7 @@ "start": 255, "end": 256 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -810,9 +798,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -822,9 +808,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -834,9 +818,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1113,9 +1095,7 @@ "start": 328, "end": 329 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "arguments": [], @@ -1128,9 +1108,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1140,9 +1118,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -1152,9 +1128,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } @@ -1372,9 +1346,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1420,9 +1392,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -1500,9 +1470,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -1513,9 +1481,7 @@ "start": 476, "end": 477 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1580,9 +1546,7 @@ "start": 483, "end": 484 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -1593,9 +1557,7 @@ "start": 486, "end": 487 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json index 73c2674e8e8c..7b57cc93a4b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json @@ -37,9 +37,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -239,9 +237,7 @@ "start": 225, "end": 232 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -416,9 +412,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -693,9 +687,7 @@ "start": 346, "end": 349 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -704,9 +696,7 @@ "start": 350, "end": 357 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -778,9 +768,7 @@ "start": 373, "end": 376 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1027,9 +1015,7 @@ "start": 449, "end": 456 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -1165,9 +1151,7 @@ "start": 503, "end": 506 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -1347,9 +1331,7 @@ "start": 599, "end": 606 }, - "ctxt": 0, - "value": "getDate", - "optional": false + "value": "getDate" } }, "arguments": [], @@ -1474,9 +1456,7 @@ "start": 630, "end": 633 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json index 40aa65ad355f..27ebe6194332 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json @@ -37,9 +37,7 @@ "start": 99, "end": 102 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -140,9 +138,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -252,9 +248,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -454,9 +448,7 @@ "start": 332, "end": 335 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -490,9 +482,7 @@ "start": 350, "end": 351 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [ @@ -680,9 +670,7 @@ "start": 429, "end": 432 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -914,9 +902,7 @@ "start": 737, "end": 738 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1043,9 +1029,7 @@ "start": 768, "end": 769 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [ @@ -1401,9 +1385,7 @@ "start": 922, "end": 925 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1412,9 +1394,7 @@ "start": 926, "end": 929 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1486,9 +1466,7 @@ "start": 945, "end": 948 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -2139,9 +2117,7 @@ "start": 1261, "end": 1264 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2379,9 +2355,7 @@ "start": 1392, "end": 1395 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2544,9 +2518,7 @@ "start": 1445, "end": 1448 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -2761,9 +2733,7 @@ "start": 1563, "end": 1566 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2927,9 +2897,7 @@ "start": 1749, "end": 1752 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json index 69472c7b0aa0..ec1943a781a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json @@ -37,9 +37,7 @@ "start": 99, "end": 102 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -140,9 +138,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -252,9 +248,7 @@ "start": 239, "end": 240 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -454,9 +448,7 @@ "start": 354, "end": 357 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -490,9 +482,7 @@ "start": 372, "end": 373 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [ @@ -680,9 +670,7 @@ "start": 473, "end": 476 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -914,9 +902,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1043,9 +1029,7 @@ "start": 546, "end": 547 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [ @@ -1401,9 +1385,7 @@ "start": 640, "end": 643 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1412,9 +1394,7 @@ "start": 644, "end": 647 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1486,9 +1466,7 @@ "start": 663, "end": 666 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1904,9 +1882,7 @@ "start": 780, "end": 783 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2090,9 +2066,7 @@ "start": 951, "end": 954 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2252,9 +2226,7 @@ "start": 1152, "end": 1155 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -2434,9 +2406,7 @@ "start": 1286, "end": 1289 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2600,9 +2570,7 @@ "start": 1313, "end": 1316 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json index 1e2b9da57abd..bf8918dd873c 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json @@ -37,9 +37,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -239,9 +237,7 @@ "start": 128, "end": 135 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -416,9 +412,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -693,9 +687,7 @@ "start": 249, "end": 252 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -704,9 +696,7 @@ "start": 253, "end": 260 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -778,9 +768,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1015,9 +1003,7 @@ "start": 354, "end": 361 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -1167,9 +1153,7 @@ "start": 416, "end": 419 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -1349,9 +1333,7 @@ "start": 525, "end": 532 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -1446,9 +1428,7 @@ "start": 547, "end": 550 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "CallExpression", @@ -1492,9 +1472,7 @@ "start": 554, "end": 557 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1506,9 +1484,7 @@ "start": 560, "end": 567 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -1577,9 +1553,7 @@ "start": 584, "end": 587 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json index 25723abc8219..22db74c3d18b 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -140,9 +138,7 @@ "start": 71, "end": 74 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -252,9 +248,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -461,9 +455,7 @@ "start": 248, "end": 251 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -499,9 +491,7 @@ "start": 258, "end": 265 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -733,9 +723,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1067,9 +1055,7 @@ "start": 389, "end": 392 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1078,9 +1064,7 @@ "start": 393, "end": 400 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -1152,9 +1136,7 @@ "start": 416, "end": 419 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -1428,9 +1410,7 @@ "start": 514, "end": 521 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -1580,9 +1560,7 @@ "start": 572, "end": 575 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -1762,9 +1740,7 @@ "start": 687, "end": 694 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -1898,9 +1874,7 @@ "start": 727, "end": 730 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "CallExpression", @@ -1944,9 +1918,7 @@ "start": 734, "end": 737 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1971,9 +1943,7 @@ "start": 741, "end": 748 }, - "ctxt": 0, - "value": "notHere", - "optional": false + "value": "notHere" } }, "arguments": [], @@ -2042,9 +2012,7 @@ "start": 765, "end": 768 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json index cdfca82ff50d..233710c5f5c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -239,9 +237,7 @@ "start": 116, "end": 124 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -389,9 +385,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -639,9 +633,7 @@ "start": 229, "end": 232 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -650,9 +642,7 @@ "start": 233, "end": 241 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -724,9 +714,7 @@ "start": 257, "end": 260 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -944,9 +932,7 @@ "start": 323, "end": 331 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1096,9 +1082,7 @@ "start": 387, "end": 390 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -1278,9 +1262,7 @@ "start": 481, "end": 489 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1388,9 +1370,7 @@ "start": 513, "end": 516 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json index 12664db7e395..368895f87d89 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json @@ -176,9 +176,7 @@ "start": 70, "end": 71 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -210,9 +208,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -244,9 +240,7 @@ "start": 88, "end": 114 }, - "ctxt": 0, - "value": "isNotNecessarilyNeverFalse", - "optional": false + "value": "isNotNecessarilyNeverFalse" } } }, @@ -402,9 +396,7 @@ "start": 184, "end": 188 }, - "ctxt": 0, - "value": "nope", - "optional": false + "value": "nope" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json index 532a873f1819..bce91c9542f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json @@ -169,9 +169,7 @@ "start": 93, "end": 94 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -203,9 +201,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } }, @@ -237,9 +233,7 @@ "start": 111, "end": 137 }, - "ctxt": 0, - "value": "isNotNecessarilyNeverFalse", - "optional": false + "value": "isNotNecessarilyNeverFalse" } } }, @@ -395,9 +389,7 @@ "start": 207, "end": 211 }, - "ctxt": 0, - "value": "nope", - "optional": false + "value": "nope" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json index 9a6a95c54430..fce93fa79d29 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json @@ -118,9 +118,7 @@ "start": 88, "end": 100 }, - "ctxt": 0, - "value": "hasLineBreak", - "optional": false + "value": "hasLineBreak" }, "value": { "type": "BooleanLiteral", @@ -139,9 +137,7 @@ "start": 109, "end": 114 }, - "ctxt": 0, - "value": "cells", - "optional": false + "value": "cells" }, "value": { "type": "ArrayExpression", @@ -225,9 +221,7 @@ "start": 143, "end": 148 }, - "ctxt": 0, - "value": "cells", - "optional": false + "value": "cells" }, "value": { "type": "Identifier", @@ -251,9 +245,7 @@ "start": 165, "end": 171 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ @@ -397,9 +389,7 @@ "start": 226, "end": 238 }, - "ctxt": 0, - "value": "hasLineBreak", - "optional": false + "value": "hasLineBreak" }, "value": { "type": "BooleanLiteral", @@ -418,9 +408,7 @@ "start": 247, "end": 252 }, - "ctxt": 0, - "value": "cells", - "optional": false + "value": "cells" }, "value": { "type": "ArrayExpression", @@ -504,9 +492,7 @@ "start": 281, "end": 286 }, - "ctxt": 0, - "value": "cells", - "optional": false + "value": "cells" }, "value": { "type": "Identifier", @@ -774,9 +760,7 @@ "start": 478, "end": 479 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -928,9 +912,7 @@ "start": 595, "end": 596 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAndAccessorWithSameName.json b/crates/swc_ecma_parser/tests/tsc/propertyAndAccessorWithSameName.json index 6742f08ca52b..6d63081bc80c 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAndAccessorWithSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAndAccessorWithSameName.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -168,9 +164,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -210,9 +204,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -302,9 +294,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -344,9 +334,7 @@ "start": 171, "end": 172 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -406,9 +394,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAndFunctionWithSameName.json b/crates/swc_ecma_parser/tests/tsc/propertyAndFunctionWithSameName.json index 74774d545543..a78a847a1be2 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAndFunctionWithSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAndFunctionWithSameName.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -168,9 +164,7 @@ "start": 86, "end": 87 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -210,9 +204,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json index 9095292c724a..89ed4a1f9092 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json @@ -126,9 +126,7 @@ "start": 158, "end": 165 }, - "ctxt": 0, - "value": "expando", - "optional": false + "value": "expando" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json index 6fcd86f44744..eec60c1d6e0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json @@ -86,9 +86,7 @@ "start": 113, "end": 116 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType1.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType1.json index 8a5ac85d750e..607be2bdde1e 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType1.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType1.json @@ -219,9 +219,7 @@ "start": 99, "end": 102 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } }, "right": { @@ -411,9 +409,7 @@ "start": 181, "end": 184 }, - "ctxt": 0, - "value": "nun", - "optional": false + "value": "nun" } }, "right": { @@ -521,9 +517,7 @@ "start": 293, "end": 298 }, - "ctxt": 0, - "value": "extra", - "optional": false + "value": "extra" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType2.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType2.json index 4978a9f9a767..19fd69d6f6ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType2.json @@ -99,9 +99,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "nuo", - "optional": false + "value": "nuo" } }, "right": { @@ -209,9 +207,7 @@ "start": 307, "end": 310 }, - "ctxt": 0, - "value": "nuo", - "optional": false + "value": "nuo" } }, "right": { @@ -319,9 +315,7 @@ "start": 449, "end": 452 }, - "ctxt": 0, - "value": "nuo", - "optional": false + "value": "nuo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json index fe9c983b8289..601f3d04174a 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json @@ -105,9 +105,7 @@ "start": 120, "end": 127 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "right": { @@ -227,9 +225,7 @@ "start": 182, "end": 186 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "right": { @@ -343,9 +339,7 @@ "start": 242, "end": 246 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "right": { @@ -408,9 +402,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -524,9 +516,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyNameWithoutTypeAnnotation.json b/crates/swc_ecma_parser/tests/tsc/propertyNameWithoutTypeAnnotation.json index 77f48c11a946..cf6f058fb165 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyNameWithoutTypeAnnotation.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyNameWithoutTypeAnnotation.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": null, @@ -220,9 +218,7 @@ "start": 84, "end": 87 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NullLiteral", @@ -304,9 +300,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -391,9 +385,7 @@ "start": 177, "end": 180 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -449,9 +441,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -507,9 +497,7 @@ "start": 209, "end": 212 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/propertyNamedPrototype.json b/crates/swc_ecma_parser/tests/tsc/propertyNamedPrototype.json index c6ebccc40f09..74f5ded27fa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyNamedPrototype.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyNamedPrototype.json @@ -37,9 +37,7 @@ "start": 15, "end": 24 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 51, "end": 60 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json index 634af7d89d76..43ca5084eeb9 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json @@ -37,9 +37,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -126,9 +124,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "StringLiteral", @@ -198,9 +194,7 @@ "start": 156, "end": 163 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" }, "value": { "type": "NumericLiteral", @@ -234,9 +228,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -279,9 +271,7 @@ "start": 195, "end": 202 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" } } } @@ -311,9 +301,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -383,9 +371,7 @@ "start": 229, "end": 236 }, - "ctxt": 0, - "value": "_secret", - "optional": false + "value": "_secret" } }, "right": { @@ -453,9 +439,7 @@ "start": 273, "end": 274 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json index 89ec59cb0a4f..178efc4ab956 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json @@ -37,9 +37,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -174,9 +170,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -281,9 +275,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -407,9 +399,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -437,9 +427,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json index 49abe0da9859..7b7bdac5ed39 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json @@ -37,9 +37,7 @@ "start": 73, "end": 79 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" }, "value": { "type": "StringLiteral", @@ -73,9 +71,7 @@ "start": 122, "end": 127 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [], @@ -118,9 +114,7 @@ "start": 144, "end": 150 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } } } @@ -150,9 +144,7 @@ "start": 161, "end": 166 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [ @@ -222,9 +214,7 @@ "start": 185, "end": 191 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } }, "right": { @@ -265,9 +255,7 @@ "start": 283, "end": 292 }, - "ctxt": 0, - "value": "makeSound", - "optional": false + "value": "makeSound" }, "function": { "params": [], @@ -320,9 +308,7 @@ "start": 313, "end": 316 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -347,9 +333,7 @@ "start": 322, "end": 328 }, - "ctxt": 0, - "value": "_sound", - "optional": false + "value": "_sound" } } } @@ -464,9 +448,7 @@ "start": 362, "end": 371 }, - "ctxt": 0, - "value": "makeSound", - "optional": false + "value": "makeSound" } }, "arguments": [], @@ -505,9 +487,7 @@ "start": 441, "end": 446 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "value": { "type": "StringLiteral", @@ -631,9 +611,7 @@ "start": 501, "end": 510 }, - "ctxt": 0, - "value": "makeSound", - "optional": false + "value": "makeSound" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json index 208a316cf0b1..732c48bfd18b 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json @@ -37,9 +37,7 @@ "start": 82, "end": 87 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [], @@ -88,9 +86,7 @@ "start": 106, "end": 111 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "function": { "params": [ @@ -186,9 +182,7 @@ "start": 159, "end": 164 }, - "ctxt": 0, - "value": "sound", - "optional": false + "value": "sound" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json index fcd12fefd5ce..9afa9091591d 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json @@ -37,9 +37,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -127,9 +125,7 @@ "start": 121, "end": 132 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesMethod.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesMethod.json index 38c5d30e6b30..d912ce6899cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesMethod.json @@ -37,9 +37,7 @@ "start": 68, "end": 69 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinClass.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinClass.json index 0a4a64fda6dc..cad2d2974085 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinClass.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinClass.json @@ -37,9 +37,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -156,9 +150,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -228,9 +220,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -252,9 +242,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -285,9 +273,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -330,9 +316,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -362,9 +346,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -404,9 +386,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -449,9 +429,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -481,9 +459,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -553,9 +529,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -577,9 +551,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -610,9 +582,7 @@ "start": 345, "end": 348 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -655,9 +625,7 @@ "start": 365, "end": 368 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -687,9 +655,7 @@ "start": 393, "end": 396 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -739,9 +705,7 @@ "start": 406, "end": 409 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -801,9 +765,7 @@ "start": 478, "end": 479 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -843,9 +805,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -896,9 +856,7 @@ "start": 524, "end": 525 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -947,9 +905,7 @@ "start": 560, "end": 561 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -1041,9 +997,7 @@ "start": 580, "end": 581 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1065,9 +1019,7 @@ "start": 589, "end": 590 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1106,9 +1058,7 @@ "start": 610, "end": 613 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1159,9 +1109,7 @@ "start": 629, "end": 632 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, @@ -1196,9 +1144,7 @@ "start": 658, "end": 659 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1238,9 +1184,7 @@ "start": 694, "end": 695 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -1291,9 +1235,7 @@ "start": 711, "end": 712 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -1342,9 +1284,7 @@ "start": 754, "end": 755 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -1436,9 +1376,7 @@ "start": 782, "end": 783 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1460,9 +1398,7 @@ "start": 791, "end": 792 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1501,9 +1437,7 @@ "start": 824, "end": 827 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1554,9 +1488,7 @@ "start": 843, "end": 846 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "async": false, @@ -1591,9 +1523,7 @@ "start": 871, "end": 874 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -1651,9 +1581,7 @@ "start": 890, "end": 893 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedClass.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedClass.json index b1a3d0028c9f..42c2b6d61388 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedClass.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedClass.json @@ -37,9 +37,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 102, "end": 103 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -156,9 +150,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -228,9 +220,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -252,9 +242,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -285,9 +273,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -330,9 +316,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -362,9 +346,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -404,9 +386,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -449,9 +429,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -481,9 +459,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -553,9 +529,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -577,9 +551,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -610,9 +582,7 @@ "start": 345, "end": 348 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -655,9 +625,7 @@ "start": 365, "end": 368 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -687,9 +655,7 @@ "start": 393, "end": 396 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -739,9 +705,7 @@ "start": 406, "end": 409 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -774,9 +738,7 @@ "start": 430, "end": 433 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -826,9 +788,7 @@ "start": 479, "end": 482 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -951,9 +911,7 @@ "start": 540, "end": 543 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1009,9 +967,7 @@ "start": 572, "end": 575 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1067,9 +1023,7 @@ "start": 604, "end": 605 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1125,9 +1079,7 @@ "start": 634, "end": 635 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1183,9 +1135,7 @@ "start": 666, "end": 667 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1241,9 +1191,7 @@ "start": 697, "end": 698 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1299,9 +1247,7 @@ "start": 728, "end": 731 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1357,9 +1303,7 @@ "start": 761, "end": 764 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1466,9 +1410,7 @@ "start": 827, "end": 830 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1524,9 +1466,7 @@ "start": 859, "end": 862 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1582,9 +1522,7 @@ "start": 891, "end": 892 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1640,9 +1578,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass.json index 8762a5d418c1..77bb6f8fdded 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass.json @@ -37,9 +37,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -193,9 +187,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -225,9 +217,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -297,9 +287,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -321,9 +309,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -354,9 +340,7 @@ "start": 207, "end": 210 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -399,9 +383,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -431,9 +413,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -476,9 +456,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -508,9 +486,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -580,9 +556,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -604,9 +578,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -637,9 +609,7 @@ "start": 353, "end": 356 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -682,9 +652,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -714,9 +682,7 @@ "start": 399, "end": 402 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -766,9 +732,7 @@ "start": 412, "end": 415 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -801,9 +765,7 @@ "start": 440, "end": 443 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -853,9 +815,7 @@ "start": 489, "end": 492 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -973,9 +933,7 @@ "start": 557, "end": 558 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1031,9 +989,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1089,9 +1045,7 @@ "start": 617, "end": 620 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1147,9 +1101,7 @@ "start": 649, "end": 652 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1205,9 +1157,7 @@ "start": 681, "end": 682 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -1263,9 +1213,7 @@ "start": 738, "end": 739 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1321,9 +1269,7 @@ "start": 769, "end": 770 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1379,9 +1325,7 @@ "start": 800, "end": 803 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1437,9 +1381,7 @@ "start": 833, "end": 836 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1529,9 +1471,7 @@ "start": 905, "end": 906 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass1.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass1.json index dbeb17c33471..c7d0c9964654 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass1.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinNestedSubclass1.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 43, "end": 49 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -131,9 +127,7 @@ "start": 84, "end": 91 }, - "ctxt": 0, - "value": "methoda", - "optional": false + "value": "methoda" }, "function": { "params": [], @@ -459,9 +453,7 @@ "start": 280, "end": 281 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -493,9 +485,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -527,9 +517,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -561,9 +549,7 @@ "start": 512, "end": 513 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -595,9 +581,7 @@ "start": 648, "end": 649 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -675,9 +659,7 @@ "start": 773, "end": 780 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -727,9 +709,7 @@ "start": 815, "end": 823 }, - "ctxt": 0, - "value": "method1b", - "optional": false + "value": "method1b" }, "function": { "params": [], @@ -1055,9 +1035,7 @@ "start": 1012, "end": 1013 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1089,9 +1067,7 @@ "start": 1113, "end": 1114 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1123,9 +1099,7 @@ "start": 1259, "end": 1260 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1157,9 +1131,7 @@ "start": 1359, "end": 1360 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1191,9 +1163,7 @@ "start": 1495, "end": 1496 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1280,9 +1250,7 @@ "start": 1643, "end": 1650 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -1332,9 +1300,7 @@ "start": 1685, "end": 1693 }, - "ctxt": 0, - "value": "method2c", - "optional": false + "value": "method2c" }, "function": { "params": [], @@ -1660,9 +1626,7 @@ "start": 1882, "end": 1883 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1694,9 +1658,7 @@ "start": 1983, "end": 1984 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1728,9 +1690,7 @@ "start": 2083, "end": 2084 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1762,9 +1722,7 @@ "start": 2229, "end": 2230 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1796,9 +1754,7 @@ "start": 2365, "end": 2366 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1885,9 +1841,7 @@ "start": 2598, "end": 2599 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1927,9 +1881,7 @@ "start": 2613, "end": 2620 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "function": { "params": [], @@ -1979,9 +1931,7 @@ "start": 2655, "end": 2663 }, - "ctxt": 0, - "value": "method3d", - "optional": false + "value": "method3d" }, "function": { "params": [], @@ -2307,9 +2257,7 @@ "start": 2852, "end": 2853 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2341,9 +2289,7 @@ "start": 2953, "end": 2954 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2375,9 +2321,7 @@ "start": 3053, "end": 3054 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2409,9 +2353,7 @@ "start": 3153, "end": 3154 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2443,9 +2385,7 @@ "start": 3230, "end": 3231 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2532,9 +2472,7 @@ "start": 3382, "end": 3389 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "function": { "params": [], @@ -2584,9 +2522,7 @@ "start": 3424, "end": 3432 }, - "ctxt": 0, - "value": "method4e", - "optional": false + "value": "method4e" }, "function": { "params": [], @@ -2912,9 +2848,7 @@ "start": 3621, "end": 3622 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2946,9 +2880,7 @@ "start": 3722, "end": 3723 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2980,9 +2912,7 @@ "start": 3822, "end": 3823 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3014,9 +2944,7 @@ "start": 3922, "end": 3923 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3048,9 +2976,7 @@ "start": 4058, "end": 4059 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -3413,9 +3339,7 @@ "start": 4307, "end": 4308 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3447,9 +3371,7 @@ "start": 4426, "end": 4427 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3481,9 +3403,7 @@ "start": 4544, "end": 4545 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3515,9 +3435,7 @@ "start": 4662, "end": 4663 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3549,9 +3467,7 @@ "start": 4780, "end": 4781 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass.json index d9bda98e733c..a0aba6e57494 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass.json @@ -37,9 +37,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -193,9 +187,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -225,9 +217,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -297,9 +287,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -321,9 +309,7 @@ "start": 201, "end": 202 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -354,9 +340,7 @@ "start": 220, "end": 223 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -399,9 +383,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -431,9 +413,7 @@ "start": 259, "end": 262 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -483,9 +463,7 @@ "start": 279, "end": 282 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -518,9 +496,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -563,9 +539,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -595,9 +569,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [ @@ -667,9 +639,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -691,9 +661,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -724,9 +692,7 @@ "start": 409, "end": 412 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -769,9 +735,7 @@ "start": 429, "end": 430 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -801,9 +765,7 @@ "start": 455, "end": 458 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -853,9 +815,7 @@ "start": 468, "end": 471 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass2.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass2.json index aed0e0c5d699..d18bceb942eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass2.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass2.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 43, "end": 49 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -407,9 +403,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -441,9 +435,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -475,9 +467,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -509,9 +499,7 @@ "start": 398, "end": 399 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -543,9 +531,7 @@ "start": 526, "end": 527 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -602,9 +588,7 @@ "start": 627, "end": 634 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -930,9 +914,7 @@ "start": 775, "end": 776 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -964,9 +946,7 @@ "start": 868, "end": 869 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -998,9 +978,7 @@ "start": 1006, "end": 1007 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1032,9 +1010,7 @@ "start": 1098, "end": 1099 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1066,9 +1042,7 @@ "start": 1226, "end": 1227 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1134,9 +1108,7 @@ "start": 1350, "end": 1357 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -1462,9 +1434,7 @@ "start": 1498, "end": 1499 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1496,9 +1466,7 @@ "start": 1591, "end": 1592 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1530,9 +1498,7 @@ "start": 1683, "end": 1684 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1564,9 +1530,7 @@ "start": 1821, "end": 1822 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1598,9 +1562,7 @@ "start": 1949, "end": 1950 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1666,9 +1628,7 @@ "start": 2158, "end": 2159 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1708,9 +1668,7 @@ "start": 2173, "end": 2180 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "function": { "params": [], @@ -2036,9 +1994,7 @@ "start": 2321, "end": 2322 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2070,9 +2026,7 @@ "start": 2414, "end": 2415 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2104,9 +2058,7 @@ "start": 2506, "end": 2507 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2138,9 +2090,7 @@ "start": 2598, "end": 2599 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2172,9 +2122,7 @@ "start": 2667, "end": 2668 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2240,9 +2188,7 @@ "start": 2795, "end": 2802 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "function": { "params": [], @@ -2568,9 +2514,7 @@ "start": 2943, "end": 2944 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2602,9 +2546,7 @@ "start": 3036, "end": 3037 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2636,9 +2578,7 @@ "start": 3128, "end": 3129 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2670,9 +2610,7 @@ "start": 3220, "end": 3221 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2704,9 +2642,7 @@ "start": 3348, "end": 3349 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -3048,9 +2984,7 @@ "start": 3573, "end": 3574 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3082,9 +3016,7 @@ "start": 3692, "end": 3693 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3116,9 +3048,7 @@ "start": 3810, "end": 3811 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3150,9 +3080,7 @@ "start": 3928, "end": 3929 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3184,9 +3112,7 @@ "start": 4046, "end": 4047 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass3.json b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass3.json index dfc9a107bcd5..dbf451ad7f55 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass3.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedClassPropertyAccessibleWithinSubclass3.json @@ -37,9 +37,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 43, "end": 49 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -183,9 +177,7 @@ "start": 168, "end": 175 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -228,9 +220,7 @@ "start": 193, "end": 194 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -259,9 +249,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json b/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json index 62c618af7944..cf43c83ba4cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -182,9 +178,7 @@ "start": 131, "end": 132 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -224,9 +218,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -290,9 +282,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -352,9 +342,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -410,9 +398,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -465,9 +451,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -520,9 +504,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -582,9 +564,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -640,9 +620,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -695,9 +673,7 @@ "start": 395, "end": 396 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -809,9 +785,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -874,9 +848,7 @@ "start": 482, "end": 483 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -935,9 +907,7 @@ "start": 516, "end": 517 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -993,9 +963,7 @@ "start": 550, "end": 551 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -1107,9 +1075,7 @@ "start": 603, "end": 604 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1172,9 +1138,7 @@ "start": 625, "end": 626 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1233,9 +1197,7 @@ "start": 649, "end": 650 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1291,9 +1253,7 @@ "start": 671, "end": 672 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -1405,9 +1365,7 @@ "start": 724, "end": 725 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -1470,9 +1428,7 @@ "start": 758, "end": 759 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -1531,9 +1487,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -1589,9 +1543,7 @@ "start": 826, "end": 827 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -1660,9 +1612,7 @@ "start": 884, "end": 885 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass.json b/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass.json index b3b409bc0a78..c3a18ccd5ffc 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass.json @@ -37,9 +37,7 @@ "start": 35, "end": 36 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 57, "end": 69 }, - "ctxt": 0, - "value": "staticMethod", - "optional": false + "value": "staticMethod" }, "function": { "params": [], @@ -127,9 +123,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -161,9 +155,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -195,9 +187,7 @@ "start": 229, "end": 230 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -229,9 +219,7 @@ "start": 298, "end": 299 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -288,9 +276,7 @@ "start": 459, "end": 472 }, - "ctxt": 0, - "value": "staticMethod1", - "optional": false + "value": "staticMethod1" }, "function": { "params": [], @@ -336,9 +322,7 @@ "start": 490, "end": 491 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -370,9 +354,7 @@ "start": 584, "end": 585 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -404,9 +386,7 @@ "start": 674, "end": 675 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -438,9 +418,7 @@ "start": 764, "end": 765 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -506,9 +484,7 @@ "start": 925, "end": 938 }, - "ctxt": 0, - "value": "staticMethod2", - "optional": false + "value": "staticMethod2" }, "function": { "params": [], @@ -554,9 +530,7 @@ "start": 956, "end": 957 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -588,9 +562,7 @@ "start": 1050, "end": 1051 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -622,9 +594,7 @@ "start": 1140, "end": 1141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -656,9 +626,7 @@ "start": 1230, "end": 1231 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -724,9 +692,7 @@ "start": 1405, "end": 1406 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -766,9 +732,7 @@ "start": 1427, "end": 1440 }, - "ctxt": 0, - "value": "staticMethod3", - "optional": false + "value": "staticMethod3" }, "function": { "params": [], @@ -814,9 +778,7 @@ "start": 1458, "end": 1459 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -848,9 +810,7 @@ "start": 1552, "end": 1553 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -882,9 +842,7 @@ "start": 1642, "end": 1643 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -916,9 +874,7 @@ "start": 1732, "end": 1733 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -980,9 +936,7 @@ "start": 1799, "end": 1800 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1014,9 +968,7 @@ "start": 1913, "end": 1914 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1048,9 +1000,7 @@ "start": 2023, "end": 2024 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1082,9 +1032,7 @@ "start": 2133, "end": 2134 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass2.json b/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass2.json index 072e6128b4ba..bb8dfa0b4aa7 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass2.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedStaticClassPropertyAccessibleWithinSubclass2.json @@ -37,9 +37,7 @@ "start": 35, "end": 36 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 57, "end": 69 }, - "ctxt": 0, - "value": "staticMethod", - "optional": false + "value": "staticMethod" }, "function": { "params": [], @@ -124,9 +120,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -183,9 +177,7 @@ "start": 193, "end": 206 }, - "ctxt": 0, - "value": "staticMethod1", - "optional": false + "value": "staticMethod1" }, "function": { "params": [], @@ -228,9 +220,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -259,9 +249,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -327,9 +315,7 @@ "start": 415, "end": 416 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -369,9 +355,7 @@ "start": 437, "end": 450 }, - "ctxt": 0, - "value": "staticMethod3", - "optional": false + "value": "staticMethod3" }, "function": { "params": [], @@ -414,9 +398,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -445,9 +427,7 @@ "start": 559, "end": 560 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/protectedStaticNotAccessibleInClodule.json b/crates/swc_ecma_parser/tests/tsc/protectedStaticNotAccessibleInClodule.json index 98c44a2f2b1c..f34b5db9e30b 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedStaticNotAccessibleInClodule.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedStaticNotAccessibleInClodule.json @@ -37,9 +37,7 @@ "start": 167, "end": 170 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 201, "end": 204 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -196,9 +192,7 @@ "start": 249, "end": 252 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -261,9 +255,7 @@ "start": 281, "end": 284 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles.json b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles.json index 22316b73e19b..6339e7ef5f87 100644 --- a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles.json +++ b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles.json @@ -65,9 +65,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -129,9 +127,7 @@ "start": 173, "end": 182 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -140,9 +136,7 @@ "start": 183, "end": 186 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -188,9 +182,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles2.json b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles2.json index 356d513b86d3..59ba92be7543 100644 --- a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles2.json +++ b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeAcrossFiles2.json @@ -79,9 +79,7 @@ "start": 131, "end": 134 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } }, "right": { @@ -145,9 +143,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "right": { @@ -217,9 +213,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } }, "property": { @@ -228,9 +222,7 @@ "start": 184, "end": 193 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -248,9 +240,7 @@ "start": 200, "end": 202 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" }, "params": [], "decorators": [], @@ -318,9 +308,7 @@ "start": 215, "end": 218 }, - "ctxt": 0, - "value": "Two", - "optional": false + "value": "Two" } }, "property": { @@ -329,9 +317,7 @@ "start": 219, "end": 228 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -404,9 +390,7 @@ "start": 298, "end": 301 }, - "ctxt": 0, - "value": "wat", - "optional": false + "value": "wat" } } }, @@ -470,9 +454,7 @@ "start": 342, "end": 345 }, - "ctxt": 0, - "value": "wat", - "optional": false + "value": "wat" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json index 735342daa512..608b26b76faa 100644 --- a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergeWithInterfaceMethod.json @@ -104,6 +104,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 216, + "end": 229 + }, "left": { "type": "Identifier", "span": { @@ -120,9 +124,7 @@ "start": 222, "end": 229 }, - "ctxt": 0, - "value": "Builder", - "optional": false + "value": "Builder" } }, "typeParams": null @@ -274,6 +276,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 278, + "end": 290 + }, "left": { "type": "Identifier", "span": { @@ -290,9 +296,7 @@ "start": 285, "end": 290 }, - "ctxt": 0, - "value": "Table", - "optional": false + "value": "Table" } }, "typeParams": null @@ -473,6 +477,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 360, + "end": 373 + }, "left": { "type": "Identifier", "span": { @@ -489,9 +497,7 @@ "start": 366, "end": 373 }, - "ctxt": 0, - "value": "Builder", - "optional": false + "value": "Builder" } }, "typeParams": null @@ -757,9 +763,7 @@ "start": 503, "end": 514 }, - "ctxt": 0, - "value": "Transaction", - "optional": false + "value": "Transaction" } }, "right": { @@ -835,9 +839,7 @@ "start": 610, "end": 621 }, - "ctxt": 0, - "value": "Transaction", - "optional": false + "value": "Transaction" } }, "property": { @@ -846,9 +848,7 @@ "start": 622, "end": 631 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -857,9 +857,7 @@ "start": 632, "end": 637 }, - "ctxt": 0, - "value": "begin", - "optional": false + "value": "begin" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json index 6dc461642920..0ffb1df72166 100644 --- a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json @@ -118,9 +118,7 @@ "start": 216, "end": 225 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -129,9 +127,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json b/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json index 0bf371295ef8..eecfd14f19ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json @@ -85,9 +85,7 @@ "start": 49, "end": 52 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -197,9 +195,7 @@ "start": 117, "end": 120 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -322,9 +318,7 @@ "start": 187, "end": 190 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -446,9 +440,7 @@ "start": 257, "end": 260 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -634,9 +626,7 @@ "start": 362, "end": 365 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/reExportAliasMakesInstantiated.json b/crates/swc_ecma_parser/tests/tsc/reExportAliasMakesInstantiated.json index f5ff0e3f802d..5d7ecbcc3bb8 100644 --- a/crates/swc_ecma_parser/tests/tsc/reExportAliasMakesInstantiated.json +++ b/crates/swc_ecma_parser/tests/tsc/reExportAliasMakesInstantiated.json @@ -155,6 +155,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 109, + "end": 120 + }, "left": { "type": "Identifier", "span": { @@ -171,9 +175,7 @@ "start": 115, "end": 120 }, - "ctxt": 0, - "value": "test1", - "optional": false + "value": "test1" } } }, @@ -231,6 +233,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 166, + "end": 177 + }, "left": { "type": "Identifier", "span": { @@ -247,9 +253,7 @@ "start": 172, "end": 177 }, - "ctxt": 0, - "value": "test1", - "optional": false + "value": "test1" } } }, @@ -384,6 +388,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 286, + "end": 296 + }, "left": { "type": "Identifier", "span": { @@ -400,9 +408,7 @@ "start": 291, "end": 296 }, - "ctxt": 0, - "value": "test1", - "optional": false + "value": "test1" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json b/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json index a26eb7459ddc..06eb0bbded8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json +++ b/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json @@ -40,9 +40,7 @@ "start": 75, "end": 82 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -60,9 +58,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "str", - "optional": false + "value": "str" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json b/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json index 3f95d0f0c8b0..4cc6ec3afa22 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json @@ -703,9 +703,7 @@ "start": 477, "end": 478 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "ArrayExpression", @@ -785,9 +783,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" }, "value": { "type": "ArrayExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json b/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json index 21cb2475f71c..6c3db9ec8a1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyConstructorAssignment.json @@ -38,9 +38,7 @@ "start": 100, "end": 111 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -120,9 +118,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -181,9 +177,7 @@ "start": 187, "end": 198 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -298,9 +292,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -368,9 +360,7 @@ "start": 446, "end": 457 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -488,9 +478,7 @@ "start": 511, "end": 512 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -558,9 +546,7 @@ "start": 541, "end": 552 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -640,9 +626,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -701,9 +685,7 @@ "start": 680, "end": 691 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -821,9 +803,7 @@ "start": 745, "end": 746 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json b/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json index 4ecb709964cb..1c2a9e7c865d 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyInAmbientClass.json @@ -38,9 +38,7 @@ "start": 19, "end": 30 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -96,9 +94,7 @@ "start": 53, "end": 59 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveIntersectionTypes.json b/crates/swc_ecma_parser/tests/tsc/recursiveIntersectionTypes.json index de49871b9f4b..619aabb94761 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveIntersectionTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveIntersectionTypes.json @@ -439,9 +439,7 @@ "start": 204, "end": 208 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "definite": false @@ -503,9 +501,7 @@ "start": 229, "end": 233 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -514,9 +510,7 @@ "start": 234, "end": 238 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "definite": false @@ -584,9 +578,7 @@ "start": 259, "end": 263 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -595,9 +587,7 @@ "start": 264, "end": 268 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -606,9 +596,7 @@ "start": 269, "end": 273 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "definite": false @@ -682,9 +670,7 @@ "start": 294, "end": 298 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -693,9 +679,7 @@ "start": 299, "end": 303 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -704,9 +688,7 @@ "start": 304, "end": 308 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -715,9 +697,7 @@ "start": 309, "end": 313 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json b/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json index d8b8452f6e28..6060402d8180 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json @@ -1896,9 +1896,7 @@ "start": 1007, "end": 1012 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" } } }, @@ -3215,9 +3213,7 @@ "start": 1731, "end": 1735 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypeInGenericConstraint.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypeInGenericConstraint.json index 69dbe66b626e..10a889d2f5d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypeInGenericConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypeInGenericConstraint.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -198,9 +196,7 @@ "start": 144, "end": 147 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -350,9 +346,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json index 4b103c833d25..d223ab958ed5 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json @@ -699,9 +699,7 @@ "start": 334, "end": 336 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -754,9 +752,7 @@ "start": 368, "end": 370 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -824,9 +820,7 @@ "start": 431, "end": 433 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "StringLiteral", @@ -1083,9 +1077,7 @@ "start": 590, "end": 597 }, - "ctxt": 0, - "value": "caption", - "optional": false + "value": "caption" }, "value": { "type": "StringLiteral", @@ -1105,9 +1097,7 @@ "start": 611, "end": 619 }, - "ctxt": 0, - "value": "location", - "optional": false + "value": "location" }, "value": { "type": "ObjectExpression", @@ -1124,9 +1114,7 @@ "start": 623, "end": 624 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1146,9 +1134,7 @@ "start": 630, "end": 631 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1171,9 +1157,7 @@ "start": 643, "end": 649 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "value": { "type": "ArrayExpression", @@ -2217,9 +2201,7 @@ "start": 977, "end": 982 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -2303,9 +2285,7 @@ "start": 1010, "end": 1015 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ObjectExpression", @@ -2322,9 +2302,7 @@ "start": 1019, "end": 1024 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ObjectExpression", @@ -2341,9 +2319,7 @@ "start": 1028, "end": 1033 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -2577,9 +2553,7 @@ "start": 1129, "end": 1134 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -2663,9 +2637,7 @@ "start": 1162, "end": 1167 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ObjectExpression", @@ -2682,9 +2654,7 @@ "start": 1171, "end": 1176 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "ObjectExpression", @@ -2701,9 +2671,7 @@ "start": 1180, "end": 1185 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -6825,9 +6793,7 @@ "start": 2836, "end": 2839 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -7074,9 +7040,7 @@ "start": 2942, "end": 2946 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "TemplateLiteral", @@ -7107,9 +7071,7 @@ "start": 2955, "end": 2957 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } ], @@ -7145,9 +7107,7 @@ "start": 2961, "end": 2964 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -7199,9 +7159,7 @@ "start": 2996, "end": 3000 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -7254,9 +7212,7 @@ "start": 3012, "end": 3023 }, - "ctxt": 0, - "value": "textContent", - "optional": false + "value": "textContent" } } } @@ -7302,9 +7258,7 @@ "start": 3042, "end": 3048 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -7567,9 +7521,7 @@ "start": 3168, "end": 3174 }, - "ctxt": 0, - "value": "reduce", - "optional": false + "value": "reduce" } }, "arguments": [ @@ -7676,9 +7628,7 @@ "start": 3234, "end": 3237 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -7737,9 +7687,7 @@ "start": 3258, "end": 3264 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -8126,9 +8074,7 @@ "start": 3391, "end": 3397 }, - "ctxt": 0, - "value": "reduce", - "optional": false + "value": "reduce" } }, "arguments": [ @@ -8200,9 +8146,7 @@ "start": 3427, "end": 3433 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -8311,9 +8255,7 @@ "start": 3497, "end": 3502 }, - "ctxt": 0, - "value": "shift", - "optional": false + "value": "shift" } }, "arguments": [], @@ -8641,9 +8583,7 @@ "start": 3602, "end": 3609 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "property": { @@ -8714,9 +8654,7 @@ "start": 3628, "end": 3635 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json index 4b56024a3831..00aed136fa95 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypesUsedAsFunctionParameters.json @@ -37,9 +37,7 @@ "start": 21, "end": 25 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 34, "end": 38 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { @@ -250,9 +246,7 @@ "start": 80, "end": 84 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -302,9 +296,7 @@ "start": 93, "end": 97 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json index a99fd4ce573d..cc138cf9f6e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json @@ -891,6 +891,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 400, + "end": 403 + }, "left": { "type": "Identifier", "span": { @@ -907,9 +911,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeArguments": null @@ -2424,9 +2426,7 @@ "start": 999, "end": 1000 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -2606,9 +2606,7 @@ "start": 1051, "end": 1052 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/tsc/redeclaredProperty.json b/crates/swc_ecma_parser/tests/tsc/redeclaredProperty.json index 4af35c818fb0..aef02572273a 100644 --- a/crates/swc_ecma_parser/tests/tsc/redeclaredProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/redeclaredProperty.json @@ -37,9 +37,7 @@ "start": 124, "end": 125 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": null, @@ -128,9 +124,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "MemberExpression", @@ -151,9 +145,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "typeAnnotation": null, @@ -180,9 +172,7 @@ "start": 185, "end": 196 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -249,9 +239,7 @@ "start": 223, "end": 224 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json b/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json index 0e18249cbfb6..1226af3bee26 100644 --- a/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/redefinedPararameterProperty.json @@ -37,9 +37,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -123,9 +119,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null, @@ -152,9 +146,7 @@ "start": 208, "end": 219 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json b/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json index 1efc1f1f2182..300743fe93a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json +++ b/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json @@ -104,9 +104,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "Identifier", @@ -199,9 +197,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json b/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json index f12cf291a68d..a4acd52fa3cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json +++ b/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json @@ -143,9 +143,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json b/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json index ac16985a812a..86c8b36c28f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json +++ b/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json @@ -214,9 +214,7 @@ "start": 253, "end": 264 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -420,9 +418,7 @@ "start": 436, "end": 438 }, - "ctxt": 0, - "value": "M2", - "optional": false + "value": "M2" } }, "property": { @@ -431,9 +427,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "consequent": { @@ -532,9 +526,7 @@ "start": 469, "end": 471 }, - "ctxt": 0, - "value": "M2", - "optional": false + "value": "M2" } }, "property": { @@ -543,9 +535,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -554,9 +544,7 @@ "start": 474, "end": 484 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/renamed.json b/crates/swc_ecma_parser/tests/tsc/renamed.json index 533364be6ebe..71a4aadea491 100644 --- a/crates/swc_ecma_parser/tests/tsc/renamed.json +++ b/crates/swc_ecma_parser/tests/tsc/renamed.json @@ -37,9 +37,7 @@ "start": 48, "end": 49 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json index 20ace86ef273..f26536a28a40 100644 --- a/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json @@ -77,9 +77,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -131,9 +129,7 @@ "start": 147, "end": 151 }, - "ctxt": 0, - "value": "grey", - "optional": false + "value": "grey" } } }, @@ -171,9 +167,7 @@ "start": 154, "end": 155 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -182,9 +176,7 @@ "start": 156, "end": 160 }, - "ctxt": 0, - "value": "grey", - "optional": false + "value": "grey" } } }, @@ -230,9 +222,7 @@ "start": 195, "end": 199 }, - "ctxt": 0, - "value": "grey", - "optional": false + "value": "grey" }, "value": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json b/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json index ad9eff31afff..8e7a905bad36 100644 --- a/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json +++ b/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json @@ -40,9 +40,7 @@ "start": 97, "end": 104 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -60,9 +58,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ObjectExpression", @@ -79,9 +75,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -178,9 +172,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -189,9 +181,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -233,9 +223,7 @@ "start": 232, "end": 235 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json b/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json index 84f7f530ef67..3d531fda47fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json @@ -6438,9 +6438,7 @@ "start": 1899, "end": 1905 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/returnStatements.json b/crates/swc_ecma_parser/tests/tsc/returnStatements.json index 339e4410a444..284bd92b3fc9 100644 --- a/crates/swc_ecma_parser/tests/tsc/returnStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/returnStatements.json @@ -637,9 +637,7 @@ "start": 433, "end": 435 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -679,9 +677,7 @@ "start": 449, "end": 456 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" }, "function": { "params": [], @@ -770,9 +766,7 @@ "start": 488, "end": 492 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -865,9 +859,7 @@ "start": 534, "end": 536 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json b/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json index c96d4801841a..467d7f9c06a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json +++ b/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json @@ -38,9 +38,7 @@ "start": 114, "end": 125 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 143, "end": 144 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -116,9 +112,7 @@ "start": 228, "end": 234 }, - "ctxt": 0, - "value": "isInit", - "optional": false + "value": "isInit" }, "function": { "params": [ @@ -225,9 +219,7 @@ "start": 286, "end": 297 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -270,9 +262,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -303,9 +293,7 @@ "start": 395, "end": 401 }, - "ctxt": 0, - "value": "isInit", - "optional": false + "value": "isInit" }, "function": { "params": [ @@ -489,9 +477,7 @@ "start": 510, "end": 516 }, - "ctxt": 0, - "value": "isInit", - "optional": false + "value": "isInit" } }, "arguments": [ @@ -533,9 +519,7 @@ "start": 532, "end": 533 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "alternate": { @@ -560,9 +544,7 @@ "start": 542, "end": 543 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/scannerAdditiveExpression1.json b/crates/swc_ecma_parser/tests/tsc/scannerAdditiveExpression1.json index e34940060318..ba8b477d9486 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerAdditiveExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerAdditiveExpression1.json @@ -47,9 +47,7 @@ "start": 3, "end": 8 }, - "ctxt": 0, - "value": "index", - "optional": false + "value": "index" } }, "right": { @@ -107,9 +105,7 @@ "start": 16, "end": 22 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/scannerClass2.json b/crates/swc_ecma_parser/tests/tsc/scannerClass2.json index 3e8d76efc8ea..e23b1946ae2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerClass2.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerClass2.json @@ -44,9 +44,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -136,9 +134,7 @@ "start": 120, "end": 132 }, - "ctxt": 0, - "value": "_information", - "optional": false + "value": "_information" } }, "right": { @@ -173,9 +169,7 @@ "start": 140, "end": 146 }, - "ctxt": 0, - "value": "logger", - "optional": false + "value": "logger" } }, "property": { @@ -184,9 +178,7 @@ "start": 147, "end": 158 }, - "ctxt": 0, - "value": "information", - "optional": false + "value": "information" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/scannerImportDeclaration1.json b/crates/swc_ecma_parser/tests/tsc/scannerImportDeclaration1.json index b8603484c7eb..c59b3ec3d348 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerImportDeclaration1.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerImportDeclaration1.json @@ -25,6 +25,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 21, + "end": 50 + }, "left": { "type": "Identifier", "span": { @@ -41,9 +45,7 @@ "start": 40, "end": 50 }, - "ctxt": 0, - "value": "TypeScript", - "optional": false + "value": "TypeScript" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/scannertest1.json b/crates/swc_ecma_parser/tests/tsc/scannertest1.json index f086a740a41a..5afc656ff0c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannertest1.json +++ b/crates/swc_ecma_parser/tests/tsc/scannertest1.json @@ -37,9 +37,7 @@ "start": 80, "end": 94 }, - "ctxt": 0, - "value": "isDecimalDigit", - "optional": false + "value": "isDecimalDigit" }, "function": { "params": [ @@ -143,9 +141,7 @@ "start": 152, "end": 154 }, - "ctxt": 0, - "value": "_0", - "optional": false + "value": "_0" } } }, @@ -188,9 +184,7 @@ "start": 178, "end": 180 }, - "ctxt": 0, - "value": "_9", - "optional": false + "value": "_9" } } } @@ -236,9 +230,7 @@ "start": 207, "end": 217 }, - "ctxt": 0, - "value": "isHexDigit", - "optional": false + "value": "isHexDigit" }, "function": { "params": [ @@ -396,9 +388,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -441,9 +431,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } } } @@ -502,9 +490,7 @@ "start": 379, "end": 380 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -547,9 +533,7 @@ "start": 404, "end": 405 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -597,9 +581,7 @@ "start": 433, "end": 441 }, - "ctxt": 0, - "value": "hexValue", - "optional": false + "value": "hexValue" }, "function": { "params": [ @@ -686,9 +668,7 @@ "start": 477, "end": 483 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" } }, "arguments": [ @@ -824,9 +804,7 @@ "start": 567, "end": 569 }, - "ctxt": 0, - "value": "_0", - "optional": false + "value": "_0" } } } @@ -889,9 +867,7 @@ "start": 606, "end": 607 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -934,9 +910,7 @@ "start": 631, "end": 632 }, - "ctxt": 0, - "value": "F", - "optional": false + "value": "F" } } } @@ -988,9 +962,7 @@ "start": 671, "end": 672 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -1050,9 +1022,7 @@ "start": 715, "end": 716 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/scopeResolutionIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/scopeResolutionIdentifiers.json index 7fbf1b483ca0..952f9ec3d865 100644 --- a/crates/swc_ecma_parser/tests/tsc/scopeResolutionIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/scopeResolutionIdentifiers.json @@ -580,9 +580,7 @@ "start": 390, "end": 391 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": { @@ -632,9 +630,7 @@ "start": 403, "end": 404 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "MemberExpression", @@ -655,9 +651,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -683,9 +677,7 @@ "start": 419, "end": 420 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -749,9 +741,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/shadowedInternalModule.json b/crates/swc_ecma_parser/tests/tsc/shadowedInternalModule.json index 2f9977fe451d..f48927a6939b 100644 --- a/crates/swc_ecma_parser/tests/tsc/shadowedInternalModule.json +++ b/crates/swc_ecma_parser/tests/tsc/shadowedInternalModule.json @@ -78,9 +78,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -297,9 +293,7 @@ "start": 214, "end": 215 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -319,9 +313,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -575,9 +567,7 @@ "start": 409, "end": 413 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -661,6 +651,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 458, + "end": 461 + }, "left": { "type": "Identifier", "span": { @@ -677,9 +671,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } } }, @@ -833,6 +825,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 558, + "end": 561 + }, "left": { "type": "Identifier", "span": { @@ -849,9 +845,7 @@ "start": 560, "end": 561 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -937,6 +931,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 613, + "end": 616 + }, "left": { "type": "Identifier", "span": { @@ -953,9 +951,7 @@ "start": 615, "end": 616 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -1081,6 +1077,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 693, + "end": 696 + }, "left": { "type": "Identifier", "span": { @@ -1097,9 +1097,7 @@ "start": 695, "end": 696 }, - "ctxt": 0, - "value": "Q", - "optional": false + "value": "Q" } } }, @@ -1185,6 +1183,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 751, + "end": 754 + }, "left": { "type": "Identifier", "span": { @@ -1201,9 +1203,7 @@ "start": 753, "end": 754 }, - "ctxt": 0, - "value": "Q", - "optional": false + "value": "Q" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json index 3cd117151dba..579c70c3fb51 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json @@ -173,9 +173,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -252,9 +250,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -323,9 +319,7 @@ "start": 126, "end": 129 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -429,9 +423,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -508,9 +500,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -589,9 +579,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -725,9 +713,7 @@ "start": 247, "end": 250 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -804,9 +790,7 @@ "start": 264, "end": 267 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -885,9 +869,7 @@ "start": 279, "end": 282 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json index ec78ec453216..97c70cbfb1f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json @@ -233,9 +233,7 @@ "start": 202, "end": 205 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -312,9 +310,7 @@ "start": 219, "end": 222 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -383,9 +379,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -489,9 +483,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -568,9 +560,7 @@ "start": 293, "end": 296 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -639,9 +629,7 @@ "start": 313, "end": 316 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -720,9 +708,7 @@ "start": 328, "end": 331 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -856,9 +842,7 @@ "start": 380, "end": 383 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -935,9 +919,7 @@ "start": 397, "end": 400 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1006,9 +988,7 @@ "start": 417, "end": 420 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1087,9 +1067,7 @@ "start": 432, "end": 435 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json b/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json index 0fada83126e2..edfd4dd49c02 100644 --- a/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json +++ b/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json @@ -87,9 +87,7 @@ "start": 106, "end": 113 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -215,9 +213,7 @@ "start": 169, "end": 176 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -259,9 +255,7 @@ "start": 214, "end": 227 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], @@ -323,9 +317,7 @@ "start": 294, "end": 297 }, - "ctxt": 0, - "value": "non", - "optional": false + "value": "non" }, "value": { "type": "StringLiteral", @@ -359,9 +351,7 @@ "start": 310, "end": 317 }, - "ctxt": 0, - "value": "methode", - "optional": false + "value": "methode" }, "function": { "params": [], @@ -404,9 +394,7 @@ "start": 383, "end": 387 }, - "ctxt": 0, - "value": "none", - "optional": false + "value": "none" } } } @@ -463,9 +451,7 @@ "start": 431, "end": 438 }, - "ctxt": 0, - "value": "methode", - "optional": false + "value": "methode" }, "function": { "params": [], @@ -508,9 +494,7 @@ "start": 506, "end": 510 }, - "ctxt": 0, - "value": "none", - "optional": false + "value": "none" } } } @@ -586,9 +570,7 @@ "start": 540, "end": 547 }, - "ctxt": 0, - "value": "spaaace", - "optional": false + "value": "spaaace" }, "value": { "type": "NumericLiteral", @@ -634,9 +616,7 @@ "start": 560, "end": 568 }, - "ctxt": 0, - "value": "spaaaace", - "optional": false + "value": "spaaaace" } } }, @@ -675,9 +655,7 @@ "start": 593, "end": 599 }, - "ctxt": 0, - "value": "spaace", - "optional": false + "value": "spaace" } }, "right": { @@ -726,9 +704,7 @@ "start": 630, "end": 635 }, - "ctxt": 0, - "value": "fresh", - "optional": false + "value": "fresh" } }, "right": { @@ -770,9 +746,7 @@ "start": 653, "end": 659 }, - "ctxt": 0, - "value": "puuuce", - "optional": false + "value": "puuuce" } } }, @@ -821,9 +795,7 @@ "start": 696, "end": 706 }, - "ctxt": 0, - "value": "getGMTDate", - "optional": false + "value": "getGMTDate" } }, "arguments": [], @@ -914,9 +886,7 @@ "start": 821, "end": 824 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1150,9 +1120,7 @@ "start": 973, "end": 978 }, - "ctxt": 0, - "value": "puuce", - "optional": false + "value": "puuce" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadDuplicate.json b/crates/swc_ecma_parser/tests/tsc/spreadDuplicate.json index f8f2722e554c..a6baab015382 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadDuplicate.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadDuplicate.json @@ -455,9 +455,7 @@ "start": 246, "end": 247 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -534,9 +532,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -613,9 +609,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -692,9 +686,7 @@ "start": 397, "end": 398 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -771,9 +763,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -882,9 +872,7 @@ "start": 503, "end": 504 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -993,9 +981,7 @@ "start": 561, "end": 562 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1104,9 +1090,7 @@ "start": 619, "end": 620 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadDuplicateExact.json b/crates/swc_ecma_parser/tests/tsc/spreadDuplicateExact.json index d117360220f5..2c3f45b98ac8 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadDuplicateExact.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadDuplicateExact.json @@ -455,9 +455,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -534,9 +532,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -613,9 +609,7 @@ "start": 376, "end": 377 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -692,9 +686,7 @@ "start": 434, "end": 435 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -771,9 +763,7 @@ "start": 494, "end": 495 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -882,9 +872,7 @@ "start": 552, "end": 553 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -993,9 +981,7 @@ "start": 610, "end": 611 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1104,9 +1090,7 @@ "start": 680, "end": 681 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json b/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json index 864aa5ac4e34..e7fda155d248 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json @@ -145,9 +145,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -167,9 +165,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -189,9 +185,7 @@ "start": 69, "end": 74 }, - "ctxt": 0, - "value": "extra", - "optional": false + "value": "extra" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadMethods.json b/crates/swc_ecma_parser/tests/tsc/spreadMethods.json index bd912fa8cac2..39d8c19a5769 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadMethods.json @@ -37,9 +37,7 @@ "start": 70, "end": 71 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 82, "end": 83 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -118,9 +114,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -520,9 +514,7 @@ "start": 253, "end": 254 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -561,9 +553,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -598,9 +588,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -632,9 +620,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -673,9 +659,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -710,9 +694,7 @@ "start": 317, "end": 318 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -782,9 +764,7 @@ "start": 343, "end": 344 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -804,9 +784,7 @@ "start": 350, "end": 351 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -841,9 +819,7 @@ "start": 363, "end": 364 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "typeAnnotation": null, "body": { @@ -1038,9 +1014,7 @@ "start": 432, "end": 433 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -1079,9 +1053,7 @@ "start": 438, "end": 439 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1116,9 +1088,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -1150,9 +1120,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -1191,9 +1159,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1228,9 +1194,7 @@ "start": 487, "end": 488 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -1276,9 +1240,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -1298,9 +1260,7 @@ "start": 514, "end": 515 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -1335,9 +1295,7 @@ "start": 527, "end": 528 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "typeAnnotation": null, "body": { @@ -1532,9 +1490,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -1573,9 +1529,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1610,9 +1564,7 @@ "start": 616, "end": 617 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } }, @@ -1644,9 +1596,7 @@ "start": 629, "end": 630 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -1685,9 +1635,7 @@ "start": 636, "end": 637 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -1722,9 +1670,7 @@ "start": 651, "end": 652 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json b/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json index be8c58578b1b..0dc2b88a6f14 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json @@ -112,9 +112,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", @@ -195,9 +193,7 @@ "start": 147, "end": 150 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -300,9 +296,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadNonPrimitive.json b/crates/swc_ecma_parser/tests/tsc/spreadNonPrimitive.json index c723d09b4e05..0329996e2720 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadNonPrimitive.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadNonPrimitive.json @@ -178,9 +178,7 @@ "start": 62, "end": 63 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -217,9 +215,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json b/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json index a7b852509cf7..32fbf2e2e11a 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadObjectOrFalsy.json @@ -1500,9 +1500,7 @@ "start": 717, "end": 721 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -1569,9 +1567,7 @@ "start": 742, "end": 745 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -1621,9 +1617,7 @@ "start": 767, "end": 774 }, - "ctxt": 0, - "value": "hasData", - "optional": false + "value": "hasData" } }, "arguments": [], @@ -1675,9 +1669,7 @@ "start": 797, "end": 801 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -1686,9 +1678,7 @@ "start": 802, "end": 819 }, - "ctxt": 0, - "value": "toLocaleLowerCase", - "optional": false + "value": "toLocaleLowerCase" } }, "arguments": [], @@ -1725,9 +1715,7 @@ "start": 843, "end": 850 }, - "ctxt": 0, - "value": "hasData", - "optional": false + "value": "hasData" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json index 066bfea4623e..c37cab91e45b 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesProperty.json @@ -281,9 +281,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -434,9 +432,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -607,9 +603,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -767,9 +761,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json index 5a497e9b0a49..c606daae9473 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json @@ -281,9 +281,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -434,9 +432,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -530,9 +526,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -609,9 +603,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -765,9 +757,7 @@ "start": 464, "end": 465 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -942,9 +932,7 @@ "start": 575, "end": 576 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1155,9 +1143,7 @@ "start": 685, "end": 686 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1383,9 +1369,7 @@ "start": 785, "end": 792 }, - "ctxt": 0, - "value": "command", - "optional": false + "value": "command" }, "value": { "type": "StringLiteral", @@ -1518,9 +1502,7 @@ "start": 859, "end": 866 }, - "ctxt": 0, - "value": "command", - "optional": false + "value": "command" }, "value": { "type": "StringLiteral", @@ -1556,9 +1538,7 @@ "start": 882, "end": 889 }, - "ctxt": 0, - "value": "command", - "optional": false + "value": "command" }, "value": { "type": "StringLiteral", @@ -1737,9 +1717,7 @@ "start": 971, "end": 978 }, - "ctxt": 0, - "value": "command", - "optional": false + "value": "command" }, "value": { "type": "StringLiteral", @@ -1772,9 +1750,7 @@ "start": 991, "end": 998 }, - "ctxt": 0, - "value": "spoiler", - "optional": false + "value": "spoiler" }, "value": { "type": "BooleanLiteral", @@ -1796,9 +1772,7 @@ "start": 1008, "end": 1016 }, - "ctxt": 0, - "value": "spoiler2", - "optional": false + "value": "spoiler2" }, "value": { "type": "BooleanLiteral", @@ -1955,9 +1929,7 @@ "start": 1094, "end": 1095 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -2115,9 +2087,7 @@ "start": 1184, "end": 1185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadUnion.json b/crates/swc_ecma_parser/tests/tsc/spreadUnion.json index 511ba8f36ef1..cba98ea15829 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadUnion.json @@ -561,9 +561,7 @@ "start": 182, "end": 183 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json b/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json index dfb58fe9302b..0181cb288207 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadUnion3.json @@ -141,9 +141,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -508,9 +506,7 @@ "start": 242, "end": 243 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/staticAndNonStaticPropertiesSameName.json b/crates/swc_ecma_parser/tests/tsc/staticAndNonStaticPropertiesSameName.json index 6a85d1508fcf..9907b1e74f88 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticAndNonStaticPropertiesSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/staticAndNonStaticPropertiesSameName.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 37, "end": 38 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -166,9 +160,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/staticAutoAccessors.json b/crates/swc_ecma_parser/tests/tsc/staticAutoAccessors.json index 04a844672a3b..43aa5b772036 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticAutoAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/staticAutoAccessors.json @@ -37,9 +37,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -70,9 +68,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/staticAutoAccessorsWithDecorators.json b/crates/swc_ecma_parser/tests/tsc/staticAutoAccessorsWithDecorators.json index 6be14e608d7b..7d45263d36ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticAutoAccessorsWithDecorators.json +++ b/crates/swc_ecma_parser/tests/tsc/staticAutoAccessorsWithDecorators.json @@ -37,9 +37,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -123,9 +121,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/staticFactory1.json b/crates/swc_ecma_parser/tests/tsc/staticFactory1.json index f03d3d50e273..edaf847dcb2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticFactory1.json +++ b/crates/swc_ecma_parser/tests/tsc/staticFactory1.json @@ -37,9 +37,7 @@ "start": 18, "end": 21 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 49, "end": 55 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "function": { "params": [], @@ -196,9 +192,7 @@ "start": 129, "end": 132 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -318,9 +312,7 @@ "start": 167, "end": 173 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [], @@ -365,9 +357,7 @@ "start": 181, "end": 184 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json index d490ec96fddd..6c5da9b1f076 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json @@ -234,9 +234,7 @@ "start": 88, "end": 91 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json index c3ed998ad8d8..7ff1c482e5aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json @@ -234,9 +234,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json index b7f2813d6433..6fd59d429fef 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature6.json @@ -171,9 +171,7 @@ "start": 134, "end": 137 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -390,9 +388,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -431,9 +427,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -646,9 +640,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature7.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature7.json index 13bee68867e8..46f4339a9e6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature7.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature7.json @@ -88,9 +88,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -202,9 +200,7 @@ "start": 193, "end": 196 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json b/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json index 97eaf0ba6d37..f72988336cdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/staticMemberAssignsToConstructorFunctionMembers.json @@ -37,9 +37,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -92,9 +90,7 @@ "start": 40, "end": 43 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -147,9 +143,7 @@ "start": 74, "end": 77 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -236,9 +230,7 @@ "start": 109, "end": 112 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -300,9 +292,7 @@ "start": 144, "end": 147 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -377,9 +367,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/staticMemberInitialization.json b/crates/swc_ecma_parser/tests/tsc/staticMemberInitialization.json index 3f3f4613163f..e3783cf9d002 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticMemberInitialization.json +++ b/crates/swc_ecma_parser/tests/tsc/staticMemberInitialization.json @@ -37,9 +37,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -168,9 +166,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json index 1415475652aa..9acc60f442c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/staticMembersUsingClassTypeParameter.json @@ -37,9 +37,7 @@ "start": 39, "end": 40 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -235,9 +231,7 @@ "start": 98, "end": 99 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 115, "end": 116 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -455,9 +447,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -507,9 +497,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/staticPropertyAndFunctionWithSameName.json b/crates/swc_ecma_parser/tests/tsc/staticPropertyAndFunctionWithSameName.json index 8a18cdedbc80..33a28e30104f 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticPropertyAndFunctionWithSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/staticPropertyAndFunctionWithSameName.json @@ -37,9 +37,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 37, "end": 38 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -190,9 +184,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/staticPropertyNameConflictsInAmbientContext.json b/crates/swc_ecma_parser/tests/tsc/staticPropertyNameConflictsInAmbientContext.json index d8ccdd71e79e..21988aee83f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticPropertyNameConflictsInAmbientContext.json +++ b/crates/swc_ecma_parser/tests/tsc/staticPropertyNameConflictsInAmbientContext.json @@ -37,9 +37,7 @@ "start": 71, "end": 75 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 95, "end": 99 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 158, "end": 162 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "function": { "params": [], @@ -199,9 +193,7 @@ "start": 184, "end": 188 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "function": { "params": [], @@ -277,9 +269,7 @@ "start": 259, "end": 265 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -319,9 +309,7 @@ "start": 285, "end": 291 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -388,9 +376,7 @@ "start": 352, "end": 358 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "function": { "params": [], @@ -439,9 +425,7 @@ "start": 380, "end": 386 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "function": { "params": [], @@ -517,9 +501,7 @@ "start": 463, "end": 472 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" }, "value": null, "typeAnnotation": { @@ -559,9 +541,7 @@ "start": 492, "end": 501 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" }, "value": null, "typeAnnotation": { @@ -628,9 +608,7 @@ "start": 565, "end": 574 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" }, "value": null, "typeAnnotation": { @@ -670,9 +648,7 @@ "start": 591, "end": 600 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" }, "function": { "params": [], @@ -748,9 +724,7 @@ "start": 668, "end": 674 }, - "ctxt": 0, - "value": "caller", - "optional": false + "value": "caller" }, "value": null, "typeAnnotation": { @@ -790,9 +764,7 @@ "start": 694, "end": 700 }, - "ctxt": 0, - "value": "caller", - "optional": false + "value": "caller" }, "value": null, "typeAnnotation": { @@ -859,9 +831,7 @@ "start": 761, "end": 767 }, - "ctxt": 0, - "value": "caller", - "optional": false + "value": "caller" }, "function": { "params": [], @@ -910,9 +880,7 @@ "start": 786, "end": 792 }, - "ctxt": 0, - "value": "caller", - "optional": false + "value": "caller" }, "function": { "params": [], @@ -988,9 +956,7 @@ "start": 866, "end": 875 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "value": null, "typeAnnotation": { @@ -1030,9 +996,7 @@ "start": 895, "end": 904 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "value": null, "typeAnnotation": { @@ -1099,9 +1063,7 @@ "start": 968, "end": 977 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "function": { "params": [], @@ -1150,9 +1112,7 @@ "start": 996, "end": 1005 }, - "ctxt": 0, - "value": "arguments", - "optional": false + "value": "arguments" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json b/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json index 83710ff9eae0..37720c5a5a1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json @@ -62,9 +62,7 @@ "start": 43, "end": 45 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -122,9 +120,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -184,9 +180,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -250,9 +244,7 @@ "start": 138, "end": 149 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -352,9 +344,7 @@ "start": 206, "end": 209 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -596,9 +586,7 @@ "start": 378, "end": 380 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -657,9 +645,7 @@ "start": 399, "end": 402 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -715,9 +701,7 @@ "start": 428, "end": 431 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -773,9 +757,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -842,9 +824,7 @@ "start": 517, "end": 519 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -902,9 +882,7 @@ "start": 558, "end": 559 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -964,9 +942,7 @@ "start": 595, "end": 596 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1030,9 +1006,7 @@ "start": 612, "end": 623 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1152,9 +1126,7 @@ "start": 670, "end": 673 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1458,9 +1430,7 @@ "start": 838, "end": 840 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], @@ -1519,9 +1489,7 @@ "start": 859, "end": 862 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1577,9 +1545,7 @@ "start": 888, "end": 891 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1635,9 +1601,7 @@ "start": 917, "end": 918 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json index dfa775d89e73..a65e9cbb1d53 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json +++ b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json @@ -440,9 +440,7 @@ "start": 222, "end": 226 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -522,9 +520,7 @@ "start": 253, "end": 257 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -616,9 +612,7 @@ "start": 288, "end": 292 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -722,9 +716,7 @@ "start": 332, "end": 336 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -828,9 +820,7 @@ "start": 389, "end": 393 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -910,9 +900,7 @@ "start": 446, "end": 450 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -992,9 +980,7 @@ "start": 497, "end": 501 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -1098,9 +1084,7 @@ "start": 541, "end": 545 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -1192,9 +1176,7 @@ "start": 586, "end": 590 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -1298,9 +1280,7 @@ "start": 635, "end": 639 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -1416,9 +1396,7 @@ "start": 694, "end": 699 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -1534,9 +1512,7 @@ "start": 741, "end": 746 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -1640,9 +1616,7 @@ "start": 789, "end": 794 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -1758,9 +1732,7 @@ "start": 841, "end": 846 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -1865,9 +1837,7 @@ "start": 903, "end": 914 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1961,9 +1931,7 @@ "start": 944, "end": 947 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -2136,9 +2104,7 @@ "start": 1008, "end": 1018 }, - "ctxt": 0, - "value": "overloaded", - "optional": false + "value": "overloaded" }, "function": { "params": [ @@ -2221,9 +2187,7 @@ "start": 1043, "end": 1053 }, - "ctxt": 0, - "value": "overloaded", - "optional": false + "value": "overloaded" }, "function": { "params": [ @@ -2306,9 +2270,7 @@ "start": 1078, "end": 1088 }, - "ctxt": 0, - "value": "overloaded", - "optional": false + "value": "overloaded" }, "function": { "params": [ @@ -2432,9 +2394,7 @@ "start": 1132, "end": 1139 }, - "ctxt": 0, - "value": "generic", - "optional": false + "value": "generic" }, "function": { "params": [ @@ -2752,9 +2712,7 @@ "start": 1220, "end": 1223 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -2763,9 +2721,7 @@ "start": 1224, "end": 1228 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -2851,9 +2807,7 @@ "start": 1245, "end": 1248 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -2862,9 +2816,7 @@ "start": 1249, "end": 1253 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -2962,9 +2914,7 @@ "start": 1274, "end": 1277 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -2973,9 +2923,7 @@ "start": 1278, "end": 1282 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -3085,9 +3033,7 @@ "start": 1312, "end": 1315 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -3096,9 +3042,7 @@ "start": 1316, "end": 1320 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -3208,9 +3152,7 @@ "start": 1355, "end": 1358 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -3219,9 +3161,7 @@ "start": 1359, "end": 1363 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -3307,9 +3247,7 @@ "start": 1399, "end": 1409 }, - "ctxt": 0, - "value": "overloaded", - "optional": false + "value": "overloaded" } }, "property": { @@ -3318,9 +3256,7 @@ "start": 1410, "end": 1414 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -3406,9 +3342,7 @@ "start": 1465, "end": 1472 }, - "ctxt": 0, - "value": "generic", - "optional": false + "value": "generic" } }, "property": { @@ -3417,9 +3351,7 @@ "start": 1473, "end": 1477 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -3505,9 +3437,7 @@ "start": 1526, "end": 1529 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -3516,9 +3446,7 @@ "start": 1530, "end": 1534 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -3628,9 +3556,7 @@ "start": 1564, "end": 1567 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -3639,9 +3565,7 @@ "start": 1568, "end": 1572 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -3739,9 +3663,7 @@ "start": 1603, "end": 1606 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -3750,9 +3672,7 @@ "start": 1607, "end": 1611 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -3862,9 +3782,7 @@ "start": 1646, "end": 1649 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -3873,9 +3791,7 @@ "start": 1650, "end": 1654 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -3997,9 +3913,7 @@ "start": 1698, "end": 1701 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -4008,9 +3922,7 @@ "start": 1702, "end": 1706 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -4120,9 +4032,7 @@ "start": 1755, "end": 1758 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -4131,9 +4041,7 @@ "start": 1759, "end": 1764 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -4255,9 +4163,7 @@ "start": 1796, "end": 1799 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -4266,9 +4172,7 @@ "start": 1800, "end": 1805 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -4378,9 +4282,7 @@ "start": 1838, "end": 1841 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -4389,9 +4291,7 @@ "start": 1842, "end": 1847 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -4513,9 +4413,7 @@ "start": 1884, "end": 1887 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -4524,9 +4422,7 @@ "start": 1888, "end": 1893 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -4660,9 +4556,7 @@ "start": 1939, "end": 1942 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -4671,9 +4565,7 @@ "start": 1943, "end": 1948 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -4789,9 +4681,7 @@ "start": 1999, "end": 2003 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -4871,9 +4761,7 @@ "start": 2028, "end": 2032 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -4965,9 +4853,7 @@ "start": 2061, "end": 2065 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -5071,9 +4957,7 @@ "start": 2103, "end": 2107 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -5156,9 +5040,7 @@ "start": 2141, "end": 2145 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -5238,9 +5120,7 @@ "start": 2165, "end": 2169 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -5308,9 +5188,7 @@ "start": 2190, "end": 2194 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -5390,9 +5268,7 @@ "start": 2219, "end": 2223 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -5484,9 +5360,7 @@ "start": 2258, "end": 2263 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -5578,9 +5452,7 @@ "start": 2285, "end": 2290 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -5660,9 +5532,7 @@ "start": 2313, "end": 2318 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -5754,9 +5624,7 @@ "start": 2345, "end": 2350 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -6019,9 +5887,7 @@ "start": 2475, "end": 2479 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -6076,9 +5942,7 @@ "start": 2497, "end": 2501 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -6432,9 +6296,7 @@ "start": 2647, "end": 2651 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -6489,9 +6351,7 @@ "start": 2669, "end": 2673 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -6621,9 +6481,7 @@ "start": 2748, "end": 2759 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -6672,9 +6530,7 @@ "start": 2777, "end": 2779 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "property": { @@ -6683,9 +6539,7 @@ "start": 2780, "end": 2784 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -6720,9 +6574,7 @@ "start": 2803, "end": 2805 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ @@ -6907,9 +6759,7 @@ "start": 2863, "end": 2874 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -6958,9 +6808,7 @@ "start": 2892, "end": 2894 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "property": { @@ -6969,9 +6817,7 @@ "start": 2895, "end": 2899 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -7006,9 +6852,7 @@ "start": 2918, "end": 2920 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json index 1f8aa7374b10..c4cebe0662d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json +++ b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json @@ -273,9 +273,7 @@ "start": 202, "end": 206 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -296,9 +294,7 @@ "start": 209, "end": 213 }, - "ctxt": 0, - "value": "blub", - "optional": false + "value": "blub" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json b/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json index 1d5306018edc..003b3607d10f 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json +++ b/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json @@ -37,9 +37,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -138,9 +134,7 @@ "start": 190, "end": 191 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -197,9 +191,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "d", - "optional": true + "value": "d" }, "value": null, "typeAnnotation": { @@ -456,9 +448,7 @@ "start": 416, "end": 417 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -498,9 +488,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -557,9 +545,7 @@ "start": 458, "end": 459 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -616,9 +602,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "d", - "optional": true + "value": "d" }, "value": null, "typeAnnotation": { @@ -875,9 +859,7 @@ "start": 661, "end": 662 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -917,9 +899,7 @@ "start": 683, "end": 684 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -976,9 +956,7 @@ "start": 717, "end": 718 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -1035,9 +1013,7 @@ "start": 746, "end": 747 }, - "ctxt": 0, - "value": "d", - "optional": true + "value": "d" }, "value": null, "typeAnnotation": { @@ -1104,9 +1080,7 @@ "start": 830, "end": 831 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1140,9 +1114,7 @@ "start": 841, "end": 842 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -1190,9 +1162,7 @@ "start": 860, "end": 861 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "StringLiteral", @@ -1394,9 +1364,7 @@ "start": 1017, "end": 1018 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1476,9 +1444,7 @@ "start": 1048, "end": 1059 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1521,9 +1487,7 @@ "start": 1077, "end": 1078 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1627,9 +1591,7 @@ "start": 1172, "end": 1173 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -1709,9 +1671,7 @@ "start": 1212, "end": 1223 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1824,9 +1784,7 @@ "start": 1304, "end": 1305 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1930,9 +1888,7 @@ "start": 1356, "end": 1357 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -2012,9 +1968,7 @@ "start": 1387, "end": 1398 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -2115,9 +2069,7 @@ "start": 1453, "end": 1454 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2221,9 +2173,7 @@ "start": 1528, "end": 1529 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2327,9 +2277,7 @@ "start": 1636, "end": 1637 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -2478,9 +2426,7 @@ "start": 1782, "end": 1783 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -2520,9 +2466,7 @@ "start": 1806, "end": 1807 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -2579,9 +2523,7 @@ "start": 1842, "end": 1843 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -2638,9 +2580,7 @@ "start": 1873, "end": 1874 }, - "ctxt": 0, - "value": "d", - "optional": true + "value": "d" }, "value": null, "typeAnnotation": { @@ -2707,9 +2647,7 @@ "start": 2017, "end": 2018 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -2749,9 +2687,7 @@ "start": 2032, "end": 2033 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -2791,9 +2727,7 @@ "start": 2047, "end": 2048 }, - "ctxt": 0, - "value": "c", - "optional": true + "value": "c" }, "value": null, "typeAnnotation": { @@ -2873,9 +2807,7 @@ "start": 2079, "end": 2090 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2932,9 +2864,7 @@ "start": 2116, "end": 2117 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2973,9 +2903,7 @@ "start": 2142, "end": 2143 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -2997,9 +2925,7 @@ "start": 2151, "end": 2152 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -3036,9 +2962,7 @@ "start": 2177, "end": 2178 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -3097,9 +3021,7 @@ "start": 2210, "end": 2211 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -3207,9 +3129,7 @@ "start": 2259, "end": 2260 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "definite": false @@ -3300,9 +3220,7 @@ "start": 2411, "end": 2412 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -3382,9 +3300,7 @@ "start": 2442, "end": 2453 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -3427,9 +3343,7 @@ "start": 2471, "end": 2472 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3793,9 +3707,7 @@ "start": 2634, "end": 2645 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -4109,9 +4021,7 @@ "start": 2779, "end": 2780 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -4154,9 +4064,7 @@ "start": 2795, "end": 2806 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -4221,9 +4129,7 @@ "start": 2826, "end": 2827 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json b/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json index a3aafc75fe42..6192e581ad18 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json +++ b/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json @@ -317,9 +317,7 @@ "start": 94, "end": 100 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -397,9 +395,7 @@ "start": 119, "end": 125 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -477,9 +473,7 @@ "start": 144, "end": 150 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -549,9 +543,7 @@ "start": 175, "end": 181 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json index 536d5e93e0fb..e5eea29fd34a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json @@ -144,6 +144,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 75, + "end": 85 + }, "left": { "type": "Identifier", "span": { @@ -160,9 +164,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -175,6 +177,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 88, + "end": 97 + }, "left": { "type": "Identifier", "span": { @@ -191,9 +197,7 @@ "start": 95, "end": 97 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -234,6 +238,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 112, + "end": 121 + }, "left": { "type": "Identifier", "span": { @@ -250,9 +258,7 @@ "start": 119, "end": 121 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -265,6 +271,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 124, + "end": 134 + }, "left": { "type": "Identifier", "span": { @@ -281,9 +291,7 @@ "start": 131, "end": 134 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -324,6 +332,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 156, + "end": 170 + }, "left": { "type": "Identifier", "span": { @@ -340,9 +352,7 @@ "start": 163, "end": 170 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "typeParams": null @@ -355,6 +365,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 173, + "end": 183 + }, "left": { "type": "Identifier", "span": { @@ -371,9 +385,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -386,6 +398,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 186, + "end": 195 + }, "left": { "type": "Identifier", "span": { @@ -402,9 +418,7 @@ "start": 193, "end": 195 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -598,6 +612,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 261, + "end": 271 + }, "left": { "type": "Identifier", "span": { @@ -614,9 +632,7 @@ "start": 268, "end": 271 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -629,6 +645,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 274, + "end": 283 + }, "left": { "type": "Identifier", "span": { @@ -645,9 +665,7 @@ "start": 281, "end": 283 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -707,6 +725,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 296, + "end": 305 + }, "left": { "type": "Identifier", "span": { @@ -723,9 +745,7 @@ "start": 303, "end": 305 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -738,6 +758,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 308, + "end": 318 + }, "left": { "type": "Identifier", "span": { @@ -754,9 +778,7 @@ "start": 315, "end": 318 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1094,6 +1116,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 426, + "end": 436 + }, "left": { "type": "Identifier", "span": { @@ -1110,9 +1136,7 @@ "start": 433, "end": 436 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1809,6 +1833,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 670, + "end": 680 + }, "left": { "type": "Identifier", "span": { @@ -1825,9 +1853,7 @@ "start": 677, "end": 680 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1906,6 +1932,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 713, + "end": 722 + }, "left": { "type": "Identifier", "span": { @@ -1922,9 +1952,7 @@ "start": 720, "end": 722 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -2270,9 +2298,7 @@ "start": 848, "end": 851 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2352,9 +2378,7 @@ "start": 876, "end": 878 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2807,9 +2831,7 @@ "start": 1087, "end": 1090 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -2859,9 +2881,7 @@ "start": 1127, "end": 1129 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3009,9 +3029,7 @@ "start": 1218, "end": 1221 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3061,9 +3079,7 @@ "start": 1258, "end": 1260 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3402,9 +3418,7 @@ "start": 1460, "end": 1463 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } }, @@ -3535,6 +3549,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1539, + "end": 1549 + }, "left": { "type": "Identifier", "span": { @@ -3551,9 +3569,7 @@ "start": 1546, "end": 1549 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -3637,6 +3653,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1577, + "end": 1586 + }, "left": { "type": "Identifier", "span": { @@ -3653,9 +3673,7 @@ "start": 1584, "end": 1586 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -3802,9 +3820,7 @@ "start": 1640, "end": 1644 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3836,9 +3852,7 @@ "start": 1668, "end": 1671 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3870,9 +3884,7 @@ "start": 1682, "end": 1683 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3906,9 +3918,7 @@ "start": 1705, "end": 1707 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3940,9 +3950,7 @@ "start": 1718, "end": 1719 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -4057,9 +4065,7 @@ "start": 1768, "end": 1772 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4091,9 +4097,7 @@ "start": 1796, "end": 1799 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4125,9 +4129,7 @@ "start": 1810, "end": 1811 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4161,9 +4163,7 @@ "start": 1833, "end": 1835 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4195,9 +4195,7 @@ "start": 1846, "end": 1847 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json index 429c6e81feec..42749f026ba6 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json @@ -144,6 +144,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 103, + "end": 113 + }, "left": { "type": "Identifier", "span": { @@ -160,9 +164,7 @@ "start": 110, "end": 113 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -175,6 +177,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 116, + "end": 125 + }, "left": { "type": "Identifier", "span": { @@ -191,9 +197,7 @@ "start": 123, "end": 125 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -234,6 +238,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 140, + "end": 149 + }, "left": { "type": "Identifier", "span": { @@ -250,9 +258,7 @@ "start": 147, "end": 149 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -265,6 +271,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 152, + "end": 162 + }, "left": { "type": "Identifier", "span": { @@ -281,9 +291,7 @@ "start": 159, "end": 162 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -324,6 +332,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 184, + "end": 198 + }, "left": { "type": "Identifier", "span": { @@ -340,9 +352,7 @@ "start": 191, "end": 198 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "typeParams": null @@ -355,6 +365,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 201, + "end": 211 + }, "left": { "type": "Identifier", "span": { @@ -371,9 +385,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -386,6 +398,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 214, + "end": 223 + }, "left": { "type": "Identifier", "span": { @@ -402,9 +418,7 @@ "start": 221, "end": 223 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -598,6 +612,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 289, + "end": 299 + }, "left": { "type": "Identifier", "span": { @@ -614,9 +632,7 @@ "start": 296, "end": 299 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -629,6 +645,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 302, + "end": 311 + }, "left": { "type": "Identifier", "span": { @@ -645,9 +665,7 @@ "start": 309, "end": 311 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -707,6 +725,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 324, + "end": 333 + }, "left": { "type": "Identifier", "span": { @@ -723,9 +745,7 @@ "start": 331, "end": 333 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -738,6 +758,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 336, + "end": 346 + }, "left": { "type": "Identifier", "span": { @@ -754,9 +778,7 @@ "start": 343, "end": 346 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1094,6 +1116,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 454, + "end": 464 + }, "left": { "type": "Identifier", "span": { @@ -1110,9 +1136,7 @@ "start": 461, "end": 464 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1809,6 +1833,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 698, + "end": 708 + }, "left": { "type": "Identifier", "span": { @@ -1825,9 +1853,7 @@ "start": 705, "end": 708 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -1906,6 +1932,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 741, + "end": 750 + }, "left": { "type": "Identifier", "span": { @@ -1922,9 +1952,7 @@ "start": 748, "end": 750 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -2270,9 +2298,7 @@ "start": 876, "end": 879 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2352,9 +2378,7 @@ "start": 904, "end": 906 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2807,9 +2831,7 @@ "start": 1115, "end": 1118 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -2859,9 +2881,7 @@ "start": 1155, "end": 1157 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3009,9 +3029,7 @@ "start": 1246, "end": 1249 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3061,9 +3079,7 @@ "start": 1286, "end": 1288 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3402,9 +3418,7 @@ "start": 1488, "end": 1491 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } }, @@ -3535,6 +3549,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1567, + "end": 1577 + }, "left": { "type": "Identifier", "span": { @@ -3551,9 +3569,7 @@ "start": 1574, "end": 1577 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -3637,6 +3653,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 1605, + "end": 1614 + }, "left": { "type": "Identifier", "span": { @@ -3653,9 +3673,7 @@ "start": 1612, "end": 1614 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -3802,9 +3820,7 @@ "start": 1668, "end": 1672 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -3836,9 +3852,7 @@ "start": 1696, "end": 1699 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -3870,9 +3884,7 @@ "start": 1710, "end": 1711 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3906,9 +3918,7 @@ "start": 1733, "end": 1735 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -3940,9 +3950,7 @@ "start": 1746, "end": 1747 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -4057,9 +4065,7 @@ "start": 1796, "end": 1800 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "cases": [ @@ -4091,9 +4097,7 @@ "start": 1824, "end": 1827 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4125,9 +4129,7 @@ "start": 1838, "end": 1839 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -4161,9 +4163,7 @@ "start": 1861, "end": 1863 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4195,9 +4195,7 @@ "start": 1874, "end": 1875 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json index 152f6e144182..9d8746a8ef78 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json @@ -137,6 +137,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 73, + "end": 83 + }, "left": { "type": "Identifier", "span": { @@ -153,9 +157,7 @@ "start": 80, "end": 83 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -194,6 +196,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 98, + "end": 108 + }, "left": { "type": "Identifier", "span": { @@ -210,9 +216,7 @@ "start": 105, "end": 108 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -225,6 +229,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 111, + "end": 120 + }, "left": { "type": "Identifier", "span": { @@ -241,9 +249,7 @@ "start": 118, "end": 120 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -284,6 +290,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 135, + "end": 144 + }, "left": { "type": "Identifier", "span": { @@ -300,9 +310,7 @@ "start": 142, "end": 144 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -315,6 +323,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 147, + "end": 157 + }, "left": { "type": "Identifier", "span": { @@ -331,9 +343,7 @@ "start": 154, "end": 157 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -374,6 +384,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 179, + "end": 193 + }, "left": { "type": "Identifier", "span": { @@ -390,9 +404,7 @@ "start": 186, "end": 193 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "typeParams": null @@ -405,6 +417,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 196, + "end": 206 + }, "left": { "type": "Identifier", "span": { @@ -421,9 +437,7 @@ "start": 203, "end": 206 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "typeParams": null @@ -436,6 +450,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 209, + "end": 218 + }, "left": { "type": "Identifier", "span": { @@ -452,9 +470,7 @@ "start": 216, "end": 218 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "typeParams": null @@ -2117,9 +2133,7 @@ "start": 724, "end": 731 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2170,9 +2184,7 @@ "start": 748, "end": 751 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2223,9 +2235,7 @@ "start": 768, "end": 770 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2276,9 +2286,7 @@ "start": 787, "end": 794 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2329,9 +2337,7 @@ "start": 811, "end": 814 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2382,9 +2388,7 @@ "start": 831, "end": 833 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2435,9 +2439,7 @@ "start": 850, "end": 857 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2488,9 +2490,7 @@ "start": 874, "end": 877 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2541,9 +2541,7 @@ "start": 894, "end": 896 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2594,9 +2592,7 @@ "start": 913, "end": 920 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -2647,9 +2643,7 @@ "start": 937, "end": 940 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -2700,9 +2694,7 @@ "start": 957, "end": 959 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -2960,9 +2952,7 @@ "start": 1041, "end": 1048 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3012,9 +3002,7 @@ "start": 1067, "end": 1070 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3064,9 +3052,7 @@ "start": 1089, "end": 1091 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3116,9 +3102,7 @@ "start": 1110, "end": 1117 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3168,9 +3152,7 @@ "start": 1136, "end": 1139 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3220,9 +3202,7 @@ "start": 1158, "end": 1160 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3272,9 +3252,7 @@ "start": 1179, "end": 1186 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3324,9 +3302,7 @@ "start": 1205, "end": 1208 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3376,9 +3352,7 @@ "start": 1227, "end": 1229 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -3428,9 +3402,7 @@ "start": 1248, "end": 1255 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } } } @@ -3480,9 +3452,7 @@ "start": 1274, "end": 1277 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } } } @@ -3532,9 +3502,7 @@ "start": 1296, "end": 1298 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } } } @@ -4431,9 +4399,7 @@ "start": 1639, "end": 1646 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -4484,9 +4450,7 @@ "start": 1678, "end": 1681 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4537,9 +4501,7 @@ "start": 1713, "end": 1715 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -4729,9 +4691,7 @@ "start": 1819, "end": 1826 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -4782,9 +4742,7 @@ "start": 1858, "end": 1861 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -4835,9 +4793,7 @@ "start": 1893, "end": 1895 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -5027,9 +4983,7 @@ "start": 2013, "end": 2020 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -5080,9 +5034,7 @@ "start": 2052, "end": 2055 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -5133,9 +5085,7 @@ "start": 2087, "end": 2089 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ @@ -5325,9 +5275,7 @@ "start": 2195, "end": 2202 }, - "ctxt": 0, - "value": "Unknown", - "optional": false + "value": "Unknown" } }, "consequent": [ @@ -5378,9 +5326,7 @@ "start": 2234, "end": 2237 }, - "ctxt": 0, - "value": "Yes", - "optional": false + "value": "Yes" } }, "consequent": [ @@ -5431,9 +5377,7 @@ "start": 2269, "end": 2271 }, - "ctxt": 0, - "value": "No", - "optional": false + "value": "No" } }, "consequent": [ diff --git a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json index 691a170ba8f1..c6221ac9f389 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json @@ -172,9 +172,7 @@ "start": 187, "end": 198 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -201,9 +199,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -243,9 +239,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -285,9 +279,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -589,9 +581,7 @@ "start": 437, "end": 438 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -641,9 +631,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -703,9 +691,7 @@ "start": 513, "end": 514 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [ @@ -768,9 +754,7 @@ "start": 533, "end": 536 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -830,9 +814,7 @@ "start": 587, "end": 589 }, - "ctxt": 0, - "value": "sa", - "optional": false + "value": "sa" }, "value": null, "typeAnnotation": { @@ -872,9 +854,7 @@ "start": 616, "end": 618 }, - "ctxt": 0, - "value": "sb", - "optional": false + "value": "sb" }, "value": null, "typeAnnotation": { @@ -914,9 +894,7 @@ "start": 646, "end": 649 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -959,9 +937,7 @@ "start": 677, "end": 678 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "function": { "params": [], @@ -2234,9 +2210,7 @@ "start": 1484, "end": 1485 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -2256,9 +2230,7 @@ "start": 1495, "end": 1496 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2278,9 +2250,7 @@ "start": 1506, "end": 1507 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ArrowFunctionExpression", @@ -2439,9 +2409,7 @@ "start": 1609, "end": 1610 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "TsTypeAssertion", @@ -2488,9 +2456,7 @@ "start": 1638, "end": 1639 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "typeAnnotation": null, "body": { @@ -2532,9 +2498,7 @@ "start": 1679, "end": 1680 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" }, "thisParam": null, "param": { @@ -2566,9 +2530,7 @@ "start": 1694, "end": 1697 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json index e3dc232a7b3f..6cf5f6aa452a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json @@ -37,9 +37,7 @@ "start": 80, "end": 83 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -140,9 +138,7 @@ "start": 136, "end": 139 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -313,9 +309,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -365,9 +359,7 @@ "start": 220, "end": 221 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -417,9 +409,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -459,9 +449,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1132,9 +1120,7 @@ "start": 559, "end": 560 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -1155,9 +1141,7 @@ "start": 569, "end": 570 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json b/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json index c917a657245d..f98637ec2ec9 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json +++ b/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json @@ -88,9 +88,7 @@ "start": 40, "end": 41 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -1163,9 +1161,7 @@ "start": 367, "end": 368 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json index 0e78e0b6250a..906b7bd509dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json @@ -1847,9 +1847,7 @@ "start": 735, "end": 743 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -1921,9 +1919,7 @@ "start": 775, "end": 781 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" }, "function": { "params": [ @@ -2029,9 +2025,7 @@ "start": 824, "end": 834 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" }, "function": { "params": [ @@ -2137,9 +2131,7 @@ "start": 879, "end": 885 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" }, "function": { "params": [ @@ -2264,9 +2256,7 @@ "start": 937, "end": 944 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" }, "function": { "params": [ @@ -2405,9 +2395,7 @@ "start": 1015, "end": 1026 }, - "ctxt": 0, - "value": "lastIndexOf", - "optional": false + "value": "lastIndexOf" }, "function": { "params": [ @@ -2546,9 +2534,7 @@ "start": 1097, "end": 1110 }, - "ctxt": 0, - "value": "localeCompare", - "optional": false + "value": "localeCompare" }, "function": { "params": [ @@ -2654,9 +2640,7 @@ "start": 1154, "end": 1159 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" }, "function": { "params": [ @@ -2772,9 +2756,7 @@ "start": 1212, "end": 1219 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" }, "function": { "params": [ @@ -2913,9 +2895,7 @@ "start": 1286, "end": 1292 }, - "ctxt": 0, - "value": "search", - "optional": false + "value": "search" }, "function": { "params": [ @@ -3021,9 +3001,7 @@ "start": 1335, "end": 1340 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" }, "function": { "params": [ @@ -3162,9 +3140,7 @@ "start": 1400, "end": 1405 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" }, "function": { "params": [ @@ -3310,9 +3286,7 @@ "start": 1469, "end": 1478 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" }, "function": { "params": [ @@ -3451,9 +3425,7 @@ "start": 1537, "end": 1548 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" }, "function": { "params": [], @@ -3525,9 +3497,7 @@ "start": 1580, "end": 1597 }, - "ctxt": 0, - "value": "toLocaleLowerCase", - "optional": false + "value": "toLocaleLowerCase" }, "function": { "params": [], @@ -3599,9 +3569,7 @@ "start": 1629, "end": 1640 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" }, "function": { "params": [], @@ -3673,9 +3641,7 @@ "start": 1672, "end": 1689 }, - "ctxt": 0, - "value": "toLocaleUpperCase", - "optional": false + "value": "toLocaleUpperCase" }, "function": { "params": [], @@ -3747,9 +3713,7 @@ "start": 1721, "end": 1725 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" }, "function": { "params": [], @@ -3821,9 +3785,7 @@ "start": 1757, "end": 1763 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": null, "typeAnnotation": { @@ -3863,9 +3825,7 @@ "start": 1777, "end": 1783 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" }, "function": { "params": [ @@ -4004,9 +3964,7 @@ "start": 1844, "end": 1851 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json index 840b54db2320..d77a2cc9a47b 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json @@ -1023,9 +1023,7 @@ "start": 463, "end": 467 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -1127,9 +1125,7 @@ "start": 498, "end": 502 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -1149,9 +1145,7 @@ "start": 513, "end": 514 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json index 0944eccf1e80..90eb903d3f65 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json @@ -861,9 +861,7 @@ "start": 409, "end": 413 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -1034,9 +1032,7 @@ "start": 444, "end": 448 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -1056,9 +1052,7 @@ "start": 459, "end": 460 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json index 8142da1b9017..3484ff38f996 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json @@ -911,9 +911,7 @@ "start": 697, "end": 701 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" } }, "right": { @@ -1050,9 +1048,7 @@ "start": 732, "end": 736 }, - "ctxt": 0, - "value": "kind", - "optional": false + "value": "kind" }, "value": { "type": "StringLiteral", @@ -1072,9 +1068,7 @@ "start": 747, "end": 748 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json index 866fced3a8a0..db0a2b5de171 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json @@ -339,9 +339,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -772,9 +770,7 @@ "start": 312, "end": 315 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -847,9 +843,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "FunctionExpression", @@ -976,9 +970,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json index e4b57515ac7a..69ef6e4796ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json @@ -173,9 +173,7 @@ "start": 127, "end": 130 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -244,9 +242,7 @@ "start": 147, "end": 150 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -910,9 +906,7 @@ "start": 355, "end": 358 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -985,9 +979,7 @@ "start": 377, "end": 380 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json index 6b74401c8c36..b7ec6474961b 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json @@ -101,9 +101,7 @@ "start": 23, "end": 29 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -182,9 +180,7 @@ "start": 44, "end": 58 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json index 81c65f2a3512..8150f41ef8f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfAny.json @@ -1145,9 +1145,7 @@ "start": 589, "end": 592 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1339,9 +1337,7 @@ "start": 671, "end": 674 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2337,9 +2333,7 @@ "start": 1068, "end": 1071 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json index 4ea9f4ab9294..d273b658636f 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json @@ -37,9 +37,7 @@ "start": 84, "end": 87 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -146,9 +144,7 @@ "start": 130, "end": 133 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -682,9 +678,7 @@ "start": 296, "end": 299 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -751,9 +745,7 @@ "start": 325, "end": 328 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1008,9 +1000,7 @@ "start": 412, "end": 415 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -2275,9 +2265,7 @@ "start": 992, "end": 995 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -2372,9 +2360,7 @@ "start": 1032, "end": 1035 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -3648,9 +3634,7 @@ "start": 1584, "end": 1585 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "alternate": { @@ -3741,9 +3725,7 @@ "start": 1618, "end": 1619 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints.json index c383a1113610..8a15aeed3bca 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints.json @@ -37,9 +37,7 @@ "start": 101, "end": 104 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -207,9 +205,7 @@ "start": 177, "end": 180 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -451,9 +447,7 @@ "start": 259, "end": 262 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -695,9 +689,7 @@ "start": 341, "end": 344 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -939,9 +931,7 @@ "start": 426, "end": 429 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1183,9 +1173,7 @@ "start": 589, "end": 592 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1466,9 +1454,7 @@ "start": 684, "end": 687 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1749,9 +1735,7 @@ "start": 773, "end": 776 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2032,9 +2016,7 @@ "start": 939, "end": 942 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2315,9 +2297,7 @@ "start": 1037, "end": 1040 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2598,9 +2578,7 @@ "start": 1133, "end": 1136 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2881,9 +2859,7 @@ "start": 1294, "end": 1297 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3164,9 +3140,7 @@ "start": 1393, "end": 1396 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3447,9 +3421,7 @@ "start": 1492, "end": 1495 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3730,9 +3702,7 @@ "start": 1687, "end": 1690 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4030,9 +4000,7 @@ "start": 1796, "end": 1799 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4330,9 +4298,7 @@ "start": 1905, "end": 1908 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4630,9 +4596,7 @@ "start": 2008, "end": 2011 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4930,9 +4894,7 @@ "start": 2200, "end": 2203 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -5230,9 +5192,7 @@ "start": 2309, "end": 2312 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -5530,9 +5490,7 @@ "start": 2421, "end": 2424 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -5830,9 +5788,7 @@ "start": 2530, "end": 2533 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -6130,9 +6086,7 @@ "start": 2719, "end": 2722 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -6430,9 +6384,7 @@ "start": 2828, "end": 2831 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -6730,9 +6682,7 @@ "start": 2940, "end": 2943 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -7030,9 +6980,7 @@ "start": 3052, "end": 3055 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -7330,9 +7278,7 @@ "start": 3241, "end": 3244 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -7630,9 +7576,7 @@ "start": 3353, "end": 3356 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -7930,9 +7874,7 @@ "start": 3468, "end": 3471 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -8230,9 +8172,7 @@ "start": 3583, "end": 3586 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json index b713f1425268..244a6dea130e 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json @@ -1737,9 +1737,7 @@ "start": 777, "end": 780 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1806,9 +1804,7 @@ "start": 806, "end": 809 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2063,9 +2059,7 @@ "start": 893, "end": 896 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -4043,9 +4037,7 @@ "start": 1790, "end": 1793 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -4140,9 +4132,7 @@ "start": 1836, "end": 1839 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -6302,9 +6292,7 @@ "start": 2711, "end": 2712 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "alternate": { @@ -6395,9 +6383,7 @@ "start": 2751, "end": 2752 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json index 1cbb80469614..ff46c5ef7945 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints4.json @@ -37,9 +37,7 @@ "start": 95, "end": 98 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1231,9 +1229,7 @@ "start": 631, "end": 634 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1401,9 +1397,7 @@ "start": 728, "end": 731 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1684,9 +1678,7 @@ "start": 831, "end": 834 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1967,9 +1959,7 @@ "start": 934, "end": 937 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2250,9 +2240,7 @@ "start": 1036, "end": 1039 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2533,9 +2521,7 @@ "start": 1135, "end": 1138 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2816,9 +2802,7 @@ "start": 1237, "end": 1240 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3099,9 +3083,7 @@ "start": 1339, "end": 1342 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3382,9 +3364,7 @@ "start": 1441, "end": 1444 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3665,9 +3645,7 @@ "start": 1540, "end": 1543 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json index 5cf0ba7718b6..a3366737a65e 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithRecursiveConstraints.json @@ -37,9 +37,7 @@ "start": 98, "end": 101 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2771,9 +2769,7 @@ "start": 1221, "end": 1224 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2941,9 +2937,7 @@ "start": 1353, "end": 1356 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3319,9 +3313,7 @@ "start": 1484, "end": 1487 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3697,9 +3689,7 @@ "start": 1615, "end": 1618 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4075,9 +4065,7 @@ "start": 1746, "end": 1749 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4453,9 +4441,7 @@ "start": 1877, "end": 1880 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -4831,9 +4817,7 @@ "start": 2008, "end": 2011 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -5209,9 +5193,7 @@ "start": 2139, "end": 2142 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -5587,9 +5569,7 @@ "start": 2270, "end": 2273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -5965,9 +5945,7 @@ "start": 2401, "end": 2404 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -6310,9 +6288,7 @@ "start": 2459, "end": 2462 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -6506,9 +6482,7 @@ "start": 2597, "end": 2600 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -6884,9 +6858,7 @@ "start": 2729, "end": 2732 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -7262,9 +7234,7 @@ "start": 2861, "end": 2864 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -7640,9 +7610,7 @@ "start": 2993, "end": 2996 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -8018,9 +7986,7 @@ "start": 3125, "end": 3128 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -8396,9 +8362,7 @@ "start": 3257, "end": 3260 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -8774,9 +8738,7 @@ "start": 3389, "end": 3392 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -9152,9 +9114,7 @@ "start": 3521, "end": 3524 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -9530,9 +9490,7 @@ "start": 3653, "end": 3656 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json index 080bccdc1043..286b54bbb740 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfUnion.json @@ -181,9 +181,7 @@ "start": 69, "end": 72 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -250,9 +248,7 @@ "start": 98, "end": 101 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -468,9 +464,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json index 201d29fdc0bd..74a7fc6b131d 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { @@ -13865,9 +13857,7 @@ "start": 5647, "end": 5648 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json index ea0fe8b60bc3..080430d9d88e 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json @@ -62,9 +62,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 295, "end": 298 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 348, "end": 352 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json index cd4621c0e26c..4397e0d13799 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json index 0bc0c705d536..001f56830d5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures2.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json index 505bf8bbdabd..d2fe50dd2d4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures3.json @@ -62,9 +62,7 @@ "start": 195, "end": 198 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -131,9 +129,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 295, "end": 298 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -287,9 +281,7 @@ "start": 348, "end": 352 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json index 21444313738e..71ed60de3ac2 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures4.json @@ -37,9 +37,7 @@ "start": 116, "end": 119 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 160, "end": 163 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 208, "end": 211 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json index a543480c75fa..255120e86e5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures5.json @@ -37,9 +37,7 @@ "start": 226, "end": 229 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 318, "end": 321 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 367, "end": 371 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json index d49ad59c4d78..fc688f5084e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignatures6.json @@ -37,9 +37,7 @@ "start": 241, "end": 244 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 285, "end": 288 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 333, "end": 336 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 382, "end": 386 }, - "ctxt": 0, - "value": "bing", - "optional": false + "value": "bing" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json index e9be3c2259eb..8a01523a4f65 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json @@ -37,9 +37,7 @@ "start": 14, "end": 17 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 58, "end": 61 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 106, "end": 109 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 320, "end": 323 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -314,9 +306,7 @@ "start": 335, "end": 338 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -393,9 +383,7 @@ "start": 373, "end": 376 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -445,9 +433,7 @@ "start": 397, "end": 400 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -1062,9 +1048,7 @@ "start": 700, "end": 703 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1114,9 +1098,7 @@ "start": 719, "end": 722 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -1193,9 +1175,7 @@ "start": 769, "end": 772 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1245,9 +1225,7 @@ "start": 798, "end": 801 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json index dc9fe80c5741..f11ec3058594 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json @@ -37,9 +37,7 @@ "start": 65, "end": 68 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 144, "end": 147 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -263,9 +257,7 @@ "start": 182, "end": 186 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json index 1274b3de65aa..54b37d4e4836 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json @@ -283,9 +283,7 @@ "start": 375, "end": 379 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "value": null, "typeAnnotation": { @@ -823,9 +821,7 @@ "start": 769, "end": 773 }, - "ctxt": 0, - "value": "fooo", - "optional": false + "value": "fooo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json index 42bde8b9a479..2e197470b373 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json @@ -37,9 +37,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 131, "end": 134 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -263,9 +257,7 @@ "start": 214, "end": 217 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json index 9ec2ff925a2f..5144432b2c96 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json @@ -37,9 +37,7 @@ "start": 82, "end": 85 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 131, "end": 134 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -209,9 +205,7 @@ "start": 201, "end": 204 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -288,9 +282,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -734,9 +726,7 @@ "start": 580, "end": 583 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -813,9 +803,7 @@ "start": 630, "end": 633 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json index 66f2c873c0ce..8854aeca703f 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json @@ -866,9 +866,7 @@ "start": 1106, "end": 1109 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "value": { "type": "TsTypeAssertion", @@ -1631,9 +1629,7 @@ "start": 1551, "end": 1554 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "value": { "type": "TsTypeAssertion", diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json index 97b6d19cbe8d..def93c935e01 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithOptionalProperties.json @@ -284,9 +284,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "NewExpression", @@ -354,9 +352,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -394,9 +390,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "property": { @@ -405,9 +399,7 @@ "start": 265, "end": 272 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing1.json b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing1.json index e398ff686189..b642718f09d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing1.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing1.json @@ -84,9 +84,7 @@ "start": 44, "end": 55 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -160,9 +158,7 @@ "start": 100, "end": 102 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" }, "value": null, "typeAnnotation": null, @@ -189,9 +185,7 @@ "start": 108, "end": 119 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -282,9 +276,7 @@ "start": 172, "end": 173 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "MemberExpression", @@ -305,9 +297,7 @@ "start": 180, "end": 182 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" } } } @@ -373,9 +363,7 @@ "start": 217, "end": 223 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing2.json b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing2.json index 079af9b6c44b..40632e689dce 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing2.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing2.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -114,9 +112,7 @@ "start": 74, "end": 76 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" }, "value": null, "typeAnnotation": null, @@ -143,9 +139,7 @@ "start": 82, "end": 93 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -220,9 +214,7 @@ "start": 125, "end": 127 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing5.json b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing5.json index 2a86cdde3c5e..386e808d4d31 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing5.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing5.json @@ -37,9 +37,7 @@ "start": 36, "end": 38 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" }, "value": null, "typeAnnotation": null, @@ -66,9 +64,7 @@ "start": 44, "end": 55 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -104,9 +100,7 @@ "start": 73, "end": 75 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing8.json b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing8.json index aee2c5096dc3..0f4a49c4287d 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing8.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing8.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -114,9 +112,7 @@ "start": 74, "end": 76 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" }, "value": null, "typeAnnotation": null, @@ -143,9 +139,7 @@ "start": 82, "end": 93 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -198,9 +192,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" }, "value": { "type": "CallExpression", @@ -242,9 +234,7 @@ "start": 162, "end": 163 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": { "type": "MemberExpression", @@ -265,9 +255,7 @@ "start": 170, "end": 172 }, - "ctxt": 0, - "value": "_t", - "optional": false + "value": "_t" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.json b/crates/swc_ecma_parser/tests/tsc/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.json index 721680b94014..25fa3a546e27 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.json @@ -101,9 +101,7 @@ "start": 57, "end": 68 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json b/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json index 022939044421..1773671a6ae8 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallInConstructorWithNoBaseType.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -120,9 +118,7 @@ "start": 90, "end": 101 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json index 718573dc4527..1ad97e50dae5 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping1.json @@ -38,9 +38,7 @@ "start": 24, "end": 35 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -246,9 +244,7 @@ "start": 215, "end": 226 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -351,9 +347,7 @@ "start": 259, "end": 272 }, - "ctxt": 0, - "value": "toExponential", - "optional": false + "value": "toExponential" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json index 1e7a83d20861..f1789ef6ef99 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping2.json @@ -38,9 +38,7 @@ "start": 24, "end": 35 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -246,9 +244,7 @@ "start": 199, "end": 210 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json index 8c210b87d6f8..7852fb518b61 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/superCallParameterContextualTyping3.json @@ -169,9 +169,7 @@ "start": 88, "end": 99 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -268,9 +266,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -441,9 +437,7 @@ "start": 216, "end": 227 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -492,9 +486,7 @@ "start": 329, "end": 335 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -559,9 +551,7 @@ "start": 359, "end": 365 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -611,9 +601,7 @@ "start": 477, "end": 480 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -634,9 +622,7 @@ "start": 495, "end": 501 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -701,9 +687,7 @@ "start": 525, "end": 531 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/superCalls.json b/crates/swc_ecma_parser/tests/tsc/superCalls.json index 5e79554a274a..fcab27c0a3c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCalls.json +++ b/crates/swc_ecma_parser/tests/tsc/superCalls.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -74,9 +72,7 @@ "start": 30, "end": 41 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -213,9 +209,7 @@ "start": 176, "end": 187 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -492,9 +486,7 @@ "start": 397, "end": 408 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json b/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json index b3ccfd3b6567..764a81166576 100644 --- a/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json +++ b/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json @@ -235,9 +235,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -313,9 +311,7 @@ "start": 360, "end": 361 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "ArrayExpression", @@ -419,9 +415,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -532,9 +526,7 @@ "start": 528, "end": 535 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" }, "value": { "type": "NullLiteral", @@ -582,9 +574,7 @@ "start": 597, "end": 598 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -727,9 +717,7 @@ "start": 721, "end": 722 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -837,9 +825,7 @@ "start": 838, "end": 839 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -955,9 +941,7 @@ "start": 960, "end": 961 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1059,9 +1043,7 @@ "start": 1076, "end": 1077 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1163,9 +1145,7 @@ "start": 1198, "end": 1199 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1274,9 +1254,7 @@ "start": 1304, "end": 1305 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1393,9 +1371,7 @@ "start": 1408, "end": 1409 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1516,9 +1492,7 @@ "start": 1510, "end": 1511 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1647,9 +1621,7 @@ "start": 1617, "end": 1618 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1756,9 +1728,7 @@ "start": 1685, "end": 1692 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" }, "value": { "type": "NullLiteral", @@ -1806,9 +1776,7 @@ "start": 1750, "end": 1751 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -1925,9 +1893,7 @@ "start": 1855, "end": 1856 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2015,9 +1981,7 @@ "start": 1949, "end": 1950 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2099,9 +2063,7 @@ "start": 2047, "end": 2048 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2191,9 +2153,7 @@ "start": 2150, "end": 2151 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2269,9 +2229,7 @@ "start": 2247, "end": 2248 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2347,9 +2305,7 @@ "start": 2350, "end": 2351 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2432,9 +2388,7 @@ "start": 2437, "end": 2438 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2518,9 +2472,7 @@ "start": 2521, "end": 2522 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2615,9 +2567,7 @@ "start": 2603, "end": 2604 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2720,9 +2670,7 @@ "start": 2690, "end": 2691 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -2791,9 +2739,7 @@ "start": 2790, "end": 2791 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -2907,9 +2853,7 @@ "start": 2890, "end": 2891 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -2937,9 +2881,7 @@ "start": 2900, "end": 2901 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -3015,9 +2957,7 @@ "start": 2994, "end": 2995 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -3122,9 +3062,7 @@ "start": 3029, "end": 3036 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" }, "value": { "type": "NullLiteral", @@ -3172,9 +3110,7 @@ "start": 3111, "end": 3112 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -3202,9 +3138,7 @@ "start": 3121, "end": 3122 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -3280,9 +3214,7 @@ "start": 3215, "end": 3216 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -3419,9 +3351,7 @@ "start": 3319, "end": 3320 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -3449,9 +3379,7 @@ "start": 3329, "end": 3330 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -3527,9 +3455,7 @@ "start": 3423, "end": 3424 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -3677,9 +3603,7 @@ "start": 3531, "end": 3532 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -3748,9 +3672,7 @@ "start": 3627, "end": 3628 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -3855,9 +3777,7 @@ "start": 3662, "end": 3669 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" }, "value": { "type": "NullLiteral", @@ -3939,9 +3859,7 @@ "start": 3752, "end": 3753 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -4010,9 +3928,7 @@ "start": 3848, "end": 3849 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -4183,9 +4099,7 @@ "start": 3960, "end": 3961 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -4254,9 +4168,7 @@ "start": 4061, "end": 4062 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -4358,9 +4270,7 @@ "start": 4158, "end": 4159 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -4388,9 +4298,7 @@ "start": 4168, "end": 4169 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -4466,9 +4374,7 @@ "start": 4267, "end": 4268 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -4604,9 +4510,7 @@ "start": 4372, "end": 4373 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -4675,9 +4579,7 @@ "start": 4472, "end": 4473 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -4787,9 +4689,7 @@ "start": 4574, "end": 4575 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -4817,9 +4717,7 @@ "start": 4584, "end": 4585 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -4895,9 +4793,7 @@ "start": 4682, "end": 4683 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -5041,9 +4937,7 @@ "start": 4792, "end": 4793 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -5112,9 +5006,7 @@ "start": 4898, "end": 4899 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -5217,9 +5109,7 @@ "start": 4999, "end": 5000 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -5247,9 +5137,7 @@ "start": 5009, "end": 5010 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -5325,9 +5213,7 @@ "start": 5113, "end": 5114 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -5464,9 +5350,7 @@ "start": 5222, "end": 5223 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -5535,9 +5419,7 @@ "start": 5318, "end": 5319 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -5633,9 +5515,7 @@ "start": 5414, "end": 5415 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -5663,9 +5543,7 @@ "start": 5424, "end": 5425 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -5741,9 +5619,7 @@ "start": 5518, "end": 5519 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -5873,9 +5749,7 @@ "start": 5622, "end": 5623 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -5944,9 +5818,7 @@ "start": 5723, "end": 5724 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -6042,9 +5914,7 @@ "start": 5825, "end": 5826 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -6072,9 +5942,7 @@ "start": 5835, "end": 5836 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -6150,9 +6018,7 @@ "start": 5934, "end": 5935 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -6282,9 +6148,7 @@ "start": 6044, "end": 6045 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -6353,9 +6217,7 @@ "start": 6151, "end": 6152 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -6469,9 +6331,7 @@ "start": 6270, "end": 6271 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -6499,9 +6359,7 @@ "start": 6280, "end": 6281 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -6577,9 +6435,7 @@ "start": 6385, "end": 6386 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -6727,9 +6583,7 @@ "start": 6512, "end": 6513 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -6798,9 +6652,7 @@ "start": 6615, "end": 6616 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -6916,9 +6768,7 @@ "start": 6733, "end": 6734 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -6946,9 +6796,7 @@ "start": 6743, "end": 6744 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -7024,9 +6872,7 @@ "start": 6844, "end": 6845 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -7176,9 +7022,7 @@ "start": 6970, "end": 6971 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -7247,9 +7091,7 @@ "start": 7084, "end": 7085 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -7374,9 +7216,7 @@ "start": 7233, "end": 7234 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -7404,9 +7244,7 @@ "start": 7243, "end": 7244 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -7482,9 +7320,7 @@ "start": 7355, "end": 7356 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -7643,9 +7479,7 @@ "start": 7512, "end": 7513 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -7714,9 +7548,7 @@ "start": 7640, "end": 7641 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -7841,9 +7673,7 @@ "start": 7789, "end": 7790 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -7871,9 +7701,7 @@ "start": 7799, "end": 7800 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -7949,9 +7777,7 @@ "start": 7925, "end": 7926 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -8110,9 +7936,7 @@ "start": 8082, "end": 8083 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -8181,9 +8005,7 @@ "start": 8196, "end": 8197 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -8308,9 +8130,7 @@ "start": 8321, "end": 8322 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -8338,9 +8158,7 @@ "start": 8331, "end": 8332 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -8416,9 +8234,7 @@ "start": 8443, "end": 8444 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -8577,9 +8393,7 @@ "start": 8576, "end": 8577 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -8648,9 +8462,7 @@ "start": 8687, "end": 8688 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -8766,9 +8578,7 @@ "start": 8792, "end": 8793 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -8796,9 +8606,7 @@ "start": 8802, "end": 8803 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -8874,9 +8682,7 @@ "start": 8911, "end": 8912 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -9026,9 +8832,7 @@ "start": 9024, "end": 9025 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -9097,9 +8901,7 @@ "start": 9129, "end": 9130 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -9213,9 +9015,7 @@ "start": 9243, "end": 9244 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -9243,9 +9043,7 @@ "start": 9253, "end": 9254 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -9321,9 +9119,7 @@ "start": 9356, "end": 9357 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -9471,9 +9267,7 @@ "start": 9478, "end": 9479 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -9542,9 +9336,7 @@ "start": 9591, "end": 9592 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -9658,9 +9450,7 @@ "start": 9692, "end": 9693 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -9688,9 +9478,7 @@ "start": 9702, "end": 9703 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -9766,9 +9554,7 @@ "start": 9813, "end": 9814 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -9916,9 +9702,7 @@ "start": 9922, "end": 9923 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -9987,9 +9771,7 @@ "start": 10018, "end": 10019 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -10092,9 +9874,7 @@ "start": 10104, "end": 10105 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -10122,9 +9902,7 @@ "start": 10114, "end": 10115 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -10200,9 +9978,7 @@ "start": 10208, "end": 10209 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -10339,9 +10115,7 @@ "start": 10302, "end": 10303 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -10410,9 +10184,7 @@ "start": 10403, "end": 10404 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -10523,9 +10295,7 @@ "start": 10487, "end": 10488 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -10553,9 +10323,7 @@ "start": 10497, "end": 10498 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -10631,9 +10399,7 @@ "start": 10596, "end": 10597 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -10778,9 +10544,7 @@ "start": 10688, "end": 10689 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -10849,9 +10613,7 @@ "start": 10803, "end": 10804 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -10989,9 +10751,7 @@ "start": 10914, "end": 10915 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -11019,9 +10779,7 @@ "start": 10924, "end": 10925 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -11097,9 +10855,7 @@ "start": 11037, "end": 11038 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -11271,9 +11027,7 @@ "start": 11156, "end": 11157 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -11342,9 +11096,7 @@ "start": 11257, "end": 11258 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -11459,9 +11211,7 @@ "start": 11339, "end": 11340 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -11489,9 +11239,7 @@ "start": 11349, "end": 11350 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -11567,9 +11315,7 @@ "start": 11448, "end": 11449 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -11718,9 +11464,7 @@ "start": 11538, "end": 11539 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -11789,9 +11533,7 @@ "start": 11634, "end": 11635 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -11912,9 +11654,7 @@ "start": 11760, "end": 11761 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -11942,9 +11682,7 @@ "start": 11770, "end": 11771 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -12032,9 +11770,7 @@ "start": 11882, "end": 11883 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -12189,9 +11925,7 @@ "start": 12016, "end": 12017 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -12272,9 +12006,7 @@ "start": 12134, "end": 12135 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -12397,9 +12129,7 @@ "start": 12221, "end": 12222 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -12427,9 +12157,7 @@ "start": 12231, "end": 12232 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -12505,9 +12233,7 @@ "start": 12329, "end": 12330 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -12664,9 +12390,7 @@ "start": 12424, "end": 12425 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -12735,9 +12459,7 @@ "start": 12519, "end": 12520 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -12852,9 +12574,7 @@ "start": 12629, "end": 12630 }, - "ctxt": 0, - "value": "_", - "optional": false + "value": "_" }, "value": { "type": "CallExpression", @@ -12882,9 +12602,7 @@ "start": 12639, "end": 12640 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], @@ -12969,9 +12687,7 @@ "start": 12740, "end": 12741 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "function": { "params": [], @@ -13120,9 +12836,7 @@ "start": 12858, "end": 12859 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/superMethodCall.json b/crates/swc_ecma_parser/tests/tsc/superMethodCall.json index 0467717f5e97..df014b66c585 100644 --- a/crates/swc_ecma_parser/tests/tsc/superMethodCall.json +++ b/crates/swc_ecma_parser/tests/tsc/superMethodCall.json @@ -37,9 +37,7 @@ "start": 51, "end": 57 }, - "ctxt": 0, - "value": "method", - "optional": true + "value": "method" }, "function": { "params": [], @@ -109,9 +107,7 @@ "start": 101, "end": 107 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -168,9 +164,7 @@ "start": 133, "end": 139 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], @@ -204,9 +198,7 @@ "start": 162, "end": 173 }, - "ctxt": 0, - "value": "asyncMethod", - "optional": false + "value": "asyncMethod" }, "function": { "params": [], @@ -263,9 +255,7 @@ "start": 199, "end": 205 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json b/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json index 2dd6615eeebd..d680b1c1a3c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json +++ b/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json @@ -37,9 +37,7 @@ "start": 533, "end": 537 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 579, "end": 583 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "function": { "params": [], @@ -161,9 +157,7 @@ "start": 617, "end": 627 }, - "ctxt": 0, - "value": "returnThis", - "optional": false + "value": "returnThis" }, "function": { "params": [], @@ -249,9 +243,7 @@ "start": 713, "end": 724 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -339,9 +331,7 @@ "start": 768, "end": 772 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -414,9 +404,7 @@ "start": 810, "end": 812 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -487,9 +475,7 @@ "start": 839, "end": 843 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -606,9 +592,7 @@ "start": 898, "end": 902 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -649,9 +633,7 @@ "start": 921, "end": 922 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -722,9 +704,7 @@ "start": 949, "end": 953 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -820,9 +800,7 @@ "start": 1016, "end": 1017 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -913,9 +891,7 @@ "start": 1045, "end": 1049 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -997,9 +973,7 @@ "start": 1094, "end": 1096 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -1070,9 +1044,7 @@ "start": 1123, "end": 1127 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -1154,9 +1126,7 @@ "start": 1176, "end": 1177 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -1227,9 +1197,7 @@ "start": 1204, "end": 1208 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -1325,9 +1293,7 @@ "start": 1278, "end": 1279 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [ @@ -1418,9 +1384,7 @@ "start": 1307, "end": 1311 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], @@ -1502,9 +1466,7 @@ "start": 1349, "end": 1359 }, - "ctxt": 0, - "value": "returnThis", - "optional": false + "value": "returnThis" }, "function": { "params": [], @@ -1554,9 +1516,7 @@ "start": 1385, "end": 1395 }, - "ctxt": 0, - "value": "returnThis", - "optional": false + "value": "returnThis" } }, "arguments": [], @@ -1692,9 +1652,7 @@ "start": 1456, "end": 1466 }, - "ctxt": 0, - "value": "returnThis", - "optional": false + "value": "returnThis" } }, "arguments": [], @@ -1706,9 +1664,7 @@ "start": 1469, "end": 1471 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json index 897d40894bba..47d80db44cb2 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json @@ -61,9 +61,7 @@ "start": 36, "end": 39 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess2.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess2.json index 475f6791d61d..ba71daa15317 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess2.json @@ -59,9 +59,7 @@ "start": 41, "end": 59 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, @@ -172,9 +170,7 @@ "start": 128, "end": 146 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, @@ -248,9 +244,7 @@ "start": 180, "end": 198 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json index 57987509b335..ce234a752053 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json @@ -61,9 +61,7 @@ "start": 36, "end": 39 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json index 7efbd48ba773..a3803e744d7a 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json @@ -61,9 +61,7 @@ "start": 36, "end": 39 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json index e979ce072a58..4161b56ed0a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json @@ -61,9 +61,7 @@ "start": 107, "end": 110 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "SwitchStatement", @@ -109,9 +107,7 @@ "start": 154, "end": 157 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -131,9 +127,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -147,9 +141,7 @@ "start": 167, "end": 172 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "SwitchStatement", @@ -195,9 +187,7 @@ "start": 216, "end": 221 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -218,9 +208,7 @@ "start": 226, "end": 230 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "SwitchStatement", @@ -266,9 +254,7 @@ "start": 268, "end": 272 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "SwitchStatement", @@ -314,9 +300,7 @@ "start": 340, "end": 344 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -373,9 +357,7 @@ "start": 395, "end": 398 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "SwitchStatement", @@ -421,9 +403,7 @@ "start": 466, "end": 469 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } ] @@ -447,9 +427,7 @@ "start": 484, "end": 489 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "SwitchStatement", @@ -559,9 +537,7 @@ "start": 653, "end": 658 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } }, { @@ -576,9 +552,7 @@ "start": 684, "end": 689 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "SwitchStatement", @@ -679,9 +653,7 @@ "start": 862, "end": 867 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/switchStatements.json b/crates/swc_ecma_parser/tests/tsc/switchStatements.json index b85eaed1726e..843eff6eadf3 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/switchStatements.json @@ -410,9 +410,7 @@ "start": 277, "end": 279 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -544,9 +542,7 @@ "start": 351, "end": 353 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ @@ -812,9 +808,7 @@ "start": 531, "end": 533 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -881,9 +875,7 @@ "start": 565, "end": 569 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -1003,9 +995,7 @@ "start": 629, "end": 631 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -1025,9 +1015,7 @@ "start": 637, "end": 641 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -1295,9 +1283,7 @@ "start": 876, "end": 878 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json b/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json index 6e998642c935..c1c72cb37cad 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json +++ b/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json @@ -145,9 +145,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -207,9 +205,7 @@ "start": 183, "end": 194 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit1.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit1.json index 5c5d7f2e22e8..25faa193f806 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit1.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit1.json @@ -59,9 +59,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json index 1c7f6954212b..497929830c33 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json @@ -73,9 +73,7 @@ "start": 65, "end": 83 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, @@ -141,9 +139,7 @@ "start": 118, "end": 136 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json index 353da8cdf43f..471e876c7f71 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json @@ -59,9 +59,7 @@ "start": 66, "end": 74 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -119,9 +117,7 @@ "start": 100, "end": 118 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, @@ -188,9 +184,7 @@ "start": 149, "end": 160 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -274,9 +268,7 @@ "start": 202, "end": 213 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json index b0b767f2f50a..bea778ce2d70 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit12.json @@ -118,9 +118,7 @@ "start": 105, "end": 113 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -194,9 +192,7 @@ "start": 135, "end": 146 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -307,9 +303,7 @@ "start": 174, "end": 192 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, @@ -418,9 +412,7 @@ "start": 260, "end": 271 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -505,9 +497,7 @@ "start": 317, "end": 328 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json index f0e7e616cef0..261c99866ab7 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json @@ -59,9 +59,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -145,9 +143,7 @@ "start": 109, "end": 120 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json index 60523333a44e..30142483e721 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json @@ -59,9 +59,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -145,9 +143,7 @@ "start": 109, "end": 120 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json index 17c9cec92105..b449cfb19464 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json @@ -59,9 +59,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json index 18993a504ac8..8fb82b082fb6 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit3.json @@ -59,9 +59,7 @@ "start": 59, "end": 70 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -154,9 +152,7 @@ "start": 96, "end": 107 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -249,9 +245,7 @@ "start": 133, "end": 144 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json index a00059ee88b4..6765579e5aed 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json @@ -59,9 +59,7 @@ "start": 63, "end": 74 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -145,9 +143,7 @@ "start": 109, "end": 120 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit5.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit5.json index e7d4312446a4..3cffcd4abd5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit5.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit5.json @@ -59,9 +59,7 @@ "start": 63, "end": 81 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit6.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit6.json index 221abd98bedf..2193f52bf772 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit6.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit6.json @@ -60,9 +60,7 @@ "start": 63, "end": 81 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit7.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit7.json index 99c5798d5516..2630b6c610b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit7.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit7.json @@ -72,9 +72,7 @@ "start": 60, "end": 78 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit8.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit8.json index 3480500cc22e..84c1bd4d48c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit8.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit8.json @@ -69,9 +69,7 @@ "start": 61, "end": 79 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit9.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit9.json index 410e085be938..969dcdee7570 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit9.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit9.json @@ -69,9 +69,7 @@ "start": 61, "end": 79 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty10.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty10.json index 078ba38444f4..88778c767e9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty10.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty10.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -196,9 +194,7 @@ "start": 87, "end": 95 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty11.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty11.json index 81ece442e871..7f7bd8713417 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty11.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty11.json @@ -86,9 +86,7 @@ "start": 54, "end": 62 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty12.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty12.json index 077e61e4219f..8a75d2cbed2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty12.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty12.json @@ -59,9 +59,7 @@ "start": 46, "end": 54 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -175,9 +173,7 @@ "start": 92, "end": 100 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json index c88772719227..f3ce447f9822 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty13.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -196,9 +194,7 @@ "start": 87, "end": 95 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json index 9e69ae050180..0736bd7041e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty14.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -196,9 +194,7 @@ "start": 87, "end": 95 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json index 14cd5872206a..7f3a725d1481 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty15.json @@ -86,9 +86,7 @@ "start": 54, "end": 62 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json index a32872287fc4..f0e9dfb1f247 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty16.json @@ -59,9 +59,7 @@ "start": 46, "end": 54 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -175,9 +173,7 @@ "start": 92, "end": 100 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json index 6e8e76a93485..d885ea63ca0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json @@ -60,9 +60,7 @@ "start": 42, "end": 50 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, @@ -298,9 +296,7 @@ "start": 144, "end": 152 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json index fdee86234448..8ae3b68e5ef0 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json @@ -69,9 +69,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -115,9 +113,7 @@ "start": 64, "end": 75 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -193,9 +189,7 @@ "start": 110, "end": 121 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -312,9 +306,7 @@ "start": 160, "end": 168 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } @@ -401,9 +393,7 @@ "start": 190, "end": 201 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } } @@ -472,9 +462,7 @@ "start": 215, "end": 226 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty19.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty19.json index 5c0a789026d7..25b4c02f7c96 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty19.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty19.json @@ -69,9 +69,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -90,9 +88,7 @@ "start": 51, "end": 52 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NullLiteral", @@ -135,9 +131,7 @@ "start": 74, "end": 85 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -177,9 +171,7 @@ "start": 100, "end": 101 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "Identifier", @@ -279,9 +271,7 @@ "start": 139, "end": 147 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } @@ -368,9 +358,7 @@ "start": 169, "end": 180 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json index f7c2e376ff5f..5c088392275f 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty20.json @@ -60,9 +60,7 @@ "start": 42, "end": 50 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, @@ -153,9 +151,7 @@ "start": 88, "end": 99 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } }, "computed": true, @@ -295,9 +291,7 @@ "start": 149, "end": 157 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -367,9 +361,7 @@ "start": 180, "end": 191 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json index a12ae0b57d84..81d7385f5bdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json @@ -112,9 +112,7 @@ "start": 48, "end": 59 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } }, "computed": true, @@ -174,9 +172,7 @@ "start": 77, "end": 95 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, @@ -544,9 +540,7 @@ "start": 179, "end": 197 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } } }, @@ -590,9 +584,7 @@ "start": 216, "end": 227 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -636,9 +628,7 @@ "start": 245, "end": 256 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json index d53090098041..9bf28f3f71c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json @@ -111,9 +111,7 @@ "start": 48, "end": 59 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } }, "computed": true, @@ -493,9 +491,7 @@ "start": 144, "end": 155 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } } }, @@ -541,9 +537,7 @@ "start": 165, "end": 171 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty23.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty23.json index 0fb5a0076d50..7f5b3fd3b6a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty23.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty23.json @@ -60,9 +60,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, @@ -156,9 +154,7 @@ "start": 109, "end": 120 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json index f5e1501ec8c0..9f601e602de3 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json @@ -60,9 +60,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, @@ -156,9 +154,7 @@ "start": 109, "end": 120 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json index 1e5a23f82524..2c0c9cd8199f 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json @@ -60,9 +60,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, @@ -156,9 +154,7 @@ "start": 109, "end": 120 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json index 386269afc9d2..01e21850a633 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -172,9 +170,7 @@ "start": 118, "end": 129 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json index d4c8caac997b..1b6ccce04428 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -171,9 +169,7 @@ "start": 118, "end": 129 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json index 0c182c949a35..082889dc09e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -315,9 +311,7 @@ "start": 146, "end": 157 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } } @@ -331,9 +325,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json index 71cc9399b2cb..fb088323ce39 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json index 9e53261aca4a..c673ddbe2798 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json index 93f351f56152..a4a2daa86766 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json index c82003c015e1..167ba3ea54a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json @@ -59,9 +59,7 @@ "start": 39, "end": 50 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 73, "end": 74 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json index 806d7f5a4414..f0597f287953 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json @@ -59,9 +59,7 @@ "start": 50, "end": 61 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json index f124fd6a4d2e..5ba93b1dfb65 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json @@ -59,9 +59,7 @@ "start": 50, "end": 61 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, @@ -102,9 +100,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty35.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty35.json index 3401c4c56848..29d703789dbe 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty35.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty35.json @@ -59,9 +59,7 @@ "start": 43, "end": 54 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } }, "computed": true, @@ -177,9 +175,7 @@ "start": 102, "end": 113 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty37.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty37.json index fd64316ccc70..3931f13ff4d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty37.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty37.json @@ -60,9 +60,7 @@ "start": 42, "end": 60 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, @@ -112,9 +110,7 @@ "start": 83, "end": 101 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty38.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty38.json index e320b58cad57..2866583e1257 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty38.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty38.json @@ -60,9 +60,7 @@ "start": 42, "end": 60 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, @@ -141,9 +139,7 @@ "start": 99, "end": 117 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json index d8c170214a52..3dfe18a8e0cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty39.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -168,9 +166,7 @@ "start": 80, "end": 88 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -277,9 +273,7 @@ "start": 122, "end": 130 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -398,9 +392,7 @@ "start": 186, "end": 194 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json index e3bfe82f5935..6a03fcf53c14 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -168,9 +166,7 @@ "start": 80, "end": 88 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -277,9 +273,7 @@ "start": 122, "end": 130 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -479,9 +473,7 @@ "start": 201, "end": 209 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } @@ -560,9 +552,7 @@ "start": 225, "end": 233 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json index 95262266ba19..522b1816afb8 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -204,9 +202,7 @@ "start": 87, "end": 95 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -392,9 +388,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -594,9 +588,7 @@ "start": 231, "end": 239 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } @@ -675,9 +667,7 @@ "start": 255, "end": 263 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json index f9530577098a..b30179620860 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty42.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -168,9 +166,7 @@ "start": 87, "end": 95 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -277,9 +273,7 @@ "start": 129, "end": 137 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json index 28e35bedd005..3d8b4a3a4e6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty43.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -168,9 +166,7 @@ "start": 80, "end": 88 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json index 3d4afe11de71..16834e847d08 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json @@ -59,9 +59,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -145,9 +143,7 @@ "start": 100, "end": 111 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json index b700ff01ec12..2be98837d14a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json @@ -59,9 +59,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -145,9 +143,7 @@ "start": 100, "end": 111 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json index a0f5964b3176..e13265e990f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json @@ -59,9 +59,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -145,9 +143,7 @@ "start": 128, "end": 139 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -281,9 +277,7 @@ "start": 170, "end": 181 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } } @@ -373,9 +367,7 @@ "start": 203, "end": 214 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json index 6c78d104413e..9b6c932a12f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json @@ -59,9 +59,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -145,9 +143,7 @@ "start": 128, "end": 139 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } }, @@ -295,9 +291,7 @@ "start": 178, "end": 189 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } } @@ -387,9 +381,7 @@ "start": 211, "end": 222 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty48.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty48.json index 2701810ab9ef..d87652f53843 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty48.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty48.json @@ -116,9 +116,7 @@ "start": 74, "end": 82 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty49.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty49.json index 888d6abe9b8c..fbaf018e8e85 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty49.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty49.json @@ -123,9 +123,7 @@ "start": 81, "end": 89 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty5.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty5.json index 452ed347b54d..89c06e2ec780 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty5.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty5.json @@ -69,9 +69,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -115,9 +113,7 @@ "start": 64, "end": 75 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -176,9 +172,7 @@ "start": 100, "end": 111 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty50.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty50.json index 29af5d997222..aed1b47074c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty50.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty50.json @@ -112,9 +112,7 @@ "start": 83, "end": 91 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty51.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty51.json index 17c607899dbb..b02a9a5fec72 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty51.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty51.json @@ -111,9 +111,7 @@ "start": 80, "end": 88 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty52.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty52.json index 410c04f058e8..14f77694d7cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty52.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty52.json @@ -69,9 +69,7 @@ "start": 40, "end": 48 }, - "ctxt": 0, - "value": "nonsense", - "optional": false + "value": "nonsense" } } }, @@ -175,9 +173,7 @@ "start": 79, "end": 87 }, - "ctxt": 0, - "value": "nonsense", - "optional": false + "value": "nonsense" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty53.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty53.json index d34952e4a611..b77a6326cd16 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty53.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty53.json @@ -69,9 +69,7 @@ "start": 40, "end": 43 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } } }, @@ -141,9 +139,7 @@ "start": 63, "end": 66 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty54.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty54.json index 26f811ebf925..0a0b6aab40c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty54.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty54.json @@ -69,9 +69,7 @@ "start": 40, "end": 49 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty55.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty55.json index 221947389e05..bf3d180480f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty55.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty55.json @@ -69,9 +69,7 @@ "start": 40, "end": 48 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -222,9 +220,7 @@ "start": 353, "end": 361 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json index fd8660457f69..f63c5bbf862b 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json @@ -69,9 +69,7 @@ "start": 40, "end": 48 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json index 286aa66671b8..94ab9dc70af8 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json @@ -69,9 +69,7 @@ "start": 40, "end": 48 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty58.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty58.json index f4e3093a49e5..29305dc8b3a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty58.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty58.json @@ -133,9 +133,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty6.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty6.json index 424bd2803f51..e0b53d70045c 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty6.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -119,9 +117,7 @@ "start": 65, "end": 76 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } } }, @@ -185,9 +181,7 @@ "start": 99, "end": 110 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -254,9 +248,7 @@ "start": 134, "end": 145 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty60.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty60.json index f2a5d4833137..e771cc67902d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty60.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty60.json @@ -60,9 +60,7 @@ "start": 103, "end": 114 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } }, "computed": true, @@ -192,9 +190,7 @@ "start": 182, "end": 193 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json index 663c46140e5d..f9a77419a1c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty61.json @@ -136,6 +136,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 146, + "end": 156 + }, "left": { "type": "Identifier", "span": { @@ -152,9 +156,7 @@ "start": 153, "end": 156 }, - "ctxt": 0, - "value": "obs", - "optional": false + "value": "obs" } }, "typeArguments": null @@ -183,9 +185,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "obs", - "optional": false + "value": "obs" } }, "definite": false @@ -231,9 +231,7 @@ "start": 206, "end": 217 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -307,9 +305,7 @@ "start": 243, "end": 252 }, - "ctxt": 0, - "value": "subscribe", - "optional": false + "value": "subscribe" }, "function": { "params": [ @@ -458,9 +454,7 @@ "start": 297, "end": 301 }, - "ctxt": 0, - "value": "_val", - "optional": false + "value": "_val" } } } @@ -671,9 +665,7 @@ "start": 402, "end": 405 }, - "ctxt": 0, - "value": "obs", - "optional": false + "value": "obs" } }, "computed": true, @@ -983,9 +975,7 @@ "start": 529, "end": 532 }, - "ctxt": 0, - "value": "obs", - "optional": false + "value": "obs" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty8.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty8.json index deb406711c3b..8400b839668c 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty8.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty8.json @@ -60,9 +60,7 @@ "start": 42, "end": 53 }, - "ctxt": 0, - "value": "unscopables", - "optional": false + "value": "unscopables" } }, "computed": true, @@ -111,9 +109,7 @@ "start": 76, "end": 87 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty9.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty9.json index 2dc15e7600b6..4eff4315f244 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty9.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty9.json @@ -59,9 +59,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -196,9 +194,7 @@ "start": 87, "end": 95 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType10.json b/crates/swc_ecma_parser/tests/tsc/symbolType10.json index f22538f8e468..eff1bfa2e012 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType10.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType10.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType11.json b/crates/swc_ecma_parser/tests/tsc/symbolType11.json index 0644c88fe360..fb87a0f8d392 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType11.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType11.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType12.json b/crates/swc_ecma_parser/tests/tsc/symbolType12.json index b346e3bd278b..3d09dfc3a18a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType12.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType12.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType16.json b/crates/swc_ecma_parser/tests/tsc/symbolType16.json index ad2fdbcb9885..6a7e32e32d4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType16.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType16.json @@ -143,9 +143,7 @@ "start": 86, "end": 99 }, - "ctxt": 0, - "value": "newSymbolProp", - "optional": false + "value": "newSymbolProp" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType2.json b/crates/swc_ecma_parser/tests/tsc/symbolType2.json index 0d7b432a1b6d..a8d160d872c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType2.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType2.json @@ -40,9 +40,7 @@ "start": 23, "end": 41 }, - "ctxt": 0, - "value": "isConcatSpreadable", - "optional": false + "value": "isConcatSpreadable" } }, "right": { @@ -99,9 +97,7 @@ "start": 62, "end": 73 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType3.json b/crates/swc_ecma_parser/tests/tsc/symbolType3.json index cbb908836b12..b86644e125db 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType3.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType3.json @@ -91,9 +91,7 @@ "start": 48, "end": 56 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } } @@ -133,9 +131,7 @@ "start": 70, "end": 81 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } } @@ -175,9 +171,7 @@ "start": 97, "end": 108 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType4.json b/crates/swc_ecma_parser/tests/tsc/symbolType4.json index ae3c329ef51a..958eecb72384 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType4.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType4.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType5.json b/crates/swc_ecma_parser/tests/tsc/symbolType5.json index 927cb5f04268..37d22e061e68 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType5.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType5.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType6.json b/crates/swc_ecma_parser/tests/tsc/symbolType6.json index 96af43a0fe26..4149d15204b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType6.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType6.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType7.json b/crates/swc_ecma_parser/tests/tsc/symbolType7.json index f2f1fb27289e..edda40725e77 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType7.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType7.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType8.json b/crates/swc_ecma_parser/tests/tsc/symbolType8.json index c0cb43ede132..a411481c372d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType8.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType8.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType9.json b/crates/swc_ecma_parser/tests/tsc/symbolType9.json index 8ed99cec71e3..ddda26bd272f 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType9.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType9.json @@ -61,9 +61,7 @@ "start": 31, "end": 34 }, - "ctxt": 0, - "value": "for", - "optional": false + "value": "for" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/syntaxErrors.json b/crates/swc_ecma_parser/tests/tsc/syntaxErrors.json index 17e414b8539c..cc550b4713bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/syntaxErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/syntaxErrors.json @@ -37,9 +37,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": null, "typeAnnotation": { @@ -235,9 +233,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -262,9 +258,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } } } @@ -338,9 +332,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "NumericLiteral", @@ -372,9 +364,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "NumericLiteral", @@ -406,9 +396,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json index 380016439b7a..72bf89bbc96d 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json @@ -6054,9 +6054,7 @@ "start": 3299, "end": 3300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6076,9 +6074,7 @@ "start": 3305, "end": 3306 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NewExpression", @@ -6118,9 +6114,7 @@ "start": 3327, "end": 3328 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6140,9 +6134,7 @@ "start": 3333, "end": 3334 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -6318,9 +6310,7 @@ "start": 3493, "end": 3494 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6349,9 +6339,7 @@ "start": 3505, "end": 3506 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6380,9 +6368,7 @@ "start": 3517, "end": 3518 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json index 9804c765eb15..4941178d99fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json @@ -6054,9 +6054,7 @@ "start": 3313, "end": 3314 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6076,9 +6074,7 @@ "start": 3319, "end": 3320 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NewExpression", @@ -6118,9 +6114,7 @@ "start": 3341, "end": 3342 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6140,9 +6134,7 @@ "start": 3347, "end": 3348 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -6318,9 +6310,7 @@ "start": 3507, "end": 3508 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6349,9 +6339,7 @@ "start": 3519, "end": 3520 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6380,9 +6368,7 @@ "start": 3531, "end": 3532 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json index 7afb5ea57369..94a00edc3858 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json @@ -650,9 +650,7 @@ "start": 224, "end": 230 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -752,9 +750,7 @@ "start": 254, "end": 260 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1022,9 +1018,7 @@ "start": 328, "end": 334 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1215,9 +1209,7 @@ "start": 389, "end": 395 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1406,9 +1398,7 @@ "start": 460, "end": 466 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1508,9 +1498,7 @@ "start": 495, "end": 508 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ @@ -1576,9 +1564,7 @@ "start": 520, "end": 533 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json index 9a8fd2552891..16790f6ba0dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json @@ -650,9 +650,7 @@ "start": 240, "end": 246 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -752,9 +750,7 @@ "start": 270, "end": 276 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1022,9 +1018,7 @@ "start": 344, "end": 350 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1215,9 +1209,7 @@ "start": 405, "end": 411 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1406,9 +1398,7 @@ "start": 476, "end": 482 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1508,9 +1498,7 @@ "start": 511, "end": 524 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ @@ -1576,9 +1564,7 @@ "start": 536, "end": 549 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json index af04979f602d..468958ee1cdf 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json @@ -492,9 +492,7 @@ "start": 257, "end": 263 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json index d099d265a775..f5884016d594 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json @@ -492,9 +492,7 @@ "start": 273, "end": 279 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json index bf835bc5e3e3..6bd6f29de0ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json @@ -1139,9 +1139,7 @@ "start": 611, "end": 614 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -4469,9 +4467,7 @@ "start": 2660, "end": 2667 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -4588,9 +4584,7 @@ "start": 2737, "end": 2743 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json index b7b2f4ab565d..259649037f83 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json @@ -1139,9 +1139,7 @@ "start": 619, "end": 622 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -4469,9 +4467,7 @@ "start": 2668, "end": 2675 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -4588,9 +4584,7 @@ "start": 2745, "end": 2751 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json index 132b42057bf8..2b8de4a67b7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json @@ -223,9 +223,7 @@ "start": 49, "end": 50 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "property": { @@ -234,9 +232,7 @@ "start": 51, "end": 52 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "typeParameters": null, @@ -303,9 +299,7 @@ "start": 62, "end": 63 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "property": { @@ -314,9 +308,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "typeParameters": null, @@ -438,9 +430,7 @@ "start": 96, "end": 102 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -540,9 +530,7 @@ "start": 126, "end": 132 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -810,9 +798,7 @@ "start": 207, "end": 219 }, - "ctxt": 0, - "value": "someOtherTag", - "optional": false + "value": "someOtherTag" } }, "typeParameters": null, @@ -1003,9 +989,7 @@ "start": 274, "end": 286 }, - "ctxt": 0, - "value": "someOtherTag", - "optional": false + "value": "someOtherTag" } }, "typeParameters": null, @@ -1105,9 +1089,7 @@ "start": 311, "end": 324 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ @@ -1173,9 +1155,7 @@ "start": 336, "end": 349 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json index f32d1b8838ef..0c6edf6535d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json @@ -223,9 +223,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "property": { @@ -234,9 +232,7 @@ "start": 66, "end": 67 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "typeParameters": null, @@ -303,9 +299,7 @@ "start": 77, "end": 78 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "property": { @@ -314,9 +308,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" } }, "typeParameters": null, @@ -438,9 +430,7 @@ "start": 111, "end": 117 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -540,9 +530,7 @@ "start": 141, "end": 147 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -810,9 +798,7 @@ "start": 222, "end": 234 }, - "ctxt": 0, - "value": "someOtherTag", - "optional": false + "value": "someOtherTag" } }, "typeParameters": null, @@ -1003,9 +989,7 @@ "start": 289, "end": 301 }, - "ctxt": 0, - "value": "someOtherTag", - "optional": false + "value": "someOtherTag" } }, "typeParameters": null, @@ -1105,9 +1089,7 @@ "start": 326, "end": 339 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ @@ -1173,9 +1155,7 @@ "start": 351, "end": 364 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json index e138c0bb85f0..c4d448859f4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json @@ -650,9 +650,7 @@ "start": 223, "end": 229 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -752,9 +750,7 @@ "start": 253, "end": 259 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1022,9 +1018,7 @@ "start": 327, "end": 333 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1215,9 +1209,7 @@ "start": 388, "end": 394 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1317,9 +1309,7 @@ "start": 419, "end": 432 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ @@ -1385,9 +1375,7 @@ "start": 444, "end": 457 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json index 4d6de307f68f..c742c9e9a0a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json @@ -650,9 +650,7 @@ "start": 239, "end": 245 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -752,9 +750,7 @@ "start": 269, "end": 275 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1022,9 +1018,7 @@ "start": 343, "end": 349 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1215,9 +1209,7 @@ "start": 404, "end": 410 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } }, "typeParameters": null, @@ -1317,9 +1309,7 @@ "start": 435, "end": 448 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ @@ -1385,9 +1375,7 @@ "start": 460, "end": 473 }, - "ctxt": 0, - "value": "thisIsNotATag", - "optional": false + "value": "thisIsNotATag" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json index a8294617258c..0a565393310a 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json @@ -502,9 +502,7 @@ "start": 241, "end": 242 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -554,9 +552,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "async": false, @@ -606,9 +602,7 @@ "start": 309, "end": 310 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "async": false, @@ -1336,9 +1330,7 @@ "start": 545, "end": 546 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "async": false, @@ -1388,9 +1380,7 @@ "start": 579, "end": 580 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "async": false, @@ -1440,9 +1430,7 @@ "start": 613, "end": 614 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "async": false, @@ -2026,9 +2014,7 @@ "start": 809, "end": 824 }, - "ctxt": 0, - "value": "returnedObjProp", - "optional": false + "value": "returnedObjProp" } }, "property": { @@ -2037,9 +2023,7 @@ "start": 825, "end": 826 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2077,9 +2061,7 @@ "start": 830, "end": 845 }, - "ctxt": 0, - "value": "returnedObjProp", - "optional": false + "value": "returnedObjProp" } }, "property": { @@ -2088,9 +2070,7 @@ "start": 846, "end": 847 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -2128,9 +2108,7 @@ "start": 851, "end": 866 }, - "ctxt": 0, - "value": "returnedObjProp", - "optional": false + "value": "returnedObjProp" } }, "property": { @@ -2139,9 +2117,7 @@ "start": 867, "end": 868 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -2198,9 +2174,7 @@ "start": 879, "end": 883 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "typeParameters": { @@ -2356,9 +2330,7 @@ "start": 924, "end": 939 }, - "ctxt": 0, - "value": "returnedObjProp", - "optional": false + "value": "returnedObjProp" } }, "property": { @@ -2367,9 +2339,7 @@ "start": 940, "end": 941 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -2407,9 +2377,7 @@ "start": 945, "end": 960 }, - "ctxt": 0, - "value": "returnedObjProp", - "optional": false + "value": "returnedObjProp" } }, "property": { @@ -2418,9 +2386,7 @@ "start": 961, "end": 962 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -2458,9 +2424,7 @@ "start": 966, "end": 981 }, - "ctxt": 0, - "value": "returnedObjProp", - "optional": false + "value": "returnedObjProp" } }, "property": { @@ -2469,9 +2433,7 @@ "start": 982, "end": 983 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/templateInsideCallback.json b/crates/swc_ecma_parser/tests/tsc/templateInsideCallback.json index ce4ea3801e41..0245b4239524 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateInsideCallback.json +++ b/crates/swc_ecma_parser/tests/tsc/templateInsideCallback.json @@ -279,9 +279,7 @@ "start": 897, "end": 903 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -356,9 +354,7 @@ "start": 926, "end": 930 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json index 45896c6693b3..ab27e1b6bb9d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json @@ -6762,9 +6762,7 @@ "start": 3373, "end": 3379 }, - "ctxt": 0, - "value": "rotate", - "optional": false + "value": "rotate" }, "value": { "type": "NumericLiteral", @@ -6971,9 +6969,7 @@ "start": 3488, "end": 3494 }, - "ctxt": 0, - "value": "rotate", - "optional": false + "value": "rotate" } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json index 476d25d43299..f01329183234 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json @@ -9661,9 +9661,7 @@ "start": 4528, "end": 4532 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -9712,9 +9710,7 @@ "start": 4569, "end": 4573 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -9746,9 +9742,7 @@ "start": 4590, "end": 4598 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json index 1ae6e4760729..421b91d6f3fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json @@ -3982,9 +3982,7 @@ "start": 2810, "end": 2814 }, - "ctxt": 0, - "value": "Zero", - "optional": false + "value": "Zero" } } }, @@ -4026,9 +4024,7 @@ "start": 2840, "end": 2843 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } } } @@ -15522,6 +15518,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 11539, + "end": 11560 + }, "left": { "type": "Identifier", "span": { @@ -15538,9 +15538,7 @@ "start": 11557, "end": 11560 }, - "ctxt": 0, - "value": "One", - "optional": false + "value": "One" } }, "typeParams": null @@ -20461,9 +20459,7 @@ "start": 14932, "end": 14940 }, - "ctxt": 0, - "value": "getIndex", - "optional": false + "value": "getIndex" } }, "arguments": [ @@ -20518,9 +20514,7 @@ "start": 14973, "end": 14981 }, - "ctxt": 0, - "value": "getIndex", - "optional": false + "value": "getIndex" } }, "arguments": [ @@ -20575,9 +20569,7 @@ "start": 15014, "end": 15022 }, - "ctxt": 0, - "value": "getIndex", - "optional": false + "value": "getIndex" } }, "arguments": [ @@ -20632,9 +20624,7 @@ "start": 15063, "end": 15071 }, - "ctxt": 0, - "value": "setIndex", - "optional": false + "value": "setIndex" } }, "arguments": [ @@ -20701,9 +20691,7 @@ "start": 15107, "end": 15115 }, - "ctxt": 0, - "value": "setIndex", - "optional": false + "value": "setIndex" } }, "arguments": [ @@ -20770,9 +20758,7 @@ "start": 15151, "end": 15159 }, - "ctxt": 0, - "value": "setIndex", - "optional": false + "value": "setIndex" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json index 4e666ed01472..160facb1a654 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json @@ -7563,9 +7563,7 @@ "start": 4619, "end": 4622 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -7684,9 +7682,7 @@ "start": 4646, "end": 4652 }, - "ctxt": 0, - "value": "update", - "optional": false + "value": "update" }, "function": { "params": [ @@ -7806,9 +7802,7 @@ "start": 4686, "end": 4689 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json index 674a949f13cc..421f9c5b171f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json @@ -94,9 +94,7 @@ "start": 26, "end": 28 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" }, "value": { "type": "NumericLiteral", @@ -116,9 +114,7 @@ "start": 34, "end": 39 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json index 0d8b2b07efbc..5d4ab500b0d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json @@ -94,9 +94,7 @@ "start": 42, "end": 44 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" }, "value": { "type": "NumericLiteral", @@ -116,9 +114,7 @@ "start": 50, "end": 55 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json index 8f3aaa18f865..cd1020368a01 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json @@ -47,9 +47,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "TemplateLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json index c5c5bdbdda1e..ed3ed345e13c 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json @@ -47,9 +47,7 @@ "start": 31, "end": 32 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "TemplateLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json index de9640b3ef46..13cab741cafc 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json @@ -70,9 +70,7 @@ "start": 26, "end": 28 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" }, "value": { "type": "NumericLiteral", @@ -92,9 +90,7 @@ "start": 34, "end": 39 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json index cdb2421f4eba..e90cbbe8237e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json @@ -70,9 +70,7 @@ "start": 42, "end": 44 }, - "ctxt": 0, - "value": "hi", - "optional": false + "value": "hi" }, "value": { "type": "NumericLiteral", @@ -92,9 +90,7 @@ "start": 50, "end": 55 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json index 9261c17ddf61..f155af83a217 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json @@ -54,9 +54,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -76,9 +74,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json index 1fdbb1823b05..ac3923719b6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json @@ -54,9 +54,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -76,9 +74,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json index 8ef42b4619c1..97af23a0e282 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json @@ -70,9 +70,7 @@ "start": 14, "end": 21 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json index 4a4c793b8ba3..5211af48cc2f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json @@ -70,9 +70,7 @@ "start": 30, "end": 37 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json index a2521c176842..c8a560a3d31d 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json @@ -37,9 +37,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -130,9 +126,7 @@ "start": 164, "end": 165 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -172,9 +166,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -250,9 +242,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "TsNonNullExpression", @@ -308,9 +298,7 @@ "start": 258, "end": 260 }, - "ctxt": 0, - "value": "y1", - "optional": false + "value": "y1" }, "value": { "type": "MemberExpression", @@ -331,9 +319,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -359,9 +345,7 @@ "start": 282, "end": 284 }, - "ctxt": 0, - "value": "y2", - "optional": false + "value": "y2" }, "value": { "type": "CallExpression", @@ -389,9 +373,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -420,9 +402,7 @@ "start": 308, "end": 310 }, - "ctxt": 0, - "value": "y3", - "optional": false + "value": "y3" }, "value": { "type": "OptionalChainingExpression", @@ -464,9 +444,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -497,9 +475,7 @@ "start": 335, "end": 337 }, - "ctxt": 0, - "value": "y4", - "optional": false + "value": "y4" }, "value": { "type": "CallExpression", @@ -571,9 +547,7 @@ "start": 366, "end": 368 }, - "ctxt": 0, - "value": "y5", - "optional": false + "value": "y5" }, "value": { "type": "OptionalChainingExpression", @@ -661,9 +635,7 @@ "start": 399, "end": 401 }, - "ctxt": 0, - "value": "z1", - "optional": false + "value": "z1" }, "value": { "type": "SuperPropExpression", @@ -684,9 +656,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null, @@ -712,9 +682,7 @@ "start": 424, "end": 426 }, - "ctxt": 0, - "value": "z2", - "optional": false + "value": "z2" }, "value": { "type": "SuperPropExpression", @@ -769,9 +737,7 @@ "start": 452, "end": 454 }, - "ctxt": 0, - "value": "z3", - "optional": false + "value": "z3" }, "value": { "type": "CallExpression", @@ -799,9 +765,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -830,9 +794,7 @@ "start": 479, "end": 481 }, - "ctxt": 0, - "value": "z4", - "optional": false + "value": "z4" }, "value": { "type": "CallExpression", @@ -897,9 +859,7 @@ "start": 509, "end": 511 }, - "ctxt": 0, - "value": "z5", - "optional": false + "value": "z5" }, "value": { "type": "AssignmentExpression", @@ -927,9 +887,7 @@ "start": 520, "end": 521 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -965,9 +923,7 @@ "start": 538, "end": 540 }, - "ctxt": 0, - "value": "z6", - "optional": false + "value": "z6" }, "value": { "type": "AssignmentExpression", @@ -995,9 +951,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1033,9 +987,7 @@ "start": 568, "end": 570 }, - "ctxt": 0, - "value": "z7", - "optional": false + "value": "z7" }, "value": { "type": "CallExpression", @@ -1098,9 +1050,7 @@ "start": 588, "end": 589 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1148,9 +1098,7 @@ "start": 612, "end": 614 }, - "ctxt": 0, - "value": "z8", - "optional": false + "value": "z8" }, "value": { "type": "AssignmentExpression", @@ -1185,9 +1133,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } ], @@ -1239,9 +1185,7 @@ "start": 645, "end": 647 }, - "ctxt": 0, - "value": "z9", - "optional": false + "value": "z9" }, "value": { "type": "AssignmentExpression", @@ -1282,9 +1226,7 @@ "start": 657, "end": 658 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1346,9 +1288,7 @@ "start": 682, "end": 685 }, - "ctxt": 0, - "value": "z10", - "optional": false + "value": "z10" }, "value": { "type": "AssignmentExpression", @@ -1393,9 +1333,7 @@ "start": 698, "end": 699 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null @@ -1449,9 +1387,7 @@ "start": 719, "end": 722 }, - "ctxt": 0, - "value": "z11", - "optional": false + "value": "z11" }, "value": { "type": "AssignmentExpression", @@ -1475,9 +1411,7 @@ "start": 727, "end": 728 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1498,9 +1432,7 @@ "start": 736, "end": 737 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1523,9 +1455,7 @@ "start": 744, "end": 745 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1563,9 +1493,7 @@ "start": 763, "end": 766 }, - "ctxt": 0, - "value": "z12", - "optional": false + "value": "z12" }, "value": { "type": "AssignmentExpression", @@ -1589,9 +1517,7 @@ "start": 771, "end": 772 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -1618,9 +1544,7 @@ "start": 780, "end": 781 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1653,9 +1577,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1693,9 +1615,7 @@ "start": 811, "end": 814 }, - "ctxt": 0, - "value": "z13", - "optional": false + "value": "z13" }, "value": { "type": "AssignmentExpression", @@ -1740,9 +1660,7 @@ "start": 828, "end": 829 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null @@ -1766,9 +1684,7 @@ "start": 836, "end": 837 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1806,9 +1722,7 @@ "start": 855, "end": 858 }, - "ctxt": 0, - "value": "z14", - "optional": false + "value": "z14" }, "value": { "type": "UpdateExpression", @@ -1837,9 +1751,7 @@ "start": 869, "end": 870 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1866,9 +1778,7 @@ "start": 883, "end": 886 }, - "ctxt": 0, - "value": "z15", - "optional": false + "value": "z15" }, "value": { "type": "UpdateExpression", @@ -1897,9 +1807,7 @@ "start": 897, "end": 898 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1926,9 +1834,7 @@ "start": 911, "end": 914 }, - "ctxt": 0, - "value": "z16", - "optional": false + "value": "z16" }, "value": { "type": "UpdateExpression", @@ -1999,9 +1905,7 @@ "start": 944, "end": 947 }, - "ctxt": 0, - "value": "z17", - "optional": false + "value": "z17" }, "value": { "type": "UpdateExpression", @@ -2030,9 +1934,7 @@ "start": 956, "end": 957 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2059,9 +1961,7 @@ "start": 972, "end": 975 }, - "ctxt": 0, - "value": "z18", - "optional": false + "value": "z18" }, "value": { "type": "TaggedTemplateExpression", @@ -2089,9 +1989,7 @@ "start": 984, "end": 985 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeParameters": null, @@ -2139,9 +2037,7 @@ "start": 1028, "end": 1029 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2175,9 +2071,7 @@ "start": 1039, "end": 1040 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -2198,9 +2092,7 @@ "start": 1048, "end": 1049 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -2226,9 +2118,7 @@ "start": 1055, "end": 1056 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "CallExpression", @@ -2256,9 +2146,7 @@ "start": 1065, "end": 1066 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json index 52b437d4e06c..831f87f27d59 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json @@ -37,9 +37,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -130,9 +126,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -172,9 +166,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -250,9 +242,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "TsNonNullExpression", @@ -308,9 +298,7 @@ "start": 259, "end": 261 }, - "ctxt": 0, - "value": "y1", - "optional": false + "value": "y1" }, "value": { "type": "MemberExpression", @@ -331,9 +319,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -359,9 +345,7 @@ "start": 283, "end": 285 }, - "ctxt": 0, - "value": "y2", - "optional": false + "value": "y2" }, "value": { "type": "CallExpression", @@ -389,9 +373,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -420,9 +402,7 @@ "start": 309, "end": 311 }, - "ctxt": 0, - "value": "y3", - "optional": false + "value": "y3" }, "value": { "type": "OptionalChainingExpression", @@ -464,9 +444,7 @@ "start": 320, "end": 321 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -497,9 +475,7 @@ "start": 336, "end": 338 }, - "ctxt": 0, - "value": "y4", - "optional": false + "value": "y4" }, "value": { "type": "CallExpression", @@ -571,9 +547,7 @@ "start": 367, "end": 369 }, - "ctxt": 0, - "value": "y5", - "optional": false + "value": "y5" }, "value": { "type": "OptionalChainingExpression", @@ -661,9 +635,7 @@ "start": 400, "end": 402 }, - "ctxt": 0, - "value": "z1", - "optional": false + "value": "z1" }, "value": { "type": "SuperPropExpression", @@ -684,9 +656,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null, @@ -712,9 +682,7 @@ "start": 425, "end": 427 }, - "ctxt": 0, - "value": "z2", - "optional": false + "value": "z2" }, "value": { "type": "SuperPropExpression", @@ -769,9 +737,7 @@ "start": 453, "end": 455 }, - "ctxt": 0, - "value": "z3", - "optional": false + "value": "z3" }, "value": { "type": "CallExpression", @@ -799,9 +765,7 @@ "start": 464, "end": 465 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -830,9 +794,7 @@ "start": 480, "end": 482 }, - "ctxt": 0, - "value": "z4", - "optional": false + "value": "z4" }, "value": { "type": "CallExpression", @@ -897,9 +859,7 @@ "start": 510, "end": 512 }, - "ctxt": 0, - "value": "z5", - "optional": false + "value": "z5" }, "value": { "type": "AssignmentExpression", @@ -927,9 +887,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -965,9 +923,7 @@ "start": 539, "end": 541 }, - "ctxt": 0, - "value": "z6", - "optional": false + "value": "z6" }, "value": { "type": "AssignmentExpression", @@ -995,9 +951,7 @@ "start": 550, "end": 551 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1033,9 +987,7 @@ "start": 569, "end": 571 }, - "ctxt": 0, - "value": "z7", - "optional": false + "value": "z7" }, "value": { "type": "CallExpression", @@ -1098,9 +1050,7 @@ "start": 589, "end": 590 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1148,9 +1098,7 @@ "start": 613, "end": 615 }, - "ctxt": 0, - "value": "z8", - "optional": false + "value": "z8" }, "value": { "type": "AssignmentExpression", @@ -1185,9 +1133,7 @@ "start": 625, "end": 626 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } ], @@ -1239,9 +1185,7 @@ "start": 646, "end": 648 }, - "ctxt": 0, - "value": "z9", - "optional": false + "value": "z9" }, "value": { "type": "AssignmentExpression", @@ -1282,9 +1226,7 @@ "start": 658, "end": 659 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1346,9 +1288,7 @@ "start": 683, "end": 686 }, - "ctxt": 0, - "value": "z10", - "optional": false + "value": "z10" }, "value": { "type": "AssignmentExpression", @@ -1393,9 +1333,7 @@ "start": 699, "end": 700 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null @@ -1449,9 +1387,7 @@ "start": 720, "end": 723 }, - "ctxt": 0, - "value": "z11", - "optional": false + "value": "z11" }, "value": { "type": "AssignmentExpression", @@ -1475,9 +1411,7 @@ "start": 728, "end": 729 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "SuperPropExpression", @@ -1498,9 +1432,7 @@ "start": 737, "end": 738 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1523,9 +1455,7 @@ "start": 745, "end": 746 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1563,9 +1493,7 @@ "start": 764, "end": 767 }, - "ctxt": 0, - "value": "z12", - "optional": false + "value": "z12" }, "value": { "type": "AssignmentExpression", @@ -1589,9 +1517,7 @@ "start": 772, "end": 773 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "AssignmentPattern", @@ -1618,9 +1544,7 @@ "start": 781, "end": 782 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1653,9 +1577,7 @@ "start": 793, "end": 794 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1693,9 +1615,7 @@ "start": 812, "end": 815 }, - "ctxt": 0, - "value": "z13", - "optional": false + "value": "z13" }, "value": { "type": "AssignmentExpression", @@ -1740,9 +1660,7 @@ "start": 829, "end": 830 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeAnnotation": null @@ -1766,9 +1684,7 @@ "start": 837, "end": 838 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1806,9 +1722,7 @@ "start": 856, "end": 859 }, - "ctxt": 0, - "value": "z14", - "optional": false + "value": "z14" }, "value": { "type": "UpdateExpression", @@ -1837,9 +1751,7 @@ "start": 870, "end": 871 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1866,9 +1778,7 @@ "start": 884, "end": 887 }, - "ctxt": 0, - "value": "z15", - "optional": false + "value": "z15" }, "value": { "type": "UpdateExpression", @@ -1897,9 +1807,7 @@ "start": 898, "end": 899 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1926,9 +1834,7 @@ "start": 912, "end": 915 }, - "ctxt": 0, - "value": "z16", - "optional": false + "value": "z16" }, "value": { "type": "UpdateExpression", @@ -1999,9 +1905,7 @@ "start": 945, "end": 948 }, - "ctxt": 0, - "value": "z17", - "optional": false + "value": "z17" }, "value": { "type": "UpdateExpression", @@ -2030,9 +1934,7 @@ "start": 957, "end": 958 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -2059,9 +1961,7 @@ "start": 973, "end": 976 }, - "ctxt": 0, - "value": "z18", - "optional": false + "value": "z18" }, "value": { "type": "TaggedTemplateExpression", @@ -2089,9 +1989,7 @@ "start": 985, "end": 986 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeParameters": null, @@ -2139,9 +2037,7 @@ "start": 1029, "end": 1030 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2175,9 +2071,7 @@ "start": 1040, "end": 1041 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -2198,9 +2092,7 @@ "start": 1049, "end": 1050 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -2226,9 +2118,7 @@ "start": 1056, "end": 1057 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "CallExpression", @@ -2256,9 +2146,7 @@ "start": 1066, "end": 1067 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json index 5ba402076929..1de1f4e6490b 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json @@ -37,9 +37,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -130,9 +126,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -172,9 +166,7 @@ "start": 160, "end": 161 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -250,9 +242,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "TsNonNullExpression", @@ -308,9 +298,7 @@ "start": 239, "end": 241 }, - "ctxt": 0, - "value": "y1", - "optional": false + "value": "y1" }, "value": { "type": "MemberExpression", @@ -331,9 +319,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -359,9 +345,7 @@ "start": 263, "end": 265 }, - "ctxt": 0, - "value": "y2", - "optional": false + "value": "y2" }, "value": { "type": "CallExpression", @@ -389,9 +373,7 @@ "start": 273, "end": 274 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -420,9 +402,7 @@ "start": 289, "end": 291 }, - "ctxt": 0, - "value": "y3", - "optional": false + "value": "y3" }, "value": { "type": "OptionalChainingExpression", @@ -464,9 +444,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -497,9 +475,7 @@ "start": 316, "end": 318 }, - "ctxt": 0, - "value": "y4", - "optional": false + "value": "y4" }, "value": { "type": "CallExpression", @@ -571,9 +547,7 @@ "start": 347, "end": 349 }, - "ctxt": 0, - "value": "y5", - "optional": false + "value": "y5" }, "value": { "type": "OptionalChainingExpression", @@ -661,9 +635,7 @@ "start": 380, "end": 382 }, - "ctxt": 0, - "value": "z3", - "optional": false + "value": "z3" }, "value": { "type": "CallExpression", @@ -691,9 +663,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -722,9 +692,7 @@ "start": 407, "end": 409 }, - "ctxt": 0, - "value": "z4", - "optional": false + "value": "z4" }, "value": { "type": "CallExpression", @@ -789,9 +757,7 @@ "start": 469, "end": 470 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -825,9 +791,7 @@ "start": 480, "end": 481 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -848,9 +812,7 @@ "start": 489, "end": 490 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -876,9 +838,7 @@ "start": 496, "end": 497 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "CallExpression", @@ -906,9 +866,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json index ddabb38e9a00..d4d80dd39464 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json @@ -37,9 +37,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 129, "end": 130 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -130,9 +126,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -172,9 +166,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -250,9 +242,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "TsNonNullExpression", @@ -308,9 +298,7 @@ "start": 240, "end": 242 }, - "ctxt": 0, - "value": "y1", - "optional": false + "value": "y1" }, "value": { "type": "MemberExpression", @@ -331,9 +319,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -359,9 +345,7 @@ "start": 264, "end": 266 }, - "ctxt": 0, - "value": "y2", - "optional": false + "value": "y2" }, "value": { "type": "CallExpression", @@ -389,9 +373,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [], @@ -420,9 +402,7 @@ "start": 290, "end": 292 }, - "ctxt": 0, - "value": "y3", - "optional": false + "value": "y3" }, "value": { "type": "OptionalChainingExpression", @@ -464,9 +444,7 @@ "start": 301, "end": 302 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -497,9 +475,7 @@ "start": 317, "end": 319 }, - "ctxt": 0, - "value": "y4", - "optional": false + "value": "y4" }, "value": { "type": "CallExpression", @@ -571,9 +547,7 @@ "start": 348, "end": 350 }, - "ctxt": 0, - "value": "y5", - "optional": false + "value": "y5" }, "value": { "type": "OptionalChainingExpression", @@ -661,9 +635,7 @@ "start": 381, "end": 383 }, - "ctxt": 0, - "value": "z3", - "optional": false + "value": "z3" }, "value": { "type": "CallExpression", @@ -691,9 +663,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -722,9 +692,7 @@ "start": 408, "end": 410 }, - "ctxt": 0, - "value": "z4", - "optional": false + "value": "z4" }, "value": { "type": "CallExpression", @@ -789,9 +757,7 @@ "start": 470, "end": 471 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -825,9 +791,7 @@ "start": 481, "end": 482 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -848,9 +812,7 @@ "start": 490, "end": 491 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -876,9 +838,7 @@ "start": 497, "end": 498 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "CallExpression", @@ -906,9 +866,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisInInstanceMemberInitializer.json b/crates/swc_ecma_parser/tests/tsc/thisInInstanceMemberInitializer.json index 909ecfece2bc..c1acdb043340 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisInInstanceMemberInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/thisInInstanceMemberInitializer.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -98,9 +96,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -132,9 +128,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/thisInObjectLiterals.json b/crates/swc_ecma_parser/tests/tsc/thisInObjectLiterals.json index 089e2c6c9b4b..1b8d187b404e 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisInObjectLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/thisInObjectLiterals.json @@ -37,9 +37,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 87, "end": 89 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -167,9 +163,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -187,9 +181,7 @@ "start": 234, "end": 235 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "MemberExpression", @@ -210,9 +202,7 @@ "start": 242, "end": 243 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } } } @@ -412,9 +402,7 @@ "start": 400, "end": 401 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -456,9 +444,7 @@ "start": 426, "end": 433 }, - "ctxt": 0, - "value": "spaaace", - "optional": false + "value": "spaaace" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisMethodCall.json b/crates/swc_ecma_parser/tests/tsc/thisMethodCall.json index f7400da74c32..11cc2d7dc558 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisMethodCall.json +++ b/crates/swc_ecma_parser/tests/tsc/thisMethodCall.json @@ -37,9 +37,7 @@ "start": 48, "end": 54 }, - "ctxt": 0, - "value": "method", - "optional": true + "value": "method" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 65, "end": 70 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" }, "function": { "params": [], @@ -141,9 +137,7 @@ "start": 88, "end": 94 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json index 9d3890df1355..557ffd1da198 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json @@ -37,9 +37,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -90,9 +88,7 @@ "start": 519, "end": 520 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -101,9 +97,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -305,9 +299,7 @@ "start": 609, "end": 610 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -358,9 +350,7 @@ "start": 624, "end": 625 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -369,9 +359,7 @@ "start": 626, "end": 627 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -599,9 +587,7 @@ "start": 699, "end": 700 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -633,9 +619,7 @@ "start": 704, "end": 705 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json index 478ea4b0de36..46379bf5c214 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json @@ -44,9 +44,7 @@ "start": 160, "end": 171 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -89,9 +87,7 @@ "start": 189, "end": 192 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -122,9 +118,7 @@ "start": 214, "end": 220 }, - "ctxt": 0, - "value": "slicey", - "optional": false + "value": "slicey" }, "function": { "params": [], @@ -174,9 +168,7 @@ "start": 238, "end": 241 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -211,9 +203,7 @@ "start": 249, "end": 252 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "property": { @@ -222,9 +212,7 @@ "start": 253, "end": 258 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -258,9 +246,7 @@ "start": 272, "end": 273 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -303,9 +289,7 @@ "start": 291, "end": 294 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -391,9 +375,7 @@ "start": 342, "end": 343 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -439,9 +421,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -500,9 +480,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -511,9 +489,7 @@ "start": 382, "end": 390 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json index 11190497fe57..5ee4a8db198b 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json @@ -43,9 +43,7 @@ "start": 201, "end": 212 }, - "ctxt": 0, - "value": "textContent", - "optional": false + "value": "textContent" }, "function": { "params": [], @@ -105,9 +103,7 @@ "start": 242, "end": 253 }, - "ctxt": 0, - "value": "textContent", - "optional": false + "value": "textContent" }, "function": { "params": [ @@ -170,9 +166,7 @@ "start": 262, "end": 271 }, - "ctxt": 0, - "value": "cloneNode", - "optional": false + "value": "cloneNode" }, "function": { "params": [], @@ -306,9 +300,7 @@ "start": 388, "end": 397 }, - "ctxt": 0, - "value": "innerHTML", - "optional": false + "value": "innerHTML" }, "function": { "params": [], @@ -351,9 +343,7 @@ "start": 414, "end": 425 }, - "ctxt": 0, - "value": "textContent", - "optional": false + "value": "textContent" } } } @@ -383,9 +373,7 @@ "start": 435, "end": 444 }, - "ctxt": 0, - "value": "innerHTML", - "optional": false + "value": "innerHTML" }, "function": { "params": [ @@ -455,9 +443,7 @@ "start": 458, "end": 469 }, - "ctxt": 0, - "value": "textContent", - "optional": false + "value": "textContent" } }, "right": { @@ -498,9 +484,7 @@ "start": 482, "end": 490 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyOverridesAccessors.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyOverridesAccessors.json index 51606cdf25a7..9d805042df40 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyOverridesAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyOverridesAccessors.json @@ -37,9 +37,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "function": { "params": [ @@ -192,9 +188,7 @@ "start": 204, "end": 215 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -261,9 +255,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignment.json b/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignment.json index f7105e80d391..d058bdd474ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignment.json @@ -46,9 +46,7 @@ "start": 44, "end": 53 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -57,9 +55,7 @@ "start": 54, "end": 60 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" } }, "right": { @@ -132,9 +128,7 @@ "start": 86, "end": 96 }, - "ctxt": 0, - "value": "parentNode", - "optional": false + "value": "parentNode" } }, "property": { @@ -143,9 +137,7 @@ "start": 98, "end": 109 }, - "ctxt": 0, - "value": "removeChild", - "optional": false + "value": "removeChild" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignmentJs.json b/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignmentJs.json index a09e5e870b48..1707834c82ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignmentJs.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPrototypeMethodCompoundAssignmentJs.json @@ -46,9 +46,7 @@ "start": 104, "end": 113 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -57,9 +55,7 @@ "start": 114, "end": 120 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" } }, "right": { @@ -132,9 +128,7 @@ "start": 146, "end": 156 }, - "ctxt": 0, - "value": "parentNode", - "optional": false + "value": "parentNode" } }, "property": { @@ -143,9 +137,7 @@ "start": 158, "end": 169 }, - "ctxt": 0, - "value": "removeChild", - "optional": false + "value": "removeChild" } } }, @@ -215,9 +207,7 @@ "start": 211, "end": 220 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -226,9 +216,7 @@ "start": 221, "end": 227 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" } }, "right": { @@ -301,9 +289,7 @@ "start": 253, "end": 263 }, - "ctxt": 0, - "value": "parentNode", - "optional": false + "value": "parentNode" } }, "property": { @@ -312,9 +298,7 @@ "start": 265, "end": 276 }, - "ctxt": 0, - "value": "removeChild", - "optional": false + "value": "removeChild" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisTag1.json b/crates/swc_ecma_parser/tests/tsc/thisTag1.json index d8fb14c5f332..582c70b0e7ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTag1.json @@ -85,9 +85,7 @@ "start": 227, "end": 228 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -112,9 +110,7 @@ "start": 233, "end": 239 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -178,9 +174,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -233,9 +227,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/thisTag3.json b/crates/swc_ecma_parser/tests/tsc/thisTag3.json index ab95c2e35878..25d055952406 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTag3.json @@ -37,9 +37,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ArrowFunctionExpression", @@ -87,9 +85,7 @@ "start": 210, "end": 212 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json b/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json index e9ec61f88045..e984e5c5edf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeAccessibility.json @@ -37,9 +37,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -87,9 +85,7 @@ "start": 60, "end": 62 }, - "ctxt": 0, - "value": "pp", - "optional": false + "value": "pp" }, "value": { "type": "NumericLiteral", @@ -137,9 +133,7 @@ "start": 89, "end": 92 }, - "ctxt": 0, - "value": "ppp", - "optional": false + "value": "ppp" }, "value": { "type": "NumericLiteral", @@ -187,9 +181,7 @@ "start": 127, "end": 129 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" }, "value": { "type": "NumericLiteral", @@ -237,9 +229,7 @@ "start": 166, "end": 169 }, - "ctxt": 0, - "value": "spp", - "optional": false + "value": "spp" }, "value": { "type": "NumericLiteral", @@ -287,9 +277,7 @@ "start": 203, "end": 207 }, - "ctxt": 0, - "value": "sppp", - "optional": false + "value": "sppp" }, "value": { "type": "NumericLiteral", @@ -579,9 +567,7 @@ "start": 386, "end": 387 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { @@ -631,9 +617,7 @@ "start": 406, "end": 408 }, - "ctxt": 0, - "value": "pp", - "optional": false + "value": "pp" }, "value": null, "typeAnnotation": { @@ -683,9 +667,7 @@ "start": 424, "end": 427 }, - "ctxt": 0, - "value": "ppp", - "optional": false + "value": "ppp" }, "value": null, "typeAnnotation": { @@ -735,9 +717,7 @@ "start": 451, "end": 453 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" }, "value": null, "typeAnnotation": { @@ -777,9 +757,7 @@ "start": 484, "end": 487 }, - "ctxt": 0, - "value": "spp", - "optional": false + "value": "spp" }, "value": null, "typeAnnotation": { @@ -819,9 +797,7 @@ "start": 515, "end": 519 }, - "ctxt": 0, - "value": "sppp", - "optional": false + "value": "sppp" }, "value": null, "typeAnnotation": { @@ -927,9 +903,7 @@ "start": 540, "end": 549 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -938,9 +912,7 @@ "start": 550, "end": 560 }, - "ctxt": 0, - "value": "extension1", - "optional": false + "value": "extension1" } }, "right": { @@ -1070,9 +1042,7 @@ "start": 611, "end": 612 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -1119,9 +1089,7 @@ "start": 627, "end": 629 }, - "ctxt": 0, - "value": "pp", - "optional": false + "value": "pp" } }, "right": { @@ -1168,9 +1136,7 @@ "start": 644, "end": 647 }, - "ctxt": 0, - "value": "ppp", - "optional": false + "value": "ppp" } }, "right": { @@ -1220,9 +1186,7 @@ "start": 665, "end": 667 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" } }, "right": { @@ -1272,9 +1236,7 @@ "start": 685, "end": 688 }, - "ctxt": 0, - "value": "spp", - "optional": false + "value": "spp" } }, "right": { @@ -1324,9 +1286,7 @@ "start": 706, "end": 710 }, - "ctxt": 0, - "value": "sppp", - "optional": false + "value": "sppp" } }, "right": { @@ -1391,9 +1351,7 @@ "start": 727, "end": 736 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -1402,9 +1360,7 @@ "start": 737, "end": 747 }, - "ctxt": 0, - "value": "extension2", - "optional": false + "value": "extension2" } }, "right": { @@ -1534,9 +1490,7 @@ "start": 811, "end": 812 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -1583,9 +1537,7 @@ "start": 827, "end": 829 }, - "ctxt": 0, - "value": "pp", - "optional": false + "value": "pp" } }, "right": { @@ -1632,9 +1584,7 @@ "start": 844, "end": 847 }, - "ctxt": 0, - "value": "ppp", - "optional": false + "value": "ppp" } }, "right": { @@ -1684,9 +1634,7 @@ "start": 865, "end": 867 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" } }, "right": { @@ -1736,9 +1684,7 @@ "start": 885, "end": 888 }, - "ctxt": 0, - "value": "spp", - "optional": false + "value": "spp" } }, "right": { @@ -1788,9 +1734,7 @@ "start": 906, "end": 910 }, - "ctxt": 0, - "value": "sppp", - "optional": false + "value": "sppp" } }, "right": { @@ -1998,9 +1942,7 @@ "start": 991, "end": 992 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -2047,9 +1989,7 @@ "start": 1007, "end": 1009 }, - "ctxt": 0, - "value": "pp", - "optional": false + "value": "pp" } }, "right": { @@ -2096,9 +2036,7 @@ "start": 1024, "end": 1027 }, - "ctxt": 0, - "value": "ppp", - "optional": false + "value": "ppp" } }, "right": { @@ -2148,9 +2086,7 @@ "start": 1045, "end": 1047 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" } }, "right": { @@ -2200,9 +2136,7 @@ "start": 1065, "end": 1068 }, - "ctxt": 0, - "value": "spp", - "optional": false + "value": "spp" } }, "right": { @@ -2252,9 +2186,7 @@ "start": 1086, "end": 1090 }, - "ctxt": 0, - "value": "sppp", - "optional": false + "value": "sppp" } }, "right": { @@ -2364,9 +2296,7 @@ "start": 1107, "end": 1116 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -2375,9 +2305,7 @@ "start": 1117, "end": 1127 }, - "ctxt": 0, - "value": "extension3", - "optional": false + "value": "extension3" } }, "right": { @@ -2565,9 +2493,7 @@ "start": 1223, "end": 1224 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -2614,9 +2540,7 @@ "start": 1239, "end": 1241 }, - "ctxt": 0, - "value": "pp", - "optional": false + "value": "pp" } }, "right": { @@ -2663,9 +2587,7 @@ "start": 1256, "end": 1259 }, - "ctxt": 0, - "value": "ppp", - "optional": false + "value": "ppp" } }, "right": { @@ -2715,9 +2637,7 @@ "start": 1284, "end": 1286 }, - "ctxt": 0, - "value": "sp", - "optional": false + "value": "sp" } }, "right": { @@ -2767,9 +2687,7 @@ "start": 1311, "end": 1314 }, - "ctxt": 0, - "value": "spp", - "optional": false + "value": "spp" } }, "right": { @@ -2819,9 +2737,7 @@ "start": 1339, "end": 1343 }, - "ctxt": 0, - "value": "sppp", - "optional": false + "value": "sppp" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json b/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json index b309cbf72fb5..6a5046c54187 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeAndConstraints.json @@ -37,9 +37,7 @@ "start": 15, "end": 19 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" }, "function": { "params": [], @@ -289,9 +287,7 @@ "start": 136, "end": 140 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -406,9 +402,7 @@ "start": 160, "end": 164 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -502,9 +496,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -619,9 +611,7 @@ "start": 224, "end": 228 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], @@ -655,9 +645,7 @@ "start": 242, "end": 245 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -772,9 +760,7 @@ "start": 281, "end": 285 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json index e721f67c40a7..af1b9885bf4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors.json @@ -754,9 +754,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -831,9 +829,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -897,9 +893,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -963,9 +957,7 @@ "start": 343, "end": 344 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -1056,9 +1048,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -1186,9 +1176,7 @@ "start": 423, "end": 424 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1227,9 +1215,7 @@ "start": 443, "end": 444 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "TsTypeAssertion", @@ -1278,9 +1264,7 @@ "start": 475, "end": 478 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1539,9 +1523,7 @@ "start": 613, "end": 615 }, - "ctxt": 0, - "value": "x1", - "optional": false + "value": "x1" }, "value": { "type": "ObjectExpression", @@ -1558,9 +1540,7 @@ "start": 628, "end": 629 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "params": [ { @@ -1672,9 +1652,7 @@ "start": 697, "end": 698 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -1832,9 +1810,7 @@ "start": 810, "end": 811 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json index b4b1c24f4860..ac17a956bf10 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeErrors2.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -183,9 +181,7 @@ "start": 90, "end": 91 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": { @@ -226,9 +222,7 @@ "start": 105, "end": 116 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -384,9 +378,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json index e67c8254512f..1c8840467660 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessors.json @@ -146,9 +146,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -172,9 +170,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -224,9 +220,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -245,9 +239,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "thisParam": { "type": "Identifier", @@ -349,9 +341,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -417,9 +407,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -443,9 +431,7 @@ "start": 290, "end": 291 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -495,9 +481,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -516,9 +500,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "thisParam": null, "param": { @@ -572,9 +554,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -640,9 +620,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -666,9 +644,7 @@ "start": 408, "end": 409 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": null, "body": { @@ -704,9 +680,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -725,9 +699,7 @@ "start": 439, "end": 440 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "thisParam": { "type": "Identifier", @@ -829,9 +801,7 @@ "start": 470, "end": 471 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -897,9 +867,7 @@ "start": 523, "end": 524 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -923,9 +891,7 @@ "start": 538, "end": 539 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": null, "body": { @@ -961,9 +927,7 @@ "start": 565, "end": 566 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -982,9 +946,7 @@ "start": 578, "end": 579 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "thisParam": { "type": "Identifier", @@ -1048,9 +1010,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -1106,9 +1066,7 @@ "start": 629, "end": 630 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -1142,9 +1100,7 @@ "start": 645, "end": 646 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1231,9 +1187,7 @@ "start": 680, "end": 681 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1277,9 +1231,7 @@ "start": 693, "end": 694 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1406,9 +1358,7 @@ "start": 724, "end": 725 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -1476,9 +1426,7 @@ "start": 758, "end": 759 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -1512,9 +1460,7 @@ "start": 774, "end": 775 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -1557,9 +1503,7 @@ "start": 792, "end": 793 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json index 5c78c8c87de7..3c3efa4e2d2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json @@ -275,9 +275,7 @@ "start": 209, "end": 210 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -301,9 +299,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": null, "body": { @@ -339,9 +335,7 @@ "start": 251, "end": 252 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -360,9 +354,7 @@ "start": 265, "end": 266 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "thisParam": { "type": "Identifier", @@ -450,9 +442,7 @@ "start": 288, "end": 293 }, - "ctxt": 0, - "value": "wrong", - "optional": false + "value": "wrong" } }, "right": { @@ -541,9 +531,7 @@ "start": 340, "end": 341 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -567,9 +555,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "typeAnnotation": null, "body": { @@ -605,9 +591,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json index 9cb50aa32e0d..48e511da56ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInClasses.json @@ -37,9 +37,7 @@ "start": 16, "end": 17 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -78,9 +76,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -429,9 +425,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -477,9 +471,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -550,9 +542,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -618,9 +608,7 @@ "start": 224, "end": 225 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": { @@ -686,9 +674,7 @@ "start": 244, "end": 245 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": null, "typeAnnotation": { @@ -748,9 +734,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -830,9 +814,7 @@ "start": 289, "end": 290 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": null, "typeAnnotation": { @@ -913,9 +895,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": null, "typeAnnotation": { @@ -980,9 +960,7 @@ "start": 337, "end": 338 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": null, "typeAnnotation": { @@ -1086,9 +1064,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" }, "value": null, "typeAnnotation": { @@ -1221,9 +1197,7 @@ "start": 422, "end": 423 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1262,9 +1236,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -1372,9 +1344,7 @@ "start": 471, "end": 474 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1920,9 +1890,7 @@ "start": 770, "end": 773 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json index 769d02844a25..15f133c7b1b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json @@ -37,9 +37,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": { @@ -148,9 +144,7 @@ "start": 74, "end": 86 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" }, "function": { "params": [ @@ -266,9 +260,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -323,9 +315,7 @@ "start": 157, "end": 166 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" }, "function": { "params": [ @@ -452,9 +442,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -509,9 +497,7 @@ "start": 234, "end": 250 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" }, "function": { "params": [ @@ -664,9 +650,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -721,9 +705,7 @@ "start": 328, "end": 340 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" }, "function": { "params": [ @@ -1504,9 +1486,7 @@ "start": 754, "end": 755 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -1655,9 +1635,7 @@ "start": 824, "end": 825 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -1783,9 +1761,7 @@ "start": 888, "end": 889 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -1897,9 +1873,7 @@ "start": 922, "end": 923 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1919,9 +1893,7 @@ "start": 933, "end": 946 }, - "ctxt": 0, - "value": "explicitVoid2", - "optional": false + "value": "explicitVoid2" }, "value": { "type": "ArrowFunctionExpression", @@ -1950,9 +1922,7 @@ "start": 959, "end": 960 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "async": false, @@ -1969,9 +1939,7 @@ "start": 1032, "end": 1045 }, - "ctxt": 0, - "value": "explicitVoid1", - "optional": false + "value": "explicitVoid1" }, "params": [], "decorators": [], @@ -2019,9 +1987,7 @@ "start": 1068, "end": 1086 }, - "ctxt": 0, - "value": "explicitStructural", - "optional": false + "value": "explicitStructural" }, "params": [], "decorators": [], @@ -2063,9 +2029,7 @@ "start": 1111, "end": 1112 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2084,9 +2048,7 @@ "start": 1125, "end": 1142 }, - "ctxt": 0, - "value": "explicitInterface", - "optional": false + "value": "explicitInterface" }, "params": [], "decorators": [], @@ -2128,9 +2090,7 @@ "start": 1167, "end": 1168 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2149,9 +2109,7 @@ "start": 1181, "end": 1193 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" }, "params": [], "decorators": [], @@ -2193,9 +2151,7 @@ "start": 1218, "end": 1219 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2247,9 +2203,7 @@ "start": 1235, "end": 1248 }, - "ctxt": 0, - "value": "explicitVoid1", - "optional": false + "value": "explicitVoid1" } }, "right": { @@ -2330,9 +2284,7 @@ "start": 1284, "end": 1297 }, - "ctxt": 0, - "value": "explicitVoid2", - "optional": false + "value": "explicitVoid2" } }, "right": { @@ -2394,9 +2346,7 @@ "start": 1315, "end": 1333 }, - "ctxt": 0, - "value": "explicitStructural", - "optional": false + "value": "explicitStructural" } }, "right": { @@ -2442,9 +2392,7 @@ "start": 1361, "end": 1362 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2492,9 +2440,7 @@ "start": 1372, "end": 1389 }, - "ctxt": 0, - "value": "explicitInterface", - "optional": false + "value": "explicitInterface" } }, "right": { @@ -2540,9 +2486,7 @@ "start": 1417, "end": 1418 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2590,9 +2534,7 @@ "start": 1428, "end": 1446 }, - "ctxt": 0, - "value": "explicitStructural", - "optional": false + "value": "explicitStructural" } }, "right": { @@ -2654,9 +2596,7 @@ "start": 1464, "end": 1481 }, - "ctxt": 0, - "value": "explicitInterface", - "optional": false + "value": "explicitInterface" } }, "right": { @@ -2718,9 +2658,7 @@ "start": 1499, "end": 1511 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -2766,9 +2704,7 @@ "start": 1540, "end": 1541 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3011,9 +2947,7 @@ "start": 1639, "end": 1640 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3033,9 +2967,7 @@ "start": 1646, "end": 1647 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "Identifier", @@ -3223,9 +3155,7 @@ "start": 1743, "end": 1755 }, - "ctxt": 0, - "value": "notSpecified", - "optional": false + "value": "notSpecified" }, "value": { "type": "NumericLiteral", @@ -3245,9 +3175,7 @@ "start": 1761, "end": 1762 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "Identifier", @@ -3301,9 +3229,7 @@ "start": 1783, "end": 1784 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3398,9 +3324,7 @@ "start": 1822, "end": 1823 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -3571,9 +3495,7 @@ "start": 1879, "end": 1888 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "definite": false @@ -3615,9 +3537,7 @@ "start": 1892, "end": 1901 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "arguments": [ @@ -3672,9 +3592,7 @@ "start": 1909, "end": 1925 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "arguments": [ @@ -3729,9 +3647,7 @@ "start": 1933, "end": 1945 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "arguments": [ @@ -3786,9 +3702,7 @@ "start": 1953, "end": 1962 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "arguments": [ @@ -3843,9 +3757,7 @@ "start": 1970, "end": 1986 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "arguments": [ @@ -3900,9 +3812,7 @@ "start": 1994, "end": 2006 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "arguments": [ @@ -4433,9 +4343,7 @@ "start": 2325, "end": 2326 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -4455,9 +4363,7 @@ "start": 2336, "end": 2348 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" }, "value": { "type": "MemberExpression", @@ -4481,9 +4387,7 @@ "start": 2352, "end": 2364 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } } }, @@ -4495,9 +4399,7 @@ "start": 2370, "end": 2379 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" }, "value": { "type": "MemberExpression", @@ -4521,9 +4423,7 @@ "start": 2383, "end": 2392 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } } }, @@ -4535,9 +4435,7 @@ "start": 2398, "end": 2414 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" }, "value": { "type": "MemberExpression", @@ -4561,9 +4459,7 @@ "start": 2418, "end": 2434 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } } }, @@ -4575,9 +4471,7 @@ "start": 2440, "end": 2452 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" }, "value": { "type": "MemberExpression", @@ -4601,9 +4495,7 @@ "start": 2456, "end": 2468 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" } } } @@ -4648,9 +4540,7 @@ "start": 2486, "end": 2498 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "arguments": [ @@ -4705,9 +4595,7 @@ "start": 2518, "end": 2534 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "arguments": [ @@ -4776,9 +4664,7 @@ "start": 2573, "end": 2585 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" } }, "definite": false @@ -5025,9 +4911,7 @@ "start": 2711, "end": 2712 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -6379,9 +6263,7 @@ "start": 3382, "end": 3391 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "right": { @@ -6431,9 +6313,7 @@ "start": 3415, "end": 3424 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "right": { @@ -6563,9 +6443,7 @@ "start": 3470, "end": 3471 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -6624,9 +6502,7 @@ "start": 3481, "end": 3497 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "right": { @@ -6676,9 +6552,7 @@ "start": 3528, "end": 3544 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "right": { @@ -6834,9 +6708,7 @@ "start": 3600, "end": 3601 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -6895,9 +6767,7 @@ "start": 3611, "end": 3627 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "right": { @@ -6922,9 +6792,7 @@ "start": 3644, "end": 3660 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } } } @@ -6964,9 +6832,7 @@ "start": 3703, "end": 3712 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "right": { @@ -7041,9 +6907,7 @@ "start": 3725, "end": 3737 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -7118,9 +6982,7 @@ "start": 3750, "end": 3766 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "right": { @@ -7195,9 +7057,7 @@ "start": 3884, "end": 3893 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "right": { @@ -7256,9 +7116,7 @@ "start": 3910, "end": 3911 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -7304,9 +7162,7 @@ "start": 3915, "end": 3927 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -7365,9 +7221,7 @@ "start": 3944, "end": 3945 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -7413,9 +7267,7 @@ "start": 3949, "end": 3965 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "right": { @@ -7474,9 +7326,7 @@ "start": 3982, "end": 3983 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -7522,9 +7372,7 @@ "start": 4018, "end": 4030 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -7574,9 +7422,7 @@ "start": 4054, "end": 4066 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -7706,9 +7552,7 @@ "start": 4112, "end": 4113 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -7767,9 +7611,7 @@ "start": 4150, "end": 4159 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "right": { @@ -7842,9 +7684,7 @@ "start": 4188, "end": 4189 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -7903,9 +7743,7 @@ "start": 4199, "end": 4215 }, - "ctxt": 0, - "value": "explicitProperty", - "optional": false + "value": "explicitProperty" } }, "right": { @@ -7978,9 +7816,7 @@ "start": 4244, "end": 4245 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -8039,9 +7875,7 @@ "start": 4255, "end": 4267 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -8114,9 +7948,7 @@ "start": 4296, "end": 4297 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -8175,9 +8007,7 @@ "start": 4335, "end": 4347 }, - "ctxt": 0, - "value": "explicitThis", - "optional": false + "value": "explicitThis" } }, "right": { @@ -8269,9 +8099,7 @@ "start": 4382, "end": 4383 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -8330,9 +8158,7 @@ "start": 4428, "end": 4437 }, - "ctxt": 0, - "value": "explicitC", - "optional": false + "value": "explicitC" } }, "right": { @@ -8462,9 +8288,7 @@ "start": 4483, "end": 4484 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -8523,9 +8347,7 @@ "start": 4522, "end": 4534 }, - "ctxt": 0, - "value": "explicitVoid", - "optional": false + "value": "explicitVoid" } }, "right": { @@ -8597,9 +8419,7 @@ "start": 4593, "end": 4594 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -8639,9 +8459,7 @@ "start": 4615, "end": 4626 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" }, "function": { "params": [ @@ -8717,9 +8535,7 @@ "start": 4661, "end": 4662 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -8763,9 +8579,7 @@ "start": 4670, "end": 4678 }, - "ctxt": 0, - "value": "explicit", - "optional": false + "value": "explicit" }, "function": { "params": [ @@ -8852,9 +8666,7 @@ "start": 4714, "end": 4715 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -8898,9 +8710,7 @@ "start": 4730, "end": 4744 }, - "ctxt": 0, - "value": "explicitStatic", - "optional": false + "value": "explicitStatic" }, "function": { "params": [ @@ -8987,9 +8797,7 @@ "start": 4787, "end": 4788 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -9033,9 +8841,7 @@ "start": 4803, "end": 4804 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -9102,9 +8908,7 @@ "start": 4851, "end": 4852 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -9180,9 +8984,7 @@ "start": 4881, "end": 4882 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { @@ -9222,9 +9024,7 @@ "start": 4895, "end": 4906 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" }, "function": { "params": [ @@ -9300,9 +9100,7 @@ "start": 4941, "end": 4942 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -9346,9 +9144,7 @@ "start": 4950, "end": 4958 }, - "ctxt": 0, - "value": "explicit", - "optional": false + "value": "explicit" }, "function": { "params": [ @@ -9435,9 +9231,7 @@ "start": 4994, "end": 4995 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -9508,9 +9302,7 @@ "start": 5036, "end": 5037 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -9793,9 +9585,7 @@ "start": 5145, "end": 5156 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } }, "right": { @@ -9820,9 +9610,7 @@ "start": 5162, "end": 5173 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } } } @@ -9862,9 +9650,7 @@ "start": 5208, "end": 5219 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } }, "right": { @@ -9889,9 +9675,7 @@ "start": 5225, "end": 5236 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } } } @@ -9931,9 +9715,7 @@ "start": 5300, "end": 5311 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } }, "right": { @@ -9958,9 +9740,7 @@ "start": 5317, "end": 5328 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } } } @@ -10000,9 +9780,7 @@ "start": 5358, "end": 5369 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } }, "right": { @@ -10027,9 +9805,7 @@ "start": 5375, "end": 5383 }, - "ctxt": 0, - "value": "explicit", - "optional": false + "value": "explicit" } } } @@ -10069,9 +9845,7 @@ "start": 5410, "end": 5421 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } }, "right": { @@ -10096,9 +9870,7 @@ "start": 5427, "end": 5438 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } } } @@ -10138,9 +9910,7 @@ "start": 5481, "end": 5489 }, - "ctxt": 0, - "value": "explicit", - "optional": false + "value": "explicit" } }, "right": { @@ -10165,9 +9935,7 @@ "start": 5495, "end": 5506 }, - "ctxt": 0, - "value": "polymorphic", - "optional": false + "value": "polymorphic" } } } @@ -10276,9 +10044,7 @@ "start": 5642, "end": 5643 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -10429,9 +10195,7 @@ "start": 5707, "end": 5708 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -10546,9 +10310,7 @@ "start": 5758, "end": 5759 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -11131,9 +10893,7 @@ "start": 6067, "end": 6071 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -11269,9 +11029,7 @@ "start": 6143, "end": 6151 }, - "ctxt": 0, - "value": "anything", - "optional": false + "value": "anything" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json index 207bc3e96047..d4e01e464f11 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions2.json @@ -984,9 +984,7 @@ "start": 752, "end": 756 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" }, "params": [], "decorators": [], @@ -1042,9 +1040,7 @@ "start": 863, "end": 874 }, - "ctxt": 0, - "value": "willDestroy", - "optional": false + "value": "willDestroy" } } } @@ -1063,9 +1059,7 @@ "start": 886, "end": 890 }, - "ctxt": 0, - "value": "mine", - "optional": false + "value": "mine" }, "value": { "type": "NumericLiteral", @@ -1085,9 +1079,7 @@ "start": 900, "end": 903 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], @@ -1129,9 +1121,7 @@ "start": 921, "end": 924 }, - "ctxt": 0, - "value": "url", - "optional": false + "value": "url" } } }, @@ -1160,9 +1150,7 @@ "start": 993, "end": 1004 }, - "ctxt": 0, - "value": "willDestroy", - "optional": false + "value": "willDestroy" } } } @@ -1221,9 +1209,7 @@ "start": 1030, "end": 1034 }, - "ctxt": 0, - "value": "init", - "optional": false + "value": "init" }, "params": [], "decorators": [], @@ -1279,9 +1265,7 @@ "start": 1122, "end": 1126 }, - "ctxt": 0, - "value": "mine", - "optional": false + "value": "mine" } } } @@ -1300,9 +1284,7 @@ "start": 1138, "end": 1142 }, - "ctxt": 0, - "value": "mine", - "optional": false + "value": "mine" }, "value": { "type": "NumericLiteral", @@ -1322,9 +1304,7 @@ "start": 1152, "end": 1155 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [], "decorators": [], @@ -1380,9 +1360,7 @@ "start": 1243, "end": 1247 }, - "ctxt": 0, - "value": "mine", - "optional": false + "value": "mine" } } } @@ -1441,9 +1419,7 @@ "start": 1272, "end": 1275 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "params": [ { @@ -1515,9 +1491,7 @@ "start": 1298, "end": 1304 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1546,9 +1520,7 @@ "start": 1312, "end": 1315 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1571,9 +1543,7 @@ "start": 1330, "end": 1333 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json index f7075df72967..538bcf7e8938 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions3.json @@ -37,9 +37,7 @@ "start": 26, "end": 31 }, - "ctxt": 0, - "value": "check", - "optional": false + "value": "check" }, "function": { "params": [ @@ -195,9 +193,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -247,9 +243,7 @@ "start": 127, "end": 132 }, - "ctxt": 0, - "value": "check", - "optional": false + "value": "check" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json index 10baf25df532..3ec038e9116c 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions4.json @@ -582,9 +582,7 @@ "start": 354, "end": 358 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json index fe4a84bcf926..108797df35f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json @@ -47,9 +47,7 @@ "start": 65, "end": 66 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -119,9 +115,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "property": { @@ -130,9 +124,7 @@ "start": 107, "end": 113 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -151,9 +143,7 @@ "start": 126, "end": 127 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "FunctionExpression", @@ -204,9 +194,7 @@ "start": 162, "end": 163 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "property": { @@ -215,9 +203,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -277,9 +263,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -299,9 +283,7 @@ "start": 223, "end": 228 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" }, "params": [], "decorators": [], @@ -350,9 +332,7 @@ "start": 253, "end": 264 }, - "ctxt": 0, - "value": "passthrough", - "optional": false + "value": "passthrough" } }, "arguments": [ @@ -377,9 +357,7 @@ "start": 270, "end": 271 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -402,9 +380,7 @@ "start": 285, "end": 296 }, - "ctxt": 0, - "value": "passthrough", - "optional": false + "value": "passthrough" }, "params": [ { @@ -487,9 +463,7 @@ "start": 330, "end": 334 }, - "ctxt": 0, - "value": "sub1", - "optional": false + "value": "sub1" } }, "arguments": [ @@ -525,9 +499,7 @@ "start": 350, "end": 354 }, - "ctxt": 0, - "value": "sub1", - "optional": false + "value": "sub1" }, "params": [ { @@ -651,9 +623,7 @@ "start": 421, "end": 432 }, - "ctxt": 0, - "value": "passthrough", - "optional": false + "value": "passthrough" } }, "arguments": [ @@ -809,9 +779,7 @@ "start": 511, "end": 516 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json index 3eeaaa8ae365..ebe0294df46c 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json @@ -47,9 +47,7 @@ "start": 181, "end": 182 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [], "decorators": [], @@ -113,9 +109,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -134,9 +128,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -156,9 +148,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "ObjectExpression", @@ -175,9 +165,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "params": [], "decorators": [], @@ -226,9 +214,7 @@ "start": 283, "end": 284 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "arguments": [], @@ -257,9 +243,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "typeAnnotation": null, "body": { @@ -295,9 +279,7 @@ "start": 339, "end": 340 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -316,9 +298,7 @@ "start": 357, "end": 358 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "typeAnnotation": null, "body": { @@ -354,9 +334,7 @@ "start": 383, "end": 384 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -375,9 +353,7 @@ "start": 401, "end": 402 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "thisParam": null, "param": { @@ -431,9 +407,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -768,9 +742,7 @@ "start": 682, "end": 683 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -790,9 +762,7 @@ "start": 693, "end": 694 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -812,9 +782,7 @@ "start": 704, "end": 710 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -921,9 +889,7 @@ "start": 738, "end": 739 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -970,9 +936,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1019,9 +983,7 @@ "start": 786, "end": 787 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -1075,9 +1037,7 @@ "start": 814, "end": 815 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -1192,9 +1152,7 @@ "start": 872, "end": 873 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1214,9 +1172,7 @@ "start": 883, "end": 884 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1236,9 +1192,7 @@ "start": 894, "end": 900 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -1345,9 +1299,7 @@ "start": 928, "end": 929 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1394,9 +1346,7 @@ "start": 950, "end": 951 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1443,9 +1393,7 @@ "start": 976, "end": 977 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -1499,9 +1447,7 @@ "start": 1004, "end": 1005 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -1616,9 +1562,7 @@ "start": 1067, "end": 1068 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1638,9 +1582,7 @@ "start": 1078, "end": 1079 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1660,9 +1602,7 @@ "start": 1089, "end": 1095 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -1769,9 +1709,7 @@ "start": 1123, "end": 1124 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1818,9 +1756,7 @@ "start": 1145, "end": 1146 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -1867,9 +1803,7 @@ "start": 1171, "end": 1172 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -1923,9 +1857,7 @@ "start": 1199, "end": 1200 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -2048,9 +1980,7 @@ "start": 1269, "end": 1270 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2070,9 +2000,7 @@ "start": 1280, "end": 1281 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2092,9 +2020,7 @@ "start": 1291, "end": 1297 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -2201,9 +2127,7 @@ "start": 1325, "end": 1326 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -2250,9 +2174,7 @@ "start": 1347, "end": 1348 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -2299,9 +2221,7 @@ "start": 1373, "end": 1374 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -2355,9 +2275,7 @@ "start": 1401, "end": 1402 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -2514,9 +2432,7 @@ "start": 1477, "end": 1478 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2536,9 +2452,7 @@ "start": 1488, "end": 1489 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2558,9 +2472,7 @@ "start": 1499, "end": 1505 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -2667,9 +2579,7 @@ "start": 1533, "end": 1534 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -2716,9 +2626,7 @@ "start": 1555, "end": 1556 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -2765,9 +2673,7 @@ "start": 1581, "end": 1582 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -2821,9 +2727,7 @@ "start": 1609, "end": 1610 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -3006,9 +2910,7 @@ "start": 1705, "end": 1706 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3028,9 +2930,7 @@ "start": 1716, "end": 1717 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3050,9 +2950,7 @@ "start": 1727, "end": 1733 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -3159,9 +3057,7 @@ "start": 1761, "end": 1762 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -3208,9 +3104,7 @@ "start": 1783, "end": 1784 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -3257,9 +3151,7 @@ "start": 1809, "end": 1810 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -3313,9 +3205,7 @@ "start": 1837, "end": 1838 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -3877,9 +3767,7 @@ "start": 2204, "end": 2208 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -3896,9 +3784,7 @@ "start": 2212, "end": 2213 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -3918,9 +3804,7 @@ "start": 2218, "end": 2219 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -3943,9 +3827,7 @@ "start": 2230, "end": 2237 }, - "ctxt": 0, - "value": "methods", - "optional": false + "value": "methods" }, "value": { "type": "ObjectExpression", @@ -3962,9 +3844,7 @@ "start": 2249, "end": 2255 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -4080,9 +3960,7 @@ "start": 2299, "end": 2300 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -4129,9 +4007,7 @@ "start": 2349, "end": 2350 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -4695,9 +4571,7 @@ "start": 2714, "end": 2718 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -4714,9 +4588,7 @@ "start": 2722, "end": 2723 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -4736,9 +4608,7 @@ "start": 2728, "end": 2729 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -4761,9 +4631,7 @@ "start": 2740, "end": 2747 }, - "ctxt": 0, - "value": "methods", - "optional": false + "value": "methods" }, "value": { "type": "ObjectExpression", @@ -4780,9 +4648,7 @@ "start": 2759, "end": 2765 }, - "ctxt": 0, - "value": "moveBy", - "optional": false + "value": "moveBy" }, "params": [ { @@ -4898,9 +4764,7 @@ "start": 2809, "end": 2810 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -4947,9 +4811,7 @@ "start": 2859, "end": 2860 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -6174,9 +6036,7 @@ "start": 3380, "end": 3385 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -6233,9 +6093,7 @@ "start": 3398, "end": 3401 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -6267,9 +6125,7 @@ "start": 3408, "end": 3411 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -6371,9 +6227,7 @@ "start": 3456, "end": 3459 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -6415,9 +6269,7 @@ "start": 3484, "end": 3485 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -6436,9 +6288,7 @@ "start": 3498, "end": 3501 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -6521,9 +6371,7 @@ "start": 3532, "end": 3533 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -6590,9 +6438,7 @@ "start": 3557, "end": 3560 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -6624,9 +6470,7 @@ "start": 3567, "end": 3570 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -6716,9 +6560,7 @@ "start": 3609, "end": 3612 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ObjectExpression", @@ -6735,9 +6577,7 @@ "start": 3624, "end": 3629 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -6760,9 +6600,7 @@ "start": 3645, "end": 3648 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "ObjectExpression", @@ -6779,9 +6617,7 @@ "start": 3660, "end": 3663 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -6823,9 +6659,7 @@ "start": 3700, "end": 3701 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -6858,9 +6692,7 @@ "start": 3722, "end": 3725 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -6943,9 +6775,7 @@ "start": 3760, "end": 3761 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -7015,9 +6845,7 @@ "start": 3795, "end": 3798 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -7049,9 +6877,7 @@ "start": 3805, "end": 3808 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -7101,9 +6927,7 @@ "start": 3818, "end": 3821 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -7135,9 +6959,7 @@ "start": 3828, "end": 3831 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -8462,9 +8284,7 @@ "start": 4286, "end": 4290 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ArrowFunctionExpression", @@ -8495,9 +8315,7 @@ "start": 4301, "end": 4302 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -8517,9 +8335,7 @@ "start": 4307, "end": 4308 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -8548,9 +8364,7 @@ "start": 4320, "end": 4327 }, - "ctxt": 0, - "value": "methods", - "optional": false + "value": "methods" }, "value": { "type": "ObjectExpression", @@ -8567,9 +8381,7 @@ "start": 4339, "end": 4340 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { @@ -8645,9 +8457,7 @@ "start": 4378, "end": 4379 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -8669,9 +8479,7 @@ "start": 4402, "end": 4410 }, - "ctxt": 0, - "value": "computed", - "optional": false + "value": "computed" }, "value": { "type": "ObjectExpression", @@ -8688,9 +8496,7 @@ "start": 4422, "end": 4426 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "params": [], "decorators": [], @@ -8732,9 +8538,7 @@ "start": 4463, "end": 4464 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -8767,9 +8571,7 @@ "start": 4485, "end": 4490 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" }, "value": { "type": "ObjectExpression", @@ -8786,9 +8588,7 @@ "start": 4506, "end": 4509 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -8836,9 +8636,7 @@ "start": 4570, "end": 4573 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "params": [ { @@ -8956,9 +8754,7 @@ "start": 4635, "end": 4636 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -8997,9 +8793,7 @@ "start": 4642, "end": 4643 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -9047,9 +8841,7 @@ "start": 4656, "end": 4660 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } } }, @@ -9081,9 +8873,7 @@ "start": 4666, "end": 4671 }, - "ctxt": 0, - "value": "hello", - "optional": false + "value": "hello" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json index c8c238bf2292..aa3ecded3333 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json @@ -37,9 +37,7 @@ "start": 44, "end": 45 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -288,9 +286,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "typeParameters": null, @@ -357,9 +353,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json index 7d9089642156..c1e6fa52f473 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json @@ -266,9 +266,7 @@ "start": 95, "end": 100 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -334,9 +332,7 @@ "start": 114, "end": 119 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -415,9 +411,7 @@ "start": 134, "end": 139 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeOfConstructorFunctions.json b/crates/swc_ecma_parser/tests/tsc/thisTypeOfConstructorFunctions.json index 32e2afc71076..03bc00ec179b 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeOfConstructorFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeOfConstructorFunctions.json @@ -85,9 +85,7 @@ "start": 202, "end": 205 }, - "ctxt": 0, - "value": "dit", - "optional": false + "value": "dit" } }, "right": { @@ -131,9 +129,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -180,9 +176,7 @@ "start": 263, "end": 265 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" } }, "right": { @@ -249,9 +243,7 @@ "start": 285, "end": 294 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -269,9 +261,7 @@ "start": 329, "end": 331 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" }, "params": [], "decorators": [], @@ -320,9 +310,7 @@ "start": 349, "end": 350 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -344,9 +332,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -456,9 +442,7 @@ "start": 458, "end": 459 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -521,9 +505,7 @@ "start": 492, "end": 501 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -532,9 +514,7 @@ "start": 502, "end": 504 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" } }, "right": { @@ -587,9 +567,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "right": { @@ -611,9 +589,7 @@ "start": 539, "end": 540 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } @@ -797,9 +773,7 @@ "start": 600, "end": 603 }, - "ctxt": 0, - "value": "dit", - "optional": false + "value": "dit" } } }, @@ -859,9 +833,7 @@ "start": 647, "end": 649 }, - "ctxt": 0, - "value": "m2", - "optional": false + "value": "m2" } }, "arguments": [], @@ -927,9 +899,7 @@ "start": 692, "end": 694 }, - "ctxt": 0, - "value": "m3", - "optional": false + "value": "m3" } }, "arguments": [], @@ -995,9 +965,7 @@ "start": 736, "end": 738 }, - "ctxt": 0, - "value": "m4", - "optional": false + "value": "m4" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json b/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json index b8828cbe14ee..780ba57677cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeOptionalCall.json @@ -292,9 +292,7 @@ "start": 255, "end": 259 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json b/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json index a53e743f3dba..9812d4a02d8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeSyntacticContext.json @@ -314,9 +314,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -369,9 +367,7 @@ "start": 112, "end": 116 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "right": { @@ -421,9 +417,7 @@ "start": 124, "end": 128 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -472,9 +466,7 @@ "start": 135, "end": 139 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [], @@ -522,9 +514,7 @@ "start": 145, "end": 149 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } } }, @@ -585,9 +575,7 @@ "start": 156, "end": 160 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } } } @@ -644,9 +632,7 @@ "start": 170, "end": 174 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } } } @@ -696,9 +682,7 @@ "start": 183, "end": 187 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json b/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json index f948b9a584db..e29578bb72b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json @@ -740,9 +740,7 @@ "start": 393, "end": 398 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": null, "typeAnnotation": { @@ -792,9 +790,7 @@ "start": 407, "end": 410 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" }, "function": { "params": [], @@ -837,9 +833,7 @@ "start": 434, "end": 439 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -870,9 +864,7 @@ "start": 452, "end": 463 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -981,9 +973,7 @@ "start": 512, "end": 514 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -1003,9 +993,7 @@ "start": 523, "end": 526 }, - "ctxt": 0, - "value": "biz", - "optional": false + "value": "biz" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/throwStatements.json b/crates/swc_ecma_parser/tests/tsc/throwStatements.json index 4c3c63242170..fd7641462a99 100644 --- a/crates/swc_ecma_parser/tests/tsc/throwStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/throwStatements.json @@ -101,9 +101,7 @@ "start": 107, "end": 109 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 138, "end": 144 }, - "ctxt": 0, - "value": "source", - "optional": false + "value": "source" }, "value": null, "typeAnnotation": { @@ -241,9 +237,7 @@ "start": 153, "end": 160 }, - "ctxt": 0, - "value": "recurse", - "optional": false + "value": "recurse" }, "value": null, "typeAnnotation": { @@ -319,9 +313,7 @@ "start": 172, "end": 179 }, - "ctxt": 0, - "value": "wrapped", - "optional": false + "value": "wrapped" }, "value": null, "typeAnnotation": { @@ -610,9 +602,7 @@ "start": 278, "end": 282 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": null, "typeAnnotation": { @@ -751,9 +741,7 @@ "start": 352, "end": 360 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1438,9 +1426,7 @@ "start": 785, "end": 787 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "NumericLiteral", @@ -1834,9 +1820,7 @@ "start": 1009, "end": 1010 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "arguments": [], @@ -1912,9 +1896,7 @@ "start": 1062, "end": 1064 }, - "ctxt": 0, - "value": "F2", - "optional": false + "value": "F2" } }, "definite": false @@ -2229,9 +2211,7 @@ "start": 1316, "end": 1317 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -2251,9 +2231,7 @@ "start": 1323, "end": 1324 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json b/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json index 6f4e5ace5a4d..b63c6b5f4fb6 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json @@ -176,9 +176,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json b/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json index ec00a93a4b8d..29d86c0e7dcf 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json @@ -237,9 +237,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -264,9 +262,7 @@ "start": 241, "end": 242 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json b/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json index 7708965c1dd4..f17d478708aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json @@ -149,9 +149,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json b/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json index e2ef9031ef85..39a30f59498c 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json @@ -253,9 +253,7 @@ "start": 269, "end": 270 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -335,9 +333,7 @@ "start": 335, "end": 336 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelThisAssignment.json b/crates/swc_ecma_parser/tests/tsc/topLevelThisAssignment.json index 5702d4bcc7c0..07650c7cf3ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelThisAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelThisAssignment.json @@ -37,9 +37,7 @@ "start": 84, "end": 85 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -78,9 +76,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -126,9 +122,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelVarHoistingSystem.json b/crates/swc_ecma_parser/tests/tsc/topLevelVarHoistingSystem.json index f5f430474eca..56bdd8c5e28f 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelVarHoistingSystem.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelVarHoistingSystem.json @@ -134,9 +134,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json b/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json index 9f22dd5f91f0..a63844e10897 100644 --- a/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json +++ b/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json @@ -651,9 +651,7 @@ "start": 826, "end": 827 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -674,9 +672,7 @@ "start": 846, "end": 847 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -742,9 +738,7 @@ "start": 906, "end": 907 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -765,9 +759,7 @@ "start": 926, "end": 927 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -833,9 +825,7 @@ "start": 961, "end": 962 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -856,9 +846,7 @@ "start": 981, "end": 982 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -924,9 +912,7 @@ "start": 1008, "end": 1009 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -947,9 +933,7 @@ "start": 1028, "end": 1029 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json index ce62f0843791..15356fc8f8cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json @@ -177,9 +177,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json index 5586b7580c8a..225c8c7ee6ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json +++ b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json @@ -177,9 +177,7 @@ "start": 319, "end": 320 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json index 1dea1449375a..ff2fa5a8c48e 100644 --- a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json +++ b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json @@ -177,9 +177,7 @@ "start": 324, "end": 325 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/twoAccessorsWithSameName2.json b/crates/swc_ecma_parser/tests/tsc/twoAccessorsWithSameName2.json index 41ec2e3ead59..49460fd91ee6 100644 --- a/crates/swc_ecma_parser/tests/tsc/twoAccessorsWithSameName2.json +++ b/crates/swc_ecma_parser/tests/tsc/twoAccessorsWithSameName2.json @@ -37,9 +37,7 @@ "start": 26, "end": 27 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 59, "end": 60 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -188,9 +184,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -253,9 +247,7 @@ "start": 139, "end": 140 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -345,9 +337,7 @@ "start": 186, "end": 187 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -407,9 +397,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule.json b/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule.json index 5bb85e91c95b..8525d7c09691 100644 --- a/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule.json +++ b/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule.json @@ -416,9 +416,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -474,9 +472,7 @@ "start": 305, "end": 308 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -715,9 +711,7 @@ "start": 400, "end": 403 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -773,9 +767,7 @@ "start": 429, "end": 432 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule2.json b/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule2.json index 93cfd5100c44..ab933aa044cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule2.json +++ b/crates/swc_ecma_parser/tests/tsc/twoInterfacesDifferentRootModule2.json @@ -413,9 +413,7 @@ "start": 298, "end": 301 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -471,9 +469,7 @@ "start": 331, "end": 334 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -712,9 +708,7 @@ "start": 445, "end": 448 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -770,9 +764,7 @@ "start": 478, "end": 481 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -887,9 +879,7 @@ "start": 519, "end": 522 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -945,9 +935,7 @@ "start": 540, "end": 543 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false @@ -1075,9 +1063,7 @@ "start": 592, "end": 595 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false @@ -1133,9 +1119,7 @@ "start": 613, "end": 616 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json b/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json index a729fcbcc126..0214cf909cd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/twoMergedInterfacesWithDifferingOverloads.json @@ -803,9 +803,7 @@ "start": 344, "end": 347 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1476,9 +1474,7 @@ "start": 573, "end": 576 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -2205,9 +2201,7 @@ "start": 799, "end": 802 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeAliases.json b/crates/swc_ecma_parser/tests/tsc/typeAliases.json index 4618f8516063..458ab39faba0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAliases.json @@ -895,9 +895,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -2952,9 +2950,7 @@ "start": 1217, "end": 1218 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2967,9 +2963,7 @@ "start": 1220, "end": 1231 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -3385,9 +3379,7 @@ "start": 1409, "end": 1420 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeAliasesForObjectTypes.json b/crates/swc_ecma_parser/tests/tsc/typeAliasesForObjectTypes.json index c211d54d212d..aefdc533aecc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAliasesForObjectTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAliasesForObjectTypes.json @@ -183,9 +183,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json b/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json index 3eca54fcdb85..557b58ad18d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json @@ -316,9 +316,7 @@ "start": 326, "end": 329 }, - "ctxt": 0, - "value": "TEA", - "optional": false + "value": "TEA" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json index 3c7206444165..6f668cbc03ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json @@ -1124,9 +1124,7 @@ "start": 741, "end": 747 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -1698,9 +1696,7 @@ "start": 962, "end": 968 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -5485,9 +5481,7 @@ "start": 3092, "end": 3093 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5519,9 +5513,7 @@ "start": 3102, "end": 3103 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -6040,9 +6032,7 @@ "start": 3396, "end": 3397 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6062,9 +6052,7 @@ "start": 3402, "end": 3403 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NewExpression", @@ -6107,9 +6095,7 @@ "start": 3421, "end": 3422 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6129,9 +6115,7 @@ "start": 3427, "end": 3428 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -6274,9 +6258,7 @@ "start": 3492, "end": 3493 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6296,9 +6278,7 @@ "start": 3498, "end": 3499 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NewExpression", @@ -6341,9 +6321,7 @@ "start": 3517, "end": 3518 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6363,9 +6341,7 @@ "start": 3523, "end": 3524 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -6531,9 +6507,7 @@ "start": 3679, "end": 3680 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6565,9 +6539,7 @@ "start": 3689, "end": 3690 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6599,9 +6571,7 @@ "start": 3699, "end": 3700 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json index 78a1b8fc834a..06a52b9b114f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json @@ -1412,9 +1412,7 @@ "start": 1011, "end": 1017 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -2039,9 +2037,7 @@ "start": 1291, "end": 1297 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -6530,9 +6526,7 @@ "start": 4011, "end": 4012 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6564,9 +6558,7 @@ "start": 4021, "end": 4022 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -7085,9 +7077,7 @@ "start": 4321, "end": 4322 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7107,9 +7097,7 @@ "start": 4327, "end": 4328 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -7142,9 +7130,7 @@ "start": 4342, "end": 4343 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7164,9 +7150,7 @@ "start": 4348, "end": 4349 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -7309,9 +7293,7 @@ "start": 4417, "end": 4418 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7331,9 +7313,7 @@ "start": 4423, "end": 4424 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -7366,9 +7346,7 @@ "start": 4438, "end": 4439 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7388,9 +7366,7 @@ "start": 4444, "end": 4445 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -7556,9 +7532,7 @@ "start": 4604, "end": 4605 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7590,9 +7564,7 @@ "start": 4614, "end": 4615 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7624,9 +7596,7 @@ "start": 4624, "end": 4625 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json index 51a05231d091..9d45dd8e794c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json @@ -65,9 +65,7 @@ "start": 36, "end": 40 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -261,9 +259,7 @@ "start": 96, "end": 100 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "StringLiteral", @@ -302,9 +298,7 @@ "start": 114, "end": 120 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json index b16988667236..541ec9fce3d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json @@ -65,9 +65,7 @@ "start": 29, "end": 33 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -261,9 +259,7 @@ "start": 148, "end": 152 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "StringLiteral", @@ -302,9 +298,7 @@ "start": 166, "end": 172 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json index 48dc89f0b8ae..6e87a425c635 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json @@ -65,9 +65,7 @@ "start": 29, "end": 33 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -261,9 +259,7 @@ "start": 82, "end": 86 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "StringLiteral", @@ -302,9 +298,7 @@ "start": 100, "end": 106 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json index 73c1374259f0..07af380fb9b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json @@ -1314,9 +1314,7 @@ "start": 911, "end": 917 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -1902,9 +1900,7 @@ "start": 1162, "end": 1168 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -6194,9 +6190,7 @@ "start": 3745, "end": 3746 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -6228,9 +6222,7 @@ "start": 3755, "end": 3756 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -6749,9 +6741,7 @@ "start": 4051, "end": 4052 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6771,9 +6761,7 @@ "start": 4057, "end": 4058 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -6806,9 +6794,7 @@ "start": 4072, "end": 4073 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6828,9 +6814,7 @@ "start": 4078, "end": 4079 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -6973,9 +6957,7 @@ "start": 4143, "end": 4144 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -6995,9 +6977,7 @@ "start": 4149, "end": 4150 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "Identifier", @@ -7030,9 +7010,7 @@ "start": 4164, "end": 4165 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7052,9 +7030,7 @@ "start": 4170, "end": 4171 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -7220,9 +7196,7 @@ "start": 4326, "end": 4327 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7254,9 +7228,7 @@ "start": 4336, "end": 4337 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -7288,9 +7260,7 @@ "start": 4346, "end": 4347 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json index 3a1a2fb3fccc..bdf947209786 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithObjectLiteral.json @@ -389,9 +389,7 @@ "start": 217, "end": 221 }, - "ctxt": 0, - "value": "read", - "optional": false + "value": "read" }, "value": { "type": "ArrowFunctionExpression", @@ -425,9 +423,7 @@ "start": 236, "end": 241 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" }, "value": { "type": "ArrowFunctionExpression", @@ -532,9 +528,7 @@ "start": 276, "end": 281 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" }, "value": { "type": "ArrowFunctionExpression", @@ -599,9 +593,7 @@ "start": 307, "end": 311 }, - "ctxt": 0, - "value": "read", - "optional": false + "value": "read" }, "value": { "type": "ArrowFunctionExpression", @@ -1158,9 +1150,7 @@ "start": 525, "end": 526 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": { "type": "ArrowFunctionExpression", @@ -1206,9 +1196,7 @@ "start": 536, "end": 537 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "ArrowFunctionExpression", @@ -1317,9 +1305,7 @@ "start": 568, "end": 569 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": { "type": "ArrowFunctionExpression", @@ -1365,9 +1351,7 @@ "start": 579, "end": 580 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "ArrowFunctionExpression", @@ -1419,9 +1403,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } } } @@ -1494,9 +1476,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": { "type": "ArrowFunctionExpression", @@ -1542,9 +1522,7 @@ "start": 625, "end": 626 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "ArrowFunctionExpression", @@ -1576,9 +1554,7 @@ "start": 637, "end": 638 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "async": false, @@ -1727,9 +1703,7 @@ "start": 673, "end": 674 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": { "type": "ArrowFunctionExpression", @@ -1775,9 +1749,7 @@ "start": 684, "end": 685 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "ArrowFunctionExpression", @@ -1809,9 +1781,7 @@ "start": 696, "end": 697 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "async": false, @@ -1847,9 +1817,7 @@ "start": 704, "end": 705 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } } } @@ -1922,9 +1890,7 @@ "start": 723, "end": 724 }, - "ctxt": 0, - "value": "w", - "optional": false + "value": "w" }, "value": { "type": "ArrowFunctionExpression", @@ -1970,9 +1936,7 @@ "start": 734, "end": 735 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "ArrowFunctionExpression", @@ -2004,9 +1968,7 @@ "start": 746, "end": 747 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } }, "async": false, @@ -2042,9 +2004,7 @@ "start": 754, "end": 755 }, - "ctxt": 0, - "value": "X", - "optional": false + "value": "X" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithIntersectionTypes01.json b/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithIntersectionTypes01.json index d8f72d237b64..cb4806ec79c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithIntersectionTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithIntersectionTypes01.json @@ -258,9 +258,7 @@ "start": 123, "end": 125 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -280,9 +278,7 @@ "start": 131, "end": 133 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "NumericLiteral", @@ -302,9 +298,7 @@ "start": 139, "end": 141 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithUnionTypes01.json b/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithUnionTypes01.json index 8a57f787d347..6e8039ea778d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithUnionTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAssertionsWithUnionTypes01.json @@ -194,9 +194,7 @@ "start": 89, "end": 91 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": { "type": "NumericLiteral", @@ -216,9 +214,7 @@ "start": 97, "end": 99 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromContextualThisType.json b/crates/swc_ecma_parser/tests/tsc/typeFromContextualThisType.json index 3fdbfdbc5a8a..a95292a52610 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromContextualThisType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromContextualThisType.json @@ -47,9 +47,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "params": [], "decorators": [], @@ -98,9 +96,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -195,9 +191,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "params": [], "decorators": [], @@ -246,9 +240,7 @@ "start": 332, "end": 333 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -277,9 +269,7 @@ "start": 341, "end": 342 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -328,9 +318,7 @@ "start": 355, "end": 356 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json b/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json index 65f589823f18..422ea3286d13 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json @@ -65,9 +65,7 @@ "start": 176, "end": 179 }, - "ctxt": 0, - "value": "arg", - "optional": false + "value": "arg" } }, "right": { @@ -113,9 +111,7 @@ "start": 233, "end": 240 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -159,9 +155,7 @@ "start": 290, "end": 295 }, - "ctxt": 0, - "value": "twice", - "optional": false + "value": "twice" } }, "right": { @@ -208,9 +202,7 @@ "start": 317, "end": 322 }, - "ctxt": 0, - "value": "twice", - "optional": false + "value": "twice" } }, "right": { @@ -256,9 +248,7 @@ "start": 367, "end": 373 }, - "ctxt": 0, - "value": "twices", - "optional": false + "value": "twices" } }, "right": { @@ -303,9 +293,7 @@ "start": 388, "end": 394 }, - "ctxt": 0, - "value": "twices", - "optional": false + "value": "twices" } }, "right": { @@ -365,9 +353,7 @@ "start": 414, "end": 423 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -376,9 +362,7 @@ "start": 424, "end": 429 }, - "ctxt": 0, - "value": "first", - "optional": false + "value": "first" } }, "right": { @@ -431,9 +415,7 @@ "start": 455, "end": 458 }, - "ctxt": 0, - "value": "arg", - "optional": false + "value": "arg" } }, "right": { @@ -479,9 +461,7 @@ "start": 484, "end": 491 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -527,9 +507,7 @@ "start": 514, "end": 525 }, - "ctxt": 0, - "value": "newProperty", - "optional": false + "value": "newProperty" } }, "right": { @@ -575,9 +553,7 @@ "start": 563, "end": 568 }, - "ctxt": 0, - "value": "twice", - "optional": false + "value": "twice" } }, "right": { @@ -624,9 +600,7 @@ "start": 596, "end": 601 }, - "ctxt": 0, - "value": "twice", - "optional": false + "value": "twice" } }, "right": { @@ -690,9 +664,7 @@ "start": 627, "end": 636 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -701,9 +673,7 @@ "start": 637, "end": 643 }, - "ctxt": 0, - "value": "second", - "optional": false + "value": "second" } }, "right": { @@ -756,9 +726,7 @@ "start": 669, "end": 672 }, - "ctxt": 0, - "value": "arg", - "optional": false + "value": "arg" } }, "right": { @@ -803,9 +771,7 @@ "start": 699, "end": 706 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -850,9 +816,7 @@ "start": 730, "end": 741 }, - "ctxt": 0, - "value": "newProperty", - "optional": false + "value": "newProperty" } }, "right": { @@ -897,9 +861,7 @@ "start": 765, "end": 770 }, - "ctxt": 0, - "value": "twice", - "optional": false + "value": "twice" } }, "right": { @@ -943,9 +905,7 @@ "start": 796, "end": 801 }, - "ctxt": 0, - "value": "twice", - "optional": false + "value": "twice" } }, "right": { @@ -996,9 +956,7 @@ "start": 828, "end": 834 }, - "ctxt": 0, - "value": "twices", - "optional": false + "value": "twices" } }, "property": { @@ -1007,9 +965,7 @@ "start": 835, "end": 839 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -1061,9 +1017,7 @@ "start": 890, "end": 896 }, - "ctxt": 0, - "value": "twices", - "optional": false + "value": "twices" } }, "right": { @@ -1120,9 +1074,7 @@ "start": 921, "end": 927 }, - "ctxt": 0, - "value": "twices", - "optional": false + "value": "twices" } }, "property": { @@ -1131,9 +1083,7 @@ "start": 928, "end": 932 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json index 9436ac4bc81f..e36b142ec12b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json @@ -65,9 +65,7 @@ "start": 206, "end": 213 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -111,9 +109,7 @@ "start": 230, "end": 240 }, - "ctxt": 0, - "value": "unknowable", - "optional": false + "value": "unknowable" } }, "right": { @@ -160,9 +156,7 @@ "start": 262, "end": 267 }, - "ctxt": 0, - "value": "empty", - "optional": false + "value": "empty" } }, "right": { @@ -268,9 +262,7 @@ "start": 293, "end": 300 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -319,9 +311,7 @@ "start": 307, "end": 314 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -369,9 +359,7 @@ "start": 324, "end": 331 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -419,9 +407,7 @@ "start": 339, "end": 346 }, - "ctxt": 0, - "value": "unknown", - "optional": false + "value": "unknown" } }, "right": { @@ -470,9 +456,7 @@ "start": 356, "end": 366 }, - "ctxt": 0, - "value": "unknowable", - "optional": false + "value": "unknowable" } }, "right": { @@ -521,9 +505,7 @@ "start": 373, "end": 383 }, - "ctxt": 0, - "value": "unknowable", - "optional": false + "value": "unknowable" } }, "right": { @@ -571,9 +553,7 @@ "start": 393, "end": 403 }, - "ctxt": 0, - "value": "unknowable", - "optional": false + "value": "unknowable" } }, "right": { @@ -621,9 +601,7 @@ "start": 411, "end": 421 }, - "ctxt": 0, - "value": "unknowable", - "optional": false + "value": "unknowable" } }, "right": { @@ -678,9 +656,7 @@ "start": 431, "end": 436 }, - "ctxt": 0, - "value": "empty", - "optional": false + "value": "empty" } }, "property": { @@ -689,9 +665,7 @@ "start": 437, "end": 441 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -752,9 +726,7 @@ "start": 447, "end": 452 }, - "ctxt": 0, - "value": "empty", - "optional": false + "value": "empty" } }, "property": { @@ -763,9 +735,7 @@ "start": 453, "end": 457 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -825,9 +795,7 @@ "start": 466, "end": 471 }, - "ctxt": 0, - "value": "empty", - "optional": false + "value": "empty" } }, "property": { @@ -836,9 +804,7 @@ "start": 472, "end": 476 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -898,9 +864,7 @@ "start": 483, "end": 488 }, - "ctxt": 0, - "value": "empty", - "optional": false + "value": "empty" } }, "property": { @@ -909,9 +873,7 @@ "start": 489, "end": 493 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -1443,9 +1405,7 @@ "start": 866, "end": 870 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -1500,9 +1460,7 @@ "start": 880, "end": 884 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -1818,9 +1776,7 @@ "start": 1016, "end": 1020 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -2045,9 +2001,7 @@ "start": 1176, "end": 1182 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json index deade99bb5e0..a45f4d9a16ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json @@ -517,9 +517,7 @@ "start": 475, "end": 479 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -574,9 +572,7 @@ "start": 489, "end": 493 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json b/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json index 8a24a17375ee..42c681644eda 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json @@ -194,9 +194,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -249,9 +247,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -433,9 +429,7 @@ "start": 343, "end": 344 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -481,9 +475,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "right": { @@ -509,9 +501,7 @@ "start": 396, "end": 407 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -554,9 +544,7 @@ "start": 425, "end": 426 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -743,9 +731,7 @@ "start": 534, "end": 535 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -822,9 +808,7 @@ "start": 594, "end": 595 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1005,9 +989,7 @@ "start": 696, "end": 697 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1101,9 +1083,7 @@ "start": 762, "end": 763 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1288,9 +1268,7 @@ "start": 865, "end": 866 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1340,9 +1318,7 @@ "start": 915, "end": 926 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1385,9 +1361,7 @@ "start": 944, "end": 945 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1573,9 +1547,7 @@ "start": 1052, "end": 1053 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1663,9 +1635,7 @@ "start": 1108, "end": 1109 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1766,9 +1736,7 @@ "start": 1157, "end": 1158 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1839,9 +1807,7 @@ "start": 1206, "end": 1207 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1938,9 +1904,7 @@ "start": 1254, "end": 1255 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -1984,9 +1948,7 @@ "start": 1293, "end": 1304 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2029,9 +1991,7 @@ "start": 1322, "end": 1323 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -2133,9 +2093,7 @@ "start": 1376, "end": 1377 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignment.json index 924d439b2818..315da0a05591 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignment.json @@ -198,9 +198,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignmentJs.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignmentJs.json index 9ca1d881160f..1ee32c187d2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignmentJs.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrivatePropertyAssignmentJs.json @@ -87,9 +87,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment.json index 5bdf615e425c..47a0a176791a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment.json @@ -63,9 +63,7 @@ "start": 99, "end": 100 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -181,9 +179,7 @@ "start": 119, "end": 124 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -217,9 +213,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "function": { "params": [ @@ -358,9 +352,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } }, @@ -424,9 +416,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10.json index 83bce9be70a5..7e8895ebe1f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10.json @@ -97,9 +97,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -131,9 +129,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -188,9 +184,7 @@ "start": 181, "end": 184 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -199,9 +193,7 @@ "start": 185, "end": 193 }, - "ctxt": 0, - "value": "SomeView", - "optional": false + "value": "SomeView" } }, "right": { @@ -400,9 +392,7 @@ "start": 305, "end": 308 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -411,9 +401,7 @@ "start": 309, "end": 314 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -439,9 +427,7 @@ "start": 329, "end": 340 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -484,9 +470,7 @@ "start": 388, "end": 389 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -576,9 +560,7 @@ "start": 428, "end": 431 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -587,9 +569,7 @@ "start": 432, "end": 437 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -627,9 +607,7 @@ "start": 449, "end": 450 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -674,9 +652,7 @@ "start": 483, "end": 486 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -685,9 +661,7 @@ "start": 487, "end": 496 }, - "ctxt": 0, - "value": "statische", - "optional": false + "value": "statische" } }, "right": { @@ -813,9 +787,7 @@ "start": 570, "end": 573 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -824,9 +796,7 @@ "start": 574, "end": 585 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "right": { @@ -978,9 +948,7 @@ "start": 776, "end": 780 }, - "ctxt": 0, - "value": "view", - "optional": false + "value": "view" } }, "right": { @@ -1018,9 +986,7 @@ "start": 793, "end": 796 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1029,9 +995,7 @@ "start": 797, "end": 805 }, - "ctxt": 0, - "value": "SomeView", - "optional": false + "value": "SomeView" } }, "arguments": [], @@ -1142,9 +1106,7 @@ "start": 888, "end": 891 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1153,9 +1115,7 @@ "start": 892, "end": 903 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "arguments": [], @@ -1227,9 +1187,7 @@ "start": 929, "end": 932 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1238,9 +1196,7 @@ "start": 933, "end": 938 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -1278,9 +1234,7 @@ "start": 948, "end": 949 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1344,9 +1298,7 @@ "start": 991, "end": 992 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1391,9 +1343,7 @@ "start": 1000, "end": 1003 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1402,9 +1352,7 @@ "start": 1004, "end": 1013 }, - "ctxt": 0, - "value": "statische", - "optional": false + "value": "statische" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10_1.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10_1.json index ba5fce3c89c3..7bedfc828ecb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10_1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment10_1.json @@ -97,9 +97,7 @@ "start": 128, "end": 131 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -131,9 +129,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -188,9 +184,7 @@ "start": 184, "end": 187 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -199,9 +193,7 @@ "start": 188, "end": 196 }, - "ctxt": 0, - "value": "SomeView", - "optional": false + "value": "SomeView" } }, "right": { @@ -400,9 +392,7 @@ "start": 308, "end": 311 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -411,9 +401,7 @@ "start": 312, "end": 317 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -439,9 +427,7 @@ "start": 332, "end": 343 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -484,9 +470,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -576,9 +560,7 @@ "start": 431, "end": 434 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -587,9 +569,7 @@ "start": 435, "end": 440 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -627,9 +607,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -674,9 +652,7 @@ "start": 486, "end": 489 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -685,9 +661,7 @@ "start": 490, "end": 499 }, - "ctxt": 0, - "value": "statische", - "optional": false + "value": "statische" } }, "right": { @@ -813,9 +787,7 @@ "start": 573, "end": 576 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -824,9 +796,7 @@ "start": 577, "end": 588 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "right": { @@ -978,9 +948,7 @@ "start": 779, "end": 783 }, - "ctxt": 0, - "value": "view", - "optional": false + "value": "view" } }, "right": { @@ -1018,9 +986,7 @@ "start": 796, "end": 799 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1029,9 +995,7 @@ "start": 800, "end": 808 }, - "ctxt": 0, - "value": "SomeView", - "optional": false + "value": "SomeView" } }, "arguments": [], @@ -1142,9 +1106,7 @@ "start": 891, "end": 894 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1153,9 +1115,7 @@ "start": 895, "end": 906 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "arguments": [], @@ -1227,9 +1187,7 @@ "start": 932, "end": 935 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1238,9 +1196,7 @@ "start": 936, "end": 941 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -1278,9 +1234,7 @@ "start": 951, "end": 952 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1344,9 +1298,7 @@ "start": 994, "end": 995 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1391,9 +1343,7 @@ "start": 1003, "end": 1006 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -1402,9 +1352,7 @@ "start": 1007, "end": 1016 }, - "ctxt": 0, - "value": "statische", - "optional": false + "value": "statische" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment11.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment11.json index 26abac32c9f9..7cb2ea24932d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment11.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment11.json @@ -95,9 +95,7 @@ "start": 126, "end": 135 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -115,9 +113,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -148,9 +144,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "NumericLiteral", @@ -207,9 +201,7 @@ "start": 208, "end": 217 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -218,9 +210,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { @@ -268,9 +258,7 @@ "start": 252, "end": 261 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -279,9 +267,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } } }, @@ -371,9 +357,7 @@ "start": 295, "end": 296 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -408,9 +392,7 @@ "start": 305, "end": 306 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } }, @@ -442,9 +424,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } } }, @@ -476,9 +456,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json index 61e8a00bf354..20db46445f2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json @@ -134,9 +134,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "Pos", - "optional": false + "value": "Pos" } }, "right": { @@ -244,9 +242,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "Pos", - "optional": false + "value": "Pos" } }, "property": { @@ -255,9 +251,7 @@ "start": 247, "end": 256 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -266,9 +260,7 @@ "start": 257, "end": 261 }, - "ctxt": 0, - "value": "line", - "optional": false + "value": "line" } } }, @@ -328,9 +320,7 @@ "start": 283, "end": 286 }, - "ctxt": 0, - "value": "Pos", - "optional": false + "value": "Pos" } }, "arguments": [ @@ -393,9 +383,7 @@ "start": 300, "end": 304 }, - "ctxt": 0, - "value": "line", - "optional": false + "value": "line" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment13.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment13.json index e0b3046f4cea..177e585eab4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment13.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment13.json @@ -79,9 +79,7 @@ "start": 115, "end": 120 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -151,9 +149,7 @@ "start": 143, "end": 148 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "property": { @@ -162,9 +158,7 @@ "start": 149, "end": 158 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -182,9 +176,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -215,9 +207,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "NumericLiteral", @@ -280,9 +270,7 @@ "start": 231, "end": 236 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "property": { @@ -291,9 +279,7 @@ "start": 237, "end": 246 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -302,9 +288,7 @@ "start": 247, "end": 248 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } }, "right": { @@ -358,9 +342,7 @@ "start": 281, "end": 286 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "property": { @@ -369,9 +351,7 @@ "start": 287, "end": 296 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -380,9 +360,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } } }, @@ -442,9 +420,7 @@ "start": 322, "end": 327 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -489,9 +465,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -526,9 +500,7 @@ "start": 346, "end": 347 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } }, @@ -560,9 +532,7 @@ "start": 354, "end": 355 }, - "ctxt": 0, - "value": "j", - "optional": false + "value": "j" } } }, @@ -594,9 +564,7 @@ "start": 362, "end": 363 }, - "ctxt": 0, - "value": "k", - "optional": false + "value": "k" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment14.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment14.json index 9052837a6cd6..893bfcf81a7a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment14.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment14.json @@ -79,9 +79,7 @@ "start": 120, "end": 125 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -151,9 +149,7 @@ "start": 149, "end": 154 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "property": { @@ -162,9 +158,7 @@ "start": 155, "end": 164 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -182,9 +176,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -204,9 +196,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -293,9 +283,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -334,9 +322,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -399,9 +385,7 @@ "start": 291, "end": 296 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -439,9 +423,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -480,9 +462,7 @@ "start": 311, "end": 312 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment15.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment15.json index 89a0dceeb2f0..f428d69d0795 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment15.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment15.json @@ -79,9 +79,7 @@ "start": 96, "end": 101 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -107,9 +105,7 @@ "start": 116, "end": 127 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -152,9 +148,7 @@ "start": 145, "end": 146 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -185,9 +179,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -287,9 +279,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -328,9 +318,7 @@ "start": 223, "end": 224 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -393,9 +381,7 @@ "start": 248, "end": 253 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -433,9 +419,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -474,9 +458,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment16.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment16.json index 1536f3e8faef..3192df2be306 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment16.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment16.json @@ -79,9 +79,7 @@ "start": 96, "end": 101 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -151,9 +149,7 @@ "start": 125, "end": 130 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "property": { @@ -162,9 +158,7 @@ "start": 131, "end": 140 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -182,9 +176,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -204,9 +196,7 @@ "start": 159, "end": 160 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [], "decorators": [], @@ -293,9 +283,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -334,9 +322,7 @@ "start": 221, "end": 222 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -399,9 +385,7 @@ "start": 246, "end": 251 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -439,9 +423,7 @@ "start": 259, "end": 260 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -480,9 +462,7 @@ "start": 266, "end": 267 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json index 182b4e443e8e..428f466894d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json @@ -132,9 +132,7 @@ "start": 201, "end": 208 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -184,9 +182,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" } }, "right": { @@ -236,9 +232,7 @@ "start": 247, "end": 253 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "right": { @@ -384,9 +378,7 @@ "start": 335, "end": 343 }, - "ctxt": 0, - "value": "defaults", - "optional": false + "value": "defaults" } }, "right": { @@ -494,9 +486,7 @@ "start": 382, "end": 391 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -505,9 +495,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -675,9 +663,7 @@ "start": 527, "end": 528 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" } }, "property": { @@ -686,9 +672,7 @@ "start": 529, "end": 537 }, - "ctxt": 0, - "value": "defaults", - "optional": false + "value": "defaults" } }, "arguments": [], @@ -751,9 +735,7 @@ "start": 557, "end": 558 }, - "ctxt": 0, - "value": "M", - "optional": false + "value": "M" } }, "arguments": [], @@ -798,9 +780,7 @@ "start": 563, "end": 564 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -842,9 +822,7 @@ "start": 572, "end": 578 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment18.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment18.json index b603812d1902..f7aa9cccf44e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment18.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment18.json @@ -61,9 +61,7 @@ "start": 90, "end": 98 }, - "ctxt": 0, - "value": "GLOBSTAR", - "optional": false + "value": "GLOBSTAR" } }, "right": { @@ -148,9 +146,7 @@ "start": 130, "end": 131 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -205,9 +201,7 @@ "start": 138, "end": 146 }, - "ctxt": 0, - "value": "GLOBSTAR", - "optional": false + "value": "GLOBSTAR" } }, "property": { @@ -216,9 +210,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -260,9 +252,7 @@ "start": 163, "end": 164 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -294,9 +284,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } }, @@ -334,9 +322,7 @@ "start": 178, "end": 186 }, - "ctxt": 0, - "value": "GLOBSTAR", - "optional": false + "value": "GLOBSTAR" } }, "property": { @@ -345,9 +331,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -385,9 +369,7 @@ "start": 191, "end": 199 }, - "ctxt": 0, - "value": "GLOBSTAR", - "optional": false + "value": "GLOBSTAR" } }, "property": { @@ -396,9 +378,7 @@ "start": 200, "end": 201 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json index c0ccae98a200..3aed6758614a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json @@ -150,9 +150,7 @@ "start": 208, "end": 215 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -203,9 +201,7 @@ "start": 222, "end": 223 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -322,9 +318,7 @@ "start": 261, "end": 262 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -465,9 +459,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment2.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment2.json index 0549cfbd4666..7c6c937200ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment2.json @@ -65,9 +65,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -123,9 +121,7 @@ "start": 115, "end": 120 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -160,9 +156,7 @@ "start": 137, "end": 148 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -205,9 +199,7 @@ "start": 166, "end": 167 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -295,9 +287,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -361,9 +351,7 @@ "start": 250, "end": 251 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment20.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment20.json index 17009f0484c0..b803be18e189 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment20.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment20.json @@ -186,9 +186,7 @@ "start": 183, "end": 201 }, - "ctxt": 0, - "value": "_trampolineEnabled", - "optional": false + "value": "_trampolineEnabled" } }, "right": { @@ -249,9 +247,7 @@ "start": 235, "end": 244 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -260,9 +256,7 @@ "start": 245, "end": 273 }, - "ctxt": 0, - "value": "disableTrampolineIfNecessary", - "optional": false + "value": "disableTrampolineIfNecessary" } }, "right": { @@ -368,9 +362,7 @@ "start": 337, "end": 355 }, - "ctxt": 0, - "value": "_trampolineEnabled", - "optional": false + "value": "_trampolineEnabled" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json index 8f1e36e6033d..fb8c96629e56 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json @@ -46,9 +46,7 @@ "start": 181, "end": 190 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -57,9 +55,7 @@ "start": 191, "end": 205 }, - "ctxt": 0, - "value": "removeChildren", - "optional": false + "value": "removeChildren" } }, "right": { @@ -112,9 +108,7 @@ "start": 231, "end": 242 }, - "ctxt": 0, - "value": "textContent", - "optional": false + "value": "textContent" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json index cbb420ab042b..aecd16a97db6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json @@ -65,9 +65,7 @@ "start": 143, "end": 147 }, - "ctxt": 0, - "value": "args", - "optional": false + "value": "args" } }, "right": { @@ -129,9 +127,7 @@ "start": 164, "end": 173 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -140,9 +136,7 @@ "start": 174, "end": 189 }, - "ctxt": 0, - "value": "loadArgMetadata", - "optional": false + "value": "loadArgMetadata" } }, "right": { @@ -249,9 +243,7 @@ "start": 294, "end": 298 }, - "ctxt": 0, - "value": "args", - "optional": false + "value": "args" } }, "right": { @@ -297,9 +289,7 @@ "start": 319, "end": 330 }, - "ctxt": 0, - "value": "newProperty", - "optional": false + "value": "newProperty" } }, "right": { @@ -416,9 +406,7 @@ "start": 369, "end": 380 }, - "ctxt": 0, - "value": "newProperty", - "optional": false + "value": "newProperty" } }, "right": { @@ -443,9 +431,7 @@ "start": 385, "end": 389 }, - "ctxt": 0, - "value": "args", - "optional": false + "value": "args" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json index 81697e79e33f..b26667b69567 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json @@ -38,9 +38,7 @@ "start": 87, "end": 98 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -116,9 +112,7 @@ "start": 133, "end": 136 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -232,9 +226,7 @@ "start": 235, "end": 244 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -243,9 +235,7 @@ "start": 245, "end": 248 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -350,9 +340,7 @@ "start": 291, "end": 300 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -361,9 +349,7 @@ "start": 301, "end": 304 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -414,9 +400,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -506,9 +490,7 @@ "start": 473, "end": 482 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -517,9 +499,7 @@ "start": 483, "end": 493 }, - "ctxt": 0, - "value": "identifier", - "optional": false + "value": "identifier" } }, "right": { @@ -575,9 +555,7 @@ "start": 513, "end": 522 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -586,9 +564,7 @@ "start": 523, "end": 527 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -632,9 +608,7 @@ "start": 576, "end": 586 }, - "ctxt": 0, - "value": "identifier", - "optional": false + "value": "identifier" }, "function": { "params": [], @@ -694,9 +668,7 @@ "start": 625, "end": 629 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json index fd0bd3587236..87103904e669 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json @@ -46,9 +46,7 @@ "start": 130, "end": 135 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "property": { @@ -57,9 +55,7 @@ "start": 136, "end": 143 }, - "ctxt": 0, - "value": "Message", - "optional": false + "value": "Message" } }, "right": { @@ -144,9 +140,7 @@ "start": 181, "end": 186 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -184,9 +178,7 @@ "start": 191, "end": 195 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -250,9 +242,7 @@ "start": 273, "end": 277 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -330,9 +320,7 @@ "start": 321, "end": 326 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -357,9 +345,7 @@ "start": 339, "end": 343 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment25.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment25.json index 4c7444395185..845322cec6f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment25.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment25.json @@ -79,9 +79,7 @@ "start": 104, "end": 105 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "right": { @@ -107,9 +105,7 @@ "start": 120, "end": 131 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -152,9 +148,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "right": { @@ -217,9 +211,7 @@ "start": 170, "end": 171 }, - "ctxt": 0, - "value": "O", - "optional": false + "value": "O" } }, "right": { @@ -245,9 +237,7 @@ "start": 203, "end": 214 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -314,9 +304,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } }, "right": { @@ -358,9 +346,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "isAbstract": false, @@ -426,9 +412,7 @@ "start": 281, "end": 282 }, - "ctxt": 0, - "value": "O", - "optional": false + "value": "O" } }, "arguments": [], @@ -494,9 +478,7 @@ "start": 304, "end": 305 }, - "ctxt": 0, - "value": "I", - "optional": false + "value": "I" } }, "arguments": [], @@ -534,9 +516,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } }, @@ -568,9 +548,7 @@ "start": 314, "end": 315 }, - "ctxt": 0, - "value": "o", - "optional": false + "value": "o" } } }, @@ -602,9 +580,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment26.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment26.json index b90556dbaf2e..0b3259dd40e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment26.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment26.json @@ -79,9 +79,7 @@ "start": 119, "end": 130 }, - "ctxt": 0, - "value": "TreeElement", - "optional": false + "value": "TreeElement" } }, "right": { @@ -107,9 +105,7 @@ "start": 145, "end": 156 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -152,9 +148,7 @@ "start": 174, "end": 185 }, - "ctxt": 0, - "value": "treeOutline", - "optional": false + "value": "treeOutline" } }, "right": { @@ -217,9 +211,7 @@ "start": 203, "end": 210 }, - "ctxt": 0, - "value": "context", - "optional": false + "value": "context" } }, "right": { @@ -251,9 +243,7 @@ "start": 220, "end": 231 }, - "ctxt": 0, - "value": "TreeElement", - "optional": false + "value": "TreeElement" } }, "arguments": [], @@ -293,9 +283,7 @@ "start": 272, "end": 282 }, - "ctxt": 0, - "value": "onpopulate", - "optional": false + "value": "onpopulate" }, "function": { "params": [], @@ -338,9 +326,7 @@ "start": 300, "end": 312 }, - "ctxt": 0, - "value": "doesNotExist", - "optional": false + "value": "doesNotExist" } } }, @@ -382,9 +368,7 @@ "start": 326, "end": 337 }, - "ctxt": 0, - "value": "treeOutline", - "optional": false + "value": "treeOutline" } }, "property": { @@ -393,9 +377,7 @@ "start": 338, "end": 355 }, - "ctxt": 0, - "value": "doesntExistEither", - "optional": false + "value": "doesntExistEither" } }, "arguments": [], @@ -439,9 +421,7 @@ "start": 254, "end": 265 }, - "ctxt": 0, - "value": "TreeElement", - "optional": false + "value": "TreeElement" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment27.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment27.json index 8c9b78f5ff6e..9c0028c975e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment27.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment27.json @@ -65,9 +65,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -123,9 +121,7 @@ "start": 155, "end": 164 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -143,9 +139,7 @@ "start": 169, "end": 170 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "NumericLiteral", @@ -240,9 +234,7 @@ "start": 198, "end": 199 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -274,9 +266,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment28.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment28.json index f9904af49353..9daef6377b15 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment28.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment28.json @@ -38,9 +38,7 @@ "start": 131, "end": 142 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -83,9 +81,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -146,9 +142,7 @@ "start": 405, "end": 414 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -166,9 +160,7 @@ "start": 419, "end": 420 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "NumericLiteral", @@ -263,9 +255,7 @@ "start": 448, "end": 449 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } }, @@ -297,9 +287,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json index 81a343c0e377..0fb2dac06434 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json @@ -102,9 +102,7 @@ "start": 70, "end": 78 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -153,9 +151,7 @@ "start": 96, "end": 100 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -204,9 +200,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -367,9 +361,7 @@ "start": 183, "end": 187 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -401,9 +393,7 @@ "start": 202, "end": 203 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ @@ -468,9 +458,7 @@ "start": 227, "end": 233 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -592,9 +580,7 @@ "start": 291, "end": 299 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -647,9 +633,7 @@ "start": 317, "end": 321 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -667,9 +651,7 @@ "start": 326, "end": 327 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -720,9 +702,7 @@ "start": 345, "end": 349 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -740,9 +720,7 @@ "start": 354, "end": 355 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -793,9 +771,7 @@ "start": 374, "end": 375 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -975,9 +951,7 @@ "start": 441, "end": 445 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -986,9 +960,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -1031,9 +1003,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ @@ -1098,9 +1068,7 @@ "start": 493, "end": 499 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -1198,9 +1166,7 @@ "start": 539, "end": 547 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1250,9 +1216,7 @@ "start": 564, "end": 568 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -1301,9 +1265,7 @@ "start": 586, "end": 587 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -1623,9 +1585,7 @@ "start": 752, "end": 757 }, - "ctxt": 0, - "value": "total", - "optional": false + "value": "total" } }, "right": { @@ -1716,9 +1676,7 @@ "start": 810, "end": 814 }, - "ctxt": 0, - "value": "also", - "optional": false + "value": "also" } }, "right": { @@ -1878,9 +1836,7 @@ "start": 892, "end": 894 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -2114,9 +2070,7 @@ "start": 1026, "end": 1028 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -2141,9 +2095,7 @@ "start": 1044, "end": 1046 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } }, @@ -2169,9 +2121,7 @@ "start": 1062, "end": 1064 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } }, @@ -2321,9 +2271,7 @@ "start": 1162, "end": 1164 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } }, "right": { @@ -2513,9 +2461,7 @@ "start": 1346, "end": 1354 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2568,9 +2514,7 @@ "start": 1373, "end": 1377 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -2619,9 +2563,7 @@ "start": 1395, "end": 1396 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -2782,9 +2724,7 @@ "start": 1462, "end": 1466 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -2816,9 +2756,7 @@ "start": 1482, "end": 1483 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ @@ -2883,9 +2821,7 @@ "start": 1508, "end": 1514 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -2925,9 +2861,7 @@ "start": 1606, "end": 1607 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -2991,9 +2925,7 @@ "start": 1631, "end": 1635 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -3042,9 +2974,7 @@ "start": 1653, "end": 1654 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -3205,9 +3135,7 @@ "start": 1720, "end": 1724 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -3239,9 +3167,7 @@ "start": 1740, "end": 1741 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ @@ -3293,9 +3219,7 @@ "start": 1767, "end": 1768 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -3352,9 +3276,7 @@ "start": 1858, "end": 1859 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "NumericLiteral", @@ -3422,9 +3344,7 @@ "start": 1884, "end": 1888 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -3473,9 +3393,7 @@ "start": 1906, "end": 1907 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -3636,9 +3554,7 @@ "start": 1973, "end": 1977 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -3670,9 +3586,7 @@ "start": 1993, "end": 1994 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ @@ -3724,9 +3638,7 @@ "start": 2020, "end": 2021 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment3.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment3.json index 53092c14ccdb..f3aa90343de3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment3.json @@ -91,9 +91,7 @@ "start": 109, "end": 110 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -153,9 +151,7 @@ "start": 123, "end": 128 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -190,9 +186,7 @@ "start": 145, "end": 156 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -235,9 +229,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "right": { @@ -325,9 +317,7 @@ "start": 219, "end": 220 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -391,9 +381,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment30.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment30.json index bced0c1cedac..1dfe5c198362 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment30.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment30.json @@ -257,9 +257,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json index 96d102f940d7..e8f5228d2966 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment31.json @@ -126,9 +126,7 @@ "start": 65, "end": 67 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -177,9 +175,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -387,9 +383,7 @@ "start": 198, "end": 200 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } }, "right": { @@ -438,9 +432,7 @@ "start": 229, "end": 231 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } }, "right": { @@ -489,9 +481,7 @@ "start": 260, "end": 262 }, - "ctxt": 0, - "value": "p8", - "optional": false + "value": "p8" } }, "right": { @@ -896,9 +886,7 @@ "start": 489, "end": 491 }, - "ctxt": 0, - "value": "p5", - "optional": false + "value": "p5" } }, "right": { @@ -947,9 +935,7 @@ "start": 521, "end": 523 }, - "ctxt": 0, - "value": "p7", - "optional": false + "value": "p7" } }, "right": { @@ -998,9 +984,7 @@ "start": 553, "end": 555 }, - "ctxt": 0, - "value": "p9", - "optional": false + "value": "p9" } }, "right": { @@ -1132,9 +1116,7 @@ "start": 600, "end": 602 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -1159,9 +1141,7 @@ "start": 618, "end": 620 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } }, @@ -1187,9 +1167,7 @@ "start": 636, "end": 638 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } }, @@ -1215,9 +1193,7 @@ "start": 654, "end": 656 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } } }, @@ -1243,9 +1219,7 @@ "start": 672, "end": 674 }, - "ctxt": 0, - "value": "p5", - "optional": false + "value": "p5" } } }, @@ -1271,9 +1245,7 @@ "start": 690, "end": 692 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } } }, @@ -1299,9 +1271,7 @@ "start": 708, "end": 710 }, - "ctxt": 0, - "value": "p7", - "optional": false + "value": "p7" } } }, @@ -1327,9 +1297,7 @@ "start": 726, "end": 728 }, - "ctxt": 0, - "value": "p8", - "optional": false + "value": "p8" } } }, @@ -1355,9 +1323,7 @@ "start": 744, "end": 746 }, - "ctxt": 0, - "value": "p9", - "optional": false + "value": "p9" } } }, @@ -1390,9 +1356,7 @@ "start": 762, "end": 763 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json index ffb9d0c7a01e..910288d3b53a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment32.json @@ -126,9 +126,7 @@ "start": 90, "end": 92 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -177,9 +175,7 @@ "start": 112, "end": 113 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -312,9 +308,7 @@ "start": 171, "end": 173 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } }, "right": { @@ -363,9 +357,7 @@ "start": 196, "end": 198 }, - "ctxt": 0, - "value": "p5", - "optional": false + "value": "p5" } }, "right": { @@ -414,9 +406,7 @@ "start": 222, "end": 224 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } }, "right": { @@ -465,9 +455,7 @@ "start": 247, "end": 249 }, - "ctxt": 0, - "value": "p7", - "optional": false + "value": "p7" } }, "right": { @@ -516,9 +504,7 @@ "start": 273, "end": 275 }, - "ctxt": 0, - "value": "p8", - "optional": false + "value": "p8" } }, "right": { @@ -566,9 +552,7 @@ "start": 312, "end": 314 }, - "ctxt": 0, - "value": "p9", - "optional": false + "value": "p9" } }, "right": { @@ -700,9 +684,7 @@ "start": 359, "end": 361 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -727,9 +709,7 @@ "start": 377, "end": 379 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } }, @@ -755,9 +735,7 @@ "start": 395, "end": 397 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } }, @@ -783,9 +761,7 @@ "start": 413, "end": 415 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } } }, @@ -811,9 +787,7 @@ "start": 431, "end": 433 }, - "ctxt": 0, - "value": "p5", - "optional": false + "value": "p5" } } }, @@ -839,9 +813,7 @@ "start": 449, "end": 451 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } } }, @@ -867,9 +839,7 @@ "start": 467, "end": 469 }, - "ctxt": 0, - "value": "p7", - "optional": false + "value": "p7" } } }, @@ -895,9 +865,7 @@ "start": 485, "end": 487 }, - "ctxt": 0, - "value": "p8", - "optional": false + "value": "p8" } } }, @@ -923,9 +891,7 @@ "start": 503, "end": 505 }, - "ctxt": 0, - "value": "p9", - "optional": false + "value": "p9" } } }, @@ -958,9 +924,7 @@ "start": 521, "end": 522 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json index f7cf4189d90a..6dae393a19b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment33.json @@ -558,9 +558,7 @@ "start": 354, "end": 356 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -609,9 +607,7 @@ "start": 376, "end": 377 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "right": { @@ -744,9 +740,7 @@ "start": 435, "end": 437 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } }, "right": { @@ -795,9 +789,7 @@ "start": 460, "end": 462 }, - "ctxt": 0, - "value": "p5", - "optional": false + "value": "p5" } }, "right": { @@ -846,9 +838,7 @@ "start": 486, "end": 488 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } }, "right": { @@ -897,9 +887,7 @@ "start": 511, "end": 513 }, - "ctxt": 0, - "value": "p7", - "optional": false + "value": "p7" } }, "right": { @@ -948,9 +936,7 @@ "start": 537, "end": 539 }, - "ctxt": 0, - "value": "p8", - "optional": false + "value": "p8" } }, "right": { @@ -998,9 +984,7 @@ "start": 576, "end": 578 }, - "ctxt": 0, - "value": "p9", - "optional": false + "value": "p9" } }, "right": { @@ -1132,9 +1116,7 @@ "start": 623, "end": 625 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } }, "right": { @@ -1159,9 +1141,7 @@ "start": 641, "end": 643 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } }, @@ -1187,9 +1167,7 @@ "start": 659, "end": 661 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } }, @@ -1215,9 +1193,7 @@ "start": 677, "end": 679 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } } }, @@ -1243,9 +1219,7 @@ "start": 695, "end": 697 }, - "ctxt": 0, - "value": "p5", - "optional": false + "value": "p5" } } }, @@ -1271,9 +1245,7 @@ "start": 713, "end": 715 }, - "ctxt": 0, - "value": "p6", - "optional": false + "value": "p6" } } }, @@ -1299,9 +1271,7 @@ "start": 731, "end": 733 }, - "ctxt": 0, - "value": "p7", - "optional": false + "value": "p7" } } }, @@ -1327,9 +1297,7 @@ "start": 749, "end": 751 }, - "ctxt": 0, - "value": "p8", - "optional": false + "value": "p8" } } }, @@ -1355,9 +1323,7 @@ "start": 767, "end": 769 }, - "ctxt": 0, - "value": "p9", - "optional": false + "value": "p9" } } }, @@ -1390,9 +1356,7 @@ "start": 785, "end": 786 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment34.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment34.json index af91e91ba078..1fd932541143 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment34.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment34.json @@ -79,9 +79,7 @@ "start": 91, "end": 99 }, - "ctxt": 0, - "value": "commands", - "optional": false + "value": "commands" } }, "right": { @@ -135,9 +133,7 @@ "start": 132, "end": 140 }, - "ctxt": 0, - "value": "commands", - "optional": false + "value": "commands" } }, "property": { @@ -146,9 +142,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -203,9 +197,7 @@ "start": 152, "end": 160 }, - "ctxt": 0, - "value": "commands", - "optional": false + "value": "commands" } }, "property": { @@ -214,9 +206,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment35.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment35.json index 3bd231cb0942..60382d8d32db 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment35.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment35.json @@ -81,9 +81,7 @@ "start": 136, "end": 142 }, - "ctxt": 0, - "value": "_model", - "optional": false + "value": "_model" } } }, @@ -143,9 +141,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "arguments": [], @@ -210,9 +206,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "property": { @@ -221,9 +215,7 @@ "start": 189, "end": 205 }, - "ctxt": 0, - "value": "_wrapperInstance", - "optional": false + "value": "_wrapperInstance" } }, "definite": false @@ -272,9 +264,7 @@ "start": 213, "end": 214 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "right": { @@ -300,9 +290,7 @@ "start": 229, "end": 240 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -345,9 +333,7 @@ "start": 258, "end": 264 }, - "ctxt": 0, - "value": "_model", - "optional": false + "value": "_model" } }, "right": { @@ -448,9 +434,7 @@ "start": 341, "end": 342 }, - "ctxt": 0, - "value": "D", - "optional": false + "value": "D" } }, "property": { @@ -459,9 +443,7 @@ "start": 343, "end": 359 }, - "ctxt": 0, - "value": "_wrapperInstance", - "optional": false + "value": "_wrapperInstance" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json index bbb7bfd67df0..9962c4445b4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json @@ -136,9 +136,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -180,9 +178,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } }, @@ -245,9 +241,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -292,9 +286,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } }, @@ -357,9 +349,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -417,9 +407,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -463,9 +451,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } }, @@ -528,9 +514,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "right": { @@ -589,9 +573,7 @@ "start": 315, "end": 316 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "right": { @@ -636,9 +618,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } } }, @@ -701,9 +681,7 @@ "start": 358, "end": 359 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -816,9 +794,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "definite": false @@ -894,9 +870,7 @@ "start": 507, "end": 508 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } }, "right": { @@ -938,9 +912,7 @@ "start": 516, "end": 517 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } }, @@ -1017,9 +989,7 @@ "start": 540, "end": 541 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -1064,9 +1034,7 @@ "start": 554, "end": 555 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } }, @@ -1143,9 +1111,7 @@ "start": 577, "end": 578 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -1203,9 +1169,7 @@ "start": 602, "end": 603 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "right": { @@ -1249,9 +1213,7 @@ "start": 615, "end": 616 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } } }, @@ -1328,9 +1290,7 @@ "start": 638, "end": 639 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "right": { @@ -1389,9 +1349,7 @@ "start": 659, "end": 660 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } }, "right": { @@ -1436,9 +1394,7 @@ "start": 669, "end": 670 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" } } }, @@ -1570,9 +1526,7 @@ "start": 751, "end": 758 }, - "ctxt": 0, - "value": "expando", - "optional": false + "value": "expando" } }, "right": { @@ -1618,9 +1572,7 @@ "start": 767, "end": 774 }, - "ctxt": 0, - "value": "expando", - "optional": false + "value": "expando" } } }, @@ -1697,9 +1649,7 @@ "start": 806, "end": 810 }, - "ctxt": 0, - "value": "both", - "optional": false + "value": "both" } }, "right": { @@ -1758,9 +1708,7 @@ "start": 833, "end": 837 }, - "ctxt": 0, - "value": "both", - "optional": false + "value": "both" } }, "right": { @@ -1805,9 +1753,7 @@ "start": 846, "end": 850 }, - "ctxt": 0, - "value": "both", - "optional": false + "value": "both" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json index 34559132343d..90a22ae62ba6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json @@ -79,9 +79,7 @@ "start": 105, "end": 112 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -171,9 +169,7 @@ "start": 142, "end": 148 }, - "ctxt": 0, - "value": "existy", - "optional": false + "value": "existy" } }, "right": { @@ -326,9 +322,7 @@ "start": 245, "end": 251 }, - "ctxt": 0, - "value": "existy", - "optional": false + "value": "existy" } } } @@ -367,9 +361,7 @@ "start": 271, "end": 277 }, - "ctxt": 0, - "value": "existy", - "optional": false + "value": "existy" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment4.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment4.json index 4c645dd3971b..7e086c49a95d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment4.json @@ -79,9 +79,7 @@ "start": 118, "end": 123 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -107,9 +105,7 @@ "start": 138, "end": 149 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -152,9 +148,7 @@ "start": 197, "end": 198 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -242,9 +236,7 @@ "start": 256, "end": 257 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -304,9 +296,7 @@ "start": 280, "end": 285 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -344,9 +334,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -410,9 +398,7 @@ "start": 351, "end": 352 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -472,9 +458,7 @@ "start": 371, "end": 376 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "arguments": [], @@ -512,9 +496,7 @@ "start": 381, "end": 382 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment40.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment40.json index 19caf5610724..16c48a76b9c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment40.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment40.json @@ -106,9 +106,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "right": { @@ -189,9 +187,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json index bf747413b6fc..46df2ff69501 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json @@ -80,9 +80,7 @@ "start": 135, "end": 138 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -140,9 +138,7 @@ "start": 161, "end": 164 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -212,9 +208,7 @@ "start": 209, "end": 212 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment6.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment6.json index bcbd87964282..eafb28eb6db4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment6.json @@ -66,9 +66,7 @@ "start": 132, "end": 137 }, - "ctxt": 0, - "value": "Inner", - "optional": false + "value": "Inner" } }, "right": { @@ -102,9 +100,7 @@ "start": 154, "end": 162 }, - "ctxt": 0, - "value": "messages", - "optional": false + "value": "messages" }, "function": { "params": [], @@ -188,9 +184,7 @@ "start": 215, "end": 216 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } } }, @@ -256,9 +250,7 @@ "start": 254, "end": 255 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" } }, "property": { @@ -267,9 +259,7 @@ "start": 256, "end": 264 }, - "ctxt": 0, - "value": "messages", - "optional": false + "value": "messages" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment7.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment7.json index c38a3b82ed64..01391138ba0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment7.json @@ -79,9 +79,7 @@ "start": 107, "end": 113 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "right": { @@ -202,9 +200,7 @@ "start": 166, "end": 172 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8.json index 06dd723edb16..d5e8ccba0244 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8.json @@ -97,9 +97,7 @@ "start": 128, "end": 131 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -131,9 +129,7 @@ "start": 137, "end": 140 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -188,9 +184,7 @@ "start": 152, "end": 155 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -199,9 +193,7 @@ "start": 156, "end": 167 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "right": { @@ -361,9 +353,7 @@ "start": 259, "end": 262 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -372,9 +362,7 @@ "start": 263, "end": 274 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "arguments": [], @@ -437,9 +425,7 @@ "start": 314, "end": 317 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "right": { @@ -490,9 +476,7 @@ "start": 329, "end": 332 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -524,9 +508,7 @@ "start": 339, "end": 342 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -581,9 +563,7 @@ "start": 355, "end": 358 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -592,9 +572,7 @@ "start": 359, "end": 370 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "right": { @@ -754,9 +732,7 @@ "start": 463, "end": 466 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -765,9 +741,7 @@ "start": 467, "end": 478 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8_1.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8_1.json index c89027519115..7dcead82cc13 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8_1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment8_1.json @@ -97,9 +97,7 @@ "start": 131, "end": 134 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -131,9 +129,7 @@ "start": 140, "end": 143 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -188,9 +184,7 @@ "start": 155, "end": 158 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -199,9 +193,7 @@ "start": 159, "end": 170 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "right": { @@ -361,9 +353,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -372,9 +362,7 @@ "start": 266, "end": 277 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "arguments": [], @@ -437,9 +425,7 @@ "start": 317, "end": 320 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "right": { @@ -490,9 +476,7 @@ "start": 332, "end": 335 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -524,9 +508,7 @@ "start": 342, "end": 345 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "right": { @@ -581,9 +563,7 @@ "start": 358, "end": 361 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -592,9 +572,7 @@ "start": 362, "end": 373 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "right": { @@ -754,9 +732,7 @@ "start": 466, "end": 469 }, - "ctxt": 0, - "value": "app", - "optional": false + "value": "app" } }, "property": { @@ -765,9 +741,7 @@ "start": 470, "end": 481 }, - "ctxt": 0, - "value": "Application", - "optional": false + "value": "Application" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json index 860f4010c9a1..695765a19d1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json @@ -97,9 +97,7 @@ "start": 137, "end": 143 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "right": { @@ -218,9 +216,7 @@ "start": 183, "end": 189 }, - "ctxt": 0, - "value": "number", - "optional": false + "value": "number" } }, "right": { @@ -269,9 +265,7 @@ "start": 198, "end": 204 }, - "ctxt": 0, - "value": "object", - "optional": false + "value": "object" } }, "right": { @@ -319,9 +313,7 @@ "start": 214, "end": 223 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "right": { @@ -353,9 +345,7 @@ "start": 229, "end": 238 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "right": { @@ -410,9 +400,7 @@ "start": 249, "end": 258 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -421,9 +409,7 @@ "start": 259, "end": 264 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "right": { @@ -517,9 +503,7 @@ "start": 307, "end": 315 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { @@ -603,9 +587,7 @@ "start": 343, "end": 352 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -614,9 +596,7 @@ "start": 353, "end": 358 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "arguments": [], @@ -673,9 +653,7 @@ "start": 365, "end": 374 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -684,9 +662,7 @@ "start": 375, "end": 380 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "property": { @@ -695,9 +671,7 @@ "start": 381, "end": 388 }, - "ctxt": 0, - "value": "another", - "optional": false + "value": "another" } }, "right": { @@ -790,9 +764,7 @@ "start": 424, "end": 433 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -801,9 +773,7 @@ "start": 434, "end": 439 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "property": { @@ -812,9 +782,7 @@ "start": 440, "end": 446 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } }, "right": { @@ -869,9 +837,7 @@ "start": 516, "end": 525 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -880,9 +846,7 @@ "start": 526, "end": 530 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "right": { @@ -920,9 +884,7 @@ "start": 536, "end": 545 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -931,9 +893,7 @@ "start": 546, "end": 550 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "right": { @@ -1106,9 +1066,7 @@ "start": 630, "end": 639 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -1117,9 +1075,7 @@ "start": 640, "end": 644 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -1144,9 +1100,7 @@ "start": 659, "end": 660 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1259,9 +1213,7 @@ "start": 723, "end": 726 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "right": { @@ -1312,9 +1264,7 @@ "start": 738, "end": 742 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "right": { @@ -1349,9 +1299,7 @@ "start": 750, "end": 753 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "property": { @@ -1360,9 +1308,7 @@ "start": 754, "end": 758 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "right": { @@ -1433,9 +1379,7 @@ "start": 783, "end": 787 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "property": { @@ -1444,9 +1388,7 @@ "start": 788, "end": 793 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "right": { @@ -1490,9 +1432,7 @@ "start": 801, "end": 804 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "property": { @@ -1501,9 +1441,7 @@ "start": 805, "end": 809 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "property": { @@ -1512,9 +1450,7 @@ "start": 810, "end": 815 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "right": { @@ -1571,9 +1507,7 @@ "start": 834, "end": 842 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { @@ -1611,9 +1545,7 @@ "start": 852, "end": 855 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "property": { @@ -1622,9 +1554,7 @@ "start": 856, "end": 864 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json index 28750e8d5219..bd051ee23ecc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json @@ -97,9 +97,7 @@ "start": 140, "end": 146 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "right": { @@ -218,9 +216,7 @@ "start": 186, "end": 192 }, - "ctxt": 0, - "value": "number", - "optional": false + "value": "number" } }, "right": { @@ -269,9 +265,7 @@ "start": 201, "end": 207 }, - "ctxt": 0, - "value": "object", - "optional": false + "value": "object" } }, "right": { @@ -319,9 +313,7 @@ "start": 217, "end": 226 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "right": { @@ -353,9 +345,7 @@ "start": 232, "end": 241 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "right": { @@ -410,9 +400,7 @@ "start": 252, "end": 261 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -421,9 +409,7 @@ "start": 262, "end": 267 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "right": { @@ -517,9 +503,7 @@ "start": 310, "end": 318 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { @@ -603,9 +587,7 @@ "start": 346, "end": 355 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -614,9 +596,7 @@ "start": 356, "end": 361 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "arguments": [], @@ -673,9 +653,7 @@ "start": 368, "end": 377 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -684,9 +662,7 @@ "start": 378, "end": 383 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "property": { @@ -695,9 +671,7 @@ "start": 384, "end": 391 }, - "ctxt": 0, - "value": "another", - "optional": false + "value": "another" } }, "right": { @@ -790,9 +764,7 @@ "start": 427, "end": 436 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -801,9 +773,7 @@ "start": 437, "end": 442 }, - "ctxt": 0, - "value": "query", - "optional": false + "value": "query" } }, "property": { @@ -812,9 +782,7 @@ "start": 443, "end": 449 }, - "ctxt": 0, - "value": "result", - "optional": false + "value": "result" } }, "right": { @@ -869,9 +837,7 @@ "start": 519, "end": 528 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -880,9 +846,7 @@ "start": 529, "end": 533 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "right": { @@ -920,9 +884,7 @@ "start": 539, "end": 548 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -931,9 +893,7 @@ "start": 549, "end": 553 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "right": { @@ -1106,9 +1066,7 @@ "start": 633, "end": 642 }, - "ctxt": 0, - "value": "predicate", - "optional": false + "value": "predicate" } }, "property": { @@ -1117,9 +1075,7 @@ "start": 643, "end": 647 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -1144,9 +1100,7 @@ "start": 662, "end": 663 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1259,9 +1213,7 @@ "start": 726, "end": 729 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "right": { @@ -1312,9 +1264,7 @@ "start": 741, "end": 745 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "right": { @@ -1349,9 +1299,7 @@ "start": 753, "end": 756 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "property": { @@ -1360,9 +1308,7 @@ "start": 757, "end": 761 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "right": { @@ -1433,9 +1379,7 @@ "start": 786, "end": 790 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "property": { @@ -1444,9 +1388,7 @@ "start": 791, "end": 796 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "right": { @@ -1490,9 +1432,7 @@ "start": 804, "end": 807 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "property": { @@ -1501,9 +1441,7 @@ "start": 808, "end": 812 }, - "ctxt": 0, - "value": "nest", - "optional": false + "value": "nest" } }, "property": { @@ -1512,9 +1450,7 @@ "start": 813, "end": 818 }, - "ctxt": 0, - "value": "other", - "optional": false + "value": "other" } }, "right": { @@ -1571,9 +1507,7 @@ "start": 837, "end": 845 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { @@ -1611,9 +1545,7 @@ "start": 855, "end": 858 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "property": { @@ -1622,9 +1554,7 @@ "start": 859, "end": 867 }, - "ctxt": 0, - "value": "property", - "optional": false + "value": "property" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentOutOfOrder.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentOutOfOrder.json index 5161a9c1bc64..21822be2575f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentOutOfOrder.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentOutOfOrder.json @@ -40,9 +40,7 @@ "start": 99, "end": 103 }, - "ctxt": 0, - "value": "Item", - "optional": false + "value": "Item" } }, "right": { @@ -107,9 +105,7 @@ "start": 124, "end": 130 }, - "ctxt": 0, - "value": "Object", - "optional": false + "value": "Object" } }, "right": { @@ -144,9 +140,7 @@ "start": 153, "end": 157 }, - "ctxt": 0, - "value": "Item", - "optional": false + "value": "Item" } }, "isAbstract": false, @@ -191,9 +185,7 @@ "start": 172, "end": 178 }, - "ctxt": 0, - "value": "Object", - "optional": false + "value": "Object" } }, "right": { @@ -228,9 +220,7 @@ "start": 202, "end": 208 }, - "ctxt": 0, - "value": "Object", - "optional": false + "value": "Object" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentWithExport.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentWithExport.json index 6dcca8345b14..da73d9c210c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentWithExport.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignmentWithExport.json @@ -86,9 +86,7 @@ "start": 142, "end": 146 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "right": { @@ -136,9 +134,7 @@ "start": 196, "end": 207 }, - "ctxt": 0, - "value": "asyncMethod", - "optional": false + "value": "asyncMethod" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment.json index a86f4111baf8..cd8d1d766a4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment.json @@ -82,9 +82,7 @@ "start": 205, "end": 209 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -122,9 +120,7 @@ "start": 225, "end": 229 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -153,9 +149,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -184,9 +178,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -215,9 +207,7 @@ "start": 265, "end": 270 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -267,9 +257,7 @@ "start": 284, "end": 293 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -287,9 +275,7 @@ "start": 302, "end": 305 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -334,9 +320,7 @@ "start": 333, "end": 337 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -365,9 +349,7 @@ "start": 351, "end": 354 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -396,9 +378,7 @@ "start": 368, "end": 371 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -427,9 +407,7 @@ "start": 385, "end": 390 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -449,9 +427,7 @@ "start": 402, "end": 405 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -493,9 +469,7 @@ "start": 423, "end": 427 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -524,9 +498,7 @@ "start": 441, "end": 444 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -555,9 +527,7 @@ "start": 458, "end": 461 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -586,9 +556,7 @@ "start": 475, "end": 480 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -644,9 +612,7 @@ "start": 499, "end": 508 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -655,9 +621,7 @@ "start": 509, "end": 514 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } }, "right": { @@ -703,9 +667,7 @@ "start": 540, "end": 544 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -734,9 +696,7 @@ "start": 554, "end": 557 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -765,9 +725,7 @@ "start": 567, "end": 570 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -796,9 +754,7 @@ "start": 580, "end": 585 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -890,9 +846,7 @@ "start": 617, "end": 621 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -924,9 +878,7 @@ "start": 625, "end": 628 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -958,9 +910,7 @@ "start": 632, "end": 635 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -992,9 +942,7 @@ "start": 639, "end": 644 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment2.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment2.json index 003fc4c77bfd..2c3dcfaf6414 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment2.json @@ -121,9 +121,7 @@ "start": 258, "end": 262 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -161,9 +159,7 @@ "start": 282, "end": 286 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -192,9 +188,7 @@ "start": 300, "end": 303 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -223,9 +217,7 @@ "start": 317, "end": 320 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -254,9 +246,7 @@ "start": 334, "end": 339 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -306,9 +296,7 @@ "start": 361, "end": 370 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -326,9 +314,7 @@ "start": 383, "end": 386 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -373,9 +359,7 @@ "start": 418, "end": 422 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -404,9 +388,7 @@ "start": 440, "end": 443 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -435,9 +417,7 @@ "start": 461, "end": 464 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -466,9 +446,7 @@ "start": 482, "end": 487 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -488,9 +466,7 @@ "start": 507, "end": 510 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [], "decorators": [], @@ -532,9 +508,7 @@ "start": 532, "end": 536 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -563,9 +537,7 @@ "start": 554, "end": 557 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -594,9 +566,7 @@ "start": 575, "end": 578 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -625,9 +595,7 @@ "start": 596, "end": 601 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -683,9 +651,7 @@ "start": 632, "end": 641 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -694,9 +660,7 @@ "start": 642, "end": 647 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } }, "right": { @@ -742,9 +706,7 @@ "start": 677, "end": 681 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -773,9 +735,7 @@ "start": 695, "end": 698 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -804,9 +764,7 @@ "start": 712, "end": 715 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -835,9 +793,7 @@ "start": 729, "end": 734 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } @@ -929,9 +885,7 @@ "start": 778, "end": 782 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } } }, @@ -963,9 +917,7 @@ "start": 790, "end": 793 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } } }, @@ -997,9 +949,7 @@ "start": 801, "end": 804 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } } }, @@ -1031,9 +981,7 @@ "start": 812, "end": 817 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json index 7acaf5ab0f4c..7337398a78b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json @@ -65,9 +65,7 @@ "start": 130, "end": 134 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -129,9 +127,7 @@ "start": 155, "end": 164 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -149,9 +145,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [ { @@ -219,9 +213,7 @@ "start": 285, "end": 289 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -378,9 +370,7 @@ "start": 378, "end": 381 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json index e2ab7913f2dd..3fc807cc8275 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json @@ -65,9 +65,7 @@ "start": 155, "end": 159 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "right": { @@ -155,9 +153,7 @@ "start": 272, "end": 275 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "params": [ { @@ -225,9 +221,7 @@ "start": 299, "end": 303 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -648,9 +642,7 @@ "start": 517, "end": 520 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -755,9 +747,7 @@ "start": 549, "end": 554 }, - "ctxt": 0, - "value": "addon", - "optional": false + "value": "addon" } }, "arguments": [], @@ -799,9 +789,7 @@ "start": 563, "end": 578 }, - "ctxt": 0, - "value": "__underscores__", - "optional": false + "value": "__underscores__" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json index 1041bc132632..e3b0d120043b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunction.json @@ -37,9 +37,7 @@ "start": 16, "end": 21 }, - "ctxt": 0, - "value": "propA", - "optional": false + "value": "propA" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 48, "end": 53 }, - "ctxt": 0, - "value": "propB", - "optional": false + "value": "propB" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 90, "end": 95 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" }, "value": null, "typeAnnotation": { @@ -786,9 +780,7 @@ "start": 308, "end": 313 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" } } } @@ -928,9 +920,7 @@ "start": 377, "end": 382 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" } } } @@ -1097,9 +1087,7 @@ "start": 446, "end": 451 }, - "ctxt": 0, - "value": "propA", - "optional": false + "value": "propA" } } } @@ -1433,9 +1421,7 @@ "start": 751, "end": 756 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" } } } @@ -1629,9 +1615,7 @@ "start": 826, "end": 833 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json index a3c8e33e5b58..4e2beb0156f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionGenerics.json @@ -37,9 +37,7 @@ "start": 16, "end": 21 }, - "ctxt": 0, - "value": "propA", - "optional": false + "value": "propA" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 48, "end": 53 }, - "ctxt": 0, - "value": "propB", - "optional": false + "value": "propB" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 90, "end": 95 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" }, "value": null, "typeAnnotation": { @@ -1721,9 +1715,7 @@ "start": 557, "end": 562 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" } } } @@ -1909,9 +1901,7 @@ "start": 618, "end": 623 }, - "ctxt": 0, - "value": "propC", - "optional": false + "value": "propC" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThis.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThis.json index 37cd11dc3471..e7432c0fb637 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThis.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThis.json @@ -37,9 +37,7 @@ "start": 46, "end": 54 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" }, "function": { "params": [], @@ -161,9 +159,7 @@ "start": 130, "end": 140 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" }, "function": { "params": [], @@ -312,9 +308,7 @@ "start": 264, "end": 268 }, - "ctxt": 0, - "value": "lead", - "optional": false + "value": "lead" }, "function": { "params": [], @@ -414,9 +408,7 @@ "start": 329, "end": 335 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" }, "function": { "params": [], @@ -594,9 +586,7 @@ "start": 398, "end": 406 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "arguments": [], @@ -645,9 +635,7 @@ "start": 418, "end": 422 }, - "ctxt": 0, - "value": "lead", - "optional": false + "value": "lead" } }, "arguments": [], @@ -691,9 +679,7 @@ "start": 439, "end": 449 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "arguments": [], @@ -742,9 +728,7 @@ "start": 461, "end": 467 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" } }, "arguments": [], @@ -894,9 +878,7 @@ "start": 551, "end": 559 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "arguments": [], @@ -945,9 +927,7 @@ "start": 571, "end": 575 }, - "ctxt": 0, - "value": "lead", - "optional": false + "value": "lead" } }, "arguments": [], @@ -991,9 +971,7 @@ "start": 592, "end": 602 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "arguments": [], @@ -1042,9 +1020,7 @@ "start": 614, "end": 620 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" } }, "arguments": [], @@ -1147,9 +1123,7 @@ "start": 881, "end": 882 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -1158,9 +1132,7 @@ "start": 883, "end": 891 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "arguments": [], @@ -1202,9 +1174,7 @@ "start": 909, "end": 910 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1246,9 +1216,7 @@ "start": 933, "end": 934 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1287,9 +1255,7 @@ "start": 962, "end": 969 }, - "ctxt": 0, - "value": "isElite", - "optional": false + "value": "isElite" }, "value": { "type": "ArrowFunctionExpression", @@ -1415,9 +1381,7 @@ "start": 1053, "end": 1060 }, - "ctxt": 0, - "value": "isMedic", - "optional": false + "value": "isMedic" }, "value": { "type": "ArrowFunctionExpression", @@ -1570,9 +1534,7 @@ "start": 1185, "end": 1191 }, - "ctxt": 0, - "value": "defend", - "optional": false + "value": "defend" }, "function": { "params": [], @@ -1665,9 +1627,7 @@ "start": 1248, "end": 1252 }, - "ctxt": 0, - "value": "heal", - "optional": false + "value": "heal" }, "function": { "params": [], @@ -1814,9 +1774,7 @@ "start": 1307, "end": 1314 }, - "ctxt": 0, - "value": "isElite", - "optional": false + "value": "isElite" } }, "arguments": [], @@ -1865,9 +1823,7 @@ "start": 1330, "end": 1336 }, - "ctxt": 0, - "value": "defend", - "optional": false + "value": "defend" } }, "arguments": [], @@ -1911,9 +1867,7 @@ "start": 1357, "end": 1364 }, - "ctxt": 0, - "value": "isMedic", - "optional": false + "value": "isMedic" } }, "arguments": [], @@ -1962,9 +1916,7 @@ "start": 1380, "end": 1384 }, - "ctxt": 0, - "value": "heal", - "optional": false + "value": "heal" } }, "arguments": [], @@ -2538,9 +2490,7 @@ "start": 1662, "end": 1672 }, - "ctxt": 0, - "value": "isSundries", - "optional": false + "value": "isSundries" } }, "arguments": [], @@ -2595,9 +2545,7 @@ "start": 1688, "end": 1696 }, - "ctxt": 0, - "value": "contents", - "optional": false + "value": "contents" } }, "property": { @@ -2606,9 +2554,7 @@ "start": 1697, "end": 1703 }, - "ctxt": 0, - "value": "broken", - "optional": false + "value": "broken" } }, "right": { @@ -2658,9 +2604,7 @@ "start": 1729, "end": 1739 }, - "ctxt": 0, - "value": "isSupplies", - "optional": false + "value": "isSupplies" } }, "arguments": [], @@ -2715,9 +2659,7 @@ "start": 1755, "end": 1763 }, - "ctxt": 0, - "value": "contents", - "optional": false + "value": "contents" } }, "property": { @@ -2726,9 +2668,7 @@ "start": 1764, "end": 1771 }, - "ctxt": 0, - "value": "spoiled", - "optional": false + "value": "spoiled" } }, "right": { @@ -2781,9 +2721,7 @@ "start": 1826, "end": 1836 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "right": { @@ -2808,9 +2746,7 @@ "start": 1841, "end": 1851 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } } } @@ -2850,9 +2786,7 @@ "start": 1855, "end": 1863 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "right": { @@ -2877,9 +2811,7 @@ "start": 1868, "end": 1876 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } } } @@ -2916,9 +2848,7 @@ "start": 1902, "end": 1910 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" }, "function": { "params": [], @@ -3047,9 +2977,7 @@ "start": 1979, "end": 1989 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" }, "function": { "params": [], @@ -3205,9 +3133,7 @@ "start": 2104, "end": 2108 }, - "ctxt": 0, - "value": "lead", - "optional": false + "value": "lead" }, "function": { "params": [], @@ -3300,9 +3226,7 @@ "start": 2168, "end": 2174 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" }, "function": { "params": [], @@ -3449,9 +3373,7 @@ "start": 2222, "end": 2230 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "right": { @@ -3476,9 +3398,7 @@ "start": 2239, "end": 2247 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } } } @@ -3518,9 +3438,7 @@ "start": 2251, "end": 2261 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "right": { @@ -3545,9 +3463,7 @@ "start": 2270, "end": 2280 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } } } @@ -3587,9 +3503,7 @@ "start": 2293, "end": 2303 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "arguments": [], @@ -3638,9 +3552,7 @@ "start": 2319, "end": 2325 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" } }, "arguments": [], @@ -3682,9 +3594,7 @@ "start": 2339, "end": 2349 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "right": { @@ -3709,9 +3619,7 @@ "start": 2354, "end": 2364 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json index 7672e9496e28..134a5696f5c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardFunctionOfFormThisErrors.json @@ -37,9 +37,7 @@ "start": 46, "end": 54 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" }, "function": { "params": [], @@ -161,9 +159,7 @@ "start": 130, "end": 140 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" }, "function": { "params": [], @@ -312,9 +308,7 @@ "start": 264, "end": 268 }, - "ctxt": 0, - "value": "lead", - "optional": false + "value": "lead" }, "function": { "params": [], @@ -414,9 +408,7 @@ "start": 329, "end": 335 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" }, "function": { "params": [], @@ -716,9 +708,7 @@ "start": 528, "end": 538 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "right": { @@ -743,9 +733,7 @@ "start": 543, "end": 551 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } } } @@ -785,9 +773,7 @@ "start": 555, "end": 563 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "right": { @@ -812,9 +798,7 @@ "start": 568, "end": 578 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } } } @@ -854,9 +838,7 @@ "start": 583, "end": 593 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "right": { @@ -881,9 +863,7 @@ "start": 598, "end": 606 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } } } @@ -923,9 +903,7 @@ "start": 610, "end": 618 }, - "ctxt": 0, - "value": "isLeader", - "optional": false + "value": "isLeader" } }, "right": { @@ -950,9 +928,7 @@ "start": 623, "end": 633 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } } } @@ -1327,9 +1303,7 @@ "start": 821, "end": 833 }, - "ctxt": 0, - "value": "invalidGuard", - "optional": false + "value": "invalidGuard" } }, "arguments": [ @@ -1487,9 +1461,7 @@ "start": 907, "end": 917 }, - "ctxt": 0, - "value": "isFollower", - "optional": false + "value": "isFollower" } }, "definite": false @@ -1565,9 +1537,7 @@ "start": 944, "end": 950 }, - "ctxt": 0, - "value": "follow", - "optional": false + "value": "follow" } }, "arguments": [], @@ -1619,9 +1589,7 @@ "start": 969, "end": 973 }, - "ctxt": 0, - "value": "lead", - "optional": false + "value": "lead" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json b/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json index 3938ba2bd987..84059eca00a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json @@ -167,9 +167,7 @@ "start": 83, "end": 94 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -311,9 +309,7 @@ "start": 183, "end": 194 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json b/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json index 6a6bfe8a74fc..24882695e934 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json @@ -1144,9 +1144,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -1878,9 +1876,7 @@ "start": 1090, "end": 1094 }, - "ctxt": 0, - "value": "legs", - "optional": false + "value": "legs" } } }, @@ -2083,9 +2079,7 @@ "start": 1170, "end": 1175 }, - "ctxt": 0, - "value": "wings", - "optional": false + "value": "wings" } } } @@ -2351,9 +2345,7 @@ "start": 1431, "end": 1435 }, - "ctxt": 0, - "value": "legs", - "optional": false + "value": "legs" } }, "right": { @@ -2462,9 +2454,7 @@ "start": 1534, "end": 1538 }, - "ctxt": 0, - "value": "legs", - "optional": false + "value": "legs" } }, "right": { @@ -2601,9 +2591,7 @@ "start": 1665, "end": 1669 }, - "ctxt": 0, - "value": "legs", - "optional": false + "value": "legs" } } ], @@ -2704,9 +2692,7 @@ "start": 1807, "end": 1811 }, - "ctxt": 0, - "value": "legs", - "optional": false + "value": "legs" } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json index dd37b6506f17..2c159e930fac 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json @@ -372,9 +372,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json index 66ea79d762cd..4bfd6d777052 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json @@ -372,9 +372,7 @@ "start": 183, "end": 184 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOf.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOf.json index b3e17a315289..bd716faf4f0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOf.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOf.json @@ -37,9 +37,7 @@ "start": 345, "end": 347 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 374, "end": 376 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 414, "end": 416 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": null, "typeAnnotation": { @@ -253,9 +247,7 @@ "start": 443, "end": 445 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" }, "value": null, "typeAnnotation": { @@ -609,9 +601,7 @@ "start": 578, "end": 580 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -698,9 +688,7 @@ "start": 623, "end": 625 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -787,9 +775,7 @@ "start": 668, "end": 670 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -876,9 +862,7 @@ "start": 713, "end": 715 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1048,9 +1032,7 @@ "start": 779, "end": 781 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1137,9 +1119,7 @@ "start": 824, "end": 826 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1226,9 +1206,7 @@ "start": 869, "end": 871 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1515,9 +1493,7 @@ "start": 996, "end": 998 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1559,9 +1535,7 @@ "start": 1025, "end": 1027 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1739,9 +1713,7 @@ "start": 1100, "end": 1102 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1817,9 +1789,7 @@ "start": 1154, "end": 1156 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1861,9 +1831,7 @@ "start": 1183, "end": 1185 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } } } @@ -2042,9 +2010,7 @@ "start": 1258, "end": 1260 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -2086,9 +2052,7 @@ "start": 1287, "end": 1289 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -2311,9 +2275,7 @@ "start": 1394, "end": 1396 }, - "ctxt": 0, - "value": "p4", - "optional": false + "value": "p4" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOfOnInterface.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOfOnInterface.json index e9384979a200..4e32ebe393f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOfOnInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormInstanceOfOnInterface.json @@ -906,9 +906,7 @@ "start": 681, "end": 683 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -995,9 +993,7 @@ "start": 728, "end": 730 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1084,9 +1080,7 @@ "start": 775, "end": 777 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1173,9 +1167,7 @@ "start": 822, "end": 824 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1345,9 +1337,7 @@ "start": 891, "end": 893 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1434,9 +1424,7 @@ "start": 938, "end": 940 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1523,9 +1511,7 @@ "start": 985, "end": 987 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json index 11ae648cbc5e..031944f0338f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsType.json @@ -37,9 +37,7 @@ "start": 17, "end": 19 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 46, "end": 48 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 86, "end": 88 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" }, "value": null, "typeAnnotation": { @@ -945,9 +939,7 @@ "start": 375, "end": 377 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1040,9 +1032,7 @@ "start": 414, "end": 416 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1135,9 +1125,7 @@ "start": 453, "end": 455 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1230,9 +1218,7 @@ "start": 492, "end": 494 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1408,9 +1394,7 @@ "start": 553, "end": 555 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1503,9 +1487,7 @@ "start": 592, "end": 594 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1598,9 +1580,7 @@ "start": 631, "end": 633 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json index e690feebf21b..b5dfe1c2311e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormIsTypeOnInterfaces.json @@ -1311,9 +1311,7 @@ "start": 505, "end": 507 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1406,9 +1404,7 @@ "start": 544, "end": 546 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1501,9 +1497,7 @@ "start": 583, "end": 585 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } @@ -1596,9 +1590,7 @@ "start": 622, "end": 624 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1774,9 +1766,7 @@ "start": 683, "end": 685 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" } } } @@ -1869,9 +1859,7 @@ "start": 722, "end": 724 }, - "ctxt": 0, - "value": "p3", - "optional": false + "value": "p3" } } } @@ -1964,9 +1952,7 @@ "start": 761, "end": 763 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json index ea82111ca867..44851ec66437 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json index c428450eff8c..729f6c6e5315 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json index e4aa21ed5f79..3ec262fa4dd1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json @@ -1951,9 +1951,7 @@ "start": 1262, "end": 1266 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -2625,9 +2623,7 @@ "start": 1602, "end": 1610 }, - "ctxt": 0, - "value": "anything", - "optional": false + "value": "anything" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json index c17e9ce7f795..7972752f8cec 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json index 2b02cfadc15d..b8094f2d8f50 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json index 4bde9949da80..6edbaf475805 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json index cc2b790fd343..f7a6e2035c84 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json index d1b407d008ee..bd1f4b379c73 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json @@ -37,9 +37,7 @@ "start": 11, "end": 12 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 57, "end": 58 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -254,9 +248,7 @@ "start": 80, "end": 81 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -476,9 +468,7 @@ "start": 156, "end": 157 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -537,9 +527,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "right": { @@ -829,9 +817,7 @@ "start": 302, "end": 303 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -938,9 +924,7 @@ "start": 353, "end": 354 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -1212,9 +1196,7 @@ "start": 475, "end": 476 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -1294,9 +1276,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -1345,9 +1325,7 @@ "start": 555, "end": 556 }, - "ctxt": 0, - "value": "a", - "optional": true + "value": "a" }, "value": null, "typeAnnotation": { @@ -1414,9 +1392,7 @@ "start": 595, "end": 596 }, - "ctxt": 0, - "value": "b", - "optional": true + "value": "b" }, "value": null, "typeAnnotation": { @@ -1626,9 +1602,7 @@ "start": 735, "end": 736 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1749,9 +1723,7 @@ "start": 830, "end": 831 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "alternate": { @@ -1776,9 +1748,7 @@ "start": 848, "end": 849 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -2006,9 +1976,7 @@ "start": 954, "end": 955 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2088,9 +2056,7 @@ "start": 996, "end": 997 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -2139,9 +2105,7 @@ "start": 1035, "end": 1039 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -2329,9 +2293,7 @@ "start": 1113, "end": 1117 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -2412,9 +2374,7 @@ "start": 1147, "end": 1151 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -2423,9 +2383,7 @@ "start": 1152, "end": 1153 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2511,9 +2469,7 @@ "start": 1194, "end": 1198 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -2522,9 +2478,7 @@ "start": 1199, "end": 1200 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -2573,9 +2527,7 @@ "start": 1239, "end": 1244 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" }, "value": null, "typeAnnotation": { @@ -2742,9 +2694,7 @@ "start": 1338, "end": 1343 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" } }, "property": { @@ -2753,9 +2703,7 @@ "start": 1344, "end": 1348 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -2842,9 +2790,7 @@ "start": 1378, "end": 1383 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" } }, "property": { @@ -2853,9 +2799,7 @@ "start": 1384, "end": 1388 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -2864,9 +2808,7 @@ "start": 1389, "end": 1390 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -2958,9 +2900,7 @@ "start": 1431, "end": 1436 }, - "ctxt": 0, - "value": "outer", - "optional": false + "value": "outer" } }, "property": { @@ -2969,9 +2909,7 @@ "start": 1437, "end": 1441 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -2980,9 +2918,7 @@ "start": 1442, "end": 1443 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -3031,9 +2967,7 @@ "start": 1492, "end": 1496 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -3110,9 +3044,7 @@ "start": 1509, "end": 1515 }, - "ctxt": 0, - "value": "inThis", - "optional": false + "value": "inThis" }, "function": { "params": [], @@ -3171,9 +3103,7 @@ "start": 1544, "end": 1548 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -3251,9 +3181,7 @@ "start": 1585, "end": 1589 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -3262,9 +3190,7 @@ "start": 1590, "end": 1591 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -3347,9 +3273,7 @@ "start": 1643, "end": 1647 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } }, "property": { @@ -3358,9 +3282,7 @@ "start": 1648, "end": 1649 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "definite": false @@ -3423,9 +3345,7 @@ "start": 1719, "end": 1720 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -3465,9 +3385,7 @@ "start": 1734, "end": 1740 }, - "ctxt": 0, - "value": "inThis", - "optional": false + "value": "inThis" }, "function": { "params": [], @@ -3583,9 +3501,7 @@ "start": 1805, "end": 1806 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "definite": false @@ -3846,9 +3762,7 @@ "start": 1951, "end": 1952 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -3923,9 +3837,7 @@ "start": 2002, "end": 2003 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -3996,9 +3908,7 @@ "start": 2036, "end": 2037 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json b/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json index 02fee553ab2d..239976656caa 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json @@ -201,9 +201,7 @@ "start": 84, "end": 90 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "alternate": { @@ -228,9 +226,7 @@ "start": 95, "end": 102 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } } }, @@ -386,9 +382,7 @@ "start": 168, "end": 175 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "alternate": { @@ -413,9 +407,7 @@ "start": 180, "end": 186 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } } }, @@ -556,9 +548,7 @@ "start": 249, "end": 255 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "alternate": { @@ -583,9 +573,7 @@ "start": 260, "end": 267 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } } }, @@ -741,9 +729,7 @@ "start": 333, "end": 340 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "alternate": { @@ -768,9 +754,7 @@ "start": 345, "end": 351 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json index 2cc33f4f37ba..a6b5569d5176 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json @@ -432,9 +432,7 @@ "start": 239, "end": 243 }, - "ctxt": 0, - "value": "none", - "optional": false + "value": "none" }, "value": { "type": "StringLiteral", @@ -1188,9 +1186,7 @@ "start": 615, "end": 619 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "alternate": { @@ -1551,9 +1547,7 @@ "start": 851, "end": 856 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -1882,9 +1876,7 @@ "start": 1102, "end": 1107 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3192,9 +3184,7 @@ "start": 2306, "end": 2311 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3278,9 +3268,7 @@ "start": 2334, "end": 2339 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3365,9 +3353,7 @@ "start": 2369, "end": 2374 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3449,9 +3435,7 @@ "start": 2399, "end": 2404 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3568,9 +3552,7 @@ "start": 2452, "end": 2457 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3686,9 +3668,7 @@ "start": 2500, "end": 2505 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3804,9 +3784,7 @@ "start": 2543, "end": 2548 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], @@ -3936,9 +3914,7 @@ "start": 2597, "end": 2602 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json index 4c006a8da4db..8d4840cef8bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json @@ -258,9 +258,7 @@ "start": 269, "end": 275 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -466,9 +464,7 @@ "start": 428, "end": 434 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -801,9 +797,7 @@ "start": 650, "end": 656 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json index 873dd3b482b0..5ece39558936 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json @@ -209,9 +209,7 @@ "start": 325, "end": 327 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [], @@ -317,9 +315,7 @@ "start": 426, "end": 432 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -476,9 +472,7 @@ "start": 572, "end": 578 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -527,9 +521,7 @@ "start": 667, "end": 669 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [ @@ -686,9 +678,7 @@ "start": 790, "end": 796 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -782,9 +772,7 @@ "start": 903, "end": 909 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -941,9 +929,7 @@ "start": 1049, "end": 1055 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -975,9 +961,7 @@ "start": 1127, "end": 1130 }, - "ctxt": 0, - "value": "pp1", - "optional": false + "value": "pp1" }, "function": { "params": [], @@ -1083,9 +1067,7 @@ "start": 1229, "end": 1235 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1242,9 +1224,7 @@ "start": 1375, "end": 1381 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1293,9 +1273,7 @@ "start": 1479, "end": 1482 }, - "ctxt": 0, - "value": "pp1", - "optional": false + "value": "pp1" }, "function": { "params": [ @@ -1452,9 +1430,7 @@ "start": 1603, "end": 1609 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1548,9 +1524,7 @@ "start": 1716, "end": 1722 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1707,9 +1681,7 @@ "start": 1862, "end": 1868 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1741,9 +1713,7 @@ "start": 1938, "end": 1940 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "function": { "params": [], @@ -1849,9 +1819,7 @@ "start": 2039, "end": 2045 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2008,9 +1976,7 @@ "start": 2185, "end": 2191 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2059,9 +2025,7 @@ "start": 2287, "end": 2289 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "function": { "params": [ @@ -2218,9 +2182,7 @@ "start": 2410, "end": 2416 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2314,9 +2276,7 @@ "start": 2523, "end": 2529 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2473,9 +2433,7 @@ "start": 2669, "end": 2675 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2507,9 +2465,7 @@ "start": 2761, "end": 2764 }, - "ctxt": 0, - "value": "ss1", - "optional": false + "value": "ss1" }, "function": { "params": [], @@ -2615,9 +2571,7 @@ "start": 2863, "end": 2869 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2774,9 +2728,7 @@ "start": 3009, "end": 3015 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2825,9 +2777,7 @@ "start": 3127, "end": 3130 }, - "ctxt": 0, - "value": "ss1", - "optional": false + "value": "ss1" }, "function": { "params": [ @@ -2984,9 +2934,7 @@ "start": 3251, "end": 3257 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -3080,9 +3028,7 @@ "start": 3364, "end": 3370 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -3239,9 +3185,7 @@ "start": 3510, "end": 3516 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json index 7dc7030b33e0..1a3994323d1c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json @@ -147,9 +147,7 @@ "start": 221, "end": 232 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -299,9 +297,7 @@ "start": 353, "end": 359 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -458,9 +454,7 @@ "start": 499, "end": 505 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -554,9 +548,7 @@ "start": 613, "end": 619 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -579,9 +571,7 @@ "start": 684, "end": 686 }, - "ctxt": 0, - "value": "p1", - "optional": false + "value": "p1" }, "function": { "params": [ @@ -738,9 +728,7 @@ "start": 807, "end": 813 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -897,9 +885,7 @@ "start": 953, "end": 959 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -993,9 +979,7 @@ "start": 1067, "end": 1073 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1027,9 +1011,7 @@ "start": 1130, "end": 1132 }, - "ctxt": 0, - "value": "p2", - "optional": false + "value": "p2" }, "function": { "params": [ @@ -1186,9 +1168,7 @@ "start": 1253, "end": 1259 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1345,9 +1325,7 @@ "start": 1399, "end": 1405 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1441,9 +1419,7 @@ "start": 1513, "end": 1519 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1475,9 +1451,7 @@ "start": 1591, "end": 1593 }, - "ctxt": 0, - "value": "s1", - "optional": false + "value": "s1" }, "function": { "params": [ @@ -1634,9 +1608,7 @@ "start": 1714, "end": 1720 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1793,9 +1765,7 @@ "start": 1860, "end": 1866 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1889,9 +1859,7 @@ "start": 1974, "end": 1980 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1923,9 +1891,7 @@ "start": 2044, "end": 2046 }, - "ctxt": 0, - "value": "s2", - "optional": false + "value": "s2" }, "function": { "params": [ @@ -2082,9 +2048,7 @@ "start": 2167, "end": 2173 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2241,9 +2205,7 @@ "start": 2313, "end": 2319 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2337,9 +2299,7 @@ "start": 2427, "end": 2433 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json index ef4447bbd3cc..fd72da04fa26 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json @@ -153,9 +153,7 @@ "start": 565, "end": 571 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "alternate": { @@ -2105,9 +2103,7 @@ "start": 1983, "end": 1989 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2505,9 +2501,7 @@ "start": 2299, "end": 2307 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3183,9 +3177,7 @@ "start": 2810, "end": 2818 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3197,9 +3189,7 @@ "start": 2821, "end": 2827 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json index 7d04046abe98..f8faee9c32a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json @@ -209,9 +209,7 @@ "start": 287, "end": 293 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json index 33e2b9641370..5cd4bcbfde00 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json @@ -281,9 +281,7 @@ "start": 361, "end": 367 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -440,9 +438,7 @@ "start": 495, "end": 501 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -536,9 +532,7 @@ "start": 601, "end": 607 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -860,9 +854,7 @@ "start": 857, "end": 863 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -956,9 +948,7 @@ "start": 976, "end": 982 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1052,9 +1042,7 @@ "start": 1087, "end": 1093 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1211,9 +1199,7 @@ "start": 1205, "end": 1211 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1307,9 +1293,7 @@ "start": 1274, "end": 1280 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1662,9 +1646,7 @@ "start": 1617, "end": 1623 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1758,9 +1740,7 @@ "start": 1736, "end": 1742 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1854,9 +1834,7 @@ "start": 1847, "end": 1853 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2013,9 +1991,7 @@ "start": 1965, "end": 1971 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2109,9 +2085,7 @@ "start": 2034, "end": 2040 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2481,9 +2455,7 @@ "start": 2378, "end": 2384 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2577,9 +2549,7 @@ "start": 2497, "end": 2503 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2673,9 +2643,7 @@ "start": 2608, "end": 2614 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2832,9 +2800,7 @@ "start": 2726, "end": 2732 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2928,9 +2894,7 @@ "start": 2795, "end": 2801 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json index 289e5f1782e2..de2ffbc72da9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json @@ -300,9 +300,7 @@ "start": 272, "end": 280 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -337,9 +335,7 @@ "start": 314, "end": 322 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -712,9 +708,7 @@ "start": 604, "end": 612 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -749,9 +743,7 @@ "start": 646, "end": 654 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1082,9 +1074,7 @@ "start": 954, "end": 962 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1119,9 +1109,7 @@ "start": 996, "end": 1004 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1482,9 +1470,7 @@ "start": 1280, "end": 1288 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1519,9 +1505,7 @@ "start": 1322, "end": 1330 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2224,9 +2208,7 @@ "start": 1932, "end": 1940 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2261,9 +2243,7 @@ "start": 1970, "end": 1978 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2696,9 +2676,7 @@ "start": 2300, "end": 2308 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -2733,9 +2711,7 @@ "start": 2338, "end": 2346 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json index d4561f2ce416..c68537347716 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json @@ -209,9 +209,7 @@ "start": 253, "end": 259 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json index 3822d9f21622..e4fb609eda3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json @@ -161,9 +161,7 @@ "start": 402, "end": 408 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -2215,9 +2213,7 @@ "start": 2132, "end": 2138 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -3081,9 +3077,7 @@ "start": 3254, "end": 3262 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3162,9 +3156,7 @@ "start": 3382, "end": 3390 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3356,9 +3348,7 @@ "start": 3722, "end": 3730 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3527,9 +3517,7 @@ "start": 3924, "end": 3932 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -3564,9 +3552,7 @@ "start": 3961, "end": 3969 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json index d266ff4e3c05..601a19906a3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json @@ -290,9 +290,7 @@ "start": 352, "end": 358 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -456,9 +454,7 @@ "start": 496, "end": 502 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -990,9 +986,7 @@ "start": 1001, "end": 1007 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1086,9 +1080,7 @@ "start": 1124, "end": 1130 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1331,9 +1323,7 @@ "start": 1408, "end": 1414 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1728,9 +1718,7 @@ "start": 1878, "end": 1884 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1894,9 +1882,7 @@ "start": 2022, "end": 2028 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json index 001f14bad2f6..094b86d24e2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json @@ -146,9 +146,7 @@ "start": 226, "end": 229 }, - "ctxt": 0, - "value": "pp1", - "optional": false + "value": "pp1" }, "value": null, "typeAnnotation": { @@ -205,9 +203,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "pp2", - "optional": false + "value": "pp2" }, "value": null, "typeAnnotation": { @@ -264,9 +260,7 @@ "start": 319, "end": 322 }, - "ctxt": 0, - "value": "pp3", - "optional": false + "value": "pp3" }, "function": { "params": [], @@ -327,9 +321,7 @@ "start": 362, "end": 368 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -411,9 +403,7 @@ "start": 404, "end": 407 }, - "ctxt": 0, - "value": "pp1", - "optional": false + "value": "pp1" } } }, @@ -446,9 +436,7 @@ "start": 429, "end": 432 }, - "ctxt": 0, - "value": "pp1", - "optional": false + "value": "pp1" } } } @@ -518,9 +506,7 @@ "start": 484, "end": 487 }, - "ctxt": 0, - "value": "pp2", - "optional": false + "value": "pp2" } } }, @@ -553,9 +539,7 @@ "start": 509, "end": 512 }, - "ctxt": 0, - "value": "pp2", - "optional": false + "value": "pp2" } } } @@ -625,9 +609,7 @@ "start": 564, "end": 567 }, - "ctxt": 0, - "value": "pp3", - "optional": false + "value": "pp3" } } }, @@ -660,9 +642,7 @@ "start": 589, "end": 592 }, - "ctxt": 0, - "value": "pp3", - "optional": false + "value": "pp3" } } } @@ -812,9 +792,7 @@ "start": 654, "end": 657 }, - "ctxt": 0, - "value": "pp2", - "optional": false + "value": "pp2" } } }, @@ -850,9 +828,7 @@ "start": 677, "end": 680 }, - "ctxt": 0, - "value": "pp2", - "optional": false + "value": "pp2" } } } @@ -925,9 +901,7 @@ "start": 722, "end": 725 }, - "ctxt": 0, - "value": "pp3", - "optional": false + "value": "pp3" } } }, @@ -963,9 +937,7 @@ "start": 745, "end": 748 }, - "ctxt": 0, - "value": "pp3", - "optional": false + "value": "pp3" } } } @@ -1137,9 +1109,7 @@ "start": 831, "end": 832 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1175,9 +1145,7 @@ "start": 854, "end": 855 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json index eecdf23ed4fe..91e89583bd17 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json @@ -161,9 +161,7 @@ "start": 218, "end": 224 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1772,9 +1770,7 @@ "start": 1712, "end": 1720 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1860,9 +1856,7 @@ "start": 1794, "end": 1802 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json index 5b306927c687..44e3e00b5888 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json @@ -161,9 +161,7 @@ "start": 304, "end": 310 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1772,9 +1770,7 @@ "start": 1734, "end": 1742 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -1860,9 +1856,7 @@ "start": 1830, "end": 1838 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json index e3140efda386..322d1e21e02a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json @@ -37,9 +37,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1340,9 +1338,7 @@ "start": 812, "end": 816 }, - "ctxt": 0, - "value": "exec", - "optional": false + "value": "exec" } }, "arguments": [ @@ -1458,9 +1454,7 @@ "start": 864, "end": 870 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1508,9 +1502,7 @@ "start": 882, "end": 888 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json index b8f9f93f2c49..fde7779984cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json @@ -219,9 +219,7 @@ "start": 291, "end": 297 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "params": [ { @@ -377,9 +375,7 @@ "start": 418, "end": 424 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -536,9 +532,7 @@ "start": 564, "end": 570 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -632,9 +626,7 @@ "start": 678, "end": 684 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -676,9 +668,7 @@ "start": 737, "end": 741 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "typeAnnotation": null, "body": { @@ -777,9 +767,7 @@ "start": 840, "end": 846 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -936,9 +924,7 @@ "start": 986, "end": 992 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -976,9 +962,7 @@ "start": 1045, "end": 1049 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "thisParam": null, "param": { @@ -1119,9 +1103,7 @@ "start": 1170, "end": 1176 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1278,9 +1260,7 @@ "start": 1316, "end": 1322 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1374,9 +1354,7 @@ "start": 1430, "end": 1436 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1465,9 +1443,7 @@ "start": 1515, "end": 1521 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [ @@ -1527,9 +1503,7 @@ "start": 1553, "end": 1559 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [ @@ -1619,9 +1593,7 @@ "start": 1625, "end": 1629 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } }, @@ -1657,9 +1629,7 @@ "start": 1651, "end": 1655 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json index fe819afb1e5f..92be158d41f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json @@ -37,9 +37,7 @@ "start": 262, "end": 266 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -103,9 +101,7 @@ "start": 291, "end": 298 }, - "ctxt": 0, - "value": "getData", - "optional": false + "value": "getData" }, "function": { "params": [], @@ -169,9 +165,7 @@ "start": 327, "end": 331 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -264,9 +258,7 @@ "start": 387, "end": 391 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -313,9 +305,7 @@ "start": 409, "end": 417 }, - "ctxt": 0, - "value": "getData1", - "optional": false + "value": "getData1" }, "function": { "params": [], @@ -378,9 +368,7 @@ "start": 449, "end": 453 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -413,9 +401,7 @@ "start": 474, "end": 478 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "alternate": { @@ -450,9 +436,7 @@ "start": 486, "end": 490 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -461,9 +445,7 @@ "start": 491, "end": 495 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -666,9 +648,7 @@ "start": 587, "end": 592 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" }, "value": { "type": "StringLiteral", @@ -688,9 +668,7 @@ "start": 613, "end": 618 }, - "ctxt": 0, - "value": "prop2", - "optional": false + "value": "prop2" }, "value": { "type": "BooleanLiteral", @@ -756,9 +734,7 @@ "start": 645, "end": 650 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" } } }, @@ -807,9 +783,7 @@ "start": 669, "end": 674 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" } }, "property": { @@ -818,9 +792,7 @@ "start": 675, "end": 686 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -887,9 +859,7 @@ "start": 707, "end": 712 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" } }, "definite": false @@ -973,9 +943,7 @@ "start": 753, "end": 770 }, - "ctxt": 0, - "value": "toLocaleLowerCase", - "optional": false + "value": "toLocaleLowerCase" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json index 5a16e145be0f..3394662a1f42 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json @@ -37,9 +37,7 @@ "start": 112, "end": 116 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -346,9 +344,7 @@ "start": 234, "end": 238 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -662,9 +658,7 @@ "start": 366, "end": 372 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -1129,9 +1123,7 @@ "start": 613, "end": 617 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json index 2085540da30d..fa1b9c11fe0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json @@ -61,9 +61,7 @@ "start": 16, "end": 17 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "NumericLiteral", @@ -151,9 +149,7 @@ "start": 58, "end": 59 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -195,9 +191,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -281,9 +275,7 @@ "start": 233, "end": 234 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -325,9 +317,7 @@ "start": 303, "end": 304 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -411,9 +401,7 @@ "start": 388, "end": 389 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -455,9 +443,7 @@ "start": 458, "end": 459 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -541,9 +527,7 @@ "start": 544, "end": 545 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -585,9 +569,7 @@ "start": 614, "end": 615 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -671,9 +653,7 @@ "start": 699, "end": 700 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } @@ -715,9 +695,7 @@ "start": 777, "end": 778 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json index ebd6a0ebf5f8..cd83aac6c599 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOf.json @@ -311,9 +311,7 @@ "start": 171, "end": 177 }, - "ctxt": 0, - "value": "global", - "optional": false + "value": "global" } } }, @@ -602,9 +600,7 @@ "start": 371, "end": 379 }, - "ctxt": 0, - "value": "validate", - "optional": false + "value": "validate" }, "function": { "params": [], @@ -924,9 +920,7 @@ "start": 857, "end": 866 }, - "ctxt": 0, - "value": "onChanges", - "optional": false + "value": "onChanges" } }, "consequent": { @@ -972,9 +966,7 @@ "start": 880, "end": 889 }, - "ctxt": 0, - "value": "onChanges", - "optional": false + "value": "onChanges" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json index 94b8b14a1011..f920a2dc1f57 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json @@ -331,9 +331,7 @@ "start": 180, "end": 183 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -365,9 +363,7 @@ "start": 194, "end": 197 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -491,9 +487,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -525,9 +519,7 @@ "start": 265, "end": 268 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -980,9 +972,7 @@ "start": 511, "end": 514 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1031,9 +1021,7 @@ "start": 529, "end": 532 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1082,9 +1070,7 @@ "start": 551, "end": 554 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -1225,9 +1211,7 @@ "start": 616, "end": 619 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1276,9 +1260,7 @@ "start": 638, "end": 641 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1327,9 +1309,7 @@ "start": 656, "end": 659 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -1973,9 +1953,7 @@ "start": 1028, "end": 1031 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2007,9 +1985,7 @@ "start": 1042, "end": 1043 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -2041,9 +2017,7 @@ "start": 1054, "end": 1058 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -2075,9 +2049,7 @@ "start": 1069, "end": 1073 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -2201,9 +2173,7 @@ "start": 1127, "end": 1130 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2235,9 +2205,7 @@ "start": 1141, "end": 1145 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -2269,9 +2237,7 @@ "start": 1156, "end": 1160 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -2567,9 +2533,7 @@ "start": 1332, "end": 1335 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2601,9 +2565,7 @@ "start": 1346, "end": 1349 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -2727,9 +2689,7 @@ "start": 1403, "end": 1406 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2761,9 +2721,7 @@ "start": 1417, "end": 1420 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -3268,9 +3226,7 @@ "start": 1728, "end": 1731 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3302,9 +3258,7 @@ "start": 1742, "end": 1746 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -3336,9 +3290,7 @@ "start": 1757, "end": 1761 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -3462,9 +3414,7 @@ "start": 1818, "end": 1821 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3496,9 +3446,7 @@ "start": 1833, "end": 1837 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -3530,9 +3478,7 @@ "start": 1849, "end": 1853 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -3891,9 +3837,7 @@ "start": 2141, "end": 2144 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3925,9 +3869,7 @@ "start": 2156, "end": 2159 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -4051,9 +3993,7 @@ "start": 2216, "end": 2219 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -4085,9 +4025,7 @@ "start": 2231, "end": 2234 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -4540,9 +4478,7 @@ "start": 2619, "end": 2623 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -4574,9 +4510,7 @@ "start": 2635, "end": 2639 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -4700,9 +4634,7 @@ "start": 2696, "end": 2700 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -4734,9 +4666,7 @@ "start": 2712, "end": 2716 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -5105,9 +5035,7 @@ "start": 3073, "end": 3076 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -5139,9 +5067,7 @@ "start": 3088, "end": 3091 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -5265,9 +5191,7 @@ "start": 3148, "end": 3152 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -5299,9 +5223,7 @@ "start": 3164, "end": 3168 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -5425,9 +5347,7 @@ "start": 3274, "end": 3278 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -5459,9 +5379,7 @@ "start": 3290, "end": 3294 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -5585,9 +5503,7 @@ "start": 3404, "end": 3408 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -5619,9 +5535,7 @@ "start": 3420, "end": 3424 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json index cd61da593fc9..08ec21354b4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json @@ -93,9 +93,7 @@ "start": 70, "end": 81 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -445,9 +443,7 @@ "start": 251, "end": 254 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -479,9 +475,7 @@ "start": 265, "end": 268 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -605,9 +599,7 @@ "start": 322, "end": 325 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -639,9 +631,7 @@ "start": 336, "end": 339 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -793,9 +783,7 @@ "start": 441, "end": 452 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -1224,9 +1212,7 @@ "start": 641, "end": 644 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1275,9 +1261,7 @@ "start": 659, "end": 662 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1326,9 +1310,7 @@ "start": 681, "end": 684 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -1469,9 +1451,7 @@ "start": 746, "end": 749 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1520,9 +1500,7 @@ "start": 768, "end": 771 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1571,9 +1549,7 @@ "start": 786, "end": 789 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "right": { @@ -1765,9 +1741,7 @@ "start": 933, "end": 944 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -2358,9 +2332,7 @@ "start": 1218, "end": 1221 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2392,9 +2364,7 @@ "start": 1232, "end": 1233 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -2426,9 +2396,7 @@ "start": 1244, "end": 1248 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -2460,9 +2428,7 @@ "start": 1259, "end": 1263 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -2586,9 +2552,7 @@ "start": 1317, "end": 1320 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2620,9 +2584,7 @@ "start": 1331, "end": 1335 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -2654,9 +2616,7 @@ "start": 1346, "end": 1350 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -2828,9 +2788,7 @@ "start": 1460, "end": 1471 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -3066,9 +3024,7 @@ "start": 1580, "end": 1583 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3100,9 +3056,7 @@ "start": 1594, "end": 1597 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -3226,9 +3180,7 @@ "start": 1651, "end": 1654 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3260,9 +3212,7 @@ "start": 1665, "end": 1668 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -3385,9 +3335,7 @@ "start": 1782, "end": 1793 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -3908,9 +3856,7 @@ "start": 2036, "end": 2039 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -3942,9 +3888,7 @@ "start": 2050, "end": 2054 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -3976,9 +3920,7 @@ "start": 2065, "end": 2069 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -4102,9 +4044,7 @@ "start": 2126, "end": 2129 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -4136,9 +4076,7 @@ "start": 2141, "end": 2145 }, - "ctxt": 0, - "value": "bar1", - "optional": false + "value": "bar1" } } }, @@ -4170,9 +4108,7 @@ "start": 2157, "end": 2161 }, - "ctxt": 0, - "value": "bar2", - "optional": false + "value": "bar2" } } } @@ -4258,9 +4194,7 @@ "start": 2262, "end": 2273 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -4635,9 +4569,7 @@ "start": 2505, "end": 2508 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -4669,9 +4601,7 @@ "start": 2520, "end": 2523 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -4795,9 +4725,7 @@ "start": 2580, "end": 2583 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -4829,9 +4757,7 @@ "start": 2595, "end": 2598 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -4972,9 +4898,7 @@ "start": 2776, "end": 2787 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -5398,9 +5322,7 @@ "start": 3060, "end": 3064 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -5432,9 +5354,7 @@ "start": 3076, "end": 3080 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -5558,9 +5478,7 @@ "start": 3137, "end": 3141 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -5592,9 +5510,7 @@ "start": 3153, "end": 3157 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -5725,9 +5641,7 @@ "start": 3384, "end": 3395 }, - "ctxt": 0, - "value": "hasInstance", - "optional": false + "value": "hasInstance" } }, "computed": true, @@ -6077,9 +5991,7 @@ "start": 3590, "end": 3593 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -6111,9 +6023,7 @@ "start": 3605, "end": 3608 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -6237,9 +6147,7 @@ "start": 3665, "end": 3669 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -6271,9 +6179,7 @@ "start": 3681, "end": 3685 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -6397,9 +6303,7 @@ "start": 3791, "end": 3795 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -6431,9 +6335,7 @@ "start": 3807, "end": 3811 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } @@ -6557,9 +6459,7 @@ "start": 3921, "end": 3925 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" } } }, @@ -6591,9 +6491,7 @@ "start": 3937, "end": 3941 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json b/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json index 7a75ca95e9a2..f2835d1f1afe 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json @@ -656,9 +656,7 @@ "start": 276, "end": 282 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -683,9 +681,7 @@ "start": 293, "end": 299 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -804,9 +800,7 @@ "start": 374, "end": 380 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -1065,9 +1059,7 @@ "start": 468, "end": 472 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json index 7ca3217b4539..f04b32435ad7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisGeneral.json @@ -37,9 +37,7 @@ "start": 87, "end": 93 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 114, "end": 126 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" }, "value": null, "typeAnnotation": { @@ -122,9 +118,7 @@ "start": 141, "end": 152 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -181,9 +175,7 @@ "start": 250, "end": 256 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } }, "definite": false @@ -268,9 +260,7 @@ "start": 294, "end": 300 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } }, "right": { @@ -301,9 +291,7 @@ "start": 395, "end": 405 }, - "ctxt": 0, - "value": "memberFunc", - "optional": false + "value": "memberFunc" }, "function": { "params": [ @@ -531,9 +519,7 @@ "start": 673, "end": 677 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "function": { "params": [], @@ -685,9 +671,7 @@ "start": 767, "end": 771 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "function": { "params": [ @@ -917,9 +901,7 @@ "start": 868, "end": 876 }, - "ctxt": 0, - "value": "someFunc", - "optional": false + "value": "someFunc" }, "value": { "type": "ArrowFunctionExpression", @@ -1061,9 +1043,7 @@ "start": 1119, "end": 1127 }, - "ctxt": 0, - "value": "staticFn", - "optional": false + "value": "staticFn" }, "function": { "params": [ @@ -1240,9 +1220,7 @@ "start": 1214, "end": 1226 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } }, @@ -1409,9 +1387,7 @@ "start": 1403, "end": 1415 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } } @@ -1441,9 +1417,7 @@ "start": 1439, "end": 1449 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" }, "function": { "params": [], @@ -1624,9 +1598,7 @@ "start": 1628, "end": 1640 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } }, @@ -1670,9 +1642,7 @@ "start": 1684, "end": 1694 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" }, "function": { "params": [ @@ -1897,9 +1867,7 @@ "start": 1894, "end": 1906 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } } @@ -1956,9 +1924,7 @@ "start": 1962, "end": 1968 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" }, "value": null, "typeAnnotation": { @@ -1998,9 +1964,7 @@ "start": 1989, "end": 2001 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" }, "value": null, "typeAnnotation": { @@ -2041,9 +2005,7 @@ "start": 2016, "end": 2027 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2100,9 +2062,7 @@ "start": 2125, "end": 2131 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } }, "definite": false @@ -2187,9 +2147,7 @@ "start": 2169, "end": 2175 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } }, "right": { @@ -2220,9 +2178,7 @@ "start": 2270, "end": 2280 }, - "ctxt": 0, - "value": "memberFunc", - "optional": false + "value": "memberFunc" }, "function": { "params": [ @@ -2538,9 +2494,7 @@ "start": 2574, "end": 2578 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "function": { "params": [], @@ -2736,9 +2690,7 @@ "start": 2681, "end": 2685 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "function": { "params": [ @@ -3012,9 +2964,7 @@ "start": 2795, "end": 2803 }, - "ctxt": 0, - "value": "someFunc", - "optional": false + "value": "someFunc" }, "value": { "type": "ArrowFunctionExpression", @@ -3200,9 +3150,7 @@ "start": 3059, "end": 3067 }, - "ctxt": 0, - "value": "staticFn", - "optional": false + "value": "staticFn" }, "function": { "params": [ @@ -3379,9 +3327,7 @@ "start": 3168, "end": 3180 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } }, @@ -3548,9 +3494,7 @@ "start": 3371, "end": 3383 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } } @@ -3580,9 +3524,7 @@ "start": 3407, "end": 3417 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" }, "function": { "params": [], @@ -3763,9 +3705,7 @@ "start": 3610, "end": 3622 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } }, @@ -3809,9 +3749,7 @@ "start": 3666, "end": 3676 }, - "ctxt": 0, - "value": "staticProp", - "optional": false + "value": "staticProp" }, "function": { "params": [ @@ -4036,9 +3974,7 @@ "start": 3897, "end": 3909 }, - "ctxt": 0, - "value": "staticCanary", - "optional": false + "value": "staticCanary" } } } @@ -4258,9 +4194,7 @@ "start": 4027, "end": 4038 }, - "ctxt": 0, - "value": "spaaaaaaace", - "optional": false + "value": "spaaaaaaace" } }, "right": { @@ -4390,9 +4324,7 @@ "start": 4147, "end": 4156 }, - "ctxt": 0, - "value": "spaaaaace", - "optional": false + "value": "spaaaaace" } }, "right": { @@ -4573,9 +4505,7 @@ "start": 4283, "end": 4294 }, - "ctxt": 0, - "value": "spaaaaaaace", - "optional": false + "value": "spaaaaaaace" } }, "right": { @@ -4705,9 +4635,7 @@ "start": 4402, "end": 4411 }, - "ctxt": 0, - "value": "spaaaaace", - "optional": false + "value": "spaaaaace" } }, "right": { @@ -4892,9 +4820,7 @@ "start": 4556, "end": 4567 }, - "ctxt": 0, - "value": "spaaaaaaace", - "optional": false + "value": "spaaaaaaace" } }, "right": { @@ -5034,9 +4960,7 @@ "start": 4704, "end": 4713 }, - "ctxt": 0, - "value": "spaaaaace", - "optional": false + "value": "spaaaaace" } }, "right": { @@ -5187,9 +5111,7 @@ "start": 4815, "end": 4824 }, - "ctxt": 0, - "value": "spaaaaace", - "optional": false + "value": "spaaaaace" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInAccessor.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInAccessor.json index 894bdba06b14..26b779d81976 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInAccessor.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -137,9 +135,7 @@ "start": 92, "end": 93 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -264,9 +260,7 @@ "start": 177, "end": 178 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -316,9 +310,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -416,9 +408,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -587,9 +577,7 @@ "start": 353, "end": 354 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "typeAnnotation": null, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInConstructorParamList.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInConstructorParamList.json index 7f87e55350bf..e23600f72785 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInConstructorParamList.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInConstructorParamList.json @@ -38,9 +38,7 @@ "start": 126, "end": 137 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInFunctionExpression.json index 4204ddf93a72..d21af042c974 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInFunctionExpression.json @@ -445,9 +445,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "FunctionExpression", @@ -581,9 +579,7 @@ "start": 306, "end": 307 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json index 90d0e641599f..f8dffec734a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -71,9 +69,7 @@ "start": 29, "end": 32 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -132,9 +128,7 @@ "start": 68, "end": 79 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -245,9 +239,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -279,9 +271,7 @@ "start": 138, "end": 139 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -313,9 +303,7 @@ "start": 151, "end": 152 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -375,9 +363,7 @@ "start": 172, "end": 175 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -404,9 +390,7 @@ "start": 194, "end": 195 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -564,9 +548,7 @@ "start": 260, "end": 261 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -634,9 +616,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -645,9 +625,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -656,9 +634,7 @@ "start": 278, "end": 279 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -714,9 +690,7 @@ "start": 292, "end": 293 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -779,9 +753,7 @@ "start": 306, "end": 309 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -905,9 +877,7 @@ "start": 339, "end": 346 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -969,9 +939,7 @@ "start": 360, "end": 363 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1003,9 +971,7 @@ "start": 371, "end": 372 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1037,9 +1003,7 @@ "start": 380, "end": 381 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json index 8cacabbad499..a444118196ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInInstanceMember2.json @@ -37,9 +37,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ThisExpression", @@ -71,9 +69,7 @@ "start": 32, "end": 35 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -132,9 +128,7 @@ "start": 71, "end": 82 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -255,9 +249,7 @@ "start": 123, "end": 124 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -289,9 +281,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -323,9 +313,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } }, @@ -385,9 +373,7 @@ "start": 170, "end": 173 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -414,9 +400,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "function": { "params": [], @@ -474,9 +458,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -672,9 +654,7 @@ "start": 277, "end": 278 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -742,9 +722,7 @@ "start": 291, "end": 292 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -753,9 +731,7 @@ "start": 293, "end": 294 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -764,9 +740,7 @@ "start": 295, "end": 296 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -822,9 +796,7 @@ "start": 309, "end": 310 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false @@ -887,9 +859,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -948,9 +918,7 @@ "start": 341, "end": 342 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "definite": false @@ -1071,9 +1039,7 @@ "start": 370, "end": 377 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -1135,9 +1101,7 @@ "start": 391, "end": 394 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -1169,9 +1133,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1203,9 +1165,7 @@ "start": 411, "end": 412 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1237,9 +1197,7 @@ "start": 420, "end": 421 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInMemberFunctions.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInMemberFunctions.json index 17b788e1e3b6..a473c8f86890 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInMemberFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInMemberFunctions.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -121,9 +119,7 @@ "start": 63, "end": 66 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -232,9 +228,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -284,9 +278,7 @@ "start": 130, "end": 133 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -368,9 +360,7 @@ "start": 178, "end": 181 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -509,9 +499,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -561,9 +549,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -645,9 +631,7 @@ "start": 306, "end": 309 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json index 4f516a298c5c..756127c7563e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -101,9 +99,7 @@ "start": 53, "end": 56 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -143,9 +139,7 @@ "start": 77, "end": 80 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -292,9 +286,7 @@ "start": 204, "end": 207 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -360,9 +352,7 @@ "start": 232, "end": 235 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -435,9 +425,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -543,9 +531,7 @@ "start": 304, "end": 308 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "value": null, "typeAnnotation": { @@ -586,9 +572,7 @@ "start": 322, "end": 333 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -649,9 +633,7 @@ "start": 360, "end": 363 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -691,9 +673,7 @@ "start": 384, "end": 387 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -870,9 +850,7 @@ "start": 513, "end": 516 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -938,9 +916,7 @@ "start": 542, "end": 545 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1013,9 +989,7 @@ "start": 563, "end": 566 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json index db2ff8537280..c2598e8f0825 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers10.json @@ -101,9 +101,7 @@ "start": 158, "end": 159 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -137,9 +135,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -167,9 +163,7 @@ "start": 185, "end": 186 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -250,9 +244,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -286,9 +278,7 @@ "start": 249, "end": 250 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -316,9 +306,7 @@ "start": 258, "end": 259 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -354,9 +342,7 @@ "start": 276, "end": 277 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -391,9 +377,7 @@ "start": 286, "end": 287 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -415,9 +399,7 @@ "start": 295, "end": 296 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -454,9 +436,7 @@ "start": 313, "end": 314 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -492,9 +472,7 @@ "start": 328, "end": 329 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -535,9 +513,7 @@ "start": 346, "end": 348 }, - "ctxt": 0, - "value": "ff", - "optional": false + "value": "ff" }, "value": { "type": "FunctionExpression", @@ -589,9 +565,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -635,9 +609,7 @@ "start": 389, "end": 392 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -687,9 +659,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -729,9 +699,7 @@ "start": 446, "end": 448 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [], @@ -781,9 +749,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -823,9 +789,7 @@ "start": 502, "end": 504 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [ @@ -909,9 +873,7 @@ "start": 532, "end": 533 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1005,9 +967,7 @@ "start": 574, "end": 575 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1041,9 +1001,7 @@ "start": 592, "end": 593 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -1071,9 +1029,7 @@ "start": 601, "end": 602 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1136,9 +1092,7 @@ "start": 644, "end": 645 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -1172,9 +1126,7 @@ "start": 662, "end": 663 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -1202,9 +1154,7 @@ "start": 671, "end": 672 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1240,9 +1190,7 @@ "start": 689, "end": 690 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -1277,9 +1225,7 @@ "start": 699, "end": 700 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1301,9 +1247,7 @@ "start": 708, "end": 709 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1340,9 +1284,7 @@ "start": 726, "end": 727 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -1378,9 +1320,7 @@ "start": 741, "end": 742 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1421,9 +1361,7 @@ "start": 759, "end": 761 }, - "ctxt": 0, - "value": "ff", - "optional": false + "value": "ff" }, "value": { "type": "FunctionExpression", @@ -1475,9 +1413,7 @@ "start": 783, "end": 784 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1521,9 +1457,7 @@ "start": 802, "end": 805 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1573,9 +1507,7 @@ "start": 831, "end": 832 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1615,9 +1547,7 @@ "start": 859, "end": 861 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [], @@ -1667,9 +1597,7 @@ "start": 887, "end": 888 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1709,9 +1637,7 @@ "start": 915, "end": 917 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [ @@ -1795,9 +1721,7 @@ "start": 945, "end": 946 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json index 4bdad041a35c..9cb193f7ce0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers11.json @@ -101,9 +101,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -137,9 +135,7 @@ "start": 175, "end": 176 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -167,9 +163,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -250,9 +244,7 @@ "start": 230, "end": 231 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -286,9 +278,7 @@ "start": 248, "end": 249 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -316,9 +306,7 @@ "start": 257, "end": 258 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -354,9 +342,7 @@ "start": 275, "end": 276 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -391,9 +377,7 @@ "start": 285, "end": 286 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -415,9 +399,7 @@ "start": 294, "end": 295 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -454,9 +436,7 @@ "start": 312, "end": 313 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -492,9 +472,7 @@ "start": 327, "end": 328 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -535,9 +513,7 @@ "start": 345, "end": 347 }, - "ctxt": 0, - "value": "ff", - "optional": false + "value": "ff" }, "value": { "type": "FunctionExpression", @@ -589,9 +565,7 @@ "start": 369, "end": 370 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -635,9 +609,7 @@ "start": 388, "end": 391 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -687,9 +659,7 @@ "start": 417, "end": 418 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -729,9 +699,7 @@ "start": 445, "end": 447 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [], @@ -781,9 +749,7 @@ "start": 473, "end": 474 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -823,9 +789,7 @@ "start": 501, "end": 503 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [ @@ -909,9 +873,7 @@ "start": 531, "end": 532 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1005,9 +967,7 @@ "start": 573, "end": 574 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1041,9 +1001,7 @@ "start": 591, "end": 592 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -1071,9 +1029,7 @@ "start": 600, "end": 601 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1136,9 +1092,7 @@ "start": 643, "end": 644 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -1172,9 +1126,7 @@ "start": 661, "end": 662 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -1202,9 +1154,7 @@ "start": 670, "end": 671 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1240,9 +1190,7 @@ "start": 688, "end": 689 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -1277,9 +1225,7 @@ "start": 698, "end": 699 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -1301,9 +1247,7 @@ "start": 707, "end": 708 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -1340,9 +1284,7 @@ "start": 725, "end": 726 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -1378,9 +1320,7 @@ "start": 740, "end": 741 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1421,9 +1361,7 @@ "start": 758, "end": 760 }, - "ctxt": 0, - "value": "ff", - "optional": false + "value": "ff" }, "value": { "type": "FunctionExpression", @@ -1475,9 +1413,7 @@ "start": 782, "end": 783 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1521,9 +1457,7 @@ "start": 801, "end": 804 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1573,9 +1507,7 @@ "start": 830, "end": 831 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1615,9 +1547,7 @@ "start": 858, "end": 860 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [], @@ -1667,9 +1597,7 @@ "start": 886, "end": 887 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1709,9 +1637,7 @@ "start": 914, "end": 916 }, - "ctxt": 0, - "value": "fa", - "optional": false + "value": "fa" }, "function": { "params": [ @@ -1795,9 +1721,7 @@ "start": 944, "end": 945 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers2.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers2.json index 9c8ee3033c23..e11d7d2f4d6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers2.json @@ -37,9 +37,7 @@ "start": 22, "end": 25 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ThisExpression", @@ -98,9 +96,7 @@ "start": 68, "end": 71 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ThisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers3.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers3.json index 482d73907e0b..5c7c29d2043b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers3.json @@ -37,9 +37,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 112, "end": 113 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -103,9 +99,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -168,9 +162,7 @@ "start": 162, "end": 163 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -204,9 +196,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -234,9 +224,7 @@ "start": 189, "end": 190 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -272,9 +260,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -309,9 +295,7 @@ "start": 217, "end": 218 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -333,9 +317,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers4.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers4.json index 5fe27498c6de..8076910724f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers4.json @@ -37,9 +37,7 @@ "start": 93, "end": 94 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -103,9 +99,7 @@ "start": 120, "end": 121 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -168,9 +162,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -204,9 +196,7 @@ "start": 179, "end": 180 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -234,9 +224,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -272,9 +260,7 @@ "start": 206, "end": 207 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -309,9 +295,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -333,9 +317,7 @@ "start": 225, "end": 226 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json index 6655e4c3c6a9..f2ee47da29c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json @@ -37,9 +37,7 @@ "start": 60, "end": 66 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "value": { "type": "ArrowFunctionExpression", @@ -108,9 +106,7 @@ "start": 96, "end": 107 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers6.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers6.json index 16969d6301e4..a083143c28df 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers6.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers6.json @@ -37,9 +37,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 62, "end": 63 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "CallExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers7.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers7.json index 8423f1b5dd70..9a705b0f29ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers7.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers7.json @@ -37,9 +37,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 78, "end": 79 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BinaryExpression", @@ -103,9 +99,7 @@ "start": 87, "end": 88 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -168,9 +162,7 @@ "start": 128, "end": 129 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NumericLiteral", @@ -204,9 +196,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "BinaryExpression", @@ -234,9 +224,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -272,9 +260,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "BinaryExpression", @@ -331,9 +317,7 @@ "start": 188, "end": 189 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -370,9 +354,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers8.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers8.json index 7b379a02a1dc..ffda3f3af75d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers8.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers8.json @@ -37,9 +37,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 78, "end": 99 }, - "ctxt": 0, - "value": "arrowFunctionBoundary", - "optional": false + "value": "arrowFunctionBoundary" }, "value": { "type": "ArrowFunctionExpression", @@ -111,9 +107,7 @@ "start": 113, "end": 114 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -154,9 +148,7 @@ "start": 131, "end": 151 }, - "ctxt": 0, - "value": "functionExprBoundary", - "optional": false + "value": "functionExprBoundary" }, "value": { "type": "FunctionExpression", @@ -208,9 +200,7 @@ "start": 180, "end": 181 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -254,9 +244,7 @@ "start": 200, "end": 217 }, - "ctxt": 0, - "value": "classExprBoundary", - "optional": false + "value": "classExprBoundary" }, "value": { "type": "ClassExpression", @@ -280,9 +268,7 @@ "start": 228, "end": 229 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BinaryExpression", @@ -310,9 +296,7 @@ "start": 237, "end": 238 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -366,9 +350,7 @@ "start": 257, "end": 285 }, - "ctxt": 0, - "value": "functionAndClassDeclBoundary", - "optional": false + "value": "functionAndClassDeclBoundary" }, "value": { "type": "CallExpression", @@ -459,9 +441,7 @@ "start": 347, "end": 348 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -514,9 +494,7 @@ "start": 394, "end": 395 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BinaryExpression", @@ -544,9 +522,7 @@ "start": 403, "end": 404 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -582,9 +558,7 @@ "start": 421, "end": 427 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -634,9 +608,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers9.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers9.json index 0560c3efa57f..d85cb920145d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers9.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers9.json @@ -37,9 +37,7 @@ "start": 60, "end": 61 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "NumericLiteral", @@ -100,9 +98,7 @@ "start": 100, "end": 121 }, - "ctxt": 0, - "value": "arrowFunctionBoundary", - "optional": false + "value": "arrowFunctionBoundary" }, "value": { "type": "ArrowFunctionExpression", @@ -138,9 +134,7 @@ "start": 136, "end": 137 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -181,9 +175,7 @@ "start": 154, "end": 174 }, - "ctxt": 0, - "value": "functionExprBoundary", - "optional": false + "value": "functionExprBoundary" }, "value": { "type": "FunctionExpression", @@ -235,9 +227,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -281,9 +271,7 @@ "start": 224, "end": 241 }, - "ctxt": 0, - "value": "classExprBoundary", - "optional": false + "value": "classExprBoundary" }, "value": { "type": "ClassExpression", @@ -307,9 +295,7 @@ "start": 252, "end": 253 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BinaryExpression", @@ -337,9 +323,7 @@ "start": 262, "end": 263 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -393,9 +377,7 @@ "start": 282, "end": 310 }, - "ctxt": 0, - "value": "functionAndClassDeclBoundary", - "optional": false + "value": "functionAndClassDeclBoundary" }, "value": { "type": "CallExpression", @@ -486,9 +468,7 @@ "start": 373, "end": 374 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -541,9 +521,7 @@ "start": 419, "end": 420 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BinaryExpression", @@ -571,9 +549,7 @@ "start": 429, "end": 430 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { @@ -609,9 +585,7 @@ "start": 447, "end": 453 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -661,9 +635,7 @@ "start": 488, "end": 489 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json index bf2ee1a89753..615314338b2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json @@ -239,9 +239,7 @@ "start": 148, "end": 153 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" }, "value": null, "typeAnnotation": { @@ -291,9 +289,7 @@ "start": 167, "end": 173 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -367,9 +363,7 @@ "start": 213, "end": 218 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -378,9 +372,7 @@ "start": 219, "end": 223 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -422,9 +414,7 @@ "start": 242, "end": 247 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -433,9 +423,7 @@ "start": 248, "end": 252 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -522,9 +510,7 @@ "start": 311, "end": 316 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -533,9 +519,7 @@ "start": 317, "end": 321 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "definite": false @@ -599,9 +583,7 @@ "start": 365, "end": 370 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" }, "value": null, "typeAnnotation": { @@ -651,9 +633,7 @@ "start": 384, "end": 390 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -774,9 +754,7 @@ "start": 459, "end": 464 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -785,9 +763,7 @@ "start": 465, "end": 469 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -839,9 +815,7 @@ "start": 510, "end": 515 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -850,9 +824,7 @@ "start": 516, "end": 520 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -933,9 +905,7 @@ "start": 561, "end": 566 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } }, "property": { @@ -944,9 +914,7 @@ "start": 568, "end": 572 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json index a3e3a5931ac1..7d59cdf7ce8d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json @@ -301,9 +301,7 @@ "start": 214, "end": 225 }, - "ctxt": 0, - "value": "displayName", - "optional": false + "value": "displayName" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json index 4bca4042f70c..38b7aefa6422 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeArgument.json @@ -380,9 +380,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json index fda9a9317b11..d37a18f3f902 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json @@ -787,9 +787,7 @@ "start": 354, "end": 355 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -821,9 +819,7 @@ "start": 364, "end": 365 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -843,9 +839,7 @@ "start": 370, "end": 371 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1215,9 +1209,7 @@ "start": 472, "end": 478 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "NumericLiteral", @@ -1289,9 +1281,7 @@ "start": 497, "end": 502 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "NumericLiteral", @@ -1311,9 +1301,7 @@ "start": 507, "end": 513 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json index fbcd61d1b788..d349ba8ba70f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json @@ -853,9 +853,7 @@ "start": 436, "end": 442 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "StringLiteral", @@ -927,9 +925,7 @@ "start": 461, "end": 467 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json index 7d26eaf853a1..fc3cef5b03fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json @@ -788,9 +788,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -822,9 +820,7 @@ "start": 401, "end": 402 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -844,9 +840,7 @@ "start": 407, "end": 408 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -878,9 +872,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -900,9 +892,7 @@ "start": 424, "end": 425 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -922,9 +912,7 @@ "start": 431, "end": 432 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "BooleanLiteral", @@ -1076,9 +1064,7 @@ "start": 469, "end": 472 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -1098,9 +1084,7 @@ "start": 477, "end": 480 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -1120,9 +1104,7 @@ "start": 486, "end": 488 }, - "ctxt": 0, - "value": "hm", - "optional": false + "value": "hm" }, "value": { "type": "BooleanLiteral", @@ -1790,9 +1772,7 @@ "start": 749, "end": 752 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -1812,9 +1792,7 @@ "start": 757, "end": 760 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -1834,9 +1812,7 @@ "start": 766, "end": 768 }, - "ctxt": 0, - "value": "hm", - "optional": false + "value": "hm" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json index a6b97b71b08a..1efff3386966 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json @@ -788,9 +788,7 @@ "start": 475, "end": 476 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -822,9 +820,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -844,9 +840,7 @@ "start": 491, "end": 492 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -878,9 +872,7 @@ "start": 502, "end": 503 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -900,9 +892,7 @@ "start": 508, "end": 509 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -922,9 +912,7 @@ "start": 514, "end": 515 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "BooleanLiteral", @@ -1063,9 +1051,7 @@ "start": 549, "end": 552 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "NumericLiteral", @@ -1085,9 +1071,7 @@ "start": 557, "end": 560 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "StringLiteral", @@ -1107,9 +1091,7 @@ "start": 566, "end": 568 }, - "ctxt": 0, - "value": "hm", - "optional": false + "value": "hm" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json index c566d75ef3a7..cb932700cabb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAssignability3.json @@ -37,9 +37,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -642,9 +640,7 @@ "start": 382, "end": 383 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" }, "value": null, "typeAnnotation": { @@ -694,9 +690,7 @@ "start": 392, "end": 393 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" }, "value": null, "typeAnnotation": { @@ -746,9 +740,7 @@ "start": 402, "end": 403 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "ArrowFunctionExpression", @@ -798,9 +790,7 @@ "start": 427, "end": 428 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } }, "right": { @@ -822,9 +812,7 @@ "start": 436, "end": 437 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } } } @@ -861,9 +849,7 @@ "start": 461, "end": 462 }, - "ctxt": 0, - "value": "u", - "optional": false + "value": "u" } }, "right": { @@ -885,9 +871,7 @@ "start": 470, "end": 471 }, - "ctxt": 0, - "value": "t", - "optional": false + "value": "t" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json index 19abf1d2b72d..c474a3066c7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json @@ -317,9 +317,7 @@ "start": 147, "end": 151 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "StringLiteral", @@ -339,9 +337,7 @@ "start": 162, "end": 168 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -358,9 +354,7 @@ "start": 176, "end": 186 }, - "ctxt": 0, - "value": "nestedProp", - "optional": false + "value": "nestedProp" }, "value": { "type": "StringLiteral", @@ -697,9 +691,7 @@ "start": 325, "end": 329 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "StringLiteral", @@ -719,9 +711,7 @@ "start": 340, "end": 346 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -738,9 +728,7 @@ "start": 354, "end": 364 }, - "ctxt": 0, - "value": "nestedProp", - "optional": false + "value": "nestedProp" }, "value": { "type": "StringLiteral", @@ -1077,9 +1065,7 @@ "start": 504, "end": 508 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "StringLiteral", @@ -1099,9 +1085,7 @@ "start": 519, "end": 525 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "ObjectExpression", @@ -1118,9 +1102,7 @@ "start": 533, "end": 543 }, - "ctxt": 0, - "value": "nestedProp", - "optional": false + "value": "nestedProp" }, "value": { "type": "StringLiteral", @@ -1765,9 +1747,7 @@ "start": 828, "end": 829 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json index 953b0d6e6858..8f9ef0276012 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json @@ -509,9 +509,7 @@ "start": 324, "end": 336 }, - "ctxt": 0, - "value": "produceThing", - "optional": false + "value": "produceThing" }, "value": { "type": "TsAsExpression", @@ -589,9 +587,7 @@ "start": 370, "end": 375 }, - "ctxt": 0, - "value": "useIt", - "optional": false + "value": "useIt" }, "value": { "type": "ObjectExpression", @@ -608,9 +604,7 @@ "start": 383, "end": 387 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -633,9 +627,7 @@ "start": 403, "end": 408 }, - "ctxt": 0, - "value": "extra", - "optional": false + "value": "extra" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json index daa86fcb8451..71f40dffbe42 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterUsedAsTypeParameterConstraint4.json @@ -37,9 +37,7 @@ "start": 144, "end": 145 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 163, "end": 166 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json b/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json index 50bbff01419f..217c05cc625d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParametersAreIdenticalToThemselves.json @@ -1349,9 +1349,7 @@ "start": 593, "end": 597 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -1430,9 +1428,7 @@ "start": 609, "end": 613 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -1511,9 +1507,7 @@ "start": 642, "end": 646 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -1600,9 +1594,7 @@ "start": 662, "end": 666 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1754,9 +1746,7 @@ "start": 687, "end": 691 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -1908,9 +1898,7 @@ "start": 758, "end": 762 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -2070,9 +2058,7 @@ "start": 787, "end": 791 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2181,9 +2167,7 @@ "start": 806, "end": 810 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2292,9 +2276,7 @@ "start": 871, "end": 875 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -2411,9 +2393,7 @@ "start": 894, "end": 898 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "function": { "params": [ @@ -2539,9 +2519,7 @@ "start": 926, "end": 930 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "function": { "params": [ @@ -2667,9 +2645,7 @@ "start": 1004, "end": 1008 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "function": { "params": [ @@ -2860,9 +2836,7 @@ "start": 1069, "end": 1073 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -2941,9 +2915,7 @@ "start": 1085, "end": 1089 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -3022,9 +2994,7 @@ "start": 1118, "end": 1122 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [ @@ -3111,9 +3081,7 @@ "start": 1138, "end": 1142 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -3265,9 +3233,7 @@ "start": 1163, "end": 1167 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -3419,9 +3385,7 @@ "start": 1234, "end": 1238 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [ @@ -3581,9 +3545,7 @@ "start": 1263, "end": 1267 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -3692,9 +3654,7 @@ "start": 1282, "end": 1286 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ @@ -3803,9 +3763,7 @@ "start": 1347, "end": 1351 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json index 1a0f708498d4..f3a45d112204 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParametersAvailableInNestedScope.json @@ -37,9 +37,7 @@ "start": 18, "end": 22 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": null, "typeAnnotation": { @@ -89,9 +87,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "ArrowFunctionExpression", @@ -278,9 +274,7 @@ "start": 98, "end": 101 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -696,9 +690,7 @@ "start": 259, "end": 263 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -730,9 +722,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "arguments": [ @@ -786,9 +776,7 @@ "start": 279, "end": 283 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -820,9 +808,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json b/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json index 7b7621ae099f..65f1d6fb2c4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json +++ b/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -94,9 +92,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -150,9 +146,7 @@ "start": 74, "end": 85 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -202,9 +196,7 @@ "start": 112, "end": 115 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -273,9 +265,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -344,9 +334,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -409,9 +397,7 @@ "start": 185, "end": 188 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -474,9 +460,7 @@ "start": 208, "end": 210 }, - "ctxt": 0, - "value": "sa", - "optional": false + "value": "sa" }, "value": { "type": "NumericLiteral", @@ -510,9 +494,7 @@ "start": 227, "end": 229 }, - "ctxt": 0, - "value": "sb", - "optional": false + "value": "sb" }, "value": { "type": "ArrowFunctionExpression", @@ -559,9 +541,7 @@ "start": 257, "end": 259 }, - "ctxt": 0, - "value": "sc", - "optional": false + "value": "sc" }, "function": { "params": [], @@ -621,9 +601,7 @@ "start": 303, "end": 305 }, - "ctxt": 0, - "value": "sc", - "optional": false + "value": "sc" }, "function": { "params": [ @@ -686,9 +664,7 @@ "start": 333, "end": 335 }, - "ctxt": 0, - "value": "sd", - "optional": false + "value": "sd" }, "function": { "params": [], @@ -748,9 +724,7 @@ "start": 369, "end": 372 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -844,9 +818,7 @@ "start": 404, "end": 406 }, - "ctxt": 0, - "value": "ia", - "optional": false + "value": "ia" }, "value": { "type": "NumericLiteral", @@ -880,9 +852,7 @@ "start": 416, "end": 418 }, - "ctxt": 0, - "value": "ib", - "optional": false + "value": "ib" }, "value": { "type": "ArrowFunctionExpression", @@ -911,9 +881,7 @@ "start": 432, "end": 434 }, - "ctxt": 0, - "value": "ia", - "optional": false + "value": "ia" } }, "async": false, @@ -944,9 +912,7 @@ "start": 445, "end": 447 }, - "ctxt": 0, - "value": "ic", - "optional": false + "value": "ic" }, "function": { "params": [], @@ -1006,9 +972,7 @@ "start": 484, "end": 486 }, - "ctxt": 0, - "value": "ic", - "optional": false + "value": "ic" }, "function": { "params": [ @@ -1071,9 +1035,7 @@ "start": 507, "end": 509 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "function": { "params": [], @@ -1375,9 +1337,7 @@ "start": 629, "end": 640 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1427,9 +1387,7 @@ "start": 660, "end": 661 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -1479,9 +1437,7 @@ "start": 670, "end": 673 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeQueryWithReservedWords.json b/crates/swc_ecma_parser/tests/tsc/typeQueryWithReservedWords.json index 21885480b9dd..61c1244e1ad7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeQueryWithReservedWords.json +++ b/crates/swc_ecma_parser/tests/tsc/typeQueryWithReservedWords.json @@ -37,9 +37,7 @@ "start": 24, "end": 30 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 45, "end": 51 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" }, "function": { "params": [], @@ -127,9 +123,7 @@ "start": 66, "end": 69 }, - "ctxt": 0, - "value": "var", - "optional": false + "value": "var" }, "function": { "params": [], @@ -226,8 +220,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 121, + "end": 148 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 121, + "end": 141 + }, "left": { "type": "Identifier", "span": { @@ -244,9 +246,7 @@ "start": 132, "end": 141 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -255,9 +255,7 @@ "start": 142, "end": 148 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "typeArguments": null @@ -297,8 +295,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 171, + "end": 198 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 171, + "end": 191 + }, "left": { "type": "Identifier", "span": { @@ -315,9 +321,7 @@ "start": 182, "end": 191 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -326,9 +330,7 @@ "start": 192, "end": 198 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "typeArguments": null @@ -368,8 +370,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 237, + "end": 261 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 237, + "end": 257 + }, "left": { "type": "Identifier", "span": { @@ -386,9 +396,7 @@ "start": 248, "end": 257 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -397,9 +405,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "var", - "optional": false + "value": "var" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/typeRelationships.json b/crates/swc_ecma_parser/tests/tsc/typeRelationships.json index 1bff8bca216a..57fe96163acc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/typeRelationships.json @@ -37,9 +37,7 @@ "start": 15, "end": 19 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" }, "value": { "type": "ThisExpression", @@ -71,9 +69,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "NewExpression", @@ -118,9 +114,7 @@ "start": 49, "end": 52 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -178,9 +172,7 @@ "start": 88, "end": 90 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -230,9 +222,7 @@ "start": 108, "end": 109 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -254,9 +244,7 @@ "start": 117, "end": 121 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } } @@ -293,9 +281,7 @@ "start": 136, "end": 140 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -317,9 +303,7 @@ "start": 148, "end": 149 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -350,9 +334,7 @@ "start": 171, "end": 173 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" }, "function": { "params": [], @@ -498,9 +480,7 @@ "start": 226, "end": 227 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -627,9 +607,7 @@ "start": 316, "end": 320 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } }, @@ -688,9 +666,7 @@ "start": 350, "end": 352 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" }, "function": { "params": [ @@ -783,9 +759,7 @@ "start": 391, "end": 392 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "alternate": { @@ -807,9 +781,7 @@ "start": 400, "end": 404 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } } @@ -867,9 +839,7 @@ "start": 455, "end": 460 }, - "ctxt": 0, - "value": "self1", - "optional": false + "value": "self1" }, "value": { "type": "ThisExpression", @@ -901,9 +871,7 @@ "start": 473, "end": 478 }, - "ctxt": 0, - "value": "self2", - "optional": false + "value": "self2" }, "value": { "type": "MemberExpression", @@ -924,9 +892,7 @@ "start": 486, "end": 490 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "typeAnnotation": null, @@ -952,9 +918,7 @@ "start": 496, "end": 501 }, - "ctxt": 0, - "value": "self3", - "optional": false + "value": "self3" }, "value": { "type": "CallExpression", @@ -982,9 +946,7 @@ "start": 509, "end": 512 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1013,9 +975,7 @@ "start": 520, "end": 521 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NewExpression", @@ -1060,9 +1020,7 @@ "start": 537, "end": 540 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [], @@ -1112,9 +1070,7 @@ "start": 558, "end": 562 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -1136,9 +1092,7 @@ "start": 570, "end": 575 }, - "ctxt": 0, - "value": "self1", - "optional": false + "value": "self1" } } } @@ -1175,9 +1129,7 @@ "start": 590, "end": 594 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -1199,9 +1151,7 @@ "start": 602, "end": 607 }, - "ctxt": 0, - "value": "self2", - "optional": false + "value": "self2" } } } @@ -1238,9 +1188,7 @@ "start": 622, "end": 626 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -1262,9 +1210,7 @@ "start": 634, "end": 639 }, - "ctxt": 0, - "value": "self3", - "optional": false + "value": "self3" } } } @@ -1301,9 +1247,7 @@ "start": 654, "end": 659 }, - "ctxt": 0, - "value": "self1", - "optional": false + "value": "self1" } }, "right": { @@ -1325,9 +1269,7 @@ "start": 667, "end": 671 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } } @@ -1364,9 +1306,7 @@ "start": 686, "end": 691 }, - "ctxt": 0, - "value": "self2", - "optional": false + "value": "self2" } }, "right": { @@ -1388,9 +1328,7 @@ "start": 699, "end": 703 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } } @@ -1427,9 +1365,7 @@ "start": 718, "end": 723 }, - "ctxt": 0, - "value": "self3", - "optional": false + "value": "self3" } }, "right": { @@ -1451,9 +1387,7 @@ "start": 731, "end": 735 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } } @@ -1490,9 +1424,7 @@ "start": 750, "end": 751 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -1514,9 +1446,7 @@ "start": 759, "end": 763 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } } } @@ -1553,9 +1483,7 @@ "start": 778, "end": 779 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "right": { @@ -1577,9 +1505,7 @@ "start": 787, "end": 788 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } } @@ -1616,9 +1542,7 @@ "start": 813, "end": 817 }, - "ctxt": 0, - "value": "self", - "optional": false + "value": "self" } }, "right": { @@ -1640,9 +1564,7 @@ "start": 825, "end": 826 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } @@ -1679,9 +1601,7 @@ "start": 851, "end": 852 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "right": { @@ -1703,9 +1623,7 @@ "start": 860, "end": 861 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json index 568793ac6e77..a319d92f3b65 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping1.json @@ -174,9 +174,7 @@ "start": 77, "end": 83 }, - "ctxt": 0, - "value": "isEven", - "optional": false + "value": "isEven" }, "value": { "type": "ArrowFunctionExpression", @@ -256,9 +254,7 @@ "start": 107, "end": 112 }, - "ctxt": 0, - "value": "isOdd", - "optional": false + "value": "isOdd" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json index 7a53fb7957f9..b31b6c3c4fd5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping2.json @@ -181,9 +181,7 @@ "start": 85, "end": 86 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { @@ -234,9 +232,7 @@ "start": 134, "end": 135 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "params": [ { @@ -441,9 +437,7 @@ "start": 267, "end": 268 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json index 58af314ba7df..42593ca914e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json @@ -53,9 +53,7 @@ "start": 138, "end": 141 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", @@ -278,9 +276,7 @@ "start": 252, "end": 255 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json index b80cc88b08f6..2480dddaf492 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_ensureInterfaceImpl.json @@ -143,9 +143,7 @@ "start": 74, "end": 79 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" }, "params": [], "decorators": [], @@ -176,9 +174,7 @@ "start": 91, "end": 95 }, - "ctxt": 0, - "value": "move", - "optional": false + "value": "move" }, "params": [ { @@ -229,9 +225,7 @@ "start": 142, "end": 146 }, - "ctxt": 0, - "value": "stop", - "optional": false + "value": "stop" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_optionalMemberConformance.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_optionalMemberConformance.json index 3ee480bd0000..5fc2ccc5847d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_optionalMemberConformance.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_optionalMemberConformance.json @@ -151,9 +151,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -251,9 +249,7 @@ "start": 162, "end": 165 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -294,9 +290,7 @@ "start": 168, "end": 169 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "property": { @@ -305,9 +299,7 @@ "start": 170, "end": 177 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -367,9 +359,7 @@ "start": 208, "end": 209 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json index 5f4b2c5af63a..f36dc4a49015 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json @@ -145,9 +145,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -167,9 +165,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -189,9 +185,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -350,9 +344,7 @@ "start": 240, "end": 241 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -361,9 +353,7 @@ "start": 242, "end": 249 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -435,9 +425,7 @@ "start": 263, "end": 264 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -446,9 +434,7 @@ "start": 265, "end": 274 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -520,9 +506,7 @@ "start": 334, "end": 335 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json index c46c3e0cf833..182a7fbaeb3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json @@ -145,9 +145,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -167,9 +165,7 @@ "start": 63, "end": 64 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -189,9 +185,7 @@ "start": 79, "end": 80 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -324,9 +318,7 @@ "start": 231, "end": 232 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -335,9 +327,7 @@ "start": 233, "end": 240 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [], @@ -409,9 +399,7 @@ "start": 254, "end": 255 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -420,9 +408,7 @@ "start": 256, "end": 265 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -494,9 +480,7 @@ "start": 325, "end": 326 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json index 70d5572e1162..56a89aaadae2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json @@ -320,9 +320,7 @@ "start": 207, "end": 208 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "BooleanLiteral", @@ -456,9 +454,7 @@ "start": 344, "end": 347 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -486,9 +482,7 @@ "start": 350, "end": 351 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } @@ -559,9 +553,7 @@ "start": 375, "end": 376 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "definite": false @@ -661,9 +653,7 @@ "start": 482, "end": 483 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "BooleanLiteral", @@ -682,9 +672,7 @@ "start": 495, "end": 496 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json index 7576287c996c..95f0eb7df271 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json @@ -320,9 +320,7 @@ "start": 197, "end": 198 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "BooleanLiteral", @@ -456,9 +454,7 @@ "start": 276, "end": 279 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -486,9 +482,7 @@ "start": 282, "end": 283 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } } } @@ -559,9 +553,7 @@ "start": 356, "end": 357 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "definite": false @@ -661,9 +653,7 @@ "start": 463, "end": 464 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "BooleanLiteral", @@ -682,9 +672,7 @@ "start": 476, "end": 477 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance3.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance3.json index 21392b50d56e..4af6acd7b1b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance3.json @@ -199,9 +199,7 @@ "start": 156, "end": 161 }, - "ctxt": 0, - "value": "white", - "optional": false + "value": "white" }, "value": { "type": "ObjectExpression", @@ -218,9 +216,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -240,9 +236,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -262,9 +256,7 @@ "start": 181, "end": 182 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -287,9 +279,7 @@ "start": 195, "end": 200 }, - "ctxt": 0, - "value": "black", - "optional": false + "value": "black" }, "value": { "type": "ObjectExpression", @@ -306,9 +296,7 @@ "start": 204, "end": 205 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -328,9 +316,7 @@ "start": 210, "end": 211 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -350,9 +336,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -375,9 +359,7 @@ "start": 260, "end": 264 }, - "ctxt": 0, - "value": "blue", - "optional": false + "value": "blue" }, "value": { "type": "ObjectExpression", @@ -394,9 +376,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": { "type": "NumericLiteral", @@ -416,9 +396,7 @@ "start": 274, "end": 275 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": { "type": "NumericLiteral", @@ -438,9 +416,7 @@ "start": 280, "end": 281 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json index d97ee8b986a8..16e585d4f38c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json @@ -221,9 +221,7 @@ "start": 77, "end": 80 }, - "ctxt": 0, - "value": "xyz", - "optional": false + "value": "xyz" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typeTagCircularReferenceOnConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/typeTagCircularReferenceOnConstructorFunction.json index 3a0d89d3e856..9355acdcfe52 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeTagCircularReferenceOnConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeTagCircularReferenceOnConstructorFunction.json @@ -74,9 +74,7 @@ "start": 138, "end": 147 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeTagModuleExports.json b/crates/swc_ecma_parser/tests/tsc/typeTagModuleExports.json index 488a90d35ea5..2a7b1a469ab6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeTagModuleExports.json +++ b/crates/swc_ecma_parser/tests/tsc/typeTagModuleExports.json @@ -40,9 +40,7 @@ "start": 109, "end": 116 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json index dd275d860294..8d341b2cd50e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json @@ -47,9 +47,7 @@ "start": 132, "end": 133 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -69,9 +67,7 @@ "start": 173, "end": 174 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "ArrowFunctionExpression", @@ -130,9 +126,7 @@ "start": 191, "end": 192 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -164,9 +158,7 @@ "start": 195, "end": 196 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeTagPrototypeAssignment.json b/crates/swc_ecma_parser/tests/tsc/typeTagPrototypeAssignment.json index 337fa3377edb..1ec88ead2ba5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeTagPrototypeAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeTagPrototypeAssignment.json @@ -74,9 +74,7 @@ "start": 121, "end": 130 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json index a1c79d4e721b..d09acd7ad991 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json @@ -122,9 +122,7 @@ "start": 297, "end": 304 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -199,9 +197,7 @@ "start": 333, "end": 334 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -288,9 +284,7 @@ "start": 545, "end": 546 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -347,9 +341,7 @@ "start": 734, "end": 735 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "right": { @@ -402,9 +394,7 @@ "start": 760, "end": 761 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "right": { @@ -469,9 +459,7 @@ "start": 841, "end": 845 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -491,9 +479,7 @@ "start": 852, "end": 853 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json index 4d4dd9aaf43b..73ae1c02a263 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json @@ -66,9 +66,7 @@ "start": 184, "end": 187 }, - "ctxt": 0, - "value": "Bar", - "optional": false + "value": "Bar" } }, "right": { @@ -124,9 +122,7 @@ "start": 237, "end": 244 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -144,9 +140,7 @@ "start": 253, "end": 256 }, - "ctxt": 0, - "value": "Baz", - "optional": false + "value": "Baz" }, "value": { "type": "ClassExpression", @@ -244,9 +238,7 @@ "start": 359, "end": 363 }, - "ctxt": 0, - "value": "Quid", - "optional": false + "value": "Quid" } }, "right": { @@ -295,9 +287,7 @@ "start": 408, "end": 415 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -315,9 +305,7 @@ "start": 424, "end": 429 }, - "ctxt": 0, - "value": "Quack", - "optional": false + "value": "Quack" }, "value": { "type": "NumericLiteral", @@ -517,9 +505,7 @@ "start": 585, "end": 588 }, - "ctxt": 0, - "value": "Baz", - "optional": false + "value": "Baz" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule3.json b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule3.json index 3c72f2cbad51..7db01381cd51 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule3.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule3.json @@ -79,9 +79,7 @@ "start": 124, "end": 127 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" } }, "right": { @@ -137,9 +135,7 @@ "start": 146, "end": 153 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule4.json b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule4.json index 261b9a1d0993..72c8deb4b0af 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule4.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule4.json @@ -66,9 +66,7 @@ "start": 127, "end": 134 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -86,9 +84,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "Foo", - "optional": false + "value": "Foo" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/typedefInnerNamepaths.json b/crates/swc_ecma_parser/tests/tsc/typedefInnerNamepaths.json index fd86d440b7c2..004e77f0d387 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefInnerNamepaths.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefInnerNamepaths.json @@ -38,9 +38,7 @@ "start": 191, "end": 202 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json b/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json index 186004f73613..3b2e82f4995b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json @@ -50,9 +50,7 @@ "start": 187, "end": 188 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json b/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json index 0360fbf71cf6..a7947fe06fc1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json @@ -47,9 +47,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "bye", - "optional": false + "value": "bye" }, "value": { "type": "StringLiteral", @@ -119,9 +117,7 @@ "start": 260, "end": 268 }, - "ctxt": 0, - "value": "ignoreMe", - "optional": false + "value": "ignoreMe" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json b/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json index 181e02ad772d..2c538c8406e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json @@ -79,9 +79,7 @@ "start": 294, "end": 298 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -101,9 +99,7 @@ "start": 312, "end": 317 }, - "ctxt": 0, - "value": "icons", - "optional": false + "value": "icons" }, "value": { "type": "ObjectExpression", @@ -120,9 +116,7 @@ "start": 329, "end": 336 }, - "ctxt": 0, - "value": "image32", - "optional": false + "value": "image32" }, "value": { "type": "StringLiteral", @@ -142,9 +136,7 @@ "start": 355, "end": 362 }, - "ctxt": 0, - "value": "image64", - "optional": false + "value": "image64" }, "value": { "type": "StringLiteral", @@ -279,9 +271,7 @@ "start": 719, "end": 723 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -301,9 +291,7 @@ "start": 736, "end": 739 }, - "ctxt": 0, - "value": "not", - "optional": false + "value": "not" }, "value": { "type": "NumericLiteral", @@ -323,9 +311,7 @@ "start": 744, "end": 750 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" }, "value": { "type": "StringLiteral", @@ -371,9 +357,7 @@ "start": 765, "end": 769 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -405,9 +389,7 @@ "start": 775, "end": 778 }, - "ctxt": 0, - "value": "not", - "optional": false + "value": "not" } } }, @@ -439,9 +421,7 @@ "start": 784, "end": 790 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typedefTagWrapping.json b/crates/swc_ecma_parser/tests/tsc/typedefTagWrapping.json index 00ca6d5fe814..26f8c5a16c11 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefTagWrapping.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefTagWrapping.json @@ -202,9 +202,7 @@ "start": 699, "end": 702 }, - "ctxt": 0, - "value": "boo", - "optional": false + "value": "boo" } }, "consequent": { @@ -229,9 +227,7 @@ "start": 709, "end": 712 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } }, "alternate": { @@ -256,9 +252,7 @@ "start": 719, "end": 722 }, - "ctxt": 0, - "value": "str", - "optional": false + "value": "str" } } } @@ -710,9 +704,7 @@ "start": 2032, "end": 2035 }, - "ctxt": 0, - "value": "boo", - "optional": false + "value": "boo" } }, "consequent": { @@ -737,9 +729,7 @@ "start": 2042, "end": 2045 }, - "ctxt": 0, - "value": "num", - "optional": false + "value": "num" } }, "alternate": { @@ -764,9 +754,7 @@ "start": 2052, "end": 2055 }, - "ctxt": 0, - "value": "str", - "optional": false + "value": "str" } } } @@ -854,9 +842,7 @@ "start": 2318, "end": 2321 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json b/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json index 2ed4a09ba9d2..7efe2a694e1c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json @@ -150,9 +150,7 @@ "start": 47, "end": 50 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -265,9 +263,7 @@ "start": 97, "end": 100 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1029,9 +1025,7 @@ "start": 397, "end": 400 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1178,6 +1172,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 465, + "end": 470 + }, "left": { "type": "Identifier", "span": { @@ -1194,9 +1192,7 @@ "start": 467, "end": 470 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeArguments": null @@ -1346,6 +1342,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 534, + "end": 539 + }, "left": { "type": "Identifier", "span": { @@ -1362,9 +1362,7 @@ "start": 536, "end": 539 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeArguments": null @@ -1524,6 +1522,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 608, + "end": 611 + }, "left": { "type": "Identifier", "span": { @@ -1540,9 +1542,7 @@ "start": 610, "end": 611 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeArguments": null @@ -1762,9 +1762,7 @@ "start": 726, "end": 729 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json b/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json index 40022a949810..c2983f6ed0bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json @@ -163,9 +163,7 @@ "start": 61, "end": 64 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -285,9 +283,7 @@ "start": 118, "end": 121 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1063,9 +1059,7 @@ "start": 432, "end": 435 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1213,6 +1207,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 500, + "end": 505 + }, "left": { "type": "Identifier", "span": { @@ -1229,9 +1227,7 @@ "start": 502, "end": 505 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeArguments": null @@ -1381,6 +1377,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 576, + "end": 581 + }, "left": { "type": "Identifier", "span": { @@ -1397,9 +1397,7 @@ "start": 578, "end": 581 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeArguments": null @@ -1566,6 +1564,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 657, + "end": 660 + }, "left": { "type": "Identifier", "span": { @@ -1582,9 +1584,7 @@ "start": 659, "end": 660 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeArguments": null @@ -1817,9 +1817,7 @@ "start": 789, "end": 792 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeofClass2.json b/crates/swc_ecma_parser/tests/tsc/typeofClass2.json index 4c5ba4ef7939..af1951f4a716 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofClass2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofClass2.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -94,9 +92,7 @@ "start": 43, "end": 54 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -150,9 +146,7 @@ "start": 71, "end": 82 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -199,9 +193,7 @@ "start": 102, "end": 105 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -270,9 +262,7 @@ "start": 129, "end": 132 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -351,9 +341,7 @@ "start": 151, "end": 154 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -416,9 +404,7 @@ "start": 174, "end": 177 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "function": { "params": [ @@ -508,9 +494,7 @@ "start": 219, "end": 222 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "function": { "params": [ @@ -587,9 +571,7 @@ "start": 242, "end": 245 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeofClassWithPrivates.json b/crates/swc_ecma_parser/tests/tsc/typeofClassWithPrivates.json index a1be61529ca4..a056df965f66 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofClassWithPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofClassWithPrivates.json @@ -37,9 +37,7 @@ "start": 26, "end": 27 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 56, "end": 57 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -121,9 +117,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -173,9 +167,7 @@ "start": 88, "end": 89 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json b/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json index b9b9454631c7..04816255727c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json @@ -266,9 +266,7 @@ "start": 256, "end": 265 }, - "ctxt": 0, - "value": "directive", - "optional": false + "value": "directive" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofModuleWithoutExports.json b/crates/swc_ecma_parser/tests/tsc/typeofModuleWithoutExports.json index d90fdcfd92c2..9f9b3945371a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofModuleWithoutExports.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofModuleWithoutExports.json @@ -102,9 +102,7 @@ "start": 49, "end": 52 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json index 3fc8ac584992..b6d28a6b993f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json @@ -272,9 +272,7 @@ "start": 117, "end": 118 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -294,9 +292,7 @@ "start": 125, "end": 126 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -457,9 +453,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -499,9 +493,7 @@ "start": 230, "end": 233 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1285,9 +1277,7 @@ "start": 783, "end": 784 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1351,9 +1341,7 @@ "start": 821, "end": 822 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1417,9 +1405,7 @@ "start": 856, "end": 857 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1549,9 +1535,7 @@ "start": 928, "end": 931 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2198,9 +2182,7 @@ "start": 1374, "end": 1375 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } @@ -2240,9 +2222,7 @@ "start": 1389, "end": 1390 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2282,9 +2262,7 @@ "start": 1401, "end": 1402 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2462,9 +2440,7 @@ "start": 1477, "end": 1478 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2504,9 +2480,7 @@ "start": 1492, "end": 1493 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "body": { "type": "ExpressionStatement", @@ -2546,9 +2520,7 @@ "start": 1508, "end": 1509 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "body": { "type": "ExpressionStatement", @@ -2588,9 +2560,7 @@ "start": 1523, "end": 1524 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2627,9 +2597,7 @@ "start": 1538, "end": 1539 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2647,9 +2615,7 @@ "start": 1541, "end": 1542 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2686,9 +2652,7 @@ "start": 1553, "end": 1556 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -2706,9 +2670,7 @@ "start": 1558, "end": 1559 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2745,9 +2707,7 @@ "start": 1570, "end": 1571 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -2765,9 +2725,7 @@ "start": 1573, "end": 1574 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2804,9 +2762,7 @@ "start": 1588, "end": 1589 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json index e310ce003c5b..1df6443ce2fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 175, "end": 178 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 421, "end": 422 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 496, "end": 497 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 530, "end": 531 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 600, "end": 603 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1045,9 +1031,7 @@ "start": 787, "end": 788 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1087,9 +1071,7 @@ "start": 799, "end": 800 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1267,9 +1249,7 @@ "start": 887, "end": 888 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1309,9 +1289,7 @@ "start": 906, "end": 907 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "body": { "type": "ExpressionStatement", @@ -1381,9 +1359,7 @@ "start": 931, "end": 932 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -1402,9 +1378,7 @@ "start": 940, "end": 941 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "BooleanLiteral", @@ -1433,9 +1407,7 @@ "start": 951, "end": 952 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1472,9 +1444,7 @@ "start": 963, "end": 964 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1492,9 +1462,7 @@ "start": 966, "end": 967 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1531,9 +1499,7 @@ "start": 981, "end": 982 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1551,9 +1517,7 @@ "start": 984, "end": 985 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1590,9 +1554,7 @@ "start": 996, "end": 999 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -1610,9 +1572,7 @@ "start": 1001, "end": 1002 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1649,9 +1609,7 @@ "start": 1013, "end": 1014 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json index 50cd3810c6ba..447f52bbec66 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json @@ -576,9 +576,7 @@ "start": 446, "end": 447 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -771,9 +769,7 @@ "start": 587, "end": 588 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -813,9 +809,7 @@ "start": 603, "end": 604 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json index 9143024b9b10..9189a59f4a1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 198, "end": 201 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 462, "end": 463 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 468, "end": 469 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 512, "end": 513 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 609, "end": 610 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 643, "end": 644 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 755, "end": 758 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1555,9 +1537,7 @@ "start": 1047, "end": 1048 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1597,9 +1577,7 @@ "start": 1059, "end": 1060 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1646,9 +1624,7 @@ "start": 1074, "end": 1075 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1674,9 +1650,7 @@ "start": 1079, "end": 1080 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -1793,9 +1767,7 @@ "start": 1143, "end": 1144 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1835,9 +1807,7 @@ "start": 1161, "end": 1162 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "body": { "type": "ExpressionStatement", @@ -1877,9 +1847,7 @@ "start": 1180, "end": 1181 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "body": { "type": "ExpressionStatement", @@ -1949,9 +1917,7 @@ "start": 1205, "end": 1206 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -1971,9 +1937,7 @@ "start": 1211, "end": 1212 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -2003,9 +1967,7 @@ "start": 1219, "end": 1220 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2042,9 +2004,7 @@ "start": 1231, "end": 1232 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2062,9 +2022,7 @@ "start": 1234, "end": 1235 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2101,9 +2059,7 @@ "start": 1249, "end": 1250 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2121,9 +2077,7 @@ "start": 1252, "end": 1253 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2160,9 +2114,7 @@ "start": 1264, "end": 1267 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -2180,9 +2132,7 @@ "start": 1269, "end": 1270 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2219,9 +2169,7 @@ "start": 1281, "end": 1282 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json index ecb0f28f15b2..701c31b8010f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 157, "end": 158 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 179, "end": 182 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 452, "end": 453 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 492, "end": 493 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 499, "end": 500 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 596, "end": 597 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 630, "end": 631 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 742, "end": 745 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 835, "end": 841 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1651,9 +1631,7 @@ "start": 1083, "end": 1084 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1679,9 +1657,7 @@ "start": 1088, "end": 1089 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] @@ -1860,9 +1836,7 @@ "start": 1173, "end": 1174 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -1902,9 +1876,7 @@ "start": 1191, "end": 1192 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "body": { "type": "ExpressionStatement", @@ -1944,9 +1916,7 @@ "start": 1210, "end": 1211 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "body": { "type": "ExpressionStatement", @@ -2016,9 +1986,7 @@ "start": 1235, "end": 1236 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "StringLiteral", @@ -2038,9 +2006,7 @@ "start": 1242, "end": 1243 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "StringLiteral", @@ -2070,9 +2036,7 @@ "start": 1251, "end": 1252 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2109,9 +2073,7 @@ "start": 1263, "end": 1264 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2129,9 +2091,7 @@ "start": 1266, "end": 1267 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2168,9 +2128,7 @@ "start": 1281, "end": 1282 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2188,9 +2146,7 @@ "start": 1284, "end": 1285 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2227,9 +2183,7 @@ "start": 1296, "end": 1299 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } } @@ -2247,9 +2201,7 @@ "start": 1301, "end": 1302 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "body": { "type": "ExpressionStatement", @@ -2286,9 +2238,7 @@ "start": 1313, "end": 1314 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofThis.json b/crates/swc_ecma_parser/tests/tsc/typeofThis.json index afa5cee2453f..a83903e6f127 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofThis.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofThis.json @@ -37,9 +37,7 @@ "start": 61, "end": 65 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -73,9 +71,7 @@ "start": 76, "end": 87 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -125,6 +121,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 117, + "end": 126 + }, "left": { "type": "Identifier", "span": { @@ -141,9 +141,7 @@ "start": 122, "end": 126 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "typeArguments": null @@ -206,9 +204,7 @@ "start": 160, "end": 164 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -225,9 +221,7 @@ "start": 169, "end": 172 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -307,9 +301,7 @@ "start": 203, "end": 214 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -359,6 +351,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 244, + "end": 253 + }, "left": { "type": "Identifier", "span": { @@ -375,9 +371,7 @@ "start": 249, "end": 253 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "typeArguments": null @@ -399,9 +393,7 @@ "start": 258, "end": 261 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -458,8 +450,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 293, + "end": 306 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 293, + "end": 302 + }, "left": { "type": "Identifier", "span": { @@ -476,9 +476,7 @@ "start": 298, "end": 302 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -487,9 +485,7 @@ "start": 303, "end": 306 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "typeArguments": null @@ -599,9 +595,7 @@ "start": 365, "end": 369 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -644,6 +638,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 396, + "end": 405 + }, "left": { "type": "Identifier", "span": { @@ -660,9 +658,7 @@ "start": 401, "end": 405 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "typeArguments": null @@ -761,6 +757,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 459, + "end": 466 + }, "left": { "type": "Identifier", "span": { @@ -777,9 +777,7 @@ "start": 464, "end": 466 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -943,6 +941,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 532, + "end": 539 + }, "left": { "type": "Identifier", "span": { @@ -959,9 +961,7 @@ "start": 537, "end": 539 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -1142,6 +1142,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 617, + "end": 624 + }, "left": { "type": "Identifier", "span": { @@ -1158,9 +1162,7 @@ "start": 622, "end": 624 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -1219,9 +1221,7 @@ "start": 651, "end": 653 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" }, "value": { "type": "NumericLiteral", @@ -1255,9 +1255,7 @@ "start": 664, "end": 665 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ArrowFunctionExpression", @@ -1314,6 +1312,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 734, + "end": 741 + }, "left": { "type": "Identifier", "span": { @@ -1330,9 +1332,7 @@ "start": 739, "end": 741 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -1490,6 +1490,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 823, + "end": 830 + }, "left": { "type": "Identifier", "span": { @@ -1506,9 +1510,7 @@ "start": 828, "end": 830 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -1656,6 +1658,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 909, + "end": 916 + }, "left": { "type": "Identifier", "span": { @@ -1672,9 +1678,7 @@ "start": 914, "end": 916 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -1791,6 +1795,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 971, + "end": 978 + }, "left": { "type": "Identifier", "span": { @@ -1807,9 +1815,7 @@ "start": 976, "end": 978 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -1872,9 +1878,7 @@ "start": 1005, "end": 1007 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" }, "value": { "type": "NumericLiteral", @@ -1908,9 +1912,7 @@ "start": 1017, "end": 1021 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" }, "value": { "type": "NumericLiteral", @@ -1944,9 +1946,7 @@ "start": 1032, "end": 1033 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -2100,9 +2100,7 @@ "start": 1134, "end": 1136 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -2249,9 +2247,7 @@ "start": 1247, "end": 1249 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" } }, "arguments": [], @@ -2288,9 +2284,7 @@ "start": 1274, "end": 1275 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -2340,9 +2334,7 @@ "start": 1297, "end": 1299 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "right": { @@ -2402,6 +2394,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1338, + "end": 1345 + }, "left": { "type": "Identifier", "span": { @@ -2418,9 +2414,7 @@ "start": 1343, "end": 1345 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null @@ -2446,9 +2440,7 @@ "start": 1353, "end": 1355 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "definite": false @@ -2491,9 +2483,7 @@ "start": 1385, "end": 1389 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "right": { @@ -2553,6 +2543,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1428, + "end": 1437 + }, "left": { "type": "Identifier", "span": { @@ -2569,9 +2563,7 @@ "start": 1433, "end": 1437 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "typeArguments": null @@ -2597,9 +2589,7 @@ "start": 1445, "end": 1449 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "definite": false @@ -2663,9 +2653,7 @@ "start": 1490, "end": 1492 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" }, "function": { "params": [], @@ -2735,9 +2723,7 @@ "start": 1521, "end": 1523 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" }, "function": { "params": [], @@ -2807,9 +2793,7 @@ "start": 1551, "end": 1552 }, - "ctxt": 0, - "value": "a", - "optional": true + "value": "a" }, "value": null, "typeAnnotation": { @@ -2885,9 +2869,7 @@ "start": 1575, "end": 1578 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -2944,6 +2926,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1605, + "end": 1611 + }, "left": { "type": "Identifier", "span": { @@ -2960,9 +2946,7 @@ "start": 1610, "end": 1611 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeArguments": null @@ -3023,9 +3007,7 @@ "start": 1649, "end": 1650 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "consequent": { @@ -3075,6 +3057,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1680, + "end": 1686 + }, "left": { "type": "Identifier", "span": { @@ -3091,9 +3077,7 @@ "start": 1685, "end": 1686 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "typeArguments": null @@ -3168,8 +3152,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1771, + "end": 1779 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 1771, + "end": 1777 + }, "left": { "type": "Identifier", "span": { @@ -3186,9 +3178,7 @@ "start": 1776, "end": 1777 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3197,9 +3187,7 @@ "start": 1778, "end": 1779 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "typeArguments": null @@ -3266,9 +3254,7 @@ "start": 1822, "end": 1823 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -3277,9 +3263,7 @@ "start": 1824, "end": 1825 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "consequent": { @@ -3329,8 +3313,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 1859, + "end": 1867 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 1859, + "end": 1865 + }, "left": { "type": "Identifier", "span": { @@ -3347,9 +3339,7 @@ "start": 1864, "end": 1865 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "right": { @@ -3358,9 +3348,7 @@ "start": 1866, "end": 1867 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "typeArguments": null @@ -3457,9 +3445,7 @@ "start": 1969, "end": 1973 }, - "ctxt": 0, - "value": "this", - "optional": true + "value": "this" }, "value": null, "typeAnnotation": { @@ -3535,9 +3521,7 @@ "start": 2001, "end": 2004 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -3632,6 +3616,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 2057, + "end": 2063 + }, "left": { "type": "Identifier", "span": { @@ -3648,9 +3636,7 @@ "start": 2059, "end": 2063 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "typeArguments": null @@ -3704,9 +3690,7 @@ "start": 2085, "end": 2089 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "right": { @@ -3737,9 +3721,7 @@ "start": 2095, "end": 2099 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "property": { @@ -3748,9 +3730,7 @@ "start": 2100, "end": 2101 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -3831,9 +3811,7 @@ "start": 2135, "end": 2139 }, - "ctxt": 0, - "value": "this", - "optional": false + "value": "this" } }, "property": { @@ -3842,9 +3820,7 @@ "start": 2140, "end": 2141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -3908,9 +3884,7 @@ "start": 2211, "end": 2216 }, - "ctxt": 0, - "value": "test1", - "optional": false + "value": "test1" }, "function": { "params": [], @@ -3991,9 +3965,7 @@ "start": 2271, "end": 2276 }, - "ctxt": 0, - "value": "test2", - "optional": false + "value": "test2" }, "function": { "params": [], @@ -4093,9 +4065,7 @@ "start": 2351, "end": 2356 }, - "ctxt": 0, - "value": "test3", - "optional": false + "value": "test3" }, "function": { "params": [], @@ -4232,9 +4202,7 @@ "start": 2470, "end": 2475 }, - "ctxt": 0, - "value": "test4", - "optional": false + "value": "test4" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/typeofThisWithImplicitThis.json b/crates/swc_ecma_parser/tests/tsc/typeofThisWithImplicitThis.json index 2802964e9ef9..2a2f2fbbf621 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofThisWithImplicitThis.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofThisWithImplicitThis.json @@ -72,6 +72,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 65, + "end": 72 + }, "left": { "type": "Identifier", "span": { @@ -88,9 +92,7 @@ "start": 70, "end": 72 }, - "ctxt": 0, - "value": "no", - "optional": false + "value": "no" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.1.json b/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.1.json index 939c967d17c2..e011fe3dafdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.1.json +++ b/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.1.json @@ -218,9 +218,7 @@ "start": 253, "end": 260 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -342,9 +340,7 @@ "start": 336, "end": 343 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -534,9 +530,7 @@ "start": 467, "end": 474 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -962,9 +956,7 @@ "start": 769, "end": 776 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -1308,9 +1300,7 @@ "start": 990, "end": 997 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -1817,9 +1807,7 @@ "start": 1322, "end": 1329 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -2163,9 +2151,7 @@ "start": 1527, "end": 1534 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -2672,9 +2658,7 @@ "start": 1854, "end": 1861 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -3018,9 +3002,7 @@ "start": 2061, "end": 2068 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -3417,9 +3399,7 @@ "start": 2381, "end": 2388 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -3689,9 +3669,7 @@ "start": 2580, "end": 2587 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -4087,9 +4065,7 @@ "start": 2879, "end": 2886 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -4359,9 +4335,7 @@ "start": 3062, "end": 3069 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -4757,9 +4731,7 @@ "start": 3356, "end": 3363 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -5029,9 +5001,7 @@ "start": 3541, "end": 3548 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -5504,9 +5474,7 @@ "start": 3854, "end": 3861 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json b/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json index 177af7403c59..533410f413ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json +++ b/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json @@ -202,9 +202,7 @@ "start": 236, "end": 243 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json b/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json index 387e49be4ee8..93c3f6ff98e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json @@ -335,9 +335,7 @@ "start": 206, "end": 209 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -397,9 +395,7 @@ "start": 227, "end": 230 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -419,9 +415,7 @@ "start": 236, "end": 239 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -481,9 +475,7 @@ "start": 256, "end": 259 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": { "type": "StringLiteral", @@ -503,9 +495,7 @@ "start": 265, "end": 268 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -525,9 +515,7 @@ "start": 273, "end": 276 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json b/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json index bfd7ca22636c..6dc1780c6171 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithPrivateConstructor.json @@ -38,9 +38,7 @@ "start": 46, "end": 57 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -192,9 +190,7 @@ "start": 128, "end": 139 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false @@ -234,9 +230,7 @@ "start": 165, "end": 176 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -290,9 +284,7 @@ "start": 201, "end": 212 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -504,9 +496,7 @@ "start": 303, "end": 314 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json b/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json index c06115a20d40..d0b977f8373b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithProtectedConstructor.json @@ -38,9 +38,7 @@ "start": 48, "end": 59 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -192,9 +190,7 @@ "start": 132, "end": 143 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false @@ -234,9 +230,7 @@ "start": 171, "end": 182 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -290,9 +284,7 @@ "start": 209, "end": 220 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -504,9 +496,7 @@ "start": 313, "end": 324 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json b/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json index 720057d192d6..762515a32aa2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithPublicConstructor.json @@ -38,9 +38,7 @@ "start": 83, "end": 94 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -192,9 +190,7 @@ "start": 143, "end": 154 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false @@ -234,9 +230,7 @@ "start": 179, "end": 190 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -290,9 +284,7 @@ "start": 214, "end": 225 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -504,9 +496,7 @@ "start": 293, "end": 304 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json index 90103c969999..3116f951ab68 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json @@ -37,9 +37,7 @@ "start": 70, "end": 73 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 158, "end": 161 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -262,9 +256,7 @@ "start": 187, "end": 190 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -365,9 +357,7 @@ "start": 215, "end": 218 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -468,9 +458,7 @@ "start": 244, "end": 247 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -563,9 +551,7 @@ "start": 270, "end": 273 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -1584,9 +1570,7 @@ "start": 595, "end": 598 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1689,9 +1673,7 @@ "start": 627, "end": 630 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -1794,9 +1776,7 @@ "start": 656, "end": 659 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json index f3ad12c7635b..d83a53045788 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json @@ -37,9 +37,7 @@ "start": 70, "end": 73 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 114, "end": 117 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": null, "typeAnnotation": { @@ -184,9 +180,7 @@ "start": 158, "end": 161 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -263,9 +257,7 @@ "start": 187, "end": 198 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -327,9 +319,7 @@ "start": 213, "end": 224 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -391,9 +381,7 @@ "start": 240, "end": 251 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -447,9 +435,7 @@ "start": 268, "end": 279 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/unannotatedParametersAreOptional.json b/crates/swc_ecma_parser/tests/tsc/unannotatedParametersAreOptional.json index 5c48cf700697..1ba78d929c18 100644 --- a/crates/swc_ecma_parser/tests/tsc/unannotatedParametersAreOptional.json +++ b/crates/swc_ecma_parser/tests/tsc/unannotatedParametersAreOptional.json @@ -118,9 +118,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -183,9 +181,7 @@ "start": 147, "end": 148 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ArrowFunctionExpression", @@ -244,9 +240,7 @@ "start": 161, "end": 162 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [ @@ -339,9 +333,7 @@ "start": 174, "end": 175 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -393,9 +385,7 @@ "start": 211, "end": 212 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -447,9 +437,7 @@ "start": 245, "end": 246 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "arguments": [], @@ -498,9 +486,7 @@ "start": 288, "end": 289 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "params": [ { @@ -551,9 +537,7 @@ "start": 299, "end": 300 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "ArrowFunctionExpression", @@ -631,9 +615,7 @@ "start": 318, "end": 319 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } }, "arguments": [], @@ -675,9 +657,7 @@ "start": 345, "end": 346 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json b/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json index af17cdfb23e7..9cdc6b010f23 100644 --- a/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/undefinedAssignableToEveryType.json @@ -37,9 +37,7 @@ "start": 15, "end": 18 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/undefinedIsSubtypeOfEverything.json b/crates/swc_ecma_parser/tests/tsc/undefinedIsSubtypeOfEverything.json index 1115284eab93..72b57e50b343 100644 --- a/crates/swc_ecma_parser/tests/tsc/undefinedIsSubtypeOfEverything.json +++ b/crates/swc_ecma_parser/tests/tsc/undefinedIsSubtypeOfEverything.json @@ -37,9 +37,7 @@ "start": 92, "end": 95 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -116,9 +114,7 @@ "start": 147, "end": 150 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -194,9 +190,7 @@ "start": 188, "end": 191 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -282,9 +276,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -360,9 +352,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -448,9 +438,7 @@ "start": 333, "end": 336 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -526,9 +514,7 @@ "start": 378, "end": 381 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -614,9 +600,7 @@ "start": 423, "end": 426 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -692,9 +676,7 @@ "start": 469, "end": 472 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -780,9 +762,7 @@ "start": 515, "end": 518 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -868,9 +848,7 @@ "start": 559, "end": 562 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -956,9 +934,7 @@ "start": 602, "end": 605 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1041,9 +1017,7 @@ "start": 648, "end": 651 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1155,9 +1129,7 @@ "start": 702, "end": 705 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1307,9 +1279,7 @@ "start": 776, "end": 779 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1395,9 +1365,7 @@ "start": 818, "end": 821 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1528,9 +1496,7 @@ "start": 882, "end": 885 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1725,9 +1691,7 @@ "start": 976, "end": 979 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -1813,9 +1777,7 @@ "start": 1005, "end": 1008 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { @@ -1957,9 +1919,7 @@ "start": 1085, "end": 1088 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2045,9 +2005,7 @@ "start": 1136, "end": 1139 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2163,9 +2121,7 @@ "start": 1183, "end": 1186 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2303,9 +2259,7 @@ "start": 1286, "end": 1289 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2391,9 +2345,7 @@ "start": 1332, "end": 1335 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json index 03e5d7ce7d4c..0c2640e9ffec 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json +++ b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json @@ -744,9 +744,7 @@ "start": 314, "end": 320 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2173,9 +2171,7 @@ "start": 1087, "end": 1098 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -2687,9 +2683,7 @@ "start": 1340, "end": 1345 }, - "ctxt": 0, - "value": "oinks", - "optional": false + "value": "oinks" } } }, @@ -2745,9 +2739,7 @@ "start": 1388, "end": 1393 }, - "ctxt": 0, - "value": "walks", - "optional": false + "value": "walks" } } }, @@ -2900,9 +2892,7 @@ "start": 1538, "end": 1545 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [], @@ -2914,9 +2904,7 @@ "start": 1548, "end": 1552 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -2951,9 +2939,7 @@ "start": 1562, "end": 1566 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -3100,9 +3086,7 @@ "start": 1625, "end": 1629 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -3954,9 +3938,7 @@ "start": 1884, "end": 1890 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json index c5a61cecf25f..a8c8160fd048 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json +++ b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference3.json @@ -3678,9 +3678,7 @@ "start": 1290, "end": 1295 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json b/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json index 39d67ea82608..944098e81484 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json +++ b/crates/swc_ecma_parser/tests/tsc/unionSubtypeIfEveryConstituentTypeIsSubtype.json @@ -1913,9 +1913,7 @@ "start": 1213, "end": 1216 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -2186,9 +2184,7 @@ "start": 1329, "end": 1332 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -3579,9 +3575,7 @@ "start": 1899, "end": 1902 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json index 25a65a28758d..5fe0590e640f 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/unionThisTypeInFunctions.json @@ -439,9 +439,7 @@ "start": 195, "end": 201 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json index 5388192a3bcc..05409826ee66 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures6.json @@ -1612,9 +1612,7 @@ "start": 541, "end": 543 }, - "ctxt": 0, - "value": "f0", - "optional": false + "value": "f0" } }, "arguments": [], @@ -1656,9 +1654,7 @@ "start": 550, "end": 552 }, - "ctxt": 0, - "value": "f1", - "optional": false + "value": "f1" } }, "arguments": [], @@ -1700,9 +1696,7 @@ "start": 559, "end": 561 }, - "ctxt": 0, - "value": "f2", - "optional": false + "value": "f2" } }, "arguments": [], @@ -1744,9 +1738,7 @@ "start": 568, "end": 570 }, - "ctxt": 0, - "value": "f3", - "optional": false + "value": "f3" } }, "arguments": [], @@ -1788,9 +1780,7 @@ "start": 586, "end": 588 }, - "ctxt": 0, - "value": "f4", - "optional": false + "value": "f4" } }, "arguments": [], @@ -1996,9 +1986,7 @@ "start": 648, "end": 650 }, - "ctxt": 0, - "value": "f4", - "optional": false + "value": "f4" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeEquivalence.json b/crates/swc_ecma_parser/tests/tsc/unionTypeEquivalence.json index b46025d7652d..aaf7e9d81a8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeEquivalence.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeEquivalence.json @@ -63,9 +63,7 @@ "start": 84, "end": 87 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json b/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json index 6de30e87e149..239e7a94f2da 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json @@ -641,9 +641,7 @@ "start": 894, "end": 897 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -713,9 +711,7 @@ "start": 916, "end": 920 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [], @@ -785,9 +781,7 @@ "start": 949, "end": 953 }, - "ctxt": 0, - "value": "foo3", - "optional": false + "value": "foo3" }, "function": { "params": [], @@ -866,9 +860,7 @@ "start": 982, "end": 986 }, - "ctxt": 0, - "value": "foo4", - "optional": false + "value": "foo4" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json b/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json index bc0c903bc8e5..a96dc7e2f729 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json @@ -4162,9 +4162,7 @@ "start": 1667, "end": 1673 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json index 19e934d77443..8d25e3835911 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json @@ -1533,9 +1533,7 @@ "start": 1225, "end": 1243 }, - "ctxt": 0, - "value": "commonPropertyType", - "optional": false + "value": "commonPropertyType" } } } @@ -1593,9 +1591,7 @@ "start": 1263, "end": 1279 }, - "ctxt": 0, - "value": "commonMethodType", - "optional": false + "value": "commonMethodType" } }, "arguments": [ @@ -1663,9 +1659,7 @@ "start": 1351, "end": 1377 }, - "ctxt": 0, - "value": "commonPropertyDifferenType", - "optional": false + "value": "commonPropertyDifferenType" } } } @@ -1723,9 +1717,7 @@ "start": 1392, "end": 1423 }, - "ctxt": 0, - "value": "commonMethodDifferentReturnType", - "optional": false + "value": "commonMethodDifferentReturnType" } }, "arguments": [ @@ -1775,9 +1767,7 @@ "start": 1450, "end": 1484 }, - "ctxt": 0, - "value": "commonMethodDifferentParameterType", - "optional": false + "value": "commonMethodDifferentParameterType" } } }, @@ -1816,9 +1806,7 @@ "start": 1518, "end": 1552 }, - "ctxt": 0, - "value": "commonMethodDifferentParameterType", - "optional": false + "value": "commonMethodDifferentParameterType" } }, "arguments": [ @@ -1892,9 +1880,7 @@ "start": 1778, "end": 1807 }, - "ctxt": 0, - "value": "commonMethodWithTypeParameter", - "optional": false + "value": "commonMethodWithTypeParameter" } }, "arguments": [ @@ -1969,9 +1955,7 @@ "start": 1822, "end": 1854 }, - "ctxt": 0, - "value": "commonMethodWithOwnTypeParameter", - "optional": false + "value": "commonMethodWithOwnTypeParameter" } }, "arguments": [ @@ -2046,9 +2030,7 @@ "start": 1869, "end": 1901 }, - "ctxt": 0, - "value": "commonMethodWithOwnTypeParameter", - "optional": false + "value": "commonMethodWithOwnTypeParameter" } }, "arguments": [ @@ -2123,9 +2105,7 @@ "start": 1921, "end": 1953 }, - "ctxt": 0, - "value": "commonMethodWithOwnTypeParameter", - "optional": false + "value": "commonMethodWithOwnTypeParameter" } }, "arguments": [ @@ -2175,9 +2155,7 @@ "start": 1968, "end": 1984 }, - "ctxt": 0, - "value": "propertyOnlyInI1", - "optional": false + "value": "propertyOnlyInI1" } } }, @@ -2209,9 +2187,7 @@ "start": 1997, "end": 2013 }, - "ctxt": 0, - "value": "propertyOnlyInI2", - "optional": false + "value": "propertyOnlyInI2" } } }, @@ -2250,9 +2226,7 @@ "start": 2026, "end": 2040 }, - "ctxt": 0, - "value": "methodOnlyInI1", - "optional": false + "value": "methodOnlyInI1" } }, "arguments": [ @@ -2307,9 +2281,7 @@ "start": 2062, "end": 2076 }, - "ctxt": 0, - "value": "methodOnlyInI2", - "optional": false + "value": "methodOnlyInI2" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypePropertyAccessibility.json b/crates/swc_ecma_parser/tests/tsc/unionTypePropertyAccessibility.json index 940c34bd455c..6eae164e1c76 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypePropertyAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypePropertyAccessibility.json @@ -37,9 +37,7 @@ "start": 21, "end": 27 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": null, "typeAnnotation": { @@ -106,9 +104,7 @@ "start": 66, "end": 72 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": null, "typeAnnotation": { @@ -175,9 +171,7 @@ "start": 117, "end": 123 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": null, "typeAnnotation": { @@ -244,9 +238,7 @@ "start": 164, "end": 170 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" }, "value": null, "typeAnnotation": { @@ -1554,9 +1546,7 @@ "start": 626, "end": 632 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1588,9 +1578,7 @@ "start": 637, "end": 643 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1622,9 +1610,7 @@ "start": 648, "end": 654 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1656,9 +1642,7 @@ "start": 659, "end": 665 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1690,9 +1674,7 @@ "start": 670, "end": 676 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1724,9 +1706,7 @@ "start": 681, "end": 687 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1758,9 +1738,7 @@ "start": 692, "end": 698 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1792,9 +1770,7 @@ "start": 703, "end": 709 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1826,9 +1802,7 @@ "start": 714, "end": 720 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1860,9 +1834,7 @@ "start": 726, "end": 732 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1894,9 +1866,7 @@ "start": 738, "end": 744 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1928,9 +1898,7 @@ "start": 750, "end": 756 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1962,9 +1930,7 @@ "start": 762, "end": 768 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -1996,9 +1962,7 @@ "start": 774, "end": 780 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } }, @@ -2030,9 +1994,7 @@ "start": 786, "end": 792 }, - "ctxt": 0, - "value": "member", - "optional": false + "value": "member" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeReadonly.json b/crates/swc_ecma_parser/tests/tsc/unionTypeReadonly.json index 4312604540b3..9bcefcda240b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeReadonly.json @@ -416,9 +416,7 @@ "start": 274, "end": 279 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -550,9 +548,7 @@ "start": 371, "end": 376 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -684,9 +680,7 @@ "start": 463, "end": 468 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -818,9 +812,7 @@ "start": 573, "end": 578 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -952,9 +944,7 @@ "start": 683, "end": 688 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json b/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json index fbc8698f28c9..7ba535494676 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json @@ -317,9 +317,7 @@ "start": 141, "end": 142 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -361,9 +359,7 @@ "start": 152, "end": 153 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -745,9 +741,7 @@ "start": 310, "end": 311 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -789,9 +783,7 @@ "start": 321, "end": 322 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2621,9 +2613,7 @@ "start": 1118, "end": 1119 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [], @@ -2665,9 +2655,7 @@ "start": 1129, "end": 1130 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } }, "arguments": [ @@ -2825,9 +2813,7 @@ "start": 1237, "end": 1246 }, - "ctxt": 0, - "value": "something", - "optional": false + "value": "something" }, "params": [], "decorators": [], @@ -3093,9 +3079,7 @@ "start": 1374, "end": 1383 }, - "ctxt": 0, - "value": "something", - "optional": false + "value": "something" } }, "right": { @@ -3120,9 +3104,7 @@ "start": 1391, "end": 1400 }, - "ctxt": 0, - "value": "something", - "optional": false + "value": "something" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json index 7009db4eeeb0..83119ea6a407 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json @@ -313,9 +313,7 @@ "start": 130, "end": 133 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -364,9 +362,7 @@ "start": 144, "end": 147 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } }, "right": { @@ -663,9 +659,7 @@ "start": 261, "end": 264 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -987,9 +981,7 @@ "start": 385, "end": 388 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { @@ -1031,9 +1023,7 @@ "start": 398, "end": 401 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -1260,9 +1250,7 @@ "start": 485, "end": 488 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json b/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json index 25c7dd6d43a3..c925f3b1a910 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypesAssignability.json @@ -126,9 +126,7 @@ "start": 73, "end": 77 }, - "ctxt": 0, - "value": "foo1", - "optional": false + "value": "foo1" }, "function": { "params": [], @@ -207,9 +205,7 @@ "start": 106, "end": 110 }, - "ctxt": 0, - "value": "foo2", - "optional": false + "value": "foo2" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json index 1db37d8ec210..f98b28543777 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json @@ -1873,9 +1873,7 @@ "start": 2334, "end": 2352 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" }, "value": { "type": "CallExpression", @@ -1920,9 +1918,7 @@ "start": 2385, "end": 2403 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" }, "value": null, "typeAnnotation": { @@ -1970,9 +1966,7 @@ "start": 2440, "end": 2465 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" }, "value": { "type": "CallExpression", @@ -2039,9 +2033,7 @@ "start": 2504, "end": 2523 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" }, "value": { "type": "CallExpression", @@ -2086,9 +2078,7 @@ "start": 2550, "end": 2562 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" }, "value": { "type": "CallExpression", @@ -2133,9 +2123,7 @@ "start": 2579, "end": 2592 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" }, "value": { "type": "CallExpression", @@ -2280,9 +2268,7 @@ "start": 2669, "end": 2687 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" } }, "definite": false @@ -2338,9 +2324,7 @@ "start": 2730, "end": 2748 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" } }, "definite": false @@ -2396,9 +2380,7 @@ "start": 2798, "end": 2823 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" } }, "definite": false @@ -2454,9 +2436,7 @@ "start": 2867, "end": 2886 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" } }, "definite": false @@ -2502,6 +2482,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 2947, + "end": 2967 + }, "left": { "type": "Identifier", "span": { @@ -2518,9 +2502,7 @@ "start": 2949, "end": 2967 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" } }, "typeArguments": null @@ -2549,9 +2531,7 @@ "start": 2972, "end": 2990 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" } }, "definite": false @@ -2597,6 +2577,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3050, + "end": 3070 + }, "left": { "type": "Identifier", "span": { @@ -2613,9 +2597,7 @@ "start": 3052, "end": 3070 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" } }, "typeArguments": null @@ -2644,9 +2626,7 @@ "start": 3075, "end": 3093 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" } }, "definite": false @@ -2692,6 +2672,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3160, + "end": 3187 + }, "left": { "type": "Identifier", "span": { @@ -2708,9 +2692,7 @@ "start": 3162, "end": 3187 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" } }, "typeArguments": null @@ -2739,9 +2721,7 @@ "start": 3192, "end": 3217 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" } }, "definite": false @@ -2787,6 +2767,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3278, + "end": 3299 + }, "left": { "type": "Identifier", "span": { @@ -2803,9 +2787,7 @@ "start": 3280, "end": 3299 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" } }, "typeArguments": null @@ -2834,9 +2816,7 @@ "start": 3304, "end": 3323 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" } }, "definite": false @@ -2892,9 +2872,7 @@ "start": 3361, "end": 3373 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "definite": false @@ -2950,9 +2928,7 @@ "start": 3411, "end": 3424 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "definite": false @@ -2998,6 +2974,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3478, + "end": 3492 + }, "left": { "type": "Identifier", "span": { @@ -3014,9 +2994,7 @@ "start": 3480, "end": 3492 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "typeArguments": null @@ -3045,9 +3023,7 @@ "start": 3497, "end": 3509 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "definite": false @@ -3093,6 +3069,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3564, + "end": 3579 + }, "left": { "type": "Identifier", "span": { @@ -3109,9 +3089,7 @@ "start": 3566, "end": 3579 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "typeArguments": null @@ -3140,9 +3118,7 @@ "start": 3584, "end": 3597 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "definite": false @@ -3246,9 +3222,7 @@ "start": 3670, "end": 3682 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "definite": false @@ -3352,9 +3326,7 @@ "start": 3757, "end": 3770 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "definite": false @@ -3538,9 +3510,7 @@ "start": 3901, "end": 3913 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -3586,6 +3556,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3967, + "end": 3981 + }, "left": { "type": "Identifier", "span": { @@ -3602,9 +3576,7 @@ "start": 3969, "end": 3981 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "typeArguments": null @@ -3633,9 +3605,7 @@ "start": 3986, "end": 3998 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -3739,9 +3709,7 @@ "start": 4071, "end": 4083 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -4003,9 +3971,7 @@ "start": 4287, "end": 4299 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -4067,9 +4033,7 @@ "start": 4342, "end": 4348 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "property": { @@ -4078,9 +4042,7 @@ "start": 4349, "end": 4367 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "definite": false @@ -4126,6 +4088,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 4421, + "end": 4435 + }, "left": { "type": "Identifier", "span": { @@ -4142,9 +4108,7 @@ "start": 4423, "end": 4435 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "typeArguments": null @@ -4173,9 +4137,7 @@ "start": 4440, "end": 4452 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -4221,8 +4183,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 4512, + "end": 4539 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 4512, + "end": 4520 + }, "left": { "type": "Identifier", "span": { @@ -4239,9 +4209,7 @@ "start": 4514, "end": 4520 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "right": { @@ -4250,9 +4218,7 @@ "start": 4521, "end": 4539 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "typeArguments": null @@ -4287,9 +4253,7 @@ "start": 4544, "end": 4550 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "property": { @@ -4298,9 +4262,7 @@ "start": 4551, "end": 4569 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "definite": false @@ -4404,9 +4366,7 @@ "start": 4642, "end": 4654 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -4540,9 +4500,7 @@ "start": 4749, "end": 4755 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "property": { @@ -4551,9 +4509,7 @@ "start": 4756, "end": 4774 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "definite": false @@ -4616,9 +4572,7 @@ "start": 4840, "end": 4847 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -4941,9 +4895,7 @@ "start": 5052, "end": 5053 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "computed": true, @@ -5233,6 +5185,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 5163, + "end": 5166 + }, "left": { "type": "Identifier", "span": { @@ -5249,9 +5205,7 @@ "start": 5165, "end": 5166 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeArguments": null @@ -5375,9 +5329,7 @@ "start": 5231, "end": 5232 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -5515,9 +5467,7 @@ "start": 5281, "end": 5282 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -5618,9 +5568,7 @@ "start": 5345, "end": 5346 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -5641,9 +5589,7 @@ "start": 5355, "end": 5356 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -5667,9 +5613,7 @@ "start": 5360, "end": 5361 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -5681,9 +5625,7 @@ "start": 5367, "end": 5368 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -5727,9 +5669,7 @@ "start": 5383, "end": 5390 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [], "decorators": [], @@ -5778,9 +5718,7 @@ "start": 5418, "end": 5425 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [], "decorators": [], @@ -5829,9 +5767,7 @@ "start": 5455, "end": 5462 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "params": [], "decorators": [], @@ -5888,9 +5824,7 @@ "start": 5485, "end": 5492 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "params": [], "decorators": [], @@ -5947,9 +5881,7 @@ "start": 5513, "end": 5520 }, - "ctxt": 0, - "value": "method5", - "optional": false + "value": "method5" }, "params": [ { @@ -6065,9 +5997,7 @@ "start": 5603, "end": 5604 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -6102,9 +6032,7 @@ "start": 5630, "end": 5631 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -6128,9 +6056,7 @@ "start": 5636, "end": 5637 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6156,9 +6082,7 @@ "start": 5659, "end": 5660 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -6216,9 +6140,7 @@ "start": 5683, "end": 5684 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "Identifier", @@ -6253,9 +6175,7 @@ "start": 5701, "end": 5702 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "MemberExpression", @@ -6279,9 +6199,7 @@ "start": 5707, "end": 5708 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6307,9 +6225,7 @@ "start": 5721, "end": 5722 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "MemberExpression", @@ -6367,9 +6283,7 @@ "start": 5747, "end": 5748 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -6404,9 +6318,7 @@ "start": 5767, "end": 5768 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -6430,9 +6342,7 @@ "start": 5773, "end": 5774 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6458,9 +6368,7 @@ "start": 5789, "end": 5790 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -6518,9 +6426,7 @@ "start": 5806, "end": 5807 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "Identifier", @@ -6555,9 +6461,7 @@ "start": 5817, "end": 5818 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "MemberExpression", @@ -6581,9 +6485,7 @@ "start": 5823, "end": 5824 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6609,9 +6511,7 @@ "start": 5830, "end": 5831 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "MemberExpression", @@ -6669,9 +6569,7 @@ "start": 5847, "end": 5854 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -6732,9 +6630,7 @@ "start": 5881, "end": 5888 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -6795,9 +6691,7 @@ "start": 5917, "end": 5924 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "function": { "params": [], @@ -6866,9 +6760,7 @@ "start": 5946, "end": 5953 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "function": { "params": [], @@ -6937,9 +6829,7 @@ "start": 5973, "end": 5980 }, - "ctxt": 0, - "value": "method5", - "optional": false + "value": "method5" }, "function": { "params": [ @@ -7123,9 +7013,7 @@ "start": 6060, "end": 6061 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -7310,9 +7198,7 @@ "start": 6136, "end": 6137 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -7332,6 +7218,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 6129, + "end": 6132 + }, "left": { "type": "Identifier", "span": { @@ -7348,9 +7238,7 @@ "start": 6131, "end": 6132 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeArguments": null @@ -7435,6 +7323,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 6149, + "end": 6152 + }, "left": { "type": "Identifier", "span": { @@ -7451,9 +7343,7 @@ "start": 6151, "end": 6152 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeArguments": null @@ -7551,9 +7441,7 @@ "start": 6173, "end": 6174 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -7694,9 +7582,7 @@ "start": 6221, "end": 6222 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -7815,9 +7701,7 @@ "start": 6266, "end": 6272 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -7902,9 +7786,7 @@ "start": 6295, "end": 6301 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -7942,9 +7824,7 @@ "start": 6312, "end": 6313 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "alternate": { @@ -8006,9 +7886,7 @@ "start": 6326, "end": 6332 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -8146,9 +8024,7 @@ "start": 6407, "end": 6408 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -8277,9 +8153,7 @@ "start": 6467, "end": 6468 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -8408,9 +8282,7 @@ "start": 6498, "end": 6499 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -8894,9 +8766,7 @@ "start": 6767, "end": 6774 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [], "decorators": [], @@ -8945,9 +8815,7 @@ "start": 6869, "end": 6876 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [], "decorators": [], @@ -8996,9 +8864,7 @@ "start": 6973, "end": 6980 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "params": [], "decorators": [], @@ -9055,9 +8921,7 @@ "start": 7069, "end": 7076 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "params": [], "decorators": [], @@ -9114,9 +8978,7 @@ "start": 7163, "end": 7170 }, - "ctxt": 0, - "value": "method5", - "optional": false + "value": "method5" }, "params": [ { @@ -9242,9 +9104,7 @@ "start": 7322, "end": 7329 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [ { @@ -9361,9 +9221,7 @@ "start": 7384, "end": 7391 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [ { @@ -9575,9 +9433,7 @@ "start": 7487, "end": 7494 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ @@ -9706,9 +9562,7 @@ "start": 7548, "end": 7555 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json index d06a9b37419d..e2b6454a80fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json @@ -1797,9 +1797,7 @@ "start": 2211, "end": 2229 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" }, "value": { "type": "CallExpression", @@ -1844,9 +1842,7 @@ "start": 2262, "end": 2280 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" }, "value": null, "typeAnnotation": { @@ -1894,9 +1890,7 @@ "start": 2317, "end": 2342 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" }, "value": { "type": "CallExpression", @@ -1963,9 +1957,7 @@ "start": 2381, "end": 2400 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" }, "value": { "type": "CallExpression", @@ -2010,9 +2002,7 @@ "start": 2427, "end": 2439 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" }, "value": { "type": "CallExpression", @@ -2057,9 +2047,7 @@ "start": 2456, "end": 2469 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" }, "value": { "type": "CallExpression", @@ -2204,9 +2192,7 @@ "start": 2546, "end": 2564 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" } }, "definite": false @@ -2262,9 +2248,7 @@ "start": 2607, "end": 2625 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" } }, "definite": false @@ -2320,9 +2304,7 @@ "start": 2675, "end": 2700 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" } }, "definite": false @@ -2378,9 +2360,7 @@ "start": 2744, "end": 2763 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" } }, "definite": false @@ -2426,6 +2406,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 2824, + "end": 2844 + }, "left": { "type": "Identifier", "span": { @@ -2442,9 +2426,7 @@ "start": 2826, "end": 2844 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" } }, "typeArguments": null @@ -2473,9 +2455,7 @@ "start": 2849, "end": 2867 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" } }, "definite": false @@ -2521,6 +2501,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 2927, + "end": 2947 + }, "left": { "type": "Identifier", "span": { @@ -2537,9 +2521,7 @@ "start": 2929, "end": 2947 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" } }, "typeArguments": null @@ -2568,9 +2550,7 @@ "start": 2952, "end": 2970 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" } }, "definite": false @@ -2616,6 +2596,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3037, + "end": 3064 + }, "left": { "type": "Identifier", "span": { @@ -2632,9 +2616,7 @@ "start": 3039, "end": 3064 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" } }, "typeArguments": null @@ -2663,9 +2645,7 @@ "start": 3069, "end": 3094 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" } }, "definite": false @@ -2711,6 +2691,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3155, + "end": 3176 + }, "left": { "type": "Identifier", "span": { @@ -2727,9 +2711,7 @@ "start": 3157, "end": 3176 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" } }, "typeArguments": null @@ -2758,9 +2740,7 @@ "start": 3181, "end": 3200 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" } }, "definite": false @@ -2816,9 +2796,7 @@ "start": 3238, "end": 3250 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "definite": false @@ -2874,9 +2852,7 @@ "start": 3288, "end": 3301 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "definite": false @@ -2922,6 +2898,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3355, + "end": 3369 + }, "left": { "type": "Identifier", "span": { @@ -2938,9 +2918,7 @@ "start": 3357, "end": 3369 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "typeArguments": null @@ -2969,9 +2947,7 @@ "start": 3374, "end": 3386 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "definite": false @@ -3017,6 +2993,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3441, + "end": 3456 + }, "left": { "type": "Identifier", "span": { @@ -3033,9 +3013,7 @@ "start": 3443, "end": 3456 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "typeArguments": null @@ -3064,9 +3042,7 @@ "start": 3461, "end": 3474 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "definite": false @@ -3170,9 +3146,7 @@ "start": 3547, "end": 3559 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" } }, "definite": false @@ -3276,9 +3250,7 @@ "start": 3634, "end": 3647 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" } }, "definite": false @@ -3462,9 +3434,7 @@ "start": 3778, "end": 3790 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -3510,6 +3480,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 3844, + "end": 3858 + }, "left": { "type": "Identifier", "span": { @@ -3526,9 +3500,7 @@ "start": 3846, "end": 3858 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "typeArguments": null @@ -3557,9 +3529,7 @@ "start": 3863, "end": 3875 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -3663,9 +3633,7 @@ "start": 3948, "end": 3960 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -3927,9 +3895,7 @@ "start": 4164, "end": 4176 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -3991,9 +3957,7 @@ "start": 4219, "end": 4225 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "property": { @@ -4002,9 +3966,7 @@ "start": 4226, "end": 4244 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "definite": false @@ -4050,6 +4012,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 4298, + "end": 4312 + }, "left": { "type": "Identifier", "span": { @@ -4066,9 +4032,7 @@ "start": 4300, "end": 4312 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "typeArguments": null @@ -4097,9 +4061,7 @@ "start": 4317, "end": 4329 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -4145,8 +4107,16 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 4389, + "end": 4416 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 4389, + "end": 4397 + }, "left": { "type": "Identifier", "span": { @@ -4163,9 +4133,7 @@ "start": 4391, "end": 4397 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "right": { @@ -4174,9 +4142,7 @@ "start": 4398, "end": 4416 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "typeArguments": null @@ -4211,9 +4177,7 @@ "start": 4421, "end": 4427 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "property": { @@ -4222,9 +4186,7 @@ "start": 4428, "end": 4446 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "definite": false @@ -4328,9 +4290,7 @@ "start": 4519, "end": 4531 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" } }, "definite": false @@ -4464,9 +4424,7 @@ "start": 4626, "end": 4632 }, - "ctxt": 0, - "value": "nested", - "optional": false + "value": "nested" } }, "property": { @@ -4475,9 +4433,7 @@ "start": 4633, "end": 4651 }, - "ctxt": 0, - "value": "readonlyNestedType", - "optional": false + "value": "readonlyNestedType" } }, "definite": false @@ -4540,9 +4496,7 @@ "start": 4717, "end": 4724 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -4865,9 +4819,7 @@ "start": 4929, "end": 4930 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "computed": true, @@ -5157,6 +5109,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 5040, + "end": 5043 + }, "left": { "type": "Identifier", "span": { @@ -5173,9 +5129,7 @@ "start": 5042, "end": 5043 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeArguments": null @@ -5299,9 +5253,7 @@ "start": 5108, "end": 5109 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -5439,9 +5391,7 @@ "start": 5158, "end": 5159 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -5542,9 +5492,7 @@ "start": 5222, "end": 5223 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -5565,9 +5513,7 @@ "start": 5232, "end": 5233 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -5591,9 +5537,7 @@ "start": 5237, "end": 5238 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -5605,9 +5549,7 @@ "start": 5244, "end": 5245 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -5651,9 +5593,7 @@ "start": 5260, "end": 5267 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [], "decorators": [], @@ -5702,9 +5642,7 @@ "start": 5295, "end": 5302 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [], "decorators": [], @@ -5753,9 +5691,7 @@ "start": 5332, "end": 5339 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "params": [], "decorators": [], @@ -5812,9 +5748,7 @@ "start": 5362, "end": 5369 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "params": [], "decorators": [], @@ -5871,9 +5805,7 @@ "start": 5390, "end": 5397 }, - "ctxt": 0, - "value": "method5", - "optional": false + "value": "method5" }, "params": [ { @@ -5989,9 +5921,7 @@ "start": 5479, "end": 5480 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -6026,9 +5956,7 @@ "start": 5506, "end": 5507 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -6052,9 +5980,7 @@ "start": 5512, "end": 5513 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6080,9 +6006,7 @@ "start": 5535, "end": 5536 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -6140,9 +6064,7 @@ "start": 5559, "end": 5560 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "Identifier", @@ -6177,9 +6099,7 @@ "start": 5577, "end": 5578 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "MemberExpression", @@ -6203,9 +6123,7 @@ "start": 5583, "end": 5584 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6231,9 +6149,7 @@ "start": 5597, "end": 5598 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "MemberExpression", @@ -6291,9 +6207,7 @@ "start": 5623, "end": 5624 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "Identifier", @@ -6328,9 +6242,7 @@ "start": 5643, "end": 5644 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "MemberExpression", @@ -6354,9 +6266,7 @@ "start": 5649, "end": 5650 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6382,9 +6292,7 @@ "start": 5665, "end": 5666 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": { "type": "MemberExpression", @@ -6442,9 +6350,7 @@ "start": 5682, "end": 5683 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "Identifier", @@ -6479,9 +6385,7 @@ "start": 5693, "end": 5694 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "MemberExpression", @@ -6505,9 +6409,7 @@ "start": 5699, "end": 5700 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeAnnotation": null, @@ -6533,9 +6435,7 @@ "start": 5706, "end": 5707 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "MemberExpression", @@ -6593,9 +6493,7 @@ "start": 5723, "end": 5730 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -6656,9 +6554,7 @@ "start": 5757, "end": 5764 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -6719,9 +6615,7 @@ "start": 5793, "end": 5800 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "function": { "params": [], @@ -6790,9 +6684,7 @@ "start": 5822, "end": 5829 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "function": { "params": [], @@ -6861,9 +6753,7 @@ "start": 5849, "end": 5856 }, - "ctxt": 0, - "value": "method5", - "optional": false + "value": "method5" }, "function": { "params": [ @@ -7047,9 +6937,7 @@ "start": 5936, "end": 5937 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -7234,9 +7122,7 @@ "start": 6012, "end": 6013 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -7256,6 +7142,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 6005, + "end": 6008 + }, "left": { "type": "Identifier", "span": { @@ -7272,9 +7162,7 @@ "start": 6007, "end": 6008 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeArguments": null @@ -7359,6 +7247,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 6025, + "end": 6028 + }, "left": { "type": "Identifier", "span": { @@ -7375,9 +7267,7 @@ "start": 6027, "end": 6028 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "typeArguments": null @@ -7475,9 +7365,7 @@ "start": 6049, "end": 6050 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } } @@ -7618,9 +7506,7 @@ "start": 6097, "end": 6098 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "right": { @@ -7739,9 +7625,7 @@ "start": 6142, "end": 6148 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -7826,9 +7710,7 @@ "start": 6171, "end": 6177 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -7866,9 +7748,7 @@ "start": 6188, "end": 6189 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } }, "alternate": { @@ -7930,9 +7810,7 @@ "start": 6202, "end": 6208 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -8070,9 +7948,7 @@ "start": 6283, "end": 6284 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -8201,9 +8077,7 @@ "start": 6343, "end": 6344 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -8332,9 +8206,7 @@ "start": 6374, "end": 6375 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" } } }, @@ -8818,9 +8690,7 @@ "start": 6643, "end": 6650 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [], "decorators": [], @@ -8869,9 +8739,7 @@ "start": 6745, "end": 6752 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [], "decorators": [], @@ -8920,9 +8788,7 @@ "start": 6849, "end": 6856 }, - "ctxt": 0, - "value": "method3", - "optional": false + "value": "method3" }, "params": [], "decorators": [], @@ -8979,9 +8845,7 @@ "start": 6945, "end": 6952 }, - "ctxt": 0, - "value": "method4", - "optional": false + "value": "method4" }, "params": [], "decorators": [], @@ -9038,9 +8902,7 @@ "start": 7039, "end": 7046 }, - "ctxt": 0, - "value": "method5", - "optional": false + "value": "method5" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json index 1307fb73245d..93e4da2d6cf8 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json @@ -179,9 +179,7 @@ "start": 270, "end": 277 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "params": [ { @@ -298,9 +296,7 @@ "start": 332, "end": 339 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "params": [ { @@ -519,9 +515,7 @@ "start": 454, "end": 461 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [ @@ -650,9 +644,7 @@ "start": 515, "end": 522 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJs.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJs.json index 9f55289efe5c..b36a8c858a3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJs.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJs.json @@ -37,9 +37,7 @@ "start": 292, "end": 310 }, - "ctxt": 0, - "value": "readonlyStaticCall", - "optional": false + "value": "readonlyStaticCall" }, "value": { "type": "CallExpression", @@ -84,9 +82,7 @@ "start": 396, "end": 414 }, - "ctxt": 0, - "value": "readonlyStaticType", - "optional": false + "value": "readonlyStaticType" }, "value": null, "typeAnnotation": null, @@ -112,9 +108,7 @@ "start": 489, "end": 514 }, - "ctxt": 0, - "value": "readonlyStaticTypeAndCall", - "optional": false + "value": "readonlyStaticTypeAndCall" }, "value": { "type": "CallExpression", @@ -159,9 +153,7 @@ "start": 538, "end": 557 }, - "ctxt": 0, - "value": "readwriteStaticCall", - "optional": false + "value": "readwriteStaticCall" }, "value": { "type": "CallExpression", @@ -206,9 +198,7 @@ "start": 608, "end": 620 }, - "ctxt": 0, - "value": "readonlyCall", - "optional": false + "value": "readonlyCall" }, "value": { "type": "CallExpression", @@ -253,9 +243,7 @@ "start": 637, "end": 650 }, - "ctxt": 0, - "value": "readwriteCall", - "optional": false + "value": "readwriteCall" }, "value": { "type": "CallExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJsErrors.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJsErrors.json index b70d83e6bf53..6559e4c4bc20 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJsErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJsErrors.json @@ -37,9 +37,7 @@ "start": 305, "end": 324 }, - "ctxt": 0, - "value": "readwriteStaticType", - "optional": false + "value": "readwriteStaticType" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 399, "end": 411 }, - "ctxt": 0, - "value": "readonlyType", - "optional": false + "value": "readonlyType" }, "value": null, "typeAnnotation": null, @@ -93,9 +89,7 @@ "start": 469, "end": 482 }, - "ctxt": 0, - "value": "readwriteType", - "optional": false + "value": "readwriteType" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json b/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json index cacb92b1a450..a0bc196e211e 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json @@ -7197,9 +7197,7 @@ "start": 5170, "end": 5177 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -7248,9 +7246,7 @@ "start": 5190, "end": 5197 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -7346,9 +7342,7 @@ "start": 5247, "end": 5251 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -7374,9 +7368,7 @@ "start": 5255, "end": 5261 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -7414,9 +7406,7 @@ "start": 5273, "end": 5277 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -7442,9 +7432,7 @@ "start": 5281, "end": 5287 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/unknownType1.json b/crates/swc_ecma_parser/tests/tsc/unknownType1.json index 6f0403d21957..a74b5db51248 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownType1.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownType1.json @@ -2024,9 +2024,7 @@ "start": 1626, "end": 1629 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -2312,9 +2310,7 @@ "start": 1857, "end": 1860 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -4458,9 +4454,7 @@ "start": 3268, "end": 3269 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4881,9 +4875,7 @@ "start": 3549, "end": 3550 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -4960,9 +4952,7 @@ "start": 3597, "end": 3598 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5056,9 +5046,7 @@ "start": 3645, "end": 3646 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5169,9 +5157,7 @@ "start": 3695, "end": 3696 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5426,9 +5412,7 @@ "start": 4008, "end": 4009 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -5468,9 +5452,7 @@ "start": 4033, "end": 4034 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": null, "typeAnnotation": { @@ -5510,9 +5492,7 @@ "start": 4049, "end": 4050 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/unknownType2.json b/crates/swc_ecma_parser/tests/tsc/unknownType2.json index 7cff007111bd..aa82c4ca5674 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownType2.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownType2.json @@ -743,9 +743,7 @@ "start": 388, "end": 396 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [ @@ -3730,9 +3728,7 @@ "start": 1991, "end": 1992 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -3783,6 +3779,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2007, + "end": 2019 + }, "left": { "type": "Identifier", "span": { @@ -3799,9 +3799,7 @@ "start": 2018, "end": 2019 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -3871,9 +3869,7 @@ "start": 2048, "end": 2049 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } }, @@ -3924,6 +3920,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2064, + "end": 2076 + }, "left": { "type": "Identifier", "span": { @@ -3940,9 +3940,7 @@ "start": 2075, "end": 2076 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -4074,9 +4072,7 @@ "start": 2163, "end": 2164 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -4119,6 +4115,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2187, + "end": 2199 + }, "left": { "type": "Identifier", "span": { @@ -4135,9 +4135,7 @@ "start": 2198, "end": 2199 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -4196,9 +4194,7 @@ "start": 2248, "end": 2249 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -4241,6 +4237,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2272, + "end": 2284 + }, "left": { "type": "Identifier", "span": { @@ -4257,9 +4257,7 @@ "start": 2283, "end": 2284 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -4318,9 +4316,7 @@ "start": 2333, "end": 2334 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "consequent": [ @@ -4363,6 +4359,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2357, + "end": 2369 + }, "left": { "type": "Identifier", "span": { @@ -4379,9 +4379,7 @@ "start": 2368, "end": 2369 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -4617,9 +4615,7 @@ "start": 2532, "end": 2533 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "consequent": [ @@ -4662,6 +4658,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2556, + "end": 2568 + }, "left": { "type": "Identifier", "span": { @@ -4678,9 +4678,7 @@ "start": 2567, "end": 2568 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -4731,9 +4729,7 @@ "start": 2598, "end": 2599 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "consequent": [ @@ -4783,6 +4779,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2622, + "end": 2634 + }, "left": { "type": "Identifier", "span": { @@ -4799,9 +4799,7 @@ "start": 2633, "end": 2634 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -4814,6 +4812,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2637, + "end": 2649 + }, "left": { "type": "Identifier", "span": { @@ -4830,9 +4832,7 @@ "start": 2648, "end": 2649 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -4885,9 +4885,7 @@ "start": 2679, "end": 2680 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "consequent": [ @@ -4937,6 +4935,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2703, + "end": 2715 + }, "left": { "type": "Identifier", "span": { @@ -4953,9 +4955,7 @@ "start": 2714, "end": 2715 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -4968,6 +4968,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2718, + "end": 2730 + }, "left": { "type": "Identifier", "span": { @@ -4984,9 +4988,7 @@ "start": 2729, "end": 2730 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -4999,6 +5001,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 2733, + "end": 2745 + }, "left": { "type": "Identifier", "span": { @@ -5015,9 +5021,7 @@ "start": 2744, "end": 2745 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } }, "typeParams": null @@ -7899,9 +7903,7 @@ "start": 5036, "end": 5037 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -7961,6 +7963,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5071, + "end": 5083 + }, "left": { "type": "Identifier", "span": { @@ -7977,9 +7983,7 @@ "start": 5082, "end": 5083 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -8062,9 +8066,7 @@ "start": 5122, "end": 5123 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -8107,9 +8109,7 @@ "start": 5144, "end": 5145 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -8153,9 +8153,7 @@ "start": 5166, "end": 5167 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -8223,6 +8221,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5204, + "end": 5216 + }, "left": { "type": "Identifier", "span": { @@ -8239,9 +8241,7 @@ "start": 5215, "end": 5216 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -8254,6 +8254,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5219, + "end": 5231 + }, "left": { "type": "Identifier", "span": { @@ -8270,9 +8274,7 @@ "start": 5230, "end": 5231 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -8285,6 +8287,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5234, + "end": 5246 + }, "left": { "type": "Identifier", "span": { @@ -8301,9 +8307,7 @@ "start": 5245, "end": 5246 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -8401,9 +8405,7 @@ "start": 5308, "end": 5309 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } }, @@ -8446,9 +8448,7 @@ "start": 5330, "end": 5331 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } @@ -8492,9 +8492,7 @@ "start": 5352, "end": 5353 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -8564,6 +8562,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5391, + "end": 5403 + }, "left": { "type": "Identifier", "span": { @@ -8580,9 +8582,7 @@ "start": 5402, "end": 5403 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null @@ -8595,6 +8595,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5406, + "end": 5418 + }, "left": { "type": "Identifier", "span": { @@ -8611,9 +8615,7 @@ "start": 5417, "end": 5418 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } }, "typeParams": null @@ -8626,6 +8628,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 5421, + "end": 5433 + }, "left": { "type": "Identifier", "span": { @@ -8642,9 +8648,7 @@ "start": 5432, "end": 5433 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json b/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json index 8e0448308798..a64c053be3f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json +++ b/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json @@ -40,9 +40,7 @@ "start": 245, "end": 252 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { @@ -60,9 +58,7 @@ "start": 257, "end": 260 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "params": [], "decorators": [], @@ -179,9 +175,7 @@ "start": 327, "end": 330 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json index 7eb34453e1ea..e64ee11b874f 100644 --- a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json +++ b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json @@ -47,9 +47,7 @@ "start": 55, "end": 56 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 61, "end": 62 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -157,9 +153,7 @@ "start": 91, "end": 97 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -287,9 +281,7 @@ "start": 143, "end": 150 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -369,9 +361,7 @@ "start": 216, "end": 222 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -451,9 +441,7 @@ "start": 283, "end": 290 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -532,9 +520,7 @@ "start": 353, "end": 359 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -613,9 +599,7 @@ "start": 416, "end": 423 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -636,9 +620,7 @@ "start": 426, "end": 427 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -657,9 +639,7 @@ "start": 435, "end": 436 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -737,9 +717,7 @@ "start": 497, "end": 503 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -760,9 +738,7 @@ "start": 506, "end": 507 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", @@ -781,9 +757,7 @@ "start": 515, "end": 516 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -861,9 +835,7 @@ "start": 573, "end": 580 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -941,9 +913,7 @@ "start": 642, "end": 648 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -1097,9 +1067,7 @@ "start": 729, "end": 736 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -1179,9 +1147,7 @@ "start": 802, "end": 808 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -1318,9 +1284,7 @@ "start": 884, "end": 891 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -1400,9 +1364,7 @@ "start": 954, "end": 960 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -1573,9 +1535,7 @@ "start": 1048, "end": 1055 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -1655,9 +1615,7 @@ "start": 1118, "end": 1124 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries2.json b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries2.json index 044d4f96c4b1..0dc6b7127e79 100644 --- a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries2.json +++ b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries2.json @@ -47,9 +47,7 @@ "start": 41, "end": 42 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 47, "end": 48 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -157,9 +153,7 @@ "start": 77, "end": 83 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -287,9 +281,7 @@ "start": 129, "end": 136 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries3.json b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries3.json index 8e27390b7063..5fc6b359001b 100644 --- a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries3.json +++ b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries3.json @@ -47,9 +47,7 @@ "start": 28, "end": 29 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -157,9 +153,7 @@ "start": 64, "end": 70 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -287,9 +281,7 @@ "start": 116, "end": 123 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries4.json b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries4.json index 879c3be1497d..29d9561f19e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries4.json +++ b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries4.json @@ -47,9 +47,7 @@ "start": 44, "end": 45 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 50, "end": 51 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -157,9 +153,7 @@ "start": 80, "end": 86 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -287,9 +281,7 @@ "start": 132, "end": 139 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/usePromiseFinally.json b/crates/swc_ecma_parser/tests/tsc/usePromiseFinally.json index d8c32e1d4c76..d8d16fefdfcf 100644 --- a/crates/swc_ecma_parser/tests/tsc/usePromiseFinally.json +++ b/crates/swc_ecma_parser/tests/tsc/usePromiseFinally.json @@ -138,9 +138,7 @@ "start": 112, "end": 119 }, - "ctxt": 0, - "value": "finally", - "optional": false + "value": "finally" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json b/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json index a79db74f5121..0e77f3d13dae 100644 --- a/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json +++ b/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json @@ -101,9 +101,7 @@ "start": 112, "end": 116 }, - "ctxt": 0, - "value": "exec", - "optional": false + "value": "exec" } }, "arguments": [ @@ -245,9 +243,7 @@ "start": 175, "end": 181 }, - "ctxt": 0, - "value": "groups", - "optional": false + "value": "groups" } }, "property": { @@ -256,9 +252,7 @@ "start": 182, "end": 186 }, - "ctxt": 0, - "value": "year", - "optional": false + "value": "year" } }, "definite": false @@ -384,9 +378,7 @@ "start": 232, "end": 238 }, - "ctxt": 0, - "value": "groups", - "optional": false + "value": "groups" } }, "property": { @@ -395,9 +387,7 @@ "start": 239, "end": 244 }, - "ctxt": 0, - "value": "month", - "optional": false + "value": "month" } }, "definite": false @@ -523,9 +513,7 @@ "start": 289, "end": 295 }, - "ctxt": 0, - "value": "groups", - "optional": false + "value": "groups" } }, "property": { @@ -534,9 +522,7 @@ "start": 296, "end": 299 }, - "ctxt": 0, - "value": "day", - "optional": false + "value": "day" } }, "definite": false @@ -680,9 +666,7 @@ "start": 340, "end": 345 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -708,9 +692,7 @@ "start": 362, "end": 368 }, - "ctxt": 0, - "value": "groups", - "optional": false + "value": "groups" } }, "property": { @@ -719,9 +701,7 @@ "start": 369, "end": 372 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer1.json b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer1.json index dd50dd3f65c4..8a0a78c468ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer1.json +++ b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer1.json @@ -125,9 +125,7 @@ "start": 106, "end": 111 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -211,9 +209,7 @@ "start": 135, "end": 145 }, - "ctxt": 0, - "value": "byteLength", - "optional": false + "value": "byteLength" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer2.json b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer2.json index 9357535aabbb..5af6c0ed64ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer2.json +++ b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer2.json @@ -125,9 +125,7 @@ "start": 86, "end": 91 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -211,9 +209,7 @@ "start": 115, "end": 125 }, - "ctxt": 0, - "value": "byteLength", - "optional": false + "value": "byteLength" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer3.json b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer3.json index d4ae397f4bf2..875a3046593d 100644 --- a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer3.json +++ b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer3.json @@ -125,9 +125,7 @@ "start": 73, "end": 78 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -211,9 +209,7 @@ "start": 102, "end": 112 }, - "ctxt": 0, - "value": "byteLength", - "optional": false + "value": "byteLength" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer4.json b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer4.json index c7114eeef0f7..d8c3af3d49e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer4.json +++ b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer4.json @@ -125,9 +125,7 @@ "start": 89, "end": 94 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -233,9 +231,7 @@ "start": 129, "end": 136 }, - "ctxt": 0, - "value": "species", - "optional": false + "value": "species" } } } @@ -315,9 +311,7 @@ "start": 167, "end": 178 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } } @@ -375,9 +369,7 @@ "start": 196, "end": 206 }, - "ctxt": 0, - "value": "byteLength", - "optional": false + "value": "byteLength" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer5.json b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer5.json index 7ee57563bdf7..cc9f24175966 100644 --- a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer5.json +++ b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer5.json @@ -140,9 +140,7 @@ "start": 117, "end": 124 }, - "ctxt": 0, - "value": "species", - "optional": false + "value": "species" } } } @@ -222,9 +220,7 @@ "start": 155, "end": 166 }, - "ctxt": 0, - "value": "toStringTag", - "optional": false + "value": "toStringTag" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer6.json b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer6.json index c2c19a7056b9..e6589e999f2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer6.json +++ b/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer6.json @@ -97,9 +97,7 @@ "start": 96, "end": 102 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -152,9 +150,7 @@ "start": 152, "end": 158 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.1.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.1.json index dccbd8fc892e..058cc0f1f69b 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.1.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.1.json @@ -67,9 +67,7 @@ "start": 130, "end": 137 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -197,9 +195,7 @@ "start": 188, "end": 195 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -334,9 +330,7 @@ "start": 255, "end": 262 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -492,9 +486,7 @@ "start": 333, "end": 340 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -645,9 +637,7 @@ "start": 413, "end": 420 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -834,9 +824,7 @@ "start": 503, "end": 510 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -917,9 +905,7 @@ "start": 538, "end": 539 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "ArrowFunctionExpression", @@ -999,9 +985,7 @@ "start": 579, "end": 586 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1070,9 +1054,7 @@ "start": 607, "end": 618 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -1145,9 +1127,7 @@ "start": 652, "end": 659 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1266,9 +1246,7 @@ "start": 718, "end": 725 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1321,9 +1299,7 @@ "start": 746, "end": 747 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -1403,9 +1379,7 @@ "start": 782, "end": 789 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1469,9 +1443,7 @@ "start": 814, "end": 815 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -1551,9 +1523,7 @@ "start": 850, "end": 857 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1633,9 +1603,7 @@ "start": 900, "end": 901 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ @@ -1735,9 +1703,7 @@ "start": 937, "end": 944 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1801,9 +1767,7 @@ "start": 971, "end": 973 }, - "ctxt": 0, - "value": "am", - "optional": false + "value": "am" }, "function": { "params": [], @@ -1883,9 +1847,7 @@ "start": 1008, "end": 1015 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -1970,9 +1932,7 @@ "start": 1058, "end": 1059 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -2052,9 +2012,7 @@ "start": 1094, "end": 1101 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -2134,9 +2092,7 @@ "start": 1145, "end": 1147 }, - "ctxt": 0, - "value": "ag", - "optional": false + "value": "ag" }, "function": { "params": [], @@ -2216,9 +2172,7 @@ "start": 1182, "end": 1189 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -2347,9 +2301,7 @@ "start": 1269, "end": 1280 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2422,9 +2374,7 @@ "start": 1315, "end": 1322 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -2539,9 +2489,7 @@ "start": 1384, "end": 1385 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -2576,9 +2524,7 @@ "start": 1395, "end": 1406 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -2651,9 +2597,7 @@ "start": 1441, "end": 1448 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -2823,9 +2767,7 @@ "start": 1524, "end": 1531 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -2936,9 +2878,7 @@ "start": 1572, "end": 1579 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3013,9 +2953,7 @@ "start": 1605, "end": 1611 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -3100,9 +3038,7 @@ "start": 1659, "end": 1666 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3228,9 +3164,7 @@ "start": 1734, "end": 1741 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3388,9 +3322,7 @@ "start": 1846, "end": 1853 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3518,9 +3450,7 @@ "start": 1921, "end": 1928 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3637,9 +3567,7 @@ "start": 1974, "end": 1981 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3750,9 +3678,7 @@ "start": 2029, "end": 2036 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3877,9 +3803,7 @@ "start": 2087, "end": 2094 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -3989,9 +3913,7 @@ "start": 2139, "end": 2146 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -4116,9 +4038,7 @@ "start": 2200, "end": 2207 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -4251,9 +4171,7 @@ "start": 2262, "end": 2269 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -4381,9 +4299,7 @@ "start": 2344, "end": 2351 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -4548,9 +4464,7 @@ "start": 2423, "end": 2430 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -4708,9 +4622,7 @@ "start": 2491, "end": 2498 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json index 94381c41ba40..bca2792d338c 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.11.json @@ -64,9 +64,7 @@ "start": 117, "end": 128 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -198,9 +196,7 @@ "start": 207, "end": 218 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -331,9 +327,7 @@ "start": 297, "end": 298 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -368,9 +362,7 @@ "start": 308, "end": 319 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -502,9 +494,7 @@ "start": 398, "end": 409 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -672,9 +662,7 @@ "start": 504, "end": 505 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" }, "value": { "type": "NumericLiteral", @@ -709,9 +697,7 @@ "start": 515, "end": 526 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.12.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.12.json index b1e0383f6f54..358921ad4d19 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.12.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.12.json @@ -38,9 +38,7 @@ "start": 130, "end": 141 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -94,9 +92,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -131,9 +127,7 @@ "start": 187, "end": 198 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -230,9 +224,7 @@ "start": 250, "end": 257 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.15.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.15.json index 27fceb051d6b..45c5ac0111ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.15.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.15.json @@ -78,9 +78,7 @@ "start": 141, "end": 148 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.2.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.2.json index 4caff68c7871..bbb5e3146d8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.2.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.2.json @@ -75,9 +75,7 @@ "start": 136, "end": 143 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -160,9 +158,7 @@ "start": 178, "end": 185 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.3.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.3.json index b74f5100236e..2bb372cb8bdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarations.3.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarations.3.json @@ -75,9 +75,7 @@ "start": 136, "end": 143 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -215,9 +213,7 @@ "start": 225, "end": 232 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.1.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.1.json index c32692d10282..5552586bec6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.1.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.1.json @@ -67,9 +67,7 @@ "start": 111, "end": 118 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -200,9 +198,7 @@ "start": 177, "end": 189 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.2.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.2.json index 5096a8f7632e..2f8c5574cfbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.2.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsDeclarationEmit.2.json @@ -67,9 +67,7 @@ "start": 111, "end": 118 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -213,9 +211,7 @@ "start": 190, "end": 202 }, - "ctxt": 0, - "value": "asyncDispose", - "optional": false + "value": "asyncDispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForAwaitOf.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForAwaitOf.json index ce73340f9549..2417e0dd704c 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForAwaitOf.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForAwaitOf.json @@ -116,9 +116,7 @@ "start": 171, "end": 178 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForOf.1.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForOf.1.json index f46eaf1c0db3..8479ed346b21 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForOf.1.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsInForOf.1.json @@ -88,9 +88,7 @@ "start": 137, "end": 144 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsNamedEvaluationDecoratorsAndClassFields.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsNamedEvaluationDecoratorsAndClassFields.json index 090c4c716a9e..4f45ec3be17d 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsNamedEvaluationDecoratorsAndClassFields.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsNamedEvaluationDecoratorsAndClassFields.json @@ -131,9 +131,7 @@ "start": 157, "end": 164 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -231,9 +229,7 @@ "start": 205, "end": 206 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -289,9 +285,7 @@ "start": 231, "end": 238 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -429,9 +423,7 @@ "start": 292, "end": 299 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -547,9 +539,7 @@ "start": 345, "end": 346 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -605,9 +595,7 @@ "start": 371, "end": 378 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.1.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.1.json index 5e54369ffebc..7c3da4014728 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.1.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.1.json @@ -145,9 +145,7 @@ "start": 187, "end": 194 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -323,9 +321,7 @@ "start": 267, "end": 270 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.2.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.2.json index c2a703dff64a..fb143d8e62b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.2.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.2.json @@ -67,9 +67,7 @@ "start": 138, "end": 145 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -182,9 +180,7 @@ "start": 178, "end": 181 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.3.json b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.3.json index 7ae999e4e7f0..40662f78d379 100644 --- a/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.3.json +++ b/crates/swc_ecma_parser/tests/tsc/usingDeclarationsTopLevelOfModule.3.json @@ -98,9 +98,7 @@ "start": 167, "end": 174 }, - "ctxt": 0, - "value": "dispose", - "optional": false + "value": "dispose" } } }, @@ -267,9 +265,7 @@ "start": 243, "end": 246 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/validEnumAssignments.json b/crates/swc_ecma_parser/tests/tsc/validEnumAssignments.json index deeb094e69ac..420e209748d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/validEnumAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validEnumAssignments.json @@ -292,9 +292,7 @@ "start": 77, "end": 78 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -417,9 +415,7 @@ "start": 101, "end": 102 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -506,9 +502,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } } } @@ -559,9 +553,7 @@ "start": 127, "end": 128 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json b/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json index ef23f80f6043..10f29059267f 100644 --- a/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json @@ -543,9 +543,7 @@ "start": 330, "end": 331 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -565,9 +563,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -651,9 +647,7 @@ "start": 361, "end": 362 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -673,9 +667,7 @@ "start": 367, "end": 368 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", @@ -736,9 +728,7 @@ "start": 393, "end": 394 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -758,9 +748,7 @@ "start": 399, "end": 400 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "TsTypeAssertion", @@ -921,9 +909,7 @@ "start": 460, "end": 461 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -943,9 +929,7 @@ "start": 466, "end": 467 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -1011,9 +995,7 @@ "start": 511, "end": 512 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -1033,9 +1015,7 @@ "start": 517, "end": 518 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json b/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json index 0a5ffe0279dc..06ed2b29d8aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validNullAssignments.json @@ -382,9 +382,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "right": { @@ -428,9 +426,7 @@ "start": 183, "end": 186 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/validNumberAssignments.json b/crates/swc_ecma_parser/tests/tsc/validNumberAssignments.json index bb0e4191cc70..fc95c6dc24f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/validNumberAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validNumberAssignments.json @@ -380,9 +380,7 @@ "start": 105, "end": 106 }, - "ctxt": 0, - "value": "A", - "optional": false + "value": "A" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json b/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json index 4d08535c83cb..7d642cc55ba3 100644 --- a/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validUndefinedAssignments.json @@ -414,9 +414,7 @@ "start": 165, "end": 168 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json b/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json index bba2a78fe72f..c12dbefee318 100644 --- a/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json +++ b/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json @@ -346,9 +346,7 @@ "start": 224, "end": 235 }, - "ctxt": 0, - "value": "displayName", - "optional": false + "value": "displayName" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json b/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json index bce280a49680..265b8580c7cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json +++ b/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json @@ -44,9 +44,7 @@ "start": 146, "end": 157 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -109,9 +107,7 @@ "start": 176, "end": 177 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "right": { @@ -143,9 +139,7 @@ "start": 192, "end": 193 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -188,9 +182,7 @@ "start": 218, "end": 219 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -336,9 +328,7 @@ "start": 311, "end": 317 }, - "ctxt": 0, - "value": "Crunch", - "optional": false + "value": "Crunch" } }, "arguments": [ @@ -389,9 +379,7 @@ "start": 329, "end": 330 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -471,9 +459,7 @@ "start": 410, "end": 411 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json b/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json index d03f39473145..0147a67d8c6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json @@ -121,9 +121,7 @@ "start": 153, "end": 154 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": null, "typeAnnotation": { @@ -163,9 +161,7 @@ "start": 167, "end": 168 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -215,9 +211,7 @@ "start": 183, "end": 194 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -386,9 +380,7 @@ "start": 291, "end": 297 }, - "ctxt": 0, - "value": "Crunch", - "optional": false + "value": "Crunch" } }, "arguments": [ @@ -439,9 +431,7 @@ "start": 309, "end": 310 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -540,9 +530,7 @@ "start": 437, "end": 440 }, - "ctxt": 0, - "value": "day", - "optional": false + "value": "day" } } }, @@ -574,9 +562,7 @@ "start": 450, "end": 451 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json b/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json index c37da1619239..cfad88ce61e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json +++ b/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json @@ -26538,9 +26538,7 @@ "start": 12772, "end": 12776 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/variance.json b/crates/swc_ecma_parser/tests/tsc/variance.json index 656ca2d14f26..86468f3efbd0 100644 --- a/crates/swc_ecma_parser/tests/tsc/variance.json +++ b/crates/swc_ecma_parser/tests/tsc/variance.json @@ -202,9 +202,7 @@ "start": 189, "end": 193 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "BooleanLiteral", @@ -505,9 +503,7 @@ "start": 360, "end": 368 }, - "ctxt": 0, - "value": "instance", - "optional": false + "value": "instance" }, "value": { "type": "ArrayExpression", @@ -587,9 +583,7 @@ "start": 393, "end": 397 }, - "ctxt": 0, - "value": "cast", - "optional": false + "value": "cast" }, "function": { "params": [ @@ -748,9 +742,7 @@ "start": 456, "end": 464 }, - "ctxt": 0, - "value": "pushThis", - "optional": false + "value": "pushThis" }, "function": { "params": [], @@ -809,9 +801,7 @@ "start": 477, "end": 485 }, - "ctxt": 0, - "value": "instance", - "optional": false + "value": "instance" } }, "property": { @@ -820,9 +810,7 @@ "start": 486, "end": 490 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json index a8537daed539..29bc50e1a34c 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json @@ -198,9 +198,7 @@ "start": 201, "end": 202 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -242,9 +240,7 @@ "start": 216, "end": 217 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxInternalImportEquals.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxInternalImportEquals.json index bebdf23bedfc..01010db641c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxInternalImportEquals.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxInternalImportEquals.json @@ -174,6 +174,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 171, + "end": 178 + }, "left": { "type": "Identifier", "span": { @@ -190,9 +194,7 @@ "start": 175, "end": 178 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } } }, @@ -216,6 +218,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 192, + "end": 197 + }, "left": { "type": "Identifier", "span": { @@ -232,9 +238,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "T", - "optional": false + "value": "T" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json index 39d85d3d710d..b69d3f669f96 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json @@ -813,9 +813,7 @@ "start": 976, "end": 977 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json index 9c016d696e32..fb51b6ae1aaf 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json @@ -272,9 +272,7 @@ "start": 114, "end": 115 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -294,9 +292,7 @@ "start": 119, "end": 120 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -444,9 +440,7 @@ "start": 196, "end": 197 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -486,9 +480,7 @@ "start": 215, "end": 218 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -1225,9 +1217,7 @@ "start": 683, "end": 684 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } } }, @@ -1291,9 +1281,7 @@ "start": 716, "end": 717 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -1357,9 +1345,7 @@ "start": 749, "end": 750 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1423,9 +1409,7 @@ "start": 779, "end": 780 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1555,9 +1539,7 @@ "start": 841, "end": 844 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -2179,9 +2161,7 @@ "start": 1226, "end": 1227 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -2221,9 +2201,7 @@ "start": 1236, "end": 1237 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithBooleanType.json index 0860249866f3..8a8f157bbfce 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithBooleanType.json @@ -147,9 +147,7 @@ "start": 121, "end": 122 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -189,9 +187,7 @@ "start": 144, "end": 147 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -522,9 +518,7 @@ "start": 366, "end": 367 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "BooleanLiteral", @@ -543,9 +537,7 @@ "start": 375, "end": 376 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "BooleanLiteral", @@ -619,9 +611,7 @@ "start": 445, "end": 446 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -685,9 +675,7 @@ "start": 474, "end": 475 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -817,9 +805,7 @@ "start": 534, "end": 537 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1045,9 +1031,7 @@ "start": 702, "end": 703 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1087,9 +1071,7 @@ "start": 712, "end": 713 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json index 8e9ae74438e8..ebcc545ac3a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json @@ -576,9 +576,7 @@ "start": 377, "end": 378 }, - "ctxt": 0, - "value": "B", - "optional": false + "value": "B" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithNumberType.json index 8b60de088633..57dfd3adc324 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithNumberType.json @@ -233,9 +233,7 @@ "start": 146, "end": 147 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 412, "end": 413 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -681,9 +675,7 @@ "start": 418, "end": 419 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "NumericLiteral", @@ -751,9 +743,7 @@ "start": 451, "end": 452 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -773,9 +763,7 @@ "start": 457, "end": 458 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 549, "end": 550 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 578, "end": 579 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 675, "end": 678 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1555,9 +1537,7 @@ "start": 934, "end": 935 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } } @@ -1597,9 +1577,7 @@ "start": 944, "end": 945 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } } @@ -1646,9 +1624,7 @@ "start": 957, "end": 958 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1674,9 +1650,7 @@ "start": 962, "end": 963 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json index 19c638b6714e..4774dd9a1f6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json @@ -233,9 +233,7 @@ "start": 155, "end": 156 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -275,9 +273,7 @@ "start": 177, "end": 180 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [], @@ -659,9 +655,7 @@ "start": 423, "end": 424 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -681,9 +675,7 @@ "start": 430, "end": 431 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "StringLiteral", @@ -751,9 +743,7 @@ "start": 465, "end": 466 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "StringLiteral", @@ -773,9 +763,7 @@ "start": 472, "end": 473 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" }, "value": { "type": "ArrowFunctionExpression", @@ -907,9 +895,7 @@ "start": 564, "end": 565 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -973,9 +959,7 @@ "start": 593, "end": 594 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } }, @@ -1177,9 +1161,7 @@ "start": 690, "end": 693 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [], @@ -1327,9 +1309,7 @@ "start": 773, "end": 779 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -1651,9 +1631,7 @@ "start": 993, "end": 994 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } } }, @@ -1679,9 +1657,7 @@ "start": 997, "end": 998 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json b/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json index f32dadb5dba9..98fbadcba58c 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json +++ b/crates/swc_ecma_parser/tests/tsc/voidParamAssignmentCompatibility.json @@ -399,9 +399,7 @@ "start": 163, "end": 169 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" } } } diff --git a/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json index 530fec785a58..bac0e25a48b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json @@ -50,9 +50,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "WhileStatement", @@ -88,9 +86,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -109,9 +105,7 @@ "start": 129, "end": 132 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -125,9 +119,7 @@ "start": 134, "end": 139 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "WhileStatement", @@ -163,9 +155,7 @@ "start": 166, "end": 171 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -185,9 +175,7 @@ "start": 176, "end": 180 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "WhileStatement", @@ -223,9 +211,7 @@ "start": 201, "end": 205 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "WhileStatement", @@ -261,9 +247,7 @@ "start": 240, "end": 244 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -308,9 +292,7 @@ "start": 274, "end": 277 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "WhileStatement", @@ -338,9 +320,7 @@ "start": 310, "end": 313 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -360,9 +340,7 @@ "start": 318, "end": 323 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "WhileStatement", @@ -418,9 +396,7 @@ "start": 394, "end": 399 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -439,9 +415,7 @@ "start": 402, "end": 407 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "WhileStatement", @@ -532,9 +506,7 @@ "start": 463, "end": 468 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json index 099f0a9ac1a9..bbd3e58757b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json @@ -109,9 +109,7 @@ "start": 91, "end": 94 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" }, "body": { "type": "WhileStatement", @@ -147,9 +145,7 @@ "start": 125, "end": 128 }, - "ctxt": 0, - "value": "ONE", - "optional": false + "value": "ONE" } } ] @@ -168,9 +164,7 @@ "start": 133, "end": 136 }, - "ctxt": 0, - "value": "TWO", - "optional": false + "value": "TWO" }, "body": { "type": "LabeledStatement", @@ -184,9 +178,7 @@ "start": 138, "end": 143 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" }, "body": { "type": "WhileStatement", @@ -222,9 +214,7 @@ "start": 173, "end": 178 }, - "ctxt": 0, - "value": "THREE", - "optional": false + "value": "THREE" } } ] @@ -244,9 +234,7 @@ "start": 183, "end": 187 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" }, "body": { "type": "WhileStatement", @@ -282,9 +270,7 @@ "start": 208, "end": 212 }, - "ctxt": 0, - "value": "FIVE", - "optional": false + "value": "FIVE" }, "body": { "type": "WhileStatement", @@ -320,9 +306,7 @@ "start": 250, "end": 254 }, - "ctxt": 0, - "value": "FOUR", - "optional": false + "value": "FOUR" } } ] @@ -367,9 +351,7 @@ "start": 284, "end": 287 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" }, "body": { "type": "WhileStatement", @@ -397,9 +379,7 @@ "start": 323, "end": 326 }, - "ctxt": 0, - "value": "SIX", - "optional": false + "value": "SIX" } } } @@ -419,9 +399,7 @@ "start": 331, "end": 336 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" }, "body": { "type": "WhileStatement", @@ -477,9 +455,7 @@ "start": 410, "end": 415 }, - "ctxt": 0, - "value": "SEVEN", - "optional": false + "value": "SEVEN" } } } @@ -498,9 +474,7 @@ "start": 418, "end": 423 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" }, "body": { "type": "WhileStatement", @@ -591,9 +565,7 @@ "start": 482, "end": 487 }, - "ctxt": 0, - "value": "EIGHT", - "optional": false + "value": "EIGHT" } } ] @@ -612,9 +584,7 @@ "start": 492, "end": 496 }, - "ctxt": 0, - "value": "NINE", - "optional": false + "value": "NINE" }, "body": { "type": "WhileStatement", @@ -672,9 +642,7 @@ "start": 538, "end": 542 }, - "ctxt": 0, - "value": "NINE", - "optional": false + "value": "NINE" } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/witness.json b/crates/swc_ecma_parser/tests/tsc/witness.json index 75a6f40cd10f..a474fabc88d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/witness.json +++ b/crates/swc_ecma_parser/tests/tsc/witness.json @@ -242,9 +242,7 @@ "start": 140, "end": 141 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "MemberExpression", @@ -265,9 +263,7 @@ "start": 149, "end": 150 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "typeAnnotation": null, @@ -293,9 +289,7 @@ "start": 156, "end": 158 }, - "ctxt": 0, - "value": "fn", - "optional": false + "value": "fn" }, "function": { "params": [], @@ -359,9 +353,7 @@ "start": 184, "end": 185 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -3225,9 +3217,7 @@ "start": 1585, "end": 1588 }, - "ctxt": 0, - "value": "fn1", - "optional": false + "value": "fn1" }, "function": { "params": [], @@ -3290,9 +3280,7 @@ "start": 1618, "end": 1621 }, - "ctxt": 0, - "value": "fn1", - "optional": false + "value": "fn1" } }, "arguments": [], @@ -3329,9 +3317,7 @@ "start": 1638, "end": 1641 }, - "ctxt": 0, - "value": "fn2", - "optional": false + "value": "fn2" }, "function": { "params": [], @@ -3394,9 +3380,7 @@ "start": 1671, "end": 1674 }, - "ctxt": 0, - "value": "fn2", - "optional": false + "value": "fn2" } }, "arguments": [], @@ -3433,9 +3417,7 @@ "start": 1689, "end": 1692 }, - "ctxt": 0, - "value": "fn3", - "optional": false + "value": "fn3" }, "function": { "params": [], @@ -3573,9 +3555,7 @@ "start": 1756, "end": 1759 }, - "ctxt": 0, - "value": "fn3", - "optional": false + "value": "fn3" } } } @@ -3848,9 +3828,7 @@ "start": 1944, "end": 1945 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "value": { "type": "MemberExpression", @@ -3874,9 +3852,7 @@ "start": 1956, "end": 1957 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" } } } @@ -4048,9 +4024,7 @@ "start": 2058, "end": 2059 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" } }, "definite": false @@ -4180,9 +4154,7 @@ "start": 2152, "end": 2153 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "value": { "type": "MemberExpression", @@ -4203,9 +4175,7 @@ "start": 2161, "end": 2162 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "typeAnnotation": null, @@ -4285,9 +4255,7 @@ "start": 2198, "end": 2199 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" } }, "definite": false @@ -4372,9 +4340,7 @@ "start": 2281, "end": 2282 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" }, "value": { "type": "MemberExpression", @@ -4398,9 +4364,7 @@ "start": 2288, "end": 2289 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "typeAnnotation": null, @@ -4470,9 +4434,7 @@ "start": 2305, "end": 2306 }, - "ctxt": 0, - "value": "q", - "optional": false + "value": "q" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json index 60fe0b02917e..73386a0e48da 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.json @@ -38,9 +38,7 @@ "start": 54, "end": 65 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -114,9 +112,7 @@ "start": 90, "end": 93 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -576,9 +572,7 @@ "start": 238, "end": 241 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json index 335d9cd6e3ad..13caa649ad09 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json @@ -38,9 +38,7 @@ "start": 40, "end": 51 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json index 9f37ad5b4158..ea2012d8ca3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json @@ -38,9 +38,7 @@ "start": 68, "end": 79 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -111,9 +109,7 @@ "start": 94, "end": 97 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -538,9 +534,7 @@ "start": 238, "end": 244 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "NumericLiteral", @@ -618,9 +612,7 @@ "start": 262, "end": 265 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -641,9 +633,7 @@ "start": 268, "end": 274 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "NumericLiteral", @@ -663,9 +653,7 @@ "start": 279, "end": 285 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json index 07434998af02..9642e2841e24 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json @@ -38,9 +38,7 @@ "start": 45, "end": 56 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -111,9 +109,7 @@ "start": 71, "end": 74 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "function": { "params": [ @@ -538,9 +534,7 @@ "start": 215, "end": 221 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "NumericLiteral", @@ -618,9 +612,7 @@ "start": 239, "end": 242 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" } }, "arguments": [ @@ -705,9 +697,7 @@ "start": 261, "end": 267 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" }, "value": { "type": "NumericLiteral", @@ -727,9 +717,7 @@ "start": 272, "end": 278 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/case1/input.ts.json index e1596df94d02..605852baff4c 100644 --- a/crates/swc_ecma_parser/tests/typescript/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/case1/input.ts.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/cast/need-parentheses/input.ts.json b/crates/swc_ecma_parser/tests/typescript/cast/need-parentheses/input.ts.json index afefc6a54f07..a7f087314c5a 100644 --- a/crates/swc_ecma_parser/tests/typescript/cast/need-parentheses/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/cast/need-parentheses/input.ts.json @@ -65,9 +65,7 @@ "start": 9, "end": 10 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -131,9 +129,7 @@ "start": 21, "end": 22 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } }, @@ -172,9 +168,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/cast/null-assertion-then-property-access/input.ts.json b/crates/swc_ecma_parser/tests/typescript/cast/null-assertion-then-property-access/input.ts.json index f1e733d8b889..3c4c2292f0c9 100644 --- a/crates/swc_ecma_parser/tests/typescript/cast/null-assertion-then-property-access/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/cast/null-assertion-then-property-access/input.ts.json @@ -40,9 +40,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "y", - "optional": false + "value": "y" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/class/abstract/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/abstract/input.ts.json index 77d4b782b1fc..2fe88b30ba43 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/abstract/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/abstract/input.ts.json @@ -183,9 +183,7 @@ "start": 290, "end": 294 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -225,9 +223,7 @@ "start": 315, "end": 321 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -310,9 +306,7 @@ "start": 422, "end": 426 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": { @@ -352,9 +346,7 @@ "start": 447, "end": 453 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -403,9 +395,7 @@ "start": 543, "end": 549 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/auto-accessor/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/auto-accessor/input.ts.json index 4f258028f696..4436f8638860 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/auto-accessor/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/auto-accessor/input.ts.json @@ -37,9 +37,7 @@ "start": 42, "end": 43 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": null, "typeAnnotation": { @@ -103,9 +101,7 @@ "start": 89, "end": 90 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { @@ -142,9 +138,7 @@ "start": 110, "end": 111 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -175,9 +169,7 @@ "start": 137, "end": 138 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" }, "value": null, "typeAnnotation": { @@ -214,9 +206,7 @@ "start": 165, "end": 166 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": { "type": "NumericLiteral", @@ -247,9 +237,7 @@ "start": 199, "end": 200 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" }, "value": { "type": "NumericLiteral", @@ -280,9 +268,7 @@ "start": 236, "end": 237 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": null, "typeAnnotation": { @@ -319,9 +305,7 @@ "start": 268, "end": 269 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "value": null, "typeAnnotation": { @@ -358,9 +342,7 @@ "start": 300, "end": 301 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "value": { "type": "NumericLiteral", @@ -391,9 +373,7 @@ "start": 336, "end": 337 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json index 326f6c638a03..e65c76ff1cdc 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/constructor-with-modifier-names/input.ts.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -107,9 +105,7 @@ "start": 47, "end": 58 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json index 6049fa781b8c..c60d868cbd58 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/constructor/input.ts.json @@ -38,9 +38,7 @@ "start": 15, "end": 26 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -127,9 +125,7 @@ "start": 54, "end": 65 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -216,9 +212,7 @@ "start": 93, "end": 104 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/class/declare/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/declare/input.ts.json index 582b33623f31..122e9fcbc5c2 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/declare/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/declare/input.ts.json @@ -88,9 +88,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -116,9 +114,7 @@ "start": 52, "end": 53 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -158,9 +154,7 @@ "start": 67, "end": 68 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -195,9 +189,7 @@ "start": 76, "end": 77 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json index d2e9989bc9c0..e8e7e369f573 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/decorators/input.ts.json @@ -56,9 +56,7 @@ "start": 20, "end": 31 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -140,9 +138,7 @@ "start": 91, "end": 97 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -220,9 +216,7 @@ "start": 117, "end": 121 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": null, @@ -266,9 +260,7 @@ "start": 141, "end": 146 }, - "ctxt": 0, - "value": "prop2", - "optional": false + "value": "prop2" }, "function": { "params": [], @@ -346,9 +338,7 @@ "start": 184, "end": 190 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/expression-extends-implements/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/expression-extends-implements/input.ts.json index a0d5e9cdefca..09deaf17f707 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/expression-extends-implements/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/expression-extends-implements/input.ts.json @@ -105,9 +105,7 @@ "start": 36, "end": 37 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { @@ -251,9 +249,7 @@ "start": 83, "end": 84 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { diff --git a/crates/swc_ecma_parser/tests/typescript/class/expression-implements/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/expression-implements/input.ts.json index 5a01e3d764a4..7def82ff8daa 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/expression-implements/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/expression-implements/input.ts.json @@ -60,9 +60,7 @@ "start": 21, "end": 22 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { @@ -161,9 +159,7 @@ "start": 53, "end": 54 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { diff --git a/crates/swc_ecma_parser/tests/typescript/class/extends-implements/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/extends-implements/input.ts.json index dec5a763207c..a4140bd5e51f 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/extends-implements/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/extends-implements/input.ts.json @@ -103,9 +103,7 @@ "start": 37, "end": 38 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { diff --git a/crates/swc_ecma_parser/tests/typescript/class/get-generic/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/get-generic/input.ts.json index aa3f0e977d44..0987bd1aa106 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/get-generic/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/get-generic/input.ts.json @@ -37,9 +37,7 @@ "start": 23, "end": 26 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/get-set-asi-issue/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/get-set-asi-issue/input.ts.json index 7fc4f922e70b..2712cce0812c 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/get-set-asi-issue/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/get-set-asi-issue/input.ts.json @@ -37,9 +37,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], @@ -99,9 +97,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/typescript/class/implements/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/implements/input.ts.json index eb5bf370d868..10e86dda7833 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/implements/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/implements/input.ts.json @@ -58,9 +58,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { diff --git a/crates/swc_ecma_parser/tests/typescript/class/members-with-modifier-names/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/members-with-modifier-names/input.ts.json index 1672e1613a9a..6d4f30017b8d 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/members-with-modifier-names/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/members-with-modifier-names/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 21 }, - "ctxt": 0, - "value": "public", - "optional": false + "value": "public" }, "function": { "params": [], @@ -88,9 +86,7 @@ "start": 42, "end": 48 }, - "ctxt": 0, - "value": "static", - "optional": false + "value": "static" }, "function": { "params": [], @@ -139,9 +135,7 @@ "start": 62, "end": 70 }, - "ctxt": 0, - "value": "readonly", - "optional": false + "value": "readonly" }, "value": { "type": "NumericLiteral", @@ -175,9 +169,7 @@ "start": 80, "end": 85 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/members-with-reserved-names/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/members-with-reserved-names/input.ts.json index dd512109d185..89ed54d39d31 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/members-with-reserved-names/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/members-with-reserved-names/input.ts.json @@ -37,9 +37,7 @@ "start": 22, "end": 28 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-computed/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-computed/input.ts.json index df150fcbc3df..99b1fafd90a3 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-computed/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-computed/input.ts.json @@ -59,9 +59,7 @@ "start": 23, "end": 31 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -134,9 +132,7 @@ "start": 54, "end": 62 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json index 04ed3f970db7..f76d75cdb235 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-generic/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [ @@ -307,9 +305,7 @@ "start": 62, "end": 70 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-no-body/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-no-body/input.ts.json index cc18588bb3e1..40c84ad85ef8 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-no-body/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-no-body/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 24, "end": 25 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-optional/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-optional/input.ts.json index 87cf0fa444fb..6951594f7676 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-optional/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-optional/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "m", - "optional": true + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json index cb6f5a32b27d..004f5c7bcee9 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -96,9 +94,7 @@ "start": 32, "end": 33 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" }, "function": { "params": [], @@ -193,9 +189,7 @@ "start": 69, "end": 70 }, - "ctxt": 0, - "value": "h", - "optional": false + "value": "h" }, "function": { "params": [], @@ -291,9 +285,7 @@ "start": 111, "end": 112 }, - "ctxt": 0, - "value": "i", - "optional": false + "value": "i" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-with-body/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-with-body/input.ts.json index dc06f2382b3a..7e0e4d03f79b 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-with-body/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-with-body/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-without-body/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-without-body/input.ts.json index 11a41ad0b48e..fd1b0d092908 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-without-body/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-with-newline-without-body/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "m", - "optional": false + "value": "m" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "n", - "optional": false + "value": "n" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/modifier-override/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/modifier-override/input.ts.json index ac77c041eb4b..1ab841cb87b6 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/modifier-override/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/modifier-override/input.ts.json @@ -37,9 +37,7 @@ "start": 38, "end": 46 }, - "ctxt": 0, - "value": "override", - "optional": false + "value": "override" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 63, "end": 67 }, - "ctxt": 0, - "value": "show", - "optional": false + "value": "show" }, "function": { "params": [], @@ -127,9 +123,7 @@ "start": 91, "end": 95 }, - "ctxt": 0, - "value": "show", - "optional": false + "value": "show" }, "function": { "params": [], @@ -172,9 +166,7 @@ "start": 112, "end": 116 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "value": { "type": "NumericLiteral", @@ -208,9 +200,7 @@ "start": 142, "end": 146 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "value": { "type": "NumericLiteral", @@ -244,9 +234,7 @@ "start": 181, "end": 185 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "value": { "type": "NumericLiteral", @@ -280,9 +268,7 @@ "start": 228, "end": 232 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "value": { "type": "NumericLiteral", @@ -316,9 +302,7 @@ "start": 256, "end": 260 }, - "ctxt": 0, - "value": "show", - "optional": false + "value": "show" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/modifiers-accessors/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/modifiers-accessors/input.ts.json index 4c6940f590ca..2a8d51f54164 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/modifiers-accessors/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/modifiers-accessors/input.ts.json @@ -37,9 +37,7 @@ "start": 77, "end": 78 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 97, "end": 98 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [], @@ -136,9 +132,7 @@ "start": 139, "end": 142 }, - "ctxt": 0, - "value": "pua", - "optional": false + "value": "pua" }, "function": { "params": [], @@ -173,9 +167,7 @@ "start": 168, "end": 171 }, - "ctxt": 0, - "value": "pus", - "optional": false + "value": "pus" }, "function": { "params": [], @@ -235,9 +227,7 @@ "start": 204, "end": 206 }, - "ctxt": 0, - "value": "pu", - "optional": false + "value": "pu" }, "function": { "params": [], @@ -297,9 +287,7 @@ "start": 241, "end": 243 }, - "ctxt": 0, - "value": "po", - "optional": false + "value": "po" }, "function": { "params": [], @@ -359,9 +347,7 @@ "start": 276, "end": 278 }, - "ctxt": 0, - "value": "pi", - "optional": false + "value": "pi" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/modifiers-methods-async/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/modifiers-methods-async/input.ts.json index 5f348f1b5557..e03eb2b8bcb4 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/modifiers-methods-async/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/modifiers-methods-async/input.ts.json @@ -37,9 +37,7 @@ "start": 81, "end": 82 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 103, "end": 104 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "function": { "params": [], @@ -119,9 +115,7 @@ "start": 136, "end": 139 }, - "ctxt": 0, - "value": "pua", - "optional": false + "value": "pua" }, "function": { "params": [], @@ -156,9 +150,7 @@ "start": 167, "end": 170 }, - "ctxt": 0, - "value": "pus", - "optional": false + "value": "pus" }, "function": { "params": [], @@ -201,9 +193,7 @@ "start": 194, "end": 196 }, - "ctxt": 0, - "value": "pu", - "optional": false + "value": "pu" }, "function": { "params": [], @@ -246,9 +236,7 @@ "start": 222, "end": 224 }, - "ctxt": 0, - "value": "po", - "optional": false + "value": "po" }, "function": { "params": [], @@ -291,9 +279,7 @@ "start": 248, "end": 250 }, - "ctxt": 0, - "value": "pi", - "optional": false + "value": "pi" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/modifiers-properties/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/modifiers-properties/input.ts.json index a8510a9f6d2a..0ca69933109d 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/modifiers-properties/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/modifiers-properties/input.ts.json @@ -37,9 +37,7 @@ "start": 33, "end": 34 }, - "ctxt": 0, - "value": "r", - "optional": false + "value": "r" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 49, "end": 51 }, - "ctxt": 0, - "value": "r2", - "optional": true + "value": "r2" }, "value": null, "typeAnnotation": { @@ -107,9 +103,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": null, @@ -135,9 +129,7 @@ "start": 89, "end": 90 }, - "ctxt": 0, - "value": "s", - "optional": false + "value": "s" }, "value": null, "typeAnnotation": null, @@ -163,9 +155,7 @@ "start": 104, "end": 106 }, - "ctxt": 0, - "value": "pu", - "optional": false + "value": "pu" }, "value": null, "typeAnnotation": null, @@ -191,9 +181,7 @@ "start": 122, "end": 124 }, - "ctxt": 0, - "value": "po", - "optional": false + "value": "po" }, "value": null, "typeAnnotation": null, @@ -219,9 +207,7 @@ "start": 138, "end": 140 }, - "ctxt": 0, - "value": "pi", - "optional": false + "value": "pi" }, "value": null, "typeAnnotation": null, @@ -247,9 +233,7 @@ "start": 165, "end": 167 }, - "ctxt": 0, - "value": "ra", - "optional": false + "value": "ra" }, "value": null, "typeAnnotation": null, @@ -275,9 +259,7 @@ "start": 191, "end": 193 }, - "ctxt": 0, - "value": "ar", - "optional": false + "value": "ar" }, "value": null, "typeAnnotation": null, @@ -303,9 +285,7 @@ "start": 215, "end": 217 }, - "ctxt": 0, - "value": "sr", - "optional": false + "value": "sr" }, "value": null, "typeAnnotation": null, @@ -331,9 +311,7 @@ "start": 240, "end": 243 }, - "ctxt": 0, - "value": "pur", - "optional": false + "value": "pur" }, "value": null, "typeAnnotation": null, @@ -359,9 +337,7 @@ "start": 265, "end": 268 }, - "ctxt": 0, - "value": "pua", - "optional": false + "value": "pua" }, "value": null, "typeAnnotation": null, @@ -387,9 +363,7 @@ "start": 288, "end": 291 }, - "ctxt": 0, - "value": "pus", - "optional": false + "value": "pus" }, "value": null, "typeAnnotation": null, @@ -415,9 +389,7 @@ "start": 322, "end": 326 }, - "ctxt": 0, - "value": "pura", - "optional": false + "value": "pura" }, "value": null, "typeAnnotation": null, @@ -443,9 +415,7 @@ "start": 357, "end": 361 }, - "ctxt": 0, - "value": "puar", - "optional": false + "value": "puar" }, "value": null, "typeAnnotation": null, @@ -471,9 +441,7 @@ "start": 390, "end": 394 }, - "ctxt": 0, - "value": "pusr", - "optional": false + "value": "pusr" }, "value": null, "typeAnnotation": null, @@ -499,9 +467,7 @@ "start": 424, "end": 428 }, - "ctxt": 0, - "value": "dpur", - "optional": false + "value": "dpur" }, "value": null, "typeAnnotation": null, @@ -527,9 +493,7 @@ "start": 466, "end": 471 }, - "ctxt": 0, - "value": "dpisr", - "optional": false + "value": "dpisr" }, "value": null, "typeAnnotation": null, @@ -555,9 +519,7 @@ "start": 485, "end": 486 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" }, "value": null, "typeAnnotation": null, @@ -583,9 +545,7 @@ "start": 500, "end": 507 }, - "ctxt": 0, - "value": "declare", - "optional": false + "value": "declare" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json index 662f9250dd47..c43063fa9adf 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/override-parameter-property/input.ts.json @@ -38,9 +38,7 @@ "start": 23, "end": 34 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -104,9 +102,7 @@ "start": 53, "end": 64 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -163,9 +159,7 @@ "start": 87, "end": 98 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -222,9 +216,7 @@ "start": 128, "end": 139 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -281,9 +273,7 @@ "start": 172, "end": 183 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/class/override/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/override/input.ts.json index 448668b3c4e5..c6950d3901ef 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/override/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/override/input.ts.json @@ -37,9 +37,7 @@ "start": 32, "end": 36 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "NumericLiteral", @@ -73,9 +71,7 @@ "start": 53, "end": 59 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], @@ -154,9 +150,7 @@ "start": 144, "end": 148 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": { "type": "NumericLiteral", @@ -190,9 +184,7 @@ "start": 165, "end": 171 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/properties/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/properties/input.ts.json index 686673d33c2e..2c55a19bc79d 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/properties/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/properties/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -65,9 +63,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "x", - "optional": true + "value": "x" }, "value": null, "typeAnnotation": null, @@ -93,9 +89,7 @@ "start": 30, "end": 31 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -135,9 +129,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": { "type": "NumericLiteral", @@ -185,9 +177,7 @@ "start": 64, "end": 65 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": null, @@ -213,9 +203,7 @@ "start": 72, "end": 73 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "value": null, "typeAnnotation": { @@ -255,9 +243,7 @@ "start": 88, "end": 93 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "value": null, "typeAnnotation": { @@ -297,9 +283,7 @@ "start": 115, "end": 120 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/class/property-computed/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/property-computed/input.ts.json index 322880eac110..01ee3419d34f 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/property-computed/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/property-computed/input.ts.json @@ -59,9 +59,7 @@ "start": 23, "end": 31 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -125,9 +123,7 @@ "start": 54, "end": 62 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json index fdf9250620c4..9109b0c36133 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json @@ -37,9 +37,7 @@ "start": 29, "end": 33 }, - "ctxt": 0, - "value": "hoge", - "optional": false + "value": "hoge" }, "value": null, "typeAnnotation": { @@ -79,9 +77,7 @@ "start": 55, "end": 58 }, - "ctxt": 0, - "value": "foo", - "optional": false + "value": "foo" }, "value": null, "typeAnnotation": { @@ -122,9 +118,7 @@ "start": 73, "end": 84 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -167,9 +161,7 @@ "start": 102, "end": 106 }, - "ctxt": 0, - "value": "hoge", - "optional": false + "value": "hoge" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json index 89b4842db626..27629a47967d 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json @@ -110,9 +110,7 @@ "start": 50, "end": 61 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -186,9 +184,7 @@ "start": 103, "end": 109 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/class/static/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/static/input.ts.json index a1c11ca294b6..a9a1eabed083 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/static/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/static/input.ts.json @@ -37,9 +37,7 @@ "start": 22, "end": 23 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -74,9 +72,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -111,9 +107,7 @@ "start": 71, "end": 72 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -148,9 +142,7 @@ "start": 95, "end": 96 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json b/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json index 862a3489fd32..6476f34b1121 100644 --- a/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json +++ b/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json @@ -104,9 +104,7 @@ "start": 40, "end": 43 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json index 0ed0f1358190..13b8b7e73dea 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json @@ -86,9 +86,7 @@ "start": 59, "end": 65 }, - "ctxt": 0, - "value": "Normal", - "optional": false + "value": "Normal" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json index a4d36dd116fb..266413afb2c7 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex/input.ts.json @@ -310,9 +310,7 @@ "start": 299, "end": 310 }, - "ctxt": 0, - "value": "initializer", - "optional": false + "value": "initializer" } } } @@ -367,9 +365,7 @@ "start": 340, "end": 351 }, - "ctxt": 0, - "value": "initializer", - "optional": false + "value": "initializer" } }, "property": { @@ -378,9 +374,7 @@ "start": 352, "end": 360 }, - "ctxt": 0, - "value": "elements", - "optional": false + "value": "elements" } } }, @@ -476,9 +470,7 @@ "start": 437, "end": 441 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json index c4835b929537..1b0899905b93 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json @@ -82,9 +82,7 @@ "start": 28, "end": 32 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [], @@ -178,9 +176,7 @@ "start": 73, "end": 77 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json index 686f8bbbd4ba..229e5a0b2aa0 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json @@ -61,9 +61,7 @@ "start": 15, "end": 19 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json index dd1a66e2481f..12df65fc3968 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts.json @@ -88,6 +88,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 72, + "end": 86 + }, "left": { "type": "Identifier", "span": { @@ -104,9 +108,7 @@ "start": 80, "end": 86 }, - "ctxt": 0, - "value": "IScope", - "optional": false + "value": "IScope" } }, "typeParams": null @@ -144,6 +146,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 96, + "end": 115 + }, "left": { "type": "Identifier", "span": { @@ -160,9 +166,7 @@ "start": 104, "end": 115 }, - "ctxt": 0, - "value": "IAttributes", - "optional": false + "value": "IAttributes" } }, "typeParams": null @@ -217,9 +221,7 @@ "start": 128, "end": 134 }, - "ctxt": 0, - "value": "$scope", - "optional": false + "value": "$scope" } }, "right": { @@ -266,9 +268,7 @@ "start": 154, "end": 160 }, - "ctxt": 0, - "value": "$attrs", - "optional": false + "value": "$attrs" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json index b15444645eee..3aff96d0e04b 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json @@ -40,9 +40,7 @@ "start": 8, "end": 10 }, - "ctxt": 0, - "value": "on", - "optional": false + "value": "on" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json index eabb25716274..b6ec73b071da 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json @@ -86,9 +86,7 @@ "start": 24, "end": 27 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "consequent": { @@ -131,9 +129,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -142,9 +138,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "bas", - "optional": false + "value": "bas" } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json index 290401baf7d1..dba93d254f89 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json @@ -86,9 +86,7 @@ "start": 26, "end": 29 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "consequent": { @@ -131,9 +129,7 @@ "start": 37, "end": 40 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -142,9 +138,7 @@ "start": 41, "end": 44 }, - "ctxt": 0, - "value": "bas", - "optional": false + "value": "bas" } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-338/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-338/input.ts.json index 6d62e3976e46..375d4fd8f541 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-338/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-338/input.ts.json @@ -56,6 +56,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 27, + "end": 38 + }, "left": { "type": "Identifier", "span": { @@ -72,9 +76,7 @@ "start": 32, "end": 38 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json index c94df636129b..a517b4c2e7a1 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json @@ -144,9 +144,7 @@ "start": 86, "end": 92 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json index e585813463c7..f648d2253ead 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json @@ -53,9 +53,7 @@ "start": 18, "end": 22 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json index 8fdb3b2422b9..a0e0efd2a31a 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json @@ -53,9 +53,7 @@ "start": 11, "end": 15 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json index a23c0d1e76ff..83209ca44873 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts.json @@ -43,9 +43,7 @@ "start": 34, "end": 41 }, - "ctxt": 0, - "value": "variant", - "optional": false + "value": "variant" }, "value": null, "typeAnnotation": { @@ -86,9 +84,7 @@ "start": 51, "end": 62 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -165,9 +161,7 @@ "start": 88, "end": 95 }, - "ctxt": 0, - "value": "variant", - "optional": false + "value": "variant" } }, "right": { @@ -199,9 +193,7 @@ "start": 118, "end": 120 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "function": { "params": [], @@ -250,9 +242,7 @@ "start": 141, "end": 148 }, - "ctxt": 0, - "value": "variant", - "optional": false + "value": "variant" } }, "property": { @@ -261,9 +251,7 @@ "start": 149, "end": 151 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-709-2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-709-2/input.ts.json index 6899aca9dced..57a59d9deb8d 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-709-2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-709-2/input.ts.json @@ -44,9 +44,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-709-3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-709-3/input.ts.json index 35221e6fbd99..c991b21af5c1 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-709-3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-709-3/input.ts.json @@ -44,9 +44,7 @@ "start": 38, "end": 49 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-709/input.d.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-709/input.d.ts.json index 5c49cb8a230c..47bf97a04e5c 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-709/input.d.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-709/input.d.ts.json @@ -69,9 +69,7 @@ "start": 66, "end": 77 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json index a4d448da99c1..c98a9a4322e1 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json @@ -40,9 +40,7 @@ "start": 8, "end": 15 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/decorators/parameter/input.ts.json b/crates/swc_ecma_parser/tests/typescript/decorators/parameter/input.ts.json index e29510b9a81f..dc18ea5ff114 100644 --- a/crates/swc_ecma_parser/tests/typescript/decorators/parameter/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/decorators/parameter/input.ts.json @@ -38,9 +38,7 @@ "start": 18, "end": 29 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -194,9 +192,7 @@ "start": 78, "end": 84 }, - "ctxt": 0, - "value": "method", - "optional": false + "value": "method" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/typescript/deno-1671/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno-1671/case1/input.ts.json index 6045138756f9..d6cacf3da608 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-1671/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-1671/case1/input.ts.json @@ -37,9 +37,7 @@ "start": 13, "end": 28 }, - "ctxt": 0, - "value": "declare", - "optional": false + "value": "declare" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/deno-8925/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno-8925/case1/input.ts.json index a336a6a245b2..1083b2e92e22 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-8925/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-8925/case1/input.ts.json @@ -80,9 +80,7 @@ "start": 25, "end": 28 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/deno-8925/case2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno-8925/case2/input.ts.json index 9ff7774d49c4..eae012566607 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-8925/case2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-8925/case2/input.ts.json @@ -87,9 +87,7 @@ "start": 32, "end": 35 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json index aa15ee4ae58e..9c71c8595f0f 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx.json @@ -37,9 +37,7 @@ "start": 17, "end": 23 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json index b036041733b3..c944d7b1c850 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json @@ -8545,9 +8545,7 @@ "start": 25093, "end": 25100 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" } } }, @@ -8604,9 +8602,7 @@ "start": 25137, "end": 25144 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" } }, "right": { @@ -8697,9 +8693,7 @@ "start": 25214, "end": 25221 }, - "ctxt": 0, - "value": "Reflect", - "optional": false + "value": "Reflect" } } }, @@ -9265,9 +9259,7 @@ "start": 25720, "end": 25734 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -9314,9 +9306,7 @@ "start": 25774, "end": 25786 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -9335,9 +9325,7 @@ "start": 25818, "end": 25826 }, - "ctxt": 0, - "value": "writable", - "optional": false + "value": "writable" }, "value": { "type": "BooleanLiteral", @@ -9615,9 +9603,7 @@ "start": 26043, "end": 26052 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -9626,9 +9612,7 @@ "start": 26053, "end": 26067 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "definite": false @@ -9787,9 +9771,7 @@ "start": 26252, "end": 26263 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } } }, @@ -9826,9 +9808,7 @@ "start": 26305, "end": 26316 }, - "ctxt": 0, - "value": "toPrimitive", - "optional": false + "value": "toPrimitive" } }, "alternate": { @@ -9931,9 +9911,7 @@ "start": 26427, "end": 26435 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } } }, @@ -9970,9 +9948,7 @@ "start": 26477, "end": 26485 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "alternate": { @@ -10052,9 +10028,7 @@ "start": 26563, "end": 26569 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } } }, @@ -10121,9 +10095,7 @@ "start": 26660, "end": 26669 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "ArrayExpression", @@ -10268,9 +10240,7 @@ "start": 26910, "end": 26916 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "value": { "type": "ConditionalExpression", @@ -10351,9 +10321,7 @@ "start": 26982, "end": 26988 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -10519,9 +10487,7 @@ "start": 27090, "end": 27099 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "TsAsExpression", @@ -10769,9 +10735,7 @@ "start": 27208, "end": 27211 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" }, "value": { "type": "ConditionalExpression", @@ -10938,9 +10902,7 @@ "start": 27323, "end": 27327 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -11201,9 +11163,7 @@ "start": 27436, "end": 27439 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "ConditionalExpression", @@ -11376,9 +11336,7 @@ "start": 27566, "end": 27570 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -11890,9 +11848,7 @@ "start": 27878, "end": 27892 }, - "ctxt": 0, - "value": "getPrototypeOf", - "optional": false + "value": "getPrototypeOf" } }, "arguments": [ @@ -12014,9 +11970,7 @@ "start": 27983, "end": 27986 }, - "ctxt": 0, - "value": "env", - "optional": false + "value": "env" } } }, @@ -12055,9 +12009,7 @@ "start": 28010, "end": 28013 }, - "ctxt": 0, - "value": "env", - "optional": false + "value": "env" } }, "property": { @@ -12259,9 +12211,7 @@ "start": 28176, "end": 28185 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -12270,9 +12220,7 @@ "start": 28186, "end": 28193 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } } }, @@ -12489,9 +12437,7 @@ "start": 28375, "end": 28384 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -12500,9 +12446,7 @@ "start": 28385, "end": 28392 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } } }, @@ -21553,9 +21497,7 @@ "start": 53698, "end": 53704 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "arguments": [ @@ -21628,9 +21570,7 @@ "start": 53761, "end": 53765 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -21716,9 +21656,7 @@ "start": 53828, "end": 53831 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -21777,9 +21715,7 @@ "start": 53868, "end": 53874 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "arguments": [ @@ -21835,9 +21771,7 @@ "start": 53920, "end": 53924 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -21902,9 +21836,7 @@ "start": 53964, "end": 53970 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "arguments": [ @@ -22198,9 +22130,7 @@ "start": 54237, "end": 54243 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -22984,9 +22914,7 @@ "start": 54910, "end": 54916 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -24167,9 +24095,7 @@ "start": 56015, "end": 56018 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -24448,9 +24374,7 @@ "start": 56231, "end": 56234 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -24544,9 +24468,7 @@ "start": 56314, "end": 56317 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -24766,9 +24688,7 @@ "start": 56496, "end": 56499 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -25744,9 +25664,7 @@ "start": 57617, "end": 57620 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -26677,9 +26595,7 @@ "start": 58717, "end": 58720 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -27031,9 +26947,7 @@ "start": 59198, "end": 59201 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -27514,9 +27428,7 @@ "start": 59740, "end": 59746 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -27583,9 +27495,7 @@ "start": 59793, "end": 59799 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -27857,9 +27767,7 @@ "start": 59978, "end": 59981 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -27950,9 +27858,7 @@ "start": 60043, "end": 60046 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -28008,9 +27914,7 @@ "start": 60078, "end": 60082 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -28151,9 +28055,7 @@ "start": 60200, "end": 60203 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -28244,9 +28146,7 @@ "start": 60265, "end": 60268 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -28302,9 +28202,7 @@ "start": 60300, "end": 60304 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -28761,9 +28659,7 @@ "start": 60844, "end": 60848 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [], @@ -29032,9 +28928,7 @@ "start": 61060, "end": 61066 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -29504,9 +29398,7 @@ "start": 61700, "end": 61704 }, - "ctxt": 0, - "value": "Null", - "optional": false + "value": "Null" } } }, @@ -29581,9 +29473,7 @@ "start": 61803, "end": 61812 }, - "ctxt": 0, - "value": "Undefined", - "optional": false + "value": "Undefined" } } } @@ -29633,9 +29523,7 @@ "start": 61877, "end": 61884 }, - "ctxt": 0, - "value": "Boolean", - "optional": false + "value": "Boolean" } } } @@ -29685,9 +29573,7 @@ "start": 61948, "end": 61954 }, - "ctxt": 0, - "value": "String", - "optional": false + "value": "String" } } } @@ -29737,9 +29623,7 @@ "start": 62018, "end": 62024 }, - "ctxt": 0, - "value": "Symbol", - "optional": false + "value": "Symbol" } } } @@ -29789,9 +29673,7 @@ "start": 62088, "end": 62094 }, - "ctxt": 0, - "value": "Number", - "optional": false + "value": "Number" } } } @@ -29872,9 +29754,7 @@ "start": 62171, "end": 62175 }, - "ctxt": 0, - "value": "Null", - "optional": false + "value": "Null" } }, "alternate": { @@ -29899,9 +29779,7 @@ "start": 62182, "end": 62188 }, - "ctxt": 0, - "value": "Object", - "optional": false + "value": "Object" } } } @@ -29944,9 +29822,7 @@ "start": 62246, "end": 62252 }, - "ctxt": 0, - "value": "Object", - "optional": false + "value": "Object" } } } @@ -31063,9 +30939,7 @@ "start": 63952, "end": 63961 }, - "ctxt": 0, - "value": "Undefined", - "optional": false + "value": "Undefined" } }, "consequent": [ @@ -31116,9 +30990,7 @@ "start": 64022, "end": 64026 }, - "ctxt": 0, - "value": "Null", - "optional": false + "value": "Null" } }, "consequent": [ @@ -31169,9 +31041,7 @@ "start": 64087, "end": 64094 }, - "ctxt": 0, - "value": "Boolean", - "optional": false + "value": "Boolean" } }, "consequent": [ @@ -31222,9 +31092,7 @@ "start": 64155, "end": 64161 }, - "ctxt": 0, - "value": "String", - "optional": false + "value": "String" } }, "consequent": [ @@ -31275,9 +31143,7 @@ "start": 64222, "end": 64228 }, - "ctxt": 0, - "value": "Symbol", - "optional": false + "value": "Symbol" } }, "consequent": [ @@ -31328,9 +31194,7 @@ "start": 64289, "end": 64295 }, - "ctxt": 0, - "value": "Number", - "optional": false + "value": "Number" } }, "consequent": [ @@ -31490,9 +31354,7 @@ "start": 64425, "end": 64431 }, - "ctxt": 0, - "value": "String", - "optional": false + "value": "String" } } }, @@ -31550,9 +31412,7 @@ "start": 64499, "end": 64505 }, - "ctxt": 0, - "value": "Number", - "optional": false + "value": "Number" } } }, @@ -31756,9 +31616,7 @@ "start": 64730, "end": 64734 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -32270,9 +32128,7 @@ "start": 65302, "end": 65310 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "definite": false @@ -32383,9 +32239,7 @@ "start": 65400, "end": 65404 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -32529,9 +32383,7 @@ "start": 65519, "end": 65526 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "definite": false @@ -32642,9 +32494,7 @@ "start": 65614, "end": 65618 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -32798,9 +32648,7 @@ "start": 65754, "end": 65761 }, - "ctxt": 0, - "value": "valueOf", - "optional": false + "value": "valueOf" } }, "definite": false @@ -32911,9 +32759,7 @@ "start": 65849, "end": 65853 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -33057,9 +32903,7 @@ "start": 65969, "end": 65977 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "definite": false @@ -33170,9 +33014,7 @@ "start": 66067, "end": 66071 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -33744,9 +33586,7 @@ "start": 66813, "end": 66819 }, - "ctxt": 0, - "value": "String", - "optional": false + "value": "String" } } } @@ -33991,9 +33831,7 @@ "start": 67217, "end": 67224 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "consequent": { @@ -34025,9 +33863,7 @@ "start": 67249, "end": 67256 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -34157,9 +33993,7 @@ "start": 67389, "end": 67398 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -34168,9 +34002,7 @@ "start": 67399, "end": 67407 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "property": { @@ -34179,9 +34011,7 @@ "start": 67408, "end": 67412 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -34718,9 +34548,7 @@ "start": 68352, "end": 68358 }, - "ctxt": 0, - "value": "String", - "optional": false + "value": "String" } }, "consequent": [ @@ -34769,9 +34597,7 @@ "start": 68418, "end": 68424 }, - "ctxt": 0, - "value": "Symbol", - "optional": false + "value": "Symbol" } }, "consequent": [ @@ -35579,9 +35405,7 @@ "start": 69361, "end": 69365 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -35912,9 +35736,7 @@ "start": 69681, "end": 69686 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } } } @@ -36133,9 +35955,7 @@ "start": 69920, "end": 69924 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "arguments": [], @@ -36179,9 +35999,7 @@ "start": 69954, "end": 69958 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" } }, "consequent": { @@ -36528,9 +36346,7 @@ "start": 70224, "end": 70228 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -36708,9 +36524,7 @@ "start": 70621, "end": 70635 }, - "ctxt": 0, - "value": "getPrototypeOf", - "optional": false + "value": "getPrototypeOf" } }, "arguments": [ @@ -36932,9 +36746,7 @@ "start": 71531, "end": 71540 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "definite": false @@ -37014,9 +36826,7 @@ "start": 71597, "end": 71611 }, - "ctxt": 0, - "value": "getPrototypeOf", - "optional": false + "value": "getPrototypeOf" } }, "arguments": [ @@ -37118,9 +36928,7 @@ "start": 71692, "end": 71701 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } } @@ -37203,9 +37011,7 @@ "start": 71890, "end": 71901 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "definite": false @@ -37522,9 +37328,7 @@ "start": 72567, "end": 72572 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" }, "value": null, "typeAnnotation": { @@ -37581,9 +37385,7 @@ "start": 72603, "end": 72610 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" }, "value": null, "typeAnnotation": { @@ -37640,9 +37442,7 @@ "start": 72641, "end": 72647 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" }, "value": { "type": "NumericLiteral", @@ -37676,9 +37476,7 @@ "start": 72677, "end": 72686 }, - "ctxt": 0, - "value": "_selector", - "optional": false + "value": "_selector" }, "value": null, "typeAnnotation": { @@ -37816,9 +37614,7 @@ "start": 72729, "end": 72740 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -38092,9 +37888,7 @@ "start": 72827, "end": 72832 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "right": { @@ -38141,9 +37935,7 @@ "start": 72866, "end": 72873 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "right": { @@ -38190,9 +37982,7 @@ "start": 72909, "end": 72918 }, - "ctxt": 0, - "value": "_selector", - "optional": false + "value": "_selector" } }, "right": { @@ -38350,9 +38140,7 @@ "start": 73137, "end": 73141 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" }, "function": { "params": [], @@ -38416,9 +38204,7 @@ "start": 73204, "end": 73210 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "definite": false @@ -38507,9 +38293,7 @@ "start": 73263, "end": 73268 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -38518,9 +38302,7 @@ "start": 73269, "end": 73275 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -38586,9 +38368,7 @@ "start": 73323, "end": 73332 }, - "ctxt": 0, - "value": "_selector", - "optional": false + "value": "_selector" } }, "arguments": [ @@ -38619,9 +38399,7 @@ "start": 73367, "end": 73372 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -38670,9 +38448,7 @@ "start": 73414, "end": 73421 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -38766,9 +38542,7 @@ "start": 73503, "end": 73508 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -38777,9 +38551,7 @@ "start": 73509, "end": 73515 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -38823,9 +38595,7 @@ "start": 73552, "end": 73558 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -38879,9 +38649,7 @@ "start": 73598, "end": 73603 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "right": { @@ -38928,9 +38696,7 @@ "start": 73654, "end": 73661 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "right": { @@ -38988,9 +38754,7 @@ "start": 73745, "end": 73751 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -39019,9 +38783,7 @@ "start": 73814, "end": 73819 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -39042,9 +38804,7 @@ "start": 73829, "end": 73833 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -39083,9 +38843,7 @@ "start": 73895, "end": 73900 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "TsTypeAssertion", @@ -39121,9 +38879,7 @@ "start": 73920, "end": 73924 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -39213,9 +38969,7 @@ "start": 73968, "end": 73973 }, - "ctxt": 0, - "value": "throw", - "optional": false + "value": "throw" }, "function": { "params": [ @@ -39299,9 +39053,7 @@ "start": 74036, "end": 74042 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -39354,9 +39106,7 @@ "start": 74080, "end": 74086 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -39410,9 +39160,7 @@ "start": 74122, "end": 74127 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "right": { @@ -39459,9 +39207,7 @@ "start": 74174, "end": 74181 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "right": { @@ -39573,9 +39319,7 @@ "start": 74288, "end": 74294 }, - "ctxt": 0, - "value": "return", - "optional": false + "value": "return" }, "function": { "params": [ @@ -39669,9 +39413,7 @@ "start": 74356, "end": 74362 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -39724,9 +39466,7 @@ "start": 74400, "end": 74406 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -39780,9 +39520,7 @@ "start": 74442, "end": 74447 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "right": { @@ -39829,9 +39567,7 @@ "start": 74494, "end": 74501 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "right": { @@ -39871,9 +39607,7 @@ "start": 74570, "end": 74575 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "TsTypeAssertion", @@ -39909,9 +39643,7 @@ "start": 74591, "end": 74595 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" }, "value": { "type": "BooleanLiteral", @@ -40257,9 +39989,7 @@ "start": 74699, "end": 74704 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" }, "value": { "type": "ArrayExpression", @@ -40323,9 +40053,7 @@ "start": 74740, "end": 74747 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" }, "value": { "type": "ArrayExpression", @@ -40413,9 +40141,7 @@ "start": 74797, "end": 74806 }, - "ctxt": 0, - "value": "_cacheKey", - "optional": false + "value": "_cacheKey" }, "value": { "type": "Identifier", @@ -40450,9 +40176,7 @@ "start": 74848, "end": 74859 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" }, "value": { "type": "UnaryExpression", @@ -40494,9 +40218,7 @@ "start": 74886, "end": 74890 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "function": { "params": [], @@ -40545,9 +40267,7 @@ "start": 74927, "end": 74932 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -40556,9 +40276,7 @@ "start": 74933, "end": 74939 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -40588,9 +40306,7 @@ "start": 74975, "end": 74978 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" }, "function": { "params": [ @@ -40691,9 +40407,7 @@ "start": 75030, "end": 75035 }, - "ctxt": 0, - "value": "_find", - "optional": false + "value": "_find" } }, "arguments": [ @@ -40775,9 +40489,7 @@ "start": 75099, "end": 75102 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -40892,9 +40604,7 @@ "start": 75167, "end": 75172 }, - "ctxt": 0, - "value": "_find", - "optional": false + "value": "_find" } }, "arguments": [ @@ -40993,9 +40703,7 @@ "start": 75242, "end": 75249 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -41095,9 +40803,7 @@ "start": 75304, "end": 75307 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [ @@ -41255,9 +40961,7 @@ "start": 75373, "end": 75378 }, - "ctxt": 0, - "value": "_find", - "optional": false + "value": "_find" } }, "arguments": [ @@ -41330,9 +41034,7 @@ "start": 75427, "end": 75434 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -41418,9 +41120,7 @@ "start": 75518, "end": 75524 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" }, "function": { "params": [ @@ -41535,9 +41235,7 @@ "start": 75583, "end": 75588 }, - "ctxt": 0, - "value": "_find", - "optional": false + "value": "_find" } }, "arguments": [ @@ -41665,9 +41363,7 @@ "start": 75693, "end": 75698 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -41676,9 +41372,7 @@ "start": 75699, "end": 75705 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -41842,9 +41536,7 @@ "start": 75805, "end": 75810 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -41907,9 +41599,7 @@ "start": 75825, "end": 75830 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -41970,9 +41660,7 @@ "start": 75868, "end": 75875 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -42035,9 +41723,7 @@ "start": 75890, "end": 75897 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -42102,9 +41788,7 @@ "start": 75957, "end": 75962 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -42113,9 +41797,7 @@ "start": 75963, "end": 75969 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -42159,9 +41841,7 @@ "start": 76002, "end": 76009 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -42170,9 +41850,7 @@ "start": 76010, "end": 76016 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -42219,9 +41897,7 @@ "start": 76061, "end": 76070 }, - "ctxt": 0, - "value": "_cacheKey", - "optional": false + "value": "_cacheKey" } } }, @@ -42265,9 +41941,7 @@ "start": 76107, "end": 76116 }, - "ctxt": 0, - "value": "_cacheKey", - "optional": false + "value": "_cacheKey" } }, "right": { @@ -42314,9 +41988,7 @@ "start": 76167, "end": 76178 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" } }, "right": { @@ -42416,9 +42088,7 @@ "start": 76338, "end": 76343 }, - "ctxt": 0, - "value": "clear", - "optional": false + "value": "clear" }, "function": { "params": [], @@ -42474,9 +42144,7 @@ "start": 76379, "end": 76384 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -42485,9 +42153,7 @@ "start": 76385, "end": 76391 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -42539,9 +42205,7 @@ "start": 76422, "end": 76429 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -42550,9 +42214,7 @@ "start": 76430, "end": 76436 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -42598,9 +42260,7 @@ "start": 76467, "end": 76476 }, - "ctxt": 0, - "value": "_cacheKey", - "optional": false + "value": "_cacheKey" } }, "right": { @@ -42647,9 +42307,7 @@ "start": 76519, "end": 76530 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" } }, "right": { @@ -42711,9 +42369,7 @@ "start": 76571, "end": 76575 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" }, "function": { "params": [], @@ -42776,9 +42432,7 @@ "start": 76628, "end": 76633 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } } }, @@ -42803,9 +42457,7 @@ "start": 76640, "end": 76647 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } } }, @@ -42852,9 +42504,7 @@ "start": 76692, "end": 76698 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "function": { "params": [], @@ -42917,9 +42567,7 @@ "start": 76751, "end": 76756 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } } }, @@ -42944,9 +42592,7 @@ "start": 76763, "end": 76770 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } } }, @@ -42993,9 +42639,7 @@ "start": 76817, "end": 76824 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" }, "function": { "params": [], @@ -43058,9 +42702,7 @@ "start": 76877, "end": 76882 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } } }, @@ -43085,9 +42727,7 @@ "start": 76889, "end": 76896 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } } }, @@ -43185,9 +42825,7 @@ "start": 76992, "end": 76999 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [], @@ -43279,9 +42917,7 @@ "start": 77090, "end": 77097 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [], @@ -43314,9 +42950,7 @@ "start": 77143, "end": 77148 }, - "ctxt": 0, - "value": "_find", - "optional": false + "value": "_find" }, "function": { "params": [ @@ -43443,9 +43077,7 @@ "start": 77214, "end": 77223 }, - "ctxt": 0, - "value": "_cacheKey", - "optional": false + "value": "_cacheKey" } }, "right": { @@ -43499,9 +43131,7 @@ "start": 77264, "end": 77275 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" } }, "right": { @@ -43536,9 +43166,7 @@ "start": 77283, "end": 77288 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -43547,9 +43175,7 @@ "start": 77289, "end": 77296 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -43587,9 +43213,7 @@ "start": 77303, "end": 77312 }, - "ctxt": 0, - "value": "_cacheKey", - "optional": false + "value": "_cacheKey" } }, "right": { @@ -43653,9 +43277,7 @@ "start": 77373, "end": 77384 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" } }, "right": { @@ -43719,9 +43341,7 @@ "start": 77431, "end": 77442 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" } }, "right": { @@ -43749,9 +43369,7 @@ "start": 77450, "end": 77455 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -43760,9 +43378,7 @@ "start": 77456, "end": 77462 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -43805,9 +43421,7 @@ "start": 77493, "end": 77498 }, - "ctxt": 0, - "value": "_keys", - "optional": false + "value": "_keys" } }, "property": { @@ -43816,9 +43430,7 @@ "start": 77499, "end": 77503 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -43877,9 +43489,7 @@ "start": 77539, "end": 77546 }, - "ctxt": 0, - "value": "_values", - "optional": false + "value": "_values" } }, "property": { @@ -43888,9 +43498,7 @@ "start": 77547, "end": 77551 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -43940,9 +43548,7 @@ "start": 77618, "end": 77629 }, - "ctxt": 0, - "value": "_cacheIndex", - "optional": false + "value": "_cacheIndex" } } } @@ -44796,9 +44402,7 @@ "start": 78124, "end": 78128 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" }, "value": { "type": "NewExpression", @@ -44867,9 +44471,7 @@ "start": 78173, "end": 78177 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "function": { "params": [], @@ -44918,9 +44520,7 @@ "start": 78214, "end": 78218 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -44929,9 +44529,7 @@ "start": 78219, "end": 78223 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } } @@ -44961,9 +44559,7 @@ "start": 78259, "end": 78262 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" }, "function": { "params": [ @@ -45063,9 +44659,7 @@ "start": 78316, "end": 78320 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45074,9 +44668,7 @@ "start": 78321, "end": 78324 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -45137,9 +44729,7 @@ "start": 78367, "end": 78370 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" }, "function": { "params": [ @@ -45246,9 +44836,7 @@ "start": 78423, "end": 78427 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45257,9 +44845,7 @@ "start": 78428, "end": 78431 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -45378,9 +44964,7 @@ "start": 78487, "end": 78493 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" }, "function": { "params": [ @@ -45480,9 +45064,7 @@ "start": 78547, "end": 78551 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45491,9 +45073,7 @@ "start": 78552, "end": 78558 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "arguments": [ @@ -45554,9 +45134,7 @@ "start": 78601, "end": 78606 }, - "ctxt": 0, - "value": "clear", - "optional": false + "value": "clear" }, "function": { "params": [], @@ -45612,9 +45190,7 @@ "start": 78642, "end": 78646 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45623,9 +45199,7 @@ "start": 78647, "end": 78652 }, - "ctxt": 0, - "value": "clear", - "optional": false + "value": "clear" } }, "arguments": [], @@ -45672,9 +45246,7 @@ "start": 78690, "end": 78694 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" }, "function": { "params": [], @@ -45730,9 +45302,7 @@ "start": 78731, "end": 78735 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45741,9 +45311,7 @@ "start": 78736, "end": 78740 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [], @@ -45776,9 +45344,7 @@ "start": 78778, "end": 78784 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "function": { "params": [], @@ -45834,9 +45400,7 @@ "start": 78821, "end": 78825 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45845,9 +45409,7 @@ "start": 78826, "end": 78832 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -45880,9 +45442,7 @@ "start": 78870, "end": 78877 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" }, "function": { "params": [], @@ -45938,9 +45498,7 @@ "start": 78914, "end": 78918 }, - "ctxt": 0, - "value": "_map", - "optional": false + "value": "_map" } }, "property": { @@ -45949,9 +45507,7 @@ "start": 78919, "end": 78926 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [], @@ -46035,9 +45591,7 @@ "start": 79013, "end": 79017 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [], @@ -46129,9 +45683,7 @@ "start": 79108, "end": 79112 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [], @@ -46345,9 +45897,7 @@ "start": 79320, "end": 79326 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [], @@ -46461,9 +46011,7 @@ "start": 79451, "end": 79455 }, - "ctxt": 0, - "value": "_key", - "optional": false + "value": "_key" }, "value": { "type": "CallExpression", @@ -46508,9 +46056,7 @@ "start": 79493, "end": 79496 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" }, "function": { "params": [ @@ -46743,9 +46289,7 @@ "start": 79664, "end": 79667 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -46783,9 +46327,7 @@ "start": 79680, "end": 79684 }, - "ctxt": 0, - "value": "_key", - "optional": false + "value": "_key" } } } @@ -46842,9 +46384,7 @@ "start": 79729, "end": 79732 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -47077,9 +46617,7 @@ "start": 79918, "end": 79921 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -47117,9 +46655,7 @@ "start": 79934, "end": 79938 }, - "ctxt": 0, - "value": "_key", - "optional": false + "value": "_key" } } } @@ -47188,9 +46724,7 @@ "start": 80011, "end": 80014 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [ @@ -47451,9 +46985,7 @@ "start": 80171, "end": 80175 }, - "ctxt": 0, - "value": "_key", - "optional": false + "value": "_key" } } } @@ -47578,9 +47110,7 @@ "start": 80253, "end": 80259 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" }, "function": { "params": [ @@ -47832,9 +47362,7 @@ "start": 80437, "end": 80441 }, - "ctxt": 0, - "value": "_key", - "optional": false + "value": "_key" } } } @@ -47890,9 +47418,7 @@ "start": 80486, "end": 80491 }, - "ctxt": 0, - "value": "clear", - "optional": false + "value": "clear" }, "function": { "params": [], @@ -47942,9 +47468,7 @@ "start": 80615, "end": 80619 }, - "ctxt": 0, - "value": "_key", - "optional": false + "value": "_key" } }, "right": { @@ -48166,9 +47690,7 @@ "start": 80827, "end": 80830 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -48884,9 +48406,7 @@ "start": 81347, "end": 81351 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -49006,9 +48526,7 @@ "start": 81450, "end": 81464 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -49055,9 +48573,7 @@ "start": 81508, "end": 81513 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "CallExpression", @@ -49088,9 +48604,7 @@ "start": 81523, "end": 81529 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [], @@ -49575,9 +49089,7 @@ "start": 81792, "end": 81798 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -49856,9 +49368,7 @@ "start": 82075, "end": 82090 }, - "ctxt": 0, - "value": "getRandomValues", - "optional": false + "value": "getRandomValues" } }, "arguments": [ @@ -50016,9 +49526,7 @@ "start": 82249, "end": 82264 }, - "ctxt": 0, - "value": "getRandomValues", - "optional": false + "value": "getRandomValues" } }, "arguments": [ @@ -51096,9 +50604,7 @@ "start": 83057, "end": 83065 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [ @@ -51123,9 +50629,7 @@ "start": 83070, "end": 83081 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -51320,9 +50824,7 @@ "start": 83321, "end": 83323 }, - "ctxt": 0, - "value": "__", - "optional": false + "value": "__" } }, "right": { @@ -51394,9 +50896,7 @@ "start": 83367, "end": 83369 }, - "ctxt": 0, - "value": "__", - "optional": false + "value": "__" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json index 06df8186aef3..8d2014985abd 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json @@ -76,9 +76,7 @@ "start": 24, "end": 30 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -95,9 +93,7 @@ "start": 34, "end": 38 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json index b8e60ffa8bdf..1fe36c762b88 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json @@ -69,9 +69,7 @@ "start": 20, "end": 26 }, - "ctxt": 0, - "value": "assert", - "optional": false + "value": "assert" }, "value": { "type": "ObjectExpression", @@ -88,9 +86,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", @@ -117,9 +113,7 @@ "start": 53, "end": 57 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -174,9 +168,7 @@ "start": 76, "end": 79 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json index 6645c721c2e1..6248894628be 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json @@ -57,9 +57,7 @@ "start": 41, "end": 45 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json index a2c41ac98c0a..3e9f7ce7d84e 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json @@ -57,9 +57,7 @@ "start": 44, "end": 48 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json index f539f3ef03fa..1119e5389130 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json @@ -36,9 +36,7 @@ "start": 35, "end": 39 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json index 9c2aa832da6e..1de44b0d5d88 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json @@ -55,9 +55,7 @@ "start": 40, "end": 44 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json index 9a9f013eb9f9..eb7a4529ea01 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json @@ -37,9 +37,7 @@ "start": 30, "end": 34 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/import/equals/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/equals/input.ts.json index d6c9f38e3828..e6d800d33f07 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/equals/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/equals/input.ts.json @@ -25,6 +25,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 12, + "end": 15 + }, "left": { "type": "Identifier", "span": { @@ -41,9 +45,7 @@ "start": 14, "end": 15 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/import/export-import/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/export-import/input.ts.json index 3c4cdb439f02..92b51a766b2f 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/export-import/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/export-import/input.ts.json @@ -25,6 +25,10 @@ }, "moduleRef": { "type": "TsQualifiedName", + "span": { + "start": 19, + "end": 22 + }, "left": { "type": "Identifier", "span": { @@ -41,9 +45,7 @@ "start": 21, "end": 22 }, - "ctxt": 0, - "value": "C", - "optional": false + "value": "C" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/asi/input.ts.json b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/asi/input.ts.json index e9900a2fbdce..b639ccb6cd01 100644 --- a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/asi/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/asi/input.ts.json @@ -915,9 +915,7 @@ "start": 455, "end": 458 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "arguments": [], @@ -1366,9 +1364,7 @@ "start": 606, "end": 616 }, - "ctxt": 0, - "value": "specialFoo", - "optional": false + "value": "specialFoo" }, "value": { "type": "TsInstantiation", @@ -1427,9 +1423,7 @@ "start": 640, "end": 643 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -1490,9 +1484,7 @@ "start": 675, "end": 685 }, - "ctxt": 0, - "value": "specialFoo", - "optional": false + "value": "specialFoo" }, "value": { "type": "TsInstantiation", @@ -1551,9 +1543,7 @@ "start": 709, "end": 712 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -1614,9 +1604,7 @@ "start": 745, "end": 755 }, - "ctxt": 0, - "value": "specialFoo", - "optional": false + "value": "specialFoo" }, "value": { "type": "TsInstantiation", @@ -1675,9 +1663,7 @@ "start": 780, "end": 783 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", @@ -1738,9 +1724,7 @@ "start": 818, "end": 828 }, - "ctxt": 0, - "value": "specialFoo", - "optional": false + "value": "specialFoo" }, "value": { "type": "TsInstantiation", @@ -1799,9 +1783,7 @@ "start": 855, "end": 858 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json index 60cbf8e46517..563ec22523aa 100644 --- a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json @@ -200,9 +200,7 @@ "start": 62, "end": 63 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "typeArguments": { @@ -300,9 +298,7 @@ "start": 94, "end": 95 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "definite": false @@ -388,9 +384,7 @@ "start": 118, "end": 119 }, - "ctxt": 0, - "value": "g", - "optional": false + "value": "g" } }, "typeArguments": { diff --git a/crates/swc_ecma_parser/tests/typescript/interface/extends/input.ts.json b/crates/swc_ecma_parser/tests/typescript/interface/extends/input.ts.json index b95e2cbb168a..7468dd514722 100644 --- a/crates/swc_ecma_parser/tests/typescript/interface/extends/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/interface/extends/input.ts.json @@ -52,9 +52,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "Y", - "optional": false + "value": "Y" } }, "typeArguments": { diff --git a/crates/swc_ecma_parser/tests/typescript/interface/method-computed/input.ts.json b/crates/swc_ecma_parser/tests/typescript/interface/method-computed/input.ts.json index d351cc8b3700..3c0f4a06baef 100644 --- a/crates/swc_ecma_parser/tests/typescript/interface/method-computed/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/interface/method-computed/input.ts.json @@ -59,9 +59,7 @@ "start": 27, "end": 35 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, @@ -112,9 +110,7 @@ "start": 58, "end": 66 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/typescript/interface/property-computed/input.ts.json b/crates/swc_ecma_parser/tests/typescript/interface/property-computed/input.ts.json index d82723f18342..93f7f55138c5 100644 --- a/crates/swc_ecma_parser/tests/typescript/interface/property-computed/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/interface/property-computed/input.ts.json @@ -60,9 +60,7 @@ "start": 27, "end": 35 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, @@ -112,9 +110,7 @@ "start": 58, "end": 66 }, - "ctxt": 0, - "value": "iterator", - "optional": false + "value": "iterator" } }, "computed": true, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1066/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1066/case1/input.ts.json index 0b8521c99ee1..595c1c18a401 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1066/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1066/case1/input.ts.json @@ -63,9 +63,7 @@ "start": 11, "end": 14 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "typeAnnotation": null diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1449/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1449/input.ts.json index 853ef76500f3..570f3e58943e 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1449/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1449/input.ts.json @@ -64,9 +64,7 @@ "start": 44, "end": 47 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" }, "value": { "type": "AssignmentPattern", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1454/case2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1454/case2/input.ts.json index 653bf1b71cb1..a19ed3712112 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1454/case2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1454/case2/input.ts.json @@ -43,9 +43,7 @@ "start": 109, "end": 126 }, - "ctxt": 0, - "value": "prepareGetRequest", - "optional": false + "value": "prepareGetRequest" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1454/case3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1454/case3/input.ts.json index b00c4582d69f..6d3252496f60 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1454/case3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1454/case3/input.ts.json @@ -43,9 +43,7 @@ "start": 109, "end": 126 }, - "ctxt": 0, - "value": "prepareGetRequest", - "optional": false + "value": "prepareGetRequest" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1503/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1503/input.ts.json index 0411a2da7b96..9f5d26b6bdea 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1503/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1503/input.ts.json @@ -37,9 +37,7 @@ "start": 31, "end": 35 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" }, "value": null, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json index 9635b8a33d24..d238e79aa4df 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json @@ -285,9 +285,7 @@ "start": 258, "end": 269 }, - "ctxt": 0, - "value": "displayName", - "optional": false + "value": "displayName" }, "value": { "type": "TemplateLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json index 880cd11b7d32..f81525261423 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json @@ -63,6 +63,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 78, + "end": 97 + }, "left": { "type": "Identifier", "span": { @@ -79,9 +83,7 @@ "start": 84, "end": 97 }, - "ctxt": 0, - "value": "ComponentType", - "optional": false + "value": "ComponentType" } }, "typeParams": { @@ -137,9 +139,7 @@ "start": 277, "end": 288 }, - "ctxt": 0, - "value": "displayName", - "optional": false + "value": "displayName" }, "value": { "type": "TemplateLiteral", @@ -229,9 +229,7 @@ "start": 351, "end": 356 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" }, "value": { "type": "ObjectExpression", @@ -248,9 +246,7 @@ "start": 367, "end": 372 }, - "ctxt": 0, - "value": "teams", - "optional": false + "value": "teams" }, "value": { "type": "ArrayExpression", @@ -269,9 +265,7 @@ "start": 384, "end": 396 }, - "ctxt": 0, - "value": "loadingTeams", - "optional": false + "value": "loadingTeams" }, "value": { "type": "BooleanLiteral", @@ -290,9 +284,7 @@ "start": 410, "end": 415 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "value": { "type": "NullLiteral", @@ -327,9 +319,7 @@ "start": 435, "end": 452 }, - "ctxt": 0, - "value": "componentDidMount", - "optional": false + "value": "componentDidMount" }, "function": { "params": [], @@ -379,9 +369,7 @@ "start": 468, "end": 478 }, - "ctxt": 0, - "value": "fetchTeams", - "optional": false + "value": "fetchTeams" } }, "arguments": [], @@ -414,9 +402,7 @@ "start": 499, "end": 509 }, - "ctxt": 0, - "value": "fetchTeams", - "optional": false + "value": "fetchTeams" }, "function": { "params": [], @@ -466,9 +452,7 @@ "start": 525, "end": 533 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -489,9 +473,7 @@ "start": 544, "end": 556 }, - "ctxt": 0, - "value": "loadingTeams", - "optional": false + "value": "loadingTeams" }, "value": { "type": "BooleanLiteral", @@ -558,9 +540,7 @@ "start": 602, "end": 606 }, - "ctxt": 0, - "value": "mark", - "optional": false + "value": "mark" } }, "arguments": [ @@ -581,9 +561,7 @@ "start": 609, "end": 613 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -704,9 +682,7 @@ "start": 709, "end": 714 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -715,9 +691,7 @@ "start": 715, "end": 718 }, - "ctxt": 0, - "value": "api", - "optional": false + "value": "api" } }, "property": { @@ -726,9 +700,7 @@ "start": 719, "end": 733 }, - "ctxt": 0, - "value": "requestPromise", - "optional": false + "value": "requestPromise" } }, "arguments": [ @@ -760,9 +732,7 @@ "start": 750, "end": 771 }, - "ctxt": 0, - "value": "getUsersTeamsEndpoint", - "optional": false + "value": "getUsersTeamsEndpoint" } }, "arguments": [], @@ -809,9 +779,7 @@ "start": 798, "end": 806 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -832,9 +800,7 @@ "start": 832, "end": 837 }, - "ctxt": 0, - "value": "teams", - "optional": false + "value": "teams" }, "value": { "type": "Identifier", @@ -855,9 +821,7 @@ "start": 870, "end": 882 }, - "ctxt": 0, - "value": "loadingTeams", - "optional": false + "value": "loadingTeams" }, "value": { "type": "BooleanLiteral", @@ -924,9 +888,7 @@ "start": 941, "end": 948 }, - "ctxt": 0, - "value": "measure", - "optional": false + "value": "measure" } }, "arguments": [ @@ -947,9 +909,7 @@ "start": 965, "end": 969 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -969,9 +929,7 @@ "start": 1007, "end": 1012 }, - "ctxt": 0, - "value": "start", - "optional": false + "value": "start" }, "value": { "type": "StringLiteral", @@ -991,9 +949,7 @@ "start": 1054, "end": 1058 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" }, "value": { "type": "ObjectExpression", @@ -1010,9 +966,7 @@ "start": 1078, "end": 1082 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -1032,9 +986,7 @@ "start": 1114, "end": 1119 }, - "ctxt": 0, - "value": "route", - "optional": false + "value": "route" }, "value": { "type": "StringLiteral", @@ -1054,9 +1006,7 @@ "start": 1173, "end": 1188 }, - "ctxt": 0, - "value": "organization_id", - "optional": false + "value": "organization_id" }, "value": { "type": "CallExpression", @@ -1109,9 +1059,7 @@ "start": 1204, "end": 1209 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -1120,9 +1068,7 @@ "start": 1210, "end": 1222 }, - "ctxt": 0, - "value": "organization", - "optional": false + "value": "organization" } }, "property": { @@ -1131,9 +1077,7 @@ "start": 1223, "end": 1225 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } }, @@ -1234,9 +1178,7 @@ "start": 1325, "end": 1333 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -1267,9 +1209,7 @@ "start": 1363, "end": 1375 }, - "ctxt": 0, - "value": "loadingTeams", - "optional": false + "value": "loadingTeams" }, "value": { "type": "BooleanLiteral", @@ -1318,9 +1258,7 @@ "start": 1415, "end": 1440 }, - "ctxt": 0, - "value": "populateTeamsWithProjects", - "optional": false + "value": "populateTeamsWithProjects" }, "function": { "params": [ @@ -1514,9 +1452,7 @@ "start": 1521, "end": 1524 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -1736,9 +1672,7 @@ "start": 1707, "end": 1710 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -1850,9 +1784,7 @@ "start": 1772, "end": 1776 }, - "ctxt": 0, - "value": "slug", - "optional": false + "value": "slug" } } } @@ -1908,9 +1840,7 @@ "start": 1811, "end": 1819 }, - "ctxt": 0, - "value": "projects", - "optional": false + "value": "projects" }, "value": { "type": "Identifier", @@ -1973,9 +1903,7 @@ "start": 1858, "end": 1866 }, - "ctxt": 0, - "value": "setState", - "optional": false + "value": "setState" } }, "arguments": [ @@ -1996,9 +1924,7 @@ "start": 1877, "end": 1882 }, - "ctxt": 0, - "value": "teams", - "optional": false + "value": "teams" }, "value": { "type": "Identifier", @@ -2019,9 +1945,7 @@ "start": 1911, "end": 1923 }, - "ctxt": 0, - "value": "loadingTeams", - "optional": false + "value": "loadingTeams" }, "value": { "type": "BooleanLiteral", @@ -2065,9 +1989,7 @@ "start": 1953, "end": 1974 }, - "ctxt": 0, - "value": "getUsersTeamsEndpoint", - "optional": false + "value": "getUsersTeamsEndpoint" }, "function": { "params": [], @@ -2129,9 +2051,7 @@ "start": 2015, "end": 2020 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "property": { @@ -2140,9 +2060,7 @@ "start": 2021, "end": 2033 }, - "ctxt": 0, - "value": "organization", - "optional": false + "value": "organization" } }, "property": { @@ -2151,9 +2069,7 @@ "start": 2034, "end": 2038 }, - "ctxt": 0, - "value": "slug", - "optional": false + "value": "slug" } } ], @@ -2207,9 +2123,7 @@ "start": 2065, "end": 2071 }, - "ctxt": 0, - "value": "render", - "optional": false + "value": "render" }, "function": { "params": [], @@ -2299,9 +2213,7 @@ "start": 2137, "end": 2142 }, - "ctxt": 0, - "value": "props", - "optional": false + "value": "props" } }, "typeAnnotation": { @@ -2377,9 +2289,7 @@ "start": 2186, "end": 2191 }, - "ctxt": 0, - "value": "state", - "optional": false + "value": "state" } } } @@ -2429,9 +2339,7 @@ "start": 128, "end": 137 }, - "ctxt": 0, - "value": "Component", - "optional": false + "value": "Component" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1514/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1514/case1/input.ts.json index 456fa3461dbf..56c9965845d2 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1514/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1514/case1/input.ts.json @@ -43,9 +43,7 @@ "start": 30, "end": 38 }, - "ctxt": 0, - "value": "readonly", - "optional": false + "value": "readonly" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1558/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1558/case1/input.ts.json index 5227ae573e19..dc85272a648d 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1558/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1558/case1/input.ts.json @@ -37,9 +37,7 @@ "start": 18, "end": 25 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -82,9 +80,7 @@ "start": 36, "end": 43 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -154,9 +150,7 @@ "start": 105, "end": 112 }, - "ctxt": 0, - "value": "method1", - "optional": false + "value": "method1" }, "function": { "params": [], @@ -209,9 +203,7 @@ "start": 140, "end": 147 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -257,9 +249,7 @@ "start": 185, "end": 192 }, - "ctxt": 0, - "value": "method2", - "optional": false + "value": "method2" }, "function": { "params": [], @@ -312,9 +302,7 @@ "start": 220, "end": 227 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json index 40ccd5869b63..5f3b8808a26b 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json @@ -123,9 +123,7 @@ "start": 75, "end": 78 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1751/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1751/case1/input.ts.json index e1596df94d02..605852baff4c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1751/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1751/case1/input.ts.json @@ -37,9 +37,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2160/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2160/case1/input.ts.json index fba358c72f2d..0037966c94fd 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2160/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2160/case1/input.ts.json @@ -76,9 +76,7 @@ "start": 10, "end": 14 }, - "ctxt": 0, - "value": "fill", - "optional": false + "value": "fill" } }, "arguments": [ @@ -103,9 +101,7 @@ "start": 18, "end": 21 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -163,9 +159,7 @@ "start": 61, "end": 68 }, - "ctxt": 0, - "value": "loading", - "optional": false + "value": "loading" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2160/case2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2160/case2/input.ts.json index 4dcbbd1812d9..b54f056ff334 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2160/case2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2160/case2/input.ts.json @@ -51,9 +51,7 @@ "start": 5, "end": 8 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -100,9 +98,7 @@ "start": 34, "end": 35 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2160/case3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2160/case3/input.ts.json index 133ec0c3fc2e..488eb7fd6cf3 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2160/case3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2160/case3/input.ts.json @@ -51,9 +51,7 @@ "start": 5, "end": 8 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2161/case1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-2161/case1/input.tsx.json index f20ac41cad40..83d478c1281a 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2161/case1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2161/case1/input.tsx.json @@ -63,6 +63,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 38, + "end": 57 + }, "left": { "type": "Identifier", "span": { @@ -79,9 +83,7 @@ "start": 44, "end": 57 }, - "ctxt": 0, - "value": "ComponentType", - "optional": false + "value": "ComponentType" } }, "typeParams": { @@ -144,9 +146,7 @@ "start": 112, "end": 116 }, - "ctxt": 0, - "value": "memo", - "optional": false + "value": "memo" } }, "arguments": [], @@ -206,6 +206,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 64, + "end": 83 + }, "left": { "type": "Identifier", "span": { @@ -222,9 +226,7 @@ "start": 70, "end": 83 }, - "ctxt": 0, - "value": "ComponentType", - "optional": false + "value": "ComponentType" } }, "typeParams": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2196/ts/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2196/ts/input.ts.json index 09603cb5df4a..adea63ace531 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2196/ts/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2196/ts/input.ts.json @@ -75,9 +75,7 @@ "start": 45, "end": 54 }, - "ctxt": 0, - "value": "reproFunc", - "optional": false + "value": "reproFunc" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2196/tsx/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2196/tsx/input.ts.json index 09603cb5df4a..adea63ace531 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2196/tsx/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2196/tsx/input.ts.json @@ -75,9 +75,7 @@ "start": 45, "end": 54 }, - "ctxt": 0, - "value": "reproFunc", - "optional": false + "value": "reproFunc" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2237/case1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-2237/case1/input.tsx.json index e3ae5ccf2847..798787c724d1 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2237/case1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2237/case1/input.tsx.json @@ -120,9 +120,7 @@ "start": 72, "end": 75 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2237/case2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-2237/case2/input.tsx.json index 75a05df30f82..2ced573f323e 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2237/case2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2237/case2/input.tsx.json @@ -120,9 +120,7 @@ "start": 72, "end": 75 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json index 35e932093e7f..3009aa7f70e0 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json @@ -227,9 +227,7 @@ "start": 184, "end": 191 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" }, "value": { "type": "ObjectExpression", @@ -246,9 +244,7 @@ "start": 195, "end": 205 }, - "ctxt": 0, - "value": "allowMixed", - "optional": false + "value": "allowMixed" }, "value": { "type": "MemberExpression", @@ -272,9 +268,7 @@ "start": 216, "end": 221 }, - "ctxt": 0, - "value": "ALLOW", - "optional": false + "value": "ALLOW" } } } @@ -302,9 +296,7 @@ "start": 304, "end": 311 }, - "ctxt": 0, - "value": "_userId", - "optional": true + "value": "_userId" }, "value": null, "typeAnnotation": { @@ -321,8 +313,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 314, + "end": 337 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 314, + "end": 328 + }, "left": { "type": "Identifier", "span": { @@ -339,9 +339,7 @@ "start": 323, "end": 328 }, - "ctxt": 0, - "value": "Types", - "optional": false + "value": "Types" } }, "right": { @@ -350,9 +348,7 @@ "start": 329, "end": 337 }, - "ctxt": 0, - "value": "ObjectId", - "optional": false + "value": "ObjectId" } }, "typeParams": null @@ -420,9 +416,7 @@ "start": 377, "end": 389 }, - "ctxt": 0, - "value": "creationDate", - "optional": true + "value": "creationDate" }, "value": null, "typeAnnotation": { @@ -493,9 +487,7 @@ "start": 352, "end": 359 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "MemberExpression", @@ -519,9 +511,7 @@ "start": 366, "end": 369 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" } } } @@ -569,8 +559,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 259, + "end": 282 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 259, + "end": 273 + }, "left": { "type": "Identifier", "span": { @@ -587,9 +585,7 @@ "start": 268, "end": 273 }, - "ctxt": 0, - "value": "Types", - "optional": false + "value": "Types" } }, "right": { @@ -598,9 +594,7 @@ "start": 274, "end": 282 }, - "ctxt": 0, - "value": "ObjectId", - "optional": false + "value": "ObjectId" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json index 0bb7ab1c5d8f..f54f8904271b 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json @@ -124,9 +124,7 @@ "start": 100, "end": 108 }, - "ctxt": 0, - "value": "onAttach", - "optional": false + "value": "onAttach" }, "value": { "type": "JSXExpressionContainer", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3241/2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-3241/2/input.tsx.json index 7693685b6004..4c9622690c0b 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3241/2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3241/2/input.tsx.json @@ -46,9 +46,7 @@ "start": 7, "end": 11 }, - "ctxt": 0, - "value": "blah", - "optional": false + "value": "blah" }, "value": { "type": "JSXExpressionContainer", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json index 6179455261e2..9864fe63f96d 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json @@ -75,9 +75,7 @@ "start": 101, "end": 103 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": null, "typeAnnotation": { @@ -158,9 +156,7 @@ "start": 63, "end": 69 }, - "ctxt": 0, - "value": "string", - "optional": false + "value": "string" } }, "arguments": [], @@ -172,9 +168,7 @@ "start": 72, "end": 76 }, - "ctxt": 0, - "value": "guid", - "optional": false + "value": "guid" } }, "arguments": [], @@ -186,9 +180,7 @@ "start": 79, "end": 87 }, - "ctxt": 0, - "value": "required", - "optional": false + "value": "required" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3341/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-3341/input.ts.json index 9dac45f0400d..de3aeed13324 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3341/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3341/input.ts.json @@ -47,9 +47,7 @@ "start": 20, "end": 23 }, - "ctxt": 0, - "value": "อ", - "optional": false + "value": "อ" }, "value": { "type": "NumericLiteral", @@ -69,9 +67,7 @@ "start": 32, "end": 35 }, - "ctxt": 0, - "value": "ฮ", - "optional": false + "value": "ฮ" }, "value": { "type": "NumericLiteral", @@ -91,9 +87,7 @@ "start": 44, "end": 47 }, - "ctxt": 0, - "value": "ะ", - "optional": false + "value": "ะ" }, "value": { "type": "NumericLiteral", @@ -113,9 +107,7 @@ "start": 56, "end": 59 }, - "ctxt": 0, - "value": "า", - "optional": false + "value": "า" }, "value": { "type": "NumericLiteral", @@ -135,9 +127,7 @@ "start": 68, "end": 71 }, - "ctxt": 0, - "value": "ำ", - "optional": false + "value": "ำ" }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4132/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4132/index.ts.json index 86e0ff8b9697..0aad45c4654c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4132/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4132/index.ts.json @@ -37,9 +37,7 @@ "start": 22, "end": 30 }, - "ctxt": 0, - "value": "abstract", - "optional": false + "value": "abstract" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json index bc8d9e584a8e..6ec712bd1330 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json @@ -473,9 +473,7 @@ "start": 274, "end": 277 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -544,9 +542,7 @@ "start": 363, "end": 371 }, - "ctxt": 0, - "value": "callback", - "optional": false + "value": "callback" }, "value": { "type": "JSXExpressionContainer", @@ -591,9 +587,7 @@ "start": 393, "end": 396 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -737,6 +731,10 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 212, + "end": 223 + }, "left": { "type": "Identifier", "span": { @@ -753,9 +751,7 @@ "start": 216, "end": 223 }, - "ctxt": 0, - "value": "Element", - "optional": false + "value": "Element" } }, "typeParams": null diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4911/2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4911/2/input.ts.json index b820815609a4..b0d2feb90c59 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4911/2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4911/2/input.ts.json @@ -180,9 +180,7 @@ "start": 103, "end": 107 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json index e38741e081cd..18972b2085f0 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json @@ -149,9 +149,7 @@ "start": 64, "end": 71 }, - "ctxt": 0, - "value": "extname", - "optional": false + "value": "extname" }, "value": { "type": "FunctionExpression", @@ -417,9 +415,7 @@ "start": 153, "end": 159 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -1215,9 +1211,7 @@ "start": 416, "end": 421 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -1268,9 +1262,7 @@ "start": 447, "end": 453 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" }, "value": { "type": "FunctionExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4937/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4937/index.ts.json index 65fb281d4641..51939d7d9f9f 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4937/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4937/index.ts.json @@ -107,9 +107,7 @@ "start": 41, "end": 45 }, - "ctxt": 0, - "value": "sign", - "optional": false + "value": "sign" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json index 9e1e493f2e83..f99945a599aa 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json @@ -747,9 +747,7 @@ "start": 349, "end": 352 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json index ac3db28dcb4f..a53853ff3647 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json @@ -81,9 +81,7 @@ "start": 47, "end": 53 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -143,9 +141,7 @@ "start": 119, "end": 122 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -251,9 +247,7 @@ "start": 235, "end": 238 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -400,9 +394,7 @@ "start": 353, "end": 359 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -489,9 +481,7 @@ "start": 441, "end": 444 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -625,9 +615,7 @@ "start": 573, "end": 576 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -775,9 +763,7 @@ "start": 691, "end": 697 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -830,9 +816,7 @@ "start": 736, "end": 739 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -907,9 +891,7 @@ "start": 805, "end": 808 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1032,9 +1014,7 @@ "start": 903, "end": 909 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1103,9 +1083,7 @@ "start": 956, "end": 959 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1199,9 +1177,7 @@ "start": 1035, "end": 1038 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1327,9 +1303,7 @@ "start": 1135, "end": 1141 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1404,9 +1378,7 @@ "start": 1189, "end": 1192 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1507,9 +1479,7 @@ "start": 1270, "end": 1273 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1636,9 +1606,7 @@ "start": 1371, "end": 1377 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -1730,9 +1698,7 @@ "start": 1466, "end": 1469 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1848,9 +1814,7 @@ "start": 1595, "end": 1598 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -1997,9 +1961,7 @@ "start": 1714, "end": 1720 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2059,9 +2021,7 @@ "start": 1778, "end": 1781 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2199,9 +2159,7 @@ "start": 1910, "end": 1913 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2358,9 +2316,7 @@ "start": 2032, "end": 2038 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2438,9 +2394,7 @@ "start": 2099, "end": 2102 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2565,9 +2519,7 @@ "start": 2203, "end": 2206 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2715,9 +2667,7 @@ "start": 2314, "end": 2320 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -2776,9 +2726,7 @@ "start": 2360, "end": 2363 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2860,9 +2808,7 @@ "start": 2431, "end": 2434 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -2986,9 +2932,7 @@ "start": 2530, "end": 2536 }, - "ctxt": 0, - "value": "random", - "optional": false + "value": "random" } }, "arguments": [], @@ -3041,9 +2985,7 @@ "start": 2590, "end": 2593 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -3144,9 +3086,7 @@ "start": 2674, "end": 2677 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -3378,9 +3318,7 @@ "start": 2879, "end": 2882 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -3490,9 +3428,7 @@ "start": 2980, "end": 2983 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -3679,9 +3615,7 @@ "start": 3135, "end": 3138 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -3911,9 +3845,7 @@ "start": 3335, "end": 3338 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6739/1.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-6739/1.ts.json index b0b7f9be59d0..2e54c2adeb26 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6739/1.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6739/1.ts.json @@ -40,9 +40,7 @@ "start": 9, "end": 12 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6739/2.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-6739/2.tsx.json index b0b7f9be59d0..2e54c2adeb26 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6739/2.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6739/2.tsx.json @@ -40,9 +40,7 @@ "start": 9, "end": 12 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6976/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-6976/1/input.ts.json index b4528fd1167c..4ac43e4fdb51 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6976/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6976/1/input.ts.json @@ -40,9 +40,7 @@ "start": 9, "end": 12 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json index e8a50fe5c847..2d1ffbdf6857 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json @@ -37,9 +37,7 @@ "start": 23, "end": 31 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json index adf3b89ea954..eee947e3d88d 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json @@ -37,9 +37,7 @@ "start": 23, "end": 31 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json index 9688fbf2c804..85fb5393c9d4 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json @@ -37,9 +37,7 @@ "start": 30, "end": 38 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7224/1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-7224/1/input.tsx.json index ab175082825e..3fe49ef2c87e 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7224/1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7224/1/input.tsx.json @@ -153,9 +153,7 @@ "start": 88, "end": 97 }, - "ctxt": 0, - "value": "className", - "optional": false + "value": "className" }, "value": { "type": "JSXExpressionContainer", @@ -223,9 +221,7 @@ "start": 141, "end": 146 }, - "ctxt": 0, - "value": "color", - "optional": false + "value": "color" }, "value": { "type": "MemberExpression", @@ -249,9 +245,7 @@ "start": 154, "end": 158 }, - "ctxt": 0, - "value": "blue", - "optional": false + "value": "blue" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7580/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-7580/input.tsx.json index cb17a8b4230f..79fce029bb1c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7580/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7580/input.tsx.json @@ -69,9 +69,7 @@ "start": 44, "end": 48 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" }, "value": { "type": "CallExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8073/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8073/input.ts.json index 568b6fa7b792..b9bd5e4eae3c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8073/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8073/input.ts.json @@ -40,9 +40,7 @@ "start": 8, "end": 19 }, - "ctxt": 0, - "value": "setListener", - "optional": false + "value": "setListener" } }, "arguments": [ @@ -63,9 +61,7 @@ "start": 26, "end": 42 }, - "ctxt": 0, - "value": "onsubtitlechange", - "optional": false + "value": "onsubtitlechange" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-812/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-812/input.ts.json index af5605ba8811..4f21b29a72c2 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-812/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-812/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 22 }, - "ctxt": 0, - "value": "declare", - "optional": false + "value": "declare" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json index e16685da84ef..468456f87a1c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8209/input.ts.json @@ -125,9 +125,7 @@ "start": 115, "end": 122 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json index 91a36277218b..741ed5d76dd2 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json @@ -37,9 +37,7 @@ "start": 32, "end": 40 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" }, "value": null, "typeAnnotation": { @@ -80,9 +78,7 @@ "start": 55, "end": 66 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -125,9 +121,7 @@ "start": 84, "end": 92 }, - "ctxt": 0, - "value": "accessor", - "optional": false + "value": "accessor" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json index 05a8d92fdb4e..8c24d2d860c8 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8735/1/input.ts.json @@ -125,9 +125,7 @@ "start": 70, "end": 76 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json index 05a8d92fdb4e..8c24d2d860c8 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8735/2/input.tsx.json @@ -125,9 +125,7 @@ "start": 70, "end": 76 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json index d5f5226a30a8..0b321eb3ff49 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json @@ -158,9 +158,7 @@ "start": 126, "end": 134 }, - "ctxt": 0, - "value": "testPlan", - "optional": false + "value": "testPlan" } }, "arguments": [ @@ -229,9 +227,7 @@ "start": 185, "end": 194 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -300,9 +296,7 @@ "start": 253, "end": 261 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -398,9 +392,7 @@ "start": 337, "end": 341 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -409,9 +401,7 @@ "start": 342, "end": 348 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -432,9 +422,7 @@ "start": 367, "end": 376 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -525,9 +513,7 @@ "start": 467, "end": 478 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -612,9 +598,7 @@ "start": 534, "end": 551 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -674,9 +658,7 @@ "start": 582, "end": 606 }, - "ctxt": 0, - "value": "assertResponseJsonEquals", - "optional": false + "value": "assertResponseJsonEquals" } }, "arguments": [ @@ -711,9 +693,7 @@ "start": 632, "end": 644 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -797,9 +777,7 @@ "start": 739, "end": 747 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -895,9 +873,7 @@ "start": 808, "end": 812 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -906,9 +882,7 @@ "start": 813, "end": 819 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -929,9 +903,7 @@ "start": 838, "end": 847 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -1022,9 +994,7 @@ "start": 938, "end": 949 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -1069,9 +1039,7 @@ "start": 987, "end": 994 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -1088,9 +1056,7 @@ "start": 1018, "end": 1028 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -1177,9 +1143,7 @@ "start": 1124, "end": 1141 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -1239,9 +1203,7 @@ "start": 1172, "end": 1196 }, - "ctxt": 0, - "value": "assertResponseJsonEquals", - "optional": false + "value": "assertResponseJsonEquals" } }, "arguments": [ @@ -1276,9 +1238,7 @@ "start": 1222, "end": 1234 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -1316,9 +1276,7 @@ "start": 1264, "end": 1268 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -1396,9 +1354,7 @@ "start": 1325, "end": 1334 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -1467,9 +1423,7 @@ "start": 1401, "end": 1409 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -1565,9 +1519,7 @@ "start": 1506, "end": 1510 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -1576,9 +1528,7 @@ "start": 1511, "end": 1517 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -1599,9 +1549,7 @@ "start": 1536, "end": 1545 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -1692,9 +1640,7 @@ "start": 1644, "end": 1655 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -1739,9 +1685,7 @@ "start": 1693, "end": 1700 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -1758,9 +1702,7 @@ "start": 1724, "end": 1734 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -1847,9 +1789,7 @@ "start": 1830, "end": 1847 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -1909,9 +1849,7 @@ "start": 1878, "end": 1902 }, - "ctxt": 0, - "value": "assertResponseJsonEquals", - "optional": false + "value": "assertResponseJsonEquals" } }, "arguments": [ @@ -1946,9 +1884,7 @@ "start": 1928, "end": 1940 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -1986,9 +1922,7 @@ "start": 1970, "end": 1974 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -2048,9 +1982,7 @@ "start": 2018, "end": 2025 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -2059,9 +1991,7 @@ "start": 2026, "end": 2038 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -2108,9 +2038,7 @@ "start": 2048, "end": 2055 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -2120,9 +2048,7 @@ "start": 2057, "end": 2060 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -2217,9 +2143,7 @@ "start": 2112, "end": 2121 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -2288,9 +2212,7 @@ "start": 2187, "end": 2195 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -2386,9 +2308,7 @@ "start": 2292, "end": 2296 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -2397,9 +2317,7 @@ "start": 2297, "end": 2303 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -2420,9 +2338,7 @@ "start": 2322, "end": 2331 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -2513,9 +2429,7 @@ "start": 2429, "end": 2440 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -2560,9 +2474,7 @@ "start": 2478, "end": 2485 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -2579,9 +2491,7 @@ "start": 2509, "end": 2519 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -2668,9 +2578,7 @@ "start": 2615, "end": 2632 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -2736,9 +2644,7 @@ "start": 2660, "end": 2667 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -2747,9 +2653,7 @@ "start": 2668, "end": 2680 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -2784,9 +2688,7 @@ "start": 2689, "end": 2701 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -2864,9 +2766,7 @@ "start": 2747, "end": 2754 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -2875,9 +2775,7 @@ "start": 2755, "end": 2767 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -2924,9 +2822,7 @@ "start": 2794, "end": 2801 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -2936,9 +2832,7 @@ "start": 2803, "end": 2806 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -3015,9 +2909,7 @@ "start": 2885, "end": 2892 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -3026,9 +2918,7 @@ "start": 2893, "end": 2905 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -3075,9 +2965,7 @@ "start": 2915, "end": 2922 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -3087,9 +2975,7 @@ "start": 2924, "end": 2927 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -3184,9 +3070,7 @@ "start": 2979, "end": 2988 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -3255,9 +3139,7 @@ "start": 3041, "end": 3049 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -3353,9 +3235,7 @@ "start": 3135, "end": 3139 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -3364,9 +3244,7 @@ "start": 3140, "end": 3146 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -3387,9 +3265,7 @@ "start": 3165, "end": 3174 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -3480,9 +3356,7 @@ "start": 3259, "end": 3270 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -3527,9 +3401,7 @@ "start": 3308, "end": 3315 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -3546,9 +3418,7 @@ "start": 3339, "end": 3349 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -3635,9 +3505,7 @@ "start": 3445, "end": 3462 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -3703,9 +3571,7 @@ "start": 3490, "end": 3497 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -3714,9 +3580,7 @@ "start": 3498, "end": 3510 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -3751,9 +3615,7 @@ "start": 3519, "end": 3531 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -3831,9 +3693,7 @@ "start": 3577, "end": 3584 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -3842,9 +3702,7 @@ "start": 3585, "end": 3597 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -3891,9 +3749,7 @@ "start": 3624, "end": 3631 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -3903,9 +3759,7 @@ "start": 3633, "end": 3636 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -3982,9 +3836,7 @@ "start": 3715, "end": 3722 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -3993,9 +3845,7 @@ "start": 3723, "end": 3735 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -4042,9 +3892,7 @@ "start": 3745, "end": 3752 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -4054,9 +3902,7 @@ "start": 3754, "end": 3757 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -4151,9 +3997,7 @@ "start": 3809, "end": 3818 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -4222,9 +4066,7 @@ "start": 3878, "end": 3886 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -4320,9 +4162,7 @@ "start": 3955, "end": 3959 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -4331,9 +4171,7 @@ "start": 3960, "end": 3966 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -4354,9 +4192,7 @@ "start": 3985, "end": 3994 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -4447,9 +4283,7 @@ "start": 4086, "end": 4097 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -4494,9 +4328,7 @@ "start": 4135, "end": 4142 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -4513,9 +4345,7 @@ "start": 4166, "end": 4176 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -4602,9 +4432,7 @@ "start": 4272, "end": 4289 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -4664,9 +4492,7 @@ "start": 4320, "end": 4344 }, - "ctxt": 0, - "value": "assertResponseJsonEquals", - "optional": false + "value": "assertResponseJsonEquals" } }, "arguments": [ @@ -4701,9 +4527,7 @@ "start": 4370, "end": 4382 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -4741,9 +4565,7 @@ "start": 4412, "end": 4416 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -4821,9 +4643,7 @@ "start": 4473, "end": 4482 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -4892,9 +4712,7 @@ "start": 4550, "end": 4558 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -4990,9 +4808,7 @@ "start": 4627, "end": 4631 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -5001,9 +4817,7 @@ "start": 4632, "end": 4638 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -5024,9 +4838,7 @@ "start": 4657, "end": 4666 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -5117,9 +4929,7 @@ "start": 4766, "end": 4777 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -5164,9 +4974,7 @@ "start": 4815, "end": 4822 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -5183,9 +4991,7 @@ "start": 4846, "end": 4856 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -5272,9 +5078,7 @@ "start": 4952, "end": 4969 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -5334,9 +5138,7 @@ "start": 5000, "end": 5024 }, - "ctxt": 0, - "value": "assertResponseJsonEquals", - "optional": false + "value": "assertResponseJsonEquals" } }, "arguments": [ @@ -5371,9 +5173,7 @@ "start": 5050, "end": 5062 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -5411,9 +5211,7 @@ "start": 5092, "end": 5096 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -5473,9 +5271,7 @@ "start": 5140, "end": 5147 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -5484,9 +5280,7 @@ "start": 5148, "end": 5160 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -5533,9 +5327,7 @@ "start": 5170, "end": 5177 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -5545,9 +5337,7 @@ "start": 5179, "end": 5182 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -5642,9 +5432,7 @@ "start": 5234, "end": 5243 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -5713,9 +5501,7 @@ "start": 5302, "end": 5310 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -5811,9 +5597,7 @@ "start": 5378, "end": 5382 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -5822,9 +5606,7 @@ "start": 5383, "end": 5389 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -5845,9 +5627,7 @@ "start": 5408, "end": 5417 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -5938,9 +5718,7 @@ "start": 5508, "end": 5519 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -5985,9 +5763,7 @@ "start": 5557, "end": 5564 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -6004,9 +5780,7 @@ "start": 5588, "end": 5598 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -6093,9 +5867,7 @@ "start": 5694, "end": 5711 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -6161,9 +5933,7 @@ "start": 5739, "end": 5746 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -6172,9 +5942,7 @@ "start": 5747, "end": 5759 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -6209,9 +5977,7 @@ "start": 5768, "end": 5780 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -6289,9 +6055,7 @@ "start": 5826, "end": 5833 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -6300,9 +6064,7 @@ "start": 5834, "end": 5846 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -6349,9 +6111,7 @@ "start": 5873, "end": 5880 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -6361,9 +6121,7 @@ "start": 5882, "end": 5885 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -6458,9 +6216,7 @@ "start": 5977, "end": 5986 }, - "ctxt": 0, - "value": "testSuite", - "optional": false + "value": "testSuite" } }, "arguments": [ @@ -6529,9 +6285,7 @@ "start": 6053, "end": 6061 }, - "ctxt": 0, - "value": "testCase", - "optional": false + "value": "testCase" } }, "arguments": [ @@ -6627,9 +6381,7 @@ "start": 6147, "end": 6151 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -6638,9 +6390,7 @@ "start": 6152, "end": 6158 }, - "ctxt": 0, - "value": "Server", - "optional": false + "value": "Server" } }, "arguments": [ @@ -6661,9 +6411,7 @@ "start": 6177, "end": 6186 }, - "ctxt": 0, - "value": "resources", - "optional": false + "value": "resources" }, "value": { "type": "ArrayExpression", @@ -6754,9 +6502,7 @@ "start": 6285, "end": 6296 }, - "ctxt": 0, - "value": "mockRequest", - "optional": false + "value": "mockRequest" } }, "arguments": [ @@ -6801,9 +6547,7 @@ "start": 6334, "end": 6341 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" }, "value": { "type": "ObjectExpression", @@ -6820,9 +6564,7 @@ "start": 6365, "end": 6375 }, - "ctxt": 0, - "value": "csrf_token", - "optional": false + "value": "csrf_token" }, "value": { "type": "StringLiteral", @@ -6909,9 +6651,7 @@ "start": 6471, "end": 6488 }, - "ctxt": 0, - "value": "handleHttpRequest", - "optional": false + "value": "handleHttpRequest" } }, "arguments": [ @@ -6977,9 +6717,7 @@ "start": 6516, "end": 6523 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -6988,9 +6726,7 @@ "start": 6524, "end": 6536 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -7025,9 +6761,7 @@ "start": 6545, "end": 6557 }, - "ctxt": 0, - "value": "responseBody", - "optional": false + "value": "responseBody" } }, "arguments": [ @@ -7105,9 +6839,7 @@ "start": 6603, "end": 6610 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -7116,9 +6848,7 @@ "start": 6611, "end": 6623 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -7165,9 +6895,7 @@ "start": 6650, "end": 6657 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -7177,9 +6905,7 @@ "start": 6659, "end": 6662 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -7256,9 +6982,7 @@ "start": 6741, "end": 6748 }, - "ctxt": 0, - "value": "asserts", - "optional": false + "value": "asserts" } }, "property": { @@ -7267,9 +6991,7 @@ "start": 6749, "end": 6761 }, - "ctxt": 0, - "value": "assertEquals", - "optional": false + "value": "assertEquals" } }, "arguments": [ @@ -7316,9 +7038,7 @@ "start": 6771, "end": 6778 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } } }, @@ -7328,9 +7048,7 @@ "start": 6780, "end": 6783 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -7437,9 +7155,7 @@ "start": 6835, "end": 6838 }, - "ctxt": 0, - "value": "run", - "optional": false + "value": "run" } }, "arguments": [], @@ -7554,8 +7270,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7162, + "end": 7180 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 7162, + "end": 7172 + }, "left": { "type": "Identifier", "span": { @@ -7572,9 +7296,7 @@ "start": 7168, "end": 7172 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "right": { @@ -7583,9 +7305,7 @@ "start": 7173, "end": 7180 }, - "ctxt": 0, - "value": "Request", - "optional": false + "value": "Request" } }, "typeParams": null @@ -7623,8 +7343,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7196, + "end": 7215 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 7196, + "end": 7206 + }, "left": { "type": "Identifier", "span": { @@ -7641,9 +7369,7 @@ "start": 7202, "end": 7206 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "right": { @@ -7652,9 +7378,7 @@ "start": 7207, "end": 7215 }, - "ctxt": 0, - "value": "Response", - "optional": false + "value": "Response" } }, "typeParams": null @@ -7719,9 +7443,7 @@ "start": 7237, "end": 7251 }, - "ctxt": 0, - "value": "getHeaderParam", - "optional": false + "value": "getHeaderParam" } }, "arguments": [ @@ -7797,9 +7519,7 @@ "start": 7301, "end": 7311 }, - "ctxt": 0, - "value": "Exceptions", - "optional": false + "value": "Exceptions" } }, "property": { @@ -7808,9 +7528,7 @@ "start": 7312, "end": 7335 }, - "ctxt": 0, - "value": "HttpMiddlewareException", - "optional": false + "value": "HttpMiddlewareException" } }, "arguments": [ @@ -7897,8 +7615,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7454, + "end": 7472 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 7454, + "end": 7464 + }, "left": { "type": "Identifier", "span": { @@ -7915,9 +7641,7 @@ "start": 7460, "end": 7464 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "right": { @@ -7926,9 +7650,7 @@ "start": 7465, "end": 7472 }, - "ctxt": 0, - "value": "Request", - "optional": false + "value": "Request" } }, "typeParams": null @@ -7966,8 +7688,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7488, + "end": 7507 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 7488, + "end": 7498 + }, "left": { "type": "Identifier", "span": { @@ -7984,9 +7714,7 @@ "start": 7494, "end": 7498 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "right": { @@ -7995,9 +7723,7 @@ "start": 7499, "end": 7507 }, - "ctxt": 0, - "value": "Response", - "optional": false + "value": "Response" } }, "typeParams": null @@ -8061,9 +7787,7 @@ "start": 7526, "end": 7533 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } }, "property": { @@ -8072,9 +7796,7 @@ "start": 7534, "end": 7537 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -8141,9 +7863,7 @@ "start": 7581, "end": 7585 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -8208,8 +7928,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7655, + "end": 7673 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 7655, + "end": 7665 + }, "left": { "type": "Identifier", "span": { @@ -8226,9 +7954,7 @@ "start": 7661, "end": 7665 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "right": { @@ -8237,9 +7963,7 @@ "start": 7666, "end": 7673 }, - "ctxt": 0, - "value": "Request", - "optional": false + "value": "Request" } }, "typeParams": null @@ -8277,8 +8001,16 @@ }, "typeName": { "type": "TsQualifiedName", + "span": { + "start": 7689, + "end": 7708 + }, "left": { "type": "TsQualifiedName", + "span": { + "start": 7689, + "end": 7699 + }, "left": { "type": "Identifier", "span": { @@ -8295,9 +8027,7 @@ "start": 7695, "end": 7699 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "right": { @@ -8306,9 +8036,7 @@ "start": 7700, "end": 7708 }, - "ctxt": 0, - "value": "Response", - "optional": false + "value": "Response" } }, "typeParams": null @@ -8372,9 +8100,7 @@ "start": 7727, "end": 7734 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } }, "property": { @@ -8383,9 +8109,7 @@ "start": 7735, "end": 7738 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -8484,9 +8208,7 @@ "start": 7769, "end": 7773 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -8495,9 +8217,7 @@ "start": 7774, "end": 7784 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -8518,9 +8238,7 @@ "start": 7787, "end": 7801 }, - "ctxt": 0, - "value": "before_request", - "optional": false + "value": "before_request" }, "value": { "type": "ArrayExpression", @@ -8566,9 +8284,7 @@ "start": 7902, "end": 7907 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -8626,9 +8342,7 @@ "start": 7952, "end": 7957 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -8695,9 +8409,7 @@ "start": 7999, "end": 8003 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -8753,9 +8465,7 @@ "start": 8030, "end": 8034 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -8836,9 +8546,7 @@ "start": 8066, "end": 8069 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -8915,9 +8623,7 @@ "start": 8101, "end": 8108 }, - "ctxt": 0, - "value": "request", - "optional": false + "value": "request" } }, "property": { @@ -8926,9 +8632,7 @@ "start": 8109, "end": 8121 }, - "ctxt": 0, - "value": "getPathParam", - "optional": false + "value": "getPathParam" } }, "arguments": [ @@ -9013,9 +8717,7 @@ "start": 8167, "end": 8175 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } }, "property": { @@ -9024,9 +8726,7 @@ "start": 8176, "end": 8180 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -9061,9 +8761,7 @@ "start": 8188, "end": 8193 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" } }, "property": { @@ -9072,9 +8770,7 @@ "start": 8194, "end": 8197 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -9149,9 +8845,7 @@ "start": 8277, "end": 8285 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -9198,9 +8892,7 @@ "start": 7875, "end": 7879 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -9209,9 +8901,7 @@ "start": 7880, "end": 7888 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -9279,9 +8969,7 @@ "start": 8303, "end": 8307 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -9290,9 +8978,7 @@ "start": 8308, "end": 8318 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -9313,9 +8999,7 @@ "start": 8326, "end": 8340 }, - "ctxt": 0, - "value": "before_request", - "optional": false + "value": "before_request" }, "value": { "type": "ArrayExpression", @@ -9374,9 +9058,7 @@ "start": 8478, "end": 8483 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -9434,9 +9116,7 @@ "start": 8528, "end": 8533 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -9503,9 +9183,7 @@ "start": 8575, "end": 8579 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -9561,9 +9239,7 @@ "start": 8606, "end": 8610 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -9644,9 +9320,7 @@ "start": 8642, "end": 8645 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -9723,9 +9397,7 @@ "start": 8677, "end": 8684 }, - "ctxt": 0, - "value": "request", - "optional": false + "value": "request" } }, "property": { @@ -9734,9 +9406,7 @@ "start": 8685, "end": 8697 }, - "ctxt": 0, - "value": "getPathParam", - "optional": false + "value": "getPathParam" } }, "arguments": [ @@ -9821,9 +9491,7 @@ "start": 8743, "end": 8751 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } }, "property": { @@ -9832,9 +9500,7 @@ "start": 8752, "end": 8756 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -9869,9 +9535,7 @@ "start": 8764, "end": 8769 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" } }, "property": { @@ -9880,9 +9544,7 @@ "start": 8770, "end": 8773 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -9957,9 +9619,7 @@ "start": 8853, "end": 8861 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -10006,9 +9666,7 @@ "start": 8451, "end": 8455 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -10017,9 +9675,7 @@ "start": 8456, "end": 8464 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -10087,9 +9743,7 @@ "start": 8879, "end": 8883 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -10098,9 +9752,7 @@ "start": 8884, "end": 8894 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -10121,9 +9773,7 @@ "start": 8902, "end": 8915 }, - "ctxt": 0, - "value": "after_request", - "optional": false + "value": "after_request" }, "value": { "type": "ArrayExpression", @@ -10182,9 +9832,7 @@ "start": 9058, "end": 9063 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -10242,9 +9890,7 @@ "start": 9108, "end": 9113 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -10311,9 +9957,7 @@ "start": 9155, "end": 9159 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -10369,9 +10013,7 @@ "start": 9186, "end": 9190 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -10452,9 +10094,7 @@ "start": 9222, "end": 9225 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -10497,9 +10137,7 @@ "start": 9250, "end": 9258 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -10546,9 +10184,7 @@ "start": 9031, "end": 9035 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -10557,9 +10193,7 @@ "start": 9036, "end": 9044 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -10627,9 +10261,7 @@ "start": 9276, "end": 9280 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -10638,9 +10270,7 @@ "start": 9281, "end": 9291 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -10661,9 +10291,7 @@ "start": 9307, "end": 9321 }, - "ctxt": 0, - "value": "before_request", - "optional": false + "value": "before_request" }, "value": { "type": "ArrayExpression", @@ -10696,9 +10324,7 @@ "start": 9353, "end": 9366 }, - "ctxt": 0, - "value": "after_request", - "optional": false + "value": "after_request" }, "value": { "type": "ArrayExpression", @@ -10744,9 +10370,7 @@ "start": 9481, "end": 9486 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -10804,9 +10428,7 @@ "start": 9531, "end": 9536 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -10873,9 +10495,7 @@ "start": 9578, "end": 9582 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -10931,9 +10551,7 @@ "start": 9609, "end": 9613 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -11014,9 +10632,7 @@ "start": 9645, "end": 9648 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -11059,9 +10675,7 @@ "start": 9673, "end": 9681 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -11108,9 +10722,7 @@ "start": 9454, "end": 9458 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -11119,9 +10731,7 @@ "start": 9459, "end": 9467 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -11161,9 +10771,7 @@ "start": 9774, "end": 9779 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -11221,9 +10829,7 @@ "start": 9824, "end": 9829 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -11290,9 +10896,7 @@ "start": 9871, "end": 9875 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -11348,9 +10952,7 @@ "start": 9902, "end": 9906 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -11431,9 +11033,7 @@ "start": 10001, "end": 10004 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -11479,9 +11079,7 @@ "start": 9938, "end": 9942 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -11490,9 +11088,7 @@ "start": 9943, "end": 9953 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -11513,9 +11109,7 @@ "start": 9956, "end": 9970 }, - "ctxt": 0, - "value": "before_request", - "optional": false + "value": "before_request" }, "value": { "type": "ArrayExpression", @@ -11620,9 +11214,7 @@ "start": 10036, "end": 10043 }, - "ctxt": 0, - "value": "request", - "optional": false + "value": "request" } }, "property": { @@ -11631,9 +11223,7 @@ "start": 10044, "end": 10056 }, - "ctxt": 0, - "value": "getPathParam", - "optional": false + "value": "getPathParam" } }, "arguments": [ @@ -11718,9 +11308,7 @@ "start": 10102, "end": 10110 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } }, "property": { @@ -11729,9 +11317,7 @@ "start": 10111, "end": 10115 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -11766,9 +11352,7 @@ "start": 10123, "end": 10128 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" } }, "property": { @@ -11777,9 +11361,7 @@ "start": 10129, "end": 10132 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -11854,9 +11436,7 @@ "start": 10212, "end": 10220 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -11903,9 +11483,7 @@ "start": 9747, "end": 9751 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -11914,9 +11492,7 @@ "start": 9752, "end": 9760 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -11956,9 +11532,7 @@ "start": 10312, "end": 10317 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -12016,9 +11590,7 @@ "start": 10362, "end": 10367 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -12085,9 +11657,7 @@ "start": 10409, "end": 10413 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -12143,9 +11713,7 @@ "start": 10440, "end": 10444 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -12226,9 +11794,7 @@ "start": 10544, "end": 10547 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -12274,9 +11840,7 @@ "start": 10476, "end": 10480 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -12285,9 +11849,7 @@ "start": 10481, "end": 10491 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -12308,9 +11870,7 @@ "start": 10494, "end": 10507 }, - "ctxt": 0, - "value": "after_request", - "optional": false + "value": "after_request" }, "value": { "type": "ArrayExpression", @@ -12381,9 +11941,7 @@ "start": 10572, "end": 10580 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -12430,9 +11988,7 @@ "start": 10285, "end": 10289 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -12441,9 +11997,7 @@ "start": 10290, "end": 10298 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -12483,9 +12037,7 @@ "start": 10681, "end": 10686 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -12543,9 +12095,7 @@ "start": 10731, "end": 10736 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -12612,9 +12162,7 @@ "start": 10778, "end": 10782 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -12670,9 +12218,7 @@ "start": 10809, "end": 10813 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -12753,9 +12299,7 @@ "start": 10950, "end": 10953 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -12801,9 +12345,7 @@ "start": 10845, "end": 10849 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -12812,9 +12354,7 @@ "start": 10850, "end": 10860 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -12835,9 +12375,7 @@ "start": 10872, "end": 10886 }, - "ctxt": 0, - "value": "before_request", - "optional": false + "value": "before_request" }, "value": { "type": "ArrayExpression", @@ -12955,9 +12493,7 @@ "start": 10985, "end": 10992 }, - "ctxt": 0, - "value": "request", - "optional": false + "value": "request" } }, "property": { @@ -12966,9 +12502,7 @@ "start": 10993, "end": 11005 }, - "ctxt": 0, - "value": "getPathParam", - "optional": false + "value": "getPathParam" } }, "arguments": [ @@ -13053,9 +12587,7 @@ "start": 11051, "end": 11059 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } }, "property": { @@ -13064,9 +12596,7 @@ "start": 11060, "end": 11064 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" } }, "right": { @@ -13101,9 +12631,7 @@ "start": 11072, "end": 11077 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" } }, "property": { @@ -13112,9 +12640,7 @@ "start": 11078, "end": 11081 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -13189,9 +12715,7 @@ "start": 11161, "end": 11169 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -13238,9 +12762,7 @@ "start": 10654, "end": 10658 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -13249,9 +12771,7 @@ "start": 10659, "end": 10667 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, @@ -13291,9 +12811,7 @@ "start": 11269, "end": 11274 }, - "ctxt": 0, - "value": "paths", - "optional": false + "value": "paths" }, "value": { "type": "ArrayExpression", @@ -13351,9 +12869,7 @@ "start": 11319, "end": 11324 }, - "ctxt": 0, - "value": "users", - "optional": false + "value": "users" }, "value": { "type": "NewExpression", @@ -13420,9 +12936,7 @@ "start": 11366, "end": 11370 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -13478,9 +12992,7 @@ "start": 11397, "end": 11401 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -13561,9 +13073,7 @@ "start": 11543, "end": 11546 }, - "ctxt": 0, - "value": "GET", - "optional": false + "value": "GET" }, "function": { "params": [], @@ -13609,9 +13119,7 @@ "start": 11433, "end": 11437 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -13620,9 +13128,7 @@ "start": 11438, "end": 11448 }, - "ctxt": 0, - "value": "Middleware", - "optional": false + "value": "Middleware" } }, "arguments": [ @@ -13643,9 +13149,7 @@ "start": 11460, "end": 11473 }, - "ctxt": 0, - "value": "after_request", - "optional": false + "value": "after_request" }, "value": { "type": "ArrayExpression", @@ -13729,9 +13233,7 @@ "start": 11571, "end": 11579 }, - "ctxt": 0, - "value": "response", - "optional": false + "value": "response" } } } @@ -13778,9 +13280,7 @@ "start": 11242, "end": 11246 }, - "ctxt": 0, - "value": "Http", - "optional": false + "value": "Http" } }, "property": { @@ -13789,9 +13289,7 @@ "start": 11247, "end": 11255 }, - "ctxt": 0, - "value": "Resource", - "optional": false + "value": "Resource" } }, "isAbstract": false, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json index 047146534a3e..d813a49c7ae0 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json @@ -43,9 +43,7 @@ "start": 45, "end": 52 }, - "ctxt": 0, - "value": "newLine", - "optional": false + "value": "newLine" }, "value": { "type": "CallExpression", @@ -76,9 +74,7 @@ "start": 63, "end": 69 }, - "ctxt": 0, - "value": "encode", - "optional": false + "value": "encode" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json index 0b4c691a2f97..b35637f45df0 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json @@ -37,9 +37,7 @@ "start": 19, "end": 25 }, - "ctxt": 0, - "value": "myFunc", - "optional": false + "value": "myFunc" }, "value": { "type": "ArrowFunctionExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-947/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-947/input.ts.json index 60c35aa8e261..5703a3cc0edc 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-947/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-947/input.ts.json @@ -47,9 +47,7 @@ "start": 13, "end": 19 }, - "ctxt": 0, - "value": "myProp", - "optional": false + "value": "myProp" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/jssue-7428/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/jssue-7428/1/input.ts.json index 56ada52f3884..1c1ed8311a3a 100644 --- a/crates/swc_ecma_parser/tests/typescript/jssue-7428/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/jssue-7428/1/input.ts.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -100,9 +98,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ClassExpression", @@ -126,9 +122,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/jssue-7428/2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/jssue-7428/2/input.tsx.json index 56ada52f3884..1c1ed8311a3a 100644 --- a/crates/swc_ecma_parser/tests/typescript/jssue-7428/2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/jssue-7428/2/input.tsx.json @@ -37,9 +37,7 @@ "start": 15, "end": 16 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "function": { "params": [], @@ -100,9 +98,7 @@ "start": 45, "end": 46 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" }, "value": { "type": "ClassExpression", @@ -126,9 +122,7 @@ "start": 75, "end": 76 }, - "ctxt": 0, - "value": "x", - "optional": false + "value": "x" }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/typescript/meta-property/new-target/in-class/input.ts.json b/crates/swc_ecma_parser/tests/typescript/meta-property/new-target/in-class/input.ts.json index 2ca06cd58437..05dfa27cf79f 100644 --- a/crates/swc_ecma_parser/tests/typescript/meta-property/new-target/in-class/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/meta-property/new-target/in-class/input.ts.json @@ -38,9 +38,7 @@ "start": 16, "end": 27 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -111,9 +109,7 @@ "start": 76, "end": 87 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json b/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json index 7e61e15080c1..951ad83b55e1 100644 --- a/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json +++ b/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json @@ -78,9 +78,7 @@ "start": 40, "end": 43 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ diff --git a/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json index 3b3627aa1943..c57ec922d7ac 100644 --- a/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json @@ -113,9 +113,7 @@ "start": 62, "end": 71 }, - "ctxt": 0, - "value": "className", - "optional": false + "value": "className" }, "value": { "type": "StringLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json index fdf208e6dc09..77ae320ac77c 100644 --- a/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json @@ -186,9 +186,7 @@ "start": 111, "end": 118 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -206,9 +204,7 @@ "start": 139, "end": 154 }, - "ctxt": 0, - "value": "FileSystemCache", - "optional": false + "value": "FileSystemCache" }, "value": { "type": "CallExpression", @@ -252,9 +248,7 @@ "start": 181, "end": 187 }, - "ctxt": 0, - "value": "MaxAge", - "optional": false + "value": "MaxAge" }, "value": { "type": "CallExpression", @@ -298,9 +292,7 @@ "start": 214, "end": 228 }, - "ctxt": 0, - "value": "oneBehindFetch", - "optional": false + "value": "oneBehindFetch" }, "value": { "type": "CallExpression", @@ -344,9 +336,7 @@ "start": 254, "end": 257 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "value": { "type": "CallExpression", @@ -390,9 +380,7 @@ "start": 284, "end": 289 }, - "ctxt": 0, - "value": "isAmp", - "optional": false + "value": "isAmp" }, "value": { "type": "CallExpression", @@ -589,9 +577,7 @@ "start": 409, "end": 417 }, - "ctxt": 0, - "value": "promises", - "optional": false + "value": "promises" } }, "definite": false @@ -629,9 +615,7 @@ "start": 455, "end": 465 }, - "ctxt": 0, - "value": "existsSync", - "optional": false + "value": "existsSync" }, "value": { "type": "Identifier", @@ -653,9 +637,7 @@ "start": 486, "end": 495 }, - "ctxt": 0, - "value": "mkdirSync", - "optional": false + "value": "mkdirSync" }, "value": { "type": "Identifier", @@ -1008,9 +990,7 @@ "start": 688, "end": 695 }, - "ctxt": 0, - "value": "baseDir", - "optional": false + "value": "baseDir" }, "value": { "type": "CallExpression", @@ -1041,9 +1021,7 @@ "start": 699, "end": 703 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -1084,9 +1062,7 @@ "start": 742, "end": 745 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "value": { "type": "Identifier", @@ -1107,9 +1083,7 @@ "start": 766, "end": 774 }, - "ctxt": 0, - "value": "maxItems", - "optional": false + "value": "maxItems" }, "value": { "type": "NumericLiteral", @@ -1159,9 +1133,7 @@ "start": 853, "end": 859 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "function": { "params": [ @@ -1269,9 +1241,7 @@ "start": 924, "end": 930 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -1336,9 +1306,7 @@ "start": 972, "end": 983 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -1401,9 +1369,7 @@ "start": 1014, "end": 1018 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "right": { @@ -1450,9 +1416,7 @@ "start": 1049, "end": 1054 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "right": { @@ -1497,9 +1461,7 @@ "start": 1065, "end": 1073 }, - "ctxt": 0, - "value": "maxItems", - "optional": false + "value": "maxItems" } } } @@ -1525,9 +1487,7 @@ "start": 1115, "end": 1118 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "function": { "params": [ @@ -1657,9 +1617,7 @@ "start": 1167, "end": 1172 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "property": { @@ -1668,9 +1626,7 @@ "start": 1173, "end": 1176 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -1792,9 +1748,7 @@ "start": 1300, "end": 1319 }, - "ctxt": 0, - "value": "createCacheFileName", - "optional": false + "value": "createCacheFileName" } }, "arguments": [ @@ -1894,9 +1848,7 @@ "start": 1392, "end": 1400 }, - "ctxt": 0, - "value": "readFile", - "optional": false + "value": "readFile" } }, "arguments": [ @@ -1986,9 +1938,7 @@ "start": 1447, "end": 1452 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -2048,9 +1998,7 @@ "start": 1486, "end": 1491 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "property": { @@ -2059,9 +2007,7 @@ "start": 1492, "end": 1495 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -2206,9 +2152,7 @@ "start": 1657, "end": 1660 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "function": { "params": [ @@ -2317,9 +2261,7 @@ "start": 1724, "end": 1729 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "property": { @@ -2328,9 +2270,7 @@ "start": 1730, "end": 1733 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -2422,9 +2362,7 @@ "start": 1777, "end": 1781 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "property": { @@ -2433,9 +2371,7 @@ "start": 1782, "end": 1789 }, - "ctxt": 0, - "value": "baseDir", - "optional": false + "value": "baseDir" } } } @@ -2502,9 +2438,7 @@ "start": 1829, "end": 1833 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "property": { @@ -2513,9 +2447,7 @@ "start": 1834, "end": 1841 }, - "ctxt": 0, - "value": "baseDir", - "optional": false + "value": "baseDir" } } } @@ -2580,9 +2512,7 @@ "start": 1908, "end": 1927 }, - "ctxt": 0, - "value": "createCacheFileName", - "optional": false + "value": "createCacheFileName" } }, "arguments": [ @@ -2641,9 +2571,7 @@ "start": 1965, "end": 1974 }, - "ctxt": 0, - "value": "writeFile", - "optional": false + "value": "writeFile" } }, "arguments": [ @@ -2691,9 +2619,7 @@ "start": 1983, "end": 1992 }, - "ctxt": 0, - "value": "stringify", - "optional": false + "value": "stringify" } }, "arguments": [ @@ -2823,9 +2749,7 @@ "start": 2079, "end": 2083 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "property": { @@ -2834,9 +2758,7 @@ "start": 2084, "end": 2087 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -2845,9 +2767,7 @@ "start": 2088, "end": 2093 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -2911,9 +2831,7 @@ "start": 2189, "end": 2194 }, - "ctxt": 0, - "value": "clear", - "optional": false + "value": "clear" }, "function": { "params": [], @@ -2983,9 +2901,7 @@ "start": 2234, "end": 2238 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "property": { @@ -2994,9 +2910,7 @@ "start": 2239, "end": 2246 }, - "ctxt": 0, - "value": "baseDir", - "optional": false + "value": "baseDir" } }, "definite": false @@ -3133,9 +3047,7 @@ "start": 2370, "end": 2377 }, - "ctxt": 0, - "value": "readdir", - "optional": false + "value": "readdir" } }, "arguments": [ @@ -3169,9 +3081,7 @@ "start": 2407, "end": 2420 }, - "ctxt": 0, - "value": "withFileTypes", - "optional": false + "value": "withFileTypes" }, "value": { "type": "BooleanLiteral", @@ -3234,9 +3144,7 @@ "start": 2485, "end": 2488 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -3271,9 +3179,7 @@ "start": 2491, "end": 2494 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -3369,9 +3275,7 @@ "start": 2537, "end": 2541 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -3412,9 +3316,7 @@ "start": 2547, "end": 2551 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -3473,9 +3375,7 @@ "start": 2587, "end": 2593 }, - "ctxt": 0, - "value": "isFile", - "optional": false + "value": "isFile" } }, "arguments": [], @@ -3516,9 +3416,7 @@ "start": 2601, "end": 2605 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -3527,9 +3425,7 @@ "start": 2606, "end": 2614 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -3578,9 +3474,7 @@ "start": 2628, "end": 2634 }, - "ctxt": 0, - "value": "unlink", - "optional": false + "value": "unlink" } }, "arguments": [ @@ -3629,9 +3523,7 @@ "start": 2648, "end": 2655 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [], @@ -3683,9 +3575,7 @@ "start": 2717, "end": 2736 }, - "ctxt": 0, - "value": "createCacheFileName", - "optional": false + "value": "createCacheFileName" }, "function": { "params": [ @@ -3805,9 +3695,7 @@ "start": 2774, "end": 2784 }, - "ctxt": 0, - "value": "createHash", - "optional": false + "value": "createHash" } }, "arguments": [ @@ -3832,9 +3720,7 @@ "start": 2792, "end": 2798 }, - "ctxt": 0, - "value": "update", - "optional": false + "value": "update" } }, "arguments": [ @@ -3860,9 +3746,7 @@ "start": 2802, "end": 2808 }, - "ctxt": 0, - "value": "digest", - "optional": false + "value": "digest" } }, "arguments": [ @@ -3920,9 +3804,7 @@ "start": 2846, "end": 2850 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -3953,9 +3835,7 @@ "start": 2856, "end": 2860 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "property": { @@ -3964,9 +3844,7 @@ "start": 2861, "end": 2868 }, - "ctxt": 0, - "value": "baseDir", - "optional": false + "value": "baseDir" } } }, @@ -4030,9 +3908,7 @@ "start": 2923, "end": 2933 }, - "ctxt": 0, - "value": "deleteDir_", - "optional": false + "value": "deleteDir_" }, "function": { "params": [ @@ -4132,9 +4008,7 @@ "start": 2975, "end": 2982 }, - "ctxt": 0, - "value": "readdir", - "optional": false + "value": "readdir" } }, "arguments": [ @@ -4168,9 +4042,7 @@ "start": 3012, "end": 3025 }, - "ctxt": 0, - "value": "withFileTypes", - "optional": false + "value": "withFileTypes" }, "value": { "type": "BooleanLiteral", @@ -4233,9 +4105,7 @@ "start": 3090, "end": 3093 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -4270,9 +4140,7 @@ "start": 3096, "end": 3099 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -4368,9 +4236,7 @@ "start": 3142, "end": 3146 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -4411,9 +4277,7 @@ "start": 3152, "end": 3156 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -4465,9 +4329,7 @@ "start": 3192, "end": 3203 }, - "ctxt": 0, - "value": "isDirectory", - "optional": false + "value": "isDirectory" } }, "arguments": [], @@ -4499,9 +4361,7 @@ "start": 3213, "end": 3223 }, - "ctxt": 0, - "value": "deleteDir_", - "optional": false + "value": "deleteDir_" } }, "arguments": [ @@ -4550,9 +4410,7 @@ "start": 3231, "end": 3237 }, - "ctxt": 0, - "value": "unlink", - "optional": false + "value": "unlink" } }, "arguments": [ @@ -4633,9 +4491,7 @@ "start": 3295, "end": 3300 }, - "ctxt": 0, - "value": "rmdir", - "optional": false + "value": "rmdir" } }, "arguments": [ @@ -4713,9 +4569,7 @@ "start": 3350, "end": 3357 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -4868,9 +4722,7 @@ "start": 3479, "end": 3486 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -4976,9 +4828,7 @@ "start": 3535, "end": 3542 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -5116,9 +4966,7 @@ "start": 3653, "end": 3659 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -5179,9 +5027,7 @@ "start": 3689, "end": 3696 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -5354,9 +5200,7 @@ "start": 3815, "end": 3824 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -5395,9 +5239,7 @@ "start": 3831, "end": 3836 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" } }, "arguments": [ @@ -5473,9 +5315,7 @@ "start": 3867, "end": 3870 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -5542,9 +5382,7 @@ "start": 3879, "end": 3884 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" } }, "arguments": [ @@ -5634,9 +5472,7 @@ "start": 3921, "end": 3929 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -5684,9 +5520,7 @@ "start": 3942, "end": 3950 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -5812,9 +5646,7 @@ "start": 4070, "end": 4081 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -5963,9 +5795,7 @@ "start": 4141, "end": 4145 }, - "ctxt": 0, - "value": "tag_", - "optional": false + "value": "tag_" } }, "right": { @@ -6012,9 +5842,7 @@ "start": 4176, "end": 4184 }, - "ctxt": 0, - "value": "verbose_", - "optional": false + "value": "verbose_" } }, "right": { @@ -6061,9 +5889,7 @@ "start": 4215, "end": 4222 }, - "ctxt": 0, - "value": "prefix_", - "optional": false + "value": "prefix_" } }, "right": { @@ -6108,9 +5934,7 @@ "start": 4234, "end": 4242 }, - "ctxt": 0, - "value": "inverse_", - "optional": false + "value": "inverse_" } }, "arguments": [ @@ -6174,9 +5998,7 @@ "start": 4277, "end": 4284 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "right": { @@ -6208,9 +6030,7 @@ "start": 4323, "end": 4328 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" }, "function": { "params": [ @@ -6311,9 +6131,7 @@ "start": 4370, "end": 4378 }, - "ctxt": 0, - "value": "verbose_", - "optional": false + "value": "verbose_" } } }, @@ -6369,9 +6187,7 @@ "start": 4460, "end": 4464 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "arguments": [ @@ -6402,9 +6218,7 @@ "start": 4470, "end": 4477 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -6413,9 +6227,7 @@ "start": 4478, "end": 4481 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } }, @@ -6447,9 +6259,7 @@ "start": 4488, "end": 4492 }, - "ctxt": 0, - "value": "dim_", - "optional": false + "value": "dim_" } }, "arguments": [ @@ -6513,9 +6323,7 @@ "start": 4534, "end": 4537 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "function": { "params": [ @@ -6616,9 +6424,7 @@ "start": 4574, "end": 4578 }, - "ctxt": 0, - "value": "info", - "optional": false + "value": "info" } }, "arguments": [ @@ -6681,9 +6487,7 @@ "start": 4622, "end": 4626 }, - "ctxt": 0, - "value": "info", - "optional": false + "value": "info" }, "function": { "params": [ @@ -6784,9 +6588,7 @@ "start": 4663, "end": 4667 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "arguments": [ @@ -6817,9 +6619,7 @@ "start": 4673, "end": 4680 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -6828,9 +6628,7 @@ "start": 4681, "end": 4684 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } }, @@ -6893,9 +6691,7 @@ "start": 4729, "end": 4736 }, - "ctxt": 0, - "value": "success", - "optional": false + "value": "success" }, "function": { "params": [ @@ -6996,9 +6792,7 @@ "start": 4773, "end": 4777 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "arguments": [ @@ -7029,9 +6823,7 @@ "start": 4783, "end": 4790 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -7040,9 +6832,7 @@ "start": 4791, "end": 4794 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } }, @@ -7074,9 +6864,7 @@ "start": 4801, "end": 4807 }, - "ctxt": 0, - "value": "green_", - "optional": false + "value": "green_" } }, "arguments": [ @@ -7157,9 +6945,7 @@ "start": 4862, "end": 4866 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" }, "function": { "params": [ @@ -7260,9 +7046,7 @@ "start": 4903, "end": 4907 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "arguments": [ @@ -7293,9 +7077,7 @@ "start": 4913, "end": 4920 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -7304,9 +7086,7 @@ "start": 4921, "end": 4925 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } } }, @@ -7338,9 +7118,7 @@ "start": 4932, "end": 4939 }, - "ctxt": 0, - "value": "yellow_", - "optional": false + "value": "yellow_" } }, "arguments": [ @@ -7421,9 +7199,7 @@ "start": 4994, "end": 4999 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" }, "function": { "params": [ @@ -7530,9 +7306,7 @@ "start": 5036, "end": 5043 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -7541,9 +7315,7 @@ "start": 5044, "end": 5047 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -7595,9 +7367,7 @@ "start": 5080, "end": 5084 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "arguments": [ @@ -7628,9 +7398,7 @@ "start": 5090, "end": 5097 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -7639,9 +7407,7 @@ "start": 5098, "end": 5103 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } } }, @@ -7673,9 +7439,7 @@ "start": 5110, "end": 5114 }, - "ctxt": 0, - "value": "red_", - "optional": false + "value": "red_" } }, "arguments": [ @@ -7768,9 +7532,7 @@ "start": 5159, "end": 5166 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } }, "property": { @@ -7779,9 +7541,7 @@ "start": 5167, "end": 5170 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "arguments": [ @@ -7827,9 +7587,7 @@ "start": 5211, "end": 5218 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" }, "function": { "params": [ @@ -7914,9 +7672,7 @@ "start": 5256, "end": 5264 }, - "ctxt": 0, - "value": "verbose_", - "optional": false + "value": "verbose_" } }, "right": { @@ -7973,9 +7729,7 @@ "start": 5305, "end": 5308 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" }, "function": { "params": [ @@ -8038,9 +7792,7 @@ "start": 5343, "end": 5347 }, - "ctxt": 0, - "value": "tag_", - "optional": false + "value": "tag_" } }, "consequent": { @@ -8108,9 +7860,7 @@ "start": 5384, "end": 5388 }, - "ctxt": 0, - "value": "tag_", - "optional": false + "value": "tag_" } }, "right": { @@ -8198,9 +7948,7 @@ "start": 5464, "end": 5472 }, - "ctxt": 0, - "value": "verbose_", - "optional": false + "value": "verbose_" } } }, @@ -8225,9 +7973,7 @@ "start": 5479, "end": 5486 }, - "ctxt": 0, - "value": "output_", - "optional": false + "value": "output_" } } } @@ -8261,9 +8007,7 @@ "start": 5522, "end": 5526 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" }, "function": { "params": [ @@ -8364,9 +8108,7 @@ "start": 5567, "end": 5574 }, - "ctxt": 0, - "value": "prefix_", - "optional": false + "value": "prefix_" } }, "consequent": { @@ -8434,9 +8176,7 @@ "start": 5611, "end": 5618 }, - "ctxt": 0, - "value": "prefix_", - "optional": false + "value": "prefix_" } }, "right": { @@ -8560,9 +8300,7 @@ "start": 5713, "end": 5719 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ @@ -8667,9 +8405,7 @@ "start": 5838, "end": 5846 }, - "ctxt": 0, - "value": "inverse_", - "optional": false + "value": "inverse_" }, "function": { "params": [ @@ -8781,9 +8517,7 @@ "start": 5920, "end": 5924 }, - "ctxt": 0, - "value": "dim_", - "optional": false + "value": "dim_" }, "function": { "params": [ @@ -8895,9 +8629,7 @@ "start": 5998, "end": 6004 }, - "ctxt": 0, - "value": "green_", - "optional": false + "value": "green_" }, "function": { "params": [ @@ -9009,9 +8741,7 @@ "start": 6078, "end": 6085 }, - "ctxt": 0, - "value": "yellow_", - "optional": false + "value": "yellow_" }, "function": { "params": [ @@ -9123,9 +8853,7 @@ "start": 6159, "end": 6163 }, - "ctxt": 0, - "value": "red_", - "optional": false + "value": "red_" }, "function": { "params": [ @@ -9267,9 +8995,7 @@ "start": 6249, "end": 6256 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -9399,9 +9125,7 @@ "start": 6365, "end": 6370 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "NumericLiteral", @@ -9421,9 +9145,7 @@ "start": 6391, "end": 6400 }, - "ctxt": 0, - "value": "isExpired", - "optional": false + "value": "isExpired" }, "value": { "type": "ArrowFunctionExpression", @@ -9485,9 +9207,7 @@ "start": 6478, "end": 6482 }, - "ctxt": 0, - "value": "zero", - "optional": false + "value": "zero" }, "function": { "params": [], @@ -9548,9 +9268,7 @@ "start": 6557, "end": 6562 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" }, "function": { "params": [ @@ -9655,9 +9373,7 @@ "start": 6636, "end": 6640 }, - "ctxt": 0, - "value": "zero", - "optional": false + "value": "zero" } }, "arguments": [], @@ -9724,9 +9440,7 @@ "start": 6697, "end": 6702 }, - "ctxt": 0, - "value": "match", - "optional": false + "value": "match" } }, "arguments": [ @@ -9816,9 +9530,7 @@ "start": 6800, "end": 6804 }, - "ctxt": 0, - "value": "zero", - "optional": false + "value": "zero" } }, "arguments": [], @@ -9864,9 +9576,7 @@ "start": 6863, "end": 6869 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -9936,9 +9646,7 @@ "start": 6917, "end": 6923 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "function": { "params": [ @@ -10018,9 +9726,7 @@ "start": 6961, "end": 6970 }, - "ctxt": 0, - "value": "isInteger", - "optional": false + "value": "isInteger" } }, "arguments": [ @@ -10180,9 +9886,7 @@ "start": 7086, "end": 7089 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" } }, "arguments": [], @@ -10232,9 +9936,7 @@ "start": 7137, "end": 7147 }, - "ctxt": 0, - "value": "fromObject", - "optional": false + "value": "fromObject" }, "function": { "params": [ @@ -10372,9 +10074,7 @@ "start": 7234, "end": 7245 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -10456,9 +10156,7 @@ "start": 7279, "end": 7293 }, - "ctxt": 0, - "value": "timestampInMs_", - "optional": false + "value": "timestampInMs_" } }, "right": { @@ -10505,9 +10203,7 @@ "start": 7324, "end": 7329 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -10539,9 +10235,7 @@ "start": 7368, "end": 7377 }, - "ctxt": 0, - "value": "isExpired", - "optional": false + "value": "isExpired" }, "function": { "params": [ @@ -10598,9 +10292,7 @@ "start": 7387, "end": 7390 }, - "ctxt": 0, - "value": "now", - "optional": false + "value": "now" } }, "arguments": [], @@ -10676,9 +10368,7 @@ "start": 7431, "end": 7436 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" } }, "right": { @@ -10734,9 +10424,7 @@ "start": 7476, "end": 7490 }, - "ctxt": 0, - "value": "timestampInMs_", - "optional": false + "value": "timestampInMs_" } }, "right": { @@ -10788,9 +10476,7 @@ "start": 7533, "end": 7541 }, - "ctxt": 0, - "value": "toObject", - "optional": false + "value": "toObject" }, "function": { "params": [], @@ -10829,9 +10515,7 @@ "start": 7599, "end": 7612 }, - "ctxt": 0, - "value": "timestampInMs", - "optional": false + "value": "timestampInMs" }, "value": { "type": "MemberExpression", @@ -10852,9 +10536,7 @@ "start": 7619, "end": 7633 }, - "ctxt": 0, - "value": "timestampInMs_", - "optional": false + "value": "timestampInMs_" } } }, @@ -10866,9 +10548,7 @@ "start": 7659, "end": 7665 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" }, "value": { "type": "MemberExpression", @@ -10889,9 +10569,7 @@ "start": 7672, "end": 7678 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" } } } @@ -10954,9 +10632,7 @@ "start": 7747, "end": 7754 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -11358,9 +11034,7 @@ "start": 7996, "end": 7999 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -11455,9 +11129,7 @@ "start": 8080, "end": 8086 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" }, "value": { "type": "CallExpression", @@ -11488,9 +11160,7 @@ "start": 8096, "end": 8103 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -11525,9 +11195,7 @@ "start": 8106, "end": 8110 }, - "ctxt": 0, - "value": "zero", - "optional": false + "value": "zero" } }, "arguments": [], @@ -11577,9 +11245,7 @@ "start": 8159, "end": 8162 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -11672,9 +11338,7 @@ "start": 8221, "end": 8227 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" } } }, @@ -11724,9 +11388,7 @@ "start": 8252, "end": 8261 }, - "ctxt": 0, - "value": "isExpired", - "optional": false + "value": "isExpired" } }, "arguments": [], @@ -11796,9 +11458,7 @@ "start": 8305, "end": 8320 }, - "ctxt": 0, - "value": "responsePromise", - "optional": false + "value": "responsePromise" } } }, @@ -11841,9 +11501,7 @@ "start": 8351, "end": 8356 }, - "ctxt": 0, - "value": "clone", - "optional": false + "value": "clone" } }, "arguments": [], @@ -11903,9 +11561,7 @@ "start": 8405, "end": 8420 }, - "ctxt": 0, - "value": "responsePromise", - "optional": false + "value": "responsePromise" } }, "definite": false @@ -12029,9 +11685,7 @@ "start": 8499, "end": 8514 }, - "ctxt": 0, - "value": "responsePromise", - "optional": false + "value": "responsePromise" }, "value": { "type": "Identifier", @@ -12052,9 +11706,7 @@ "start": 8539, "end": 8545 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" }, "value": { "type": "CallExpression", @@ -12085,9 +11737,7 @@ "start": 8549, "end": 8553 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -12148,9 +11798,7 @@ "start": 8562, "end": 8567 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -12191,9 +11839,7 @@ "start": 8570, "end": 8577 }, - "ctxt": 0, - "value": "headers", - "optional": false + "value": "headers" } }, "property": { @@ -12202,9 +11848,7 @@ "start": 8578, "end": 8581 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -12277,9 +11921,7 @@ "start": 8639, "end": 8642 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -12455,9 +12097,7 @@ "start": 8744, "end": 8749 }, - "ctxt": 0, - "value": "clone", - "optional": false + "value": "clone" } }, "arguments": [], @@ -12506,9 +12146,7 @@ "start": 8793, "end": 8803 }, - "ctxt": 0, - "value": "clearCache", - "optional": false + "value": "clearCache" } }, "right": { @@ -12548,9 +12186,7 @@ "start": 8814, "end": 8819 }, - "ctxt": 0, - "value": "clear", - "optional": false + "value": "clear" } }, "arguments": [], @@ -12598,9 +12234,7 @@ "start": 8850, "end": 8861 }, - "ctxt": 0, - "value": "setDelegate", - "optional": false + "value": "setDelegate" } }, "right": { @@ -12694,9 +12328,7 @@ "start": 8890, "end": 8897 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -12827,9 +12459,7 @@ "start": 9017, "end": 9031 }, - "ctxt": 0, - "value": "DomTransformer", - "optional": false + "value": "DomTransformer" }, "value": { "type": "Identifier", @@ -12851,9 +12481,7 @@ "start": 9052, "end": 9077 }, - "ctxt": 0, - "value": "TRANSFORMATIONS_AMP_FIRST", - "optional": false + "value": "TRANSFORMATIONS_AMP_FIRST" }, "value": { "type": "Identifier", @@ -12875,9 +12503,7 @@ "start": 9098, "end": 9124 }, - "ctxt": 0, - "value": "TRANSFORMATIONS_PAIRED_AMP", - "optional": false + "value": "TRANSFORMATIONS_PAIRED_AMP" }, "value": { "type": "Identifier", @@ -12899,9 +12525,7 @@ "start": 9145, "end": 9159 }, - "ctxt": 0, - "value": "DEFAULT_CONFIG", - "optional": false + "value": "DEFAULT_CONFIG" }, "value": { "type": "Identifier", @@ -13055,9 +12679,7 @@ "start": 9233, "end": 9240 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -13075,9 +12697,7 @@ "start": 9261, "end": 9267 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" }, "value": { "type": "ArrowFunctionExpression", @@ -13164,9 +12784,7 @@ "start": 9306, "end": 9331 }, - "ctxt": 0, - "value": "TRANSFORMATIONS_AMP_FIRST", - "optional": false + "value": "TRANSFORMATIONS_AMP_FIRST" }, "value": { "type": "Identifier", @@ -13187,9 +12805,7 @@ "start": 9352, "end": 9378 }, - "ctxt": 0, - "value": "TRANSFORMATIONS_PAIRED_AMP", - "optional": false + "value": "TRANSFORMATIONS_PAIRED_AMP" }, "value": { "type": "Identifier", @@ -13210,9 +12826,7 @@ "start": 9399, "end": 9413 }, - "ctxt": 0, - "value": "DEFAULT_CONFIG", - "optional": false + "value": "DEFAULT_CONFIG" }, "value": { "type": "Identifier", @@ -13233,9 +12847,7 @@ "start": 9434, "end": 9443 }, - "ctxt": 0, - "value": "NodeUtils", - "optional": false + "value": "NodeUtils" }, "value": { "type": "Identifier", @@ -13368,9 +12980,7 @@ "start": 9564, "end": 9576 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -13460,9 +13070,7 @@ "start": 9619, "end": 9626 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -13480,9 +13088,7 @@ "start": 9647, "end": 9655 }, - "ctxt": 0, - "value": "AMP_TAGS", - "optional": false + "value": "AMP_TAGS" }, "value": { "type": "ArrayExpression", @@ -13574,9 +13180,7 @@ "start": 9737, "end": 9751 }, - "ctxt": 0, - "value": "AMP_CACHE_HOST", - "optional": false + "value": "AMP_CACHE_HOST" }, "value": { "type": "StringLiteral", @@ -13596,9 +13200,7 @@ "start": 9799, "end": 9823 }, - "ctxt": 0, - "value": "AMP_VALIDATION_RULES_URL", - "optional": false + "value": "AMP_VALIDATION_RULES_URL" }, "value": { "type": "StringLiteral", @@ -13618,9 +13220,7 @@ "start": 9889, "end": 9900 }, - "ctxt": 0, - "value": "AMP_FORMATS", - "optional": false + "value": "AMP_FORMATS" }, "value": { "type": "ArrayExpression", @@ -13676,9 +13276,7 @@ "start": 9951, "end": 9971 }, - "ctxt": 0, - "value": "AMP_RUNTIME_CSS_PATH", - "optional": false + "value": "AMP_RUNTIME_CSS_PATH" }, "value": { "type": "StringLiteral", @@ -13698,9 +13296,7 @@ "start": 10000, "end": 10020 }, - "ctxt": 0, - "value": "appendRuntimeVersion", - "optional": false + "value": "appendRuntimeVersion" }, "value": { "type": "ArrowFunctionExpression", @@ -13792,9 +13388,7 @@ "start": 10065, "end": 10075 }, - "ctxt": 0, - "value": "isTemplate", - "optional": false + "value": "isTemplate" }, "value": { "type": "ArrowFunctionExpression", @@ -13859,9 +13453,7 @@ "start": 10110, "end": 10117 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -13950,9 +13542,7 @@ "start": 10220, "end": 10227 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -14047,9 +13637,7 @@ "start": 10266, "end": 10273 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -14058,9 +13646,7 @@ "start": 10274, "end": 10282 }, - "ctxt": 0, - "value": "template", - "optional": false + "value": "template" } }, "right": { @@ -14132,9 +13718,7 @@ "start": 10431, "end": 10441 }, - "ctxt": 0, - "value": "isAmpStory", - "optional": false + "value": "isAmpStory" }, "value": { "type": "ArrowFunctionExpression", @@ -14225,9 +13809,7 @@ "start": 10488, "end": 10496 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "body": { @@ -14320,9 +13902,7 @@ "start": 10554, "end": 10561 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -14493,9 +14073,7 @@ "start": 10820, "end": 10827 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -14570,9 +14148,7 @@ "start": 10918, "end": 10925 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -14672,9 +14248,7 @@ "start": 11008, "end": 11015 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -14722,9 +14296,7 @@ "start": 11039, "end": 11046 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -14801,9 +14373,7 @@ "start": 11096, "end": 11106 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -17455,9 +17025,7 @@ "start": 13735, "end": 13740 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" }, "value": { "type": "Identifier", @@ -17478,9 +17046,7 @@ "start": 13761, "end": 13764 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "value": { "type": "Identifier", @@ -17501,9 +17067,7 @@ "start": 13785, "end": 13800 }, - "ctxt": 0, - "value": "transformations", - "optional": false + "value": "transformations" }, "value": { "type": "Identifier", @@ -17524,9 +17088,7 @@ "start": 13821, "end": 13828 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" }, "value": { "type": "BooleanLiteral", @@ -17576,9 +17138,7 @@ "start": 13902, "end": 13913 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -17658,9 +17218,7 @@ "start": 13948, "end": 13957 }, - "ctxt": 0, - "value": "setConfig", - "optional": false + "value": "setConfig" } }, "arguments": [ @@ -17698,9 +17256,7 @@ "start": 14001, "end": 14014 }, - "ctxt": 0, - "value": "transformHtml", - "optional": false + "value": "transformHtml" }, "function": { "params": [ @@ -17819,9 +17375,7 @@ "start": 14061, "end": 14066 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -17884,9 +17438,7 @@ "start": 14102, "end": 14115 }, - "ctxt": 0, - "value": "transformTree", - "optional": false + "value": "transformTree" } }, "arguments": [ @@ -17956,9 +17508,7 @@ "start": 14152, "end": 14161 }, - "ctxt": 0, - "value": "serialize", - "optional": false + "value": "serialize" } }, "arguments": [ @@ -18005,9 +17555,7 @@ "start": 14205, "end": 14218 }, - "ctxt": 0, - "value": "transformTree", - "optional": false + "value": "transformTree" }, "function": { "params": [ @@ -18114,9 +17662,7 @@ "start": 14254, "end": 14261 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } }, "arguments": [ @@ -18151,9 +17697,7 @@ "start": 14264, "end": 14271 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } }, "right": { @@ -18242,9 +17786,7 @@ "start": 14326, "end": 14332 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } } }, @@ -18394,9 +17936,7 @@ "start": 14459, "end": 14468 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" } }, "arguments": [ @@ -18479,9 +18019,7 @@ "start": 14530, "end": 14543 }, - "ctxt": 0, - "value": "transformers_", - "optional": false + "value": "transformers_" } }, "property": { @@ -18490,9 +18028,7 @@ "start": 14544, "end": 14550 }, - "ctxt": 0, - "value": "reduce", - "optional": false + "value": "reduce" } }, "arguments": [ @@ -18540,9 +18076,7 @@ "start": 14569, "end": 14576 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [], @@ -18579,9 +18113,7 @@ "start": 14614, "end": 14623 }, - "ctxt": 0, - "value": "setConfig", - "optional": false + "value": "setConfig" }, "function": { "params": [ @@ -18651,9 +18183,7 @@ "start": 14654, "end": 14660 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "right": { @@ -18685,9 +18215,7 @@ "start": 14670, "end": 14676 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -18771,9 +18299,7 @@ "start": 14718, "end": 14724 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "property": { @@ -18782,9 +18308,7 @@ "start": 14725, "end": 14739 }, - "ctxt": 0, - "value": "runtimeVersion", - "optional": false + "value": "runtimeVersion" } } }, @@ -18834,9 +18358,7 @@ "start": 14772, "end": 14778 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "property": { @@ -18845,9 +18367,7 @@ "start": 14779, "end": 14793 }, - "ctxt": 0, - "value": "runtimeVersion", - "optional": false + "value": "runtimeVersion" } }, "right": { @@ -18895,9 +18415,7 @@ "start": 14807, "end": 14813 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "property": { @@ -18906,9 +18424,7 @@ "start": 14814, "end": 14819 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } } } @@ -18956,9 +18472,7 @@ "start": 14865, "end": 14872 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } }, "arguments": [ @@ -18989,9 +18503,7 @@ "start": 14878, "end": 14884 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "property": { @@ -19000,9 +18512,7 @@ "start": 14885, "end": 14892 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } } } @@ -19042,9 +18552,7 @@ "start": 14920, "end": 14937 }, - "ctxt": 0, - "value": "initTransformers_", - "optional": false + "value": "initTransformers_" } }, "arguments": [ @@ -19069,9 +18577,7 @@ "start": 14943, "end": 14949 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } } } @@ -19105,9 +18611,7 @@ "start": 14985, "end": 15002 }, - "ctxt": 0, - "value": "initTransformers_", - "optional": false + "value": "initTransformers_" }, "function": { "params": [ @@ -19177,9 +18681,7 @@ "start": 15033, "end": 15046 }, - "ctxt": 0, - "value": "transformers_", - "optional": false + "value": "transformers_" } }, "right": { @@ -19217,9 +18719,7 @@ "start": 15051, "end": 15066 }, - "ctxt": 0, - "value": "transformations", - "optional": false + "value": "transformations" } }, "property": { @@ -19228,9 +18728,7 @@ "start": 15067, "end": 15070 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -19494,9 +18992,7 @@ "start": 15320, "end": 15327 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -19514,9 +19010,7 @@ "start": 15348, "end": 15362 }, - "ctxt": 0, - "value": "DomTransformer", - "optional": false + "value": "DomTransformer" }, "value": { "type": "Identifier", @@ -19537,9 +19031,7 @@ "start": 15396, "end": 15410 }, - "ctxt": 0, - "value": "DEFAULT_CONFIG", - "optional": false + "value": "DEFAULT_CONFIG" }, "value": { "type": "Identifier", @@ -19560,9 +19052,7 @@ "start": 15431, "end": 15456 }, - "ctxt": 0, - "value": "TRANSFORMATIONS_AMP_FIRST", - "optional": false + "value": "TRANSFORMATIONS_AMP_FIRST" }, "value": { "type": "Identifier", @@ -19583,9 +19073,7 @@ "start": 15477, "end": 15503 }, - "ctxt": 0, - "value": "TRANSFORMATIONS_PAIRED_AMP", - "optional": false + "value": "TRANSFORMATIONS_PAIRED_AMP" }, "value": { "type": "Identifier", @@ -19700,9 +19188,7 @@ "start": 15594, "end": 15601 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -19720,9 +19206,7 @@ "start": 15622, "end": 15647 }, - "ctxt": 0, - "value": "isRenderDelayingExtension", - "optional": false + "value": "isRenderDelayingExtension" }, "value": { "type": "FunctionExpression", @@ -19797,9 +19281,7 @@ "start": 15690, "end": 15697 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -19894,9 +19376,7 @@ "start": 15805, "end": 15812 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -20040,9 +19520,7 @@ "start": 15973, "end": 15988 }, - "ctxt": 0, - "value": "isCustomElement", - "optional": false + "value": "isCustomElement" }, "value": { "type": "FunctionExpression", @@ -20117,9 +19595,7 @@ "start": 16034, "end": 16041 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -20157,9 +19633,7 @@ "start": 16047, "end": 16054 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "property": { @@ -20168,9 +19642,7 @@ "start": 16055, "end": 16065 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -20369,9 +19841,7 @@ "start": 16238, "end": 16248 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -20443,9 +19913,7 @@ "start": 16268, "end": 16279 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } }, @@ -20499,9 +19967,7 @@ "start": 16309, "end": 16316 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -20549,9 +20015,7 @@ "start": 16333, "end": 16340 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -20560,9 +20024,7 @@ "start": 16341, "end": 16345 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -20705,9 +20167,7 @@ "start": 16548, "end": 16559 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } }, "consequent": { @@ -20746,9 +20206,7 @@ "start": 16592, "end": 16603 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } } @@ -20804,9 +20262,7 @@ "start": 16667, "end": 16673 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -20856,9 +20312,7 @@ "start": 16703, "end": 16710 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -20876,9 +20330,7 @@ "start": 16731, "end": 16747 }, - "ctxt": 0, - "value": "findMetaViewport", - "optional": false + "value": "findMetaViewport" }, "value": { "type": "Identifier", @@ -20899,9 +20351,7 @@ "start": 16783, "end": 16802 }, - "ctxt": 0, - "value": "skipNodeAndChildren", - "optional": false + "value": "skipNodeAndChildren" }, "value": { "type": "Identifier", @@ -21034,9 +20484,7 @@ "start": 16940, "end": 16947 }, - "ctxt": 0, - "value": "Element", - "optional": false + "value": "Element" }, "value": { "type": "Identifier", @@ -21058,9 +20506,7 @@ "start": 16968, "end": 16976 }, - "ctxt": 0, - "value": "DataNode", - "optional": false + "value": "DataNode" }, "value": { "type": "Identifier", @@ -21146,9 +20592,7 @@ "start": 17041, "end": 17054 }, - "ctxt": 0, - "value": "removeElement", - "optional": false + "value": "removeElement" }, "value": { "type": "Identifier", @@ -21170,9 +20614,7 @@ "start": 17075, "end": 17081 }, - "ctxt": 0, - "value": "append", - "optional": false + "value": "append" }, "value": { "type": "Identifier", @@ -21194,9 +20636,7 @@ "start": 17102, "end": 17109 }, - "ctxt": 0, - "value": "prepend", - "optional": false + "value": "prepend" }, "value": { "type": "Identifier", @@ -21365,9 +20805,7 @@ "start": 17210, "end": 17220 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -21533,9 +20971,7 @@ "start": 17381, "end": 17392 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } }, "definite": false @@ -21633,9 +21069,7 @@ "start": 17504, "end": 17510 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -21948,9 +21382,7 @@ "start": 17789, "end": 17795 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -22013,9 +21445,7 @@ "start": 17823, "end": 17831 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -22024,9 +21454,7 @@ "start": 17832, "end": 17836 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -22119,9 +21547,7 @@ "start": 17881, "end": 17889 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -22165,9 +21591,7 @@ "start": 17892, "end": 17900 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -22176,9 +21600,7 @@ "start": 17901, "end": 17907 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -22232,9 +21654,7 @@ "start": 17936, "end": 17940 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -22284,9 +21704,7 @@ "start": 17968, "end": 17972 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -22336,9 +21754,7 @@ "start": 18000, "end": 18004 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -23092,9 +22508,7 @@ "start": 18605, "end": 18611 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -23392,9 +22806,7 @@ "start": 18784, "end": 18792 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -23466,9 +22878,7 @@ "start": 18871, "end": 18879 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -23477,9 +22887,7 @@ "start": 18880, "end": 18884 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "arguments": [ @@ -23540,9 +22948,7 @@ "start": 18893, "end": 18900 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -23574,9 +22980,7 @@ "start": 18906, "end": 18913 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -23732,9 +23136,7 @@ "start": 19011, "end": 19018 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -23800,9 +23202,7 @@ "start": 19064, "end": 19071 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -24512,9 +23912,7 @@ "start": 19558, "end": 19565 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -24532,9 +23930,7 @@ "start": 19586, "end": 19597 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -24555,9 +23951,7 @@ "start": 19628, "end": 19637 }, - "ctxt": 0, - "value": "appendAll", - "optional": false + "value": "appendAll" }, "value": { "type": "Identifier", @@ -24578,9 +23972,7 @@ "start": 19666, "end": 19677 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -24601,9 +23993,7 @@ "start": 19708, "end": 19716 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -24624,9 +24014,7 @@ "start": 19744, "end": 19750 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "value": { "type": "Identifier", @@ -24647,9 +24035,7 @@ "start": 19776, "end": 19789 }, - "ctxt": 0, - "value": "createDocType", - "optional": false + "value": "createDocType" }, "value": { "type": "Identifier", @@ -24670,9 +24056,7 @@ "start": 19822, "end": 19835 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -24693,9 +24077,7 @@ "start": 19868, "end": 19878 }, - "ctxt": 0, - "value": "insertText", - "optional": false + "value": "insertText" }, "value": { "type": "Identifier", @@ -24716,9 +24098,7 @@ "start": 19908, "end": 19920 }, - "ctxt": 0, - "value": "insertBefore", - "optional": false + "value": "insertBefore" }, "value": { "type": "Identifier", @@ -24739,9 +24119,7 @@ "start": 19952, "end": 19964 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -24762,9 +24140,7 @@ "start": 19996, "end": 20011 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -24785,9 +24161,7 @@ "start": 20046, "end": 20050 }, - "ctxt": 0, - "value": "move", - "optional": false + "value": "move" }, "value": { "type": "Identifier", @@ -25969,9 +25343,7 @@ "start": 20947, "end": 20952 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } } @@ -26377,9 +25749,7 @@ "start": 21534, "end": 21539 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } } @@ -26678,9 +26048,7 @@ "start": 22091, "end": 22098 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -26828,9 +26196,7 @@ "start": 22192, "end": 22197 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } }, @@ -26890,9 +26256,7 @@ "start": 22271, "end": 22277 }, - "ctxt": 0, - "value": "isAuto", - "optional": false + "value": "isAuto" } }, "consequent": { @@ -27000,9 +26364,7 @@ "start": 22372, "end": 22379 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -27027,9 +26389,7 @@ "start": 22384, "end": 22388 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } } ], @@ -27237,9 +26597,7 @@ "start": 22541, "end": 22552 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -27289,9 +26647,7 @@ "start": 22578, "end": 22585 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -27609,9 +26965,7 @@ "start": 22841, "end": 22846 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } }, @@ -27644,9 +26998,7 @@ "start": 22853, "end": 22858 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } } @@ -27714,9 +27066,7 @@ "start": 22941, "end": 22946 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } }, "right": { @@ -27761,9 +27111,7 @@ "start": 22954, "end": 22959 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } }, @@ -27789,9 +27137,7 @@ "start": 22965, "end": 22971 }, - "ctxt": 0, - "value": "isAuto", - "optional": false + "value": "isAuto" } } } @@ -27867,9 +27213,7 @@ "start": 23058, "end": 23063 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } }, "right": { @@ -27894,9 +27238,7 @@ "start": 23069, "end": 23074 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } }, @@ -28145,9 +27487,7 @@ "start": 23300, "end": 23307 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" }, "value": { "type": "BooleanLiteral", @@ -28166,9 +27506,7 @@ "start": 23336, "end": 23341 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" }, "value": { "type": "BooleanLiteral", @@ -28187,9 +27525,7 @@ "start": 23370, "end": 23376 }, - "ctxt": 0, - "value": "isAuto", - "optional": false + "value": "isAuto" }, "value": { "type": "BooleanLiteral", @@ -28208,9 +27544,7 @@ "start": 23405, "end": 23412 }, - "ctxt": 0, - "value": "isFluid", - "optional": false + "value": "isFluid" }, "value": { "type": "BooleanLiteral", @@ -28229,9 +27563,7 @@ "start": 23441, "end": 23448 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" }, "value": { "type": "MemberExpression", @@ -28255,9 +27587,7 @@ "start": 23457, "end": 23460 }, - "ctxt": 0, - "value": "NaN", - "optional": false + "value": "NaN" } } }, @@ -28269,9 +27599,7 @@ "start": 23482, "end": 23486 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" }, "value": { "type": "StringLiteral", @@ -28363,9 +27691,7 @@ "start": 23568, "end": 23575 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } }, "right": { @@ -28434,9 +27760,7 @@ "start": 23649, "end": 23654 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } }, "right": { @@ -28525,9 +27849,7 @@ "start": 23721, "end": 23727 }, - "ctxt": 0, - "value": "isAuto", - "optional": false + "value": "isAuto" } }, "right": { @@ -28575,9 +27897,7 @@ "start": 23758, "end": 23765 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } }, "right": { @@ -28689,9 +28009,7 @@ "start": 23877, "end": 23884 }, - "ctxt": 0, - "value": "isFluid", - "optional": false + "value": "isFluid" } }, "right": { @@ -28739,9 +28057,7 @@ "start": 23915, "end": 23922 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } }, "right": { @@ -28873,9 +28189,7 @@ "start": 24052, "end": 24056 }, - "ctxt": 0, - "value": "exec", - "optional": false + "value": "exec" } }, "arguments": [ @@ -28987,9 +28301,7 @@ "start": 24152, "end": 24159 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, "right": { @@ -29021,9 +28333,7 @@ "start": 24169, "end": 24179 }, - "ctxt": 0, - "value": "parseFloat", - "optional": false + "value": "parseFloat" } }, "arguments": [ @@ -29203,9 +28513,7 @@ "start": 24267, "end": 24271 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } }, "right": { @@ -29254,9 +28562,7 @@ "start": 24302, "end": 24309 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } }, "right": { @@ -29332,9 +28638,7 @@ "start": 24387, "end": 24394 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -29415,9 +28719,7 @@ "start": 24428, "end": 24435 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } }, "right": { @@ -29465,9 +28767,7 @@ "start": 24466, "end": 24470 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } }, "right": { @@ -29596,9 +28896,7 @@ "start": 24667, "end": 24674 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -29616,9 +28914,7 @@ "start": 24695, "end": 24706 }, - "ctxt": 0, - "value": "parseLayout", - "optional": false + "value": "parseLayout" }, "value": { "type": "Identifier", @@ -29639,9 +28935,7 @@ "start": 24737, "end": 24746 }, - "ctxt": 0, - "value": "cssLength", - "optional": false + "value": "cssLength" }, "value": { "type": "Identifier", @@ -29662,9 +28956,7 @@ "start": 24775, "end": 24789 }, - "ctxt": 0, - "value": "getLayoutClass", - "optional": false + "value": "getLayoutClass" }, "value": { "type": "Identifier", @@ -29685,9 +28977,7 @@ "start": 24823, "end": 24838 }, - "ctxt": 0, - "value": "calculateHeight", - "optional": false + "value": "calculateHeight" }, "value": { "type": "Identifier", @@ -29708,9 +28998,7 @@ "start": 24873, "end": 24887 }, - "ctxt": 0, - "value": "calculateWidth", - "optional": false + "value": "calculateWidth" }, "value": { "type": "Identifier", @@ -29731,9 +29019,7 @@ "start": 24921, "end": 24940 }, - "ctxt": 0, - "value": "isLayoutSizeDefined", - "optional": false + "value": "isLayoutSizeDefined" }, "value": { "type": "Identifier", @@ -29754,9 +29040,7 @@ "start": 24979, "end": 24996 }, - "ctxt": 0, - "value": "getCssLengthStyle", - "optional": false + "value": "getCssLengthStyle" }, "value": { "type": "Identifier", @@ -29777,9 +29061,7 @@ "start": 25033, "end": 25048 }, - "ctxt": 0, - "value": "calculateLayout", - "optional": false + "value": "calculateLayout" }, "value": { "type": "Identifier", @@ -29800,9 +29082,7 @@ "start": 25083, "end": 25108 }, - "ctxt": 0, - "value": "getLayoutSizeDefinedClass", - "optional": false + "value": "getLayoutSizeDefinedClass" }, "value": { "type": "Identifier", @@ -29976,9 +29256,7 @@ "start": 25246, "end": 25249 }, - "ctxt": 0, - "value": "URL", - "optional": false + "value": "URL" } }, "definite": false @@ -30016,9 +29294,7 @@ "start": 25287, "end": 25291 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" }, "value": { "type": "Identifier", @@ -30040,9 +29316,7 @@ "start": 25312, "end": 25319 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" }, "value": { "type": "Identifier", @@ -30170,9 +29444,7 @@ "start": 25442, "end": 25453 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -30300,9 +29572,7 @@ "start": 25544, "end": 25558 }, - "ctxt": 0, - "value": "implementation", - "optional": false + "value": "implementation" } }, "right": { @@ -30359,9 +29629,7 @@ "start": 25621, "end": 25635 }, - "ctxt": 0, - "value": "implementation", - "optional": false + "value": "implementation" } }, "right": { @@ -30390,9 +29658,7 @@ "start": 25643, "end": 25663 }, - "ctxt": 0, - "value": "createStaticResolver", - "optional": false + "value": "createStaticResolver" } }, "arguments": [ @@ -30434,9 +29700,7 @@ "start": 25723, "end": 25730 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" }, "function": { "params": [ @@ -30525,9 +29789,7 @@ "start": 25771, "end": 25785 }, - "ctxt": 0, - "value": "implementation", - "optional": false + "value": "implementation" } }, "arguments": [ @@ -30587,9 +29849,7 @@ "start": 25826, "end": 25846 }, - "ctxt": 0, - "value": "createStaticResolver", - "optional": false + "value": "createStaticResolver" }, "function": { "params": [ @@ -30930,9 +30190,7 @@ "start": 26168, "end": 26176 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -31008,9 +30266,7 @@ "start": 26264, "end": 26272 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [], @@ -31147,9 +30403,7 @@ "start": 26385, "end": 26393 }, - "ctxt": 0, - "value": "pathname", - "optional": false + "value": "pathname" } }, "property": { @@ -31158,9 +30412,7 @@ "start": 26394, "end": 26403 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -31323,9 +30575,7 @@ "start": 26518, "end": 26525 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -31456,9 +30706,7 @@ "start": 26643, "end": 26657 }, - "ctxt": 0, - "value": "AMP_CACHE_HOST", - "optional": false + "value": "AMP_CACHE_HOST" }, "value": { "type": "Identifier", @@ -31480,9 +30728,7 @@ "start": 26678, "end": 26698 }, - "ctxt": 0, - "value": "appendRuntimeVersion", - "optional": false + "value": "appendRuntimeVersion" }, "value": { "type": "Identifier", @@ -31573,9 +30819,7 @@ "start": 26781, "end": 26793 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" }, "value": { "type": "AssignmentPattern", @@ -31614,9 +30858,7 @@ "start": 26818, "end": 26835 }, - "ctxt": 0, - "value": "ampRuntimeVersion", - "optional": false + "value": "ampRuntimeVersion" }, "value": { "type": "Identifier", @@ -31638,9 +30880,7 @@ "start": 26856, "end": 26859 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "AssignmentPattern", @@ -31677,9 +30917,7 @@ "start": 26888, "end": 26891 }, - "ctxt": 0, - "value": "rtv", - "optional": false + "value": "rtv" }, "value": { "type": "AssignmentPattern", @@ -31867,9 +31105,7 @@ "start": 27087, "end": 27094 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -32142,9 +31378,7 @@ "start": 27304, "end": 27311 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -32162,9 +31396,7 @@ "start": 27332, "end": 27345 }, - "ctxt": 0, - "value": "calculateHost", - "optional": false + "value": "calculateHost" }, "value": { "type": "Identifier", @@ -32297,9 +31529,7 @@ "start": 27477, "end": 27483 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" }, "value": { "type": "Identifier", @@ -32385,9 +31615,7 @@ "start": 27546, "end": 27556 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" }, "value": { "type": "Identifier", @@ -32409,9 +31637,7 @@ "start": 27577, "end": 27593 }, - "ctxt": 0, - "value": "NodeWithChildren", - "optional": false + "value": "NodeWithChildren" }, "value": { "type": "Identifier", @@ -32497,9 +31723,7 @@ "start": 27658, "end": 27667 }, - "ctxt": 0, - "value": "appendAll", - "optional": false + "value": "appendAll" }, "value": { "type": "Identifier", @@ -32683,9 +31907,7 @@ "start": 27778, "end": 27792 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" }, "value": { "type": "BooleanLiteral", @@ -32735,9 +31957,7 @@ "start": 27862, "end": 27873 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -32800,9 +32020,7 @@ "start": 27904, "end": 27911 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "right": { @@ -32834,9 +32052,7 @@ "start": 27950, "end": 27955 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" }, "function": { "params": [ @@ -33315,9 +32531,7 @@ "start": 28379, "end": 28386 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } } } @@ -33407,9 +32621,7 @@ "start": 28437, "end": 28444 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } } } @@ -33455,9 +32667,7 @@ "start": 28473, "end": 28478 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" } }, "arguments": [ @@ -33492,9 +32702,7 @@ "start": 28481, "end": 28485 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -33540,9 +32748,7 @@ "start": 28516, "end": 28519 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "arguments": [], @@ -33588,9 +32794,7 @@ "start": 28580, "end": 28589 }, - "ctxt": 0, - "value": "serialize", - "optional": false + "value": "serialize" }, "function": { "params": [ @@ -33736,9 +32940,7 @@ "start": 28677, "end": 28684 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -33818,9 +33020,7 @@ "start": 28720, "end": 28727 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "property": { @@ -33829,9 +33029,7 @@ "start": 28728, "end": 28738 }, - "ctxt": 0, - "value": "TreeParser", - "optional": false + "value": "TreeParser" } }, "right": { @@ -34055,9 +33253,7 @@ "start": 28939, "end": 28947 }, - "ctxt": 0, - "value": "protocol", - "optional": false + "value": "protocol" } }, "property": { @@ -34066,9 +33262,7 @@ "start": 28948, "end": 28958 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -34181,9 +33375,7 @@ "start": 29077, "end": 29084 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -34201,9 +33393,7 @@ "start": 29105, "end": 29123 }, - "ctxt": 0, - "value": "isValidImageSrcURL", - "optional": false + "value": "isValidImageSrcURL" }, "value": { "type": "Identifier", @@ -34336,9 +33526,7 @@ "start": 29260, "end": 29275 }, - "ctxt": 0, - "value": "FileSystemCache", - "optional": false + "value": "FileSystemCache" }, "value": { "type": "Identifier", @@ -34577,9 +33765,7 @@ "start": 29390, "end": 29396 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -34600,9 +33786,7 @@ "start": 29415, "end": 29418 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "value": { "type": "Identifier", @@ -34623,9 +33807,7 @@ "start": 29439, "end": 29446 }, - "ctxt": 0, - "value": "baseDir", - "optional": false + "value": "baseDir" }, "value": { "type": "BinaryExpression", @@ -34656,9 +33838,7 @@ "start": 29450, "end": 29452 }, - "ctxt": 0, - "value": "ab", - "optional": false + "value": "ab" } }, "right": { @@ -34717,9 +33897,7 @@ "start": 29494, "end": 29501 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -35006,9 +34184,7 @@ "start": 29718, "end": 29722 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -35478,9 +34654,7 @@ "start": 30212, "end": 30222 }, - "ctxt": 0, - "value": "existsSync", - "optional": false + "value": "existsSync" } }, "arguments": [ @@ -35627,9 +34801,7 @@ "start": 30343, "end": 30359 }, - "ctxt": 0, - "value": "createReadStream", - "optional": false + "value": "createReadStream" } }, "arguments": [ @@ -35954,9 +35126,7 @@ "start": 30654, "end": 30661 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -35974,9 +35144,7 @@ "start": 30682, "end": 30702 }, - "ctxt": 0, - "value": "fetchImageDimensions", - "optional": false + "value": "fetchImageDimensions" }, "value": { "type": "Identifier", @@ -35997,9 +35165,7 @@ "start": 30742, "end": 30770 }, - "ctxt": 0, - "value": "fetchImageDimensionsFromFile", - "optional": false + "value": "fetchImageDimensionsFromFile" }, "value": { "type": "Identifier", @@ -36020,9 +35186,7 @@ "start": 30818, "end": 30845 }, - "ctxt": 0, - "value": "fetchImageDimensionsFromUrl", - "optional": false + "value": "fetchImageDimensionsFromUrl" }, "value": { "type": "Identifier", @@ -36219,9 +35383,7 @@ "start": 31023, "end": 31029 }, - "ctxt": 0, - "value": "MaxAge", - "optional": false + "value": "MaxAge" }, "value": { "type": "Identifier", @@ -36307,9 +35469,7 @@ "start": 31094, "end": 31108 }, - "ctxt": 0, - "value": "AMP_CACHE_HOST", - "optional": false + "value": "AMP_CACHE_HOST" }, "value": { "type": "Identifier", @@ -36331,9 +35491,7 @@ "start": 31129, "end": 31149 }, - "ctxt": 0, - "value": "AMP_RUNTIME_CSS_PATH", - "optional": false + "value": "AMP_RUNTIME_CSS_PATH" }, "value": { "type": "Identifier", @@ -36355,9 +35513,7 @@ "start": 31170, "end": 31194 }, - "ctxt": 0, - "value": "AMP_VALIDATION_RULES_URL", - "optional": false + "value": "AMP_VALIDATION_RULES_URL" }, "value": { "type": "Identifier", @@ -36379,9 +35535,7 @@ "start": 31215, "end": 31235 }, - "ctxt": 0, - "value": "appendRuntimeVersion", - "optional": false + "value": "appendRuntimeVersion" }, "value": { "type": "Identifier", @@ -36735,9 +35889,7 @@ "start": 31463, "end": 31469 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -36807,9 +35959,7 @@ "start": 31496, "end": 31503 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } }, "right": { @@ -36848,9 +35998,7 @@ "start": 31508, "end": 31515 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } }, "right": { @@ -36875,9 +36023,7 @@ "start": 31521, "end": 31528 }, - "ctxt": 0, - "value": "verbose", - "optional": false + "value": "verbose" } } }, @@ -37301,9 +36447,7 @@ "start": 31857, "end": 31871 }, - "ctxt": 0, - "value": "validatorRules", - "optional": false + "value": "validatorRules" } }, "right": { @@ -37342,9 +36486,7 @@ "start": 31876, "end": 31890 }, - "ctxt": 0, - "value": "validatorRules", - "optional": false + "value": "validatorRules" } }, "right": { @@ -37369,9 +36511,7 @@ "start": 31896, "end": 31910 }, - "ctxt": 0, - "value": "validatorRules", - "optional": false + "value": "validatorRules" } } }, @@ -37487,9 +36627,7 @@ "start": 32005, "end": 32008 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -37498,9 +36636,7 @@ "start": 32009, "end": 32014 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -37628,9 +36764,7 @@ "start": 32169, "end": 32174 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "right": { @@ -37757,9 +36891,7 @@ "start": 32289, "end": 32292 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -37955,9 +37087,7 @@ "start": 32439, "end": 32442 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -37966,9 +37096,7 @@ "start": 32443, "end": 32448 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -38023,9 +37151,7 @@ "start": 32507, "end": 32510 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -38066,9 +37192,7 @@ "start": 32516, "end": 32519 }, - "ctxt": 0, - "value": "raw", - "optional": false + "value": "raw" } } } @@ -38145,9 +37269,7 @@ "start": 32578, "end": 32583 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } }, "arguments": [ @@ -38168,9 +37290,7 @@ "start": 32610, "end": 32615 }, - "ctxt": 0, - "value": "rules", - "optional": false + "value": "rules" }, "value": { "type": "Identifier", @@ -38329,9 +37449,7 @@ "start": 32786, "end": 32791 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } }, "arguments": [ @@ -38391,9 +37509,7 @@ "start": 32819, "end": 32821 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" } } }, @@ -38458,9 +37574,7 @@ "start": 32900, "end": 32905 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } }, "arguments": [ @@ -38481,9 +37595,7 @@ "start": 32928, "end": 32933 }, - "ctxt": 0, - "value": "rules", - "optional": false + "value": "rules" }, "value": { "type": "AwaitExpression", @@ -38520,9 +37632,7 @@ "start": 32943, "end": 32947 }, - "ctxt": 0, - "value": "json", - "optional": false + "value": "json" } }, "arguments": [], @@ -38660,9 +37770,7 @@ "start": 33080, "end": 33096 }, - "ctxt": 0, - "value": "ampRuntimeStyles", - "optional": false + "value": "ampRuntimeStyles" } }, "right": { @@ -38694,9 +37802,7 @@ "start": 33101, "end": 33117 }, - "ctxt": 0, - "value": "ampRuntimeStyles", - "optional": false + "value": "ampRuntimeStyles" } }, "right": { @@ -38760,9 +37866,7 @@ "start": 33155, "end": 33167 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" } } }, @@ -38790,9 +37894,7 @@ "start": 33171, "end": 33188 }, - "ctxt": 0, - "value": "ampRuntimeVersion", - "optional": false + "value": "ampRuntimeVersion" } } } @@ -38871,9 +37973,7 @@ "start": 33242, "end": 33245 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -38882,9 +37982,7 @@ "start": 33246, "end": 33251 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -39050,9 +38148,7 @@ "start": 33397, "end": 33400 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } }, "right": { @@ -39091,9 +38187,7 @@ "start": 33405, "end": 33408 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } }, "right": { @@ -39118,9 +38212,7 @@ "start": 33414, "end": 33417 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } }, @@ -39170,9 +38262,7 @@ "start": 33446, "end": 33449 }, - "ctxt": 0, - "value": "rtv", - "optional": false + "value": "rtv" } }, "right": { @@ -39211,9 +38301,7 @@ "start": 33454, "end": 33457 }, - "ctxt": 0, - "value": "rtv", - "optional": false + "value": "rtv" } }, "right": { @@ -39238,9 +38326,7 @@ "start": 33463, "end": 33466 }, - "ctxt": 0, - "value": "rtv", - "optional": false + "value": "rtv" } } }, @@ -39286,9 +38372,7 @@ "start": 33519, "end": 33531 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" }, "value": { "type": "Identifier", @@ -39310,9 +38394,7 @@ "start": 33556, "end": 33573 }, - "ctxt": 0, - "value": "ampRuntimeVersion", - "optional": false + "value": "ampRuntimeVersion" }, "value": { "type": "Identifier", @@ -39334,9 +38416,7 @@ "start": 33598, "end": 33601 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "Identifier", @@ -39451,9 +38531,7 @@ "start": 33680, "end": 33683 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -39462,9 +38540,7 @@ "start": 33684, "end": 33688 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -39572,9 +38648,7 @@ "start": 33867, "end": 33884 }, - "ctxt": 0, - "value": "ampRuntimeVersion", - "optional": false + "value": "ampRuntimeVersion" } }, "right": { @@ -39635,9 +38709,7 @@ "start": 33948, "end": 33954 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" }, "value": { "type": "Identifier", @@ -39658,9 +38730,7 @@ "start": 33983, "end": 33995 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" }, "value": { "type": "Identifier", @@ -39681,9 +38751,7 @@ "start": 34024, "end": 34027 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "Identifier", @@ -39774,9 +38842,7 @@ "start": 34106, "end": 34109 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -39785,9 +38851,7 @@ "start": 34110, "end": 34115 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -39921,9 +38985,7 @@ "start": 34275, "end": 34281 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "property": { @@ -39932,9 +38994,7 @@ "start": 34282, "end": 34287 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "right": { @@ -40020,9 +39080,7 @@ "start": 34363, "end": 34370 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } } } @@ -40093,9 +39151,7 @@ "start": 34417, "end": 34429 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" } }, "right": { @@ -40130,9 +39186,7 @@ "start": 34440, "end": 34443 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } }, @@ -40202,9 +39256,7 @@ "start": 34477, "end": 34480 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -40388,9 +39440,7 @@ "start": 34594, "end": 34600 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" } }, "property": { @@ -40399,9 +39449,7 @@ "start": 34601, "end": 34604 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -40410,9 +39458,7 @@ "start": 34605, "end": 34610 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -40456,9 +39502,7 @@ "start": 34642, "end": 34649 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } } } @@ -40517,9 +39561,7 @@ "start": 34680, "end": 34690 }, - "ctxt": 0, - "value": "fromObject", - "optional": false + "value": "fromObject" } }, "arguments": [ @@ -40547,9 +39589,7 @@ "start": 34693, "end": 34699 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" } } } @@ -40562,9 +39602,7 @@ "start": 34701, "end": 34710 }, - "ctxt": 0, - "value": "isExpired", - "optional": false + "value": "isExpired" } }, "arguments": [], @@ -40665,9 +39703,7 @@ "start": 34809, "end": 34816 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } } } @@ -40714,9 +39750,7 @@ "start": 34900, "end": 34906 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" }, "value": { "type": "Identifier", @@ -40738,9 +39772,7 @@ "start": 34927, "end": 34939 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" }, "value": { "type": "Identifier", @@ -40762,9 +39794,7 @@ "start": 34960, "end": 34963 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "Identifier", @@ -40902,9 +39932,7 @@ "start": 35059, "end": 35066 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" }, "value": { "type": "AwaitExpression", @@ -40947,9 +39975,7 @@ "start": 35076, "end": 35090 }, - "ctxt": 0, - "value": "runtimeVersion", - "optional": false + "value": "runtimeVersion" } }, "property": { @@ -40958,9 +39984,7 @@ "start": 35091, "end": 35105 }, - "ctxt": 0, - "value": "currentVersion", - "optional": false + "value": "currentVersion" } }, "arguments": [ @@ -40981,9 +40005,7 @@ "start": 35132, "end": 35144 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" }, "value": { "type": "Identifier", @@ -41004,9 +40026,7 @@ "start": 35173, "end": 35176 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "Identifier", @@ -41035,9 +40055,7 @@ "start": 35224, "end": 35230 }, - "ctxt": 0, - "value": "maxAge", - "optional": false + "value": "maxAge" }, "value": { "type": "CallExpression", @@ -41081,9 +40099,7 @@ "start": 35234, "end": 35240 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -41109,9 +40125,7 @@ "start": 35244, "end": 35252 }, - "ctxt": 0, - "value": "toObject", - "optional": false + "value": "toObject" } }, "arguments": [], @@ -41164,9 +40178,7 @@ "start": 35297, "end": 35304 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } } }, @@ -41248,9 +40260,7 @@ "start": 35341, "end": 35344 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -41259,9 +40269,7 @@ "start": 35345, "end": 35350 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -41398,9 +40406,7 @@ "start": 35502, "end": 35508 }, - "ctxt": 0, - "value": "config", - "optional": false + "value": "config" }, "value": { "type": "Identifier", @@ -41421,9 +40427,7 @@ "start": 35537, "end": 35549 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" }, "value": { "type": "Identifier", @@ -41444,9 +40448,7 @@ "start": 35578, "end": 35581 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "Identifier", @@ -41518,9 +40520,7 @@ "start": 35640, "end": 35647 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "right": { @@ -41577,9 +40577,7 @@ "start": 35678, "end": 35681 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -41843,9 +40841,7 @@ "start": 35875, "end": 35878 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -41854,9 +40850,7 @@ "start": 35879, "end": 35883 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -42026,9 +41020,7 @@ "start": 36137, "end": 36151 }, - "ctxt": 0, - "value": "runtimeVersion", - "optional": false + "value": "runtimeVersion" } }, "property": { @@ -42037,9 +41029,7 @@ "start": 36152, "end": 36166 }, - "ctxt": 0, - "value": "currentVersion", - "optional": false + "value": "currentVersion" } }, "arguments": [], @@ -42325,9 +41315,7 @@ "start": 36344, "end": 36347 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -42336,9 +41324,7 @@ "start": 36348, "end": 36353 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -42525,9 +41511,7 @@ "start": 36516, "end": 36530 }, - "ctxt": 0, - "value": "runtimeVersion", - "optional": false + "value": "runtimeVersion" } }, "property": { @@ -42536,9 +41520,7 @@ "start": 36531, "end": 36545 }, - "ctxt": 0, - "value": "currentVersion", - "optional": false + "value": "currentVersion" } }, "arguments": [], @@ -42741,9 +41723,7 @@ "start": 36797, "end": 36802 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "right": { @@ -42822,9 +41802,7 @@ "start": 36848, "end": 36851 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -42945,9 +41923,7 @@ "start": 36937, "end": 36942 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } }, "arguments": [ @@ -43007,9 +41983,7 @@ "start": 36974, "end": 36976 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" } } }, @@ -43098,9 +42072,7 @@ "start": 37070, "end": 37074 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } }, "arguments": [], @@ -43151,9 +42123,7 @@ "start": 37105, "end": 37113 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -43272,9 +42242,7 @@ "start": 37299, "end": 37302 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -43283,9 +42251,7 @@ "start": 37303, "end": 37308 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -43372,9 +42338,7 @@ "start": 37379, "end": 37384 }, - "ctxt": 0, - "value": "cache", - "optional": false + "value": "cache" } }, "right": { @@ -43429,9 +42393,7 @@ "start": 37424, "end": 37427 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -43704,9 +42666,7 @@ "start": 37750, "end": 37757 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -43988,9 +42948,7 @@ "start": 38081, "end": 38088 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -44075,9 +43033,7 @@ "start": 38151, "end": 38158 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -44320,9 +43276,7 @@ "start": 38319, "end": 38326 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -44447,9 +43401,7 @@ "start": 38472, "end": 38479 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -44580,9 +43532,7 @@ "start": 38606, "end": 38609 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" }, "value": { "type": "Identifier", @@ -44672,9 +43622,7 @@ "start": 38652, "end": 38659 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -44706,9 +43654,7 @@ "start": 38664, "end": 38667 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -44953,9 +43899,7 @@ "start": 38867, "end": 38879 }, - "ctxt": 0, - "value": "defaultValue", - "optional": false + "value": "defaultValue" }, "value": { "type": "StringLiteral", @@ -44975,9 +43919,7 @@ "start": 38905, "end": 38911 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" }, "value": { "type": "ArrayExpression", @@ -45116,9 +44058,7 @@ "start": 39036, "end": 39040 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -45130,9 +44070,7 @@ "start": 39043, "end": 39048 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" } }, "arguments": [ @@ -45240,9 +44178,7 @@ "start": 39099, "end": 39105 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -45390,9 +44326,7 @@ "start": 39182, "end": 39188 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -45449,9 +44383,7 @@ "start": 39222, "end": 39234 }, - "ctxt": 0, - "value": "defaultValue", - "optional": false + "value": "defaultValue" } }, "right": { @@ -45483,9 +44415,7 @@ "start": 39239, "end": 39243 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -45559,9 +44489,7 @@ "start": 39311, "end": 39316 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" } }, "arguments": [ @@ -45619,9 +44547,7 @@ "start": 39357, "end": 39363 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -45759,9 +44685,7 @@ "start": 39504, "end": 39510 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "property": { @@ -45770,9 +44694,7 @@ "start": 39511, "end": 39515 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -45793,9 +44715,7 @@ "start": 39546, "end": 39551 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "TemplateLiteral", @@ -45870,9 +44790,7 @@ "start": 39593, "end": 39597 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" }, "value": { "type": "MemberExpression", @@ -45984,9 +44902,7 @@ "start": 39725, "end": 39732 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -46117,9 +45033,7 @@ "start": 39848, "end": 39863 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -46141,9 +45055,7 @@ "start": 39884, "end": 39897 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -46165,9 +45077,7 @@ "start": 39918, "end": 39929 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -46254,9 +45164,7 @@ "start": 40005, "end": 40014 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -46348,9 +45256,7 @@ "start": 40050, "end": 40056 }, - "ctxt": 0, - "value": "ampUrl", - "optional": false + "value": "ampUrl" } } }, @@ -46660,9 +45566,7 @@ "start": 40292, "end": 40295 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -46682,9 +45586,7 @@ "start": 40332, "end": 40336 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "MemberExpression", @@ -46708,9 +45610,7 @@ "start": 40340, "end": 40346 }, - "ctxt": 0, - "value": "ampUrl", - "optional": false + "value": "ampUrl" } } } @@ -46834,9 +45734,7 @@ "start": 40445, "end": 40452 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -47015,9 +45913,7 @@ "start": 40573, "end": 40586 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -47039,9 +45935,7 @@ "start": 40607, "end": 40618 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -47063,9 +45957,7 @@ "start": 40639, "end": 40647 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -47087,9 +45979,7 @@ "start": 40668, "end": 40683 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -47175,9 +46065,7 @@ "start": 40748, "end": 40751 }, - "ctxt": 0, - "value": "URL", - "optional": false + "value": "URL" }, "value": { "type": "Identifier", @@ -47263,9 +46151,7 @@ "start": 40816, "end": 40835 }, - "ctxt": 0, - "value": "skipNodeAndChildren", - "optional": false + "value": "skipNodeAndChildren" }, "value": { "type": "Identifier", @@ -47807,9 +46693,7 @@ "start": 41243, "end": 41247 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -47835,9 +46719,7 @@ "start": 41251, "end": 41255 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -48005,9 +46887,7 @@ "start": 41408, "end": 41419 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -48070,9 +46950,7 @@ "start": 41450, "end": 41454 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -48110,9 +46988,7 @@ "start": 41459, "end": 41462 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -48121,9 +46997,7 @@ "start": 41463, "end": 41466 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -48176,9 +47050,7 @@ "start": 41523, "end": 41543 }, - "ctxt": 0, - "value": "blurredPlaceholders_", - "optional": false + "value": "blurredPlaceholders_" } }, "right": { @@ -48217,9 +47089,7 @@ "start": 41550, "end": 41569 }, - "ctxt": 0, - "value": "blurredPlaceholders", - "optional": false + "value": "blurredPlaceholders" } } } @@ -48258,9 +47128,7 @@ "start": 41601, "end": 41621 }, - "ctxt": 0, - "value": "blurredPlaceholders_", - "optional": false + "value": "blurredPlaceholders_" } } }, @@ -48310,9 +47178,7 @@ "start": 41654, "end": 41658 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -48321,9 +47187,7 @@ "start": 41659, "end": 41664 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -48497,9 +47361,7 @@ "start": 41817, "end": 41821 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -48508,9 +47370,7 @@ "start": 41822, "end": 41826 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -48579,9 +47439,7 @@ "start": 41967, "end": 41987 }, - "ctxt": 0, - "value": "blurredPlaceholders_", - "optional": false + "value": "blurredPlaceholders_" } }, "right": { @@ -48638,9 +47496,7 @@ "start": 42075, "end": 42079 }, - "ctxt": 0, - "value": "jimp", - "optional": false + "value": "jimp" } }, "right": { @@ -48710,9 +47566,7 @@ "start": 42116, "end": 42139 }, - "ctxt": 0, - "value": "maxBlurredPlaceholders_", - "optional": false + "value": "maxBlurredPlaceholders_" } }, "right": { @@ -48744,9 +47598,7 @@ "start": 42144, "end": 42166 }, - "ctxt": 0, - "value": "maxBlurredPlaceholders", - "optional": false + "value": "maxBlurredPlaceholders" } }, "right": { @@ -48794,9 +47646,7 @@ "start": 42198, "end": 42211 }, - "ctxt": 0, - "value": "pathResolver_", - "optional": false + "value": "pathResolver_" } }, "right": { @@ -48841,9 +47691,7 @@ "start": 42222, "end": 42235 }, - "ctxt": 0, - "value": "imageBasePath", - "optional": false + "value": "imageBasePath" } } } @@ -48908,9 +47756,7 @@ "start": 42270, "end": 42298 }, - "ctxt": 0, - "value": "blurredPlaceholdersCacheSize", - "optional": false + "value": "blurredPlaceholdersCacheSize" } }, "right": { @@ -49008,9 +47854,7 @@ "start": 42369, "end": 42373 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -49019,9 +47863,7 @@ "start": 42374, "end": 42379 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -49073,9 +47915,7 @@ "start": 42438, "end": 42444 }, - "ctxt": 0, - "value": "cache_", - "optional": false + "value": "cache_" } }, "right": { @@ -49245,9 +48085,7 @@ "start": 42567, "end": 42571 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -49256,9 +48094,7 @@ "start": 42572, "end": 42577 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -49323,9 +48159,7 @@ "start": 42663, "end": 42669 }, - "ctxt": 0, - "value": "cache_", - "optional": false + "value": "cache_" } }, "right": { @@ -49363,9 +48197,7 @@ "start": 42708, "end": 42711 }, - "ctxt": 0, - "value": "max", - "optional": false + "value": "max" }, "value": { "type": "Identifier", @@ -49434,9 +48266,7 @@ "start": 42800, "end": 42804 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -49445,9 +48275,7 @@ "start": 42805, "end": 42810 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -49488,9 +48316,7 @@ "start": 42887, "end": 42896 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -49579,9 +48405,7 @@ "start": 42935, "end": 42955 }, - "ctxt": 0, - "value": "blurredPlaceholders_", - "optional": false + "value": "blurredPlaceholders_" } } }, @@ -50002,9 +48826,7 @@ "start": 43285, "end": 43292 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "Identifier", @@ -50274,9 +49096,7 @@ "start": 43588, "end": 43595 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -50285,9 +49105,7 @@ "start": 43596, "end": 43599 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -50364,9 +49182,7 @@ "start": 43677, "end": 43684 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -50375,9 +49191,7 @@ "start": 43685, "end": 43691 }, - "ctxt": 0, - "value": "poster", - "optional": false + "value": "poster" } } }, @@ -50441,9 +49255,7 @@ "start": 43729, "end": 43736 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -50452,9 +49264,7 @@ "start": 43737, "end": 43743 }, - "ctxt": 0, - "value": "poster", - "optional": false + "value": "poster" } } } @@ -50495,9 +49305,7 @@ "start": 43803, "end": 43830 }, - "ctxt": 0, - "value": "shouldAddBlurryPlaceholder_", - "optional": false + "value": "shouldAddBlurryPlaceholder_" } }, "arguments": [ @@ -50643,9 +49451,7 @@ "start": 43919, "end": 43940 }, - "ctxt": 0, - "value": "addBlurryPlaceholder_", - "optional": false + "value": "addBlurryPlaceholder_" } }, "arguments": [ @@ -50684,9 +49490,7 @@ "start": 43947, "end": 43951 }, - "ctxt": 0, - "value": "then", - "optional": false + "value": "then" } }, "arguments": [ @@ -50767,9 +49571,7 @@ "start": 43994, "end": 44001 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -50778,9 +49580,7 @@ "start": 44002, "end": 44011 }, - "ctxt": 0, - "value": "noloading", - "optional": false + "value": "noloading" } }, "right": { @@ -50899,9 +49699,7 @@ "start": 44121, "end": 44125 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -50964,9 +49762,7 @@ "start": 44172, "end": 44195 }, - "ctxt": 0, - "value": "maxBlurredPlaceholders_", - "optional": false + "value": "maxBlurredPlaceholders_" } } }, @@ -51032,9 +49828,7 @@ "start": 44350, "end": 44353 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -51081,9 +49875,7 @@ "start": 44397, "end": 44418 }, - "ctxt": 0, - "value": "addBlurryPlaceholder_", - "optional": false + "value": "addBlurryPlaceholder_" }, "function": { "params": [ @@ -51214,9 +50006,7 @@ "start": 44492, "end": 44497 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" }, "value": { "type": "StringLiteral", @@ -51236,9 +50026,7 @@ "start": 44555, "end": 44566 }, - "ctxt": 0, - "value": "placeholder", - "optional": false + "value": "placeholder" }, "value": { "type": "StringLiteral", @@ -51258,9 +50046,7 @@ "start": 44596, "end": 44599 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "Identifier", @@ -51281,9 +50067,7 @@ "start": 44628, "end": 44631 }, - "ctxt": 0, - "value": "alt", - "optional": false + "value": "alt" }, "value": { "type": "StringLiteral", @@ -51378,9 +50162,7 @@ "start": 44731, "end": 44747 }, - "ctxt": 0, - "value": "getCachedDataURI", - "optional": false + "value": "getCachedDataURI" } }, "arguments": [ @@ -51474,9 +50256,7 @@ "start": 44934, "end": 44939 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, { @@ -51501,9 +50281,7 @@ "start": 44945, "end": 44951 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } }, { @@ -51528,9 +50306,7 @@ "start": 45467, "end": 45470 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } ], @@ -51634,9 +50410,7 @@ "start": 45566, "end": 45573 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -51722,9 +50496,7 @@ "start": 45618, "end": 45625 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -51810,9 +50582,7 @@ "start": 45671, "end": 45678 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -51888,9 +50658,7 @@ "start": 45718, "end": 45725 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -51899,9 +50667,7 @@ "start": 45726, "end": 45729 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "right": { @@ -51971,9 +50737,7 @@ "start": 45802, "end": 45806 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -51982,9 +50746,7 @@ "start": 45807, "end": 45812 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -52082,9 +50844,7 @@ "start": 45892, "end": 45896 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -52093,9 +50853,7 @@ "start": 45897, "end": 45902 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -52166,9 +50924,7 @@ "start": 45946, "end": 45950 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -52177,9 +50933,7 @@ "start": 45951, "end": 45956 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -52207,9 +50961,7 @@ "start": 45959, "end": 45966 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } } @@ -52265,9 +51017,7 @@ "start": 46053, "end": 46069 }, - "ctxt": 0, - "value": "getCachedDataURI", - "optional": false + "value": "getCachedDataURI" }, "function": { "params": [ @@ -52383,9 +51133,7 @@ "start": 46113, "end": 46126 }, - "ctxt": 0, - "value": "pathResolver_", - "optional": false + "value": "pathResolver_" } }, "property": { @@ -52394,9 +51142,7 @@ "start": 46127, "end": 46134 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -52458,9 +51204,7 @@ "start": 46171, "end": 46177 }, - "ctxt": 0, - "value": "cache_", - "optional": false + "value": "cache_" } }, "consequent": { @@ -52530,9 +51274,7 @@ "start": 46220, "end": 46226 }, - "ctxt": 0, - "value": "cache_", - "optional": false + "value": "cache_" } }, "property": { @@ -52541,9 +51283,7 @@ "start": 46227, "end": 46230 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -52629,9 +51369,7 @@ "start": 46301, "end": 46305 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -52640,9 +51378,7 @@ "start": 46306, "end": 46311 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -52734,9 +51470,7 @@ "start": 46423, "end": 46427 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -52745,9 +51479,7 @@ "start": 46428, "end": 46433 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -52837,9 +51569,7 @@ "start": 46510, "end": 46521 }, - "ctxt": 0, - "value": "getDataURI_", - "optional": false + "value": "getDataURI_" } }, "arguments": [ @@ -52888,9 +51618,7 @@ "start": 46555, "end": 46561 }, - "ctxt": 0, - "value": "cache_", - "optional": false + "value": "cache_" } }, "consequent": { @@ -52939,9 +51667,7 @@ "start": 46594, "end": 46600 }, - "ctxt": 0, - "value": "cache_", - "optional": false + "value": "cache_" } }, "property": { @@ -52950,9 +51676,7 @@ "start": 46601, "end": 46604 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -53033,9 +51757,7 @@ "start": 46702, "end": 46713 }, - "ctxt": 0, - "value": "getDataURI_", - "optional": false + "value": "getDataURI_" }, "function": { "params": [ @@ -53138,9 +51860,7 @@ "start": 46760, "end": 46764 }, - "ctxt": 0, - "value": "jimp", - "optional": false + "value": "jimp" } }, "property": { @@ -53149,9 +51869,7 @@ "start": 46765, "end": 46769 }, - "ctxt": 0, - "value": "read", - "optional": false + "value": "read" } }, "arguments": [ @@ -53229,9 +51947,7 @@ "start": 46809, "end": 46829 }, - "ctxt": 0, - "value": "getBitmapDimensions_", - "optional": false + "value": "getBitmapDimensions_" } }, "arguments": [ @@ -53265,9 +51981,7 @@ "start": 46832, "end": 46838 }, - "ctxt": 0, - "value": "bitmap", - "optional": false + "value": "bitmap" } }, "property": { @@ -53276,9 +51990,7 @@ "start": 46839, "end": 46844 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } } }, @@ -53312,9 +52024,7 @@ "start": 46848, "end": 46854 }, - "ctxt": 0, - "value": "bitmap", - "optional": false + "value": "bitmap" } }, "property": { @@ -53323,9 +52033,7 @@ "start": 46855, "end": 46861 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -53371,9 +52079,7 @@ "start": 46886, "end": 46892 }, - "ctxt": 0, - "value": "resize", - "optional": false + "value": "resize" } }, "arguments": [ @@ -53401,9 +52107,7 @@ "start": 46895, "end": 46900 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } } }, @@ -53431,9 +52135,7 @@ "start": 46904, "end": 46910 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } }, @@ -53464,9 +52166,7 @@ "start": 46917, "end": 46921 }, - "ctxt": 0, - "value": "jimp", - "optional": false + "value": "jimp" } }, "property": { @@ -53475,9 +52175,7 @@ "start": 46922, "end": 46935 }, - "ctxt": 0, - "value": "RESIZE_BEZIER", - "optional": false + "value": "RESIZE_BEZIER" } } } @@ -53527,9 +52225,7 @@ "start": 46994, "end": 46997 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "AwaitExpression", @@ -53566,9 +52262,7 @@ "start": 47007, "end": 47021 }, - "ctxt": 0, - "value": "getBase64Async", - "optional": false + "value": "getBase64Async" } }, "arguments": [ @@ -53597,9 +52291,7 @@ "start": 47060, "end": 47065 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "MemberExpression", @@ -53623,9 +52315,7 @@ "start": 47069, "end": 47074 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } } }, @@ -53637,9 +52327,7 @@ "start": 47100, "end": 47106 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "MemberExpression", @@ -53663,9 +52351,7 @@ "start": 47110, "end": 47116 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -53718,9 +52404,7 @@ "start": 47203, "end": 47223 }, - "ctxt": 0, - "value": "getBitmapDimensions_", - "optional": false + "value": "getBitmapDimensions_" }, "function": { "params": [ @@ -53948,9 +52632,7 @@ "start": 47333, "end": 47337 }, - "ctxt": 0, - "value": "sqrt", - "optional": false + "value": "sqrt" } }, "arguments": [ @@ -54052,9 +52734,7 @@ "start": 47432, "end": 47437 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "CallExpression", @@ -54085,9 +52765,7 @@ "start": 47444, "end": 47449 }, - "ctxt": 0, - "value": "round", - "optional": false + "value": "round" } }, "arguments": [ @@ -54116,9 +52794,7 @@ "start": 47478, "end": 47484 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "CallExpression", @@ -54149,9 +52825,7 @@ "start": 47491, "end": 47496 }, - "ctxt": 0, - "value": "round", - "optional": false + "value": "round" } }, "arguments": [ @@ -54201,9 +52875,7 @@ "start": 47556, "end": 47571 }, - "ctxt": 0, - "value": "hasPlaceholder_", - "optional": false + "value": "hasPlaceholder_" }, "function": { "params": [ @@ -54289,9 +52961,7 @@ "start": 47606, "end": 47616 }, - "ctxt": 0, - "value": "childNodes", - "optional": false + "value": "childNodes" } }, "property": { @@ -54300,9 +52970,7 @@ "start": 47617, "end": 47621 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "arguments": [ @@ -54363,9 +53031,7 @@ "start": 47630, "end": 47637 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -54403,9 +53069,7 @@ "start": 47643, "end": 47650 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -54414,9 +53078,7 @@ "start": 47651, "end": 47662 }, - "ctxt": 0, - "value": "placeholder", - "optional": false + "value": "placeholder" } }, "right": { @@ -54479,9 +53141,7 @@ "start": 47727, "end": 47754 }, - "ctxt": 0, - "value": "shouldAddBlurryPlaceholder_", - "optional": false + "value": "shouldAddBlurryPlaceholder_" }, "function": { "params": [ @@ -54640,9 +53300,7 @@ "start": 47884, "end": 47899 }, - "ctxt": 0, - "value": "hasPlaceholder_", - "optional": false + "value": "hasPlaceholder_" } }, "arguments": [ @@ -54821,9 +53479,7 @@ "start": 48055, "end": 48063 }, - "ctxt": 0, - "value": "pathname", - "optional": false + "value": "pathname" } }, "property": { @@ -54832,9 +53488,7 @@ "start": 48064, "end": 48072 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -54896,9 +53550,7 @@ "start": 48087, "end": 48095 }, - "ctxt": 0, - "value": "pathname", - "optional": false + "value": "pathname" } }, "property": { @@ -54907,9 +53559,7 @@ "start": 48096, "end": 48104 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -54998,9 +53648,7 @@ "start": 48201, "end": 48208 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -55009,9 +53657,7 @@ "start": 48209, "end": 48218 }, - "ctxt": 0, - "value": "noloading", - "optional": false + "value": "noloading" } }, "right": { @@ -55223,9 +53869,7 @@ "start": 48388, "end": 48395 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -55234,9 +53878,7 @@ "start": 48396, "end": 48402 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } }, "right": { @@ -55284,9 +53926,7 @@ "start": 48423, "end": 48430 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -55295,9 +53935,7 @@ "start": 48431, "end": 48437 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } }, "right": { @@ -55346,9 +53984,7 @@ "start": 48459, "end": 48466 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -55357,9 +53993,7 @@ "start": 48467, "end": 48473 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } }, "right": { @@ -55470,9 +54104,7 @@ "start": 48566, "end": 48573 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -55603,9 +54235,7 @@ "start": 48705, "end": 48709 }, - "ctxt": 0, - "value": "move", - "optional": false + "value": "move" }, "value": { "type": "Identifier", @@ -55627,9 +54257,7 @@ "start": 48730, "end": 48740 }, - "ctxt": 0, - "value": "insertText", - "optional": false + "value": "insertText" }, "value": { "type": "Identifier", @@ -55651,9 +54279,7 @@ "start": 48761, "end": 48772 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -55675,9 +54301,7 @@ "start": 48793, "end": 48805 }, - "ctxt": 0, - "value": "insertBefore", - "optional": false + "value": "insertBefore" }, "value": { "type": "Identifier", @@ -55699,9 +54323,7 @@ "start": 48826, "end": 48839 }, - "ctxt": 0, - "value": "createDocType", - "optional": false + "value": "createDocType" }, "value": { "type": "Identifier", @@ -55723,9 +54345,7 @@ "start": 48860, "end": 48873 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -55747,9 +54367,7 @@ "start": 48894, "end": 48909 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -55835,9 +54453,7 @@ "start": 48974, "end": 48985 }, - "ctxt": 0, - "value": "AMP_FORMATS", - "optional": false + "value": "AMP_FORMATS" }, "value": { "type": "Identifier", @@ -55859,9 +54475,7 @@ "start": 49006, "end": 49014 }, - "ctxt": 0, - "value": "AMP_TAGS", - "optional": false + "value": "AMP_TAGS" }, "value": { "type": "Identifier", @@ -56038,9 +54652,7 @@ "start": 49147, "end": 49150 }, - "ctxt": 0, - "value": "AMP", - "optional": false + "value": "AMP" }, "value": { "type": "ArrayExpression", @@ -56066,9 +54678,7 @@ "start": 49175, "end": 49182 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" }, "value": { "type": "ObjectExpression", @@ -56085,9 +54695,7 @@ "start": 49210, "end": 49217 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56107,9 +54715,7 @@ "start": 49251, "end": 49258 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56126,9 +54732,7 @@ "start": 49290, "end": 49297 }, - "ctxt": 0, - "value": "charset", - "optional": false + "value": "charset" }, "value": { "type": "StringLiteral", @@ -56154,9 +54758,7 @@ "start": 49376, "end": 49380 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" }, "value": { "type": "ObjectExpression", @@ -56173,9 +54775,7 @@ "start": 49408, "end": 49415 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56195,9 +54795,7 @@ "start": 49449, "end": 49456 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56214,9 +54812,7 @@ "start": 49488, "end": 49495 }, - "ctxt": 0, - "value": "charset", - "optional": false + "value": "charset" }, "value": { "type": "StringLiteral", @@ -56254,9 +54850,7 @@ "start": 49594, "end": 49601 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" }, "value": { "type": "ObjectExpression", @@ -56273,9 +54867,7 @@ "start": 49629, "end": 49636 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56295,9 +54887,7 @@ "start": 49670, "end": 49677 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56314,9 +54904,7 @@ "start": 49709, "end": 49713 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -56342,9 +54930,7 @@ "start": 49795, "end": 49799 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" }, "value": { "type": "ObjectExpression", @@ -56361,9 +54947,7 @@ "start": 49827, "end": 49834 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56383,9 +54967,7 @@ "start": 49868, "end": 49875 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56402,9 +54984,7 @@ "start": 49907, "end": 49911 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -56424,9 +55004,7 @@ "start": 49953, "end": 49960 }, - "ctxt": 0, - "value": "content", - "optional": false + "value": "content" }, "value": { "type": "StringLiteral", @@ -56464,9 +55042,7 @@ "start": 50104, "end": 50111 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" }, "value": { "type": "ObjectExpression", @@ -56483,9 +55059,7 @@ "start": 50139, "end": 50146 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56508,9 +55082,7 @@ "start": 50202, "end": 50206 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" }, "value": { "type": "ObjectExpression", @@ -56527,9 +55099,7 @@ "start": 50234, "end": 50241 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56549,9 +55119,7 @@ "start": 50279, "end": 50287 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" }, "value": { "type": "ArrayExpression", @@ -56577,9 +55145,7 @@ "start": 50320, "end": 50327 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56599,9 +55165,7 @@ "start": 50366, "end": 50373 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56642,9 +55206,7 @@ "start": 50490, "end": 50494 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" }, "value": { "type": "StringLiteral", @@ -56685,9 +55247,7 @@ "start": 50671, "end": 50678 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" }, "value": { "type": "ObjectExpression", @@ -56704,9 +55264,7 @@ "start": 50706, "end": 50713 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56726,9 +55284,7 @@ "start": 50748, "end": 50755 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56772,9 +55328,7 @@ "start": 50878, "end": 50882 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" }, "value": { "type": "ObjectExpression", @@ -56791,9 +55345,7 @@ "start": 50910, "end": 50917 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56813,9 +55365,7 @@ "start": 50952, "end": 50959 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56856,9 +55406,7 @@ "start": 51064, "end": 51068 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" }, "value": { "type": "StringLiteral", @@ -56893,9 +55441,7 @@ "start": 51734, "end": 51741 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" }, "value": { "type": "ObjectExpression", @@ -56912,9 +55458,7 @@ "start": 51769, "end": 51776 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -56934,9 +55478,7 @@ "start": 51812, "end": 51819 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -56953,9 +55495,7 @@ "start": 51851, "end": 51854 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "RegExpLiteral", @@ -56981,9 +55521,7 @@ "start": 51950, "end": 51954 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" }, "value": { "type": "ObjectExpression", @@ -57000,9 +55538,7 @@ "start": 51982, "end": 51989 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -57022,9 +55558,7 @@ "start": 52025, "end": 52032 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -57041,9 +55575,7 @@ "start": 52064, "end": 52069 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "value": { "type": "StringLiteral", @@ -57063,9 +55595,7 @@ "start": 52103, "end": 52106 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "StringLiteral", @@ -57103,9 +55633,7 @@ "start": 52232, "end": 52239 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" }, "value": { "type": "ObjectExpression", @@ -57122,9 +55650,7 @@ "start": 52267, "end": 52274 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -57144,9 +55670,7 @@ "start": 52308, "end": 52315 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -57163,9 +55687,7 @@ "start": 52347, "end": 52350 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -57191,9 +55713,7 @@ "start": 52433, "end": 52437 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" }, "value": { "type": "ObjectExpression", @@ -57210,9 +55730,7 @@ "start": 52465, "end": 52472 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" }, "value": { "type": "StringLiteral", @@ -57232,9 +55750,7 @@ "start": 52506, "end": 52513 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" }, "value": { "type": "ObjectExpression", @@ -57251,9 +55767,7 @@ "start": 52545, "end": 52548 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -57273,9 +55787,7 @@ "start": 52591, "end": 52595 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "ArrowFunctionExpression", @@ -57351,9 +55863,7 @@ "start": 52648, "end": 52657 }, - "ctxt": 0, - "value": "canonical", - "optional": false + "value": "canonical" } } }, @@ -57400,9 +55910,7 @@ "start": 52699, "end": 52703 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -57457,9 +55965,7 @@ "start": 52805, "end": 52814 }, - "ctxt": 0, - "value": "canonical", - "optional": false + "value": "canonical" } }, "right": { @@ -57505,9 +56011,7 @@ "start": 52896, "end": 52905 }, - "ctxt": 0, - "value": "canonical", - "optional": false + "value": "canonical" } } } @@ -57570,9 +56074,7 @@ "start": 53071, "end": 53082 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -57635,9 +56137,7 @@ "start": 53113, "end": 53120 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } }, "right": { @@ -57676,9 +56176,7 @@ "start": 53125, "end": 53143 }, - "ctxt": 0, - "value": "autoAddBoilerplate", - "optional": false + "value": "autoAddBoilerplate" } }, "right": { @@ -57719,9 +56217,7 @@ "start": 53159, "end": 53179 }, - "ctxt": 0, - "value": "autoAddMandatoryTags", - "optional": false + "value": "autoAddMandatoryTags" } }, "right": { @@ -57768,9 +56264,7 @@ "start": 53216, "end": 53222 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "right": { @@ -57802,9 +56296,7 @@ "start": 53227, "end": 53233 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "right": { @@ -57852,9 +56344,7 @@ "start": 53265, "end": 53269 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -57892,9 +56382,7 @@ "start": 53274, "end": 53277 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -57903,9 +56391,7 @@ "start": 53278, "end": 53281 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -57943,9 +56429,7 @@ "start": 53342, "end": 53351 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -58034,9 +56518,7 @@ "start": 53390, "end": 53397 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } } }, @@ -58102,9 +56584,7 @@ "start": 53481, "end": 53489 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -58129,9 +56609,7 @@ "start": 53495, "end": 53501 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -58185,9 +56663,7 @@ "start": 53535, "end": 53539 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -58196,9 +56672,7 @@ "start": 53540, "end": 53545 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -58235,9 +56709,7 @@ "start": 53577, "end": 53583 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -58325,9 +56797,7 @@ "start": 53676, "end": 53682 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -58406,9 +56876,7 @@ "start": 53744, "end": 53748 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -58417,9 +56885,7 @@ "start": 53749, "end": 53753 }, - "ctxt": 0, - "value": "info", - "optional": false + "value": "info" } }, "arguments": [ @@ -58456,9 +56922,7 @@ "start": 53785, "end": 53791 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -58637,9 +57101,7 @@ "start": 53952, "end": 53971 }, - "ctxt": 0, - "value": "createHtml5Document", - "optional": false + "value": "createHtml5Document" } }, "arguments": [ @@ -58727,9 +57189,7 @@ "start": 54027, "end": 54035 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -58738,9 +57198,7 @@ "start": 54036, "end": 54040 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "arguments": [ @@ -58808,9 +57266,7 @@ "start": 54049, "end": 54053 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -58852,9 +57308,7 @@ "start": 54075, "end": 54079 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -59034,9 +57488,7 @@ "start": 54195, "end": 54205 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } } } @@ -59103,9 +57555,7 @@ "start": 54261, "end": 54265 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -59133,9 +57583,7 @@ "start": 54268, "end": 54275 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -59148,9 +57596,7 @@ "start": 54277, "end": 54281 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -59211,9 +57657,7 @@ "start": 54290, "end": 54298 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -59293,9 +57737,7 @@ "start": 54333, "end": 54340 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -59336,9 +57778,7 @@ "start": 54346, "end": 54352 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "property": { @@ -59347,9 +57787,7 @@ "start": 54353, "end": 54364 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -59712,9 +58150,7 @@ "start": 54632, "end": 54642 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -59773,9 +58209,7 @@ "start": 54706, "end": 54713 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "consequent": { @@ -59821,9 +58255,7 @@ "start": 54747, "end": 54754 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -59895,9 +58327,7 @@ "start": 54804, "end": 54813 }, - "ctxt": 0, - "value": "matchSpec", - "optional": false + "value": "matchSpec" } }, "arguments": [ @@ -59925,9 +58355,7 @@ "start": 54816, "end": 54823 }, - "ctxt": 0, - "value": "matcher", - "optional": false + "value": "matcher" } } }, @@ -59990,9 +58418,7 @@ "start": 54869, "end": 54875 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "arguments": [ @@ -60080,9 +58506,7 @@ "start": 55001, "end": 55012 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } } @@ -60179,9 +58603,7 @@ "start": 55105, "end": 55112 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -60222,9 +58644,7 @@ "start": 55118, "end": 55122 }, - "ctxt": 0, - "value": "node", - "optional": false + "value": "node" } } }, @@ -60274,9 +58694,7 @@ "start": 55183, "end": 55192 }, - "ctxt": 0, - "value": "matchSpec", - "optional": false + "value": "matchSpec" }, "function": { "params": [ @@ -60368,9 +58786,7 @@ "start": 55227, "end": 55234 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -60395,9 +58811,7 @@ "start": 55241, "end": 55248 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } }, @@ -60463,9 +58877,7 @@ "start": 55338, "end": 55345 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -60586,9 +58998,7 @@ "start": 55455, "end": 55462 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -60616,9 +59026,7 @@ "start": 55465, "end": 55472 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -60688,9 +59096,7 @@ "start": 55513, "end": 55520 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -60799,9 +59205,7 @@ "start": 55611, "end": 55615 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -60957,9 +59361,7 @@ "start": 55898, "end": 55905 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" }, "function": { "params": [ @@ -61201,9 +59603,7 @@ "start": 56016, "end": 56023 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } }, @@ -61259,9 +59659,7 @@ "start": 56054, "end": 56067 }, - "ctxt": 0, - "value": "addAttributes", - "optional": false + "value": "addAttributes" } }, "arguments": [ @@ -61340,9 +59738,7 @@ "start": 56103, "end": 56114 }, - "ctxt": 0, - "value": "addChildren", - "optional": false + "value": "addChildren" } }, "arguments": [ @@ -61421,9 +59817,7 @@ "start": 56150, "end": 56157 }, - "ctxt": 0, - "value": "addText", - "optional": false + "value": "addText" } }, "arguments": [ @@ -61550,9 +59944,7 @@ "start": 56230, "end": 56237 }, - "ctxt": 0, - "value": "addText", - "optional": false + "value": "addText" }, "function": { "params": [ @@ -61663,9 +60055,7 @@ "start": 56276, "end": 56280 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } } }, @@ -61763,9 +60153,7 @@ "start": 56397, "end": 56401 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } } }, @@ -61840,9 +60228,7 @@ "start": 56450, "end": 56454 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } }, "arguments": [ @@ -61880,9 +60266,7 @@ "start": 56463, "end": 56467 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } } } @@ -61947,9 +60331,7 @@ "start": 56528, "end": 56532 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } } } @@ -62037,9 +60419,7 @@ "start": 56617, "end": 56628 }, - "ctxt": 0, - "value": "addChildren", - "optional": false + "value": "addChildren" }, "function": { "params": [ @@ -62150,9 +60530,7 @@ "start": 56667, "end": 56675 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } }, @@ -62237,9 +60615,7 @@ "start": 56770, "end": 56778 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "body": { @@ -62282,9 +60658,7 @@ "start": 56811, "end": 56818 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -62360,9 +60734,7 @@ "start": 56884, "end": 56897 }, - "ctxt": 0, - "value": "addAttributes", - "optional": false + "value": "addAttributes" }, "function": { "params": [ @@ -62473,9 +60845,7 @@ "start": 56936, "end": 56943 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -62589,9 +60959,7 @@ "start": 57048, "end": 57055 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -62619,9 +60987,7 @@ "start": 57058, "end": 57065 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -62726,9 +61092,7 @@ "start": 57155, "end": 57162 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -62801,9 +61165,7 @@ "start": 57178, "end": 57182 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } } } @@ -62863,9 +61225,7 @@ "start": 57247, "end": 57254 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -62930,9 +61290,7 @@ "start": 57344, "end": 57363 }, - "ctxt": 0, - "value": "createHtml5Document", - "optional": false + "value": "createHtml5Document" }, "function": { "params": [ @@ -63098,9 +61456,7 @@ "start": 57449, "end": 57468 }, - "ctxt": 0, - "value": "createOrMoveElement", - "optional": false + "value": "createOrMoveElement" } }, "arguments": [ @@ -63202,9 +61558,7 @@ "start": 57519, "end": 57538 }, - "ctxt": 0, - "value": "createOrMoveElement", - "optional": false + "value": "createOrMoveElement" } }, "arguments": [ @@ -63285,9 +61639,7 @@ "start": 57579, "end": 57600 }, - "ctxt": 0, - "value": "copyTagsToHeadAndBody", - "optional": false + "value": "copyTagsToHeadAndBody" } }, "arguments": [ @@ -63431,9 +61783,7 @@ "start": 57703, "end": 57722 }, - "ctxt": 0, - "value": "createOrMoveElement", - "optional": false + "value": "createOrMoveElement" }, "function": { "params": [ @@ -63726,9 +62076,7 @@ "start": 57873, "end": 57894 }, - "ctxt": 0, - "value": "copyTagsToHeadAndBody", - "optional": false + "value": "copyTagsToHeadAndBody" }, "function": { "params": [ @@ -63853,9 +62201,7 @@ "start": 57936, "end": 57946 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -63973,9 +62319,7 @@ "start": 58047, "end": 58051 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } } } @@ -64015,9 +62359,7 @@ "start": 58083, "end": 58087 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -64074,9 +62416,7 @@ "start": 58120, "end": 58127 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -64278,9 +62618,7 @@ "start": 58342, "end": 58349 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -64411,9 +62749,7 @@ "start": 58471, "end": 58486 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -64500,9 +62836,7 @@ "start": 58570, "end": 58579 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -64692,9 +63026,7 @@ "start": 58687, "end": 58694 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -64703,9 +63035,7 @@ "start": 58695, "end": 58706 }, - "ctxt": 0, - "value": "transformed", - "optional": false + "value": "transformed" } }, "right": { @@ -64775,9 +63105,7 @@ "start": 58766, "end": 58773 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -64908,9 +63236,7 @@ "start": 58896, "end": 58906 }, - "ctxt": 0, - "value": "insertText", - "optional": false + "value": "insertText" }, "value": { "type": "Identifier", @@ -64932,9 +63258,7 @@ "start": 58927, "end": 58939 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -64956,9 +63280,7 @@ "start": 58960, "end": 58975 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -65046,9 +63368,7 @@ "start": 59066, "end": 59077 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -65111,9 +63431,7 @@ "start": 59108, "end": 59114 }, - "ctxt": 0, - "value": "fetch_", - "optional": false + "value": "fetch_" } }, "right": { @@ -65138,9 +63456,7 @@ "start": 59119, "end": 59124 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } } } @@ -65177,9 +63493,7 @@ "start": 59151, "end": 59166 }, - "ctxt": 0, - "value": "runtimeVersion_", - "optional": false + "value": "runtimeVersion_" } }, "right": { @@ -65204,9 +63518,7 @@ "start": 59171, "end": 59185 }, - "ctxt": 0, - "value": "runtimeVersion", - "optional": false + "value": "runtimeVersion" } } } @@ -65243,9 +63555,7 @@ "start": 59212, "end": 59216 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -65283,9 +63593,7 @@ "start": 59221, "end": 59224 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -65294,9 +63602,7 @@ "start": 59225, "end": 59228 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -65334,9 +63640,7 @@ "start": 59292, "end": 59301 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -65644,9 +63948,7 @@ "start": 59516, "end": 59536 }, - "ctxt": 0, - "value": "_findAmpRuntimeStyle", - "optional": false + "value": "_findAmpRuntimeStyle" } }, "arguments": [ @@ -65745,9 +64047,7 @@ "start": 59674, "end": 59691 }, - "ctxt": 0, - "value": "ampRuntimeVersion", - "optional": false + "value": "ampRuntimeVersion" }, "value": { "type": "Identifier", @@ -65769,9 +64069,7 @@ "start": 59720, "end": 59736 }, - "ctxt": 0, - "value": "ampRuntimeStyles", - "optional": false + "value": "ampRuntimeStyles" }, "value": { "type": "Identifier", @@ -65899,9 +64197,7 @@ "start": 59832, "end": 59836 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -65910,9 +64206,7 @@ "start": 59837, "end": 59842 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -65985,9 +64279,7 @@ "start": 60004, "end": 60011 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -66099,9 +64391,7 @@ "start": 60100, "end": 60120 }, - "ctxt": 0, - "value": "_findAmpRuntimeStyle", - "optional": false + "value": "_findAmpRuntimeStyle" }, "function": { "params": [ @@ -66188,9 +64478,7 @@ "start": 60156, "end": 60166 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -66348,9 +64636,7 @@ "start": 60344, "end": 60355 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } } @@ -66428,9 +64714,7 @@ "start": 60456, "end": 60463 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -66561,9 +64845,7 @@ "start": 60594, "end": 60600 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "value": { "type": "Identifier", @@ -66585,9 +64867,7 @@ "start": 60621, "end": 60632 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -66609,9 +64889,7 @@ "start": 60653, "end": 60666 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -66633,9 +64911,7 @@ "start": 60687, "end": 60695 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -66657,9 +64933,7 @@ "start": 60716, "end": 60731 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -66745,9 +65019,7 @@ "start": 60796, "end": 60809 }, - "ctxt": 0, - "value": "calculateHash", - "optional": false + "value": "calculateHash" }, "value": { "type": "Identifier", @@ -66834,9 +65106,7 @@ "start": 60887, "end": 60896 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -67260,9 +65530,7 @@ "start": 61177, "end": 61197 }, - "ctxt": 0, - "value": "_findOrCreateCspMeta", - "optional": false + "value": "_findOrCreateCspMeta" } }, "arguments": [ @@ -67380,9 +65648,7 @@ "start": 61235, "end": 61242 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -67391,9 +65657,7 @@ "start": 61243, "end": 61250 }, - "ctxt": 0, - "value": "content", - "optional": false + "value": "content" } }, "right": { @@ -67413,9 +65677,7 @@ "start": 61258, "end": 61262 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -67427,9 +65689,7 @@ "start": 61265, "end": 61270 }, - "ctxt": 0, - "value": "split", - "optional": false + "value": "split" } }, "arguments": [ @@ -67552,9 +65812,7 @@ "start": 61343, "end": 61349 }, - "ctxt": 0, - "value": "delete", - "optional": false + "value": "delete" } }, "arguments": [ @@ -67627,9 +65885,7 @@ "start": 61390, "end": 61411 }, - "ctxt": 0, - "value": "_findAllInlineScripts", - "optional": false + "value": "_findAllInlineScripts" } }, "arguments": [ @@ -67771,9 +66027,7 @@ "start": 61493, "end": 61501 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -67827,9 +66081,7 @@ "start": 61509, "end": 61517 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -67855,9 +66107,7 @@ "start": 61521, "end": 61525 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "alternate": { @@ -67909,9 +66159,7 @@ "start": 61558, "end": 61561 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -68028,9 +66276,7 @@ "start": 61626, "end": 61630 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ @@ -68056,9 +66302,7 @@ "start": 61634, "end": 61638 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -68216,9 +66460,7 @@ "start": 61786, "end": 61793 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -68227,9 +66469,7 @@ "start": 61794, "end": 61801 }, - "ctxt": 0, - "value": "content", - "optional": false + "value": "content" } }, "right": { @@ -68270,9 +66510,7 @@ "start": 61840, "end": 61861 }, - "ctxt": 0, - "value": "_findAllInlineScripts", - "optional": false + "value": "_findAllInlineScripts" }, "function": { "params": [ @@ -68471,9 +66709,7 @@ "start": 62003, "end": 62010 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -68521,9 +66757,7 @@ "start": 62029, "end": 62036 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -68532,9 +66766,7 @@ "start": 62037, "end": 62043 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } }, "right": { @@ -68591,9 +66823,7 @@ "start": 62094, "end": 62098 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -68724,9 +66954,7 @@ "start": 62246, "end": 62266 }, - "ctxt": 0, - "value": "_findOrCreateCspMeta", - "optional": false + "value": "_findOrCreateCspMeta" }, "function": { "params": [ @@ -68819,9 +67047,7 @@ "start": 62307, "end": 62317 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -68893,9 +67119,7 @@ "start": 62337, "end": 62348 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } }, @@ -68949,9 +67173,7 @@ "start": 62382, "end": 62389 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -68999,9 +67221,7 @@ "start": 62406, "end": 62413 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -69010,9 +67230,7 @@ "start": 62414, "end": 62418 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -69132,9 +67350,7 @@ "start": 62594, "end": 62598 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "StringLiteral", @@ -69283,9 +67499,7 @@ "start": 62745, "end": 62752 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -69480,9 +67694,7 @@ "start": 62901, "end": 62912 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -69504,9 +67716,7 @@ "start": 62933, "end": 62946 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -69528,9 +67738,7 @@ "start": 62967, "end": 62977 }, - "ctxt": 0, - "value": "insertText", - "optional": false + "value": "insertText" }, "value": { "type": "Identifier", @@ -69552,9 +67760,7 @@ "start": 62998, "end": 63010 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -69640,9 +67846,7 @@ "start": 63075, "end": 63090 }, - "ctxt": 0, - "value": "isCustomElement", - "optional": false + "value": "isCustomElement" }, "value": { "type": "Identifier", @@ -69770,9 +67974,7 @@ "start": 63204, "end": 63215 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -69815,9 +68017,7 @@ "start": 63245, "end": 63250 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "right": { @@ -69859,9 +68059,7 @@ "start": 63295, "end": 63304 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -69986,9 +68184,7 @@ "start": 63343, "end": 63350 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -69997,9 +68193,7 @@ "start": 63351, "end": 63356 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "property": { @@ -70008,9 +68202,7 @@ "start": 63357, "end": 63364 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -70098,9 +68290,7 @@ "start": 63405, "end": 63409 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -70329,9 +68519,7 @@ "start": 63633, "end": 63643 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -70411,9 +68599,7 @@ "start": 63685, "end": 63694 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -70546,9 +68732,7 @@ "start": 63813, "end": 63821 }, - "ctxt": 0, - "value": "addMedia", - "optional": false + "value": "addMedia" } }, "arguments": [ @@ -70654,9 +68838,7 @@ "start": 63901, "end": 63909 }, - "ctxt": 0, - "value": "addMedia", - "optional": false + "value": "addMedia" }, "function": { "params": [ @@ -70772,9 +68954,7 @@ "start": 63951, "end": 63956 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "property": { @@ -70783,9 +68963,7 @@ "start": 63957, "end": 63960 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -70913,9 +69091,7 @@ "start": 64056, "end": 64061 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "property": { @@ -70924,9 +69100,7 @@ "start": 64062, "end": 64065 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -70999,9 +69173,7 @@ "start": 64116, "end": 64120 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -71048,9 +69220,7 @@ "start": 64158, "end": 64166 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -71201,9 +69371,7 @@ "start": 64249, "end": 64254 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "property": { @@ -71212,9 +69380,7 @@ "start": 64255, "end": 64262 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [], @@ -71298,9 +69464,7 @@ "start": 64314, "end": 64318 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -71429,9 +69593,7 @@ "start": 64477, "end": 64488 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -71474,9 +69636,7 @@ "start": 64518, "end": 64523 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" } }, "right": { @@ -71506,9 +69666,7 @@ "start": 64563, "end": 64572 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -71606,9 +69764,7 @@ "start": 64608, "end": 64615 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -71617,9 +69773,7 @@ "start": 64616, "end": 64622 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" } } }, @@ -71725,9 +69879,7 @@ "start": 64719, "end": 64726 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -71736,9 +69888,7 @@ "start": 64727, "end": 64732 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" } } } @@ -71784,9 +69934,7 @@ "start": 64762, "end": 64774 }, - "ctxt": 0, - "value": "defaultValue", - "optional": false + "value": "defaultValue" } } }, @@ -71849,9 +69997,7 @@ "start": 64862, "end": 64870 }, - "ctxt": 0, - "value": "addSizes", - "optional": false + "value": "addSizes" } }, "arguments": [ @@ -71926,9 +70072,7 @@ "start": 64944, "end": 64952 }, - "ctxt": 0, - "value": "addSizes", - "optional": false + "value": "addSizes" }, "function": { "params": [ @@ -72023,9 +70167,7 @@ "start": 64986, "end": 64991 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" } }, "property": { @@ -72034,9 +70176,7 @@ "start": 64992, "end": 64996 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -72057,9 +70197,7 @@ "start": 65023, "end": 65025 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "Identifier", @@ -72080,9 +70218,7 @@ "start": 65054, "end": 65065 }, - "ctxt": 0, - "value": "defaultSize", - "optional": false + "value": "defaultSize" }, "value": { "type": "MemberExpression", @@ -72106,9 +70242,7 @@ "start": 65069, "end": 65081 }, - "ctxt": 0, - "value": "defaultValue", - "optional": false + "value": "defaultValue" } } }, @@ -72120,9 +70254,7 @@ "start": 65107, "end": 65112 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" }, "value": { "type": "CallExpression", @@ -72159,9 +70291,7 @@ "start": 65116, "end": 65122 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "property": { @@ -72170,9 +70300,7 @@ "start": 65123, "end": 65130 }, - "ctxt": 0, - "value": "reverse", - "optional": false + "value": "reverse" } }, "arguments": [], @@ -72212,9 +70340,7 @@ "start": 65190, "end": 65198 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -72310,9 +70436,7 @@ "start": 65292, "end": 65297 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" }, "value": { "type": "Identifier", @@ -72334,9 +70458,7 @@ "start": 65326, "end": 65337 }, - "ctxt": 0, - "value": "defaultSize", - "optional": false + "value": "defaultSize" }, "value": { "type": "Identifier", @@ -72358,9 +70480,7 @@ "start": 65366, "end": 65368 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "Identifier", @@ -72402,9 +70522,7 @@ "start": 65402, "end": 65407 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" } }, "body": { @@ -72684,9 +70802,7 @@ "start": 65593, "end": 65598 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, { @@ -72721,9 +70837,7 @@ "start": 65615, "end": 65619 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } ], @@ -72849,9 +70963,7 @@ "start": 65788, "end": 65799 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -72894,9 +71006,7 @@ "start": 65829, "end": 65836 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" } }, "right": { @@ -72926,9 +71036,7 @@ "start": 65876, "end": 65885 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -73060,9 +71168,7 @@ "start": 65928, "end": 65935 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -73071,9 +71177,7 @@ "start": 65936, "end": 65943 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" } } } @@ -73119,9 +71223,7 @@ "start": 65973, "end": 65985 }, - "ctxt": 0, - "value": "defaultValue", - "optional": false + "value": "defaultValue" } } }, @@ -73184,9 +71286,7 @@ "start": 66073, "end": 66083 }, - "ctxt": 0, - "value": "addHeights", - "optional": false + "value": "addHeights" } }, "arguments": [ @@ -73261,9 +71361,7 @@ "start": 66157, "end": 66167 }, - "ctxt": 0, - "value": "addHeights", - "optional": false + "value": "addHeights" }, "function": { "params": [ @@ -73358,9 +71456,7 @@ "start": 66201, "end": 66208 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" } }, "property": { @@ -73369,9 +71465,7 @@ "start": 66209, "end": 66213 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -73392,9 +71486,7 @@ "start": 66240, "end": 66242 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "Identifier", @@ -73415,9 +71507,7 @@ "start": 66271, "end": 66284 }, - "ctxt": 0, - "value": "defaultHeight", - "optional": false + "value": "defaultHeight" }, "value": { "type": "MemberExpression", @@ -73441,9 +71531,7 @@ "start": 66288, "end": 66300 }, - "ctxt": 0, - "value": "defaultValue", - "optional": false + "value": "defaultValue" } } }, @@ -73455,9 +71543,7 @@ "start": 66326, "end": 66333 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" }, "value": { "type": "CallExpression", @@ -73494,9 +71580,7 @@ "start": 66337, "end": 66343 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "property": { @@ -73505,9 +71589,7 @@ "start": 66344, "end": 66351 }, - "ctxt": 0, - "value": "reverse", - "optional": false + "value": "reverse" } }, "arguments": [], @@ -73547,9 +71629,7 @@ "start": 66411, "end": 66419 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" }, "function": { "params": [], @@ -73645,9 +71725,7 @@ "start": 66513, "end": 66520 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" }, "value": { "type": "Identifier", @@ -73669,9 +71747,7 @@ "start": 66549, "end": 66562 }, - "ctxt": 0, - "value": "defaultHeight", - "optional": false + "value": "defaultHeight" }, "value": { "type": "Identifier", @@ -73693,9 +71769,7 @@ "start": 66591, "end": 66593 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" }, "value": { "type": "Identifier", @@ -73737,9 +71811,7 @@ "start": 66627, "end": 66634 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" } }, "body": { @@ -74019,9 +72091,7 @@ "start": 66839, "end": 66844 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, { @@ -74056,9 +72126,7 @@ "start": 66867, "end": 66871 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } } ], @@ -74184,9 +72252,7 @@ "start": 67043, "end": 67054 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -74249,9 +72315,7 @@ "start": 67085, "end": 67088 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -74298,9 +72362,7 @@ "start": 67119, "end": 67139 }, - "ctxt": 0, - "value": "canRemoveBoilerplate", - "optional": false + "value": "canRemoveBoilerplate" } }, "right": { @@ -74345,9 +72407,7 @@ "start": 67173, "end": 67180 }, - "ctxt": 0, - "value": "counter", - "optional": false + "value": "counter" } }, "right": { @@ -74393,9 +72453,7 @@ "start": 67211, "end": 67227 }, - "ctxt": 0, - "value": "nodesToTransform", - "optional": false + "value": "nodesToTransform" } }, "right": { @@ -74440,9 +72498,7 @@ "start": 67259, "end": 67262 }, - "ctxt": 0, - "value": "ids", - "optional": false + "value": "ids" } }, "right": { @@ -74499,9 +72555,7 @@ "start": 67299, "end": 67315 }, - "ctxt": 0, - "value": "transformedNodes", - "optional": false + "value": "transformedNodes" } }, "right": { @@ -74546,9 +72600,7 @@ "start": 67347, "end": 67371 }, - "ctxt": 0, - "value": "attributeTransformations", - "optional": false + "value": "attributeTransformations" } }, "right": { @@ -74566,9 +72618,7 @@ "start": 67400, "end": 67405 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "NewExpression", @@ -74599,9 +72649,7 @@ "start": 67453, "end": 67458 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" }, "value": { "type": "NewExpression", @@ -74632,9 +72680,7 @@ "start": 67506, "end": 67513 }, - "ctxt": 0, - "value": "heights", - "optional": false + "value": "heights" }, "value": { "type": "NewExpression", @@ -74678,9 +72724,7 @@ "start": 67594, "end": 67601 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" }, "function": { "params": [ @@ -74753,9 +72797,7 @@ "start": 67634, "end": 67641 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -74877,9 +72919,7 @@ "start": 67765, "end": 67768 }, - "ctxt": 0, - "value": "ids", - "optional": false + "value": "ids" } }, "property": { @@ -74888,9 +72928,7 @@ "start": 67769, "end": 67772 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -74924,9 +72962,7 @@ "start": 67775, "end": 67782 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -74935,9 +72971,7 @@ "start": 67783, "end": 67785 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } @@ -75035,9 +73069,7 @@ "start": 67870, "end": 67886 }, - "ctxt": 0, - "value": "nodesToTransform", - "optional": false + "value": "nodesToTransform" } }, "property": { @@ -75046,9 +73078,7 @@ "start": 67887, "end": 67891 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -75099,9 +73129,7 @@ "start": 67951, "end": 67956 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" }, "function": { "params": [], @@ -75177,9 +73205,7 @@ "start": 68002, "end": 68018 }, - "ctxt": 0, - "value": "nodesToTransform", - "optional": false + "value": "nodesToTransform" } }, "body": { @@ -75280,9 +73306,7 @@ "start": 68074, "end": 68081 }, - "ctxt": 0, - "value": "entries", - "optional": false + "value": "entries" } }, "arguments": [ @@ -75307,9 +73331,7 @@ "start": 68087, "end": 68111 }, - "ctxt": 0, - "value": "attributeTransformations", - "optional": false + "value": "attributeTransformations" } } } @@ -75452,9 +73474,7 @@ "start": 68248, "end": 68261 }, - "ctxt": 0, - "value": "getOrCreateId", - "optional": false + "value": "getOrCreateId" } }, "arguments": [ @@ -75534,9 +73554,7 @@ "start": 68314, "end": 68323 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" } }, "arguments": [ @@ -75611,9 +73629,7 @@ "start": 68372, "end": 68388 }, - "ctxt": 0, - "value": "transformedNodes", - "optional": false + "value": "transformedNodes" } }, "property": { @@ -75622,9 +73638,7 @@ "start": 68389, "end": 68393 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -75703,9 +73717,7 @@ "start": 68446, "end": 68453 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -75714,9 +73726,7 @@ "start": 68454, "end": 68456 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } @@ -75770,9 +73780,7 @@ "start": 68502, "end": 68509 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -75781,9 +73789,7 @@ "start": 68510, "end": 68512 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -75841,9 +73847,7 @@ "start": 68607, "end": 68614 }, - "ctxt": 0, - "value": "counter", - "optional": false + "value": "counter" } } } @@ -75916,9 +73920,7 @@ "start": 68742, "end": 68745 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -75927,9 +73929,7 @@ "start": 68746, "end": 68751 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -75980,9 +73980,7 @@ "start": 68810, "end": 68817 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -76087,9 +74085,7 @@ "start": 68871, "end": 68891 }, - "ctxt": 0, - "value": "canRemoveBoilerplate", - "optional": false + "value": "canRemoveBoilerplate" } }, "right": { @@ -76143,9 +74139,7 @@ "start": 69046, "end": 69065 }, - "ctxt": 0, - "value": "applyToCustomStyles", - "optional": false + "value": "applyToCustomStyles" }, "function": { "params": [ @@ -76271,9 +74265,7 @@ "start": 69111, "end": 69117 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [ @@ -76298,9 +74290,7 @@ "start": 69123, "end": 69147 }, - "ctxt": 0, - "value": "attributeTransformations", - "optional": false + "value": "attributeTransformations" } } } @@ -76313,9 +74303,7 @@ "start": 69149, "end": 69153 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -76605,9 +74593,7 @@ "start": 69466, "end": 69474 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -76616,9 +74602,7 @@ "start": 69475, "end": 69481 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -76743,9 +74727,7 @@ "start": 69568, "end": 69576 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -76771,9 +74753,7 @@ "start": 69580, "end": 69584 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -76846,9 +74826,7 @@ "start": 69632, "end": 69648 }, - "ctxt": 0, - "value": "transformedNodes", - "optional": false + "value": "transformedNodes" } }, "body": { @@ -76927,9 +74905,7 @@ "start": 69699, "end": 69703 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -76954,9 +74930,7 @@ "start": 69709, "end": 69733 }, - "ctxt": 0, - "value": "attributeTransformations", - "optional": false + "value": "attributeTransformations" } } } @@ -77012,9 +74986,7 @@ "start": 69775, "end": 69782 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -77069,9 +75041,7 @@ "start": 69868, "end": 69881 }, - "ctxt": 0, - "value": "getOrCreateId", - "optional": false + "value": "getOrCreateId" }, "function": { "params": [ @@ -77203,9 +75173,7 @@ "start": 69958, "end": 69965 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -77214,9 +75182,7 @@ "start": 69966, "end": 69968 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } } } @@ -77259,9 +75225,7 @@ "start": 70013, "end": 70020 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -77293,9 +75257,7 @@ "start": 70025, "end": 70032 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -77372,9 +75334,7 @@ "start": 70079, "end": 70086 }, - "ctxt": 0, - "value": "counter", - "optional": false + "value": "counter" } } }, @@ -77415,9 +75375,7 @@ "start": 70113, "end": 70120 }, - "ctxt": 0, - "value": "counter", - "optional": false + "value": "counter" } } } @@ -77460,9 +75418,7 @@ "start": 70153, "end": 70156 }, - "ctxt": 0, - "value": "ids", - "optional": false + "value": "ids" } }, "property": { @@ -77471,9 +75427,7 @@ "start": 70157, "end": 70160 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -77533,9 +75487,7 @@ "start": 70203, "end": 70216 }, - "ctxt": 0, - "value": "getOrCreateId", - "optional": false + "value": "getOrCreateId" } }, "arguments": [ @@ -77633,9 +75585,7 @@ "start": 70317, "end": 70324 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -77766,9 +75716,7 @@ "start": 70451, "end": 70463 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -77790,9 +75738,7 @@ "start": 70484, "end": 70496 }, - "ctxt": 0, - "value": "insertBefore", - "optional": false + "value": "insertBefore" }, "value": { "type": "Identifier", @@ -77814,9 +75760,7 @@ "start": 70517, "end": 70530 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -77838,9 +75782,7 @@ "start": 70551, "end": 70562 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -77926,9 +75868,7 @@ "start": 70627, "end": 70638 }, - "ctxt": 0, - "value": "parseLayout", - "optional": false + "value": "parseLayout" }, "value": { "type": "Identifier", @@ -77950,9 +75890,7 @@ "start": 70659, "end": 70668 }, - "ctxt": 0, - "value": "cssLength", - "optional": false + "value": "cssLength" }, "value": { "type": "Identifier", @@ -77974,9 +75912,7 @@ "start": 70689, "end": 70704 }, - "ctxt": 0, - "value": "calculateHeight", - "optional": false + "value": "calculateHeight" }, "value": { "type": "Identifier", @@ -77998,9 +75934,7 @@ "start": 70725, "end": 70739 }, - "ctxt": 0, - "value": "calculateWidth", - "optional": false + "value": "calculateWidth" }, "value": { "type": "Identifier", @@ -78022,9 +75956,7 @@ "start": 70760, "end": 70775 }, - "ctxt": 0, - "value": "calculateLayout", - "optional": false + "value": "calculateLayout" }, "value": { "type": "Identifier", @@ -78046,9 +75978,7 @@ "start": 70796, "end": 70810 }, - "ctxt": 0, - "value": "getLayoutClass", - "optional": false + "value": "getLayoutClass" }, "value": { "type": "Identifier", @@ -78070,9 +76000,7 @@ "start": 70831, "end": 70850 }, - "ctxt": 0, - "value": "isLayoutSizeDefined", - "optional": false + "value": "isLayoutSizeDefined" }, "value": { "type": "Identifier", @@ -78094,9 +76022,7 @@ "start": 70871, "end": 70896 }, - "ctxt": 0, - "value": "getLayoutSizeDefinedClass", - "optional": false + "value": "getLayoutSizeDefinedClass" }, "value": { "type": "Identifier", @@ -78389,9 +76315,7 @@ "start": 71121, "end": 71128 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -78591,9 +76515,7 @@ "start": 71235, "end": 71242 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -78738,9 +76660,7 @@ "start": 71324, "end": 71331 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -78749,9 +76669,7 @@ "start": 71332, "end": 71337 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } }, "right": { @@ -78848,9 +76766,7 @@ "start": 71358, "end": 71365 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -78859,9 +76775,7 @@ "start": 71366, "end": 71371 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } }, "right": { @@ -79318,9 +77232,7 @@ "start": 71681, "end": 71688 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -79329,9 +77241,7 @@ "start": 71689, "end": 71695 }, - "ctxt": 0, - "value": "hidden", - "optional": false + "value": "hidden" } }, "right": { @@ -79424,9 +77334,7 @@ "start": 71812, "end": 71819 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -79451,9 +77359,7 @@ "start": 71824, "end": 71828 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } }, { @@ -79478,9 +77384,7 @@ "start": 71841, "end": 71848 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -79505,9 +77409,7 @@ "start": 71853, "end": 71857 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } } ], @@ -79645,9 +77547,7 @@ "start": 71974, "end": 71981 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -79672,9 +77572,7 @@ "start": 71986, "end": 71990 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } } ], @@ -79862,9 +77760,7 @@ "start": 72335, "end": 72340 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } }, "consequent": { @@ -79928,9 +77824,7 @@ "start": 72387, "end": 72394 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -79955,9 +77849,7 @@ "start": 72399, "end": 72403 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } } ], @@ -80028,9 +77920,7 @@ "start": 72463, "end": 72468 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } }, "consequent": { @@ -80094,9 +77984,7 @@ "start": 72517, "end": 72524 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -80121,9 +78009,7 @@ "start": 72529, "end": 72533 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } } ], @@ -80228,9 +78114,7 @@ "start": 72659, "end": 72666 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -80239,9 +78123,7 @@ "start": 72667, "end": 72672 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" } }, "right": { @@ -80301,9 +78183,7 @@ "start": 72682, "end": 72689 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -80312,9 +78192,7 @@ "start": 72690, "end": 72695 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" } }, "consequent": { @@ -80345,9 +78223,7 @@ "start": 72700, "end": 72707 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -80356,9 +78232,7 @@ "start": 72708, "end": 72713 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" } }, "alternate": { @@ -80416,9 +78290,7 @@ "start": 72743, "end": 72750 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -80427,9 +78299,7 @@ "start": 72751, "end": 72756 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" } }, "right": { @@ -80491,9 +78361,7 @@ "start": 72796, "end": 72803 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -80502,9 +78370,7 @@ "start": 72804, "end": 72809 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" } } } @@ -80554,9 +78420,7 @@ "start": 72846, "end": 72853 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -80756,9 +78620,7 @@ "start": 72969, "end": 72974 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } }, @@ -80791,9 +78653,7 @@ "start": 72980, "end": 72987 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, "right": { @@ -80836,9 +78696,7 @@ "start": 73000, "end": 73005 }, - "ctxt": 0, - "value": "isSet", - "optional": false + "value": "isSet" } } } @@ -80872,9 +78730,7 @@ "start": 73011, "end": 73015 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } }, "right": { @@ -80899,9 +78755,7 @@ "start": 73022, "end": 73026 }, - "ctxt": 0, - "value": "unit", - "optional": false + "value": "unit" } } } @@ -81272,9 +79126,7 @@ "start": 73373, "end": 73383 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -81489,9 +79341,7 @@ "start": 73528, "end": 73535 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, "right": { @@ -81516,9 +79366,7 @@ "start": 73540, "end": 73547 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } } }, @@ -81610,9 +79458,7 @@ "start": 73624, "end": 73629 }, - "ctxt": 0, - "value": "style", - "optional": false + "value": "style" }, "value": { "type": "TemplateLiteral", @@ -81670,9 +79516,7 @@ "start": 73673, "end": 73680 }, - "ctxt": 0, - "value": "toFixed", - "optional": false + "value": "toFixed" } }, "arguments": [ @@ -81895,9 +79739,7 @@ "start": 73867, "end": 73872 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" }, "value": { "type": "StringLiteral", @@ -81993,9 +79835,7 @@ "start": 73969, "end": 73972 }, - "ctxt": 0, - "value": "alt", - "optional": false + "value": "alt" }, "value": { "type": "StringLiteral", @@ -82036,9 +79876,7 @@ "start": 74041, "end": 74046 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" }, "value": { "type": "StringLiteral", @@ -82058,9 +79896,7 @@ "start": 74097, "end": 74101 }, - "ctxt": 0, - "value": "role", - "optional": false + "value": "role" }, "value": { "type": "StringLiteral", @@ -82080,9 +79916,7 @@ "start": 74139, "end": 74142 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "TemplateLiteral", @@ -82113,9 +79947,7 @@ "start": 74195, "end": 74202 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } }, { @@ -82140,9 +79972,7 @@ "start": 74216, "end": 74223 }, - "ctxt": 0, - "value": "numeral", - "optional": false + "value": "numeral" } } ], @@ -82303,9 +80133,7 @@ "start": 74376, "end": 74383 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -82323,9 +80151,7 @@ "start": 74404, "end": 74415 }, - "ctxt": 0, - "value": "applyLayout", - "optional": false + "value": "applyLayout" }, "value": { "type": "FunctionExpression", @@ -82459,9 +80285,7 @@ "start": 74469, "end": 74476 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -82470,9 +80294,7 @@ "start": 74477, "end": 74483 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } } } @@ -82682,9 +80504,7 @@ "start": 74624, "end": 74631 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } } }, @@ -82731,9 +80551,7 @@ "start": 74661, "end": 74666 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -83003,9 +80821,7 @@ "start": 74922, "end": 74929 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } } }, @@ -83052,9 +80868,7 @@ "start": 74959, "end": 74964 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -83201,9 +81015,7 @@ "start": 75114, "end": 75121 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -83309,9 +81121,7 @@ "start": 75164, "end": 75171 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -83602,9 +81412,7 @@ "start": 75357, "end": 75362 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -83959,9 +81767,7 @@ "start": 75724, "end": 75732 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -83983,9 +81789,7 @@ "start": 75753, "end": 75764 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -84007,9 +81811,7 @@ "start": 75785, "end": 75798 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -84031,9 +81833,7 @@ "start": 75819, "end": 75834 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -84119,9 +81919,7 @@ "start": 75899, "end": 75915 }, - "ctxt": 0, - "value": "findMetaViewport", - "optional": false + "value": "findMetaViewport" }, "value": { "type": "Identifier", @@ -84207,9 +82005,7 @@ "start": 75979, "end": 75990 }, - "ctxt": 0, - "value": "AMP_FORMATS", - "optional": false + "value": "AMP_FORMATS" }, "value": { "type": "Identifier", @@ -84231,9 +82027,7 @@ "start": 76011, "end": 76025 }, - "ctxt": 0, - "value": "AMP_CACHE_HOST", - "optional": false + "value": "AMP_CACHE_HOST" }, "value": { "type": "Identifier", @@ -84600,9 +82394,7 @@ "start": 76325, "end": 76329 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ @@ -84637,9 +82429,7 @@ "start": 76332, "end": 76338 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -84686,9 +82476,7 @@ "start": 76401, "end": 76412 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -84751,9 +82539,7 @@ "start": 76443, "end": 76450 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } }, "right": { @@ -84785,9 +82571,7 @@ "start": 76455, "end": 76474 }, - "ctxt": 0, - "value": "autoExtensionImport", - "optional": false + "value": "autoExtensionImport" } }, "right": { @@ -84833,9 +82617,7 @@ "start": 76511, "end": 76517 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "right": { @@ -84867,9 +82649,7 @@ "start": 76522, "end": 76528 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "right": { @@ -84917,9 +82697,7 @@ "start": 76560, "end": 76564 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -84957,9 +82735,7 @@ "start": 76569, "end": 76572 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -84968,9 +82744,7 @@ "start": 76573, "end": 76576 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -85023,9 +82797,7 @@ "start": 76628, "end": 76658 }, - "ctxt": 0, - "value": "experimentBindAttributeEnabled", - "optional": false + "value": "experimentBindAttributeEnabled" } }, "right": { @@ -85057,9 +82829,7 @@ "start": 76663, "end": 76686 }, - "ctxt": 0, - "value": "experimentBindAttribute", - "optional": false + "value": "experimentBindAttribute" } }, "right": { @@ -85105,9 +82875,7 @@ "start": 76722, "end": 76739 }, - "ctxt": 0, - "value": "extensionVersions", - "optional": false + "value": "extensionVersions" } }, "right": { @@ -85139,9 +82907,7 @@ "start": 76744, "end": 76761 }, - "ctxt": 0, - "value": "extensionVersions", - "optional": false + "value": "extensionVersions" } }, "right": { @@ -85172,9 +82938,7 @@ "start": 76802, "end": 76822 }, - "ctxt": 0, - "value": "createExtensionsSpec", - "optional": false + "value": "createExtensionsSpec" }, "function": { "params": [ @@ -85261,9 +83025,7 @@ "start": 76860, "end": 76874 }, - "ctxt": 0, - "value": "validatorRules", - "optional": false + "value": "validatorRules" } }, "definite": false @@ -85382,9 +83144,7 @@ "start": 76953, "end": 76963 }, - "ctxt": 0, - "value": "extensions", - "optional": false + "value": "extensions" } }, "body": { @@ -85436,9 +83196,7 @@ "start": 76997, "end": 77007 }, - "ctxt": 0, - "value": "htmlFormat", - "optional": false + "value": "htmlFormat" } }, "property": { @@ -85447,9 +83205,7 @@ "start": 77008, "end": 77016 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -85474,9 +83230,7 @@ "start": 77022, "end": 77028 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -85526,9 +83280,7 @@ "start": 77063, "end": 77066 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -85556,9 +83308,7 @@ "start": 77069, "end": 77073 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -85579,9 +83329,7 @@ "start": 77109, "end": 77113 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "MemberExpression", @@ -85605,9 +83353,7 @@ "start": 77117, "end": 77121 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -85619,9 +83365,7 @@ "start": 77155, "end": 77159 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" }, "value": { "type": "ConditionalExpression", @@ -85658,9 +83402,7 @@ "start": 77163, "end": 77176 }, - "ctxt": 0, - "value": "extensionType", - "optional": false + "value": "extensionType" } }, "right": { @@ -85701,9 +83443,7 @@ "start": 77271, "end": 77278 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" }, "value": { "type": "CallExpression", @@ -85740,9 +83480,7 @@ "start": 77282, "end": 77289 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "property": { @@ -85751,9 +83489,7 @@ "start": 77290, "end": 77296 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -86058,9 +83794,7 @@ "start": 77554, "end": 77570 }, - "ctxt": 0, - "value": "getTagsForFormat", - "optional": false + "value": "getTagsForFormat" } }, "arguments": [ @@ -86085,9 +83819,7 @@ "start": 77576, "end": 77582 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -86164,9 +83896,7 @@ "start": 77623, "end": 77630 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "property": { @@ -86175,9 +83905,7 @@ "start": 77631, "end": 77642 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -86222,9 +83950,7 @@ "start": 77676, "end": 77686 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -86307,9 +84033,7 @@ "start": 77736, "end": 77753 }, - "ctxt": 0, - "value": "requiresExtension", - "optional": false + "value": "requiresExtension" } }, "right": { @@ -86378,9 +84102,7 @@ "start": 77795, "end": 77801 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -86448,9 +84170,7 @@ "start": 77811, "end": 77819 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -86518,9 +84238,7 @@ "start": 77856, "end": 77859 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -86670,9 +84388,7 @@ "start": 77977, "end": 77982 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "body": { @@ -86718,9 +84434,7 @@ "start": 78020, "end": 78023 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -86748,9 +84462,7 @@ "start": 78026, "end": 78030 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -86800,9 +84512,7 @@ "start": 78069, "end": 78086 }, - "ctxt": 0, - "value": "requiresExtension", - "optional": false + "value": "requiresExtension" } }, "right": { @@ -86843,9 +84553,7 @@ "start": 78092, "end": 78095 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -86873,9 +84581,7 @@ "start": 78098, "end": 78102 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -86926,9 +84632,7 @@ "start": 78169, "end": 78186 }, - "ctxt": 0, - "value": "requiresExtension", - "optional": false + "value": "requiresExtension" } }, "right": { @@ -86966,9 +84670,7 @@ "start": 78192, "end": 78209 }, - "ctxt": 0, - "value": "requiresExtension", - "optional": false + "value": "requiresExtension" } }, "property": { @@ -86977,9 +84679,7 @@ "start": 78210, "end": 78216 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -87064,9 +84764,7 @@ "start": 78268, "end": 78271 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -87134,9 +84832,7 @@ "start": 78316, "end": 78320 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -87192,9 +84888,7 @@ "start": 78359, "end": 78362 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -87273,9 +84967,7 @@ "start": 78433, "end": 78437 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -87284,9 +84976,7 @@ "start": 78438, "end": 78448 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -87348,9 +85038,7 @@ "start": 78491, "end": 78494 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -87391,9 +85079,7 @@ "start": 78497, "end": 78501 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -87402,9 +85088,7 @@ "start": 78502, "end": 78511 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -87457,9 +85141,7 @@ "start": 78517, "end": 78521 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -87468,9 +85150,7 @@ "start": 78522, "end": 78528 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -87534,9 +85214,7 @@ "start": 78617, "end": 78620 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -87594,9 +85272,7 @@ "start": 78702, "end": 78715 }, - "ctxt": 0, - "value": "extensionsMap", - "optional": false + "value": "extensionsMap" }, "value": { "type": "Identifier", @@ -87617,9 +85293,7 @@ "start": 78744, "end": 78766 }, - "ctxt": 0, - "value": "tagToExtensionsMapping", - "optional": false + "value": "tagToExtensionsMapping" }, "value": { "type": "Identifier", @@ -87640,9 +85314,7 @@ "start": 78795, "end": 78816 }, - "ctxt": 0, - "value": "tagToAttributeMapping", - "optional": false + "value": "tagToAttributeMapping" }, "value": { "type": "Identifier", @@ -87663,9 +85335,7 @@ "start": 78845, "end": 78870 }, - "ctxt": 0, - "value": "tagToBindAttributeMapping", - "optional": false + "value": "tagToBindAttributeMapping" }, "value": { "type": "Identifier", @@ -87707,9 +85377,7 @@ "start": 78936, "end": 78945 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -87798,9 +85466,7 @@ "start": 78984, "end": 78991 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } } }, @@ -87859,9 +85525,7 @@ "start": 79075, "end": 79089 }, - "ctxt": 0, - "value": "validatorRules", - "optional": false + "value": "validatorRules" } } }, @@ -87911,9 +85575,7 @@ "start": 79122, "end": 79126 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -87922,9 +85584,7 @@ "start": 79127, "end": 79132 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -87988,9 +85648,7 @@ "start": 79276, "end": 79290 }, - "ctxt": 0, - "value": "extensionSpec_", - "optional": false + "value": "extensionSpec_" } } }, @@ -88034,9 +85692,7 @@ "start": 79323, "end": 79337 }, - "ctxt": 0, - "value": "extensionSpec_", - "optional": false + "value": "extensionSpec_" } }, "right": { @@ -88065,9 +85721,7 @@ "start": 79345, "end": 79365 }, - "ctxt": 0, - "value": "createExtensionsSpec", - "optional": false + "value": "createExtensionsSpec" } }, "arguments": [ @@ -88135,9 +85789,7 @@ "start": 79418, "end": 79426 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -88162,9 +85814,7 @@ "start": 79432, "end": 79438 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -88218,9 +85868,7 @@ "start": 79472, "end": 79476 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -88229,9 +85877,7 @@ "start": 79477, "end": 79482 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -88268,9 +85914,7 @@ "start": 79518, "end": 79524 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -88757,9 +86401,7 @@ "start": 79923, "end": 79973 }, - "ctxt": 0, - "value": "findExistingExtensionsAndExtensionsToImportInHead_", - "optional": false + "value": "findExistingExtensionsAndExtensionsToImportInHead_" } }, "arguments": [ @@ -88844,9 +86486,7 @@ "start": 80015, "end": 80044 }, - "ctxt": 0, - "value": "findExtensionsToImportInBody_", - "optional": false + "value": "findExtensionsToImportInBody_" } }, "arguments": [ @@ -88916,9 +86556,7 @@ "start": 80078, "end": 80084 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -89149,9 +86787,7 @@ "start": 80287, "end": 80290 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -89256,9 +86892,7 @@ "start": 80399, "end": 80413 }, - "ctxt": 0, - "value": "extensionSpec_", - "optional": false + "value": "extensionSpec_" } }, "property": { @@ -89267,9 +86901,7 @@ "start": 80414, "end": 80427 }, - "ctxt": 0, - "value": "extensionsMap", - "optional": false + "value": "extensionsMap" } }, "property": { @@ -89278,9 +86910,7 @@ "start": 80428, "end": 80431 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -89315,9 +86945,7 @@ "start": 80434, "end": 80438 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -89369,9 +86997,7 @@ "start": 80472, "end": 80476 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -89380,9 +87006,7 @@ "start": 80477, "end": 80482 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -89470,9 +87094,7 @@ "start": 80539, "end": 80546 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "property": { @@ -89516,9 +87138,7 @@ "start": 80549, "end": 80556 }, - "ctxt": 0, - "value": "version", - "optional": false + "value": "version" } }, "property": { @@ -89527,9 +87147,7 @@ "start": 80557, "end": 80563 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -89579,9 +87197,7 @@ "start": 80603, "end": 80620 }, - "ctxt": 0, - "value": "extensionVersions", - "optional": false + "value": "extensionVersions" } }, "property": { @@ -89659,9 +87275,7 @@ "start": 80664, "end": 80681 }, - "ctxt": 0, - "value": "extensionVersions", - "optional": false + "value": "extensionVersions" } }, "property": { @@ -89730,9 +87344,7 @@ "start": 80775, "end": 80780 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "value": { "type": "StringLiteral", @@ -89752,9 +87364,7 @@ "start": 80814, "end": 80817 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "TemplateLiteral", @@ -89901,9 +87511,7 @@ "start": 80897, "end": 80901 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -90093,9 +87701,7 @@ "start": 81049, "end": 81099 }, - "ctxt": 0, - "value": "findExistingExtensionsAndExtensionsToImportInHead_", - "optional": false + "value": "findExistingExtensionsAndExtensionsToImportInHead_" }, "function": { "params": [ @@ -90289,9 +87895,7 @@ "start": 81213, "end": 81230 }, - "ctxt": 0, - "value": "getCustomElement_", - "optional": false + "value": "getCustomElement_" } }, "arguments": [ @@ -90374,9 +87978,7 @@ "start": 81298, "end": 81301 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -90441,9 +88043,7 @@ "start": 81342, "end": 81349 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -90491,9 +88091,7 @@ "start": 81368, "end": 81375 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -90567,9 +88165,7 @@ "start": 81432, "end": 81435 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -90624,9 +88220,7 @@ "start": 81481, "end": 81484 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -90699,9 +88293,7 @@ "start": 81546, "end": 81553 }, - "ctxt": 0, - "value": "getJson", - "optional": false + "value": "getJson" } }, "arguments": [ @@ -90760,9 +88352,7 @@ "start": 81592, "end": 81598 }, - "ctxt": 0, - "value": "vendor", - "optional": false + "value": "vendor" } }, "right": { @@ -90818,9 +88408,7 @@ "start": 81651, "end": 81654 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -90888,9 +88476,7 @@ "start": 81745, "end": 81752 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -90938,9 +88524,7 @@ "start": 81771, "end": 81778 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -91014,9 +88598,7 @@ "start": 81842, "end": 81845 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -91071,9 +88653,7 @@ "start": 81898, "end": 81901 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -91146,9 +88726,7 @@ "start": 81963, "end": 81970 }, - "ctxt": 0, - "value": "getJson", - "optional": false + "value": "getJson" } }, "arguments": [ @@ -91207,9 +88785,7 @@ "start": 82009, "end": 82017 }, - "ctxt": 0, - "value": "services", - "optional": false + "value": "services" } }, "right": { @@ -91240,9 +88816,7 @@ "start": 82023, "end": 82031 }, - "ctxt": 0, - "value": "services", - "optional": false + "value": "services" } }, "property": { @@ -91251,9 +88825,7 @@ "start": 82032, "end": 82038 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -91326,9 +88898,7 @@ "start": 82092, "end": 82100 }, - "ctxt": 0, - "value": "services", - "optional": false + "value": "services" } }, "body": { @@ -91374,9 +88944,7 @@ "start": 82146, "end": 82155 }, - "ctxt": 0, - "value": "serviceId", - "optional": false + "value": "serviceId" } }, "right": { @@ -91432,9 +89000,7 @@ "start": 82228, "end": 82231 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -91560,9 +89126,7 @@ "start": 82477, "end": 82484 }, - "ctxt": 0, - "value": "getJson", - "optional": false + "value": "getJson" }, "function": { "params": [ @@ -91668,9 +89232,7 @@ "start": 82528, "end": 82536 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -91725,9 +89287,7 @@ "start": 82577, "end": 82581 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -91800,9 +89360,7 @@ "start": 82718, "end": 82723 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -91830,9 +89388,7 @@ "start": 82726, "end": 82730 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -91905,9 +89461,7 @@ "start": 82803, "end": 82807 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -91916,9 +89470,7 @@ "start": 82808, "end": 82813 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -91958,9 +89510,7 @@ "start": 82868, "end": 82875 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } } @@ -92017,9 +89567,7 @@ "start": 82995, "end": 83024 }, - "ctxt": 0, - "value": "findExtensionsToImportInBody_", - "optional": false + "value": "findExtensionsToImportInBody_" }, "function": { "params": [ @@ -92184,9 +89732,7 @@ "start": 83135, "end": 83142 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "consequent": { @@ -92229,9 +89775,7 @@ "start": 83179, "end": 83205 }, - "ctxt": 0, - "value": "addRequiredExtensionByTag_", - "optional": false + "value": "addRequiredExtensionByTag_" } }, "arguments": [ @@ -92297,9 +89841,7 @@ "start": 83246, "end": 83279 }, - "ctxt": 0, - "value": "addRequiredExtensionByAttributes_", - "optional": false + "value": "addRequiredExtensionByAttributes_" } }, "arguments": [ @@ -92426,9 +89968,7 @@ "start": 83401, "end": 83427 }, - "ctxt": 0, - "value": "addRequiredExtensionByTag_", - "optional": false + "value": "addRequiredExtensionByTag_" }, "function": { "params": [ @@ -92550,9 +90090,7 @@ "start": 83471, "end": 83485 }, - "ctxt": 0, - "value": "extensionSpec_", - "optional": false + "value": "extensionSpec_" } }, "property": { @@ -92561,9 +90099,7 @@ "start": 83486, "end": 83508 }, - "ctxt": 0, - "value": "tagToExtensionsMapping", - "optional": false + "value": "tagToExtensionsMapping" } }, "property": { @@ -92572,9 +90108,7 @@ "start": 83509, "end": 83512 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -92602,9 +90136,7 @@ "start": 83515, "end": 83522 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -92674,9 +90206,7 @@ "start": 83580, "end": 83587 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -92737,9 +90267,7 @@ "start": 83596, "end": 83599 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -92816,9 +90344,7 @@ "start": 83653, "end": 83660 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -92859,9 +90385,7 @@ "start": 83681, "end": 83688 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -92870,9 +90394,7 @@ "start": 83689, "end": 83693 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } }, @@ -92919,9 +90441,7 @@ "start": 83723, "end": 83726 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -92955,9 +90475,7 @@ "start": 83729, "end": 83736 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -92966,9 +90484,7 @@ "start": 83737, "end": 83741 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -93006,9 +90522,7 @@ "start": 83799, "end": 83832 }, - "ctxt": 0, - "value": "addRequiredExtensionByAttributes_", - "optional": false + "value": "addRequiredExtensionByAttributes_" }, "function": { "params": [ @@ -93107,9 +90621,7 @@ "start": 83868, "end": 83875 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } }, @@ -93142,9 +90654,7 @@ "start": 83882, "end": 83889 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -93221,9 +90731,7 @@ "start": 83981, "end": 83995 }, - "ctxt": 0, - "value": "extensionSpec_", - "optional": false + "value": "extensionSpec_" } }, "property": { @@ -93232,9 +90740,7 @@ "start": 83996, "end": 84017 }, - "ctxt": 0, - "value": "tagToAttributeMapping", - "optional": false + "value": "tagToAttributeMapping" } }, "definite": false @@ -93304,9 +90810,7 @@ "start": 84051, "end": 84054 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -93334,9 +90838,7 @@ "start": 84057, "end": 84064 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -93391,9 +90893,7 @@ "start": 84095, "end": 84102 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -93474,9 +90974,7 @@ "start": 84141, "end": 84148 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -93507,9 +91005,7 @@ "start": 84151, "end": 84155 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -93574,9 +91070,7 @@ "start": 84204, "end": 84221 }, - "ctxt": 0, - "value": "requiresExtension", - "optional": false + "value": "requiresExtension" } }, "property": { @@ -93585,9 +91079,7 @@ "start": 84222, "end": 84229 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -93662,9 +91154,7 @@ "start": 84272, "end": 84275 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -93750,9 +91240,7 @@ "start": 84388, "end": 84395 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -93808,9 +91296,7 @@ "start": 84436, "end": 84439 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -93886,9 +91372,7 @@ "start": 84509, "end": 84523 }, - "ctxt": 0, - "value": "extensionSpec_", - "optional": false + "value": "extensionSpec_" } }, "property": { @@ -93897,9 +91381,7 @@ "start": 84524, "end": 84549 }, - "ctxt": 0, - "value": "tagToBindAttributeMapping", - "optional": false + "value": "tagToBindAttributeMapping" } }, "definite": false @@ -93962,9 +91444,7 @@ "start": 84588, "end": 84592 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -93992,9 +91472,7 @@ "start": 84595, "end": 84602 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -94040,9 +91518,7 @@ "start": 84631, "end": 84635 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -94110,9 +91586,7 @@ "start": 84644, "end": 84654 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -94160,9 +91634,7 @@ "start": 84665, "end": 84675 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -94236,9 +91708,7 @@ "start": 84710, "end": 84713 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -94287,9 +91757,7 @@ "start": 84777, "end": 84807 }, - "ctxt": 0, - "value": "experimentBindAttributeEnabled", - "optional": false + "value": "experimentBindAttributeEnabled" } }, "consequent": { @@ -94356,9 +91824,7 @@ "start": 84847, "end": 84850 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -94386,9 +91852,7 @@ "start": 84853, "end": 84860 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -94537,9 +92001,7 @@ "start": 84982, "end": 84992 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -94636,9 +92098,7 @@ "start": 85110, "end": 85119 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -94666,9 +92126,7 @@ "start": 85122, "end": 85128 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -94714,9 +92172,7 @@ "start": 85165, "end": 85168 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -94877,9 +92333,7 @@ "start": 85263, "end": 85270 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -94928,9 +92382,7 @@ "start": 85278, "end": 85285 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -94994,9 +92446,7 @@ "start": 85331, "end": 85338 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -95116,9 +92566,7 @@ "start": 85485, "end": 85488 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -95175,9 +92623,7 @@ "start": 85613, "end": 85630 }, - "ctxt": 0, - "value": "getCustomElement_", - "optional": false + "value": "getCustomElement_" }, "function": { "params": [ @@ -95250,9 +92696,7 @@ "start": 85662, "end": 85669 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -95362,9 +92806,7 @@ "start": 85774, "end": 85781 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -95412,9 +92854,7 @@ "start": 85805, "end": 85812 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -95543,9 +92983,7 @@ "start": 85952, "end": 85962 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -95666,9 +93104,7 @@ "start": 86105, "end": 86112 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -95799,9 +93235,7 @@ "start": 86239, "end": 86250 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -95823,9 +93257,7 @@ "start": 86271, "end": 86284 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -95847,9 +93279,7 @@ "start": 86305, "end": 86320 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -95935,9 +93365,7 @@ "start": 86385, "end": 86401 }, - "ctxt": 0, - "value": "findMetaViewport", - "optional": false + "value": "findMetaViewport" }, "value": { "type": "Identifier", @@ -96025,9 +93453,7 @@ "start": 86487, "end": 86498 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -96090,9 +93516,7 @@ "start": 86529, "end": 86533 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -96130,9 +93554,7 @@ "start": 86538, "end": 86541 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -96141,9 +93563,7 @@ "start": 86542, "end": 86545 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -96181,9 +93601,7 @@ "start": 86605, "end": 86614 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -96518,9 +93936,7 @@ "start": 86909, "end": 86919 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -96592,9 +94008,7 @@ "start": 86939, "end": 86950 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } }, @@ -96638,9 +94052,7 @@ "start": 86987, "end": 87009 }, - "ctxt": 0, - "value": "isGoogleFontsLinkNode_", - "optional": false + "value": "isGoogleFontsLinkNode_" } }, "arguments": [ @@ -96742,9 +94154,7 @@ "start": 87098, "end": 87101 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -96764,9 +94174,7 @@ "start": 87162, "end": 87166 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "StringLiteral", @@ -96786,9 +94194,7 @@ "start": 87229, "end": 87240 }, - "ctxt": 0, - "value": "crossorigin", - "optional": false + "value": "crossorigin" }, "value": { "type": "StringLiteral", @@ -96980,9 +94386,7 @@ "start": 87394, "end": 87398 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -96991,9 +94395,7 @@ "start": 87399, "end": 87404 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -97050,9 +94452,7 @@ "start": 87461, "end": 87468 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -97061,9 +94461,7 @@ "start": 87469, "end": 87473 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } }, @@ -97123,9 +94521,7 @@ "start": 87600, "end": 87622 }, - "ctxt": 0, - "value": "isGoogleFontsLinkNode_", - "optional": false + "value": "isGoogleFontsLinkNode_" }, "function": { "params": [ @@ -97212,9 +94608,7 @@ "start": 87657, "end": 87664 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -97262,9 +94656,7 @@ "start": 87681, "end": 87688 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -97273,9 +94665,7 @@ "start": 87689, "end": 87692 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "right": { @@ -97330,9 +94720,7 @@ "start": 87715, "end": 87722 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -97341,9 +94729,7 @@ "start": 87723, "end": 87727 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "property": { @@ -97352,9 +94738,7 @@ "start": 87728, "end": 87738 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -97431,9 +94815,7 @@ "start": 87817, "end": 87824 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -97628,9 +95010,7 @@ "start": 87982, "end": 88002 }, - "ctxt": 0, - "value": "fetchImageDimensions", - "optional": false + "value": "fetchImageDimensions" }, "value": { "type": "Identifier", @@ -97716,9 +95096,7 @@ "start": 88067, "end": 88073 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "value": { "type": "Identifier", @@ -97740,9 +95118,7 @@ "start": 88094, "end": 88105 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -97764,9 +95140,7 @@ "start": 88126, "end": 88139 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -97788,9 +95162,7 @@ "start": 88160, "end": 88175 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -97812,9 +95184,7 @@ "start": 88196, "end": 88204 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -97982,9 +95352,7 @@ "start": 88340, "end": 88351 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -98047,9 +95415,7 @@ "start": 88382, "end": 88385 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -98074,9 +95440,7 @@ "start": 88390, "end": 88393 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } } @@ -98113,9 +95477,7 @@ "start": 88420, "end": 88427 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } }, "right": { @@ -98154,9 +95516,7 @@ "start": 88434, "end": 88442 }, - "ctxt": 0, - "value": "markdown", - "optional": false + "value": "markdown" } } } @@ -98195,9 +95555,7 @@ "start": 88469, "end": 88481 }, - "ctxt": 0, - "value": "pathResolver", - "optional": false + "value": "pathResolver" } }, "right": { @@ -98242,9 +95600,7 @@ "start": 88492, "end": 88505 }, - "ctxt": 0, - "value": "imageBasePath", - "optional": false + "value": "imageBasePath" } } } @@ -98270,9 +95626,7 @@ "start": 88547, "end": 88556 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -98361,9 +95715,7 @@ "start": 88595, "end": 88602 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } } }, @@ -98833,9 +96185,7 @@ "start": 89080, "end": 89087 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -98891,9 +96241,7 @@ "start": 89131, "end": 89135 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -98925,9 +96273,7 @@ "start": 89141, "end": 89153 }, - "ctxt": 0, - "value": "transformImg", - "optional": false + "value": "transformImg" } }, "arguments": [ @@ -99043,9 +96389,7 @@ "start": 89274, "end": 89277 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -99092,9 +96436,7 @@ "start": 89321, "end": 89333 }, - "ctxt": 0, - "value": "transformImg", - "optional": false + "value": "transformImg" }, "function": { "params": [ @@ -99207,9 +96549,7 @@ "start": 89374, "end": 89381 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -99240,9 +96580,7 @@ "start": 89387, "end": 89394 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -99251,9 +96589,7 @@ "start": 89395, "end": 89398 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } }, @@ -99364,9 +96700,7 @@ "start": 89518, "end": 89530 }, - "ctxt": 0, - "value": "pathResolver", - "optional": false + "value": "pathResolver" } }, "property": { @@ -99375,9 +96709,7 @@ "start": 89531, "end": 89538 }, - "ctxt": 0, - "value": "resolve", - "optional": false + "value": "resolve" } }, "arguments": [ @@ -99592,9 +96924,7 @@ "start": 89701, "end": 89704 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -99603,9 +96933,7 @@ "start": 89705, "end": 89709 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -99633,9 +96961,7 @@ "start": 89712, "end": 89719 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } } @@ -99709,9 +97035,7 @@ "start": 89810, "end": 89831 }, - "ctxt": 0, - "value": "createAmpImgOrAmpAnim", - "optional": false + "value": "createAmpImgOrAmpAnim" } }, "arguments": [ @@ -99796,9 +97120,7 @@ "start": 89863, "end": 89869 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } }, @@ -99899,9 +97221,7 @@ "start": 89937, "end": 89958 }, - "ctxt": 0, - "value": "createAmpImgOrAmpAnim", - "optional": false + "value": "createAmpImgOrAmpAnim" }, "function": { "params": [ @@ -100020,9 +97340,7 @@ "start": 89999, "end": 90003 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -100140,9 +97458,7 @@ "start": 90077, "end": 90084 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -100194,9 +97510,7 @@ "start": 90109, "end": 90116 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -100205,9 +97519,7 @@ "start": 90117, "end": 90122 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -100245,9 +97557,7 @@ "start": 90127, "end": 90134 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -100256,9 +97566,7 @@ "start": 90135, "end": 90140 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -100303,9 +97611,7 @@ "start": 90153, "end": 90158 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } } } @@ -100356,9 +97662,7 @@ "start": 90183, "end": 90190 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -100367,9 +97671,7 @@ "start": 90191, "end": 90197 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } }, "right": { @@ -100407,9 +97709,7 @@ "start": 90202, "end": 90209 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -100418,9 +97718,7 @@ "start": 90210, "end": 90216 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } }, "right": { @@ -100465,9 +97763,7 @@ "start": 90229, "end": 90235 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } } @@ -100509,9 +97805,7 @@ "start": 90263, "end": 90272 }, - "ctxt": 0, - "value": "addLayout", - "optional": false + "value": "addLayout" } }, "arguments": [ @@ -100588,9 +97882,7 @@ "start": 90343, "end": 90352 }, - "ctxt": 0, - "value": "addLayout", - "optional": false + "value": "addLayout" }, "function": { "params": [ @@ -100682,9 +97974,7 @@ "start": 90387, "end": 90392 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -100759,9 +98049,7 @@ "start": 90475, "end": 90482 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -100770,9 +98058,7 @@ "start": 90483, "end": 90489 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } }, "right": { @@ -100843,9 +98129,7 @@ "start": 90540, "end": 90547 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -100976,9 +98260,7 @@ "start": 90661, "end": 90667 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" }, "value": { "type": "Identifier", @@ -101064,9 +98346,7 @@ "start": 90732, "end": 90738 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "value": { "type": "Identifier", @@ -101322,9 +98602,7 @@ "start": 90928, "end": 90939 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -101387,9 +98665,7 @@ "start": 90970, "end": 90974 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "right": { @@ -101407,9 +98683,7 @@ "start": 91003, "end": 91009 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" }, "value": { "type": "BinaryExpression", @@ -101440,9 +98714,7 @@ "start": 91013, "end": 91019 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" } }, "right": { @@ -101463,9 +98735,7 @@ "start": 91055, "end": 91070 }, - "ctxt": 0, - "value": "minifyAmpScript", - "optional": false + "value": "minifyAmpScript" }, "value": { "type": "BooleanLiteral", @@ -101484,9 +98754,7 @@ "start": 91102, "end": 91112 }, - "ctxt": 0, - "value": "minifyJSON", - "optional": false + "value": "minifyJSON" }, "value": { "type": "BooleanLiteral", @@ -101505,9 +98773,7 @@ "start": 91144, "end": 91162 }, - "ctxt": 0, - "value": "collapseWhitespace", - "optional": false + "value": "collapseWhitespace" }, "value": { "type": "BooleanLiteral", @@ -101526,9 +98792,7 @@ "start": 91194, "end": 91208 }, - "ctxt": 0, - "value": "removeComments", - "optional": false + "value": "removeComments" }, "value": { "type": "BooleanLiteral", @@ -101547,9 +98811,7 @@ "start": 91240, "end": 91261 }, - "ctxt": 0, - "value": "canCollapseWhitespace", - "optional": false + "value": "canCollapseWhitespace" }, "value": { "type": "BooleanLiteral", @@ -101568,9 +98830,7 @@ "start": 91293, "end": 91299 }, - "ctxt": 0, - "value": "inBody", - "optional": false + "value": "inBody" }, "value": { "type": "BooleanLiteral", @@ -101589,9 +98849,7 @@ "start": 91332, "end": 91352 }, - "ctxt": 0, - "value": "commentIgnorePattern", - "optional": false + "value": "commentIgnorePattern" }, "value": { "type": "Identifier", @@ -101640,9 +98898,7 @@ "start": 91404, "end": 91407 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -101680,9 +98936,7 @@ "start": 91412, "end": 91415 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -101691,9 +98945,7 @@ "start": 91416, "end": 91419 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -101731,9 +98983,7 @@ "start": 91474, "end": 91483 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -101809,9 +99059,7 @@ "start": 91519, "end": 91523 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } }, "property": { @@ -101820,9 +99068,7 @@ "start": 91524, "end": 91530 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" } } }, @@ -101923,9 +99169,7 @@ "start": 91652, "end": 91662 }, - "ctxt": 0, - "value": "minifyNode", - "optional": false + "value": "minifyNode" } }, "arguments": [ @@ -101963,9 +99207,7 @@ "start": 91671, "end": 91675 }, - "ctxt": 0, - "value": "opts", - "optional": false + "value": "opts" } } }, @@ -102114,9 +99356,7 @@ "start": 91813, "end": 91823 }, - "ctxt": 0, - "value": "minifyNode", - "optional": false + "value": "minifyNode" }, "function": { "params": [ @@ -102227,9 +99467,7 @@ "start": 91861, "end": 91865 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -102282,9 +99520,7 @@ "start": 91909, "end": 91923 }, - "ctxt": 0, - "value": "minifyTextNode", - "optional": false + "value": "minifyTextNode" } }, "arguments": [ @@ -102368,9 +99604,7 @@ "start": 91966, "end": 91970 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -102423,9 +99657,7 @@ "start": 92017, "end": 92034 }, - "ctxt": 0, - "value": "minifyCommentNode", - "optional": false + "value": "minifyCommentNode" } }, "arguments": [ @@ -102509,9 +99741,7 @@ "start": 92077, "end": 92084 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -102570,9 +99800,7 @@ "start": 92136, "end": 92152 }, - "ctxt": 0, - "value": "minifyScriptNode", - "optional": false + "value": "minifyScriptNode" } }, "arguments": [ @@ -102669,9 +99897,7 @@ "start": 92218, "end": 92224 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -102741,9 +99967,7 @@ "start": 92259, "end": 92280 }, - "ctxt": 0, - "value": "canCollapseWhitespace", - "optional": false + "value": "canCollapseWhitespace" } }, "right": { @@ -102779,9 +100003,7 @@ "start": 92290, "end": 92311 }, - "ctxt": 0, - "value": "canCollapseWhitespace", - "optional": false + "value": "canCollapseWhitespace" } }, "arguments": [ @@ -102809,9 +100031,7 @@ "start": 92314, "end": 92321 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -102863,9 +100083,7 @@ "start": 92352, "end": 92373 }, - "ctxt": 0, - "value": "canCollapseWhitespace", - "optional": false + "value": "canCollapseWhitespace" } }, "right": { @@ -102924,9 +100142,7 @@ "start": 92430, "end": 92437 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -102968,9 +100184,7 @@ "start": 92454, "end": 92461 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -103027,9 +100241,7 @@ "start": 92502, "end": 92508 }, - "ctxt": 0, - "value": "inBody", - "optional": false + "value": "inBody" } }, "right": { @@ -103079,9 +100291,7 @@ "start": 92550, "end": 92557 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -103137,9 +100347,7 @@ "start": 92598, "end": 92604 }, - "ctxt": 0, - "value": "inBody", - "optional": false + "value": "inBody" } }, "right": { @@ -103264,9 +100472,7 @@ "start": 92706, "end": 92714 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -103321,9 +100527,7 @@ "start": 92750, "end": 92754 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -103355,9 +100559,7 @@ "start": 92760, "end": 92770 }, - "ctxt": 0, - "value": "minifyNode", - "optional": false + "value": "minifyNode" } }, "arguments": [ @@ -103446,9 +100648,7 @@ "start": 92838, "end": 92841 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -103495,9 +100695,7 @@ "start": 92879, "end": 92893 }, - "ctxt": 0, - "value": "minifyTextNode", - "optional": false + "value": "minifyTextNode" }, "function": { "params": [ @@ -103615,9 +100813,7 @@ "start": 92932, "end": 92936 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -103650,9 +100846,7 @@ "start": 92943, "end": 92961 }, - "ctxt": 0, - "value": "collapseWhitespace", - "optional": false + "value": "collapseWhitespace" } } } @@ -103705,9 +100899,7 @@ "start": 93044, "end": 93065 }, - "ctxt": 0, - "value": "canCollapseWhitespace", - "optional": false + "value": "canCollapseWhitespace" } }, "consequent": { @@ -103753,9 +100945,7 @@ "start": 93095, "end": 93099 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -103800,9 +100990,7 @@ "start": 93106, "end": 93110 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -103850,9 +101038,7 @@ "start": 93161, "end": 93167 }, - "ctxt": 0, - "value": "inBody", - "optional": false + "value": "inBody" } } }, @@ -103899,9 +101085,7 @@ "start": 93197, "end": 93201 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -103939,9 +101123,7 @@ "start": 93206, "end": 93210 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -103950,9 +101132,7 @@ "start": 93211, "end": 93215 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -104005,9 +101185,7 @@ "start": 93266, "end": 93270 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "property": { @@ -104016,9 +101194,7 @@ "start": 93271, "end": 93277 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -104074,9 +101250,7 @@ "start": 93313, "end": 93317 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -104127,9 +101301,7 @@ "start": 93377, "end": 93394 }, - "ctxt": 0, - "value": "minifyCommentNode", - "optional": false + "value": "minifyCommentNode" }, "function": { "params": [ @@ -104247,9 +101419,7 @@ "start": 93433, "end": 93437 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -104282,9 +101452,7 @@ "start": 93444, "end": 93458 }, - "ctxt": 0, - "value": "removeComments", - "optional": false + "value": "removeComments" } } } @@ -104350,9 +101518,7 @@ "start": 93541, "end": 93561 }, - "ctxt": 0, - "value": "commentIgnorePattern", - "optional": false + "value": "commentIgnorePattern" } }, "property": { @@ -104361,9 +101527,7 @@ "start": 93562, "end": 93566 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -104391,9 +101555,7 @@ "start": 93569, "end": 93573 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -104455,9 +101617,7 @@ "start": 93653, "end": 93657 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -104504,9 +101664,7 @@ "start": 93701, "end": 93717 }, - "ctxt": 0, - "value": "minifyScriptNode", - "optional": false + "value": "minifyScriptNode" }, "function": { "params": [ @@ -104616,9 +101774,7 @@ "start": 93761, "end": 93767 }, - "ctxt": 0, - "value": "isJson", - "optional": false + "value": "isJson" } }, "arguments": [ @@ -104720,9 +101876,7 @@ "start": 93813, "end": 93830 }, - "ctxt": 0, - "value": "isInlineAmpScript", - "optional": false + "value": "isInlineAmpScript" } }, "arguments": [ @@ -104815,9 +101969,7 @@ "start": 93873, "end": 93881 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -104872,9 +102024,7 @@ "start": 93922, "end": 93926 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -104943,9 +102093,7 @@ "start": 94028, "end": 94038 }, - "ctxt": 0, - "value": "minifyJSON", - "optional": false + "value": "minifyJSON" } } }, @@ -104989,9 +102137,7 @@ "start": 94075, "end": 94085 }, - "ctxt": 0, - "value": "minifyJson", - "optional": false + "value": "minifyJson" } }, "arguments": [ @@ -105059,9 +102205,7 @@ "start": 94131, "end": 94146 }, - "ctxt": 0, - "value": "minifyAmpScript", - "optional": false + "value": "minifyAmpScript" } } }, @@ -105111,9 +102255,7 @@ "start": 94189, "end": 94204 }, - "ctxt": 0, - "value": "minifyAmpScript", - "optional": false + "value": "minifyAmpScript" } }, "arguments": [ @@ -105169,9 +102311,7 @@ "start": 94296, "end": 94311 }, - "ctxt": 0, - "value": "minifyAmpScript", - "optional": false + "value": "minifyAmpScript" }, "function": { "params": [ @@ -105298,9 +102438,7 @@ "start": 94387, "end": 94391 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -105351,9 +102489,7 @@ "start": 94428, "end": 94433 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "consequent": { @@ -105402,9 +102538,7 @@ "start": 94470, "end": 94473 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -105413,9 +102547,7 @@ "start": 94474, "end": 94478 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -105455,9 +102587,7 @@ "start": 94519, "end": 94523 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -105498,9 +102628,7 @@ "start": 94530, "end": 94535 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "property": { @@ -105509,9 +102637,7 @@ "start": 94536, "end": 94540 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, { @@ -105542,9 +102668,7 @@ "start": 94547, "end": 94552 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "property": { @@ -105553,9 +102677,7 @@ "start": 94553, "end": 94560 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } ], @@ -105644,9 +102766,7 @@ "start": 94652, "end": 94656 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -105671,9 +102791,7 @@ "start": 94661, "end": 94665 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } } } @@ -105743,9 +102861,7 @@ "start": 94729, "end": 94732 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -105754,9 +102870,7 @@ "start": 94733, "end": 94737 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -105820,9 +102934,7 @@ "start": 94835, "end": 94845 }, - "ctxt": 0, - "value": "minifyJson", - "optional": false + "value": "minifyJson" }, "function": { "params": [ @@ -105930,9 +103042,7 @@ "start": 94914, "end": 94923 }, - "ctxt": 0, - "value": "stringify", - "optional": false + "value": "stringify" } }, "arguments": [ @@ -105967,9 +103077,7 @@ "start": 94929, "end": 94934 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -105997,9 +103105,7 @@ "start": 94937, "end": 94941 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -106131,9 +103237,7 @@ "start": 95015, "end": 95019 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -106213,9 +103317,7 @@ "start": 95087, "end": 95090 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -106224,9 +103326,7 @@ "start": 95091, "end": 95095 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -106266,9 +103366,7 @@ "start": 95114, "end": 95118 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -106307,9 +103405,7 @@ "start": 95176, "end": 95193 }, - "ctxt": 0, - "value": "isInlineAmpScript", - "optional": false + "value": "isInlineAmpScript" }, "function": { "params": [ @@ -106389,9 +103485,7 @@ "start": 95228, "end": 95235 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -106429,9 +103523,7 @@ "start": 95241, "end": 95248 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -106440,9 +103532,7 @@ "start": 95249, "end": 95253 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -106491,9 +103581,7 @@ "start": 95276, "end": 95283 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -106502,9 +103590,7 @@ "start": 95284, "end": 95290 }, - "ctxt": 0, - "value": "target", - "optional": false + "value": "target" } }, "right": { @@ -106545,9 +103631,7 @@ "start": 95342, "end": 95348 }, - "ctxt": 0, - "value": "isJson", - "optional": false + "value": "isJson" }, "function": { "params": [ @@ -106620,9 +103704,7 @@ "start": 95383, "end": 95390 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -106673,9 +103755,7 @@ "start": 95397, "end": 95404 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -106684,9 +103764,7 @@ "start": 95405, "end": 95409 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -106734,9 +103812,7 @@ "start": 95438, "end": 95445 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -106745,9 +103821,7 @@ "start": 95446, "end": 95450 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -106790,9 +103864,7 @@ "start": 95512, "end": 95533 }, - "ctxt": 0, - "value": "canCollapseWhitespace", - "optional": false + "value": "canCollapseWhitespace" }, "function": { "params": [ @@ -106995,9 +104067,7 @@ "start": 95667, "end": 95684 }, - "ctxt": 0, - "value": "canTrimWhitespace", - "optional": false + "value": "canTrimWhitespace" }, "function": { "params": [ @@ -107160,9 +104230,7 @@ "start": 95795, "end": 95802 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -107293,9 +104361,7 @@ "start": 95918, "end": 95930 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -107317,9 +104383,7 @@ "start": 95951, "end": 95959 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -107341,9 +104405,7 @@ "start": 95980, "end": 95995 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -107429,9 +104491,7 @@ "start": 96060, "end": 96079 }, - "ctxt": 0, - "value": "skipNodeAndChildren", - "optional": false + "value": "skipNodeAndChildren" }, "value": { "type": "Identifier", @@ -107517,9 +104577,7 @@ "start": 96143, "end": 96161 }, - "ctxt": 0, - "value": "isValidImageSrcURL", - "optional": false + "value": "isValidImageSrcURL" }, "value": { "type": "Identifier", @@ -108085,9 +105143,7 @@ "start": 96460, "end": 96471 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -108229,9 +105285,7 @@ "start": 96517, "end": 96527 }, - "ctxt": 0, - "value": "widthList_", - "optional": false + "value": "widthList_" } }, "right": { @@ -108276,9 +105330,7 @@ "start": 96559, "end": 96571 }, - "ctxt": 0, - "value": "setBaseWidth", - "optional": false + "value": "setBaseWidth" } }, "arguments": [ @@ -108342,9 +105394,7 @@ "start": 96615, "end": 96627 }, - "ctxt": 0, - "value": "setBaseWidth", - "optional": false + "value": "setBaseWidth" }, "function": { "params": [ @@ -108499,9 +105549,7 @@ "start": 96673, "end": 96683 }, - "ctxt": 0, - "value": "widthList_", - "optional": false + "value": "widthList_" } }, "property": { @@ -108510,9 +105558,7 @@ "start": 96684, "end": 96690 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -108817,9 +105863,7 @@ "start": 96910, "end": 96917 }, - "ctxt": 0, - "value": "roundUp", - "optional": false + "value": "roundUp" } }, "arguments": [ @@ -109058,9 +106102,7 @@ "start": 97103, "end": 97113 }, - "ctxt": 0, - "value": "widthList_", - "optional": false + "value": "widthList_" } }, "property": { @@ -109069,9 +106111,7 @@ "start": 97114, "end": 97118 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -109161,9 +106201,7 @@ "start": 97234, "end": 97243 }, - "ctxt": 0, - "value": "moreWidth", - "optional": false + "value": "moreWidth" }, "function": { "params": [], @@ -109219,9 +106257,7 @@ "start": 97280, "end": 97290 }, - "ctxt": 0, - "value": "widthList_", - "optional": false + "value": "widthList_" } }, "property": { @@ -109230,9 +106266,7 @@ "start": 97291, "end": 97297 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -109272,9 +106306,7 @@ "start": 97336, "end": 97345 }, - "ctxt": 0, - "value": "nextWidth", - "optional": false + "value": "nextWidth" }, "function": { "params": [], @@ -109330,9 +106362,7 @@ "start": 97382, "end": 97392 }, - "ctxt": 0, - "value": "widthList_", - "optional": false + "value": "widthList_" } }, "property": { @@ -109341,9 +106371,7 @@ "start": 97393, "end": 97396 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -109376,9 +106404,7 @@ "start": 97433, "end": 97440 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" }, "function": { "params": [], @@ -109434,9 +106460,7 @@ "start": 97477, "end": 97487 }, - "ctxt": 0, - "value": "widthList_", - "optional": false + "value": "widthList_" } }, "property": { @@ -109445,9 +106469,7 @@ "start": 97488, "end": 97494 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -109487,9 +106509,7 @@ "start": 97533, "end": 97540 }, - "ctxt": 0, - "value": "roundUp", - "optional": false + "value": "roundUp" }, "function": { "params": [ @@ -109707,9 +106727,7 @@ "start": 97740, "end": 97746 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -109779,9 +106797,7 @@ "start": 97835, "end": 97846 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -109844,9 +106860,7 @@ "start": 97877, "end": 97880 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -109871,9 +106885,7 @@ "start": 97885, "end": 97888 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } } @@ -109910,9 +106922,7 @@ "start": 97915, "end": 97929 }, - "ctxt": 0, - "value": "imageOptimizer", - "optional": false + "value": "imageOptimizer" } }, "right": { @@ -109937,9 +106947,7 @@ "start": 97934, "end": 97948 }, - "ctxt": 0, - "value": "imageOptimizer", - "optional": false + "value": "imageOptimizer" } } } @@ -109976,9 +106984,7 @@ "start": 97975, "end": 97988 }, - "ctxt": 0, - "value": "maxImageWidth", - "optional": false + "value": "maxImageWidth" } }, "right": { @@ -110025,9 +107031,7 @@ "start": 98019, "end": 98034 }, - "ctxt": 0, - "value": "maxSrcsetValues", - "optional": false + "value": "maxSrcsetValues" } }, "right": { @@ -110059,9 +107063,7 @@ "start": 98079, "end": 98088 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -110131,9 +107133,7 @@ "start": 98124, "end": 98138 }, - "ctxt": 0, - "value": "imageOptimizer", - "optional": false + "value": "imageOptimizer" } } }, @@ -110465,9 +107465,7 @@ "start": 98419, "end": 98426 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -110593,9 +107591,7 @@ "start": 98549, "end": 98556 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -110651,9 +107647,7 @@ "start": 98608, "end": 98612 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -110685,9 +107679,7 @@ "start": 98618, "end": 98631 }, - "ctxt": 0, - "value": "optimizeImage", - "optional": false + "value": "optimizeImage" } }, "arguments": [ @@ -110817,9 +107809,7 @@ "start": 98786, "end": 98789 }, - "ctxt": 0, - "value": "all", - "optional": false + "value": "all" } }, "arguments": [ @@ -110866,9 +107856,7 @@ "start": 98833, "end": 98846 }, - "ctxt": 0, - "value": "optimizeImage", - "optional": false + "value": "optimizeImage" }, "function": { "params": [ @@ -111113,9 +108101,7 @@ "start": 99072, "end": 99079 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -111124,9 +108110,7 @@ "start": 99080, "end": 99083 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "definite": false @@ -111236,9 +108220,7 @@ "start": 99197, "end": 99205 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -111332,9 +108314,7 @@ "start": 99299, "end": 99306 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -111343,9 +108323,7 @@ "start": 99307, "end": 99312 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "definite": false @@ -111407,9 +108385,7 @@ "start": 99351, "end": 99359 }, - "ctxt": 0, - "value": "parseInt", - "optional": false + "value": "parseInt" } }, "arguments": [ @@ -111484,9 +108460,7 @@ "start": 99472, "end": 99478 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" }, "value": { "type": "Identifier", @@ -111508,9 +108482,7 @@ "start": 99507, "end": 99513 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "Identifier", @@ -111532,9 +108504,7 @@ "start": 99542, "end": 99547 }, - "ctxt": 0, - "value": "sizes", - "optional": false + "value": "sizes" }, "value": { "type": "Identifier", @@ -111574,9 +108544,7 @@ "start": 99577, "end": 99584 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "definite": false @@ -111854,9 +108822,7 @@ "start": 99797, "end": 99810 }, - "ctxt": 0, - "value": "maxImageWidth", - "optional": false + "value": "maxImageWidth" } } }, @@ -111881,9 +108847,7 @@ "start": 99817, "end": 99832 }, - "ctxt": 0, - "value": "maxSrcsetValues", - "optional": false + "value": "maxSrcsetValues" } } } @@ -111936,9 +108900,7 @@ "start": 99862, "end": 99869 }, - "ctxt": 0, - "value": "isValid", - "optional": false + "value": "isValid" } }, "arguments": [], @@ -112040,9 +109002,7 @@ "start": 99989, "end": 99998 }, - "ctxt": 0, - "value": "moreWidth", - "optional": false + "value": "moreWidth" } }, "arguments": [], @@ -112112,9 +109072,7 @@ "start": 100040, "end": 100049 }, - "ctxt": 0, - "value": "nextWidth", - "optional": false + "value": "nextWidth" } }, "arguments": [], @@ -112197,9 +109155,7 @@ "start": 100132, "end": 100146 }, - "ctxt": 0, - "value": "imageOptimizer", - "optional": false + "value": "imageOptimizer" } }, "arguments": [ @@ -112347,9 +109303,7 @@ "start": 100243, "end": 100252 }, - "ctxt": 0, - "value": "moreWidth", - "optional": false + "value": "moreWidth" } }, "arguments": [], @@ -112489,9 +109443,7 @@ "start": 100370, "end": 100373 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -112500,9 +109452,7 @@ "start": 100374, "end": 100379 }, - "ctxt": 0, - "value": "error", - "optional": false + "value": "error" } }, "arguments": [ @@ -112621,9 +109571,7 @@ "start": 100524, "end": 100531 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -112632,9 +109580,7 @@ "start": 100532, "end": 100538 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" } }, "right": { @@ -112687,9 +109633,7 @@ "start": 100573, "end": 100576 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -112698,9 +109642,7 @@ "start": 100577, "end": 100582 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -112759,9 +109701,7 @@ "start": 100613, "end": 100620 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -112770,9 +109710,7 @@ "start": 100621, "end": 100627 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" } } } @@ -112840,9 +109778,7 @@ "start": 100697, "end": 100704 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -112973,9 +109909,7 @@ "start": 100824, "end": 100835 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -112997,9 +109931,7 @@ "start": 100856, "end": 100869 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -113021,9 +109953,7 @@ "start": 100890, "end": 100902 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -113045,9 +109975,7 @@ "start": 100923, "end": 100934 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -113069,9 +109997,7 @@ "start": 100955, "end": 100963 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -113093,9 +110019,7 @@ "start": 100984, "end": 100999 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -113181,9 +110105,7 @@ "start": 101064, "end": 101080 }, - "ctxt": 0, - "value": "findMetaViewport", - "optional": false + "value": "findMetaViewport" }, "value": { "type": "Identifier", @@ -113205,9 +110127,7 @@ "start": 101101, "end": 101120 }, - "ctxt": 0, - "value": "skipNodeAndChildren", - "optional": false + "value": "skipNodeAndChildren" }, "value": { "type": "Identifier", @@ -113293,9 +110213,7 @@ "start": 101184, "end": 101202 }, - "ctxt": 0, - "value": "isValidImageSrcURL", - "optional": false + "value": "isValidImageSrcURL" }, "value": { "type": "Identifier", @@ -113527,9 +110445,7 @@ "start": 101367, "end": 101378 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -113592,9 +110508,7 @@ "start": 101409, "end": 101412 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -113619,9 +110533,7 @@ "start": 101417, "end": 101420 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } } @@ -113658,9 +110570,7 @@ "start": 101447, "end": 101454 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } }, "right": { @@ -113692,9 +110602,7 @@ "start": 101459, "end": 101475 }, - "ctxt": 0, - "value": "preloadHeroImage", - "optional": false + "value": "preloadHeroImage" } }, "right": { @@ -113725,9 +110633,7 @@ "start": 101526, "end": 101535 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -113823,9 +110729,7 @@ "start": 101574, "end": 101581 }, - "ctxt": 0, - "value": "enabled", - "optional": false + "value": "enabled" } } }, @@ -113858,9 +110762,7 @@ "start": 101587, "end": 101603 }, - "ctxt": 0, - "value": "preloadHeroImage", - "optional": false + "value": "preloadHeroImage" } }, "right": { @@ -114237,9 +111139,7 @@ "start": 101879, "end": 101893 }, - "ctxt": 0, - "value": "findHeroImages", - "optional": false + "value": "findHeroImages" } }, "arguments": [ @@ -114377,9 +111277,7 @@ "start": 101962, "end": 101968 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -114466,9 +111364,7 @@ "start": 102032, "end": 102035 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -114477,9 +111373,7 @@ "start": 102036, "end": 102040 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -114647,9 +111541,7 @@ "start": 102223, "end": 102233 }, - "ctxt": 0, - "value": "isAmpStory", - "optional": false + "value": "isAmpStory" } }, "arguments": [ @@ -114871,9 +111763,7 @@ "start": 102357, "end": 102372 }, - "ctxt": 0, - "value": "generatePreload", - "optional": false + "value": "generatePreload" } }, "arguments": [ @@ -114984,9 +111874,7 @@ "start": 102450, "end": 102461 }, - "ctxt": 0, - "value": "generateImg", - "optional": false + "value": "generateImg" } }, "arguments": [ @@ -115014,9 +111902,7 @@ "start": 102464, "end": 102470 }, - "ctxt": 0, - "value": "ampImg", - "optional": false + "value": "ampImg" } } } @@ -115057,9 +111943,7 @@ "start": 102554, "end": 102569 }, - "ctxt": 0, - "value": "generatePreload", - "optional": false + "value": "generatePreload" }, "function": { "params": [ @@ -115163,9 +112047,7 @@ "start": 102607, "end": 102613 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" } }, "consequent": { @@ -115214,9 +112096,7 @@ "start": 102646, "end": 102649 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -115225,9 +112105,7 @@ "start": 102650, "end": 102655 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -115267,9 +112145,7 @@ "start": 102820, "end": 102823 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -115321,9 +112197,7 @@ "start": 102908, "end": 102931 }, - "ctxt": 0, - "value": "hasExistingImagePreload", - "optional": false + "value": "hasExistingImagePreload" } }, "arguments": [ @@ -115364,9 +112238,7 @@ "start": 102937, "end": 102940 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -115467,9 +112339,7 @@ "start": 103064, "end": 103067 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -115489,9 +112359,7 @@ "start": 103104, "end": 103108 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "MemberExpression", @@ -115515,9 +112383,7 @@ "start": 103112, "end": 103115 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } }, @@ -115529,9 +112395,7 @@ "start": 103141, "end": 103143 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "StringLiteral", @@ -115602,9 +112466,7 @@ "start": 103244, "end": 103249 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "consequent": { @@ -115656,9 +112518,7 @@ "start": 103279, "end": 103286 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -115667,9 +112527,7 @@ "start": 103287, "end": 103292 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "right": { @@ -115694,9 +112552,7 @@ "start": 103297, "end": 103302 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } } } @@ -115798,9 +112654,7 @@ "start": 103390, "end": 103413 }, - "ctxt": 0, - "value": "hasExistingImagePreload", - "optional": false + "value": "hasExistingImagePreload" }, "function": { "params": [ @@ -115898,9 +112752,7 @@ "start": 103451, "end": 103459 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -115909,9 +112761,7 @@ "start": 103460, "end": 103464 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -115986,9 +112836,7 @@ "start": 103503, "end": 103510 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -116156,9 +113004,7 @@ "start": 103733, "end": 103740 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -116167,9 +113013,7 @@ "start": 103741, "end": 103744 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "right": { @@ -116250,9 +113094,7 @@ "start": 103859, "end": 103866 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -116261,9 +113103,7 @@ "start": 103867, "end": 103869 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" } }, "right": { @@ -116344,9 +113184,7 @@ "start": 103985, "end": 103992 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -116355,9 +113193,7 @@ "start": 103993, "end": 103997 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "right": { @@ -116411,9 +113247,7 @@ "start": 104062, "end": 104076 }, - "ctxt": 0, - "value": "findHeroImages", - "optional": false + "value": "findHeroImages" }, "function": { "params": [ @@ -116640,9 +113474,7 @@ "start": 104249, "end": 104269 }, - "ctxt": 0, - "value": "addImageWithDataHero", - "optional": false + "value": "addImageWithDataHero" } }, "arguments": [ @@ -116736,9 +113568,7 @@ "start": 104313, "end": 104319 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -116810,9 +113640,7 @@ "start": 104366, "end": 104386 }, - "ctxt": 0, - "value": "isCandidateHeroImage", - "optional": false + "value": "isCandidateHeroImage" } }, "arguments": [ @@ -116873,9 +113701,7 @@ "start": 104446, "end": 104456 }, - "ctxt": 0, - "value": "isTemplate", - "optional": false + "value": "isTemplate" } }, "arguments": [ @@ -117074,9 +113900,7 @@ "start": 104644, "end": 104650 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -117216,9 +114040,7 @@ "start": 104863, "end": 104883 }, - "ctxt": 0, - "value": "addImageWithDataHero", - "optional": false + "value": "addImageWithDataHero" }, "function": { "params": [ @@ -117317,9 +114139,7 @@ "start": 104918, "end": 104925 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -117418,9 +114238,7 @@ "start": 105024, "end": 105027 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "Identifier", @@ -117442,9 +114260,7 @@ "start": 105060, "end": 105065 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "Identifier", @@ -117466,9 +114282,7 @@ "start": 105098, "end": 105104 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" }, "value": { "type": "Identifier", @@ -117508,9 +114322,7 @@ "start": 105138, "end": 105145 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "definite": false @@ -117552,9 +114364,7 @@ "start": 105173, "end": 105177 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -117575,9 +114385,7 @@ "start": 105208, "end": 105214 }, - "ctxt": 0, - "value": "ampImg", - "optional": false + "value": "ampImg" }, "value": { "type": "Identifier", @@ -117598,9 +114406,7 @@ "start": 105247, "end": 105250 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "Identifier", @@ -117621,9 +114427,7 @@ "start": 105283, "end": 105288 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "Identifier", @@ -117644,9 +114448,7 @@ "start": 105321, "end": 105327 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" }, "value": { "type": "Identifier", @@ -117707,9 +114509,7 @@ "start": 105394, "end": 105405 }, - "ctxt": 0, - "value": "isAmpIframe", - "optional": false + "value": "isAmpIframe" } }, "arguments": [ @@ -117837,9 +114637,7 @@ "start": 105472, "end": 105491 }, - "ctxt": 0, - "value": "getPlaceholderImage", - "optional": false + "value": "getPlaceholderImage" } }, "arguments": [ @@ -117922,9 +114720,7 @@ "start": 105559, "end": 105563 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -117980,9 +114776,7 @@ "start": 105649, "end": 105669 }, - "ctxt": 0, - "value": "isCandidateHeroImage", - "optional": false + "value": "isCandidateHeroImage" }, "function": { "params": [ @@ -118055,9 +114849,7 @@ "start": 105702, "end": 105709 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } }, @@ -118142,9 +114934,7 @@ "start": 105803, "end": 105810 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "consequent": { @@ -118175,9 +114965,7 @@ "start": 105815, "end": 105822 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -118186,9 +114974,7 @@ "start": 105823, "end": 105829 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } }, "alternate": { @@ -118299,9 +115085,7 @@ "start": 105965, "end": 105972 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -118354,9 +115138,7 @@ "start": 106026, "end": 106055 }, - "ctxt": 0, - "value": "isCandidateImageForPreloading", - "optional": false + "value": "isCandidateImageForPreloading" } }, "arguments": [ @@ -118416,9 +115198,7 @@ "start": 106107, "end": 106114 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -118471,9 +115251,7 @@ "start": 106170, "end": 106197 }, - "ctxt": 0, - "value": "isCandidateVideoPosterImage", - "optional": false + "value": "isCandidateVideoPosterImage" } }, "arguments": [ @@ -118530,9 +115308,7 @@ "start": 106252, "end": 106263 }, - "ctxt": 0, - "value": "isAmpIframe", - "optional": false + "value": "isAmpIframe" } }, "arguments": [ @@ -118592,9 +115368,7 @@ "start": 106306, "end": 106339 }, - "ctxt": 0, - "value": "isCandidateIframePlaceholderImage", - "optional": false + "value": "isCandidateIframePlaceholderImage" } }, "arguments": [ @@ -118659,9 +115433,7 @@ "start": 106431, "end": 106442 }, - "ctxt": 0, - "value": "isAmpIframe", - "optional": false + "value": "isAmpIframe" }, "function": { "params": [ @@ -118741,9 +115513,7 @@ "start": 106477, "end": 106484 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -118785,9 +115555,7 @@ "start": 106507, "end": 106514 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -118828,9 +115596,7 @@ "start": 106572, "end": 106599 }, - "ctxt": 0, - "value": "isCandidateVideoPosterImage", - "optional": false + "value": "isCandidateVideoPosterImage" }, "function": { "params": [ @@ -118923,9 +115689,7 @@ "start": 106637, "end": 106644 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -118934,9 +115698,7 @@ "start": 106645, "end": 106651 }, - "ctxt": 0, - "value": "poster", - "optional": false + "value": "poster" } }, "definite": false @@ -119088,9 +115850,7 @@ "start": 106837, "end": 106843 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" }, "value": { "type": "Identifier", @@ -119112,9 +115872,7 @@ "start": 106872, "end": 106877 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "Identifier", @@ -119136,9 +115894,7 @@ "start": 106906, "end": 106912 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "Identifier", @@ -119160,9 +115916,7 @@ "start": 106941, "end": 106946 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "Identifier", @@ -119202,9 +115956,7 @@ "start": 106976, "end": 106983 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "definite": false @@ -119243,9 +115995,7 @@ "start": 107014, "end": 107024 }, - "ctxt": 0, - "value": "isTinyNode", - "optional": false + "value": "isTinyNode" } }, "arguments": [ @@ -119338,9 +116088,7 @@ "start": 107148, "end": 107151 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "Identifier", @@ -119361,9 +116109,7 @@ "start": 107180, "end": 107185 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "Identifier", @@ -119384,9 +116130,7 @@ "start": 107214, "end": 107220 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" }, "value": { "type": "StringLiteral", @@ -119427,9 +116171,7 @@ "start": 107281, "end": 107314 }, - "ctxt": 0, - "value": "isCandidateIframePlaceholderImage", - "optional": false + "value": "isCandidateIframePlaceholderImage" }, "function": { "params": [ @@ -119509,9 +116251,7 @@ "start": 107347, "end": 107355 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } }, @@ -119550,9 +116290,7 @@ "start": 107361, "end": 107369 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -119561,9 +116299,7 @@ "start": 107370, "end": 107376 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -119634,9 +116370,7 @@ "start": 107496, "end": 107502 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" }, "value": { "type": "Identifier", @@ -119658,9 +116392,7 @@ "start": 107531, "end": 107536 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "Identifier", @@ -119682,9 +116414,7 @@ "start": 107565, "end": 107571 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "Identifier", @@ -119724,9 +116454,7 @@ "start": 107601, "end": 107608 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "definite": false @@ -119765,9 +116493,7 @@ "start": 107639, "end": 107649 }, - "ctxt": 0, - "value": "isTinyNode", - "optional": false + "value": "isTinyNode" } }, "arguments": [ @@ -119861,9 +116587,7 @@ "start": 107705, "end": 107724 }, - "ctxt": 0, - "value": "getPlaceholderImage", - "optional": false + "value": "getPlaceholderImage" } }, "arguments": [ @@ -119910,9 +116634,7 @@ "start": 107762, "end": 107781 }, - "ctxt": 0, - "value": "getPlaceholderImage", - "optional": false + "value": "getPlaceholderImage" }, "function": { "params": [ @@ -120011,9 +116733,7 @@ "start": 107825, "end": 107833 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "body": { @@ -120073,9 +116793,7 @@ "start": 107867, "end": 107874 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -120183,9 +116901,7 @@ "start": 107919, "end": 107926 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -120194,9 +116910,7 @@ "start": 107927, "end": 107930 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -120233,9 +116947,7 @@ "start": 108004, "end": 108010 }, - "ctxt": 0, - "value": "ampImg", - "optional": false + "value": "ampImg" }, "value": { "type": "Identifier", @@ -120256,9 +116968,7 @@ "start": 108047, "end": 108050 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "MemberExpression", @@ -120288,9 +116998,7 @@ "start": 108054, "end": 108061 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -120299,9 +117007,7 @@ "start": 108062, "end": 108065 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } }, @@ -120313,9 +117019,7 @@ "start": 108099, "end": 108104 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "MemberExpression", @@ -120345,9 +117049,7 @@ "start": 108108, "end": 108115 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -120356,9 +117058,7 @@ "start": 108116, "end": 108121 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } } }, @@ -120370,9 +117070,7 @@ "start": 108155, "end": 108161 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" }, "value": { "type": "BinaryExpression", @@ -120409,9 +117107,7 @@ "start": 108165, "end": 108172 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -120420,9 +117116,7 @@ "start": 108173, "end": 108179 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" } }, "right": { @@ -120486,9 +117180,7 @@ "start": 108330, "end": 108359 }, - "ctxt": 0, - "value": "isCandidateImageForPreloading", - "optional": false + "value": "isCandidateImageForPreloading" }, "function": { "params": [ @@ -120581,9 +117273,7 @@ "start": 108397, "end": 108404 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -120592,9 +117282,7 @@ "start": 108405, "end": 108408 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "definite": false @@ -120756,9 +117444,7 @@ "start": 108639, "end": 108644 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "Identifier", @@ -120780,9 +117466,7 @@ "start": 108673, "end": 108679 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "Identifier", @@ -120804,9 +117488,7 @@ "start": 108708, "end": 108714 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" }, "value": { "type": "Identifier", @@ -120828,9 +117510,7 @@ "start": 108743, "end": 108749 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" }, "value": { "type": "Identifier", @@ -120852,9 +117532,7 @@ "start": 108778, "end": 108783 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "Identifier", @@ -120894,9 +117572,7 @@ "start": 108813, "end": 108820 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "definite": false @@ -121036,9 +117712,7 @@ "start": 108965, "end": 108970 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "Identifier", @@ -121060,9 +117734,7 @@ "start": 109007, "end": 109013 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "Identifier", @@ -121106,9 +117778,7 @@ "start": 109054, "end": 109078 }, - "ctxt": 0, - "value": "nodeDimensionsFromParent", - "optional": false + "value": "nodeDimensionsFromParent" } }, "arguments": [ @@ -121194,9 +117864,7 @@ "start": 109233, "end": 109243 }, - "ctxt": 0, - "value": "isTinyNode", - "optional": false + "value": "isTinyNode" } }, "arguments": [ @@ -121289,9 +117957,7 @@ "start": 109367, "end": 109373 }, - "ctxt": 0, - "value": "ampImg", - "optional": false + "value": "ampImg" }, "value": { "type": "Identifier", @@ -121312,9 +117978,7 @@ "start": 109402, "end": 109405 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "Identifier", @@ -121335,9 +117999,7 @@ "start": 109434, "end": 109440 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" }, "value": { "type": "Identifier", @@ -121358,9 +118020,7 @@ "start": 109469, "end": 109474 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" }, "value": { "type": "Identifier", @@ -121402,9 +118062,7 @@ "start": 109534, "end": 109544 }, - "ctxt": 0, - "value": "isTinyNode", - "optional": false + "value": "isTinyNode" }, "function": { "params": [ @@ -121757,9 +118415,7 @@ "start": 109813, "end": 109837 }, - "ctxt": 0, - "value": "nodeDimensionsFromParent", - "optional": false + "value": "nodeDimensionsFromParent" }, "function": { "params": [ @@ -121825,9 +118481,7 @@ "start": 109872, "end": 109878 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "body": { @@ -121884,9 +118538,7 @@ "start": 109912, "end": 109918 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -121926,9 +118578,7 @@ "start": 109951, "end": 109958 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -122007,9 +118657,7 @@ "start": 110061, "end": 110068 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -122018,9 +118666,7 @@ "start": 110069, "end": 110074 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "definite": false @@ -122082,9 +118728,7 @@ "start": 110112, "end": 110119 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -122093,9 +118737,7 @@ "start": 110120, "end": 110126 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } }, "definite": false @@ -122193,9 +118835,7 @@ "start": 110292, "end": 110297 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "Identifier", @@ -122216,9 +118856,7 @@ "start": 110330, "end": 110336 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "Identifier", @@ -122258,9 +118896,7 @@ "start": 110441, "end": 110446 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" }, "value": { "type": "NumericLiteral", @@ -122280,9 +118916,7 @@ "start": 110475, "end": 110481 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" }, "value": { "type": "NumericLiteral", @@ -122323,9 +118957,7 @@ "start": 110541, "end": 110552 }, - "ctxt": 0, - "value": "generateImg", - "optional": false + "value": "generateImg" }, "function": { "params": [ @@ -122481,9 +119113,7 @@ "start": 110706, "end": 110711 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" }, "value": { "type": "StringLiteral", @@ -122503,9 +119133,7 @@ "start": 110790, "end": 110798 }, - "ctxt": 0, - "value": "decoding", - "optional": false + "value": "decoding" }, "value": { "type": "StringLiteral", @@ -122834,9 +119462,7 @@ "start": 111082, "end": 111089 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -122885,9 +119511,7 @@ "start": 111097, "end": 111104 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -122958,9 +119582,7 @@ "start": 111178, "end": 111185 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -123032,9 +119654,7 @@ "start": 111231, "end": 111238 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -123175,9 +119795,7 @@ "start": 111332, "end": 111339 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -123308,9 +119926,7 @@ "start": 111461, "end": 111474 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -123332,9 +119948,7 @@ "start": 111495, "end": 111503 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -123356,9 +119970,7 @@ "start": 111524, "end": 111535 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -123380,9 +119992,7 @@ "start": 111556, "end": 111571 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -123468,9 +120078,7 @@ "start": 111636, "end": 111652 }, - "ctxt": 0, - "value": "findMetaViewport", - "optional": false + "value": "findMetaViewport" }, "value": { "type": "Identifier", @@ -123492,9 +120100,7 @@ "start": 111673, "end": 111692 }, - "ctxt": 0, - "value": "skipNodeAndChildren", - "optional": false + "value": "skipNodeAndChildren" }, "value": { "type": "Identifier", @@ -123621,9 +120227,7 @@ "start": 111795, "end": 111804 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -123736,9 +120340,7 @@ "start": 111845, "end": 111862 }, - "ctxt": 0, - "value": "imagePreloadCount", - "optional": false + "value": "imagePreloadCount" } }, "right": { @@ -124153,9 +120755,7 @@ "start": 112142, "end": 112146 }, - "ctxt": 0, - "value": "size", - "optional": false + "value": "size" } }, "right": { @@ -124224,9 +120824,7 @@ "start": 112245, "end": 112252 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -124349,9 +120947,7 @@ "start": 112374, "end": 112382 }, - "ctxt": 0, - "value": "addImage", - "optional": false + "value": "addImage" } }, "arguments": [ @@ -124584,9 +121180,7 @@ "start": 112547, "end": 112553 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -124732,9 +121326,7 @@ "start": 112681, "end": 112689 }, - "ctxt": 0, - "value": "addImage", - "optional": false + "value": "addImage" }, "function": { "params": [ @@ -124844,9 +121436,7 @@ "start": 112733, "end": 112748 }, - "ctxt": 0, - "value": "extractImageUrl", - "optional": false + "value": "extractImageUrl" } }, "arguments": [ @@ -124948,9 +121538,7 @@ "start": 112862, "end": 112869 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -124959,9 +121547,7 @@ "start": 112870, "end": 112876 }, - "ctxt": 0, - "value": "srcset", - "optional": false + "value": "srcset" } }, "consequent": { @@ -125019,9 +121605,7 @@ "start": 112955, "end": 112958 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -125066,9 +121650,7 @@ "start": 112967, "end": 112980 }, - "ctxt": 0, - "value": "createPreload", - "optional": false + "value": "createPreload" } }, "arguments": [ @@ -125115,9 +121697,7 @@ "start": 112986, "end": 112993 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -125126,9 +121706,7 @@ "start": 112994, "end": 112999 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } } } @@ -125166,9 +121744,7 @@ "start": 113036, "end": 113051 }, - "ctxt": 0, - "value": "extractImageUrl", - "optional": false + "value": "extractImageUrl" }, "function": { "params": [ @@ -125241,9 +121817,7 @@ "start": 113084, "end": 113091 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -125308,9 +121882,7 @@ "start": 113179, "end": 113186 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -125365,9 +121937,7 @@ "start": 113237, "end": 113244 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -125376,9 +121946,7 @@ "start": 113245, "end": 113248 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -125421,9 +121989,7 @@ "start": 113297, "end": 113304 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -125478,9 +122044,7 @@ "start": 113357, "end": 113364 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -125489,9 +122053,7 @@ "start": 113365, "end": 113371 }, - "ctxt": 0, - "value": "poster", - "optional": false + "value": "poster" } } } @@ -125539,9 +122101,7 @@ "start": 113460, "end": 113473 }, - "ctxt": 0, - "value": "createPreload", - "optional": false + "value": "createPreload" }, "function": { "params": [ @@ -125672,9 +122232,7 @@ "start": 113548, "end": 113551 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -125694,9 +122252,7 @@ "start": 113588, "end": 113592 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "Identifier", @@ -125717,9 +122273,7 @@ "start": 113621, "end": 113623 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "StringLiteral", @@ -125806,9 +122360,7 @@ "start": 113712, "end": 113719 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -125817,9 +122369,7 @@ "start": 113720, "end": 113725 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "right": { @@ -125911,9 +122461,7 @@ "start": 113827, "end": 113834 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -126044,9 +122592,7 @@ "start": 113953, "end": 113968 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -126257,9 +122803,7 @@ "start": 114160, "end": 114169 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -126684,9 +123228,7 @@ "start": 114537, "end": 114547 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -126758,9 +123300,7 @@ "start": 114567, "end": 114578 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } }, @@ -126804,9 +123344,7 @@ "start": 114615, "end": 114636 }, - "ctxt": 0, - "value": "_notPruneableHintLink", - "optional": false + "value": "_notPruneableHintLink" } }, "arguments": [ @@ -126869,9 +123407,7 @@ "start": 114673, "end": 114677 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -126933,9 +123469,7 @@ "start": 114722, "end": 114736 }, - "ctxt": 0, - "value": "_alreadyLoaded", - "optional": false + "value": "_alreadyLoaded" } }, "arguments": [ @@ -127009,9 +123543,7 @@ "start": 114779, "end": 114793 }, - "ctxt": 0, - "value": "_markPreloaded", - "optional": false + "value": "_markPreloaded" } }, "arguments": [ @@ -127080,9 +123612,7 @@ "start": 114831, "end": 114835 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -127146,9 +123676,7 @@ "start": 114909, "end": 114919 }, - "ctxt": 0, - "value": "childNodes", - "optional": false + "value": "childNodes" } }, "right": { @@ -127189,9 +123717,7 @@ "start": 114958, "end": 114979 }, - "ctxt": 0, - "value": "_notPruneableHintLink", - "optional": false + "value": "_notPruneableHintLink" }, "function": { "params": [ @@ -127264,9 +123790,7 @@ "start": 115011, "end": 115018 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -127341,9 +123865,7 @@ "start": 115118, "end": 115125 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -127415,9 +123937,7 @@ "start": 115214, "end": 115221 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -127426,9 +123946,7 @@ "start": 115222, "end": 115225 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } } }, @@ -127500,9 +124018,7 @@ "start": 115314, "end": 115321 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -127511,9 +124027,7 @@ "start": 115322, "end": 115326 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } }, @@ -127592,9 +124106,7 @@ "start": 115414, "end": 115421 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -127603,9 +124115,7 @@ "start": 115422, "end": 115425 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "right": { @@ -127653,9 +124163,7 @@ "start": 115446, "end": 115453 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -127664,9 +124172,7 @@ "start": 115454, "end": 115456 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" } } } @@ -127740,9 +124246,7 @@ "start": 115548, "end": 115551 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -127776,9 +124280,7 @@ "start": 115554, "end": 115561 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -127787,9 +124289,7 @@ "start": 115562, "end": 115565 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } } } @@ -127824,9 +124324,7 @@ "start": 115601, "end": 115615 }, - "ctxt": 0, - "value": "_alreadyLoaded", - "optional": false + "value": "_alreadyLoaded" }, "function": { "params": [ @@ -127938,9 +124436,7 @@ "start": 115656, "end": 115663 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -127949,9 +124445,7 @@ "start": 115664, "end": 115667 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "definite": false @@ -128013,9 +124507,7 @@ "start": 115701, "end": 115708 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -128024,9 +124516,7 @@ "start": 115709, "end": 115713 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "definite": false @@ -128075,9 +124565,7 @@ "start": 115742, "end": 115745 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -128181,9 +124669,7 @@ "start": 115843, "end": 115846 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -128242,9 +124728,7 @@ "start": 115880, "end": 115883 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -128291,9 +124775,7 @@ "start": 115921, "end": 115935 }, - "ctxt": 0, - "value": "_markPreloaded", - "optional": false + "value": "_markPreloaded" }, "function": { "params": [ @@ -128405,9 +124887,7 @@ "start": 115976, "end": 115983 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -128416,9 +124896,7 @@ "start": 115984, "end": 115987 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "definite": false @@ -128480,9 +124958,7 @@ "start": 116021, "end": 116028 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -128491,9 +124967,7 @@ "start": 116029, "end": 116033 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "definite": false @@ -128556,9 +125030,7 @@ "start": 116065, "end": 116068 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -128695,9 +125167,7 @@ "start": 116166, "end": 116169 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -128770,9 +125240,7 @@ "start": 116220, "end": 116223 }, - "ctxt": 0, - "value": "add", - "optional": false + "value": "add" } }, "arguments": [ @@ -128849,9 +125317,7 @@ "start": 116273, "end": 116280 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -128982,9 +125448,7 @@ "start": 116413, "end": 116428 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -129070,9 +125534,7 @@ "start": 116493, "end": 116501 }, - "ctxt": 0, - "value": "AMP_TAGS", - "optional": false + "value": "AMP_TAGS" }, "value": { "type": "Identifier", @@ -129159,9 +125621,7 @@ "start": 116585, "end": 116594 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -129403,9 +125863,7 @@ "start": 116769, "end": 116775 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -129508,9 +125966,7 @@ "start": 116824, "end": 116831 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -129616,9 +126072,7 @@ "start": 116906, "end": 116913 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -129749,9 +126203,7 @@ "start": 117037, "end": 117049 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -129773,9 +126225,7 @@ "start": 117070, "end": 117085 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -129797,9 +126247,7 @@ "start": 117106, "end": 117114 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -129886,9 +126334,7 @@ "start": 117194, "end": 117203 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -130147,9 +126593,7 @@ "start": 117429, "end": 117436 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -130271,9 +126715,7 @@ "start": 117543, "end": 117550 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -130422,9 +126864,7 @@ "start": 117717, "end": 117724 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -130555,9 +126995,7 @@ "start": 117843, "end": 117854 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" }, "value": { "type": "Identifier", @@ -130579,9 +127017,7 @@ "start": 117875, "end": 117884 }, - "ctxt": 0, - "value": "appendAll", - "optional": false + "value": "appendAll" }, "value": { "type": "Identifier", @@ -130603,9 +127039,7 @@ "start": 117905, "end": 117917 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -130627,9 +127061,7 @@ "start": 117938, "end": 117953 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -130715,9 +127147,7 @@ "start": 118018, "end": 118043 }, - "ctxt": 0, - "value": "isRenderDelayingExtension", - "optional": false + "value": "isRenderDelayingExtension" }, "value": { "type": "Identifier", @@ -130805,9 +127235,7 @@ "start": 118118, "end": 118129 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -130850,9 +127278,7 @@ "start": 118159, "end": 118175 }, - "ctxt": 0, - "value": "_styleAmpRuntime", - "optional": false + "value": "_styleAmpRuntime" } }, "right": { @@ -130896,9 +127322,7 @@ "start": 118209, "end": 118229 }, - "ctxt": 0, - "value": "_linkStyleAmpRuntime", - "optional": false + "value": "_linkStyleAmpRuntime" } }, "right": { @@ -130942,9 +127366,7 @@ "start": 118263, "end": 118275 }, - "ctxt": 0, - "value": "_metaCharset", - "optional": false + "value": "_metaCharset" } }, "right": { @@ -130988,9 +127410,7 @@ "start": 118309, "end": 118325 }, - "ctxt": 0, - "value": "_scriptAmpEngine", - "optional": false + "value": "_scriptAmpEngine" } }, "right": { @@ -131034,9 +127454,7 @@ "start": 118359, "end": 118369 }, - "ctxt": 0, - "value": "_metaOther", - "optional": false + "value": "_metaOther" } }, "right": { @@ -131081,9 +127499,7 @@ "start": 118401, "end": 118432 }, - "ctxt": 0, - "value": "_scriptRenderDelayingExtensions", - "optional": false + "value": "_scriptRenderDelayingExtensions" } }, "right": { @@ -131128,9 +127544,7 @@ "start": 118464, "end": 118498 }, - "ctxt": 0, - "value": "_scriptNonRenderDelayingExtensions", - "optional": false + "value": "_scriptNonRenderDelayingExtensions" } }, "right": { @@ -131175,9 +127589,7 @@ "start": 118530, "end": 118548 }, - "ctxt": 0, - "value": "_resourceHintLinks", - "optional": false + "value": "_resourceHintLinks" } }, "right": { @@ -131222,9 +127634,7 @@ "start": 118580, "end": 118590 }, - "ctxt": 0, - "value": "_linkIcons", - "optional": false + "value": "_linkIcons" } }, "right": { @@ -131269,9 +127679,7 @@ "start": 118622, "end": 118637 }, - "ctxt": 0, - "value": "_styleAmpCustom", - "optional": false + "value": "_styleAmpCustom" } }, "right": { @@ -131315,9 +127723,7 @@ "start": 118671, "end": 118702 }, - "ctxt": 0, - "value": "_linkStylesheetsBeforeAmpCustom", - "optional": false + "value": "_linkStylesheetsBeforeAmpCustom" } }, "right": { @@ -131362,9 +127768,7 @@ "start": 118734, "end": 118741 }, - "ctxt": 0, - "value": "_others", - "optional": false + "value": "_others" } }, "right": { @@ -131409,9 +127813,7 @@ "start": 118773, "end": 118793 }, - "ctxt": 0, - "value": "_styleAmpBoilerplate", - "optional": false + "value": "_styleAmpBoilerplate" } }, "right": { @@ -131455,9 +127857,7 @@ "start": 118827, "end": 118836 }, - "ctxt": 0, - "value": "_noscript", - "optional": false + "value": "_noscript" } }, "right": { @@ -131486,9 +127886,7 @@ "start": 118878, "end": 118886 }, - "ctxt": 0, - "value": "register", - "optional": false + "value": "register" }, "function": { "params": [ @@ -131561,9 +127959,7 @@ "start": 118914, "end": 118921 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -131601,9 +127997,7 @@ "start": 118927, "end": 118940 }, - "ctxt": 0, - "value": "_registerNode", - "optional": false + "value": "_registerNode" } }, "property": { @@ -131612,9 +128006,7 @@ "start": 118941, "end": 118945 }, - "ctxt": 0, - "value": "bind", - "optional": false + "value": "bind" } }, "arguments": [ @@ -131662,9 +128054,7 @@ "start": 118987, "end": 119016 }, - "ctxt": 0, - "value": "uniquifyAndSortCustomElements", - "optional": false + "value": "uniquifyAndSortCustomElements" }, "function": { "params": [], @@ -131714,9 +128104,7 @@ "start": 119046, "end": 119077 }, - "ctxt": 0, - "value": "_scriptRenderDelayingExtensions", - "optional": false + "value": "_scriptRenderDelayingExtensions" } }, "right": { @@ -131745,9 +128133,7 @@ "start": 119085, "end": 119117 }, - "ctxt": 0, - "value": "_removeDuplicateCustomExtensions", - "optional": false + "value": "_removeDuplicateCustomExtensions" } }, "arguments": [ @@ -131772,9 +128158,7 @@ "start": 119123, "end": 119154 }, - "ctxt": 0, - "value": "_scriptRenderDelayingExtensions", - "optional": false + "value": "_scriptRenderDelayingExtensions" } } } @@ -131815,9 +128199,7 @@ "start": 119182, "end": 119216 }, - "ctxt": 0, - "value": "_scriptNonRenderDelayingExtensions", - "optional": false + "value": "_scriptNonRenderDelayingExtensions" } }, "right": { @@ -131846,9 +128228,7 @@ "start": 119224, "end": 119256 }, - "ctxt": 0, - "value": "_removeDuplicateCustomExtensions", - "optional": false + "value": "_removeDuplicateCustomExtensions" } }, "arguments": [ @@ -131873,9 +128253,7 @@ "start": 119262, "end": 119296 }, - "ctxt": 0, - "value": "_scriptNonRenderDelayingExtensions", - "optional": false + "value": "_scriptNonRenderDelayingExtensions" } } } @@ -131910,9 +128288,7 @@ "start": 119332, "end": 119364 }, - "ctxt": 0, - "value": "_removeDuplicateCustomExtensions", - "optional": false + "value": "_removeDuplicateCustomExtensions" }, "function": { "params": [ @@ -132111,9 +128487,7 @@ "start": 119489, "end": 119497 }, - "ctxt": 0, - "value": "_getName", - "optional": false + "value": "_getName" } }, "arguments": [ @@ -132172,9 +128546,7 @@ "start": 119528, "end": 119531 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" } }, "arguments": [ @@ -132246,9 +128618,7 @@ "start": 119593, "end": 119597 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ @@ -132283,9 +128653,7 @@ "start": 119600, "end": 119606 }, - "ctxt": 0, - "value": "values", - "optional": false + "value": "values" } }, "arguments": [], @@ -132322,9 +128690,7 @@ "start": 119644, "end": 119656 }, - "ctxt": 0, - "value": "appendToHead", - "optional": false + "value": "appendToHead" }, "function": { "params": [ @@ -132420,9 +128786,7 @@ "start": 119692, "end": 119704 }, - "ctxt": 0, - "value": "_metaCharset", - "optional": false + "value": "_metaCharset" } } } @@ -132488,9 +128852,7 @@ "start": 119737, "end": 119757 }, - "ctxt": 0, - "value": "_linkStyleAmpRuntime", - "optional": false + "value": "_linkStyleAmpRuntime" } } } @@ -132556,9 +128918,7 @@ "start": 119790, "end": 119806 }, - "ctxt": 0, - "value": "_styleAmpRuntime", - "optional": false + "value": "_styleAmpRuntime" } } } @@ -132624,9 +128984,7 @@ "start": 119839, "end": 119849 }, - "ctxt": 0, - "value": "_metaOther", - "optional": false + "value": "_metaOther" } } } @@ -132692,9 +129050,7 @@ "start": 119882, "end": 119898 }, - "ctxt": 0, - "value": "_scriptAmpEngine", - "optional": false + "value": "_scriptAmpEngine" } } } @@ -132760,9 +129116,7 @@ "start": 119931, "end": 119962 }, - "ctxt": 0, - "value": "_scriptRenderDelayingExtensions", - "optional": false + "value": "_scriptRenderDelayingExtensions" } } } @@ -132828,9 +129182,7 @@ "start": 119995, "end": 120029 }, - "ctxt": 0, - "value": "_scriptNonRenderDelayingExtensions", - "optional": false + "value": "_scriptNonRenderDelayingExtensions" } } } @@ -132896,9 +129248,7 @@ "start": 120062, "end": 120072 }, - "ctxt": 0, - "value": "_linkIcons", - "optional": false + "value": "_linkIcons" } } } @@ -132964,9 +129314,7 @@ "start": 120105, "end": 120123 }, - "ctxt": 0, - "value": "_resourceHintLinks", - "optional": false + "value": "_resourceHintLinks" } } } @@ -133032,9 +129380,7 @@ "start": 120156, "end": 120187 }, - "ctxt": 0, - "value": "_linkStylesheetsBeforeAmpCustom", - "optional": false + "value": "_linkStylesheetsBeforeAmpCustom" } } } @@ -133100,9 +129446,7 @@ "start": 120220, "end": 120235 }, - "ctxt": 0, - "value": "_styleAmpCustom", - "optional": false + "value": "_styleAmpCustom" } } } @@ -133168,9 +129512,7 @@ "start": 120268, "end": 120275 }, - "ctxt": 0, - "value": "_others", - "optional": false + "value": "_others" } } } @@ -133236,9 +129578,7 @@ "start": 120308, "end": 120328 }, - "ctxt": 0, - "value": "_styleAmpBoilerplate", - "optional": false + "value": "_styleAmpBoilerplate" } } } @@ -133304,9 +129644,7 @@ "start": 120361, "end": 120370 }, - "ctxt": 0, - "value": "_noscript", - "optional": false + "value": "_noscript" } } } @@ -133340,9 +129678,7 @@ "start": 120406, "end": 120419 }, - "ctxt": 0, - "value": "_registerNode", - "optional": false + "value": "_registerNode" }, "function": { "params": [ @@ -133415,9 +129751,7 @@ "start": 120451, "end": 120458 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -133470,9 +129804,7 @@ "start": 120502, "end": 120515 }, - "ctxt": 0, - "value": "_registerMeta", - "optional": false + "value": "_registerMeta" } }, "arguments": [ @@ -133530,9 +129862,7 @@ "start": 120552, "end": 120559 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -133585,9 +129915,7 @@ "start": 120605, "end": 120620 }, - "ctxt": 0, - "value": "_registerScript", - "optional": false + "value": "_registerScript" } }, "arguments": [ @@ -133645,9 +129973,7 @@ "start": 120657, "end": 120664 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -133700,9 +130026,7 @@ "start": 120709, "end": 120723 }, - "ctxt": 0, - "value": "_registerStyle", - "optional": false + "value": "_registerStyle" } }, "arguments": [ @@ -133760,9 +130084,7 @@ "start": 120760, "end": 120767 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -133815,9 +130137,7 @@ "start": 120811, "end": 120824 }, - "ctxt": 0, - "value": "_registerLink", - "optional": false + "value": "_registerLink" } }, "arguments": [ @@ -133875,9 +130195,7 @@ "start": 120861, "end": 120868 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -133930,9 +130248,7 @@ "start": 120916, "end": 120925 }, - "ctxt": 0, - "value": "_noscript", - "optional": false + "value": "_noscript" } }, "right": { @@ -133977,9 +130293,7 @@ "start": 120963, "end": 120970 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "consequent": { @@ -134028,9 +130342,7 @@ "start": 121003, "end": 121010 }, - "ctxt": 0, - "value": "_others", - "optional": false + "value": "_others" } }, "property": { @@ -134039,9 +130351,7 @@ "start": 121011, "end": 121015 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -134097,9 +130407,7 @@ "start": 121075, "end": 121088 }, - "ctxt": 0, - "value": "_registerMeta", - "optional": false + "value": "_registerMeta" }, "function": { "params": [ @@ -134171,9 +130479,7 @@ "start": 121120, "end": 121127 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -134182,9 +130488,7 @@ "start": 121128, "end": 121135 }, - "ctxt": 0, - "value": "charset", - "optional": false + "value": "charset" } }, "consequent": { @@ -134227,9 +130531,7 @@ "start": 121168, "end": 121180 }, - "ctxt": 0, - "value": "_metaCharset", - "optional": false + "value": "_metaCharset" } }, "right": { @@ -134294,9 +130596,7 @@ "start": 121264, "end": 121274 }, - "ctxt": 0, - "value": "_metaOther", - "optional": false + "value": "_metaOther" } }, "property": { @@ -134305,9 +130605,7 @@ "start": 121275, "end": 121279 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -134354,9 +130652,7 @@ "start": 121317, "end": 121332 }, - "ctxt": 0, - "value": "_registerScript", - "optional": false + "value": "_registerScript" }, "function": { "params": [ @@ -134486,9 +130782,7 @@ "start": 121383, "end": 121391 }, - "ctxt": 0, - "value": "_getName", - "optional": false + "value": "_getName" } }, "arguments": [ @@ -134550,9 +130844,7 @@ "start": 121427, "end": 121443 }, - "ctxt": 0, - "value": "_scriptAmpEngine", - "optional": false + "value": "_scriptAmpEngine" } }, "right": { @@ -134725,9 +131017,7 @@ "start": 121621, "end": 121652 }, - "ctxt": 0, - "value": "_scriptRenderDelayingExtensions", - "optional": false + "value": "_scriptRenderDelayingExtensions" } }, "property": { @@ -134736,9 +131026,7 @@ "start": 121653, "end": 121657 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -134809,9 +131097,7 @@ "start": 121752, "end": 121786 }, - "ctxt": 0, - "value": "_scriptNonRenderDelayingExtensions", - "optional": false + "value": "_scriptNonRenderDelayingExtensions" } }, "property": { @@ -134820,9 +131106,7 @@ "start": 121787, "end": 121791 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -134953,9 +131237,7 @@ "start": 121929, "end": 121963 }, - "ctxt": 0, - "value": "_scriptNonRenderDelayingExtensions", - "optional": false + "value": "_scriptNonRenderDelayingExtensions" } }, "property": { @@ -134964,9 +131246,7 @@ "start": 121964, "end": 121968 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -135037,9 +131317,7 @@ "start": 122051, "end": 122058 }, - "ctxt": 0, - "value": "_others", - "optional": false + "value": "_others" } }, "property": { @@ -135048,9 +131326,7 @@ "start": 122059, "end": 122063 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -135097,9 +131373,7 @@ "start": 122101, "end": 122115 }, - "ctxt": 0, - "value": "_registerStyle", - "optional": false + "value": "_registerStyle" }, "function": { "params": [ @@ -135229,9 +131503,7 @@ "start": 122197, "end": 122213 }, - "ctxt": 0, - "value": "_styleAmpRuntime", - "optional": false + "value": "_styleAmpRuntime" } }, "right": { @@ -135337,9 +131609,7 @@ "start": 122350, "end": 122365 }, - "ctxt": 0, - "value": "_styleAmpCustom", - "optional": false + "value": "_styleAmpCustom" } }, "right": { @@ -135512,9 +131782,7 @@ "start": 122535, "end": 122555 }, - "ctxt": 0, - "value": "_styleAmpBoilerplate", - "optional": false + "value": "_styleAmpBoilerplate" } }, "right": { @@ -135579,9 +131847,7 @@ "start": 122639, "end": 122646 }, - "ctxt": 0, - "value": "_others", - "optional": false + "value": "_others" } }, "property": { @@ -135590,9 +131856,7 @@ "start": 122647, "end": 122651 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -135639,9 +131903,7 @@ "start": 122689, "end": 122702 }, - "ctxt": 0, - "value": "_registerLink", - "optional": false + "value": "_registerLink" }, "function": { "params": [ @@ -135734,9 +131996,7 @@ "start": 122740, "end": 122747 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -135745,9 +132005,7 @@ "start": 122748, "end": 122751 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "definite": false @@ -135842,9 +132100,7 @@ "start": 122829, "end": 122836 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -135853,9 +132109,7 @@ "start": 122837, "end": 122841 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "property": { @@ -135864,9 +132118,7 @@ "start": 122842, "end": 122850 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -135925,9 +132177,7 @@ "start": 122898, "end": 122918 }, - "ctxt": 0, - "value": "_linkStyleAmpRuntime", - "optional": false + "value": "_linkStyleAmpRuntime" } }, "right": { @@ -135986,9 +132236,7 @@ "start": 123019, "end": 123034 }, - "ctxt": 0, - "value": "_styleAmpCustom", - "optional": false + "value": "_styleAmpCustom" } } }, @@ -136038,9 +132286,7 @@ "start": 123071, "end": 123102 }, - "ctxt": 0, - "value": "_linkStylesheetsBeforeAmpCustom", - "optional": false + "value": "_linkStylesheetsBeforeAmpCustom" } }, "property": { @@ -136049,9 +132295,7 @@ "start": 123103, "end": 123107 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -136237,9 +132481,7 @@ "start": 123314, "end": 123324 }, - "ctxt": 0, - "value": "_linkIcons", - "optional": false + "value": "_linkIcons" } }, "property": { @@ -136248,9 +132490,7 @@ "start": 123325, "end": 123329 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -136467,9 +132707,7 @@ "start": 123525, "end": 123543 }, - "ctxt": 0, - "value": "_resourceHintLinks", - "optional": false + "value": "_resourceHintLinks" } }, "property": { @@ -136478,9 +132716,7 @@ "start": 123544, "end": 123548 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -136551,9 +132787,7 @@ "start": 123631, "end": 123638 }, - "ctxt": 0, - "value": "_others", - "optional": false + "value": "_others" } }, "property": { @@ -136562,9 +132796,7 @@ "start": 123639, "end": 123643 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -136611,9 +132843,7 @@ "start": 123681, "end": 123689 }, - "ctxt": 0, - "value": "_getName", - "optional": false + "value": "_getName" }, "function": { "params": [ @@ -136692,9 +132922,7 @@ "start": 123724, "end": 123731 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -136742,9 +132970,7 @@ "start": 123755, "end": 123762 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -136819,9 +133045,7 @@ "start": 123873, "end": 123882 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -137136,9 +133360,7 @@ "start": 124169, "end": 124177 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } }, @@ -137248,9 +133470,7 @@ "start": 124301, "end": 124309 }, - "ctxt": 0, - "value": "register", - "optional": false + "value": "register" } }, "arguments": [ @@ -137278,9 +133498,7 @@ "start": 124312, "end": 124320 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -137323,9 +133541,7 @@ "start": 124345, "end": 124374 }, - "ctxt": 0, - "value": "uniquifyAndSortCustomElements", - "optional": false + "value": "uniquifyAndSortCustomElements" } }, "arguments": [], @@ -137367,9 +133583,7 @@ "start": 124400, "end": 124408 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -137417,9 +133631,7 @@ "start": 124437, "end": 124449 }, - "ctxt": 0, - "value": "appendToHead", - "optional": false + "value": "appendToHead" } }, "arguments": [ @@ -137496,9 +133708,7 @@ "start": 124499, "end": 124506 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -137629,9 +133839,7 @@ "start": 124634, "end": 124647 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -137653,9 +133861,7 @@ "start": 124668, "end": 124683 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -137677,9 +133883,7 @@ "start": 124704, "end": 124715 }, - "ctxt": 0, - "value": "insertAfter", - "optional": false + "value": "insertAfter" }, "value": { "type": "Identifier", @@ -137701,9 +133905,7 @@ "start": 124736, "end": 124748 }, - "ctxt": 0, - "value": "insertBefore", - "optional": false + "value": "insertBefore" }, "value": { "type": "Identifier", @@ -137725,9 +133927,7 @@ "start": 124769, "end": 124775 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "value": { "type": "Identifier", @@ -137813,9 +134013,7 @@ "start": 124840, "end": 124854 }, - "ctxt": 0, - "value": "AMP_CACHE_HOST", - "optional": false + "value": "AMP_CACHE_HOST" }, "value": { "type": "Identifier", @@ -137901,9 +134099,7 @@ "start": 124919, "end": 124935 }, - "ctxt": 0, - "value": "findMetaViewport", - "optional": false + "value": "findMetaViewport" }, "value": { "type": "Identifier", @@ -137989,9 +134185,7 @@ "start": 124999, "end": 125012 }, - "ctxt": 0, - "value": "calculateHost", - "optional": false + "value": "calculateHost" }, "value": { "type": "Identifier", @@ -138079,9 +134273,7 @@ "start": 125092, "end": 125103 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -138144,9 +134336,7 @@ "start": 125134, "end": 125151 }, - "ctxt": 0, - "value": "esmModulesEnabled", - "optional": false + "value": "esmModulesEnabled" } }, "right": { @@ -138171,9 +134361,7 @@ "start": 125156, "end": 125169 }, - "ctxt": 0, - "value": "experimentEsm", - "optional": false + "value": "experimentEsm" } } } @@ -138210,9 +134398,7 @@ "start": 125196, "end": 125199 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "right": { @@ -138237,9 +134423,7 @@ "start": 125204, "end": 125207 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } } } @@ -138261,9 +134445,7 @@ "start": 125242, "end": 125251 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -138622,9 +134804,7 @@ "start": 125450, "end": 125460 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -138749,9 +134929,7 @@ "start": 125531, "end": 125548 }, - "ctxt": 0, - "value": "esmModulesEnabled", - "optional": false + "value": "esmModulesEnabled" } }, "right": { @@ -138776,9 +134954,7 @@ "start": 125554, "end": 125567 }, - "ctxt": 0, - "value": "experimentEsm", - "optional": false + "value": "experimentEsm" } } }, @@ -138891,9 +135067,7 @@ "start": 125665, "end": 125672 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -138932,9 +135106,7 @@ "start": 125694, "end": 125710 }, - "ctxt": 0, - "value": "_usesAmpCacheUrl", - "optional": false + "value": "_usesAmpCacheUrl" } }, "arguments": [ @@ -138968,9 +135140,7 @@ "start": 125713, "end": 125720 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -138979,9 +135149,7 @@ "start": 125721, "end": 125724 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -139038,9 +135206,7 @@ "start": 125759, "end": 125766 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139049,9 +135215,7 @@ "start": 125767, "end": 125770 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "right": { @@ -139080,9 +135244,7 @@ "start": 125778, "end": 125789 }, - "ctxt": 0, - "value": "_replaceUrl", - "optional": false + "value": "_replaceUrl" } }, "arguments": [ @@ -139116,9 +135278,7 @@ "start": 125792, "end": 125799 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139127,9 +135287,7 @@ "start": 125800, "end": 125803 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } }, @@ -139210,9 +135368,7 @@ "start": 125880, "end": 125884 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -139244,9 +135400,7 @@ "start": 125890, "end": 125897 }, - "ctxt": 0, - "value": "_addEsm", - "optional": false + "value": "_addEsm" } }, "arguments": [ @@ -139316,9 +135470,7 @@ "start": 125973, "end": 125977 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -139350,9 +135502,7 @@ "start": 125983, "end": 125997 }, - "ctxt": 0, - "value": "_createPreload", - "optional": false + "value": "_createPreload" } }, "arguments": [ @@ -139386,9 +135536,7 @@ "start": 126000, "end": 126007 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139397,9 +135545,7 @@ "start": 126008, "end": 126011 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } }, @@ -139477,9 +135623,7 @@ "start": 126091, "end": 126098 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -139527,9 +135671,7 @@ "start": 126115, "end": 126122 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139538,9 +135680,7 @@ "start": 126123, "end": 126126 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "right": { @@ -139580,9 +135720,7 @@ "start": 126152, "end": 126168 }, - "ctxt": 0, - "value": "_usesAmpCacheUrl", - "optional": false + "value": "_usesAmpCacheUrl" } }, "arguments": [ @@ -139616,9 +135754,7 @@ "start": 126171, "end": 126178 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139627,9 +135763,7 @@ "start": 126179, "end": 126183 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -139686,9 +135820,7 @@ "start": 126218, "end": 126225 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139697,9 +135829,7 @@ "start": 126226, "end": 126230 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "right": { @@ -139728,9 +135858,7 @@ "start": 126238, "end": 126249 }, - "ctxt": 0, - "value": "_replaceUrl", - "optional": false + "value": "_replaceUrl" } }, "arguments": [ @@ -139764,9 +135892,7 @@ "start": 126252, "end": 126259 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139775,9 +135901,7 @@ "start": 126260, "end": 126264 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } }, @@ -139834,9 +135958,7 @@ "start": 126300, "end": 126304 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -139868,9 +135990,7 @@ "start": 126310, "end": 126324 }, - "ctxt": 0, - "value": "_createPreload", - "optional": false + "value": "_createPreload" } }, "arguments": [ @@ -139904,9 +136024,7 @@ "start": 126327, "end": 126334 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -139915,9 +136033,7 @@ "start": 126335, "end": 126339 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } }, @@ -139992,9 +136108,7 @@ "start": 126388, "end": 126395 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -140042,9 +136156,7 @@ "start": 126412, "end": 126419 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -140053,9 +136165,7 @@ "start": 126420, "end": 126423 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" } }, "right": { @@ -140095,9 +136205,7 @@ "start": 126446, "end": 126462 }, - "ctxt": 0, - "value": "_usesAmpCacheUrl", - "optional": false + "value": "_usesAmpCacheUrl" } }, "arguments": [ @@ -140131,9 +136239,7 @@ "start": 126465, "end": 126472 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -140142,9 +136248,7 @@ "start": 126473, "end": 126477 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -140209,9 +136313,7 @@ "start": 126524, "end": 126538 }, - "ctxt": 0, - "value": "_shouldPreload", - "optional": false + "value": "_shouldPreload" } }, "arguments": [ @@ -140245,9 +136347,7 @@ "start": 126541, "end": 126548 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -140256,9 +136356,7 @@ "start": 126549, "end": 126553 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } } @@ -140366,9 +136464,7 @@ "start": 126666, "end": 126673 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -140377,9 +136473,7 @@ "start": 126674, "end": 126678 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } }, "right": { @@ -140408,9 +136502,7 @@ "start": 126686, "end": 126697 }, - "ctxt": 0, - "value": "_replaceUrl", - "optional": false + "value": "_replaceUrl" } }, "arguments": [ @@ -140444,9 +136536,7 @@ "start": 126700, "end": 126707 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -140455,9 +136545,7 @@ "start": 126708, "end": 126712 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" } } }, @@ -140534,9 +136622,7 @@ "start": 126803, "end": 126814 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } } @@ -140745,9 +136831,7 @@ "start": 127028, "end": 127044 }, - "ctxt": 0, - "value": "_usesAmpCacheUrl", - "optional": false + "value": "_usesAmpCacheUrl" } }, "arguments": [ @@ -140797,9 +136881,7 @@ "start": 127054, "end": 127057 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } } @@ -140923,9 +137005,7 @@ "start": 127174, "end": 127182 }, - "ctxt": 0, - "value": "_addMeta", - "optional": false + "value": "_addMeta" } }, "arguments": [ @@ -140978,9 +137058,7 @@ "start": 127204, "end": 127210 }, - "ctxt": 0, - "value": "origin", - "optional": false + "value": "origin" } } } @@ -141053,9 +137131,7 @@ "start": 127283, "end": 127286 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -141064,9 +137140,7 @@ "start": 127287, "end": 127291 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -141130,9 +137204,7 @@ "start": 127406, "end": 127415 }, - "ctxt": 0, - "value": "geoApiUrl", - "optional": false + "value": "geoApiUrl" } }, "right": { @@ -141164,9 +137236,7 @@ "start": 127422, "end": 127425 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } } @@ -141211,9 +137281,7 @@ "start": 127458, "end": 127466 }, - "ctxt": 0, - "value": "_addMeta", - "optional": false + "value": "_addMeta" } }, "arguments": [ @@ -141266,9 +137334,7 @@ "start": 127487, "end": 127496 }, - "ctxt": 0, - "value": "geoApiUrl", - "optional": false + "value": "geoApiUrl" } } } @@ -141306,9 +137372,7 @@ "start": 127554, "end": 127570 }, - "ctxt": 0, - "value": "_usesAmpCacheUrl", - "optional": false + "value": "_usesAmpCacheUrl" }, "function": { "params": [ @@ -141425,9 +137489,7 @@ "start": 127688, "end": 127698 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -141474,9 +137536,7 @@ "start": 127736, "end": 127747 }, - "ctxt": 0, - "value": "_replaceUrl", - "optional": false + "value": "_replaceUrl" }, "function": { "params": [ @@ -141585,9 +137645,7 @@ "start": 127789, "end": 127798 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -141615,9 +137673,7 @@ "start": 127801, "end": 127807 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -141652,9 +137708,7 @@ "start": 127843, "end": 127850 }, - "ctxt": 0, - "value": "_addEsm", - "optional": false + "value": "_addEsm" }, "function": { "params": [ @@ -141798,9 +137852,7 @@ "start": 127922, "end": 127929 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -141809,9 +137861,7 @@ "start": 127930, "end": 127933 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "property": { @@ -141820,9 +137870,7 @@ "start": 127934, "end": 127941 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -141889,9 +137937,7 @@ "start": 127989, "end": 128003 }, - "ctxt": 0, - "value": "_shouldPreload", - "optional": false + "value": "_shouldPreload" } }, "arguments": [ @@ -141925,9 +137971,7 @@ "start": 128006, "end": 128013 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -141936,9 +137980,7 @@ "start": 128014, "end": 128017 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -142027,9 +138069,7 @@ "start": 128096, "end": 128098 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "StringLiteral", @@ -142049,9 +138089,7 @@ "start": 128138, "end": 128149 }, - "ctxt": 0, - "value": "crossorigin", - "optional": false + "value": "crossorigin" }, "value": { "type": "StringLiteral", @@ -142071,9 +138109,7 @@ "start": 128192, "end": 128196 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "Identifier", @@ -142094,9 +138130,7 @@ "start": 128229, "end": 128232 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -142232,9 +138266,7 @@ "start": 128392, "end": 128397 }, - "ctxt": 0, - "value": "async", - "optional": false + "value": "async" }, "value": { "type": "StringLiteral", @@ -142254,9 +138286,7 @@ "start": 128427, "end": 128435 }, - "ctxt": 0, - "value": "nomodule", - "optional": false + "value": "nomodule" }, "value": { "type": "StringLiteral", @@ -142276,9 +138306,7 @@ "start": 128465, "end": 128468 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" }, "value": { "type": "MemberExpression", @@ -142308,9 +138336,7 @@ "start": 128472, "end": 128479 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -142319,9 +138345,7 @@ "start": 128480, "end": 128483 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } } } @@ -142383,9 +138407,7 @@ "start": 128532, "end": 128538 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } }, @@ -142460,9 +138482,7 @@ "start": 128569, "end": 128576 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -142471,9 +138491,7 @@ "start": 128577, "end": 128581 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -142528,9 +138546,7 @@ "start": 128616, "end": 128623 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -142539,9 +138555,7 @@ "start": 128624, "end": 128635 }, - "ctxt": 0, - "value": "crossorigin", - "optional": false + "value": "crossorigin" } }, "right": { @@ -142596,9 +138610,7 @@ "start": 128673, "end": 128680 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -142607,9 +138619,7 @@ "start": 128681, "end": 128684 }, - "ctxt": 0, - "value": "src", - "optional": false + "value": "src" } }, "right": { @@ -142667,9 +138677,7 @@ "start": 128753, "end": 128767 }, - "ctxt": 0, - "value": "_createPreload", - "optional": false + "value": "_createPreload" }, "function": { "params": [ @@ -142765,9 +138773,7 @@ "start": 128806, "end": 128820 }, - "ctxt": 0, - "value": "_shouldPreload", - "optional": false + "value": "_shouldPreload" } }, "arguments": [ @@ -142867,9 +138873,7 @@ "start": 128948, "end": 128951 }, - "ctxt": 0, - "value": "rel", - "optional": false + "value": "rel" }, "value": { "type": "StringLiteral", @@ -142889,9 +138893,7 @@ "start": 128988, "end": 128992 }, - "ctxt": 0, - "value": "href", - "optional": false + "value": "href" }, "value": { "type": "Identifier", @@ -142912,9 +138914,7 @@ "start": 129021, "end": 129023 }, - "ctxt": 0, - "value": "as", - "optional": false + "value": "as" }, "value": { "type": "Identifier", @@ -142960,9 +138960,7 @@ "start": 129084, "end": 129098 }, - "ctxt": 0, - "value": "_shouldPreload", - "optional": false + "value": "_shouldPreload" }, "function": { "params": [ @@ -143042,9 +139040,7 @@ "start": 129133, "end": 129141 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -143092,9 +139088,7 @@ "start": 129156, "end": 129164 }, - "ctxt": 0, - "value": "endsWith", - "optional": false + "value": "endsWith" } }, "arguments": [ @@ -143141,9 +139135,7 @@ "start": 129209, "end": 129217 }, - "ctxt": 0, - "value": "_addMeta", - "optional": false + "value": "_addMeta" }, "function": { "params": [ @@ -143293,9 +139285,7 @@ "start": 129295, "end": 129299 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "Identifier", @@ -143316,9 +139306,7 @@ "start": 129328, "end": 129335 }, - "ctxt": 0, - "value": "content", - "optional": false + "value": "content" }, "value": { "type": "Identifier", @@ -143470,9 +139458,7 @@ "start": 129441, "end": 129455 }, - "ctxt": 0, - "value": "isAbsoluteUrl_", - "optional": false + "value": "isAbsoluteUrl_" }, "function": { "params": [ @@ -143683,9 +139669,7 @@ "start": 129698, "end": 129705 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -143816,9 +139800,7 @@ "start": 129825, "end": 129835 }, - "ctxt": 0, - "value": "insertText", - "optional": false + "value": "insertText" }, "value": { "type": "Identifier", @@ -143840,9 +139822,7 @@ "start": 129856, "end": 129869 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -143864,9 +139844,7 @@ "start": 129890, "end": 129902 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -143888,9 +139866,7 @@ "start": 129923, "end": 129938 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -144342,9 +140318,7 @@ "start": 130304, "end": 130315 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -144407,9 +140381,7 @@ "start": 130346, "end": 130350 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -144447,9 +140419,7 @@ "start": 130355, "end": 130358 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -144458,9 +140428,7 @@ "start": 130359, "end": 130362 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -144513,9 +140481,7 @@ "start": 130410, "end": 130416 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" } }, "right": { @@ -144547,9 +140513,7 @@ "start": 130421, "end": 130427 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" } }, "right": { @@ -144580,9 +140544,7 @@ "start": 130478, "end": 130487 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -144969,9 +140931,7 @@ "start": 130731, "end": 130741 }, - "ctxt": 0, - "value": "isAmpStory", - "optional": false + "value": "isAmpStory" } }, "arguments": [ @@ -145110,9 +141070,7 @@ "start": 130877, "end": 130885 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -145150,9 +141108,7 @@ "start": 130890, "end": 130898 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -145161,9 +141117,7 @@ "start": 130899, "end": 130905 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -145238,9 +141192,7 @@ "start": 130944, "end": 130951 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -145618,9 +141570,7 @@ "start": 131351, "end": 131357 }, - "ctxt": 0, - "value": "minify", - "optional": false + "value": "minify" } }, "consequent": { @@ -145747,9 +141697,7 @@ "start": 131436, "end": 131444 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -145833,9 +141781,7 @@ "start": 131482, "end": 131486 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -145896,9 +141842,7 @@ "start": 131522, "end": 131526 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -145959,9 +141903,7 @@ "start": 131560, "end": 131565 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -146132,9 +142074,7 @@ "start": 131697, "end": 131702 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "body": { @@ -146206,9 +142146,7 @@ "start": 131752, "end": 131757 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "body": { @@ -146261,9 +142199,7 @@ "start": 131800, "end": 131803 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -146291,9 +142227,7 @@ "start": 131806, "end": 131810 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -146355,9 +142289,7 @@ "start": 131857, "end": 131861 }, - "ctxt": 0, - "value": "prop", - "optional": false + "value": "prop" } } } @@ -146490,9 +142422,7 @@ "start": 132124, "end": 132130 }, - "ctxt": 0, - "value": "plugin", - "optional": false + "value": "plugin" } }, "arguments": [ @@ -146587,9 +142517,7 @@ "start": 132202, "end": 132207 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "right": { @@ -146627,9 +142555,7 @@ "start": 132212, "end": 132217 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -146638,9 +142564,7 @@ "start": 132218, "end": 132224 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -146715,9 +142639,7 @@ "start": 132267, "end": 132271 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -146859,9 +142781,7 @@ "start": 132437, "end": 132447 }, - "ctxt": 0, - "value": "logInvalid", - "optional": false + "value": "logInvalid" } }, "arguments": [ @@ -146889,9 +142809,7 @@ "start": 132450, "end": 132454 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -146972,9 +142890,7 @@ "start": 132576, "end": 132581 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -146983,9 +142899,7 @@ "start": 132582, "end": 132586 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -147067,9 +142981,7 @@ "start": 132700, "end": 132704 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -147111,9 +143023,7 @@ "start": 132722, "end": 132726 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -147191,9 +143101,7 @@ "start": 132794, "end": 132800 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -147238,9 +143146,7 @@ "start": 132846, "end": 132851 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" }, "value": { "type": "ArrayExpression", @@ -147296,9 +143202,7 @@ "start": 132926, "end": 132931 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "right": { @@ -147336,9 +143240,7 @@ "start": 132936, "end": 132941 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -147347,9 +143249,7 @@ "start": 132942, "end": 132948 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -147424,9 +143324,7 @@ "start": 132999, "end": 133003 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -147577,9 +143475,7 @@ "start": 133192, "end": 133202 }, - "ctxt": 0, - "value": "logInvalid", - "optional": false + "value": "logInvalid" } }, "arguments": [ @@ -147607,9 +143503,7 @@ "start": 133205, "end": 133209 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -147690,9 +143584,7 @@ "start": 133343, "end": 133348 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -147701,9 +143593,7 @@ "start": 133349, "end": 133353 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -147772,9 +143662,7 @@ "start": 133432, "end": 133437 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -147783,9 +143671,7 @@ "start": 133438, "end": 133444 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "consequent": { @@ -147837,9 +143723,7 @@ "start": 133486, "end": 133491 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -147848,9 +143732,7 @@ "start": 133492, "end": 133496 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -147909,9 +143791,7 @@ "start": 133575, "end": 133580 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -147920,9 +143800,7 @@ "start": 133581, "end": 133587 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -148011,9 +143889,7 @@ "start": 133763, "end": 133766 }, - "ctxt": 0, - "value": "css", - "optional": false + "value": "css" }, "value": { "type": "Identifier", @@ -148131,9 +144007,7 @@ "start": 133813, "end": 133820 }, - "ctxt": 0, - "value": "process", - "optional": false + "value": "process" } }, "arguments": [ @@ -148167,9 +144041,7 @@ "start": 133850, "end": 133854 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" }, "value": { "type": "Identifier", @@ -148190,9 +144062,7 @@ "start": 133891, "end": 133897 }, - "ctxt": 0, - "value": "parser", - "optional": false + "value": "parser" }, "value": { "type": "Identifier", @@ -148217,9 +144087,7 @@ "start": 133924, "end": 133929 }, - "ctxt": 0, - "value": "catch", - "optional": false + "value": "catch" } }, "arguments": [ @@ -148297,9 +144165,7 @@ "start": 133967, "end": 133971 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -148308,9 +144174,7 @@ "start": 133972, "end": 133976 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -148361,9 +144225,7 @@ "start": 134004, "end": 134011 }, - "ctxt": 0, - "value": "message", - "optional": false + "value": "message" } } } @@ -148392,9 +144254,7 @@ "start": 134075, "end": 134078 }, - "ctxt": 0, - "value": "css", - "optional": false + "value": "css" }, "value": { "type": "Identifier", @@ -148468,9 +144328,7 @@ "start": 134159, "end": 134164 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -148479,9 +144337,7 @@ "start": 134165, "end": 134171 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -148549,9 +144405,7 @@ "start": 134207, "end": 134215 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -148577,9 +144431,7 @@ "start": 134219, "end": 134223 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -148673,9 +144525,7 @@ "start": 134338, "end": 134346 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -148713,9 +144563,7 @@ "start": 134351, "end": 134359 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -148724,9 +144572,7 @@ "start": 134360, "end": 134366 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -148808,9 +144654,7 @@ "start": 134409, "end": 134416 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -149149,9 +144993,7 @@ "start": 134882, "end": 134890 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -149231,9 +145073,7 @@ "start": 134927, "end": 134932 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -149285,9 +145125,7 @@ "start": 134940, "end": 134944 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -149344,9 +145182,7 @@ "start": 134975, "end": 134980 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "right": { @@ -149384,9 +145220,7 @@ "start": 134985, "end": 134990 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } }, "property": { @@ -149395,9 +145229,7 @@ "start": 134991, "end": 134997 }, - "ctxt": 0, - "value": "concat", - "optional": false + "value": "concat" } }, "arguments": [ @@ -149425,9 +145257,7 @@ "start": 135000, "end": 135005 }, - "ctxt": 0, - "value": "nodes", - "optional": false + "value": "nodes" } } } @@ -149511,9 +145341,7 @@ "start": 135062, "end": 135071 }, - "ctxt": 0, - "value": "stringify", - "optional": false + "value": "stringify" } }, "arguments": [ @@ -149650,9 +145478,7 @@ "start": 135165, "end": 135171 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -149759,9 +145585,7 @@ "start": 135224, "end": 135231 }, - "ctxt": 0, - "value": "process", - "optional": false + "value": "process" } }, "arguments": [ @@ -149795,9 +145619,7 @@ "start": 135265, "end": 135269 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" }, "value": { "type": "Identifier", @@ -149818,9 +145640,7 @@ "start": 135310, "end": 135316 }, - "ctxt": 0, - "value": "parser", - "optional": false + "value": "parser" }, "value": { "type": "Identifier", @@ -149890,9 +145710,7 @@ "start": 135378, "end": 135381 }, - "ctxt": 0, - "value": "css", - "optional": false + "value": "css" } } } @@ -150032,9 +145850,7 @@ "start": 135521, "end": 135525 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -150093,9 +145909,7 @@ "start": 135574, "end": 135582 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -150104,9 +145918,7 @@ "start": 135583, "end": 135587 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -150174,9 +145986,7 @@ "start": 135614, "end": 135622 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -150202,9 +146012,7 @@ "start": 135626, "end": 135630 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -150245,9 +146053,7 @@ "start": 135669, "end": 135679 }, - "ctxt": 0, - "value": "logInvalid", - "optional": false + "value": "logInvalid" }, "function": { "params": [ @@ -150342,9 +146148,7 @@ "start": 135713, "end": 135717 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -150353,9 +146157,7 @@ "start": 135718, "end": 135722 }, - "ctxt": 0, - "value": "warn", - "optional": false + "value": "warn" } }, "arguments": [ @@ -150453,9 +146255,7 @@ "start": 135844, "end": 135854 }, - "ctxt": 0, - "value": "isAmpStory", - "optional": false + "value": "isAmpStory" }, "function": { "params": [ @@ -150534,9 +146334,7 @@ "start": 135889, "end": 135897 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -150545,9 +146343,7 @@ "start": 135898, "end": 135902 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -150608,9 +146404,7 @@ "start": 135911, "end": 135918 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -150690,9 +146484,7 @@ "start": 135983, "end": 135990 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -150823,9 +146615,7 @@ "start": 136112, "end": 136124 }, - "ctxt": 0, - "value": "hasAttribute", - "optional": false + "value": "hasAttribute" }, "value": { "type": "Identifier", @@ -150847,9 +146637,7 @@ "start": 136145, "end": 136151 }, - "ctxt": 0, - "value": "remove", - "optional": false + "value": "remove" }, "value": { "type": "Identifier", @@ -150871,9 +146659,7 @@ "start": 136172, "end": 136185 }, - "ctxt": 0, - "value": "createElement", - "optional": false + "value": "createElement" }, "value": { "type": "Identifier", @@ -150895,9 +146681,7 @@ "start": 136206, "end": 136218 }, - "ctxt": 0, - "value": "insertBefore", - "optional": false + "value": "insertBefore" }, "value": { "type": "Identifier", @@ -150919,9 +146703,7 @@ "start": 136239, "end": 136247 }, - "ctxt": 0, - "value": "nextNode", - "optional": false + "value": "nextNode" }, "value": { "type": "Identifier", @@ -150943,9 +146725,7 @@ "start": 136268, "end": 136283 }, - "ctxt": 0, - "value": "firstChildByTag", - "optional": false + "value": "firstChildByTag" }, "value": { "type": "Identifier", @@ -151031,9 +146811,7 @@ "start": 136348, "end": 136373 }, - "ctxt": 0, - "value": "isRenderDelayingExtension", - "optional": false + "value": "isRenderDelayingExtension" }, "value": { "type": "Identifier", @@ -151055,9 +146833,7 @@ "start": 136394, "end": 136409 }, - "ctxt": 0, - "value": "isCustomElement", - "optional": false + "value": "isCustomElement" }, "value": { "type": "Identifier", @@ -151143,9 +146919,7 @@ "start": 136474, "end": 136485 }, - "ctxt": 0, - "value": "applyLayout", - "optional": false + "value": "applyLayout" }, "value": { "type": "Identifier", @@ -151297,9 +147071,7 @@ "start": 136601, "end": 136612 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -151362,9 +147134,7 @@ "start": 136643, "end": 136647 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "right": { @@ -151402,9 +147172,7 @@ "start": 136652, "end": 136655 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -151413,9 +147181,7 @@ "start": 136656, "end": 136659 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -151453,9 +147219,7 @@ "start": 136717, "end": 136736 }, - "ctxt": 0, - "value": "_hasAncestorWithTag", - "optional": false + "value": "_hasAncestorWithTag" }, "function": { "params": [ @@ -151567,9 +147331,7 @@ "start": 136780, "end": 136786 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "definite": false @@ -151641,9 +147403,7 @@ "start": 136806, "end": 136812 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } }, @@ -151690,9 +147450,7 @@ "start": 136846, "end": 136853 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -151777,9 +147535,7 @@ "start": 137018, "end": 137027 }, - "ctxt": 0, - "value": "transform", - "optional": false + "value": "transform" }, "function": { "params": [ @@ -151883,9 +147639,7 @@ "start": 137074, "end": 137078 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } } } @@ -152226,9 +147980,7 @@ "start": 137329, "end": 137336 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -152294,9 +148046,7 @@ "start": 137378, "end": 137385 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -152386,9 +148136,7 @@ "start": 137493, "end": 137500 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -152611,9 +148359,7 @@ "start": 137638, "end": 137645 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -152734,9 +148480,7 @@ "start": 137783, "end": 137802 }, - "ctxt": 0, - "value": "_hasAncestorWithTag", - "optional": false + "value": "_hasAncestorWithTag" } }, "arguments": [ @@ -152830,9 +148574,7 @@ "start": 137914, "end": 137921 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -152871,9 +148613,7 @@ "start": 137951, "end": 137970 }, - "ctxt": 0, - "value": "isAmpExperimentUsed", - "optional": false + "value": "isAmpExperimentUsed" } }, "arguments": [ @@ -152974,9 +148714,7 @@ "start": 138049, "end": 138053 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -152985,9 +148723,7 @@ "start": 138054, "end": 138059 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -153046,9 +148782,7 @@ "start": 138161, "end": 138168 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -153141,9 +148875,7 @@ "start": 138260, "end": 138264 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -153152,9 +148884,7 @@ "start": 138265, "end": 138270 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -153251,9 +148981,7 @@ "start": 138414, "end": 138418 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } } } @@ -153307,9 +149035,7 @@ "start": 138456, "end": 138460 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -153318,9 +149044,7 @@ "start": 138461, "end": 138466 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -153424,9 +149148,7 @@ "start": 138663, "end": 138668 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [], @@ -153592,9 +149314,7 @@ "start": 138813, "end": 138821 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -153625,9 +149345,7 @@ "start": 138827, "end": 138835 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -153636,9 +149354,7 @@ "start": 138836, "end": 138842 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -153670,9 +149386,7 @@ "start": 138847, "end": 138855 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -153858,9 +149572,7 @@ "start": 138961, "end": 138971 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -153917,9 +149629,7 @@ "start": 138982, "end": 138993 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } }, @@ -153980,9 +149690,7 @@ "start": 139027, "end": 139034 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -154077,9 +149785,7 @@ "start": 139079, "end": 139086 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -154216,9 +149922,7 @@ "start": 139261, "end": 139265 }, - "ctxt": 0, - "value": "log_", - "optional": false + "value": "log_" } }, "property": { @@ -154227,9 +149931,7 @@ "start": 139266, "end": 139271 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -154269,9 +149971,7 @@ "start": 139344, "end": 139351 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } } } @@ -154455,9 +150155,7 @@ "start": 139572, "end": 139591 }, - "ctxt": 0, - "value": "applyToCustomStyles", - "optional": false + "value": "applyToCustomStyles" } }, "arguments": [ @@ -154526,9 +150224,7 @@ "start": 139626, "end": 139646 }, - "ctxt": 0, - "value": "canRemoveBoilerplate", - "optional": false + "value": "canRemoveBoilerplate" } } }, @@ -154663,9 +150359,7 @@ "start": 139811, "end": 139818 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -154790,9 +150484,7 @@ "start": 139922, "end": 139932 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -154849,9 +150541,7 @@ "start": 139943, "end": 139954 }, - "ctxt": 0, - "value": "nextSibling", - "optional": false + "value": "nextSibling" } } }, @@ -154905,9 +150595,7 @@ "start": 139988, "end": 139995 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -154956,9 +150644,7 @@ "start": 140016, "end": 140023 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -155062,9 +150748,7 @@ "start": 140096, "end": 140100 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -155219,9 +150903,7 @@ "start": 140278, "end": 140297 }, - "ctxt": 0, - "value": "isAmpExperimentUsed", - "optional": false + "value": "isAmpExperimentUsed" }, "function": { "params": [ @@ -155359,9 +151041,7 @@ "start": 140368, "end": 140376 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -155430,9 +151110,7 @@ "start": 140416, "end": 140423 }, - "ctxt": 0, - "value": "tagName", - "optional": false + "value": "tagName" } }, "right": { @@ -155467,9 +151145,7 @@ "start": 140442, "end": 140449 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -155508,9 +151184,7 @@ "start": 140455, "end": 140462 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -155692,9 +151366,7 @@ "start": 140729, "end": 140737 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -155703,9 +151375,7 @@ "start": 140738, "end": 140744 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -155794,9 +151464,7 @@ "start": 140845, "end": 140855 }, - "ctxt": 0, - "value": "firstChild", - "optional": false + "value": "firstChild" } }, "definite": false @@ -155838,9 +151506,7 @@ "start": 140883, "end": 140887 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -155950,9 +151616,7 @@ "start": 141026, "end": 141031 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -155980,9 +151644,7 @@ "start": 141034, "end": 141038 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -156083,9 +151745,7 @@ "start": 141104, "end": 141108 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -156111,9 +151771,7 @@ "start": 141112, "end": 141118 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -156231,9 +151889,7 @@ "start": 141262, "end": 141269 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -156426,9 +152082,7 @@ "start": 141397, "end": 141412 }, - "ctxt": 0, - "value": "__createBinding", - "optional": false + "value": "__createBinding" } } }, @@ -156466,9 +152120,7 @@ "start": 141424, "end": 141430 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -156673,9 +152325,7 @@ "start": 141524, "end": 141538 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -156722,9 +152372,7 @@ "start": 141567, "end": 141577 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -156743,9 +152391,7 @@ "start": 141605, "end": 141608 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -157159,9 +152805,7 @@ "start": 141862, "end": 141874 }, - "ctxt": 0, - "value": "__exportStar", - "optional": false + "value": "__exportStar" } } }, @@ -157358,9 +153002,7 @@ "start": 141980, "end": 141989 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -157369,9 +153011,7 @@ "start": 141990, "end": 142004 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -157380,9 +153020,7 @@ "start": 142005, "end": 142009 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -157534,9 +153172,7 @@ "start": 142062, "end": 142076 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -157582,9 +153218,7 @@ "start": 142112, "end": 142117 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -157637,9 +153271,7 @@ "start": 142154, "end": 142164 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } }, "right": { @@ -157884,9 +153516,7 @@ "start": 142297, "end": 142316 }, - "ctxt": 0, - "value": "normalizeWhitespace", - "optional": false + "value": "normalizeWhitespace" }, "value": { "type": "BooleanLiteral", @@ -157905,9 +153535,7 @@ "start": 142341, "end": 142357 }, - "ctxt": 0, - "value": "withStartIndices", - "optional": false + "value": "withStartIndices" }, "value": { "type": "BooleanLiteral", @@ -157926,9 +153554,7 @@ "start": 142382, "end": 142396 }, - "ctxt": 0, - "value": "withEndIndices", - "optional": false + "value": "withEndIndices" }, "value": { "type": "BooleanLiteral", @@ -158115,9 +153741,7 @@ "start": 142525, "end": 142528 }, - "ctxt": 0, - "value": "dom", - "optional": false + "value": "dom" } }, "right": { @@ -158162,9 +153786,7 @@ "start": 142560, "end": 142565 }, - "ctxt": 0, - "value": "_done", - "optional": false + "value": "_done" } }, "right": { @@ -158209,9 +153831,7 @@ "start": 142600, "end": 142609 }, - "ctxt": 0, - "value": "_tagStack", - "optional": false + "value": "_tagStack" } }, "right": { @@ -158256,9 +153876,7 @@ "start": 142641, "end": 142650 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -158302,9 +153920,7 @@ "start": 142684, "end": 142691 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "right": { @@ -158598,9 +154214,7 @@ "start": 142999, "end": 143008 }, - "ctxt": 0, - "value": "_callback", - "optional": false + "value": "_callback" } }, "right": { @@ -158729,9 +154343,7 @@ "start": 143075, "end": 143083 }, - "ctxt": 0, - "value": "_options", - "optional": false + "value": "_options" } }, "right": { @@ -158863,9 +154475,7 @@ "start": 143147, "end": 143157 }, - "ctxt": 0, - "value": "_elementCB", - "optional": false + "value": "_elementCB" } }, "right": { @@ -159010,9 +154620,7 @@ "start": 143243, "end": 143252 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -159021,9 +154629,7 @@ "start": 143253, "end": 143265 }, - "ctxt": 0, - "value": "onparserinit", - "optional": false + "value": "onparserinit" } }, "right": { @@ -159096,9 +154702,7 @@ "start": 143308, "end": 143315 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "right": { @@ -159163,9 +154767,7 @@ "start": 143366, "end": 143375 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -159174,9 +154776,7 @@ "start": 143376, "end": 143383 }, - "ctxt": 0, - "value": "onreset", - "optional": false + "value": "onreset" } }, "right": { @@ -159261,9 +154861,7 @@ "start": 143452, "end": 143455 }, - "ctxt": 0, - "value": "dom", - "optional": false + "value": "dom" } }, "right": { @@ -159308,9 +154906,7 @@ "start": 143487, "end": 143492 }, - "ctxt": 0, - "value": "_done", - "optional": false + "value": "_done" } }, "right": { @@ -159355,9 +154951,7 @@ "start": 143527, "end": 143536 }, - "ctxt": 0, - "value": "_tagStack", - "optional": false + "value": "_tagStack" } }, "right": { @@ -159402,9 +154996,7 @@ "start": 143568, "end": 143577 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -159448,9 +155040,7 @@ "start": 143611, "end": 143618 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "right": { @@ -159516,9 +155106,7 @@ "start": 143631, "end": 143638 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } } } @@ -159637,9 +155225,7 @@ "start": 143722, "end": 143731 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -159648,9 +155234,7 @@ "start": 143732, "end": 143737 }, - "ctxt": 0, - "value": "onend", - "optional": false + "value": "onend" } }, "right": { @@ -159696,9 +155280,7 @@ "start": 143783, "end": 143788 }, - "ctxt": 0, - "value": "_done", - "optional": false + "value": "_done" } }, "consequent": { @@ -159743,9 +155325,7 @@ "start": 143823, "end": 143828 }, - "ctxt": 0, - "value": "_done", - "optional": false + "value": "_done" } }, "right": { @@ -159790,9 +155370,7 @@ "start": 143862, "end": 143869 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "right": { @@ -159836,9 +155414,7 @@ "start": 143903, "end": 143917 }, - "ctxt": 0, - "value": "handleCallback", - "optional": false + "value": "handleCallback" } }, "arguments": [ @@ -159906,9 +155482,7 @@ "start": 143970, "end": 143979 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -159917,9 +155491,7 @@ "start": 143980, "end": 143987 }, - "ctxt": 0, - "value": "onerror", - "optional": false + "value": "onerror" } }, "right": { @@ -159992,9 +155564,7 @@ "start": 144030, "end": 144044 }, - "ctxt": 0, - "value": "handleCallback", - "optional": false + "value": "handleCallback" } }, "arguments": [ @@ -160065,9 +155635,7 @@ "start": 144094, "end": 144103 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -160076,9 +155644,7 @@ "start": 144104, "end": 144114 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "right": { @@ -160131,9 +155697,7 @@ "start": 144156, "end": 144165 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -160204,9 +155768,7 @@ "start": 144207, "end": 144216 }, - "ctxt": 0, - "value": "_tagStack", - "optional": false + "value": "_tagStack" } }, "property": { @@ -160215,9 +155777,7 @@ "start": 144217, "end": 144220 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -160284,9 +155844,7 @@ "start": 144260, "end": 144267 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } } } @@ -160342,9 +155900,7 @@ "start": 144353, "end": 144361 }, - "ctxt": 0, - "value": "_options", - "optional": false + "value": "_options" } }, "property": { @@ -160353,9 +155909,7 @@ "start": 144362, "end": 144376 }, - "ctxt": 0, - "value": "withEndIndices", - "optional": false + "value": "withEndIndices" } }, "consequent": { @@ -160401,9 +155955,7 @@ "start": 144406, "end": 144414 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -160431,9 +155983,7 @@ "start": 144422, "end": 144429 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "property": { @@ -160442,9 +155992,7 @@ "start": 144430, "end": 144438 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } } } @@ -160478,9 +156026,7 @@ "start": 144490, "end": 144500 }, - "ctxt": 0, - "value": "_elementCB", - "optional": false + "value": "_elementCB" } }, "consequent": { @@ -160515,9 +156061,7 @@ "start": 144507, "end": 144517 }, - "ctxt": 0, - "value": "_elementCB", - "optional": false + "value": "_elementCB" } }, "arguments": [ @@ -160590,9 +156134,7 @@ "start": 144567, "end": 144576 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -160601,9 +156143,7 @@ "start": 144577, "end": 144586 }, - "ctxt": 0, - "value": "onopentag", - "optional": false + "value": "onopentag" } }, "right": { @@ -160719,9 +156259,7 @@ "start": 144641, "end": 144648 }, - "ctxt": 0, - "value": "Element", - "optional": false + "value": "Element" } }, "arguments": [ @@ -160790,9 +156328,7 @@ "start": 144681, "end": 144688 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -160851,9 +156387,7 @@ "start": 144718, "end": 144727 }, - "ctxt": 0, - "value": "_tagStack", - "optional": false + "value": "_tagStack" } }, "property": { @@ -160862,9 +156396,7 @@ "start": 144728, "end": 144732 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -160935,9 +156467,7 @@ "start": 144782, "end": 144791 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -160946,9 +156476,7 @@ "start": 144792, "end": 144798 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "right": { @@ -161041,9 +156569,7 @@ "start": 144849, "end": 144857 }, - "ctxt": 0, - "value": "_options", - "optional": false + "value": "_options" } }, "property": { @@ -161052,9 +156578,7 @@ "start": 144858, "end": 144877 }, - "ctxt": 0, - "value": "normalizeWhitespace", - "optional": false + "value": "normalizeWhitespace" } }, "definite": false @@ -161107,9 +156631,7 @@ "start": 144912, "end": 144921 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "definite": false @@ -161168,9 +156690,7 @@ "start": 144954, "end": 144958 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -161251,9 +156771,7 @@ "start": 145036, "end": 145040 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -161304,9 +156822,7 @@ "start": 145046, "end": 145050 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -161327,9 +156843,7 @@ "start": 145056, "end": 145063 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -161408,9 +156922,7 @@ "start": 145135, "end": 145139 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -161515,9 +157027,7 @@ "start": 145267, "end": 145274 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -161611,9 +157121,7 @@ "start": 145347, "end": 145351 }, - "ctxt": 0, - "value": "Text", - "optional": false + "value": "Text" } }, "arguments": [ @@ -161669,9 +157177,7 @@ "start": 145385, "end": 145392 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -161724,9 +157230,7 @@ "start": 145426, "end": 145435 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -161794,9 +157298,7 @@ "start": 145508, "end": 145517 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -161805,9 +157307,7 @@ "start": 145518, "end": 145527 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } }, "right": { @@ -161880,9 +157380,7 @@ "start": 145574, "end": 145583 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -161917,9 +157415,7 @@ "start": 145592, "end": 145601 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "property": { @@ -161928,9 +157424,7 @@ "start": 145602, "end": 145606 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -161990,9 +157484,7 @@ "start": 145653, "end": 145662 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "property": { @@ -162001,9 +157493,7 @@ "start": 145663, "end": 145667 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -162086,9 +157576,7 @@ "start": 145761, "end": 145768 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } }, "arguments": [ @@ -162144,9 +157632,7 @@ "start": 145798, "end": 145805 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -162199,9 +157685,7 @@ "start": 145835, "end": 145844 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -162266,9 +157750,7 @@ "start": 145895, "end": 145904 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -162277,9 +157759,7 @@ "start": 145905, "end": 145917 }, - "ctxt": 0, - "value": "oncommentend", - "optional": false + "value": "oncommentend" } }, "right": { @@ -162332,9 +157812,7 @@ "start": 145959, "end": 145968 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -162396,9 +157874,7 @@ "start": 146022, "end": 146031 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -162407,9 +157883,7 @@ "start": 146032, "end": 146044 }, - "ctxt": 0, - "value": "oncdatastart", - "optional": false + "value": "oncdatastart" } }, "right": { @@ -162486,9 +157960,7 @@ "start": 146095, "end": 146099 }, - "ctxt": 0, - "value": "Text", - "optional": false + "value": "Text" } }, "arguments": [ @@ -162567,9 +158039,7 @@ "start": 146139, "end": 146155 }, - "ctxt": 0, - "value": "NodeWithChildren", - "optional": false + "value": "NodeWithChildren" } }, "arguments": [ @@ -162649,9 +158119,7 @@ "start": 146196, "end": 146203 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -162707,9 +158175,7 @@ "start": 146230, "end": 146236 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -162756,9 +158222,7 @@ "start": 146267, "end": 146276 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -162823,9 +158287,7 @@ "start": 146327, "end": 146336 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -162834,9 +158296,7 @@ "start": 146337, "end": 146347 }, - "ctxt": 0, - "value": "oncdataend", - "optional": false + "value": "oncdataend" } }, "right": { @@ -162889,9 +158349,7 @@ "start": 146389, "end": 146398 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -162953,9 +158411,7 @@ "start": 146452, "end": 146461 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -162964,9 +158420,7 @@ "start": 146462, "end": 146485 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "right": { @@ -163082,9 +158536,7 @@ "start": 146540, "end": 146561 }, - "ctxt": 0, - "value": "ProcessingInstruction", - "optional": false + "value": "ProcessingInstruction" } }, "arguments": [ @@ -163153,9 +158605,7 @@ "start": 146594, "end": 146601 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -163226,9 +158676,7 @@ "start": 146651, "end": 146660 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -163237,9 +158685,7 @@ "start": 146661, "end": 146675 }, - "ctxt": 0, - "value": "handleCallback", - "optional": false + "value": "handleCallback" } }, "right": { @@ -163319,9 +158765,7 @@ "start": 146729, "end": 146738 }, - "ctxt": 0, - "value": "_callback", - "optional": false + "value": "_callback" } } }, @@ -163375,9 +158819,7 @@ "start": 146786, "end": 146795 }, - "ctxt": 0, - "value": "_callback", - "optional": false + "value": "_callback" } }, "arguments": [ @@ -163415,9 +158857,7 @@ "start": 146804, "end": 146807 }, - "ctxt": 0, - "value": "dom", - "optional": false + "value": "dom" } } } @@ -163523,9 +158963,7 @@ "start": 146945, "end": 146954 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -163534,9 +158972,7 @@ "start": 146955, "end": 146962 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "right": { @@ -163629,9 +159065,7 @@ "start": 147013, "end": 147022 }, - "ctxt": 0, - "value": "_tagStack", - "optional": false + "value": "_tagStack" } }, "property": { @@ -163672,9 +159106,7 @@ "start": 147028, "end": 147037 }, - "ctxt": 0, - "value": "_tagStack", - "optional": false + "value": "_tagStack" } }, "property": { @@ -163683,9 +159115,7 @@ "start": 147038, "end": 147044 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -163769,9 +159199,7 @@ "start": 147085, "end": 147093 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "alternate": { @@ -163793,9 +159221,7 @@ "start": 147101, "end": 147104 }, - "ctxt": 0, - "value": "dom", - "optional": false + "value": "dom" } } }, @@ -163881,9 +159307,7 @@ "start": 147138, "end": 147144 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -163927,9 +159351,7 @@ "start": 147180, "end": 147187 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "consequent": { @@ -163971,9 +159393,7 @@ "start": 147224, "end": 147232 }, - "ctxt": 0, - "value": "_options", - "optional": false + "value": "_options" } }, "property": { @@ -163982,9 +159402,7 @@ "start": 147233, "end": 147249 }, - "ctxt": 0, - "value": "withStartIndices", - "optional": false + "value": "withStartIndices" } }, "consequent": { @@ -164030,9 +159448,7 @@ "start": 147283, "end": 147293 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } }, "right": { @@ -164060,9 +159476,7 @@ "start": 147301, "end": 147308 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "property": { @@ -164071,9 +159485,7 @@ "start": 147309, "end": 147319 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } } } @@ -164113,9 +159525,7 @@ "start": 147379, "end": 147387 }, - "ctxt": 0, - "value": "_options", - "optional": false + "value": "_options" } }, "property": { @@ -164124,9 +159534,7 @@ "start": 147388, "end": 147402 }, - "ctxt": 0, - "value": "withEndIndices", - "optional": false + "value": "withEndIndices" } }, "consequent": { @@ -164172,9 +159580,7 @@ "start": 147436, "end": 147444 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -164202,9 +159608,7 @@ "start": 147452, "end": 147459 }, - "ctxt": 0, - "value": "_parser", - "optional": false + "value": "_parser" } }, "property": { @@ -164213,9 +159617,7 @@ "start": 147460, "end": 147468 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } } } @@ -164263,9 +159665,7 @@ "start": 147539, "end": 147543 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -164345,9 +159745,7 @@ "start": 147603, "end": 147607 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -164397,9 +159795,7 @@ "start": 147639, "end": 147643 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -164477,9 +159873,7 @@ "start": 147725, "end": 147731 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -164530,9 +159924,7 @@ "start": 147783, "end": 147792 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -164594,9 +159986,7 @@ "start": 147846, "end": 147855 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -164605,9 +159995,7 @@ "start": 147856, "end": 147867 }, - "ctxt": 0, - "value": "addDataNode", - "optional": false + "value": "addDataNode" } }, "right": { @@ -164680,9 +160068,7 @@ "start": 147910, "end": 147917 }, - "ctxt": 0, - "value": "addNode", - "optional": false + "value": "addNode" } }, "arguments": [ @@ -164735,9 +160121,7 @@ "start": 147947, "end": 147956 }, - "ctxt": 0, - "value": "_lastNode", - "optional": false + "value": "_lastNode" } }, "right": { @@ -164827,9 +160211,7 @@ "start": 148045, "end": 148055 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } }, "right": { @@ -165061,9 +160443,7 @@ "start": 148192, "end": 148201 }, - "ctxt": 0, - "value": "__extends", - "optional": false + "value": "__extends" } } }, @@ -165236,9 +160616,7 @@ "start": 148316, "end": 148330 }, - "ctxt": 0, - "value": "setPrototypeOf", - "optional": false + "value": "setPrototypeOf" } }, "right": { @@ -165270,9 +160648,7 @@ "start": 148360, "end": 148369 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "ArrayExpression", @@ -165388,9 +160764,7 @@ "start": 148488, "end": 148497 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" } }, "right": { @@ -165566,9 +160940,7 @@ "start": 148637, "end": 148646 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -165577,9 +160949,7 @@ "start": 148647, "end": 148661 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -165588,9 +160958,7 @@ "start": 148662, "end": 148666 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -165961,9 +161329,7 @@ "start": 148927, "end": 148938 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "right": { @@ -166020,9 +161386,7 @@ "start": 148987, "end": 148996 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -166085,9 +161449,7 @@ "start": 149019, "end": 149025 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -166149,9 +161511,7 @@ "start": 149035, "end": 149044 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -166176,9 +161536,7 @@ "start": 149049, "end": 149058 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -166298,9 +161656,7 @@ "start": 149136, "end": 149144 }, - "ctxt": 0, - "value": "__assign", - "optional": false + "value": "__assign" } } }, @@ -166375,9 +161731,7 @@ "start": 149189, "end": 149195 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "right": { @@ -166521,9 +161875,7 @@ "start": 149267, "end": 149273 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -166740,9 +162092,7 @@ "start": 149411, "end": 149420 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -166751,9 +162101,7 @@ "start": 149421, "end": 149435 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -166762,9 +162110,7 @@ "start": 149436, "end": 149440 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -166948,9 +162294,7 @@ "start": 149555, "end": 149560 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -167028,9 +162372,7 @@ "start": 149612, "end": 149626 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -167076,9 +162418,7 @@ "start": 149662, "end": 149667 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -167131,9 +162471,7 @@ "start": 149704, "end": 149713 }, - "ctxt": 0, - "value": "cloneNode", - "optional": false + "value": "cloneNode" } }, "right": { @@ -167165,9 +162503,7 @@ "start": 149718, "end": 149725 }, - "ctxt": 0, - "value": "Element", - "optional": false + "value": "Element" } }, "right": { @@ -167199,9 +162535,7 @@ "start": 149730, "end": 149746 }, - "ctxt": 0, - "value": "NodeWithChildren", - "optional": false + "value": "NodeWithChildren" } }, "right": { @@ -167233,9 +162567,7 @@ "start": 149751, "end": 149772 }, - "ctxt": 0, - "value": "ProcessingInstruction", - "optional": false + "value": "ProcessingInstruction" } }, "right": { @@ -167267,9 +162599,7 @@ "start": 149777, "end": 149784 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } }, "right": { @@ -167301,9 +162631,7 @@ "start": 149789, "end": 149793 }, - "ctxt": 0, - "value": "Text", - "optional": false + "value": "Text" } }, "right": { @@ -167335,9 +162663,7 @@ "start": 149798, "end": 149806 }, - "ctxt": 0, - "value": "DataNode", - "optional": false + "value": "DataNode" } }, "right": { @@ -167369,9 +162695,7 @@ "start": 149811, "end": 149815 }, - "ctxt": 0, - "value": "Node", - "optional": false + "value": "Node" } }, "right": { @@ -167848,9 +163172,7 @@ "start": 150179, "end": 150183 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -167897,9 +163219,7 @@ "start": 150214, "end": 150220 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -167943,9 +163263,7 @@ "start": 150254, "end": 150258 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -167989,9 +163307,7 @@ "start": 150292, "end": 150296 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -168035,9 +163351,7 @@ "start": 150330, "end": 150340 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } }, "right": { @@ -168081,9 +163395,7 @@ "start": 150374, "end": 150382 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -168137,9 +163449,7 @@ "start": 150431, "end": 150445 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -168167,9 +163477,7 @@ "start": 150451, "end": 150460 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -168202,9 +163510,7 @@ "start": 150496, "end": 150499 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -168335,9 +163641,7 @@ "start": 150584, "end": 150587 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -168362,9 +163666,7 @@ "start": 150593, "end": 150597 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -168454,9 +163756,7 @@ "start": 150676, "end": 150686 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -168475,9 +163775,7 @@ "start": 150715, "end": 150727 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -168530,9 +163828,7 @@ "start": 150777, "end": 150791 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -168560,9 +163856,7 @@ "start": 150797, "end": 150806 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -168595,9 +163889,7 @@ "start": 150844, "end": 150847 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -168642,9 +163934,7 @@ "start": 150899, "end": 150905 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -168664,9 +163954,7 @@ "start": 150949, "end": 150952 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -168738,9 +164026,7 @@ "start": 150998, "end": 151004 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -168771,9 +164057,7 @@ "start": 151052, "end": 151062 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -168792,9 +164076,7 @@ "start": 151091, "end": 151103 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -168847,9 +164129,7 @@ "start": 151153, "end": 151167 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -168877,9 +164157,7 @@ "start": 151173, "end": 151182 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -168912,9 +164190,7 @@ "start": 151225, "end": 151228 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -168959,9 +164235,7 @@ "start": 151280, "end": 151284 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } } } @@ -168981,9 +164255,7 @@ "start": 151328, "end": 151331 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -169055,9 +164327,7 @@ "start": 151377, "end": 151381 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -169088,9 +164358,7 @@ "start": 151429, "end": 151439 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -169109,9 +164377,7 @@ "start": 151468, "end": 151480 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -169164,9 +164430,7 @@ "start": 151530, "end": 151544 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -169194,9 +164458,7 @@ "start": 151550, "end": 151559 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -169229,9 +164491,7 @@ "start": 151598, "end": 151601 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -169276,9 +164536,7 @@ "start": 151653, "end": 151657 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } } } @@ -169298,9 +164556,7 @@ "start": 151701, "end": 151704 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -169372,9 +164628,7 @@ "start": 151750, "end": 151754 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -169405,9 +164659,7 @@ "start": 151802, "end": 151812 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -169426,9 +164678,7 @@ "start": 151841, "end": 151853 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -169487,9 +164737,7 @@ "start": 151901, "end": 151910 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -169498,9 +164746,7 @@ "start": 151911, "end": 151920 }, - "ctxt": 0, - "value": "cloneNode", - "optional": false + "value": "cloneNode" } }, "right": { @@ -169754,9 +165000,7 @@ "start": 152158, "end": 152162 }, - "ctxt": 0, - "value": "Node", - "optional": false + "value": "Node" } }, "right": { @@ -170027,9 +165271,7 @@ "start": 152308, "end": 152312 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -170106,9 +165348,7 @@ "start": 152353, "end": 152357 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -170182,9 +165422,7 @@ "start": 152433, "end": 152447 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -170212,9 +165450,7 @@ "start": 152457, "end": 152466 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -170247,9 +165483,7 @@ "start": 152503, "end": 152506 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -170294,9 +165528,7 @@ "start": 152558, "end": 152562 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -170316,9 +165548,7 @@ "start": 152606, "end": 152609 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -170390,9 +165620,7 @@ "start": 152655, "end": 152659 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -170423,9 +165651,7 @@ "start": 152707, "end": 152717 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -170444,9 +165670,7 @@ "start": 152746, "end": 152758 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -170544,9 +165768,7 @@ "start": 152849, "end": 152857 }, - "ctxt": 0, - "value": "DataNode", - "optional": false + "value": "DataNode" } }, "right": { @@ -170777,9 +165999,7 @@ "start": 152991, "end": 152995 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -170917,9 +166137,7 @@ "start": 153099, "end": 153103 }, - "ctxt": 0, - "value": "Text", - "optional": false + "value": "Text" } }, "right": { @@ -171150,9 +166368,7 @@ "start": 153243, "end": 153247 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -171290,9 +166506,7 @@ "start": 153357, "end": 153364 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } }, "right": { @@ -171563,9 +166777,7 @@ "start": 153536, "end": 153540 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -171654,9 +166866,7 @@ "start": 153594, "end": 153598 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -171775,9 +166985,7 @@ "start": 153728, "end": 153749 }, - "ctxt": 0, - "value": "ProcessingInstruction", - "optional": false + "value": "ProcessingInstruction" } }, "right": { @@ -172048,9 +167256,7 @@ "start": 153911, "end": 153915 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -172127,9 +167333,7 @@ "start": 153956, "end": 153964 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -172203,9 +167407,7 @@ "start": 154040, "end": 154054 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -172233,9 +167435,7 @@ "start": 154072, "end": 154081 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -172268,9 +167468,7 @@ "start": 154119, "end": 154122 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -172397,9 +167595,7 @@ "start": 154210, "end": 154218 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -172500,9 +167696,7 @@ "start": 154302, "end": 154312 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -172521,9 +167715,7 @@ "start": 154341, "end": 154353 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -172576,9 +167768,7 @@ "start": 154403, "end": 154417 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -172606,9 +167796,7 @@ "start": 154435, "end": 154444 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -172641,9 +167829,7 @@ "start": 154481, "end": 154484 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -172707,9 +167893,7 @@ "start": 154536, "end": 154544 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -172718,9 +167902,7 @@ "start": 154545, "end": 154551 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -172758,9 +167940,7 @@ "start": 154563, "end": 154571 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -172801,9 +167981,7 @@ "start": 154577, "end": 154585 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -172812,9 +167990,7 @@ "start": 154586, "end": 154592 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -172854,9 +168030,7 @@ "start": 154648, "end": 154658 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -172875,9 +168049,7 @@ "start": 154687, "end": 154699 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -172930,9 +168102,7 @@ "start": 154749, "end": 154763 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -172960,9 +168130,7 @@ "start": 154781, "end": 154790 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -172995,9 +168163,7 @@ "start": 154828, "end": 154831 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -173042,9 +168208,7 @@ "start": 154883, "end": 154891 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -173064,9 +168228,7 @@ "start": 154935, "end": 154938 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -173138,9 +168300,7 @@ "start": 154984, "end": 154992 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "right": { @@ -173171,9 +168331,7 @@ "start": 155040, "end": 155050 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -173192,9 +168350,7 @@ "start": 155079, "end": 155091 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -173292,9 +168448,7 @@ "start": 155190, "end": 155206 }, - "ctxt": 0, - "value": "NodeWithChildren", - "optional": false + "value": "NodeWithChildren" } }, "right": { @@ -173671,9 +168825,7 @@ "start": 155446, "end": 155450 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -173848,9 +169000,7 @@ "start": 155552, "end": 155556 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -173900,9 +169050,7 @@ "start": 155584, "end": 155591 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -173952,9 +169100,7 @@ "start": 155619, "end": 155626 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -174028,9 +169174,7 @@ "start": 155702, "end": 155716 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -174058,9 +169202,7 @@ "start": 155725, "end": 155734 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -174093,9 +169235,7 @@ "start": 155769, "end": 155772 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -174140,9 +169280,7 @@ "start": 155824, "end": 155828 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -174162,9 +169300,7 @@ "start": 155872, "end": 155875 }, - "ctxt": 0, - "value": "set", - "optional": false + "value": "set" }, "value": { "type": "FunctionExpression", @@ -174236,9 +169372,7 @@ "start": 155921, "end": 155925 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -174269,9 +169403,7 @@ "start": 155973, "end": 155983 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -174290,9 +169422,7 @@ "start": 156012, "end": 156024 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -174345,9 +169475,7 @@ "start": 156074, "end": 156088 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -174375,9 +169503,7 @@ "start": 156097, "end": 156106 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -174410,9 +169536,7 @@ "start": 156144, "end": 156147 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -174518,9 +169642,7 @@ "start": 156239, "end": 156243 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -174545,9 +169667,7 @@ "start": 156249, "end": 156256 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -174560,9 +169680,7 @@ "start": 156258, "end": 156261 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -174633,9 +169751,7 @@ "start": 156347, "end": 156351 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "Identifier", @@ -174656,9 +169772,7 @@ "start": 156388, "end": 156393 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "MemberExpression", @@ -174688,9 +169802,7 @@ "start": 156397, "end": 156404 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -174744,9 +169856,7 @@ "start": 156509, "end": 156519 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -174765,9 +169875,7 @@ "start": 156548, "end": 156560 }, - "ctxt": 0, - "value": "configurable", - "optional": false + "value": "configurable" }, "value": { "type": "BooleanLiteral", @@ -174865,9 +169973,7 @@ "start": 156650, "end": 156657 }, - "ctxt": 0, - "value": "Element", - "optional": false + "value": "Element" } }, "right": { @@ -175064,9 +170170,7 @@ "start": 156813, "end": 156817 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "cases": [ @@ -175134,9 +170238,7 @@ "start": 156893, "end": 156897 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -175259,9 +170361,7 @@ "start": 157014, "end": 157018 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -175289,9 +170389,7 @@ "start": 157022, "end": 157026 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -175367,9 +170465,7 @@ "start": 157125, "end": 157129 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -175563,9 +170659,7 @@ "start": 157322, "end": 157330 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -175654,9 +170748,7 @@ "start": 157378, "end": 157382 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -175715,9 +170807,7 @@ "start": 157392, "end": 157399 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -175780,9 +170870,7 @@ "start": 157432, "end": 157439 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -175867,9 +170955,7 @@ "start": 157493, "end": 157499 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -176068,9 +171154,7 @@ "start": 157711, "end": 157719 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -176202,9 +171286,7 @@ "start": 157804, "end": 157811 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -176289,9 +171371,7 @@ "start": 157865, "end": 157871 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -176452,9 +171532,7 @@ "start": 158155, "end": 158164 }, - "ctxt": 0, - "value": "cloneNode", - "optional": false + "value": "cloneNode" } }, "right": { @@ -176573,9 +171651,7 @@ "start": 158245, "end": 158248 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -176778,9 +171854,7 @@ "start": 158370, "end": 158376 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -176870,9 +171944,7 @@ "start": 158410, "end": 158414 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -177004,9 +172076,7 @@ "start": 158456, "end": 158460 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -177192,9 +172262,7 @@ "start": 158610, "end": 158624 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -177240,9 +172308,7 @@ "start": 158660, "end": 158665 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -177295,9 +172361,7 @@ "start": 158702, "end": 158712 }, - "ctxt": 0, - "value": "uniqueSort", - "optional": false + "value": "uniqueSort" } }, "right": { @@ -177329,9 +172393,7 @@ "start": 158717, "end": 158740 }, - "ctxt": 0, - "value": "compareDocumentPosition", - "optional": false + "value": "compareDocumentPosition" } }, "right": { @@ -177363,9 +172425,7 @@ "start": 158745, "end": 158758 }, - "ctxt": 0, - "value": "removeSubsets", - "optional": false + "value": "removeSubsets" } }, "right": { @@ -177550,9 +172610,7 @@ "start": 158865, "end": 158871 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -177750,9 +172808,7 @@ "start": 158977, "end": 158988 }, - "ctxt": 0, - "value": "lastIndexOf", - "optional": false + "value": "lastIndexOf" } }, "arguments": [ @@ -177856,9 +172912,7 @@ "start": 159033, "end": 159039 }, - "ctxt": 0, - "value": "splice", - "optional": false + "value": "splice" } }, "arguments": [ @@ -177958,9 +173012,7 @@ "start": 159137, "end": 159143 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "definite": false @@ -178017,9 +173069,7 @@ "start": 159154, "end": 159160 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } }, @@ -178066,9 +173116,7 @@ "start": 159194, "end": 159202 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -178131,9 +173179,7 @@ "start": 159239, "end": 159245 }, - "ctxt": 0, - "value": "splice", - "optional": false + "value": "splice" } }, "arguments": [ @@ -178243,9 +173289,7 @@ "start": 159406, "end": 159419 }, - "ctxt": 0, - "value": "removeSubsets", - "optional": false + "value": "removeSubsets" } }, "right": { @@ -178529,9 +173573,7 @@ "start": 159651, "end": 159662 }, - "ctxt": 0, - "value": "hasChildren", - "optional": false + "value": "hasChildren" } }, "arguments": [ @@ -178583,9 +173625,7 @@ "start": 159674, "end": 159680 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } }, @@ -178652,9 +173692,7 @@ "start": 159732, "end": 159739 }, - "ctxt": 0, - "value": "unshift", - "optional": false + "value": "unshift" } }, "arguments": [ @@ -178721,9 +173759,7 @@ "start": 159770, "end": 159776 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -178790,9 +173826,7 @@ "start": 159817, "end": 159828 }, - "ctxt": 0, - "value": "hasChildren", - "optional": false + "value": "hasChildren" } }, "arguments": [ @@ -178844,9 +173878,7 @@ "start": 159840, "end": 159846 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -178911,9 +173943,7 @@ "start": 159898, "end": 159905 }, - "ctxt": 0, - "value": "unshift", - "optional": false + "value": "unshift" } }, "arguments": [ @@ -178980,9 +174010,7 @@ "start": 159936, "end": 159942 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } } @@ -179046,9 +174074,7 @@ "start": 159990, "end": 159993 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "arguments": [ @@ -179076,9 +174102,7 @@ "start": 159996, "end": 160002 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -179106,9 +174130,7 @@ "start": 160006, "end": 160012 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -179506,9 +174528,7 @@ "start": 160271, "end": 160279 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -179687,9 +174707,7 @@ "start": 160363, "end": 160370 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -179738,9 +174756,7 @@ "start": 160378, "end": 160385 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -180005,9 +175021,7 @@ "start": 160669, "end": 160692 }, - "ctxt": 0, - "value": "compareDocumentPosition", - "optional": false + "value": "compareDocumentPosition" } }, "right": { @@ -180123,9 +175137,7 @@ "start": 160780, "end": 160786 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -180255,9 +175267,7 @@ "start": 160839, "end": 160847 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -180358,9 +175368,7 @@ "start": 160897, "end": 160901 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "arguments": [ @@ -180724,9 +175732,7 @@ "start": 161245, "end": 161255 }, - "ctxt": 0, - "value": "uniqueSort", - "optional": false + "value": "uniqueSort" } }, "right": { @@ -180919,9 +175925,7 @@ "start": 161374, "end": 161389 }, - "ctxt": 0, - "value": "__createBinding", - "optional": false + "value": "__createBinding" } } }, @@ -180959,9 +175963,7 @@ "start": 161401, "end": 161407 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -181166,9 +176168,7 @@ "start": 161501, "end": 161515 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -181215,9 +176215,7 @@ "start": 161544, "end": 161554 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -181236,9 +176234,7 @@ "start": 161582, "end": 161585 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -181652,9 +176648,7 @@ "start": 161839, "end": 161851 }, - "ctxt": 0, - "value": "__exportStar", - "optional": false + "value": "__exportStar" } } }, @@ -181851,9 +176845,7 @@ "start": 161957, "end": 161966 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -181862,9 +176854,7 @@ "start": 161967, "end": 161981 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -181873,9 +176863,7 @@ "start": 161982, "end": 161986 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -182027,9 +177015,7 @@ "start": 162039, "end": 162053 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -182075,9 +177061,7 @@ "start": 162089, "end": 162094 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -182754,9 +177738,7 @@ "start": 162387, "end": 162401 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -182802,9 +177784,7 @@ "start": 162437, "end": 162442 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -182857,9 +177837,7 @@ "start": 162479, "end": 162499 }, - "ctxt": 0, - "value": "getElementsByTagType", - "optional": false + "value": "getElementsByTagType" } }, "right": { @@ -182891,9 +177869,7 @@ "start": 162504, "end": 162524 }, - "ctxt": 0, - "value": "getElementsByTagName", - "optional": false + "value": "getElementsByTagName" } }, "right": { @@ -182925,9 +177901,7 @@ "start": 162529, "end": 162543 }, - "ctxt": 0, - "value": "getElementById", - "optional": false + "value": "getElementById" } }, "right": { @@ -182959,9 +177933,7 @@ "start": 162548, "end": 162559 }, - "ctxt": 0, - "value": "getElements", - "optional": false + "value": "getElements" } }, "right": { @@ -182993,9 +177965,7 @@ "start": 162564, "end": 162575 }, - "ctxt": 0, - "value": "testElement", - "optional": false + "value": "testElement" } }, "right": { @@ -183191,9 +178161,7 @@ "start": 162681, "end": 162689 }, - "ctxt": 0, - "value": "tag_name", - "optional": false + "value": "tag_name" }, "value": { "type": "FunctionExpression", @@ -183368,9 +178336,7 @@ "start": 162840, "end": 162845 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -183432,9 +178398,7 @@ "start": 162856, "end": 162860 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -183522,9 +178486,7 @@ "start": 162965, "end": 162970 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } } } @@ -183619,9 +178581,7 @@ "start": 163068, "end": 163073 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -183670,9 +178630,7 @@ "start": 163082, "end": 163086 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -183712,9 +178670,7 @@ "start": 163150, "end": 163158 }, - "ctxt": 0, - "value": "tag_type", - "optional": false + "value": "tag_type" }, "value": { "type": "FunctionExpression", @@ -183895,9 +178851,7 @@ "start": 163311, "end": 163315 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -183996,9 +178950,7 @@ "start": 163440, "end": 163444 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -184037,9 +178989,7 @@ "start": 163508, "end": 163520 }, - "ctxt": 0, - "value": "tag_contains", - "optional": false + "value": "tag_contains" }, "value": { "type": "FunctionExpression", @@ -184214,9 +179164,7 @@ "start": 163671, "end": 163677 }, - "ctxt": 0, - "value": "isText", - "optional": false + "value": "isText" } }, "arguments": [ @@ -184278,9 +179226,7 @@ "start": 163688, "end": 163692 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } } @@ -184387,9 +179333,7 @@ "start": 163817, "end": 163823 }, - "ctxt": 0, - "value": "isText", - "optional": false + "value": "isText" } }, "arguments": [ @@ -184438,9 +179382,7 @@ "start": 163832, "end": 163836 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -184680,9 +179622,7 @@ "start": 164065, "end": 164070 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -184750,9 +179690,7 @@ "start": 164081, "end": 164088 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -184877,9 +179815,7 @@ "start": 164200, "end": 164205 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -184934,9 +179870,7 @@ "start": 164214, "end": 164221 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -185311,9 +180245,7 @@ "start": 164486, "end": 164490 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -185339,9 +180271,7 @@ "start": 164494, "end": 164497 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -185660,9 +180590,7 @@ "start": 164661, "end": 164667 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -185711,9 +180639,7 @@ "start": 164685, "end": 164691 }, - "ctxt": 0, - "value": "reduce", - "optional": false + "value": "reduce" } }, "arguments": [ @@ -185982,9 +180908,7 @@ "start": 164869, "end": 164880 }, - "ctxt": 0, - "value": "testElement", - "optional": false + "value": "testElement" } }, "right": { @@ -186309,9 +181233,7 @@ "start": 165100, "end": 165106 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -186422,9 +181344,7 @@ "start": 165152, "end": 165163 }, - "ctxt": 0, - "value": "getElements", - "optional": false + "value": "getElements" } }, "right": { @@ -186654,9 +181574,7 @@ "start": 165337, "end": 165344 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -186762,9 +181680,7 @@ "start": 165383, "end": 165390 }, - "ctxt": 0, - "value": "findOne", - "optional": false + "value": "findOne" } }, "arguments": [ @@ -186889,9 +181805,7 @@ "start": 165450, "end": 165464 }, - "ctxt": 0, - "value": "getElementById", - "optional": false + "value": "getElementById" } }, "right": { @@ -187222,9 +182136,7 @@ "start": 165735, "end": 165741 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -187259,9 +182171,7 @@ "start": 165744, "end": 165752 }, - "ctxt": 0, - "value": "tag_name", - "optional": false + "value": "tag_name" } }, "arguments": [ @@ -187367,9 +182277,7 @@ "start": 165794, "end": 165814 }, - "ctxt": 0, - "value": "getElementsByTagName", - "optional": false + "value": "getElementsByTagName" } }, "right": { @@ -187700,9 +182608,7 @@ "start": 166091, "end": 166097 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -187737,9 +182643,7 @@ "start": 166100, "end": 166108 }, - "ctxt": 0, - "value": "tag_type", - "optional": false + "value": "tag_type" } }, "arguments": [ @@ -187845,9 +182749,7 @@ "start": 166150, "end": 166170 }, - "ctxt": 0, - "value": "getElementsByTagType", - "optional": false + "value": "getElementsByTagType" } }, "right": { @@ -187971,9 +182873,7 @@ "start": 166276, "end": 166290 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -188019,9 +182919,7 @@ "start": 166326, "end": 166331 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -188074,9 +182972,7 @@ "start": 166368, "end": 166375 }, - "ctxt": 0, - "value": "prepend", - "optional": false + "value": "prepend" } }, "right": { @@ -188108,9 +183004,7 @@ "start": 166380, "end": 166392 }, - "ctxt": 0, - "value": "prependChild", - "optional": false + "value": "prependChild" } }, "right": { @@ -188142,9 +183036,7 @@ "start": 166397, "end": 166403 }, - "ctxt": 0, - "value": "append", - "optional": false + "value": "append" } }, "right": { @@ -188176,9 +183068,7 @@ "start": 166408, "end": 166419 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" } }, "right": { @@ -188210,9 +183100,7 @@ "start": 166424, "end": 166438 }, - "ctxt": 0, - "value": "replaceElement", - "optional": false + "value": "replaceElement" } }, "right": { @@ -188244,9 +183132,7 @@ "start": 166443, "end": 166456 }, - "ctxt": 0, - "value": "removeElement", - "optional": false + "value": "removeElement" } }, "right": { @@ -188349,9 +183235,7 @@ "start": 166530, "end": 166534 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "consequent": { @@ -188395,9 +183279,7 @@ "start": 166538, "end": 166542 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "property": { @@ -188406,9 +183288,7 @@ "start": 166543, "end": 166547 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -188433,9 +183313,7 @@ "start": 166552, "end": 166556 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } } } @@ -188470,9 +183348,7 @@ "start": 166580, "end": 166584 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "consequent": { @@ -188516,9 +183392,7 @@ "start": 166588, "end": 166592 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "property": { @@ -188527,9 +183401,7 @@ "start": 166593, "end": 166597 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -188554,9 +183426,7 @@ "start": 166602, "end": 166606 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } } } @@ -188591,9 +183461,7 @@ "start": 166630, "end": 166636 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "consequent": { @@ -188659,9 +183527,7 @@ "start": 166670, "end": 166676 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "property": { @@ -188670,9 +183536,7 @@ "start": 166677, "end": 166685 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -188714,9 +183578,7 @@ "start": 166709, "end": 166715 }, - "ctxt": 0, - "value": "splice", - "optional": false + "value": "splice" } }, "arguments": [ @@ -188751,9 +183613,7 @@ "start": 166718, "end": 166729 }, - "ctxt": 0, - "value": "lastIndexOf", - "optional": false + "value": "lastIndexOf" } }, "arguments": [ @@ -188836,9 +183696,7 @@ "start": 166783, "end": 166796 }, - "ctxt": 0, - "value": "removeElement", - "optional": false + "value": "removeElement" } }, "right": { @@ -188976,9 +183834,7 @@ "start": 166885, "end": 166889 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -189003,9 +183859,7 @@ "start": 166894, "end": 166898 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } } }, @@ -189072,9 +183926,7 @@ "start": 166947, "end": 166951 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -189149,9 +184001,7 @@ "start": 167000, "end": 167004 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -189176,9 +184026,7 @@ "start": 167009, "end": 167013 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } } }, @@ -189245,9 +184093,7 @@ "start": 167062, "end": 167066 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -189322,9 +184168,7 @@ "start": 167115, "end": 167121 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -189349,9 +184193,7 @@ "start": 167126, "end": 167132 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } } }, @@ -189432,9 +184274,7 @@ "start": 167189, "end": 167197 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -189505,9 +184345,7 @@ "start": 167223, "end": 167234 }, - "ctxt": 0, - "value": "lastIndexOf", - "optional": false + "value": "lastIndexOf" } }, "arguments": [ @@ -189587,9 +184425,7 @@ "start": 167289, "end": 167303 }, - "ctxt": 0, - "value": "replaceElement", - "optional": false + "value": "replaceElement" } }, "right": { @@ -189747,9 +184583,7 @@ "start": 167416, "end": 167420 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -189796,9 +184630,7 @@ "start": 167447, "end": 167453 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -189861,9 +184693,7 @@ "start": 167481, "end": 167489 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -189872,9 +184702,7 @@ "start": 167490, "end": 167494 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -189967,9 +184795,7 @@ "start": 167535, "end": 167543 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -190013,9 +184839,7 @@ "start": 167546, "end": 167554 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -190024,9 +184848,7 @@ "start": 167555, "end": 167561 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -190080,9 +184902,7 @@ "start": 167590, "end": 167594 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -190132,9 +184952,7 @@ "start": 167622, "end": 167626 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -190194,9 +185012,7 @@ "start": 167678, "end": 167682 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -190253,9 +185069,7 @@ "start": 167736, "end": 167747 }, - "ctxt": 0, - "value": "appendChild", - "optional": false + "value": "appendChild" } }, "right": { @@ -190427,9 +185241,7 @@ "start": 167860, "end": 167866 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "definite": false @@ -190485,9 +185297,7 @@ "start": 167894, "end": 167898 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "definite": false @@ -190529,9 +185339,7 @@ "start": 167918, "end": 167922 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -190581,9 +185389,7 @@ "start": 167946, "end": 167950 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -190633,9 +185439,7 @@ "start": 167974, "end": 167978 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -190685,9 +185489,7 @@ "start": 168002, "end": 168008 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -190761,9 +185563,7 @@ "start": 168061, "end": 168065 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -190851,9 +185651,7 @@ "start": 168134, "end": 168142 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -190895,9 +185693,7 @@ "start": 168170, "end": 168176 }, - "ctxt": 0, - "value": "splice", - "optional": false + "value": "splice" } }, "arguments": [ @@ -190932,9 +185728,7 @@ "start": 168179, "end": 168190 }, - "ctxt": 0, - "value": "lastIndexOf", - "optional": false + "value": "lastIndexOf" } }, "arguments": [ @@ -191055,9 +185849,7 @@ "start": 168277, "end": 168285 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -191066,9 +185858,7 @@ "start": 168286, "end": 168290 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -191136,9 +185926,7 @@ "start": 168340, "end": 168346 }, - "ctxt": 0, - "value": "append", - "optional": false + "value": "append" } }, "right": { @@ -191296,9 +186084,7 @@ "start": 168452, "end": 168458 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -191348,9 +186134,7 @@ "start": 168482, "end": 168486 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -191410,9 +186194,7 @@ "start": 168517, "end": 168525 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -191421,9 +186203,7 @@ "start": 168526, "end": 168533 }, - "ctxt": 0, - "value": "unshift", - "optional": false + "value": "unshift" } }, "arguments": [ @@ -191516,9 +186296,7 @@ "start": 168576, "end": 168584 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -191577,9 +186355,7 @@ "start": 168611, "end": 168615 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -191629,9 +186405,7 @@ "start": 168643, "end": 168647 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -191691,9 +186465,7 @@ "start": 168699, "end": 168703 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -191750,9 +186522,7 @@ "start": 168757, "end": 168769 }, - "ctxt": 0, - "value": "prependChild", - "optional": false + "value": "prependChild" } }, "right": { @@ -191924,9 +186694,7 @@ "start": 168884, "end": 168890 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "definite": false @@ -192006,9 +186774,7 @@ "start": 168947, "end": 168955 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -192050,9 +186816,7 @@ "start": 168979, "end": 168985 }, - "ctxt": 0, - "value": "splice", - "optional": false + "value": "splice" } }, "arguments": [ @@ -192087,9 +186851,7 @@ "start": 168988, "end": 168995 }, - "ctxt": 0, - "value": "indexOf", - "optional": false + "value": "indexOf" } }, "arguments": [ @@ -192171,9 +186933,7 @@ "start": 169046, "end": 169050 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "consequent": { @@ -192225,9 +186985,7 @@ "start": 169076, "end": 169080 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "property": { @@ -192236,9 +186994,7 @@ "start": 169081, "end": 169085 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -192292,9 +187048,7 @@ "start": 169126, "end": 169132 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -192344,9 +187098,7 @@ "start": 169156, "end": 169160 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -192371,9 +187123,7 @@ "start": 169165, "end": 169169 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } } } @@ -192413,9 +187163,7 @@ "start": 169189, "end": 169193 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "right": { @@ -192465,9 +187213,7 @@ "start": 169217, "end": 169221 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "right": { @@ -192524,9 +187270,7 @@ "start": 169254, "end": 169261 }, - "ctxt": 0, - "value": "prepend", - "optional": false + "value": "prepend" } }, "right": { @@ -192661,9 +187405,7 @@ "start": 169356, "end": 169370 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -192709,9 +187451,7 @@ "start": 169406, "end": 169411 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -192764,9 +187504,7 @@ "start": 169448, "end": 169455 }, - "ctxt": 0, - "value": "findAll", - "optional": false + "value": "findAll" } }, "right": { @@ -192798,9 +187536,7 @@ "start": 169460, "end": 169469 }, - "ctxt": 0, - "value": "existsOne", - "optional": false + "value": "existsOne" } }, "right": { @@ -192832,9 +187568,7 @@ "start": 169474, "end": 169481 }, - "ctxt": 0, - "value": "findOne", - "optional": false + "value": "findOne" } }, "right": { @@ -192866,9 +187600,7 @@ "start": 169486, "end": 169498 }, - "ctxt": 0, - "value": "findOneChild", - "optional": false + "value": "findOneChild" } }, "right": { @@ -192900,9 +187632,7 @@ "start": 169503, "end": 169507 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "right": { @@ -192934,9 +187664,7 @@ "start": 169512, "end": 169518 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "right": { @@ -193350,9 +188078,7 @@ "start": 169798, "end": 169805 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -193545,9 +188271,7 @@ "start": 169887, "end": 169893 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "right": { @@ -193820,9 +188544,7 @@ "start": 170018, "end": 170024 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -194001,9 +188723,7 @@ "start": 170125, "end": 170129 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -194139,9 +188859,7 @@ "start": 170231, "end": 170242 }, - "ctxt": 0, - "value": "hasChildren", - "optional": false + "value": "hasChildren" } }, "arguments": [ @@ -194197,9 +188915,7 @@ "start": 170251, "end": 170259 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -194208,9 +188924,7 @@ "start": 170260, "end": 170266 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -194314,9 +189028,7 @@ "start": 170316, "end": 170324 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } }, @@ -194394,9 +189106,7 @@ "start": 170359, "end": 170363 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "property": { @@ -194405,9 +189115,7 @@ "start": 170364, "end": 170369 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -194487,9 +189195,7 @@ "start": 170408, "end": 170414 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } } @@ -194603,9 +189309,7 @@ "start": 170551, "end": 170555 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "right": { @@ -194722,9 +189426,7 @@ "start": 170632, "end": 170636 }, - "ctxt": 0, - "value": "find", - "optional": false + "value": "find" } }, "arguments": [ @@ -194787,9 +189489,7 @@ "start": 170668, "end": 170680 }, - "ctxt": 0, - "value": "findOneChild", - "optional": false + "value": "findOneChild" } }, "right": { @@ -195107,9 +189807,7 @@ "start": 170889, "end": 170895 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -195266,9 +189964,7 @@ "start": 170971, "end": 170976 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -195451,9 +190147,7 @@ "start": 171123, "end": 171131 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -195462,9 +190156,7 @@ "start": 171132, "end": 171138 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -195565,9 +190257,7 @@ "start": 171187, "end": 171195 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -195644,9 +190334,7 @@ "start": 171290, "end": 171297 }, - "ctxt": 0, - "value": "findOne", - "optional": false + "value": "findOne" } }, "right": { @@ -195763,9 +190451,7 @@ "start": 171374, "end": 171378 }, - "ctxt": 0, - "value": "some", - "optional": false + "value": "some" } }, "arguments": [ @@ -195857,9 +190543,7 @@ "start": 171424, "end": 171429 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -195968,9 +190652,7 @@ "start": 171447, "end": 171455 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -195979,9 +190661,7 @@ "start": 171456, "end": 171462 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -196049,9 +190729,7 @@ "start": 171485, "end": 171493 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -196118,9 +190796,7 @@ "start": 171544, "end": 171553 }, - "ctxt": 0, - "value": "existsOne", - "optional": false + "value": "existsOne" } }, "right": { @@ -196329,9 +191005,7 @@ "start": 171682, "end": 171688 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -196359,9 +191033,7 @@ "start": 171691, "end": 171696 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } } } @@ -196457,9 +191129,7 @@ "start": 171751, "end": 171756 }, - "ctxt": 0, - "value": "shift", - "optional": false + "value": "shift" } }, "arguments": [], @@ -196567,9 +191237,7 @@ "start": 171797, "end": 171805 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -196664,9 +191332,7 @@ "start": 171845, "end": 171851 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -196694,9 +191360,7 @@ "start": 171854, "end": 171859 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } } } @@ -196760,9 +191424,7 @@ "start": 171893, "end": 171899 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -196825,9 +191487,7 @@ "start": 171933, "end": 171940 }, - "ctxt": 0, - "value": "unshift", - "optional": false + "value": "unshift" } }, "property": { @@ -196836,9 +191496,7 @@ "start": 171941, "end": 171946 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -196951,9 +191609,7 @@ "start": 172007, "end": 172011 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -197038,9 +191694,7 @@ "start": 172086, "end": 172093 }, - "ctxt": 0, - "value": "findAll", - "optional": false + "value": "findAll" } }, "right": { @@ -197233,9 +191887,7 @@ "start": 172209, "end": 172224 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -197328,9 +191980,7 @@ "start": 172273, "end": 172283 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -197359,9 +192009,7 @@ "start": 172312, "end": 172319 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -197425,9 +192073,7 @@ "start": 172375, "end": 172389 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -197473,9 +192119,7 @@ "start": 172425, "end": 172430 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -197528,9 +192172,7 @@ "start": 172467, "end": 172474 }, - "ctxt": 0, - "value": "getText", - "optional": false + "value": "getText" } }, "right": { @@ -197562,9 +192204,7 @@ "start": 172479, "end": 172491 }, - "ctxt": 0, - "value": "getInnerHTML", - "optional": false + "value": "getInnerHTML" } }, "right": { @@ -197596,9 +192236,7 @@ "start": 172496, "end": 172508 }, - "ctxt": 0, - "value": "getOuterHTML", - "optional": false + "value": "getOuterHTML" } }, "right": { @@ -197876,9 +192514,7 @@ "start": 172648, "end": 172655 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "arguments": [ @@ -197954,9 +192590,7 @@ "start": 172690, "end": 172702 }, - "ctxt": 0, - "value": "getOuterHTML", - "optional": false + "value": "getOuterHTML" } }, "right": { @@ -198079,9 +192713,7 @@ "start": 172787, "end": 172798 }, - "ctxt": 0, - "value": "hasChildren", - "optional": false + "value": "hasChildren" } }, "arguments": [ @@ -198149,9 +192781,7 @@ "start": 172806, "end": 172814 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -198160,9 +192790,7 @@ "start": 172815, "end": 172818 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -198284,9 +192912,7 @@ "start": 172901, "end": 172905 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -198358,9 +192984,7 @@ "start": 172943, "end": 172955 }, - "ctxt": 0, - "value": "getInnerHTML", - "optional": false + "value": "getInnerHTML" } }, "right": { @@ -198458,9 +193082,7 @@ "start": 173033, "end": 173040 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -198528,9 +193150,7 @@ "start": 173054, "end": 173057 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -198556,9 +193176,7 @@ "start": 173067, "end": 173071 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -198615,9 +193233,7 @@ "start": 173099, "end": 173104 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -198678,9 +193294,7 @@ "start": 173118, "end": 173122 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -198744,9 +193358,7 @@ "start": 173151, "end": 173159 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -198792,9 +193404,7 @@ "start": 173184, "end": 173191 }, - "ctxt": 0, - "value": "isCDATA", - "optional": false + "value": "isCDATA" } }, "arguments": [ @@ -198862,9 +193472,7 @@ "start": 173213, "end": 173221 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -198909,9 +193517,7 @@ "start": 173246, "end": 173252 }, - "ctxt": 0, - "value": "isText", - "optional": false + "value": "isText" } }, "arguments": [ @@ -198959,9 +193565,7 @@ "start": 173266, "end": 173270 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -199025,9 +193629,7 @@ "start": 173326, "end": 173333 }, - "ctxt": 0, - "value": "getText", - "optional": false + "value": "getText" } }, "right": { @@ -199162,9 +193764,7 @@ "start": 173429, "end": 173443 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -199210,9 +193810,7 @@ "start": 173479, "end": 173484 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -199265,9 +193863,7 @@ "start": 173521, "end": 173532 }, - "ctxt": 0, - "value": "hasChildren", - "optional": false + "value": "hasChildren" } }, "right": { @@ -199299,9 +193895,7 @@ "start": 173537, "end": 173546 }, - "ctxt": 0, - "value": "isComment", - "optional": false + "value": "isComment" } }, "right": { @@ -199333,9 +193927,7 @@ "start": 173551, "end": 173557 }, - "ctxt": 0, - "value": "isText", - "optional": false + "value": "isText" } }, "right": { @@ -199367,9 +193959,7 @@ "start": 173562, "end": 173569 }, - "ctxt": 0, - "value": "isCDATA", - "optional": false + "value": "isCDATA" } }, "right": { @@ -199401,9 +193991,7 @@ "start": 173574, "end": 173579 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "right": { @@ -199576,9 +194164,7 @@ "start": 173677, "end": 173682 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -199641,9 +194227,7 @@ "start": 173714, "end": 173719 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "right": { @@ -199741,9 +194325,7 @@ "start": 173789, "end": 173793 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -199799,9 +194381,7 @@ "start": 173834, "end": 173841 }, - "ctxt": 0, - "value": "isCDATA", - "optional": false + "value": "isCDATA" } }, "right": { @@ -199899,9 +194479,7 @@ "start": 173912, "end": 173916 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -199957,9 +194535,7 @@ "start": 173956, "end": 173962 }, - "ctxt": 0, - "value": "isText", - "optional": false + "value": "isText" } }, "right": { @@ -200057,9 +194633,7 @@ "start": 174035, "end": 174039 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -200115,9 +194689,7 @@ "start": 174082, "end": 174091 }, - "ctxt": 0, - "value": "isComment", - "optional": false + "value": "isComment" } }, "right": { @@ -200227,9 +194799,7 @@ "start": 174174, "end": 174183 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -200238,9 +194808,7 @@ "start": 174184, "end": 174198 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -200249,9 +194817,7 @@ "start": 174199, "end": 174203 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -200326,9 +194892,7 @@ "start": 174247, "end": 174258 }, - "ctxt": 0, - "value": "hasChildren", - "optional": false + "value": "hasChildren" } }, "right": { @@ -200463,9 +195027,7 @@ "start": 174356, "end": 174370 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -200511,9 +195073,7 @@ "start": 174406, "end": 174411 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -200566,9 +195126,7 @@ "start": 174448, "end": 174466 }, - "ctxt": 0, - "value": "nextElementSibling", - "optional": false + "value": "nextElementSibling" } }, "right": { @@ -200600,9 +195158,7 @@ "start": 174471, "end": 174478 }, - "ctxt": 0, - "value": "getName", - "optional": false + "value": "getName" } }, "right": { @@ -200634,9 +195190,7 @@ "start": 174483, "end": 174492 }, - "ctxt": 0, - "value": "hasAttrib", - "optional": false + "value": "hasAttrib" } }, "right": { @@ -200668,9 +195222,7 @@ "start": 174497, "end": 174514 }, - "ctxt": 0, - "value": "getAttributeValue", - "optional": false + "value": "getAttributeValue" } }, "right": { @@ -200702,9 +195254,7 @@ "start": 174519, "end": 174530 }, - "ctxt": 0, - "value": "getSiblings", - "optional": false + "value": "getSiblings" } }, "right": { @@ -200736,9 +195286,7 @@ "start": 174535, "end": 174544 }, - "ctxt": 0, - "value": "getParent", - "optional": false + "value": "getParent" } }, "right": { @@ -200770,9 +195318,7 @@ "start": 174549, "end": 174560 }, - "ctxt": 0, - "value": "getChildren", - "optional": false + "value": "getChildren" } }, "right": { @@ -201055,9 +195601,7 @@ "start": 174716, "end": 174724 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -201170,9 +195714,7 @@ "start": 174787, "end": 174798 }, - "ctxt": 0, - "value": "getChildren", - "optional": false + "value": "getChildren" } }, "right": { @@ -201270,9 +195812,7 @@ "start": 174876, "end": 174882 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -201326,9 +195866,7 @@ "start": 174919, "end": 174928 }, - "ctxt": 0, - "value": "getParent", - "optional": false + "value": "getParent" } }, "right": { @@ -201684,9 +196222,7 @@ "start": 175154, "end": 175158 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } }, "definite": false @@ -201730,9 +196266,7 @@ "start": 175186, "end": 175190 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "definite": false @@ -201813,9 +196347,7 @@ "start": 175250, "end": 175257 }, - "ctxt": 0, - "value": "unshift", - "optional": false + "value": "unshift" } }, "arguments": [ @@ -201918,9 +196450,7 @@ "start": 175295, "end": 175299 }, - "ctxt": 0, - "value": "prev", - "optional": false + "value": "prev" } } } @@ -202004,9 +196534,7 @@ "start": 175376, "end": 175380 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -202109,9 +196637,7 @@ "start": 175418, "end": 175422 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } } } @@ -202180,9 +196706,7 @@ "start": 175494, "end": 175505 }, - "ctxt": 0, - "value": "getSiblings", - "optional": false + "value": "getSiblings" } }, "right": { @@ -202368,9 +196892,7 @@ "start": 175622, "end": 175629 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -202514,9 +197036,7 @@ "start": 175700, "end": 175717 }, - "ctxt": 0, - "value": "getAttributeValue", - "optional": false + "value": "getAttributeValue" } }, "right": { @@ -202647,9 +197167,7 @@ "start": 175804, "end": 175811 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -202701,9 +197219,7 @@ "start": 175830, "end": 175839 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -202712,9 +197228,7 @@ "start": 175840, "end": 175854 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -202723,9 +197237,7 @@ "start": 175855, "end": 175859 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -202753,9 +197265,7 @@ "start": 175862, "end": 175869 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -202811,9 +197321,7 @@ "start": 175879, "end": 175886 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -202886,9 +197394,7 @@ "start": 175926, "end": 175935 }, - "ctxt": 0, - "value": "hasAttrib", - "optional": false + "value": "hasAttrib" } }, "right": { @@ -202979,9 +197485,7 @@ "start": 176009, "end": 176013 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -203027,9 +197531,7 @@ "start": 176042, "end": 176049 }, - "ctxt": 0, - "value": "getName", - "optional": false + "value": "getName" } }, "right": { @@ -203173,9 +197675,7 @@ "start": 176156, "end": 176160 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } }, "definite": false @@ -203256,9 +197756,7 @@ "start": 176202, "end": 176207 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -203362,9 +197860,7 @@ "start": 176225, "end": 176229 }, - "ctxt": 0, - "value": "next", - "optional": false + "value": "next" } } } @@ -203431,9 +197927,7 @@ "start": 176284, "end": 176302 }, - "ctxt": 0, - "value": "nextElementSibling", - "optional": false + "value": "nextElementSibling" } }, "right": { @@ -203626,9 +198120,7 @@ "start": 176429, "end": 176438 }, - "ctxt": 0, - "value": "__extends", - "optional": false + "value": "__extends" } } }, @@ -203801,9 +198293,7 @@ "start": 176553, "end": 176567 }, - "ctxt": 0, - "value": "setPrototypeOf", - "optional": false + "value": "setPrototypeOf" } }, "right": { @@ -203835,9 +198325,7 @@ "start": 176597, "end": 176606 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" }, "value": { "type": "ArrayExpression", @@ -203953,9 +198441,7 @@ "start": 176725, "end": 176734 }, - "ctxt": 0, - "value": "__proto__", - "optional": false + "value": "__proto__" } }, "right": { @@ -204131,9 +198617,7 @@ "start": 176874, "end": 176883 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -204142,9 +198626,7 @@ "start": 176884, "end": 176898 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -204153,9 +198635,7 @@ "start": 176899, "end": 176903 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -204526,9 +199006,7 @@ "start": 177164, "end": 177175 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" } }, "right": { @@ -204585,9 +199063,7 @@ "start": 177224, "end": 177233 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -204650,9 +199126,7 @@ "start": 177256, "end": 177262 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "arguments": [ @@ -204714,9 +199188,7 @@ "start": 177272, "end": 177281 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "right": { @@ -204741,9 +199213,7 @@ "start": 177286, "end": 177295 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } } }, @@ -204863,9 +199333,7 @@ "start": 177373, "end": 177388 }, - "ctxt": 0, - "value": "__createBinding", - "optional": false + "value": "__createBinding" } } }, @@ -204903,9 +199371,7 @@ "start": 177400, "end": 177406 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -205110,9 +199576,7 @@ "start": 177500, "end": 177514 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -205159,9 +199623,7 @@ "start": 177543, "end": 177553 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -205180,9 +199642,7 @@ "start": 177581, "end": 177584 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -205596,9 +200056,7 @@ "start": 177838, "end": 177856 }, - "ctxt": 0, - "value": "__setModuleDefault", - "optional": false + "value": "__setModuleDefault" } } }, @@ -205636,9 +200094,7 @@ "start": 177868, "end": 177874 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -205733,9 +200189,7 @@ "start": 177918, "end": 177932 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -205781,9 +200235,7 @@ "start": 177969, "end": 177979 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -205802,9 +200254,7 @@ "start": 178007, "end": 178012 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -206027,9 +200477,7 @@ "start": 178151, "end": 178163 }, - "ctxt": 0, - "value": "__importStar", - "optional": false + "value": "__importStar" } } }, @@ -206116,9 +200564,7 @@ "start": 178209, "end": 178219 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -206340,9 +200786,7 @@ "start": 178381, "end": 178390 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -206351,9 +200795,7 @@ "start": 178391, "end": 178405 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -206362,9 +200804,7 @@ "start": 178406, "end": 178410 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -206620,9 +201060,7 @@ "start": 178528, "end": 178543 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -206715,9 +201153,7 @@ "start": 178592, "end": 178602 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -206746,9 +201182,7 @@ "start": 178631, "end": 178638 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -206812,9 +201246,7 @@ "start": 178694, "end": 178708 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -206860,9 +201292,7 @@ "start": 178744, "end": 178749 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -206915,9 +201345,7 @@ "start": 178786, "end": 178795 }, - "ctxt": 0, - "value": "parseFeed", - "optional": false + "value": "parseFeed" } }, "right": { @@ -206949,9 +201377,7 @@ "start": 178800, "end": 178811 }, - "ctxt": 0, - "value": "FeedHandler", - "optional": false + "value": "FeedHandler" } }, "right": { @@ -208728,9 +203154,7 @@ "start": 179765, "end": 179769 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -208848,9 +203272,7 @@ "start": 179866, "end": 179875 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -208859,9 +203281,7 @@ "start": 179876, "end": 179881 }, - "ctxt": 0, - "value": "onend", - "optional": false + "value": "onend" } }, "right": { @@ -209052,9 +203472,7 @@ "start": 180020, "end": 180023 }, - "ctxt": 0, - "value": "dom", - "optional": false + "value": "dom" } } } @@ -209124,9 +203542,7 @@ "start": 180085, "end": 180089 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -209196,9 +203612,7 @@ "start": 180142, "end": 180150 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -209240,9 +203654,7 @@ "start": 180182, "end": 180186 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -209584,9 +203996,7 @@ "start": 180486, "end": 180490 }, - "ctxt": 0, - "value": "link", - "optional": false + "value": "link" } }, "right": { @@ -209819,9 +204229,7 @@ "start": 180732, "end": 180739 }, - "ctxt": 0, - "value": "updated", - "optional": false + "value": "updated" } }, "right": { @@ -209988,9 +204396,7 @@ "start": 180891, "end": 180896 }, - "ctxt": 0, - "value": "items", - "optional": false + "value": "items" } }, "right": { @@ -210058,9 +204464,7 @@ "start": 180923, "end": 180926 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -210198,9 +204602,7 @@ "start": 181029, "end": 181037 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -210535,9 +204937,7 @@ "start": 181348, "end": 181352 }, - "ctxt": 0, - "value": "link", - "optional": false + "value": "link" } }, "right": { @@ -210746,9 +205146,7 @@ "start": 181554, "end": 181565 }, - "ctxt": 0, - "value": "description", - "optional": false + "value": "description" } }, "right": { @@ -210903,9 +205301,7 @@ "start": 181744, "end": 181751 }, - "ctxt": 0, - "value": "pubDate", - "optional": false + "value": "pubDate" } }, "right": { @@ -210983,9 +205379,7 @@ "start": 181834, "end": 181839 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "right": { @@ -211234,9 +205628,7 @@ "start": 182042, "end": 182050 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -211328,9 +205720,7 @@ "start": 182091, "end": 182099 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -211438,9 +205828,7 @@ "start": 182166, "end": 182170 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -211478,9 +205866,7 @@ "start": 182175, "end": 182179 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -211489,9 +205875,7 @@ "start": 182180, "end": 182186 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -211559,9 +205943,7 @@ "start": 182224, "end": 182226 }, - "ctxt": 0, - "value": "id", - "optional": false + "value": "id" } }, "right": { @@ -211945,9 +206327,7 @@ "start": 182587, "end": 182594 }, - "ctxt": 0, - "value": "updated", - "optional": false + "value": "updated" } }, "right": { @@ -212114,9 +206494,7 @@ "start": 182755, "end": 182760 }, - "ctxt": 0, - "value": "items", - "optional": false + "value": "items" } }, "right": { @@ -212186,9 +206564,7 @@ "start": 182785, "end": 182793 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } } @@ -212201,9 +206577,7 @@ "start": 182795, "end": 182798 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -212341,9 +206715,7 @@ "start": 182901, "end": 182909 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "definite": false @@ -212790,9 +207162,7 @@ "start": 183315, "end": 183322 }, - "ctxt": 0, - "value": "pubDate", - "optional": false + "value": "pubDate" } }, "right": { @@ -212868,9 +207238,7 @@ "start": 183372, "end": 183377 }, - "ctxt": 0, - "value": "media", - "optional": false + "value": "media" } }, "right": { @@ -212979,9 +207347,7 @@ "start": 183547, "end": 183551 }, - "ctxt": 0, - "value": "feed", - "optional": false + "value": "feed" } }, "right": { @@ -213028,9 +207394,7 @@ "start": 183582, "end": 183596 }, - "ctxt": 0, - "value": "handleCallback", - "optional": false + "value": "handleCallback" } }, "arguments": [ @@ -213156,9 +207520,7 @@ "start": 183715, "end": 183722 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -213204,9 +207566,7 @@ "start": 183739, "end": 183750 }, - "ctxt": 0, - "value": "FeedHandler", - "optional": false + "value": "FeedHandler" } }, "right": { @@ -213340,9 +207700,7 @@ "start": 183855, "end": 183858 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -213434,9 +207792,7 @@ "start": 183929, "end": 183935 }, - "ctxt": 0, - "value": "medium", - "optional": false + "value": "medium" }, "value": { "type": "MemberExpression", @@ -213466,9 +207822,7 @@ "start": 183939, "end": 183946 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213477,9 +207831,7 @@ "start": 183947, "end": 183953 }, - "ctxt": 0, - "value": "medium", - "optional": false + "value": "medium" } } }, @@ -213491,9 +207843,7 @@ "start": 183979, "end": 183988 }, - "ctxt": 0, - "value": "isDefault", - "optional": false + "value": "isDefault" }, "value": { "type": "UnaryExpression", @@ -213537,9 +207887,7 @@ "start": 183994, "end": 184001 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213548,9 +207896,7 @@ "start": 184002, "end": 184011 }, - "ctxt": 0, - "value": "isDefault", - "optional": false + "value": "isDefault" } } } @@ -213596,9 +207942,7 @@ "start": 184061, "end": 184068 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213607,9 +207951,7 @@ "start": 184069, "end": 184072 }, - "ctxt": 0, - "value": "url", - "optional": false + "value": "url" } }, "consequent": { @@ -213655,9 +207997,7 @@ "start": 184102, "end": 184105 }, - "ctxt": 0, - "value": "url", - "optional": false + "value": "url" } }, "right": { @@ -213688,9 +208028,7 @@ "start": 184110, "end": 184117 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213699,9 +208037,7 @@ "start": 184118, "end": 184121 }, - "ctxt": 0, - "value": "url", - "optional": false + "value": "url" } } } @@ -213744,9 +208080,7 @@ "start": 184170, "end": 184177 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213755,9 +208089,7 @@ "start": 184178, "end": 184186 }, - "ctxt": 0, - "value": "fileSize", - "optional": false + "value": "fileSize" } }, "consequent": { @@ -213803,9 +208135,7 @@ "start": 184216, "end": 184224 }, - "ctxt": 0, - "value": "fileSize", - "optional": false + "value": "fileSize" } }, "right": { @@ -213856,9 +208186,7 @@ "start": 184238, "end": 184245 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213867,9 +208195,7 @@ "start": 184246, "end": 184254 }, - "ctxt": 0, - "value": "fileSize", - "optional": false + "value": "fileSize" } } }, @@ -213928,9 +208254,7 @@ "start": 184308, "end": 184315 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -213939,9 +208263,7 @@ "start": 184316, "end": 184320 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "consequent": { @@ -213987,9 +208309,7 @@ "start": 184350, "end": 184354 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -214020,9 +208340,7 @@ "start": 184359, "end": 184366 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214031,9 +208349,7 @@ "start": 184367, "end": 184371 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } } } @@ -214076,9 +208392,7 @@ "start": 184420, "end": 184427 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214087,9 +208401,7 @@ "start": 184428, "end": 184438 }, - "ctxt": 0, - "value": "expression", - "optional": false + "value": "expression" } }, "consequent": { @@ -214135,9 +208447,7 @@ "start": 184468, "end": 184478 }, - "ctxt": 0, - "value": "expression", - "optional": false + "value": "expression" } }, "right": { @@ -214168,9 +208478,7 @@ "start": 184483, "end": 184490 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214179,9 +208487,7 @@ "start": 184491, "end": 184501 }, - "ctxt": 0, - "value": "expression", - "optional": false + "value": "expression" } } } @@ -214224,9 +208530,7 @@ "start": 184550, "end": 184557 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214235,9 +208539,7 @@ "start": 184558, "end": 184565 }, - "ctxt": 0, - "value": "bitrate", - "optional": false + "value": "bitrate" } }, "consequent": { @@ -214283,9 +208585,7 @@ "start": 184595, "end": 184602 }, - "ctxt": 0, - "value": "bitrate", - "optional": false + "value": "bitrate" } }, "right": { @@ -214336,9 +208636,7 @@ "start": 184616, "end": 184623 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214347,9 +208645,7 @@ "start": 184624, "end": 184631 }, - "ctxt": 0, - "value": "bitrate", - "optional": false + "value": "bitrate" } } }, @@ -214408,9 +208704,7 @@ "start": 184685, "end": 184692 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214419,9 +208713,7 @@ "start": 184693, "end": 184702 }, - "ctxt": 0, - "value": "framerate", - "optional": false + "value": "framerate" } }, "consequent": { @@ -214467,9 +208759,7 @@ "start": 184732, "end": 184741 }, - "ctxt": 0, - "value": "framerate", - "optional": false + "value": "framerate" } }, "right": { @@ -214520,9 +208810,7 @@ "start": 184755, "end": 184762 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214531,9 +208819,7 @@ "start": 184763, "end": 184772 }, - "ctxt": 0, - "value": "framerate", - "optional": false + "value": "framerate" } } }, @@ -214592,9 +208878,7 @@ "start": 184826, "end": 184833 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214603,9 +208887,7 @@ "start": 184834, "end": 184846 }, - "ctxt": 0, - "value": "samplingrate", - "optional": false + "value": "samplingrate" } }, "consequent": { @@ -214651,9 +208933,7 @@ "start": 184876, "end": 184888 }, - "ctxt": 0, - "value": "samplingrate", - "optional": false + "value": "samplingrate" } }, "right": { @@ -214704,9 +208984,7 @@ "start": 184902, "end": 184909 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214715,9 +208993,7 @@ "start": 184910, "end": 184922 }, - "ctxt": 0, - "value": "samplingrate", - "optional": false + "value": "samplingrate" } } }, @@ -214776,9 +209052,7 @@ "start": 184976, "end": 184983 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214787,9 +209061,7 @@ "start": 184984, "end": 184992 }, - "ctxt": 0, - "value": "channels", - "optional": false + "value": "channels" } }, "consequent": { @@ -214835,9 +209107,7 @@ "start": 185022, "end": 185030 }, - "ctxt": 0, - "value": "channels", - "optional": false + "value": "channels" } }, "right": { @@ -214888,9 +209158,7 @@ "start": 185044, "end": 185051 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214899,9 +209167,7 @@ "start": 185052, "end": 185060 }, - "ctxt": 0, - "value": "channels", - "optional": false + "value": "channels" } } }, @@ -214960,9 +209226,7 @@ "start": 185114, "end": 185121 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -214971,9 +209235,7 @@ "start": 185122, "end": 185130 }, - "ctxt": 0, - "value": "duration", - "optional": false + "value": "duration" } }, "consequent": { @@ -215019,9 +209281,7 @@ "start": 185160, "end": 185168 }, - "ctxt": 0, - "value": "duration", - "optional": false + "value": "duration" } }, "right": { @@ -215072,9 +209332,7 @@ "start": 185182, "end": 185189 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215083,9 +209341,7 @@ "start": 185190, "end": 185198 }, - "ctxt": 0, - "value": "duration", - "optional": false + "value": "duration" } } }, @@ -215144,9 +209400,7 @@ "start": 185252, "end": 185259 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215155,9 +209409,7 @@ "start": 185260, "end": 185266 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } }, "consequent": { @@ -215203,9 +209455,7 @@ "start": 185296, "end": 185302 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } }, "right": { @@ -215256,9 +209506,7 @@ "start": 185316, "end": 185323 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215267,9 +209515,7 @@ "start": 185324, "end": 185330 }, - "ctxt": 0, - "value": "height", - "optional": false + "value": "height" } } }, @@ -215328,9 +209574,7 @@ "start": 185384, "end": 185391 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215339,9 +209583,7 @@ "start": 185392, "end": 185397 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "consequent": { @@ -215387,9 +209629,7 @@ "start": 185427, "end": 185432 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } }, "right": { @@ -215440,9 +209680,7 @@ "start": 185446, "end": 185453 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215451,9 +209689,7 @@ "start": 185454, "end": 185459 }, - "ctxt": 0, - "value": "width", - "optional": false + "value": "width" } } }, @@ -215512,9 +209748,7 @@ "start": 185513, "end": 185520 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215523,9 +209757,7 @@ "start": 185521, "end": 185525 }, - "ctxt": 0, - "value": "lang", - "optional": false + "value": "lang" } }, "consequent": { @@ -215571,9 +209803,7 @@ "start": 185555, "end": 185559 }, - "ctxt": 0, - "value": "lang", - "optional": false + "value": "lang" } }, "right": { @@ -215604,9 +209834,7 @@ "start": 185564, "end": 185571 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -215615,9 +209843,7 @@ "start": 185572, "end": 185576 }, - "ctxt": 0, - "value": "lang", - "optional": false + "value": "lang" } } } @@ -215765,9 +209991,7 @@ "start": 185729, "end": 185749 }, - "ctxt": 0, - "value": "getElementsByTagName", - "optional": false + "value": "getElementsByTagName" } }, "arguments": [ @@ -215927,9 +210151,7 @@ "start": 185845, "end": 185865 }, - "ctxt": 0, - "value": "getElementsByTagName", - "optional": false + "value": "getElementsByTagName" } }, "arguments": [ @@ -216231,9 +210453,7 @@ "start": 186046, "end": 186053 }, - "ctxt": 0, - "value": "getText", - "optional": false + "value": "getText" } }, "arguments": [ @@ -216268,9 +210488,7 @@ "start": 186056, "end": 186076 }, - "ctxt": 0, - "value": "getElementsByTagName", - "optional": false + "value": "getElementsByTagName" } }, "arguments": [ @@ -216338,9 +210556,7 @@ "start": 186090, "end": 186094 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -216520,9 +210736,7 @@ "start": 186256, "end": 186263 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "definite": false @@ -217164,9 +211378,7 @@ "start": 186694, "end": 186701 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" }, "value": { "type": "BooleanLiteral", @@ -217452,9 +211664,7 @@ "start": 186899, "end": 186905 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } }, "arguments": [ @@ -217493,9 +211703,7 @@ "start": 186912, "end": 186915 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "arguments": [ @@ -217544,9 +211752,7 @@ "start": 186945, "end": 186949 }, - "ctxt": 0, - "value": "feed", - "optional": false + "value": "feed" } } } @@ -217592,9 +211798,7 @@ "start": 186978, "end": 186987 }, - "ctxt": 0, - "value": "parseFeed", - "optional": false + "value": "parseFeed" } }, "right": { @@ -217787,9 +211991,7 @@ "start": 187105, "end": 187120 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -217882,9 +212084,7 @@ "start": 187169, "end": 187179 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -217913,9 +212113,7 @@ "start": 187208, "end": 187215 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -217979,9 +212177,7 @@ "start": 187271, "end": 187285 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -218027,9 +212223,7 @@ "start": 187321, "end": 187326 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -218082,9 +212276,7 @@ "start": 187363, "end": 187369 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } }, "right": { @@ -218460,9 +212652,7 @@ "start": 187592, "end": 187594 }, - "ctxt": 0, - "value": "tr", - "optional": false + "value": "tr" }, "value": { "type": "NewExpression", @@ -218542,9 +212732,7 @@ "start": 187641, "end": 187643 }, - "ctxt": 0, - "value": "th", - "optional": false + "value": "th" }, "value": { "type": "NewExpression", @@ -218600,9 +212788,7 @@ "start": 187678, "end": 187680 }, - "ctxt": 0, - "value": "td", - "optional": false + "value": "td" }, "value": { "type": "NewExpression", @@ -218682,9 +212868,7 @@ "start": 187730, "end": 187734 }, - "ctxt": 0, - "value": "body", - "optional": false + "value": "body" }, "value": { "type": "NewExpression", @@ -218764,9 +212948,7 @@ "start": 187789, "end": 187791 }, - "ctxt": 0, - "value": "li", - "optional": false + "value": "li" }, "value": { "type": "NewExpression", @@ -218822,9 +213004,7 @@ "start": 187826, "end": 187827 }, - "ctxt": 0, - "value": "p", - "optional": false + "value": "p" }, "value": { "type": "Identifier", @@ -218845,9 +213025,7 @@ "start": 187848, "end": 187850 }, - "ctxt": 0, - "value": "h1", - "optional": false + "value": "h1" }, "value": { "type": "Identifier", @@ -218868,9 +213046,7 @@ "start": 187871, "end": 187873 }, - "ctxt": 0, - "value": "h2", - "optional": false + "value": "h2" }, "value": { "type": "Identifier", @@ -218891,9 +213067,7 @@ "start": 187894, "end": 187896 }, - "ctxt": 0, - "value": "h3", - "optional": false + "value": "h3" }, "value": { "type": "Identifier", @@ -218914,9 +213088,7 @@ "start": 187917, "end": 187919 }, - "ctxt": 0, - "value": "h4", - "optional": false + "value": "h4" }, "value": { "type": "Identifier", @@ -218937,9 +213109,7 @@ "start": 187940, "end": 187942 }, - "ctxt": 0, - "value": "h5", - "optional": false + "value": "h5" }, "value": { "type": "Identifier", @@ -218960,9 +213130,7 @@ "start": 187963, "end": 187965 }, - "ctxt": 0, - "value": "h6", - "optional": false + "value": "h6" }, "value": { "type": "Identifier", @@ -218983,9 +213151,7 @@ "start": 187986, "end": 187992 }, - "ctxt": 0, - "value": "select", - "optional": false + "value": "select" }, "value": { "type": "Identifier", @@ -219006,9 +213172,7 @@ "start": 188013, "end": 188018 }, - "ctxt": 0, - "value": "input", - "optional": false + "value": "input" }, "value": { "type": "Identifier", @@ -219029,9 +213193,7 @@ "start": 188039, "end": 188045 }, - "ctxt": 0, - "value": "output", - "optional": false + "value": "output" }, "value": { "type": "Identifier", @@ -219052,9 +213214,7 @@ "start": 188066, "end": 188072 }, - "ctxt": 0, - "value": "button", - "optional": false + "value": "button" }, "value": { "type": "Identifier", @@ -219075,9 +213235,7 @@ "start": 188093, "end": 188101 }, - "ctxt": 0, - "value": "datalist", - "optional": false + "value": "datalist" }, "value": { "type": "Identifier", @@ -219098,9 +213256,7 @@ "start": 188122, "end": 188130 }, - "ctxt": 0, - "value": "textarea", - "optional": false + "value": "textarea" }, "value": { "type": "Identifier", @@ -219121,9 +213277,7 @@ "start": 188151, "end": 188157 }, - "ctxt": 0, - "value": "option", - "optional": false + "value": "option" }, "value": { "type": "NewExpression", @@ -219179,9 +213333,7 @@ "start": 188196, "end": 188204 }, - "ctxt": 0, - "value": "optgroup", - "optional": false + "value": "optgroup" }, "value": { "type": "NewExpression", @@ -219249,9 +213401,7 @@ "start": 188255, "end": 188257 }, - "ctxt": 0, - "value": "dd", - "optional": false + "value": "dd" }, "value": { "type": "NewExpression", @@ -219319,9 +213469,7 @@ "start": 188298, "end": 188300 }, - "ctxt": 0, - "value": "dt", - "optional": false + "value": "dt" }, "value": { "type": "NewExpression", @@ -219389,9 +213537,7 @@ "start": 188341, "end": 188348 }, - "ctxt": 0, - "value": "address", - "optional": false + "value": "address" }, "value": { "type": "Identifier", @@ -219412,9 +213558,7 @@ "start": 188369, "end": 188376 }, - "ctxt": 0, - "value": "article", - "optional": false + "value": "article" }, "value": { "type": "Identifier", @@ -219435,9 +213579,7 @@ "start": 188397, "end": 188402 }, - "ctxt": 0, - "value": "aside", - "optional": false + "value": "aside" }, "value": { "type": "Identifier", @@ -219458,9 +213600,7 @@ "start": 188423, "end": 188433 }, - "ctxt": 0, - "value": "blockquote", - "optional": false + "value": "blockquote" }, "value": { "type": "Identifier", @@ -219481,9 +213621,7 @@ "start": 188454, "end": 188461 }, - "ctxt": 0, - "value": "details", - "optional": false + "value": "details" }, "value": { "type": "Identifier", @@ -219504,9 +213642,7 @@ "start": 188482, "end": 188485 }, - "ctxt": 0, - "value": "div", - "optional": false + "value": "div" }, "value": { "type": "Identifier", @@ -219527,9 +213663,7 @@ "start": 188506, "end": 188508 }, - "ctxt": 0, - "value": "dl", - "optional": false + "value": "dl" }, "value": { "type": "Identifier", @@ -219550,9 +213684,7 @@ "start": 188529, "end": 188537 }, - "ctxt": 0, - "value": "fieldset", - "optional": false + "value": "fieldset" }, "value": { "type": "Identifier", @@ -219573,9 +213705,7 @@ "start": 188558, "end": 188568 }, - "ctxt": 0, - "value": "figcaption", - "optional": false + "value": "figcaption" }, "value": { "type": "Identifier", @@ -219596,9 +213726,7 @@ "start": 188589, "end": 188595 }, - "ctxt": 0, - "value": "figure", - "optional": false + "value": "figure" }, "value": { "type": "Identifier", @@ -219619,9 +213747,7 @@ "start": 188616, "end": 188622 }, - "ctxt": 0, - "value": "footer", - "optional": false + "value": "footer" }, "value": { "type": "Identifier", @@ -219642,9 +213768,7 @@ "start": 188643, "end": 188647 }, - "ctxt": 0, - "value": "form", - "optional": false + "value": "form" }, "value": { "type": "Identifier", @@ -219665,9 +213789,7 @@ "start": 188668, "end": 188674 }, - "ctxt": 0, - "value": "header", - "optional": false + "value": "header" }, "value": { "type": "Identifier", @@ -219688,9 +213810,7 @@ "start": 188695, "end": 188697 }, - "ctxt": 0, - "value": "hr", - "optional": false + "value": "hr" }, "value": { "type": "Identifier", @@ -219711,9 +213831,7 @@ "start": 188718, "end": 188722 }, - "ctxt": 0, - "value": "main", - "optional": false + "value": "main" }, "value": { "type": "Identifier", @@ -219734,9 +213852,7 @@ "start": 188743, "end": 188746 }, - "ctxt": 0, - "value": "nav", - "optional": false + "value": "nav" }, "value": { "type": "Identifier", @@ -219757,9 +213873,7 @@ "start": 188767, "end": 188769 }, - "ctxt": 0, - "value": "ol", - "optional": false + "value": "ol" }, "value": { "type": "Identifier", @@ -219780,9 +213894,7 @@ "start": 188790, "end": 188793 }, - "ctxt": 0, - "value": "pre", - "optional": false + "value": "pre" }, "value": { "type": "Identifier", @@ -219803,9 +213915,7 @@ "start": 188814, "end": 188821 }, - "ctxt": 0, - "value": "section", - "optional": false + "value": "section" }, "value": { "type": "Identifier", @@ -219826,9 +213936,7 @@ "start": 188842, "end": 188847 }, - "ctxt": 0, - "value": "table", - "optional": false + "value": "table" }, "value": { "type": "Identifier", @@ -219849,9 +213957,7 @@ "start": 188868, "end": 188870 }, - "ctxt": 0, - "value": "ul", - "optional": false + "value": "ul" }, "value": { "type": "Identifier", @@ -219872,9 +213978,7 @@ "start": 188891, "end": 188893 }, - "ctxt": 0, - "value": "rt", - "optional": false + "value": "rt" }, "value": { "type": "NewExpression", @@ -219942,9 +214046,7 @@ "start": 188934, "end": 188936 }, - "ctxt": 0, - "value": "rp", - "optional": false + "value": "rp" }, "value": { "type": "NewExpression", @@ -220012,9 +214114,7 @@ "start": 188977, "end": 188982 }, - "ctxt": 0, - "value": "tbody", - "optional": false + "value": "tbody" }, "value": { "type": "NewExpression", @@ -220082,9 +214182,7 @@ "start": 189029, "end": 189034 }, - "ctxt": 0, - "value": "tfoot", - "optional": false + "value": "tfoot" }, "value": { "type": "NewExpression", @@ -221092,9 +215190,7 @@ "start": 189696, "end": 189706 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } }, "right": { @@ -221140,9 +215236,7 @@ "start": 189737, "end": 189745 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -221186,9 +215280,7 @@ "start": 189779, "end": 189786 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } }, "right": { @@ -221234,9 +215326,7 @@ "start": 189818, "end": 189828 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } }, "right": { @@ -221282,9 +215372,7 @@ "start": 189860, "end": 189871 }, - "ctxt": 0, - "value": "attribvalue", - "optional": false + "value": "attribvalue" } }, "right": { @@ -221330,9 +215418,7 @@ "start": 189903, "end": 189910 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -221376,9 +215462,7 @@ "start": 189944, "end": 189949 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "right": { @@ -221423,9 +215507,7 @@ "start": 189981, "end": 189995 }, - "ctxt": 0, - "value": "foreignContext", - "optional": false + "value": "foreignContext" } }, "right": { @@ -221470,9 +215552,7 @@ "start": 190027, "end": 190034 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "right": { @@ -221519,9 +215599,7 @@ "start": 190065, "end": 190068 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "right": { @@ -221651,9 +215729,7 @@ "start": 190133, "end": 190150 }, - "ctxt": 0, - "value": "lowerCaseTagNames", - "optional": false + "value": "lowerCaseTagNames" } }, "right": { @@ -221722,9 +215798,7 @@ "start": 190160, "end": 190173 }, - "ctxt": 0, - "value": "lowerCaseTags", - "optional": false + "value": "lowerCaseTags" } } } @@ -221812,9 +215886,7 @@ "start": 190209, "end": 190216 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -221853,9 +215925,7 @@ "start": 190243, "end": 190266 }, - "ctxt": 0, - "value": "lowerCaseAttributeNames", - "optional": false + "value": "lowerCaseAttributeNames" } }, "right": { @@ -221924,9 +215994,7 @@ "start": 190276, "end": 190299 }, - "ctxt": 0, - "value": "lowerCaseAttributeNames", - "optional": false + "value": "lowerCaseAttributeNames" } } } @@ -222014,9 +216082,7 @@ "start": 190335, "end": 190342 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -222055,9 +216121,7 @@ "start": 190369, "end": 190378 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "right": { @@ -222139,9 +216203,7 @@ "start": 190393, "end": 190402 }, - "ctxt": 0, - "value": "Tokenizer", - "optional": false + "value": "Tokenizer" } } } @@ -222222,9 +216284,7 @@ "start": 190437, "end": 190444 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -222251,9 +216311,7 @@ "start": 190451, "end": 190458 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } } }, @@ -222371,9 +216429,7 @@ "start": 190502, "end": 190505 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -222384,9 +216440,7 @@ "start": 190507, "end": 190519 }, - "ctxt": 0, - "value": "onparserinit", - "optional": false + "value": "onparserinit" } } } @@ -222481,9 +216535,7 @@ "start": 190559, "end": 190563 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -222563,9 +216615,7 @@ "start": 190614, "end": 190623 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -222574,9 +216624,7 @@ "start": 190624, "end": 190638 }, - "ctxt": 0, - "value": "updatePosition", - "optional": false + "value": "updatePosition" } }, "right": { @@ -222649,9 +216697,7 @@ "start": 190685, "end": 190693 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -222708,9 +216754,7 @@ "start": 190739, "end": 190748 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -222719,9 +216763,7 @@ "start": 190749, "end": 190761 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -222775,9 +216817,7 @@ "start": 190803, "end": 190813 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } }, "right": { @@ -222833,9 +216873,7 @@ "start": 190884, "end": 190894 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } }, "right": { @@ -222870,9 +216908,7 @@ "start": 190902, "end": 190911 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -222881,9 +216917,7 @@ "start": 190912, "end": 190924 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -222944,9 +216978,7 @@ "start": 191013, "end": 191023 }, - "ctxt": 0, - "value": "startIndex", - "optional": false + "value": "startIndex" } }, "right": { @@ -222975,9 +217007,7 @@ "start": 191031, "end": 191039 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -223027,9 +217057,7 @@ "start": 191091, "end": 191099 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } }, "right": { @@ -223064,9 +217092,7 @@ "start": 191107, "end": 191116 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -223075,9 +217101,7 @@ "start": 191117, "end": 191133 }, - "ctxt": 0, - "value": "getAbsoluteIndex", - "optional": false + "value": "getAbsoluteIndex" } }, "arguments": [], @@ -223135,9 +217159,7 @@ "start": 191178, "end": 191187 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -223146,9 +217168,7 @@ "start": 191188, "end": 191194 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "right": { @@ -223273,9 +217293,7 @@ "start": 191267, "end": 191281 }, - "ctxt": 0, - "value": "updatePosition", - "optional": false + "value": "updatePosition" } }, "arguments": [ @@ -223328,9 +217346,7 @@ "start": 191311, "end": 191319 }, - "ctxt": 0, - "value": "endIndex", - "optional": false + "value": "endIndex" } } } @@ -223434,9 +217450,7 @@ "start": 191358, "end": 191361 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -223447,9 +217461,7 @@ "start": 191363, "end": 191369 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } } } @@ -223544,9 +217556,7 @@ "start": 191409, "end": 191413 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -223631,9 +217641,7 @@ "start": 191462, "end": 191471 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -223642,9 +217650,7 @@ "start": 191472, "end": 191485 }, - "ctxt": 0, - "value": "onopentagname", - "optional": false + "value": "onopentagname" } }, "right": { @@ -223762,9 +217768,7 @@ "start": 191562, "end": 191579 }, - "ctxt": 0, - "value": "lowerCaseTagNames", - "optional": false + "value": "lowerCaseTagNames" } }, "consequent": { @@ -223828,9 +217832,7 @@ "start": 191613, "end": 191624 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -223874,9 +217876,7 @@ "start": 191674, "end": 191681 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } }, "right": { @@ -223936,9 +217936,7 @@ "start": 191717, "end": 191724 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -223947,9 +217945,7 @@ "start": 191725, "end": 191732 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -223994,9 +217990,7 @@ "start": 191743, "end": 191752 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -224005,9 +217999,7 @@ "start": 191753, "end": 191767 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -224016,9 +218008,7 @@ "start": 191768, "end": 191772 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -224153,9 +218143,7 @@ "start": 191858, "end": 191863 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -224164,9 +218152,7 @@ "start": 191864, "end": 191870 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -224232,9 +218218,7 @@ "start": 191883, "end": 191886 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -224283,9 +218267,7 @@ "start": 191896, "end": 191901 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -224326,9 +218308,7 @@ "start": 191907, "end": 191912 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -224337,9 +218317,7 @@ "start": 191913, "end": 191919 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -224400,9 +218378,7 @@ "start": 191962, "end": 191972 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "arguments": [ @@ -224468,9 +218444,7 @@ "start": 192053, "end": 192060 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -224479,9 +218453,7 @@ "start": 192061, "end": 192068 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -224520,9 +218492,7 @@ "start": 192075, "end": 192078 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -224590,9 +218560,7 @@ "start": 192114, "end": 192119 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -224601,9 +218569,7 @@ "start": 192120, "end": 192124 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -224659,9 +218625,7 @@ "start": 192159, "end": 192162 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -224727,9 +218691,7 @@ "start": 192202, "end": 192216 }, - "ctxt": 0, - "value": "foreignContext", - "optional": false + "value": "foreignContext" } }, "property": { @@ -224738,9 +218700,7 @@ "start": 192217, "end": 192221 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -224796,9 +218756,7 @@ "start": 192265, "end": 192268 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -224864,9 +218822,7 @@ "start": 192308, "end": 192322 }, - "ctxt": 0, - "value": "foreignContext", - "optional": false + "value": "foreignContext" } }, "property": { @@ -224875,9 +218831,7 @@ "start": 192323, "end": 192327 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -225004,9 +218958,7 @@ "start": 192398, "end": 192401 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -225017,9 +218969,7 @@ "start": 192403, "end": 192416 }, - "ctxt": 0, - "value": "onopentagname", - "optional": false + "value": "onopentagname" } } } @@ -225114,9 +219064,7 @@ "start": 192456, "end": 192460 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -225182,9 +219130,7 @@ "start": 192497, "end": 192500 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -225193,9 +219139,7 @@ "start": 192501, "end": 192510 }, - "ctxt": 0, - "value": "onopentag", - "optional": false + "value": "onopentag" } }, "consequent": { @@ -225230,9 +219174,7 @@ "start": 192517, "end": 192524 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -225297,9 +219239,7 @@ "start": 192572, "end": 192581 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -225308,9 +219248,7 @@ "start": 192582, "end": 192594 }, - "ctxt": 0, - "value": "onopentagend", - "optional": false + "value": "onopentagend" } }, "right": { @@ -225415,9 +219353,7 @@ "start": 192666, "end": 192680 }, - "ctxt": 0, - "value": "updatePosition", - "optional": false + "value": "updatePosition" } }, "arguments": [ @@ -225462,9 +219398,7 @@ "start": 192714, "end": 192721 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "consequent": { @@ -225574,9 +219508,7 @@ "start": 192764, "end": 192767 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -225587,9 +219519,7 @@ "start": 192769, "end": 192778 }, - "ctxt": 0, - "value": "onopentag", - "optional": false + "value": "onopentag" } } } @@ -225684,9 +219614,7 @@ "start": 192818, "end": 192822 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -225724,9 +219652,7 @@ "start": 192831, "end": 192838 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } } }, @@ -225751,9 +219677,7 @@ "start": 192845, "end": 192852 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } } @@ -225794,9 +219718,7 @@ "start": 192884, "end": 192891 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -225864,9 +219786,7 @@ "start": 192951, "end": 192958 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -225875,9 +219795,7 @@ "start": 192959, "end": 192966 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -225906,9 +219824,7 @@ "start": 192975, "end": 192978 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -225917,9 +219833,7 @@ "start": 192979, "end": 192989 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } } }, @@ -225952,9 +219866,7 @@ "start": 192995, "end": 192998 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -225979,9 +219891,7 @@ "start": 193004, "end": 193011 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } } } @@ -226035,9 +219945,7 @@ "start": 193045, "end": 193048 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -226046,9 +219954,7 @@ "start": 193049, "end": 193059 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "arguments": [ @@ -226073,9 +219979,7 @@ "start": 193065, "end": 193072 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } } } @@ -226119,9 +220023,7 @@ "start": 193121, "end": 193128 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } }, "right": { @@ -226185,9 +220087,7 @@ "start": 193176, "end": 193185 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -226196,9 +220096,7 @@ "start": 193186, "end": 193196 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "right": { @@ -226271,9 +220169,7 @@ "start": 193239, "end": 193253 }, - "ctxt": 0, - "value": "updatePosition", - "optional": false + "value": "updatePosition" } }, "arguments": [ @@ -226318,9 +220214,7 @@ "start": 193287, "end": 193304 }, - "ctxt": 0, - "value": "lowerCaseTagNames", - "optional": false + "value": "lowerCaseTagNames" } }, "consequent": { @@ -226384,9 +220278,7 @@ "start": 193338, "end": 193349 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -226440,9 +220332,7 @@ "start": 193400, "end": 193403 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -226491,9 +220381,7 @@ "start": 193412, "end": 193415 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -226560,9 +220448,7 @@ "start": 193451, "end": 193465 }, - "ctxt": 0, - "value": "foreignContext", - "optional": false + "value": "foreignContext" } }, "property": { @@ -226571,9 +220457,7 @@ "start": 193466, "end": 193469 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -226622,9 +220506,7 @@ "start": 193523, "end": 193528 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -226633,9 +220515,7 @@ "start": 193529, "end": 193535 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -226676,9 +220556,7 @@ "start": 193545, "end": 193552 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -226687,9 +220565,7 @@ "start": 193553, "end": 193560 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -226728,9 +220604,7 @@ "start": 193567, "end": 193570 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -226821,9 +220695,7 @@ "start": 193615, "end": 193620 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -226832,9 +220704,7 @@ "start": 193621, "end": 193632 }, - "ctxt": 0, - "value": "lastIndexOf", - "optional": false + "value": "lastIndexOf" } }, "arguments": [ @@ -226938,9 +220808,7 @@ "start": 193714, "end": 193717 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -226949,9 +220817,7 @@ "start": 193718, "end": 193728 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "consequent": { @@ -227018,9 +220884,7 @@ "start": 193773, "end": 193778 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -227029,9 +220893,7 @@ "start": 193779, "end": 193785 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -227118,9 +220980,7 @@ "start": 193878, "end": 193881 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -227129,9 +220989,7 @@ "start": 193882, "end": 193892 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "arguments": [ @@ -227169,9 +221027,7 @@ "start": 193898, "end": 193903 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -227180,9 +221036,7 @@ "start": 193904, "end": 193907 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -227236,9 +221090,7 @@ "start": 193985, "end": 193990 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -227247,9 +221099,7 @@ "start": 193991, "end": 193997 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -227339,9 +221189,7 @@ "start": 194056, "end": 194063 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -227350,9 +221198,7 @@ "start": 194064, "end": 194071 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -227397,9 +221243,7 @@ "start": 194108, "end": 194121 }, - "ctxt": 0, - "value": "onopentagname", - "optional": false + "value": "onopentagname" } }, "arguments": [ @@ -227452,9 +221296,7 @@ "start": 194159, "end": 194174 }, - "ctxt": 0, - "value": "closeCurrentTag", - "optional": false + "value": "closeCurrentTag" } }, "arguments": [], @@ -227513,9 +221355,7 @@ "start": 194240, "end": 194247 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -227524,9 +221364,7 @@ "start": 194248, "end": 194255 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -227640,9 +221478,7 @@ "start": 194317, "end": 194330 }, - "ctxt": 0, - "value": "onopentagname", - "optional": false + "value": "onopentagname" } }, "arguments": [ @@ -227695,9 +221531,7 @@ "start": 194364, "end": 194379 }, - "ctxt": 0, - "value": "closeCurrentTag", - "optional": false + "value": "closeCurrentTag" } }, "arguments": [], @@ -227759,9 +221593,7 @@ "start": 194446, "end": 194455 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -227770,9 +221602,7 @@ "start": 194456, "end": 194472 }, - "ctxt": 0, - "value": "onselfclosingtag", - "optional": false + "value": "onselfclosingtag" } }, "right": { @@ -227838,9 +221668,7 @@ "start": 194518, "end": 194525 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -227849,9 +221677,7 @@ "start": 194526, "end": 194533 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -227879,9 +221705,7 @@ "start": 194542, "end": 194549 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -227890,9 +221714,7 @@ "start": 194550, "end": 194570 }, - "ctxt": 0, - "value": "recognizeSelfClosing", - "optional": false + "value": "recognizeSelfClosing" } } }, @@ -227921,9 +221743,7 @@ "start": 194579, "end": 194593 }, - "ctxt": 0, - "value": "foreignContext", - "optional": false + "value": "foreignContext" } }, "property": { @@ -227964,9 +221784,7 @@ "start": 194599, "end": 194613 }, - "ctxt": 0, - "value": "foreignContext", - "optional": false + "value": "foreignContext" } }, "property": { @@ -227975,9 +221793,7 @@ "start": 194614, "end": 194620 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -228033,9 +221849,7 @@ "start": 194658, "end": 194673 }, - "ctxt": 0, - "value": "closeCurrentTag", - "optional": false + "value": "closeCurrentTag" } }, "arguments": [], @@ -228084,9 +221898,7 @@ "start": 194734, "end": 194746 }, - "ctxt": 0, - "value": "onopentagend", - "optional": false + "value": "onopentagend" } }, "arguments": [], @@ -228146,9 +221958,7 @@ "start": 194813, "end": 194822 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -228157,9 +221967,7 @@ "start": 194823, "end": 194838 }, - "ctxt": 0, - "value": "closeCurrentTag", - "optional": false + "value": "closeCurrentTag" } }, "right": { @@ -228278,9 +222086,7 @@ "start": 194918, "end": 194925 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } }, "definite": false @@ -228319,9 +222125,7 @@ "start": 194952, "end": 194964 }, - "ctxt": 0, - "value": "onopentagend", - "optional": false + "value": "onopentagend" } }, "arguments": [], @@ -228366,9 +222170,7 @@ "start": 194997, "end": 195002 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -228409,9 +222211,7 @@ "start": 195008, "end": 195013 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -228420,9 +222220,7 @@ "start": 195014, "end": 195020 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -228555,9 +222353,7 @@ "start": 195074, "end": 195077 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -228568,9 +222364,7 @@ "start": 195079, "end": 195089 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } } } @@ -228665,9 +222459,7 @@ "start": 195129, "end": 195133 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -228740,9 +222532,7 @@ "start": 195170, "end": 195175 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -228751,9 +222541,7 @@ "start": 195176, "end": 195179 }, - "ctxt": 0, - "value": "pop", - "optional": false + "value": "pop" } }, "arguments": [], @@ -228814,9 +222602,7 @@ "start": 195246, "end": 195255 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -228825,9 +222611,7 @@ "start": 195256, "end": 195268 }, - "ctxt": 0, - "value": "onattribname", - "optional": false + "value": "onattribname" } }, "right": { @@ -228893,9 +222677,7 @@ "start": 195315, "end": 195338 }, - "ctxt": 0, - "value": "lowerCaseAttributeNames", - "optional": false + "value": "lowerCaseAttributeNames" } }, "consequent": { @@ -228959,9 +222741,7 @@ "start": 195372, "end": 195383 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -229005,9 +222785,7 @@ "start": 195433, "end": 195443 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } }, "right": { @@ -229072,9 +222850,7 @@ "start": 195490, "end": 195499 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -229083,9 +222859,7 @@ "start": 195500, "end": 195512 }, - "ctxt": 0, - "value": "onattribdata", - "optional": false + "value": "onattribdata" } }, "right": { @@ -229158,9 +222932,7 @@ "start": 195555, "end": 195566 }, - "ctxt": 0, - "value": "attribvalue", - "optional": false + "value": "attribvalue" } }, "right": { @@ -229225,9 +222997,7 @@ "start": 195614, "end": 195623 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -229236,9 +223006,7 @@ "start": 195624, "end": 195635 }, - "ctxt": 0, - "value": "onattribend", - "optional": false + "value": "onattribend" } }, "right": { @@ -229430,9 +223198,7 @@ "start": 195718, "end": 195721 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -229443,9 +223209,7 @@ "start": 195723, "end": 195734 }, - "ctxt": 0, - "value": "onattribute", - "optional": false + "value": "onattribute" } } } @@ -229540,9 +223304,7 @@ "start": 195774, "end": 195778 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -229580,9 +223342,7 @@ "start": 195787, "end": 195797 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } } }, @@ -229607,9 +223367,7 @@ "start": 195804, "end": 195815 }, - "ctxt": 0, - "value": "attribvalue", - "optional": false + "value": "attribvalue" } } }, @@ -229663,9 +223421,7 @@ "start": 195850, "end": 195857 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -229716,9 +223472,7 @@ "start": 195869, "end": 195878 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -229727,9 +223481,7 @@ "start": 195879, "end": 195893 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -229738,9 +223490,7 @@ "start": 195894, "end": 195898 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -229765,9 +223515,7 @@ "start": 195904, "end": 195911 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -229792,9 +223540,7 @@ "start": 195918, "end": 195928 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } } } @@ -229849,9 +223595,7 @@ "start": 195962, "end": 195969 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "property": { @@ -229879,9 +223623,7 @@ "start": 195975, "end": 195985 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } } } @@ -229905,9 +223647,7 @@ "start": 195994, "end": 196005 }, - "ctxt": 0, - "value": "attribvalue", - "optional": false + "value": "attribvalue" } } } @@ -229948,9 +223688,7 @@ "start": 196053, "end": 196063 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } }, "right": { @@ -229996,9 +223734,7 @@ "start": 196095, "end": 196106 }, - "ctxt": 0, - "value": "attribvalue", - "optional": false + "value": "attribvalue" } }, "right": { @@ -230062,9 +223798,7 @@ "start": 196154, "end": 196163 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -230073,9 +223807,7 @@ "start": 196164, "end": 196182 }, - "ctxt": 0, - "value": "getInstructionName", - "optional": false + "value": "getInstructionName" } }, "right": { @@ -230172,9 +223904,7 @@ "start": 196230, "end": 196236 }, - "ctxt": 0, - "value": "search", - "optional": false + "value": "search" } }, "arguments": [ @@ -230297,9 +224027,7 @@ "start": 196283, "end": 196289 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -230361,9 +224089,7 @@ "start": 196326, "end": 196343 }, - "ctxt": 0, - "value": "lowerCaseTagNames", - "optional": false + "value": "lowerCaseTagNames" } }, "consequent": { @@ -230427,9 +224153,7 @@ "start": 196377, "end": 196388 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -230508,9 +224232,7 @@ "start": 196484, "end": 196493 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -230519,9 +224241,7 @@ "start": 196494, "end": 196507 }, - "ctxt": 0, - "value": "ondeclaration", - "optional": false + "value": "ondeclaration" } }, "right": { @@ -230593,9 +224313,7 @@ "start": 196554, "end": 196557 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -230604,9 +224322,7 @@ "start": 196558, "end": 196581 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "consequent": { @@ -230670,9 +224386,7 @@ "start": 196622, "end": 196640 }, - "ctxt": 0, - "value": "getInstructionName", - "optional": false + "value": "getInstructionName" } }, "arguments": [ @@ -230734,9 +224448,7 @@ "start": 196674, "end": 196677 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -230745,9 +224457,7 @@ "start": 196678, "end": 196701 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "arguments": [ @@ -230869,9 +224579,7 @@ "start": 196784, "end": 196793 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -230880,9 +224588,7 @@ "start": 196794, "end": 196817 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "right": { @@ -230954,9 +224660,7 @@ "start": 196864, "end": 196867 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -230965,9 +224669,7 @@ "start": 196868, "end": 196891 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "consequent": { @@ -231031,9 +224733,7 @@ "start": 196932, "end": 196950 }, - "ctxt": 0, - "value": "getInstructionName", - "optional": false + "value": "getInstructionName" } }, "arguments": [ @@ -231095,9 +224795,7 @@ "start": 196984, "end": 196987 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -231106,9 +224804,7 @@ "start": 196988, "end": 197011 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "arguments": [ @@ -231230,9 +224926,7 @@ "start": 197094, "end": 197103 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -231241,9 +224935,7 @@ "start": 197104, "end": 197113 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } }, "right": { @@ -231408,9 +225100,7 @@ "start": 197192, "end": 197206 }, - "ctxt": 0, - "value": "updatePosition", - "optional": false + "value": "updatePosition" } }, "arguments": [ @@ -231529,9 +225219,7 @@ "start": 197246, "end": 197249 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -231542,9 +225230,7 @@ "start": 197251, "end": 197260 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } } } @@ -231639,9 +225325,7 @@ "start": 197300, "end": 197304 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -231775,9 +225459,7 @@ "start": 197347, "end": 197350 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -231788,9 +225470,7 @@ "start": 197352, "end": 197364 }, - "ctxt": 0, - "value": "oncommentend", - "optional": false + "value": "oncommentend" } } } @@ -231885,9 +225565,7 @@ "start": 197404, "end": 197408 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -231959,9 +225637,7 @@ "start": 197454, "end": 197463 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -231970,9 +225646,7 @@ "start": 197464, "end": 197471 }, - "ctxt": 0, - "value": "oncdata", - "optional": false + "value": "oncdata" } }, "right": { @@ -232177,9 +225851,7 @@ "start": 197556, "end": 197570 }, - "ctxt": 0, - "value": "updatePosition", - "optional": false + "value": "updatePosition" } }, "arguments": [ @@ -232237,9 +225909,7 @@ "start": 197604, "end": 197611 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -232248,9 +225918,7 @@ "start": 197612, "end": 197619 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -232278,9 +225946,7 @@ "start": 197628, "end": 197635 }, - "ctxt": 0, - "value": "options", - "optional": false + "value": "options" } }, "property": { @@ -232289,9 +225955,7 @@ "start": 197636, "end": 197650 }, - "ctxt": 0, - "value": "recognizeCDATA", - "optional": false + "value": "recognizeCDATA" } } }, @@ -232402,9 +226066,7 @@ "start": 197693, "end": 197696 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -232415,9 +226077,7 @@ "start": 197698, "end": 197710 }, - "ctxt": 0, - "value": "oncdatastart", - "optional": false + "value": "oncdatastart" } } } @@ -232512,9 +226172,7 @@ "start": 197750, "end": 197754 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -232635,9 +226293,7 @@ "start": 197798, "end": 197801 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -232648,9 +226304,7 @@ "start": 197803, "end": 197809 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } } } @@ -232745,9 +226399,7 @@ "start": 197849, "end": 197853 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -232881,9 +226533,7 @@ "start": 197900, "end": 197903 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -232894,9 +226544,7 @@ "start": 197905, "end": 197915 }, - "ctxt": 0, - "value": "oncdataend", - "optional": false + "value": "oncdataend" } } } @@ -232991,9 +226639,7 @@ "start": 197955, "end": 197959 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -233057,9 +226703,7 @@ "start": 198021, "end": 198030 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } }, "arguments": [ @@ -233167,9 +226811,7 @@ "start": 198117, "end": 198126 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -233178,9 +226820,7 @@ "start": 198127, "end": 198134 }, - "ctxt": 0, - "value": "onerror", - "optional": false + "value": "onerror" } }, "right": { @@ -233372,9 +227012,7 @@ "start": 198217, "end": 198220 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -233385,9 +227023,7 @@ "start": 198222, "end": 198229 }, - "ctxt": 0, - "value": "onerror", - "optional": false + "value": "onerror" } } } @@ -233482,9 +227118,7 @@ "start": 198269, "end": 198273 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -233569,9 +227203,7 @@ "start": 198322, "end": 198331 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -233580,9 +227212,7 @@ "start": 198332, "end": 198337 }, - "ctxt": 0, - "value": "onend", - "optional": false + "value": "onend" } }, "right": { @@ -233686,9 +227316,7 @@ "start": 198413, "end": 198416 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -233697,9 +227325,7 @@ "start": 198417, "end": 198427 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "consequent": { @@ -233768,9 +227394,7 @@ "start": 198473, "end": 198478 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -233779,9 +227403,7 @@ "start": 198479, "end": 198485 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -233847,9 +227469,7 @@ "start": 198499, "end": 198502 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -233858,9 +227478,7 @@ "start": 198503, "end": 198513 }, - "ctxt": 0, - "value": "onclosetag", - "optional": false + "value": "onclosetag" } }, "arguments": [ @@ -233891,9 +227509,7 @@ "start": 198519, "end": 198524 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "property": { @@ -234038,9 +227654,7 @@ "start": 198570, "end": 198573 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -234051,9 +227665,7 @@ "start": 198575, "end": 198580 }, - "ctxt": 0, - "value": "onend", - "optional": false + "value": "onend" } } } @@ -234148,9 +227760,7 @@ "start": 198620, "end": 198624 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -234222,9 +227832,7 @@ "start": 198670, "end": 198679 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -234233,9 +227841,7 @@ "start": 198680, "end": 198685 }, - "ctxt": 0, - "value": "reset", - "optional": false + "value": "reset" } }, "right": { @@ -234447,9 +228053,7 @@ "start": 198773, "end": 198776 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -234460,9 +228064,7 @@ "start": 198778, "end": 198785 }, - "ctxt": 0, - "value": "onreset", - "optional": false + "value": "onreset" } } } @@ -234557,9 +228159,7 @@ "start": 198825, "end": 198829 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -234619,9 +228219,7 @@ "start": 198859, "end": 198868 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -234630,9 +228228,7 @@ "start": 198869, "end": 198874 }, - "ctxt": 0, - "value": "reset", - "optional": false + "value": "reset" } }, "arguments": [], @@ -234671,9 +228267,7 @@ "start": 198903, "end": 198910 }, - "ctxt": 0, - "value": "tagname", - "optional": false + "value": "tagname" } }, "right": { @@ -234719,9 +228313,7 @@ "start": 198942, "end": 198952 }, - "ctxt": 0, - "value": "attribname", - "optional": false + "value": "attribname" } }, "right": { @@ -234767,9 +228359,7 @@ "start": 198984, "end": 198991 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } }, "right": { @@ -234813,9 +228403,7 @@ "start": 199025, "end": 199030 }, - "ctxt": 0, - "value": "stack", - "optional": false + "value": "stack" } }, "right": { @@ -234927,9 +228515,7 @@ "start": 199072, "end": 199075 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } } } @@ -234940,9 +228526,7 @@ "start": 199077, "end": 199089 }, - "ctxt": 0, - "value": "onparserinit", - "optional": false + "value": "onparserinit" } } } @@ -235037,9 +228621,7 @@ "start": 199129, "end": 199133 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -235121,9 +228703,7 @@ "start": 199185, "end": 199194 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -235132,9 +228712,7 @@ "start": 199195, "end": 199208 }, - "ctxt": 0, - "value": "parseComplete", - "optional": false + "value": "parseComplete" } }, "right": { @@ -235207,9 +228785,7 @@ "start": 199251, "end": 199256 }, - "ctxt": 0, - "value": "reset", - "optional": false + "value": "reset" } }, "arguments": [], @@ -235248,9 +228824,7 @@ "start": 199285, "end": 199288 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "arguments": [ @@ -235321,9 +228895,7 @@ "start": 199334, "end": 199343 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -235332,9 +228904,7 @@ "start": 199344, "end": 199349 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" } }, "right": { @@ -235413,9 +228983,7 @@ "start": 199392, "end": 199401 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -235424,9 +228992,7 @@ "start": 199402, "end": 199407 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" } }, "arguments": [ @@ -235497,9 +229063,7 @@ "start": 199453, "end": 199462 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -235508,9 +229072,7 @@ "start": 199463, "end": 199466 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "right": { @@ -235589,9 +229151,7 @@ "start": 199509, "end": 199518 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -235600,9 +229160,7 @@ "start": 199519, "end": 199522 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "arguments": [ @@ -235673,9 +229231,7 @@ "start": 199568, "end": 199577 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -235684,9 +229240,7 @@ "start": 199578, "end": 199583 }, - "ctxt": 0, - "value": "pause", - "optional": false + "value": "pause" } }, "right": { @@ -235745,9 +229299,7 @@ "start": 199625, "end": 199634 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -235756,9 +229308,7 @@ "start": 199635, "end": 199640 }, - "ctxt": 0, - "value": "pause", - "optional": false + "value": "pause" } }, "arguments": [], @@ -235815,9 +229365,7 @@ "start": 199685, "end": 199694 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -235826,9 +229374,7 @@ "start": 199695, "end": 199701 }, - "ctxt": 0, - "value": "resume", - "optional": false + "value": "resume" } }, "right": { @@ -235887,9 +229433,7 @@ "start": 199743, "end": 199752 }, - "ctxt": 0, - "value": "tokenizer", - "optional": false + "value": "tokenizer" } }, "property": { @@ -235898,9 +229442,7 @@ "start": 199753, "end": 199759 }, - "ctxt": 0, - "value": "resume", - "optional": false + "value": "resume" } }, "arguments": [], @@ -235957,9 +229499,7 @@ "start": 199804, "end": 199813 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -235968,9 +229508,7 @@ "start": 199814, "end": 199824 }, - "ctxt": 0, - "value": "parseChunk", - "optional": false + "value": "parseChunk" } }, "right": { @@ -236043,9 +229581,7 @@ "start": 199867, "end": 199872 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" } }, "arguments": [ @@ -236116,9 +229652,7 @@ "start": 199918, "end": 199927 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -236127,9 +229661,7 @@ "start": 199928, "end": 199932 }, - "ctxt": 0, - "value": "done", - "optional": false + "value": "done" } }, "right": { @@ -236202,9 +229734,7 @@ "start": 199975, "end": 199978 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "arguments": [ @@ -236300,9 +229830,7 @@ "start": 200062, "end": 200068 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } }, "right": { @@ -236495,9 +230023,7 @@ "start": 200178, "end": 200193 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -236590,9 +230116,7 @@ "start": 200242, "end": 200252 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -236621,9 +230145,7 @@ "start": 200281, "end": 200288 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -236687,9 +230209,7 @@ "start": 200344, "end": 200358 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -236735,9 +230255,7 @@ "start": 200394, "end": 200399 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -237672,9 +231190,7 @@ "start": 200884, "end": 200895 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -237866,9 +231382,7 @@ "start": 201044, "end": 201050 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -237928,9 +231442,7 @@ "start": 201118, "end": 201124 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -237981,9 +231493,7 @@ "start": 201160, "end": 201166 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -238179,9 +231689,7 @@ "start": 201348, "end": 201354 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -238241,9 +231749,7 @@ "start": 201414, "end": 201420 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -238294,9 +231800,7 @@ "start": 201452, "end": 201458 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -238442,9 +231946,7 @@ "start": 201594, "end": 201605 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -238630,9 +232132,7 @@ "start": 201722, "end": 201728 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -238692,9 +232192,7 @@ "start": 201788, "end": 201794 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -238744,9 +232242,7 @@ "start": 201826, "end": 201832 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -241372,9 +234868,7 @@ "start": 203418, "end": 203424 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -241420,9 +234914,7 @@ "start": 203455, "end": 203461 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -241468,9 +234960,7 @@ "start": 203493, "end": 203505 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -241516,9 +235006,7 @@ "start": 203536, "end": 203542 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -241564,9 +235052,7 @@ "start": 203573, "end": 203585 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -241612,9 +235098,7 @@ "start": 203616, "end": 203625 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -241660,9 +235144,7 @@ "start": 203656, "end": 203663 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -241708,9 +235190,7 @@ "start": 203694, "end": 203701 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } }, "right": { @@ -241755,9 +235235,7 @@ "start": 203735, "end": 203740 }, - "ctxt": 0, - "value": "ended", - "optional": false + "value": "ended" } }, "right": { @@ -241802,9 +235280,7 @@ "start": 203775, "end": 203778 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "right": { @@ -241851,9 +235327,7 @@ "start": 203809, "end": 203816 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -241989,9 +235463,7 @@ "start": 203862, "end": 203869 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -242032,9 +235504,7 @@ "start": 203897, "end": 203911 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } }, "right": { @@ -242194,9 +235664,7 @@ "start": 203959, "end": 203973 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } } } @@ -242315,9 +235783,7 @@ "start": 204055, "end": 204064 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -242326,9 +235792,7 @@ "start": 204065, "end": 204070 }, - "ctxt": 0, - "value": "reset", - "optional": false + "value": "reset" } }, "right": { @@ -242381,9 +235845,7 @@ "start": 204112, "end": 204118 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -242429,9 +235891,7 @@ "start": 204149, "end": 204155 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -242477,9 +235937,7 @@ "start": 204187, "end": 204199 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -242525,9 +235983,7 @@ "start": 204230, "end": 204236 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -242573,9 +236029,7 @@ "start": 204267, "end": 204279 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -242621,9 +236075,7 @@ "start": 204310, "end": 204319 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -242669,9 +236121,7 @@ "start": 204350, "end": 204357 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -242717,9 +236167,7 @@ "start": 204388, "end": 204395 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } }, "right": { @@ -242764,9 +236212,7 @@ "start": 204429, "end": 204434 }, - "ctxt": 0, - "value": "ended", - "optional": false + "value": "ended" } }, "right": { @@ -242829,9 +236275,7 @@ "start": 204488, "end": 204497 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -242840,9 +236284,7 @@ "start": 204498, "end": 204503 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" } }, "right": { @@ -242908,9 +236350,7 @@ "start": 204550, "end": 204555 }, - "ctxt": 0, - "value": "ended", - "optional": false + "value": "ended" } }, "consequent": { @@ -242951,9 +236391,7 @@ "start": 204562, "end": 204565 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -242962,9 +236400,7 @@ "start": 204566, "end": 204573 }, - "ctxt": 0, - "value": "onerror", - "optional": false + "value": "onerror" } }, "arguments": [ @@ -243042,9 +236478,7 @@ "start": 204631, "end": 204637 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -243091,9 +236525,7 @@ "start": 204669, "end": 204674 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [], @@ -243150,9 +236582,7 @@ "start": 204722, "end": 204731 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -243161,9 +236591,7 @@ "start": 204732, "end": 204735 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "right": { @@ -243229,9 +236657,7 @@ "start": 204782, "end": 204787 }, - "ctxt": 0, - "value": "ended", - "optional": false + "value": "ended" } }, "consequent": { @@ -243272,9 +236698,7 @@ "start": 204794, "end": 204797 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -243283,9 +236707,7 @@ "start": 204798, "end": 204805 }, - "ctxt": 0, - "value": "onerror", - "optional": false + "value": "onerror" } }, "arguments": [ @@ -243379,9 +236801,7 @@ "start": 204868, "end": 204873 }, - "ctxt": 0, - "value": "write", - "optional": false + "value": "write" } }, "arguments": [ @@ -243436,9 +236856,7 @@ "start": 204903, "end": 204908 }, - "ctxt": 0, - "value": "ended", - "optional": false + "value": "ended" } }, "right": { @@ -243476,9 +236894,7 @@ "start": 204946, "end": 204953 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } }, "consequent": { @@ -243513,9 +236929,7 @@ "start": 204960, "end": 204966 }, - "ctxt": 0, - "value": "finish", - "optional": false + "value": "finish" } }, "arguments": [], @@ -243574,9 +236988,7 @@ "start": 205014, "end": 205023 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -243585,9 +236997,7 @@ "start": 205024, "end": 205029 }, - "ctxt": 0, - "value": "pause", - "optional": false + "value": "pause" } }, "right": { @@ -243640,9 +237050,7 @@ "start": 205071, "end": 205078 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } }, "right": { @@ -243705,9 +237113,7 @@ "start": 205132, "end": 205141 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -243716,9 +237122,7 @@ "start": 205142, "end": 205148 }, - "ctxt": 0, - "value": "resume", - "optional": false + "value": "resume" } }, "right": { @@ -243771,9 +237175,7 @@ "start": 205190, "end": 205197 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } }, "right": { @@ -243818,9 +237220,7 @@ "start": 205235, "end": 205241 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -243848,9 +237248,7 @@ "start": 205249, "end": 205255 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -243859,9 +237257,7 @@ "start": 205256, "end": 205262 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -243905,9 +237301,7 @@ "start": 205295, "end": 205300 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [], @@ -243943,9 +237337,7 @@ "start": 205354, "end": 205359 }, - "ctxt": 0, - "value": "ended", - "optional": false + "value": "ended" } }, "consequent": { @@ -243988,9 +237380,7 @@ "start": 205392, "end": 205398 }, - "ctxt": 0, - "value": "finish", - "optional": false + "value": "finish" } }, "arguments": [], @@ -244051,9 +237441,7 @@ "start": 205468, "end": 205477 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -244062,9 +237450,7 @@ "start": 205478, "end": 205494 }, - "ctxt": 0, - "value": "getAbsoluteIndex", - "optional": false + "value": "getAbsoluteIndex" } }, "right": { @@ -244117,9 +237503,7 @@ "start": 205543, "end": 205555 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -244141,9 +237525,7 @@ "start": 205563, "end": 205569 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -244198,9 +237580,7 @@ "start": 205615, "end": 205624 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -244209,9 +237589,7 @@ "start": 205625, "end": 205634 }, - "ctxt": 0, - "value": "stateText", - "optional": false + "value": "stateText" } }, "right": { @@ -244325,9 +237703,7 @@ "start": 205722, "end": 205728 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -244349,9 +237725,7 @@ "start": 205736, "end": 205748 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } }, @@ -244401,9 +237775,7 @@ "start": 205785, "end": 205788 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -244412,9 +237784,7 @@ "start": 205789, "end": 205795 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "arguments": [ @@ -244446,9 +237816,7 @@ "start": 205801, "end": 205811 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -244495,9 +237863,7 @@ "start": 205870, "end": 205876 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -244543,9 +237909,7 @@ "start": 205911, "end": 205923 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -244567,9 +237931,7 @@ "start": 205931, "end": 205937 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -244615,9 +237977,7 @@ "start": 205974, "end": 205988 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } }, "right": { @@ -244687,9 +238047,7 @@ "start": 206011, "end": 206018 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -244728,9 +238086,7 @@ "start": 206033, "end": 206040 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -244786,9 +238142,7 @@ "start": 206084, "end": 206090 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -244810,9 +238164,7 @@ "start": 206098, "end": 206110 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } }, @@ -244862,9 +238214,7 @@ "start": 206147, "end": 206150 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -244873,9 +238223,7 @@ "start": 206151, "end": 206157 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "arguments": [ @@ -244907,9 +238255,7 @@ "start": 206163, "end": 206173 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -244956,9 +238302,7 @@ "start": 206232, "end": 206241 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -245004,9 +238348,7 @@ "start": 206276, "end": 206282 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -245052,9 +238394,7 @@ "start": 206318, "end": 206330 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -245076,9 +238416,7 @@ "start": 206338, "end": 206344 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -245138,9 +238476,7 @@ "start": 206412, "end": 206421 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -245149,9 +238485,7 @@ "start": 206422, "end": 206440 }, - "ctxt": 0, - "value": "stateBeforeTagName", - "optional": false + "value": "stateBeforeTagName" } }, "right": { @@ -245265,9 +238599,7 @@ "start": 206524, "end": 206530 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -245362,9 +238694,7 @@ "start": 206608, "end": 206611 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -245373,9 +238703,7 @@ "start": 206612, "end": 206618 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "arguments": [ @@ -245407,9 +238735,7 @@ "start": 206624, "end": 206634 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -245452,9 +238778,7 @@ "start": 206668, "end": 206680 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -245476,9 +238800,7 @@ "start": 206688, "end": 206694 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -245558,9 +238880,7 @@ "start": 206744, "end": 206751 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -245649,9 +238969,7 @@ "start": 206807, "end": 206813 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -245740,9 +239058,7 @@ "start": 206891, "end": 206897 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -245788,9 +239104,7 @@ "start": 206933, "end": 206945 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -245819,9 +239133,7 @@ "start": 206953, "end": 206959 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -245911,9 +239223,7 @@ "start": 207037, "end": 207043 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -245959,9 +239269,7 @@ "start": 207079, "end": 207091 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -245990,9 +239298,7 @@ "start": 207099, "end": 207105 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -246097,9 +239403,7 @@ "start": 207190, "end": 207196 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -246155,9 +239459,7 @@ "start": 207259, "end": 207265 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -246199,9 +239501,7 @@ "start": 207274, "end": 207281 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -246323,9 +239623,7 @@ "start": 207323, "end": 207330 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -246453,9 +239751,7 @@ "start": 207398, "end": 207410 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -246477,9 +239773,7 @@ "start": 207418, "end": 207424 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -246542,9 +239836,7 @@ "start": 207492, "end": 207501 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -246553,9 +239845,7 @@ "start": 207502, "end": 207516 }, - "ctxt": 0, - "value": "stateInTagName", - "optional": false + "value": "stateInTagName" } }, "right": { @@ -246746,9 +240036,7 @@ "start": 207630, "end": 207639 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "arguments": [ @@ -246800,9 +240088,7 @@ "start": 207687, "end": 207693 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -246849,9 +240135,7 @@ "start": 207728, "end": 207734 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -246910,9 +240194,7 @@ "start": 207804, "end": 207813 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -246921,9 +240203,7 @@ "start": 207814, "end": 207839 }, - "ctxt": 0, - "value": "stateBeforeClosingTagName", - "optional": false + "value": "stateBeforeClosingTagName" } }, "right": { @@ -247086,9 +240366,7 @@ "start": 207951, "end": 207957 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -247136,9 +240414,7 @@ "start": 207998, "end": 208005 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -247267,9 +240543,7 @@ "start": 208102, "end": 208108 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -247393,9 +240667,7 @@ "start": 208208, "end": 208214 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -247451,9 +240723,7 @@ "start": 208286, "end": 208292 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -247500,9 +240770,7 @@ "start": 208331, "end": 208337 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -247601,9 +240869,7 @@ "start": 208446, "end": 208452 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -247649,9 +240915,7 @@ "start": 208488, "end": 208500 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -247673,9 +240937,7 @@ "start": 208508, "end": 208514 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -247722,9 +240984,7 @@ "start": 208573, "end": 208579 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -247770,9 +241030,7 @@ "start": 208614, "end": 208626 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -247794,9 +241052,7 @@ "start": 208634, "end": 208640 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -247857,9 +241113,7 @@ "start": 208708, "end": 208717 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -247868,9 +241122,7 @@ "start": 208718, "end": 208739 }, - "ctxt": 0, - "value": "stateInClosingTagName", - "optional": false + "value": "stateInClosingTagName" } }, "right": { @@ -248026,9 +241278,7 @@ "start": 208840, "end": 208849 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "arguments": [ @@ -248080,9 +241330,7 @@ "start": 208894, "end": 208900 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -248129,9 +241377,7 @@ "start": 208935, "end": 208941 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -248190,9 +241436,7 @@ "start": 209011, "end": 209020 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -248201,9 +241445,7 @@ "start": 209021, "end": 209045 }, - "ctxt": 0, - "value": "stateAfterClosingTagName", - "optional": false + "value": "stateAfterClosingTagName" } }, "right": { @@ -248317,9 +241559,7 @@ "start": 209129, "end": 209135 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -248365,9 +241605,7 @@ "start": 209170, "end": 209182 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -248396,9 +241634,7 @@ "start": 209190, "end": 209196 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -248467,9 +241703,7 @@ "start": 209268, "end": 209277 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -248478,9 +241712,7 @@ "start": 209278, "end": 209302 }, - "ctxt": 0, - "value": "stateBeforeAttributeName", - "optional": false + "value": "stateBeforeAttributeName" } }, "right": { @@ -248600,9 +241832,7 @@ "start": 209386, "end": 209389 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -248611,9 +241841,7 @@ "start": 209390, "end": 209402 }, - "ctxt": 0, - "value": "onopentagend", - "optional": false + "value": "onopentagend" } }, "arguments": [], @@ -248652,9 +241880,7 @@ "start": 209435, "end": 209441 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -248700,9 +241926,7 @@ "start": 209476, "end": 209488 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -248731,9 +241955,7 @@ "start": 209496, "end": 209502 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -248823,9 +242045,7 @@ "start": 209580, "end": 209586 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -248929,9 +242149,7 @@ "start": 209669, "end": 209675 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -248977,9 +242195,7 @@ "start": 209710, "end": 209722 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -249001,9 +242217,7 @@ "start": 209730, "end": 209736 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -249064,9 +242278,7 @@ "start": 209804, "end": 209813 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -249075,9 +242287,7 @@ "start": 209814, "end": 209835 }, - "ctxt": 0, - "value": "stateInSelfClosingTag", - "optional": false + "value": "stateInSelfClosingTag" } }, "right": { @@ -249197,9 +242407,7 @@ "start": 209919, "end": 209922 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -249208,9 +242416,7 @@ "start": 209923, "end": 209939 }, - "ctxt": 0, - "value": "onselfclosingtag", - "optional": false + "value": "onselfclosingtag" } }, "arguments": [], @@ -249249,9 +242455,7 @@ "start": 209972, "end": 209978 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -249297,9 +242501,7 @@ "start": 210013, "end": 210025 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -249328,9 +242530,7 @@ "start": 210033, "end": 210039 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -249377,9 +242577,7 @@ "start": 210074, "end": 210081 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -249483,9 +242681,7 @@ "start": 210164, "end": 210170 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -249532,9 +242728,7 @@ "start": 210205, "end": 210211 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -249594,9 +242788,7 @@ "start": 210281, "end": 210290 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -249605,9 +242797,7 @@ "start": 210291, "end": 210311 }, - "ctxt": 0, - "value": "stateInAttributeName", - "optional": false + "value": "stateInAttributeName" } }, "right": { @@ -249839,9 +243029,7 @@ "start": 210438, "end": 210441 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -249850,9 +243038,7 @@ "start": 210442, "end": 210454 }, - "ctxt": 0, - "value": "onattribname", - "optional": false + "value": "onattribname" } }, "arguments": [ @@ -249884,9 +243070,7 @@ "start": 210460, "end": 210470 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -249929,9 +243113,7 @@ "start": 210504, "end": 210516 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -249985,9 +243167,7 @@ "start": 210552, "end": 210558 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -250034,9 +243214,7 @@ "start": 210594, "end": 210600 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -250095,9 +243273,7 @@ "start": 210670, "end": 210679 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -250106,9 +243282,7 @@ "start": 210680, "end": 210703 }, - "ctxt": 0, - "value": "stateAfterAttributeName", - "optional": false + "value": "stateAfterAttributeName" } }, "right": { @@ -250222,9 +243396,7 @@ "start": 210787, "end": 210793 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -250354,9 +243526,7 @@ "start": 210885, "end": 210888 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -250365,9 +243535,7 @@ "start": 210889, "end": 210900 }, - "ctxt": 0, - "value": "onattribend", - "optional": false + "value": "onattribend" } }, "arguments": [ @@ -250420,9 +243588,7 @@ "start": 210942, "end": 210948 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -250469,9 +243635,7 @@ "start": 210983, "end": 210989 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -250572,9 +243736,7 @@ "start": 211070, "end": 211073 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -250583,9 +243745,7 @@ "start": 211074, "end": 211085 }, - "ctxt": 0, - "value": "onattribend", - "optional": false + "value": "onattribend" } }, "arguments": [ @@ -250638,9 +243798,7 @@ "start": 211127, "end": 211133 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -250686,9 +243844,7 @@ "start": 211168, "end": 211180 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -250710,9 +243866,7 @@ "start": 211188, "end": 211194 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -250773,9 +243927,7 @@ "start": 211262, "end": 211271 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -250784,9 +243936,7 @@ "start": 211272, "end": 211297 }, - "ctxt": 0, - "value": "stateBeforeAttributeValue", - "optional": false + "value": "stateBeforeAttributeValue" } }, "right": { @@ -250900,9 +244050,7 @@ "start": 211381, "end": 211387 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -250948,9 +244096,7 @@ "start": 211423, "end": 211435 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -250979,9 +244125,7 @@ "start": 211443, "end": 211449 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -251071,9 +244215,7 @@ "start": 211527, "end": 211533 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -251119,9 +244261,7 @@ "start": 211569, "end": 211581 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -251150,9 +244290,7 @@ "start": 211589, "end": 211595 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -251257,9 +244395,7 @@ "start": 211678, "end": 211684 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -251305,9 +244441,7 @@ "start": 211720, "end": 211732 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -251329,9 +244463,7 @@ "start": 211740, "end": 211746 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -251369,9 +244501,7 @@ "start": 211777, "end": 211783 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -251432,9 +244562,7 @@ "start": 211853, "end": 211862 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -251443,9 +244571,7 @@ "start": 211863, "end": 211885 }, - "ctxt": 0, - "value": "handleInAttributeValue", - "optional": false + "value": "handleInAttributeValue" } }, "right": { @@ -251579,9 +244705,7 @@ "start": 211970, "end": 211979 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "arguments": [ @@ -251639,9 +244763,7 @@ "start": 212026, "end": 212029 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -251650,9 +244772,7 @@ "start": 212030, "end": 212041 }, - "ctxt": 0, - "value": "onattribend", - "optional": false + "value": "onattribend" } }, "arguments": [ @@ -251705,9 +244825,7 @@ "start": 212075, "end": 212081 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -251755,9 +244873,7 @@ "start": 212122, "end": 212136 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } }, "right": { @@ -251828,9 +244944,7 @@ "start": 212182, "end": 212191 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "arguments": [ @@ -251882,9 +244996,7 @@ "start": 212238, "end": 212247 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -251906,9 +245018,7 @@ "start": 212255, "end": 212261 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } } } @@ -251945,9 +245055,7 @@ "start": 212292, "end": 212298 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -251993,9 +245101,7 @@ "start": 212334, "end": 212346 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -252017,9 +245123,7 @@ "start": 212354, "end": 212360 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -252079,9 +245183,7 @@ "start": 212428, "end": 212437 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -252090,9 +245192,7 @@ "start": 212438, "end": 212471 }, - "ctxt": 0, - "value": "stateInAttributeValueDoubleQuotes", - "optional": false + "value": "stateInAttributeValueDoubleQuotes" } }, "right": { @@ -252165,9 +245265,7 @@ "start": 212514, "end": 212536 }, - "ctxt": 0, - "value": "handleInAttributeValue", - "optional": false + "value": "handleInAttributeValue" } }, "arguments": [ @@ -252250,9 +245348,7 @@ "start": 212590, "end": 212599 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -252261,9 +245357,7 @@ "start": 212600, "end": 212633 }, - "ctxt": 0, - "value": "stateInAttributeValueSingleQuotes", - "optional": false + "value": "stateInAttributeValueSingleQuotes" } }, "right": { @@ -252336,9 +245430,7 @@ "start": 212676, "end": 212698 }, - "ctxt": 0, - "value": "handleInAttributeValue", - "optional": false + "value": "handleInAttributeValue" } }, "arguments": [ @@ -252421,9 +245513,7 @@ "start": 212752, "end": 212761 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -252432,9 +245522,7 @@ "start": 212762, "end": 212791 }, - "ctxt": 0, - "value": "stateInAttributeValueNoQuotes", - "optional": false + "value": "stateInAttributeValueNoQuotes" } }, "right": { @@ -252590,9 +245678,7 @@ "start": 212892, "end": 212901 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "arguments": [ @@ -252650,9 +245736,7 @@ "start": 212948, "end": 212951 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -252661,9 +245745,7 @@ "start": 212952, "end": 212963 }, - "ctxt": 0, - "value": "onattribend", - "optional": false + "value": "onattribend" } }, "arguments": [ @@ -252713,9 +245795,7 @@ "start": 213000, "end": 213006 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -252762,9 +245842,7 @@ "start": 213041, "end": 213047 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -252803,9 +245881,7 @@ "start": 213086, "end": 213100 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } }, "right": { @@ -252876,9 +245952,7 @@ "start": 213146, "end": 213155 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "arguments": [ @@ -252930,9 +246004,7 @@ "start": 213202, "end": 213211 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -252954,9 +246026,7 @@ "start": 213219, "end": 213225 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } } } @@ -252993,9 +246063,7 @@ "start": 213256, "end": 213262 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -253041,9 +246109,7 @@ "start": 213298, "end": 213310 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -253065,9 +246131,7 @@ "start": 213318, "end": 213324 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -253127,9 +246191,7 @@ "start": 213392, "end": 213401 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -253138,9 +246200,7 @@ "start": 213402, "end": 213424 }, - "ctxt": 0, - "value": "stateBeforeDeclaration", - "optional": false + "value": "stateBeforeDeclaration" } }, "right": { @@ -253213,9 +246273,7 @@ "start": 213467, "end": 213473 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -253365,9 +246423,7 @@ "start": 213558, "end": 213567 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -253376,9 +246432,7 @@ "start": 213568, "end": 213586 }, - "ctxt": 0, - "value": "stateInDeclaration", - "optional": false + "value": "stateInDeclaration" } }, "right": { @@ -253498,9 +246552,7 @@ "start": 213670, "end": 213673 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -253509,9 +246561,7 @@ "start": 213674, "end": 213687 }, - "ctxt": 0, - "value": "ondeclaration", - "optional": false + "value": "ondeclaration" } }, "arguments": [ @@ -253543,9 +246593,7 @@ "start": 213693, "end": 213703 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -253588,9 +246636,7 @@ "start": 213737, "end": 213743 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -253636,9 +246682,7 @@ "start": 213778, "end": 213790 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -253667,9 +246711,7 @@ "start": 213798, "end": 213804 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -253738,9 +246780,7 @@ "start": 213876, "end": 213885 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -253749,9 +246789,7 @@ "start": 213886, "end": 213914 }, - "ctxt": 0, - "value": "stateInProcessingInstruction", - "optional": false + "value": "stateInProcessingInstruction" } }, "right": { @@ -253871,9 +246909,7 @@ "start": 213998, "end": 214001 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -253882,9 +246918,7 @@ "start": 214002, "end": 214025 }, - "ctxt": 0, - "value": "onprocessinginstruction", - "optional": false + "value": "onprocessinginstruction" } }, "arguments": [ @@ -253916,9 +246950,7 @@ "start": 214031, "end": 214041 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -253961,9 +246993,7 @@ "start": 214075, "end": 214081 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -254009,9 +247039,7 @@ "start": 214116, "end": 214128 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -254040,9 +247068,7 @@ "start": 214136, "end": 214142 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -254111,9 +247137,7 @@ "start": 214214, "end": 214223 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -254122,9 +247146,7 @@ "start": 214224, "end": 214242 }, - "ctxt": 0, - "value": "stateBeforeComment", - "optional": false + "value": "stateBeforeComment" } }, "right": { @@ -254238,9 +247260,7 @@ "start": 214326, "end": 214332 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -254286,9 +247306,7 @@ "start": 214368, "end": 214380 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -254317,9 +247335,7 @@ "start": 214388, "end": 214394 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -254376,9 +247392,7 @@ "start": 214457, "end": 214463 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -254445,9 +247459,7 @@ "start": 214536, "end": 214545 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -254456,9 +247468,7 @@ "start": 214546, "end": 214560 }, - "ctxt": 0, - "value": "stateInComment", - "optional": false + "value": "stateInComment" } }, "right": { @@ -254564,9 +247574,7 @@ "start": 214618, "end": 214624 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -254632,9 +247640,7 @@ "start": 214675, "end": 214684 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -254643,9 +247649,7 @@ "start": 214685, "end": 214706 }, - "ctxt": 0, - "value": "stateInSpecialComment", - "optional": false + "value": "stateInSpecialComment" } }, "right": { @@ -254765,9 +247769,7 @@ "start": 214790, "end": 214793 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -254776,9 +247778,7 @@ "start": 214794, "end": 214803 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } }, "arguments": [ @@ -254816,9 +247816,7 @@ "start": 214809, "end": 214815 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -254827,9 +247825,7 @@ "start": 214816, "end": 214825 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -254854,9 +247850,7 @@ "start": 214831, "end": 214843 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } }, @@ -254881,9 +247875,7 @@ "start": 214850, "end": 214856 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -254927,9 +247919,7 @@ "start": 214889, "end": 214895 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -254975,9 +247965,7 @@ "start": 214930, "end": 214942 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -255006,9 +247994,7 @@ "start": 214950, "end": 214956 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -255077,9 +248063,7 @@ "start": 215028, "end": 215037 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -255088,9 +248072,7 @@ "start": 215038, "end": 215056 }, - "ctxt": 0, - "value": "stateAfterComment1", - "optional": false + "value": "stateAfterComment1" } }, "right": { @@ -255204,9 +248186,7 @@ "start": 215140, "end": 215146 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -255262,9 +248242,7 @@ "start": 215210, "end": 215216 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -255331,9 +248309,7 @@ "start": 215289, "end": 215298 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -255342,9 +248318,7 @@ "start": 215299, "end": 215317 }, - "ctxt": 0, - "value": "stateAfterComment2", - "optional": false + "value": "stateAfterComment2" } }, "right": { @@ -255464,9 +248438,7 @@ "start": 215401, "end": 215404 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -255475,9 +248447,7 @@ "start": 215405, "end": 215414 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } }, "arguments": [ @@ -255515,9 +248485,7 @@ "start": 215420, "end": 215426 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -255526,9 +248494,7 @@ "start": 215427, "end": 215436 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -255553,9 +248519,7 @@ "start": 215442, "end": 215454 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } }, @@ -255587,9 +248551,7 @@ "start": 215461, "end": 215467 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -255643,9 +248605,7 @@ "start": 215504, "end": 215510 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -255691,9 +248651,7 @@ "start": 215545, "end": 215557 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -255722,9 +248680,7 @@ "start": 215565, "end": 215571 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -255814,9 +248770,7 @@ "start": 215649, "end": 215655 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -255885,9 +248839,7 @@ "start": 215728, "end": 215737 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -255896,9 +248848,7 @@ "start": 215738, "end": 215755 }, - "ctxt": 0, - "value": "stateBeforeCdata6", - "optional": false + "value": "stateBeforeCdata6" } }, "right": { @@ -256012,9 +248962,7 @@ "start": 215839, "end": 215845 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -256060,9 +249008,7 @@ "start": 215881, "end": 215893 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -256091,9 +249037,7 @@ "start": 215901, "end": 215907 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -256150,9 +249094,7 @@ "start": 215970, "end": 215976 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -256199,9 +249141,7 @@ "start": 216012, "end": 216018 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -256259,9 +249199,7 @@ "start": 216088, "end": 216097 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -256270,9 +249208,7 @@ "start": 216098, "end": 216110 }, - "ctxt": 0, - "value": "stateInCdata", - "optional": false + "value": "stateInCdata" } }, "right": { @@ -256378,9 +249314,7 @@ "start": 216168, "end": 216174 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -256446,9 +249380,7 @@ "start": 216225, "end": 216234 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -256457,9 +249389,7 @@ "start": 216235, "end": 216251 }, - "ctxt": 0, - "value": "stateAfterCdata1", - "optional": false + "value": "stateAfterCdata1" } }, "right": { @@ -256565,9 +249495,7 @@ "start": 216309, "end": 216315 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -256613,9 +249541,7 @@ "start": 216352, "end": 216358 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -256680,9 +249606,7 @@ "start": 216409, "end": 216418 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -256691,9 +249615,7 @@ "start": 216419, "end": 216435 }, - "ctxt": 0, - "value": "stateAfterCdata2", - "optional": false + "value": "stateAfterCdata2" } }, "right": { @@ -256813,9 +249735,7 @@ "start": 216519, "end": 216522 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -256824,9 +249744,7 @@ "start": 216523, "end": 216530 }, - "ctxt": 0, - "value": "oncdata", - "optional": false + "value": "oncdata" } }, "arguments": [ @@ -256864,9 +249782,7 @@ "start": 216536, "end": 216542 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -256875,9 +249791,7 @@ "start": 216543, "end": 216552 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -256902,9 +249816,7 @@ "start": 216558, "end": 216570 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } }, @@ -256936,9 +249848,7 @@ "start": 216577, "end": 216583 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -256992,9 +249902,7 @@ "start": 216620, "end": 216626 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -257040,9 +249948,7 @@ "start": 216661, "end": 216673 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -257071,9 +249977,7 @@ "start": 216681, "end": 216687 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -257163,9 +250067,7 @@ "start": 216765, "end": 216771 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -257234,9 +250136,7 @@ "start": 216844, "end": 216853 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -257245,9 +250145,7 @@ "start": 216854, "end": 216873 }, - "ctxt": 0, - "value": "stateBeforeSpecialS", - "optional": false + "value": "stateBeforeSpecialS" } }, "right": { @@ -257396,9 +250294,7 @@ "start": 216970, "end": 216976 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -257522,9 +250418,7 @@ "start": 217068, "end": 217074 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -257580,9 +250474,7 @@ "start": 217138, "end": 217144 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -257629,9 +250521,7 @@ "start": 217179, "end": 217185 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -257690,9 +250580,7 @@ "start": 217255, "end": 217264 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -257701,9 +250589,7 @@ "start": 217265, "end": 217287 }, - "ctxt": 0, - "value": "stateBeforeSpecialSEnd", - "optional": false + "value": "stateBeforeSpecialSEnd" } }, "right": { @@ -257783,9 +250669,7 @@ "start": 217334, "end": 217341 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -257908,9 +250792,7 @@ "start": 217408, "end": 217414 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -257965,9 +250847,7 @@ "start": 217456, "end": 217463 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -258090,9 +250970,7 @@ "start": 217530, "end": 217536 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -258140,9 +251018,7 @@ "start": 217574, "end": 217580 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -258208,9 +251084,7 @@ "start": 217630, "end": 217639 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -258219,9 +251093,7 @@ "start": 217640, "end": 217662 }, - "ctxt": 0, - "value": "stateBeforeSpecialLast", - "optional": false + "value": "stateBeforeSpecialLast" } }, "right": { @@ -258431,9 +251303,7 @@ "start": 217779, "end": 217786 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -258484,9 +251354,7 @@ "start": 217838, "end": 217844 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -258533,9 +251401,7 @@ "start": 217875, "end": 217881 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -258590,9 +251456,7 @@ "start": 217929, "end": 217938 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -258601,9 +251465,7 @@ "start": 217939, "end": 217960 }, - "ctxt": 0, - "value": "stateAfterSpecialLast", - "optional": false + "value": "stateAfterSpecialLast" } }, "right": { @@ -258778,9 +251640,7 @@ "start": 218064, "end": 218071 }, - "ctxt": 0, - "value": "special", - "optional": false + "value": "special" } }, "right": { @@ -258826,9 +251686,7 @@ "start": 218106, "end": 218112 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -258874,9 +251732,7 @@ "start": 218147, "end": 218159 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -258905,9 +251761,7 @@ "start": 218167, "end": 218173 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -258956,9 +251810,7 @@ "start": 218208, "end": 218214 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -258997,9 +251849,7 @@ "start": 218249, "end": 218255 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -259064,9 +251914,7 @@ "start": 218305, "end": 218314 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -259075,9 +251923,7 @@ "start": 218315, "end": 218331 }, - "ctxt": 0, - "value": "parseFixedEntity", - "optional": false + "value": "parseFixedEntity" } }, "right": { @@ -259216,9 +252062,7 @@ "start": 218422, "end": 218429 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "consequent": { @@ -259243,9 +252087,7 @@ "start": 218434, "end": 218441 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "alternate": { @@ -259270,9 +252112,7 @@ "start": 218446, "end": 218453 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -259321,9 +252161,7 @@ "start": 218505, "end": 218517 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -259355,9 +252193,7 @@ "start": 218529, "end": 218535 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -259428,9 +252264,7 @@ "start": 218576, "end": 218582 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -259439,9 +252273,7 @@ "start": 218583, "end": 218592 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -259473,9 +252305,7 @@ "start": 218598, "end": 218610 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -259510,9 +252340,7 @@ "start": 218621, "end": 218627 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -259570,9 +252398,7 @@ "start": 218665, "end": 218674 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -259581,9 +252407,7 @@ "start": 218675, "end": 218689 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -259592,9 +252416,7 @@ "start": 218690, "end": 218694 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -259667,9 +252489,7 @@ "start": 218737, "end": 218748 }, - "ctxt": 0, - "value": "emitPartial", - "optional": false + "value": "emitPartial" } }, "arguments": [ @@ -259746,9 +252566,7 @@ "start": 218789, "end": 218801 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -259777,9 +252595,7 @@ "start": 218809, "end": 218815 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -259852,9 +252668,7 @@ "start": 218913, "end": 218922 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -259863,9 +252677,7 @@ "start": 218923, "end": 218940 }, - "ctxt": 0, - "value": "parseLegacyEntity", - "optional": false + "value": "parseLegacyEntity" } }, "right": { @@ -259939,9 +252751,7 @@ "start": 218990, "end": 219002 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -260014,9 +252824,7 @@ "start": 219041, "end": 219044 }, - "ctxt": 0, - "value": "min", - "optional": false + "value": "min" } }, "arguments": [ @@ -260048,9 +252856,7 @@ "start": 219050, "end": 219056 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -260184,9 +252990,7 @@ "start": 219140, "end": 219146 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -260195,9 +252999,7 @@ "start": 219147, "end": 219153 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -260281,9 +253083,7 @@ "start": 219196, "end": 219205 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -260292,9 +253092,7 @@ "start": 219206, "end": 219220 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -260303,9 +253101,7 @@ "start": 219221, "end": 219225 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -260333,9 +253129,7 @@ "start": 219228, "end": 219235 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -260395,9 +253189,7 @@ "start": 219276, "end": 219287 }, - "ctxt": 0, - "value": "emitPartial", - "optional": false + "value": "emitPartial" } }, "arguments": [ @@ -260431,9 +253223,7 @@ "start": 219290, "end": 219297 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "property": { @@ -260491,9 +253281,7 @@ "start": 219336, "end": 219348 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -260616,9 +253404,7 @@ "start": 219515, "end": 219524 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -260627,9 +253413,7 @@ "start": 219525, "end": 219543 }, - "ctxt": 0, - "value": "stateInNamedEntity", - "optional": false + "value": "stateInNamedEntity" } }, "right": { @@ -260743,9 +253527,7 @@ "start": 219627, "end": 219643 }, - "ctxt": 0, - "value": "parseFixedEntity", - "optional": false + "value": "parseFixedEntity" } }, "arguments": [], @@ -260798,9 +253580,7 @@ "start": 219680, "end": 219689 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -260846,9 +253626,7 @@ "start": 219704, "end": 219716 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -260880,9 +253658,7 @@ "start": 219728, "end": 219734 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -260913,9 +253689,7 @@ "start": 219744, "end": 219751 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -260960,9 +253734,7 @@ "start": 219788, "end": 219805 }, - "ctxt": 0, - "value": "parseLegacyEntity", - "optional": false + "value": "parseLegacyEntity" } }, "arguments": [], @@ -261005,9 +253777,7 @@ "start": 219863, "end": 219869 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -261029,9 +253799,7 @@ "start": 219877, "end": 219886 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -261203,9 +253971,7 @@ "start": 219995, "end": 220002 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -261241,9 +254007,7 @@ "start": 220011, "end": 220023 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -261275,9 +254039,7 @@ "start": 220037, "end": 220043 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -261323,9 +254085,7 @@ "start": 220063, "end": 220072 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -261419,9 +254179,7 @@ "start": 220164, "end": 220180 }, - "ctxt": 0, - "value": "parseFixedEntity", - "optional": false + "value": "parseFixedEntity" } }, "arguments": [ @@ -261449,9 +254207,7 @@ "start": 220183, "end": 220190 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -261505,9 +254261,7 @@ "start": 220288, "end": 220305 }, - "ctxt": 0, - "value": "parseLegacyEntity", - "optional": false + "value": "parseLegacyEntity" } }, "arguments": [], @@ -261550,9 +254304,7 @@ "start": 220363, "end": 220369 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -261574,9 +254326,7 @@ "start": 220377, "end": 220386 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -261614,9 +254364,7 @@ "start": 220417, "end": 220423 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -261676,9 +254424,7 @@ "start": 220493, "end": 220502 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -261687,9 +254433,7 @@ "start": 220503, "end": 220522 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "right": { @@ -261821,9 +254565,7 @@ "start": 220579, "end": 220591 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -261883,9 +254625,7 @@ "start": 220632, "end": 220638 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -261956,9 +254696,7 @@ "start": 220679, "end": 220685 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -261967,9 +254705,7 @@ "start": 220686, "end": 220695 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -262007,9 +254743,7 @@ "start": 220704, "end": 220710 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -262130,9 +254864,7 @@ "start": 220790, "end": 220801 }, - "ctxt": 0, - "value": "emitPartial", - "optional": false + "value": "emitPartial" } }, "arguments": [ @@ -262167,9 +254899,7 @@ "start": 220804, "end": 220811 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "arguments": [ @@ -262226,9 +254956,7 @@ "start": 220846, "end": 220858 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -262273,9 +255001,7 @@ "start": 220870, "end": 220876 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -262307,9 +255033,7 @@ "start": 220888, "end": 220894 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -262351,9 +255075,7 @@ "start": 220942, "end": 220948 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -262375,9 +255097,7 @@ "start": 220956, "end": 220965 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -262432,9 +255152,7 @@ "start": 221011, "end": 221020 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -262443,9 +255161,7 @@ "start": 221021, "end": 221041 }, - "ctxt": 0, - "value": "stateInNumericEntity", - "optional": false + "value": "stateInNumericEntity" } }, "right": { @@ -262559,9 +255275,7 @@ "start": 221125, "end": 221144 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "arguments": [ @@ -262714,9 +255428,7 @@ "start": 221245, "end": 221252 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -262760,9 +255472,7 @@ "start": 221289, "end": 221308 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "arguments": [ @@ -262847,9 +255557,7 @@ "start": 221389, "end": 221395 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -262871,9 +255579,7 @@ "start": 221403, "end": 221412 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -262914,9 +255620,7 @@ "start": 221468, "end": 221474 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -262976,9 +255680,7 @@ "start": 221544, "end": 221553 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -262987,9 +255689,7 @@ "start": 221554, "end": 221570 }, - "ctxt": 0, - "value": "stateInHexEntity", - "optional": false + "value": "stateInHexEntity" } }, "right": { @@ -263103,9 +255803,7 @@ "start": 221654, "end": 221673 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "arguments": [ @@ -263419,9 +256117,7 @@ "start": 221824, "end": 221831 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -263465,9 +256161,7 @@ "start": 221868, "end": 221887 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "arguments": [ @@ -263552,9 +256246,7 @@ "start": 221968, "end": 221974 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -263576,9 +256268,7 @@ "start": 221982, "end": 221991 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -263619,9 +256309,7 @@ "start": 222047, "end": 222053 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -263681,9 +256369,7 @@ "start": 222123, "end": 222132 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -263692,9 +256378,7 @@ "start": 222133, "end": 222140 }, - "ctxt": 0, - "value": "cleanup", - "optional": false + "value": "cleanup" } }, "right": { @@ -263747,9 +256431,7 @@ "start": 222186, "end": 222198 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -263802,9 +256484,7 @@ "start": 222235, "end": 222241 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -263850,9 +256530,7 @@ "start": 222277, "end": 222289 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -263874,9 +256552,7 @@ "start": 222298, "end": 222304 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -263913,9 +256589,7 @@ "start": 222335, "end": 222341 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -263956,9 +256630,7 @@ "start": 222382, "end": 222389 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } }, "consequent": { @@ -264001,9 +256673,7 @@ "start": 222426, "end": 222432 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -264056,9 +256726,7 @@ "start": 222479, "end": 222491 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -264080,9 +256748,7 @@ "start": 222501, "end": 222507 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -264132,9 +256798,7 @@ "start": 222548, "end": 222551 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -264143,9 +256807,7 @@ "start": 222552, "end": 222558 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "arguments": [ @@ -264183,9 +256845,7 @@ "start": 222564, "end": 222570 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -264194,9 +256854,7 @@ "start": 222571, "end": 222577 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -264221,9 +256879,7 @@ "start": 222583, "end": 222595 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } } @@ -264271,9 +256927,7 @@ "start": 222661, "end": 222667 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -264319,9 +256973,7 @@ "start": 222707, "end": 222719 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -264343,9 +256995,7 @@ "start": 222728, "end": 222734 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -264382,9 +257032,7 @@ "start": 222769, "end": 222775 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -264432,9 +257080,7 @@ "start": 222820, "end": 222832 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -264456,9 +257102,7 @@ "start": 222842, "end": 222848 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -264502,9 +257146,7 @@ "start": 222885, "end": 222891 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -264550,9 +257192,7 @@ "start": 222931, "end": 222943 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -264574,9 +257214,7 @@ "start": 222952, "end": 222958 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -264613,9 +257251,7 @@ "start": 222993, "end": 222999 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -264671,9 +257307,7 @@ "start": 223070, "end": 223076 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "right": { @@ -264708,9 +257342,7 @@ "start": 223084, "end": 223090 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -264719,9 +257351,7 @@ "start": 223091, "end": 223097 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -264746,9 +257376,7 @@ "start": 223103, "end": 223115 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } } @@ -264789,9 +257417,7 @@ "start": 223151, "end": 223157 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -264813,9 +257439,7 @@ "start": 223166, "end": 223178 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } } @@ -264852,9 +257476,7 @@ "start": 223213, "end": 223225 }, - "ctxt": 0, - "value": "bufferOffset", - "optional": false + "value": "bufferOffset" } }, "right": { @@ -264876,9 +257498,7 @@ "start": 223234, "end": 223246 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } } @@ -264919,9 +257539,7 @@ "start": 223302, "end": 223314 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -264990,9 +257608,7 @@ "start": 223386, "end": 223395 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -265001,9 +257617,7 @@ "start": 223396, "end": 223401 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "right": { @@ -265063,9 +257677,7 @@ "start": 223450, "end": 223456 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } }, "right": { @@ -265093,9 +257705,7 @@ "start": 223464, "end": 223470 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -265104,9 +257714,7 @@ "start": 223471, "end": 223477 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -265129,9 +257737,7 @@ "start": 223486, "end": 223493 }, - "ctxt": 0, - "value": "running", - "optional": false + "value": "running" } } }, @@ -265202,9 +257808,7 @@ "start": 223534, "end": 223540 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -265213,9 +257817,7 @@ "start": 223541, "end": 223547 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -265240,9 +257842,7 @@ "start": 223553, "end": 223559 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -265285,9 +257885,7 @@ "start": 223595, "end": 223601 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -265340,9 +257938,7 @@ "start": 223644, "end": 223653 }, - "ctxt": 0, - "value": "stateText", - "optional": false + "value": "stateText" } }, "arguments": [ @@ -265397,9 +257993,7 @@ "start": 223697, "end": 223703 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -265452,9 +258046,7 @@ "start": 223747, "end": 223780 }, - "ctxt": 0, - "value": "stateInAttributeValueDoubleQuotes", - "optional": false + "value": "stateInAttributeValueDoubleQuotes" } }, "arguments": [ @@ -265509,9 +258101,7 @@ "start": 223824, "end": 223830 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -265564,9 +258154,7 @@ "start": 223873, "end": 223893 }, - "ctxt": 0, - "value": "stateInAttributeName", - "optional": false + "value": "stateInAttributeName" } }, "arguments": [ @@ -265621,9 +258209,7 @@ "start": 223937, "end": 223943 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -265676,9 +258262,7 @@ "start": 223987, "end": 224001 }, - "ctxt": 0, - "value": "stateInComment", - "optional": false + "value": "stateInComment" } }, "arguments": [ @@ -265733,9 +258317,7 @@ "start": 224045, "end": 224051 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -265788,9 +258370,7 @@ "start": 224095, "end": 224116 }, - "ctxt": 0, - "value": "stateInSpecialComment", - "optional": false + "value": "stateInSpecialComment" } }, "arguments": [ @@ -265845,9 +258425,7 @@ "start": 224160, "end": 224166 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -265900,9 +258478,7 @@ "start": 224209, "end": 224233 }, - "ctxt": 0, - "value": "stateBeforeAttributeName", - "optional": false + "value": "stateBeforeAttributeName" } }, "arguments": [ @@ -265957,9 +258533,7 @@ "start": 224277, "end": 224283 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266012,9 +258586,7 @@ "start": 224326, "end": 224340 }, - "ctxt": 0, - "value": "stateInTagName", - "optional": false + "value": "stateInTagName" } }, "arguments": [ @@ -266069,9 +258641,7 @@ "start": 224384, "end": 224390 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266124,9 +258694,7 @@ "start": 224433, "end": 224454 }, - "ctxt": 0, - "value": "stateInClosingTagName", - "optional": false + "value": "stateInClosingTagName" } }, "arguments": [ @@ -266181,9 +258749,7 @@ "start": 224498, "end": 224504 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266236,9 +258802,7 @@ "start": 224547, "end": 224565 }, - "ctxt": 0, - "value": "stateBeforeTagName", - "optional": false + "value": "stateBeforeTagName" } }, "arguments": [ @@ -266293,9 +258857,7 @@ "start": 224609, "end": 224615 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266348,9 +258910,7 @@ "start": 224659, "end": 224682 }, - "ctxt": 0, - "value": "stateAfterAttributeName", - "optional": false + "value": "stateAfterAttributeName" } }, "arguments": [ @@ -266405,9 +258965,7 @@ "start": 224726, "end": 224732 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266460,9 +259018,7 @@ "start": 224776, "end": 224809 }, - "ctxt": 0, - "value": "stateInAttributeValueSingleQuotes", - "optional": false + "value": "stateInAttributeValueSingleQuotes" } }, "arguments": [ @@ -266517,9 +259073,7 @@ "start": 224853, "end": 224859 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266572,9 +259126,7 @@ "start": 224903, "end": 224928 }, - "ctxt": 0, - "value": "stateBeforeAttributeValue", - "optional": false + "value": "stateBeforeAttributeValue" } }, "arguments": [ @@ -266629,9 +259181,7 @@ "start": 224972, "end": 224978 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266684,9 +259234,7 @@ "start": 225021, "end": 225046 }, - "ctxt": 0, - "value": "stateBeforeClosingTagName", - "optional": false + "value": "stateBeforeClosingTagName" } }, "arguments": [ @@ -266741,9 +259289,7 @@ "start": 225090, "end": 225096 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266796,9 +259342,7 @@ "start": 225139, "end": 225163 }, - "ctxt": 0, - "value": "stateAfterClosingTagName", - "optional": false + "value": "stateAfterClosingTagName" } }, "arguments": [ @@ -266853,9 +259397,7 @@ "start": 225207, "end": 225213 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -266908,9 +259450,7 @@ "start": 225257, "end": 225276 }, - "ctxt": 0, - "value": "stateBeforeSpecialS", - "optional": false + "value": "stateBeforeSpecialS" } }, "arguments": [ @@ -266965,9 +259505,7 @@ "start": 225320, "end": 225326 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267020,9 +259558,7 @@ "start": 225370, "end": 225388 }, - "ctxt": 0, - "value": "stateAfterComment1", - "optional": false + "value": "stateAfterComment1" } }, "arguments": [ @@ -267077,9 +259613,7 @@ "start": 225432, "end": 225438 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267132,9 +259666,7 @@ "start": 225482, "end": 225511 }, - "ctxt": 0, - "value": "stateInAttributeValueNoQuotes", - "optional": false + "value": "stateInAttributeValueNoQuotes" } }, "arguments": [ @@ -267189,9 +259721,7 @@ "start": 225555, "end": 225561 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267244,9 +259774,7 @@ "start": 225604, "end": 225625 }, - "ctxt": 0, - "value": "stateInSelfClosingTag", - "optional": false + "value": "stateInSelfClosingTag" } }, "arguments": [ @@ -267301,9 +259829,7 @@ "start": 225669, "end": 225675 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267356,9 +259882,7 @@ "start": 225719, "end": 225737 }, - "ctxt": 0, - "value": "stateInDeclaration", - "optional": false + "value": "stateInDeclaration" } }, "arguments": [ @@ -267413,9 +259937,7 @@ "start": 225781, "end": 225787 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267468,9 +259990,7 @@ "start": 225831, "end": 225853 }, - "ctxt": 0, - "value": "stateBeforeDeclaration", - "optional": false + "value": "stateBeforeDeclaration" } }, "arguments": [ @@ -267525,9 +260045,7 @@ "start": 225897, "end": 225903 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267580,9 +260098,7 @@ "start": 225947, "end": 225965 }, - "ctxt": 0, - "value": "stateAfterComment2", - "optional": false + "value": "stateAfterComment2" } }, "arguments": [ @@ -267637,9 +260153,7 @@ "start": 226009, "end": 226015 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267692,9 +260206,7 @@ "start": 226059, "end": 226077 }, - "ctxt": 0, - "value": "stateBeforeComment", - "optional": false + "value": "stateBeforeComment" } }, "arguments": [ @@ -267749,9 +260261,7 @@ "start": 226121, "end": 226127 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267804,9 +260314,7 @@ "start": 226171, "end": 226193 }, - "ctxt": 0, - "value": "stateBeforeSpecialSEnd", - "optional": false + "value": "stateBeforeSpecialSEnd" } }, "arguments": [ @@ -267861,9 +260369,7 @@ "start": 226237, "end": 226243 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -267969,9 +260475,7 @@ "start": 226333, "end": 226339 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268077,9 +260581,7 @@ "start": 226429, "end": 226435 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268185,9 +260687,7 @@ "start": 226525, "end": 226531 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268293,9 +260793,7 @@ "start": 226621, "end": 226627 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268401,9 +260899,7 @@ "start": 226717, "end": 226723 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268509,9 +261005,7 @@ "start": 226813, "end": 226819 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268617,9 +261111,7 @@ "start": 226909, "end": 226915 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268725,9 +261217,7 @@ "start": 227005, "end": 227011 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268780,9 +261270,7 @@ "start": 227055, "end": 227077 }, - "ctxt": 0, - "value": "stateBeforeSpecialLast", - "optional": false + "value": "stateBeforeSpecialLast" } }, "arguments": [ @@ -268849,9 +261337,7 @@ "start": 227124, "end": 227130 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -268957,9 +261443,7 @@ "start": 227220, "end": 227226 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269012,9 +261496,7 @@ "start": 227270, "end": 227291 }, - "ctxt": 0, - "value": "stateAfterSpecialLast", - "optional": false + "value": "stateAfterSpecialLast" } }, "arguments": [ @@ -269081,9 +261563,7 @@ "start": 227338, "end": 227344 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269189,9 +261669,7 @@ "start": 227434, "end": 227440 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269244,9 +261722,7 @@ "start": 227484, "end": 227496 }, - "ctxt": 0, - "value": "stateInCdata", - "optional": false + "value": "stateInCdata" } }, "arguments": [ @@ -269301,9 +261777,7 @@ "start": 227540, "end": 227546 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269409,9 +261883,7 @@ "start": 227636, "end": 227642 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269517,9 +261989,7 @@ "start": 227732, "end": 227738 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269572,9 +262042,7 @@ "start": 227782, "end": 227804 }, - "ctxt": 0, - "value": "stateBeforeSpecialLast", - "optional": false + "value": "stateBeforeSpecialLast" } }, "arguments": [ @@ -269641,9 +262109,7 @@ "start": 227851, "end": 227857 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269749,9 +262215,7 @@ "start": 227947, "end": 227953 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269857,9 +262321,7 @@ "start": 228043, "end": 228049 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -269965,9 +262427,7 @@ "start": 228139, "end": 228145 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270020,9 +262480,7 @@ "start": 228189, "end": 228210 }, - "ctxt": 0, - "value": "stateAfterSpecialLast", - "optional": false + "value": "stateAfterSpecialLast" } }, "arguments": [ @@ -270089,9 +262547,7 @@ "start": 228257, "end": 228263 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270197,9 +262653,7 @@ "start": 228353, "end": 228359 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270305,9 +262759,7 @@ "start": 228449, "end": 228455 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270413,9 +262865,7 @@ "start": 228545, "end": 228551 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270521,9 +262971,7 @@ "start": 228641, "end": 228647 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270576,9 +263024,7 @@ "start": 228691, "end": 228713 }, - "ctxt": 0, - "value": "stateBeforeSpecialLast", - "optional": false + "value": "stateBeforeSpecialLast" } }, "arguments": [ @@ -270645,9 +263091,7 @@ "start": 228760, "end": 228766 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270753,9 +263197,7 @@ "start": 228856, "end": 228862 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270861,9 +263303,7 @@ "start": 228952, "end": 228958 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -270969,9 +263409,7 @@ "start": 229048, "end": 229054 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271024,9 +263462,7 @@ "start": 229098, "end": 229119 }, - "ctxt": 0, - "value": "stateAfterSpecialLast", - "optional": false + "value": "stateAfterSpecialLast" } }, "arguments": [ @@ -271093,9 +263529,7 @@ "start": 229166, "end": 229172 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271148,9 +263582,7 @@ "start": 229216, "end": 229244 }, - "ctxt": 0, - "value": "stateInProcessingInstruction", - "optional": false + "value": "stateInProcessingInstruction" } }, "arguments": [ @@ -271205,9 +263637,7 @@ "start": 229288, "end": 229294 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271260,9 +263690,7 @@ "start": 229338, "end": 229356 }, - "ctxt": 0, - "value": "stateInNamedEntity", - "optional": false + "value": "stateInNamedEntity" } }, "arguments": [ @@ -271317,9 +263745,7 @@ "start": 229400, "end": 229406 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271425,9 +263851,7 @@ "start": 229496, "end": 229502 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271533,9 +263957,7 @@ "start": 229592, "end": 229598 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271641,9 +264063,7 @@ "start": 229688, "end": 229694 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271749,9 +264169,7 @@ "start": 229784, "end": 229790 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271804,9 +264222,7 @@ "start": 229834, "end": 229850 }, - "ctxt": 0, - "value": "stateAfterCdata1", - "optional": false + "value": "stateAfterCdata1" } }, "arguments": [ @@ -271861,9 +264277,7 @@ "start": 229894, "end": 229900 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -271916,9 +264330,7 @@ "start": 229944, "end": 229960 }, - "ctxt": 0, - "value": "stateAfterCdata2", - "optional": false + "value": "stateAfterCdata2" } }, "arguments": [ @@ -271973,9 +264385,7 @@ "start": 230004, "end": 230010 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -272081,9 +264491,7 @@ "start": 230100, "end": 230106 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -272189,9 +264597,7 @@ "start": 230196, "end": 230202 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -272244,9 +264650,7 @@ "start": 230246, "end": 230263 }, - "ctxt": 0, - "value": "stateBeforeCdata6", - "optional": false + "value": "stateBeforeCdata6" } }, "arguments": [ @@ -272301,9 +264705,7 @@ "start": 230307, "end": 230313 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -272356,9 +264758,7 @@ "start": 230357, "end": 230373 }, - "ctxt": 0, - "value": "stateInHexEntity", - "optional": false + "value": "stateInHexEntity" } }, "arguments": [ @@ -272413,9 +264813,7 @@ "start": 230417, "end": 230423 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -272468,9 +264866,7 @@ "start": 230467, "end": 230487 }, - "ctxt": 0, - "value": "stateInNumericEntity", - "optional": false + "value": "stateInNumericEntity" } }, "arguments": [ @@ -272525,9 +264921,7 @@ "start": 230531, "end": 230537 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -272647,9 +265041,7 @@ "start": 230653, "end": 230656 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -272658,9 +265050,7 @@ "start": 230657, "end": 230664 }, - "ctxt": 0, - "value": "onerror", - "optional": false + "value": "onerror" } }, "arguments": [ @@ -272721,9 +265111,7 @@ "start": 230695, "end": 230701 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } } } @@ -272832,9 +265220,7 @@ "start": 230758, "end": 230764 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -272874,9 +265260,7 @@ "start": 230814, "end": 230821 }, - "ctxt": 0, - "value": "cleanup", - "optional": false + "value": "cleanup" } }, "arguments": [], @@ -272933,9 +265317,7 @@ "start": 230869, "end": 230878 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -272944,9 +265326,7 @@ "start": 230879, "end": 230885 }, - "ctxt": 0, - "value": "finish", - "optional": false + "value": "finish" } }, "right": { @@ -272999,9 +265379,7 @@ "start": 230931, "end": 230943 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -273023,9 +265401,7 @@ "start": 230951, "end": 230957 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -273069,9 +265445,7 @@ "start": 230990, "end": 231008 }, - "ctxt": 0, - "value": "handleTrailingData", - "optional": false + "value": "handleTrailingData" } }, "arguments": [], @@ -273120,9 +265494,7 @@ "start": 231058, "end": 231061 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -273131,9 +265503,7 @@ "start": 231062, "end": 231067 }, - "ctxt": 0, - "value": "onend", - "optional": false + "value": "onend" } }, "arguments": [], @@ -273190,9 +265560,7 @@ "start": 231115, "end": 231124 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -273201,9 +265569,7 @@ "start": 231125, "end": 231143 }, - "ctxt": 0, - "value": "handleTrailingData", - "optional": false + "value": "handleTrailingData" } }, "right": { @@ -273283,9 +265649,7 @@ "start": 231193, "end": 231199 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -273294,9 +265658,7 @@ "start": 231200, "end": 231206 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -273321,9 +265683,7 @@ "start": 231212, "end": 231224 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } } @@ -273380,9 +265740,7 @@ "start": 231256, "end": 231262 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273421,9 +265779,7 @@ "start": 231278, "end": 231284 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273463,9 +265819,7 @@ "start": 231300, "end": 231306 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273525,9 +265879,7 @@ "start": 231346, "end": 231349 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -273536,9 +265888,7 @@ "start": 231350, "end": 231357 }, - "ctxt": 0, - "value": "oncdata", - "optional": false + "value": "oncdata" } }, "arguments": [ @@ -273607,9 +265957,7 @@ "start": 231397, "end": 231403 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273648,9 +265996,7 @@ "start": 231419, "end": 231425 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273690,9 +266036,7 @@ "start": 231441, "end": 231447 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273752,9 +266096,7 @@ "start": 231487, "end": 231490 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -273763,9 +266105,7 @@ "start": 231491, "end": 231500 }, - "ctxt": 0, - "value": "oncomment", - "optional": false + "value": "oncomment" } }, "arguments": [ @@ -273827,9 +266167,7 @@ "start": 231540, "end": 231546 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -273868,9 +266206,7 @@ "start": 231563, "end": 231570 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -273915,9 +266251,7 @@ "start": 231603, "end": 231620 }, - "ctxt": 0, - "value": "parseLegacyEntity", - "optional": false + "value": "parseLegacyEntity" } }, "arguments": [], @@ -273956,9 +266290,7 @@ "start": 231657, "end": 231669 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -273980,9 +266312,7 @@ "start": 231677, "end": 231683 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -274026,9 +266356,7 @@ "start": 231720, "end": 231726 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274050,9 +266378,7 @@ "start": 231734, "end": 231743 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -274089,9 +266415,7 @@ "start": 231778, "end": 231796 }, - "ctxt": 0, - "value": "handleTrailingData", - "optional": false + "value": "handleTrailingData" } }, "arguments": [], @@ -274143,9 +266467,7 @@ "start": 231861, "end": 231867 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274184,9 +266506,7 @@ "start": 231884, "end": 231891 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -274231,9 +266551,7 @@ "start": 231924, "end": 231943 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "arguments": [ @@ -274308,9 +266626,7 @@ "start": 231992, "end": 232004 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -274332,9 +266648,7 @@ "start": 232012, "end": 232018 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -274378,9 +266692,7 @@ "start": 232055, "end": 232061 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274402,9 +266714,7 @@ "start": 232069, "end": 232078 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -274441,9 +266751,7 @@ "start": 232113, "end": 232131 }, - "ctxt": 0, - "value": "handleTrailingData", - "optional": false + "value": "handleTrailingData" } }, "arguments": [], @@ -274495,9 +266803,7 @@ "start": 232196, "end": 232202 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274536,9 +266842,7 @@ "start": 232219, "end": 232226 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -274583,9 +266887,7 @@ "start": 232259, "end": 232278 }, - "ctxt": 0, - "value": "decodeNumericEntity", - "optional": false + "value": "decodeNumericEntity" } }, "arguments": [ @@ -274660,9 +266962,7 @@ "start": 232327, "end": 232339 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -274684,9 +266984,7 @@ "start": 232347, "end": 232353 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } }, @@ -274730,9 +267028,7 @@ "start": 232390, "end": 232396 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274754,9 +267050,7 @@ "start": 232404, "end": 232413 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } } } @@ -274793,9 +267087,7 @@ "start": 232448, "end": 232466 }, - "ctxt": 0, - "value": "handleTrailingData", - "optional": false + "value": "handleTrailingData" } }, "arguments": [], @@ -274896,9 +267188,7 @@ "start": 232531, "end": 232537 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274937,9 +267227,7 @@ "start": 232552, "end": 232558 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -274979,9 +267267,7 @@ "start": 232573, "end": 232579 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275021,9 +267307,7 @@ "start": 232595, "end": 232601 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275063,9 +267347,7 @@ "start": 232617, "end": 232623 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275105,9 +267387,7 @@ "start": 232638, "end": 232644 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275147,9 +267427,7 @@ "start": 232660, "end": 232666 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275189,9 +267467,7 @@ "start": 232682, "end": 232688 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275231,9 +267507,7 @@ "start": 232704, "end": 232710 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" } }, "right": { @@ -275293,9 +267567,7 @@ "start": 232749, "end": 232752 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -275304,9 +267576,7 @@ "start": 232753, "end": 232759 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "arguments": [ @@ -275386,9 +267656,7 @@ "start": 232830, "end": 232839 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -275397,9 +267665,7 @@ "start": 232840, "end": 232850 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "right": { @@ -275458,9 +267724,7 @@ "start": 232899, "end": 232905 }, - "ctxt": 0, - "value": "buffer", - "optional": false + "value": "buffer" } }, "property": { @@ -275469,9 +267733,7 @@ "start": 232906, "end": 232915 }, - "ctxt": 0, - "value": "substring", - "optional": false + "value": "substring" } }, "arguments": [ @@ -275496,9 +267758,7 @@ "start": 232921, "end": 232933 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } } }, @@ -275523,9 +267783,7 @@ "start": 232940, "end": 232946 }, - "ctxt": 0, - "value": "_index", - "optional": false + "value": "_index" } } } @@ -275583,9 +267841,7 @@ "start": 232993, "end": 233002 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -275594,9 +267850,7 @@ "start": 233003, "end": 233012 }, - "ctxt": 0, - "value": "emitToken", - "optional": false + "value": "emitToken" } }, "right": { @@ -275675,9 +267929,7 @@ "start": 233055, "end": 233058 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -275727,9 +267979,7 @@ "start": 233067, "end": 233077 }, - "ctxt": 0, - "value": "getSection", - "optional": false + "value": "getSection" } }, "arguments": [], @@ -275772,9 +268022,7 @@ "start": 233107, "end": 233119 }, - "ctxt": 0, - "value": "sectionStart", - "optional": false + "value": "sectionStart" } }, "right": { @@ -275846,9 +268094,7 @@ "start": 233170, "end": 233179 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -275857,9 +268103,7 @@ "start": 233180, "end": 233191 }, - "ctxt": 0, - "value": "emitPartial", - "optional": false + "value": "emitPartial" } }, "right": { @@ -275932,9 +268176,7 @@ "start": 233238, "end": 233247 }, - "ctxt": 0, - "value": "baseState", - "optional": false + "value": "baseState" } }, "right": { @@ -275993,9 +268235,7 @@ "start": 233286, "end": 233289 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -276004,9 +268244,7 @@ "start": 233290, "end": 233302 }, - "ctxt": 0, - "value": "onattribdata", - "optional": false + "value": "onattribdata" } }, "arguments": [ @@ -276075,9 +268313,7 @@ "start": 233364, "end": 233367 }, - "ctxt": 0, - "value": "cbs", - "optional": false + "value": "cbs" } }, "property": { @@ -276086,9 +268322,7 @@ "start": 233368, "end": 233374 }, - "ctxt": 0, - "value": "ontext", - "optional": false + "value": "ontext" } }, "arguments": [ @@ -276388,9 +268622,7 @@ "start": 233601, "end": 233616 }, - "ctxt": 0, - "value": "__createBinding", - "optional": false + "value": "__createBinding" } } }, @@ -276428,9 +268660,7 @@ "start": 233628, "end": 233634 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -276635,9 +268865,7 @@ "start": 233728, "end": 233742 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -276684,9 +268912,7 @@ "start": 233771, "end": 233781 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -276705,9 +268931,7 @@ "start": 233809, "end": 233812 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -277121,9 +269345,7 @@ "start": 234066, "end": 234084 }, - "ctxt": 0, - "value": "__setModuleDefault", - "optional": false + "value": "__setModuleDefault" } } }, @@ -277161,9 +269383,7 @@ "start": 234096, "end": 234102 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -277258,9 +269478,7 @@ "start": 234146, "end": 234160 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -277306,9 +269524,7 @@ "start": 234197, "end": 234207 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -277327,9 +269543,7 @@ "start": 234235, "end": 234240 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -277552,9 +269766,7 @@ "start": 234379, "end": 234391 }, - "ctxt": 0, - "value": "__importStar", - "optional": false + "value": "__importStar" } } }, @@ -277641,9 +269853,7 @@ "start": 234437, "end": 234447 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -277865,9 +270075,7 @@ "start": 234609, "end": 234618 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -277876,9 +270084,7 @@ "start": 234619, "end": 234633 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -277887,9 +270093,7 @@ "start": 234634, "end": 234638 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -278145,9 +270349,7 @@ "start": 234756, "end": 234768 }, - "ctxt": 0, - "value": "__exportStar", - "optional": false + "value": "__exportStar" } } }, @@ -278344,9 +270546,7 @@ "start": 234874, "end": 234883 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -278355,9 +270555,7 @@ "start": 234884, "end": 234898 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -278366,9 +270564,7 @@ "start": 234899, "end": 234903 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -278552,9 +270748,7 @@ "start": 234970, "end": 234985 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -278647,9 +270841,7 @@ "start": 235034, "end": 235044 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -278678,9 +270870,7 @@ "start": 235073, "end": 235080 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -278744,9 +270934,7 @@ "start": 235136, "end": 235150 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -278792,9 +270980,7 @@ "start": 235186, "end": 235191 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -278847,9 +271033,7 @@ "start": 235228, "end": 235238 }, - "ctxt": 0, - "value": "RssHandler", - "optional": false + "value": "RssHandler" } }, "right": { @@ -278881,9 +271065,7 @@ "start": 235243, "end": 235257 }, - "ctxt": 0, - "value": "DefaultHandler", - "optional": false + "value": "DefaultHandler" } }, "right": { @@ -278915,9 +271097,7 @@ "start": 235262, "end": 235270 }, - "ctxt": 0, - "value": "DomUtils", - "optional": false + "value": "DomUtils" } }, "right": { @@ -278949,9 +271129,7 @@ "start": 235275, "end": 235286 }, - "ctxt": 0, - "value": "ElementType", - "optional": false + "value": "ElementType" } }, "right": { @@ -278983,9 +271161,7 @@ "start": 235291, "end": 235300 }, - "ctxt": 0, - "value": "Tokenizer", - "optional": false + "value": "Tokenizer" } }, "right": { @@ -279017,9 +271193,7 @@ "start": 235305, "end": 235320 }, - "ctxt": 0, - "value": "createDomStream", - "optional": false + "value": "createDomStream" } }, "right": { @@ -279051,9 +271225,7 @@ "start": 235325, "end": 235333 }, - "ctxt": 0, - "value": "parseDOM", - "optional": false + "value": "parseDOM" } }, "right": { @@ -279085,9 +271257,7 @@ "start": 235338, "end": 235348 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } }, "right": { @@ -279119,9 +271289,7 @@ "start": 235353, "end": 235359 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } }, "right": { @@ -279250,9 +271418,7 @@ "start": 235418, "end": 235432 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -279298,9 +271464,7 @@ "start": 235464, "end": 235474 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -279319,9 +271483,7 @@ "start": 235498, "end": 235501 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -279369,9 +271531,7 @@ "start": 235546, "end": 235552 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } } } @@ -279489,9 +271649,7 @@ "start": 235635, "end": 235649 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -279537,9 +271695,7 @@ "start": 235685, "end": 235695 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -279558,9 +271714,7 @@ "start": 235719, "end": 235722 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -279608,9 +271762,7 @@ "start": 235767, "end": 235777 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } } } @@ -279664,9 +271816,7 @@ "start": 235831, "end": 235845 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -279712,9 +271862,7 @@ "start": 235885, "end": 235895 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -279733,9 +271881,7 @@ "start": 235919, "end": 235922 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -279783,9 +271929,7 @@ "start": 235967, "end": 235977 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } } } @@ -279927,9 +272071,7 @@ "start": 236081, "end": 236091 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } }, "arguments": [ @@ -280021,9 +272163,7 @@ "start": 236126, "end": 236132 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } }, "arguments": [ @@ -280062,9 +272202,7 @@ "start": 236139, "end": 236142 }, - "ctxt": 0, - "value": "end", - "optional": false + "value": "end" } }, "arguments": [ @@ -280113,9 +272251,7 @@ "start": 236172, "end": 236175 }, - "ctxt": 0, - "value": "dom", - "optional": false + "value": "dom" } } } @@ -280161,9 +272297,7 @@ "start": 236204, "end": 236212 }, - "ctxt": 0, - "value": "parseDOM", - "optional": false + "value": "parseDOM" } }, "right": { @@ -280320,9 +272454,7 @@ "start": 236304, "end": 236314 }, - "ctxt": 0, - "value": "DomHandler", - "optional": false + "value": "DomHandler" } }, "arguments": [ @@ -280407,9 +272539,7 @@ "start": 236354, "end": 236360 }, - "ctxt": 0, - "value": "Parser", - "optional": false + "value": "Parser" } }, "arguments": [ @@ -280485,9 +272615,7 @@ "start": 236395, "end": 236410 }, - "ctxt": 0, - "value": "createDomStream", - "optional": false + "value": "createDomStream" } }, "right": { @@ -280601,9 +272729,7 @@ "start": 236478, "end": 236492 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -280649,9 +272775,7 @@ "start": 236527, "end": 236537 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -280670,9 +272794,7 @@ "start": 236561, "end": 236564 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -280744,9 +272866,7 @@ "start": 236612, "end": 236619 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -280888,9 +273008,7 @@ "start": 236700, "end": 236711 }, - "ctxt": 0, - "value": "ElementType", - "optional": false + "value": "ElementType" } }, "right": { @@ -281017,9 +273135,7 @@ "start": 236758, "end": 236766 }, - "ctxt": 0, - "value": "DomUtils", - "optional": false + "value": "DomUtils" } }, "right": { @@ -281180,9 +273296,7 @@ "start": 236829, "end": 236843 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -281228,9 +273342,7 @@ "start": 236879, "end": 236889 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -281249,9 +273361,7 @@ "start": 236913, "end": 236916 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -281299,9 +273409,7 @@ "start": 236961, "end": 236972 }, - "ctxt": 0, - "value": "FeedHandler", - "optional": false + "value": "FeedHandler" } } } @@ -281490,9 +273598,7 @@ "start": 237102, "end": 237105 }, - "ctxt": 0, - "value": "log", - "optional": false + "value": "log" } }, "property": { @@ -281501,9 +273607,7 @@ "start": 237106, "end": 237109 }, - "ctxt": 0, - "value": "tag", - "optional": false + "value": "tag" } }, "arguments": [ @@ -281688,9 +273792,7 @@ "start": 237303, "end": 237309 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" }, "value": { "type": "NumericLiteral", @@ -281710,9 +273812,7 @@ "start": 237330, "end": 237334 }, - "ctxt": 0, - "value": "prod", - "optional": false + "value": "prod" }, "value": { "type": "NumericLiteral", @@ -281732,9 +273832,7 @@ "start": 237355, "end": 237358 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" }, "value": { "type": "NumericLiteral", @@ -281785,9 +273883,7 @@ "start": 237428, "end": 237439 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -281850,9 +273946,7 @@ "start": 237470, "end": 237476 }, - "ctxt": 0, - "value": "fetch_", - "optional": false + "value": "fetch_" } }, "right": { @@ -281884,9 +273978,7 @@ "start": 237521, "end": 237535 }, - "ctxt": 0, - "value": "currentVersion", - "optional": false + "value": "currentVersion" }, "function": { "params": [ @@ -281974,9 +274066,7 @@ "start": 237572, "end": 237584 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" } }, "right": { @@ -282012,9 +274102,7 @@ "start": 237594, "end": 237608 }, - "ctxt": 0, - "value": "isAbsoluteUrl_", - "optional": false + "value": "isAbsoluteUrl_" } }, "arguments": [ @@ -282042,9 +274130,7 @@ "start": 237611, "end": 237623 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" } } } @@ -282140,9 +274226,7 @@ "start": 237748, "end": 237754 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } }, "right": { @@ -282167,9 +274251,7 @@ "start": 237760, "end": 237763 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } }, @@ -282274,9 +274356,7 @@ "start": 237906, "end": 237910 }, - "ctxt": 0, - "value": "prod", - "optional": false + "value": "prod" } }, "definite": false @@ -282311,9 +274391,7 @@ "start": 237938, "end": 237944 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } }, "consequent": { @@ -282370,9 +274448,7 @@ "start": 237978, "end": 237984 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } } } @@ -282407,9 +274483,7 @@ "start": 238018, "end": 238021 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } }, "consequent": { @@ -282466,9 +274540,7 @@ "start": 238055, "end": 238058 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } } @@ -282533,9 +274605,7 @@ "start": 238113, "end": 238125 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" } }, "consequent": { @@ -282573,9 +274643,7 @@ "start": 238130, "end": 238142 }, - "ctxt": 0, - "value": "ampUrlPrefix", - "optional": false + "value": "ampUrlPrefix" } }, "property": { @@ -282584,9 +274652,7 @@ "start": 238143, "end": 238150 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -282691,9 +274757,7 @@ "start": 238206, "end": 238236 }, - "ctxt": 0, - "value": "getVersionFromRuntimeMetadata_", - "optional": false + "value": "getVersionFromRuntimeMetadata_" } }, "arguments": [ @@ -282801,9 +274865,7 @@ "start": 238282, "end": 238286 }, - "ctxt": 0, - "value": "prod", - "optional": false + "value": "prod" } } } @@ -282872,9 +274934,7 @@ "start": 238329, "end": 238354 }, - "ctxt": 0, - "value": "getVersionFromVersionTxt_", - "optional": false + "value": "getVersionFromVersionTxt_" } }, "arguments": [ @@ -282957,9 +275017,7 @@ "start": 238452, "end": 238482 }, - "ctxt": 0, - "value": "getVersionFromRuntimeMetadata_", - "optional": false + "value": "getVersionFromRuntimeMetadata_" }, "function": { "params": [ @@ -283110,9 +275168,7 @@ "start": 238550, "end": 238555 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -283266,9 +275322,7 @@ "start": 238679, "end": 238685 }, - "ctxt": 0, - "value": "fetch_", - "optional": false + "value": "fetch_" } }, "arguments": [ @@ -283382,9 +275436,7 @@ "start": 238758, "end": 238760 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" } } } @@ -283432,9 +275484,7 @@ "start": 238790, "end": 238795 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -283571,9 +275621,7 @@ "start": 239010, "end": 239014 }, - "ctxt": 0, - "value": "json", - "optional": false + "value": "json" } }, "arguments": [], @@ -283644,9 +275692,7 @@ "start": 239077, "end": 239082 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -283756,9 +275802,7 @@ "start": 239227, "end": 239233 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } } }, @@ -283819,9 +275863,7 @@ "start": 239271, "end": 239278 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -283849,9 +275891,7 @@ "start": 239281, "end": 239291 }, - "ctxt": 0, - "value": "diversions", - "optional": false + "value": "diversions" } } } @@ -283886,9 +275926,7 @@ "start": 239298, "end": 239308 }, - "ctxt": 0, - "value": "diversions", - "optional": false + "value": "diversions" } }, "property": { @@ -283950,9 +275988,7 @@ "start": 239317, "end": 239327 }, - "ctxt": 0, - "value": "diversions", - "optional": false + "value": "diversions" } }, "property": { @@ -283978,9 +276014,7 @@ "start": 239331, "end": 239341 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -284012,9 +276046,7 @@ "start": 239347, "end": 239364 }, - "ctxt": 0, - "value": "getRtvConfigCode_", - "optional": false + "value": "getRtvConfigCode_" } }, "arguments": [ @@ -284099,9 +276131,7 @@ "start": 239406, "end": 239416 }, - "ctxt": 0, - "value": "diversions", - "optional": false + "value": "diversions" } }, "property": { @@ -284194,9 +276224,7 @@ "start": 239510, "end": 239515 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -284267,9 +276295,7 @@ "start": 239652, "end": 239655 }, - "ctxt": 0, - "value": "lts", - "optional": false + "value": "lts" } } }, @@ -284327,9 +276353,7 @@ "start": 239689, "end": 239706 }, - "ctxt": 0, - "value": "ltsRuntimeVersion", - "optional": false + "value": "ltsRuntimeVersion" } } } @@ -284401,9 +276425,7 @@ "start": 239772, "end": 239777 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -284474,9 +276496,7 @@ "start": 239912, "end": 239916 }, - "ctxt": 0, - "value": "prod", - "optional": false + "value": "prod" } } }, @@ -284534,9 +276554,7 @@ "start": 239950, "end": 239967 }, - "ctxt": 0, - "value": "ampRuntimeVersion", - "optional": false + "value": "ampRuntimeVersion" } } } @@ -284608,9 +276626,7 @@ "start": 240033, "end": 240038 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -284683,9 +276699,7 @@ "start": 240232, "end": 240257 }, - "ctxt": 0, - "value": "getVersionFromVersionTxt_", - "optional": false + "value": "getVersionFromVersionTxt_" }, "function": { "params": [ @@ -284787,9 +276801,7 @@ "start": 240298, "end": 240302 }, - "ctxt": 0, - "value": "prod", - "optional": false + "value": "prod" } } }, @@ -284836,9 +276848,7 @@ "start": 240332, "end": 240337 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -284975,9 +276985,7 @@ "start": 240504, "end": 240509 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -285131,9 +277139,7 @@ "start": 240627, "end": 240633 }, - "ctxt": 0, - "value": "fetch_", - "optional": false + "value": "fetch_" } }, "arguments": [ @@ -285247,9 +277253,7 @@ "start": 240706, "end": 240708 }, - "ctxt": 0, - "value": "ok", - "optional": false + "value": "ok" } } } @@ -285297,9 +277301,7 @@ "start": 240738, "end": 240743 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -285455,9 +277457,7 @@ "start": 240958, "end": 240962 }, - "ctxt": 0, - "value": "text", - "optional": false + "value": "text" } }, "arguments": [], @@ -285471,9 +277471,7 @@ "start": 240966, "end": 240970 }, - "ctxt": 0, - "value": "trim", - "optional": false + "value": "trim" } }, "arguments": [], @@ -285640,9 +277638,7 @@ "start": 241163, "end": 241168 }, - "ctxt": 0, - "value": "debug", - "optional": false + "value": "debug" } }, "arguments": [ @@ -285714,9 +277710,7 @@ "start": 241303, "end": 241320 }, - "ctxt": 0, - "value": "getRtvConfigCode_", - "optional": false + "value": "getRtvConfigCode_" } }, "arguments": [ @@ -285774,9 +277768,7 @@ "start": 241362, "end": 241379 }, - "ctxt": 0, - "value": "getRtvConfigCode_", - "optional": false + "value": "getRtvConfigCode_" }, "function": { "params": [ @@ -285859,9 +277851,7 @@ "start": 241417, "end": 241423 }, - "ctxt": 0, - "value": "canary", - "optional": false + "value": "canary" } } }, @@ -285935,9 +277925,7 @@ "start": 241551, "end": 241565 }, - "ctxt": 0, - "value": "isAbsoluteUrl_", - "optional": false + "value": "isAbsoluteUrl_" }, "function": { "params": [ @@ -286148,9 +278136,7 @@ "start": 241808, "end": 241815 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -286281,9 +278267,7 @@ "start": 241935, "end": 241948 }, - "ctxt": 0, - "value": "calculateHash", - "optional": false + "value": "calculateHash" }, "value": { "type": "Identifier", @@ -286373,9 +278357,7 @@ "start": 241991, "end": 241998 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -286393,9 +278375,7 @@ "start": 242019, "end": 242032 }, - "ctxt": 0, - "value": "calculateHash", - "optional": false + "value": "calculateHash" }, "value": { "type": "Identifier", @@ -286722,9 +278702,7 @@ "start": 242253, "end": 242262 }, - "ctxt": 0, - "value": "algorithm", - "optional": false + "value": "algorithm" }, "value": { "type": "AssignmentPattern", @@ -286840,9 +278818,7 @@ "start": 242320, "end": 242331 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -286894,9 +278870,7 @@ "start": 242358, "end": 242361 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -287103,9 +279077,7 @@ "start": 242537, "end": 242541 }, - "ctxt": 0, - "value": "from", - "optional": false + "value": "from" } }, "arguments": [ @@ -287199,9 +279171,7 @@ "start": 242599, "end": 242609 }, - "ctxt": 0, - "value": "createHash", - "optional": false + "value": "createHash" } }, "arguments": [ @@ -287281,9 +279251,7 @@ "start": 242642, "end": 242648 }, - "ctxt": 0, - "value": "update", - "optional": false + "value": "update" } }, "arguments": [ @@ -287383,9 +279351,7 @@ "start": 242697, "end": 242703 }, - "ctxt": 0, - "value": "digest", - "optional": false + "value": "digest" } }, "arguments": [ @@ -287596,9 +279562,7 @@ "start": 242833, "end": 242840 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -287635,9 +279599,7 @@ "start": 242851, "end": 242858 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -287674,9 +279636,7 @@ "start": 242871, "end": 242878 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -287750,9 +279710,7 @@ "start": 242919, "end": 242926 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -287770,9 +279728,7 @@ "start": 242947, "end": 242960 }, - "ctxt": 0, - "value": "calculateHash", - "optional": false + "value": "calculateHash" }, "value": { "type": "Identifier", @@ -288145,9 +280101,7 @@ "start": 243209, "end": 243216 }, - "ctxt": 0, - "value": "noCache", - "optional": false + "value": "noCache" } } }, @@ -288240,9 +280194,7 @@ "start": 243298, "end": 243303 }, - "ctxt": 0, - "value": "rules", - "optional": false + "value": "rules" } }, "definite": false @@ -288471,9 +280423,7 @@ "start": 243467, "end": 243474 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -288491,9 +280441,7 @@ "start": 243495, "end": 243500 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" }, "value": { "type": "Identifier", @@ -288590,9 +280538,7 @@ "start": 243608, "end": 243619 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [ { @@ -288655,9 +280601,7 @@ "start": 243650, "end": 243653 }, - "ctxt": 0, - "value": "raw", - "optional": false + "value": "raw" } }, "right": { @@ -288704,9 +280648,7 @@ "start": 243684, "end": 243688 }, - "ctxt": 0, - "value": "tags", - "optional": false + "value": "tags" } }, "right": { @@ -288751,9 +280693,7 @@ "start": 243720, "end": 243730 }, - "ctxt": 0, - "value": "extensions", - "optional": false + "value": "extensions" } }, "right": { @@ -288798,9 +280738,7 @@ "start": 243762, "end": 243768 }, - "ctxt": 0, - "value": "errors", - "optional": false + "value": "errors" } }, "right": { @@ -288845,9 +280783,7 @@ "start": 243800, "end": 243815 }, - "ctxt": 0, - "value": "extensionCache_", - "optional": false + "value": "extensionCache_" } }, "right": { @@ -288892,9 +280828,7 @@ "start": 243847, "end": 243857 }, - "ctxt": 0, - "value": "initRules_", - "optional": false + "value": "initRules_" } }, "arguments": [ @@ -288932,9 +280866,7 @@ "start": 243895, "end": 243911 }, - "ctxt": 0, - "value": "getTagsForFormat", - "optional": false + "value": "getTagsForFormat" }, "function": { "params": [ @@ -289059,9 +280991,7 @@ "start": 243954, "end": 243965 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -289120,9 +281050,7 @@ "start": 244001, "end": 244005 }, - "ctxt": 0, - "value": "tags", - "optional": false + "value": "tags" } }, "property": { @@ -289131,9 +281059,7 @@ "start": 244006, "end": 244012 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -289214,9 +281140,7 @@ "start": 244021, "end": 244031 }, - "ctxt": 0, - "value": "htmlFormat", - "optional": false + "value": "htmlFormat" } }, "property": { @@ -289225,9 +281149,7 @@ "start": 244032, "end": 244040 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -289262,9 +281184,7 @@ "start": 244043, "end": 244054 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -289300,9 +281220,7 @@ "start": 244066, "end": 244084 }, - "ctxt": 0, - "value": "checkEntityFormat_", - "optional": false + "value": "checkEntityFormat_" } }, "arguments": [ @@ -289362,9 +281280,7 @@ "start": 244099, "end": 244122 }, - "ctxt": 0, - "value": "checkEntityTransformed_", - "optional": false + "value": "checkEntityTransformed_" } }, "arguments": [ @@ -289414,9 +281330,7 @@ "start": 244131, "end": 244134 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -289509,9 +281423,7 @@ "start": 244178, "end": 244184 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -289579,9 +281491,7 @@ "start": 244219, "end": 244224 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "right": { @@ -289619,9 +281529,7 @@ "start": 244229, "end": 244234 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "property": { @@ -289630,9 +281538,7 @@ "start": 244235, "end": 244241 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -289697,9 +281603,7 @@ "start": 244253, "end": 244271 }, - "ctxt": 0, - "value": "checkEntityFormat_", - "optional": false + "value": "checkEntityFormat_" } }, "arguments": [ @@ -289758,9 +281662,7 @@ "start": 244286, "end": 244309 }, - "ctxt": 0, - "value": "checkEntityTransformed_", - "optional": false + "value": "checkEntityTransformed_" } }, "arguments": [ @@ -289862,9 +281764,7 @@ "start": 244410, "end": 244422 }, - "ctxt": 0, - "value": "getExtension", - "optional": false + "value": "getExtension" }, "function": { "params": [ @@ -289974,9 +281874,7 @@ "start": 244457, "end": 244468 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -290037,9 +281935,7 @@ "start": 244498, "end": 244509 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -290177,9 +282073,7 @@ "start": 244588, "end": 244603 }, - "ctxt": 0, - "value": "extensionCache_", - "optional": false + "value": "extensionCache_" } }, "property": { @@ -290235,9 +282129,7 @@ "start": 244649, "end": 244672 }, - "ctxt": 0, - "value": "checkEntityTransformed_", - "optional": false + "value": "checkEntityTransformed_" }, "function": { "params": [ @@ -290347,9 +282239,7 @@ "start": 244716, "end": 244726 }, - "ctxt": 0, - "value": "isEnabled_", - "optional": false + "value": "isEnabled_" } }, "arguments": [ @@ -290438,9 +282328,7 @@ "start": 244781, "end": 244792 }, - "ctxt": 0, - "value": "isDisabled_", - "optional": false + "value": "isDisabled_" } }, "arguments": [ @@ -290664,9 +282552,7 @@ "start": 245007, "end": 245025 }, - "ctxt": 0, - "value": "checkEntityFormat_", - "optional": false + "value": "checkEntityFormat_" }, "function": { "params": [ @@ -290776,9 +282662,7 @@ "start": 245060, "end": 245071 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -290839,9 +282723,7 @@ "start": 245110, "end": 245120 }, - "ctxt": 0, - "value": "isEnabled_", - "optional": false + "value": "isEnabled_" } }, "arguments": [ @@ -290931,9 +282813,7 @@ "start": 245163, "end": 245174 }, - "ctxt": 0, - "value": "isDisabled_", - "optional": false + "value": "isDisabled_" } }, "arguments": [ @@ -291063,9 +282943,7 @@ "start": 245269, "end": 245279 }, - "ctxt": 0, - "value": "isEnabled_", - "optional": false + "value": "isEnabled_" }, "function": { "params": [ @@ -291157,9 +283035,7 @@ "start": 245315, "end": 245324 }, - "ctxt": 0, - "value": "enabledBy", - "optional": false + "value": "enabledBy" } } }, @@ -291230,9 +283106,7 @@ "start": 245415, "end": 245424 }, - "ctxt": 0, - "value": "enabledBy", - "optional": false + "value": "enabledBy" } }, "property": { @@ -291241,9 +283115,7 @@ "start": 245425, "end": 245433 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -291290,9 +283162,7 @@ "start": 245471, "end": 245482 }, - "ctxt": 0, - "value": "isDisabled_", - "optional": false + "value": "isDisabled_" }, "function": { "params": [ @@ -291384,9 +283254,7 @@ "start": 245518, "end": 245528 }, - "ctxt": 0, - "value": "disabledBy", - "optional": false + "value": "disabledBy" } } }, @@ -291457,9 +283325,7 @@ "start": 245619, "end": 245629 }, - "ctxt": 0, - "value": "disabledBy", - "optional": false + "value": "disabledBy" } }, "property": { @@ -291468,9 +283334,7 @@ "start": 245630, "end": 245638 }, - "ctxt": 0, - "value": "includes", - "optional": false + "value": "includes" } }, "arguments": [ @@ -291517,9 +283381,7 @@ "start": 245676, "end": 245686 }, - "ctxt": 0, - "value": "initRules_", - "optional": false + "value": "initRules_" }, "function": { "params": [ @@ -291589,9 +283451,7 @@ "start": 245717, "end": 245728 }, - "ctxt": 0, - "value": "initErrors_", - "optional": false + "value": "initErrors_" } }, "arguments": [ @@ -291644,9 +283504,7 @@ "start": 245758, "end": 245772 }, - "ctxt": 0, - "value": "initAttrLists_", - "optional": false + "value": "initAttrLists_" } }, "arguments": [ @@ -291699,9 +283557,7 @@ "start": 245802, "end": 245811 }, - "ctxt": 0, - "value": "initTags_", - "optional": false + "value": "initTags_" } }, "arguments": [ @@ -291754,9 +283610,7 @@ "start": 245841, "end": 245856 }, - "ctxt": 0, - "value": "initExtensions_", - "optional": false + "value": "initExtensions_" } }, "arguments": [ @@ -291803,9 +283657,7 @@ "start": 245894, "end": 245905 }, - "ctxt": 0, - "value": "initErrors_", - "optional": false + "value": "initErrors_" }, "function": { "params": [ @@ -291875,9 +283727,7 @@ "start": 245936, "end": 245942 }, - "ctxt": 0, - "value": "errors", - "optional": false + "value": "errors" } }, "right": { @@ -291951,9 +283801,7 @@ "start": 245987, "end": 245999 }, - "ctxt": 0, - "value": "errorFormats", - "optional": false + "value": "errorFormats" } }, "body": { @@ -292023,9 +283871,7 @@ "start": 246042, "end": 246048 }, - "ctxt": 0, - "value": "errors", - "optional": false + "value": "errors" } }, "property": { @@ -292056,9 +283902,7 @@ "start": 246051, "end": 246055 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } } } @@ -292111,9 +283955,7 @@ "start": 246090, "end": 246096 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } }, "right": { @@ -292138,9 +283980,7 @@ "start": 246101, "end": 246107 }, - "ctxt": 0, - "value": "format", - "optional": false + "value": "format" } } } @@ -292183,9 +284023,7 @@ "start": 246138, "end": 246144 }, - "ctxt": 0, - "value": "errors", - "optional": false + "value": "errors" } }, "property": { @@ -292216,9 +284054,7 @@ "start": 246147, "end": 246151 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } } } @@ -292299,9 +284135,7 @@ "start": 246217, "end": 246233 }, - "ctxt": 0, - "value": "errorSpecificity", - "optional": false + "value": "errorSpecificity" } }, "body": { @@ -292371,9 +284205,7 @@ "start": 246276, "end": 246282 }, - "ctxt": 0, - "value": "errors", - "optional": false + "value": "errors" } }, "property": { @@ -292404,9 +284236,7 @@ "start": 246285, "end": 246289 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } } } @@ -292459,9 +284289,7 @@ "start": 246324, "end": 246335 }, - "ctxt": 0, - "value": "specificity", - "optional": false + "value": "specificity" } }, "right": { @@ -292486,9 +284314,7 @@ "start": 246340, "end": 246351 }, - "ctxt": 0, - "value": "specificity", - "optional": false + "value": "specificity" } } } @@ -292531,9 +284357,7 @@ "start": 246382, "end": 246388 }, - "ctxt": 0, - "value": "errors", - "optional": false + "value": "errors" } }, "property": { @@ -292564,9 +284388,7 @@ "start": 246391, "end": 246395 }, - "ctxt": 0, - "value": "code", - "optional": false + "value": "code" } } } @@ -292612,9 +284434,7 @@ "start": 246457, "end": 246471 }, - "ctxt": 0, - "value": "initAttrLists_", - "optional": false + "value": "initAttrLists_" }, "function": { "params": [ @@ -292684,9 +284504,7 @@ "start": 246502, "end": 246512 }, - "ctxt": 0, - "value": "attrLists_", - "optional": false + "value": "attrLists_" } }, "right": { @@ -292731,9 +284549,7 @@ "start": 246544, "end": 246561 }, - "ctxt": 0, - "value": "specialAttrLists_", - "optional": false + "value": "specialAttrLists_" } }, "right": { @@ -292784,9 +284600,7 @@ "start": 246625, "end": 246629 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" }, "value": { "type": "Identifier", @@ -292808,9 +284622,7 @@ "start": 246658, "end": 246663 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" }, "value": { "type": "Identifier", @@ -292855,9 +284667,7 @@ "start": 246694, "end": 246703 }, - "ctxt": 0, - "value": "attrLists", - "optional": false + "value": "attrLists" } }, "body": { @@ -292903,9 +284713,7 @@ "start": 246737, "end": 246747 }, - "ctxt": 0, - "value": "startsWith", - "optional": false + "value": "startsWith" } }, "arguments": [ @@ -292970,9 +284778,7 @@ "start": 246789, "end": 246806 }, - "ctxt": 0, - "value": "specialAttrLists_", - "optional": false + "value": "specialAttrLists_" } }, "property": { @@ -293053,9 +284859,7 @@ "start": 246880, "end": 246890 }, - "ctxt": 0, - "value": "attrLists_", - "optional": false + "value": "attrLists_" } }, "property": { @@ -293138,9 +284942,7 @@ "start": 246971, "end": 246988 }, - "ctxt": 0, - "value": "specialAttrLists_", - "optional": false + "value": "specialAttrLists_" } }, "property": { @@ -293149,9 +284951,7 @@ "start": 246989, "end": 247006 }, - "ctxt": 0, - "value": "$AMP_LAYOUT_ATTRS", - "optional": false + "value": "$AMP_LAYOUT_ATTRS" } }, "property": { @@ -293160,9 +284960,7 @@ "start": 247007, "end": 247014 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -293223,9 +285021,7 @@ "start": 247023, "end": 247029 }, - "ctxt": 0, - "value": "layout", - "optional": false + "value": "layout" } }, "right": { @@ -293292,9 +285088,7 @@ "start": 247065, "end": 247082 }, - "ctxt": 0, - "value": "specialAttrLists_", - "optional": false + "value": "specialAttrLists_" } }, "property": { @@ -293303,9 +285097,7 @@ "start": 247083, "end": 247096 }, - "ctxt": 0, - "value": "$GLOBAL_ATTRS", - "optional": false + "value": "$GLOBAL_ATTRS" } }, "property": { @@ -293314,9 +285106,7 @@ "start": 247097, "end": 247104 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -293377,9 +285167,7 @@ "start": 247113, "end": 247119 }, - "ctxt": 0, - "value": "global", - "optional": false + "value": "global" } }, "right": { @@ -293428,9 +285216,7 @@ "start": 247163, "end": 247172 }, - "ctxt": 0, - "value": "initTags_", - "optional": false + "value": "initTags_" }, "function": { "params": [ @@ -293500,9 +285286,7 @@ "start": 247203, "end": 247207 }, - "ctxt": 0, - "value": "tags", - "optional": false + "value": "tags" } }, "right": { @@ -293553,9 +285337,7 @@ "start": 247212, "end": 247216 }, - "ctxt": 0, - "value": "tags", - "optional": false + "value": "tags" } }, "property": { @@ -293564,9 +285346,7 @@ "start": 247217, "end": 247223 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -293627,9 +285407,7 @@ "start": 247233, "end": 247246 }, - "ctxt": 0, - "value": "extensionSpec", - "optional": false + "value": "extensionSpec" } } }, @@ -293649,9 +285427,7 @@ "start": 247249, "end": 247252 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -293726,9 +285502,7 @@ "start": 247287, "end": 247292 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "right": { @@ -293760,9 +285534,7 @@ "start": 247297, "end": 247302 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "right": { @@ -293804,9 +285576,7 @@ "start": 247340, "end": 247349 }, - "ctxt": 0, - "value": "attrLists", - "optional": false + "value": "attrLists" } }, "consequent": { @@ -293878,9 +285648,7 @@ "start": 247399, "end": 247408 }, - "ctxt": 0, - "value": "attrLists", - "optional": false + "value": "attrLists" } }, "body": { @@ -293932,9 +285700,7 @@ "start": 247446, "end": 247451 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "property": { @@ -293943,9 +285709,7 @@ "start": 247452, "end": 247456 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -293979,9 +285743,7 @@ "start": 247465, "end": 247475 }, - "ctxt": 0, - "value": "attrLists_", - "optional": false + "value": "attrLists_" } }, "property": { @@ -294045,9 +285807,7 @@ "start": 247547, "end": 247556 }, - "ctxt": 0, - "value": "attrLists", - "optional": false + "value": "attrLists" } } } @@ -294084,9 +285844,7 @@ "start": 247613, "end": 247622 }, - "ctxt": 0, - "value": "ampLayout", - "optional": false + "value": "ampLayout" } }, "consequent": { @@ -294138,9 +285896,7 @@ "start": 247656, "end": 247661 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "property": { @@ -294149,9 +285905,7 @@ "start": 247662, "end": 247666 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -294185,9 +285939,7 @@ "start": 247675, "end": 247692 }, - "ctxt": 0, - "value": "specialAttrLists_", - "optional": false + "value": "specialAttrLists_" } }, "property": { @@ -294196,9 +285948,7 @@ "start": 247693, "end": 247710 }, - "ctxt": 0, - "value": "$AMP_LAYOUT_ATTRS", - "optional": false + "value": "$AMP_LAYOUT_ATTRS" } } } @@ -294251,9 +286001,7 @@ "start": 247764, "end": 247769 }, - "ctxt": 0, - "value": "attrs", - "optional": false + "value": "attrs" } }, "property": { @@ -294262,9 +286010,7 @@ "start": 247770, "end": 247774 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -294298,9 +286044,7 @@ "start": 247783, "end": 247800 }, - "ctxt": 0, - "value": "specialAttrLists_", - "optional": false + "value": "specialAttrLists_" } }, "property": { @@ -294309,9 +286053,7 @@ "start": 247801, "end": 247814 }, - "ctxt": 0, - "value": "$GLOBAL_ATTRS", - "optional": false + "value": "$GLOBAL_ATTRS" } } } @@ -294376,9 +286118,7 @@ "start": 247908, "end": 247923 }, - "ctxt": 0, - "value": "initExtensions_", - "optional": false + "value": "initExtensions_" }, "function": { "params": [ @@ -294448,9 +286188,7 @@ "start": 247954, "end": 247964 }, - "ctxt": 0, - "value": "extensions", - "optional": false + "value": "extensions" } }, "right": { @@ -294501,9 +286239,7 @@ "start": 247969, "end": 247973 }, - "ctxt": 0, - "value": "tags", - "optional": false + "value": "tags" } }, "property": { @@ -294512,9 +286248,7 @@ "start": 247974, "end": 247980 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ @@ -294568,9 +286302,7 @@ "start": 247989, "end": 248002 }, - "ctxt": 0, - "value": "extensionSpec", - "optional": false + "value": "extensionSpec" } }, "async": false, @@ -294589,9 +286321,7 @@ "start": 248005, "end": 248008 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -294652,9 +286382,7 @@ "start": 248022, "end": 248028 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "arguments": [ @@ -294693,9 +286421,7 @@ "start": 248035, "end": 248048 }, - "ctxt": 0, - "value": "extensionSpec", - "optional": false + "value": "extensionSpec" } } }, @@ -294716,9 +286442,7 @@ "start": 248076, "end": 248086 }, - "ctxt": 0, - "value": "htmlFormat", - "optional": false + "value": "htmlFormat" }, "value": { "type": "MemberExpression", @@ -294742,9 +286466,7 @@ "start": 248090, "end": 248100 }, - "ctxt": 0, - "value": "htmlFormat", - "optional": false + "value": "htmlFormat" } } } @@ -294824,9 +286546,7 @@ "start": 248168, "end": 248178 }, - "ctxt": 0, - "value": "extensions", - "optional": false + "value": "extensions" } }, "body": { @@ -294899,9 +286619,7 @@ "start": 248218, "end": 248222 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "property": { @@ -294910,9 +286628,7 @@ "start": 248223, "end": 248234 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -294983,9 +286699,7 @@ "start": 248278, "end": 248288 }, - "ctxt": 0, - "value": "htmlFormat", - "optional": false + "value": "htmlFormat" } }, "body": { @@ -295049,9 +286763,7 @@ "start": 248326, "end": 248337 }, - "ctxt": 0, - "value": "toLowerCase", - "optional": false + "value": "toLowerCase" } }, "arguments": [], @@ -295189,9 +286901,7 @@ "start": 248425, "end": 248440 }, - "ctxt": 0, - "value": "extensionCache_", - "optional": false + "value": "extensionCache_" } }, "property": { @@ -295286,9 +286996,7 @@ "start": 248542, "end": 248549 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -295631,9 +287339,7 @@ "start": 248816, "end": 248820 }, - "ctxt": 0, - "value": "json", - "optional": false + "value": "json" } }, "arguments": [], @@ -295683,9 +287389,7 @@ "start": 248892, "end": 248895 }, - "ctxt": 0, - "value": "url", - "optional": false + "value": "url" }, "value": { "type": "Identifier", @@ -295856,9 +287560,7 @@ "start": 249009, "end": 249016 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -296062,9 +287764,7 @@ "start": 249120, "end": 249127 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "right": { @@ -296200,9 +287900,7 @@ "start": 249204, "end": 249208 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" } }, "arguments": [ @@ -296322,9 +288020,7 @@ "start": 249295, "end": 249299 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -296414,9 +288110,7 @@ "start": 249341, "end": 249348 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -296485,9 +288179,7 @@ "start": 249376, "end": 249381 }, - "ctxt": 0, - "value": "fetch", - "optional": false + "value": "fetch" } }, "right": { @@ -296537,9 +288229,7 @@ "start": 249405, "end": 249412 }, - "ctxt": 0, - "value": "Headers", - "optional": false + "value": "Headers" } }, "right": { @@ -296564,9 +288254,7 @@ "start": 249417, "end": 249424 }, - "ctxt": 0, - "value": "Headers", - "optional": false + "value": "Headers" } } } @@ -296606,9 +288294,7 @@ "start": 249440, "end": 249447 }, - "ctxt": 0, - "value": "Request", - "optional": false + "value": "Request" } }, "right": { @@ -296633,9 +288319,7 @@ "start": 249452, "end": 249459 }, - "ctxt": 0, - "value": "Request", - "optional": false + "value": "Request" } } } @@ -296675,9 +288359,7 @@ "start": 249475, "end": 249483 }, - "ctxt": 0, - "value": "Response", - "optional": false + "value": "Response" } }, "right": { @@ -296702,9 +288384,7 @@ "start": 249488, "end": 249496 }, - "ctxt": 0, - "value": "Response", - "optional": false + "value": "Response" } } } @@ -296876,9 +288556,7 @@ "start": 249613, "end": 249627 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -296924,9 +288602,7 @@ "start": 249663, "end": 249668 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -296979,9 +288655,7 @@ "start": 249705, "end": 249719 }, - "ctxt": 0, - "value": "attributeNames", - "optional": false + "value": "attributeNames" } }, "right": { @@ -297013,9 +288687,7 @@ "start": 249724, "end": 249736 }, - "ctxt": 0, - "value": "elementNames", - "optional": false + "value": "elementNames" } }, "right": { @@ -297073,9 +288745,7 @@ "start": 249761, "end": 249773 }, - "ctxt": 0, - "value": "elementNames", - "optional": false + "value": "elementNames" } }, "right": { @@ -298480,9 +290150,7 @@ "start": 251609, "end": 251623 }, - "ctxt": 0, - "value": "attributeNames", - "optional": false + "value": "attributeNames" } }, "right": { @@ -300822,9 +292490,7 @@ "start": 254687, "end": 254695 }, - "ctxt": 0, - "value": "__assign", - "optional": false + "value": "__assign" } } }, @@ -300899,9 +292565,7 @@ "start": 254740, "end": 254746 }, - "ctxt": 0, - "value": "assign", - "optional": false + "value": "assign" } }, "right": { @@ -301045,9 +292709,7 @@ "start": 254818, "end": 254824 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "definite": false @@ -301264,9 +292926,7 @@ "start": 254962, "end": 254971 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -301275,9 +292935,7 @@ "start": 254972, "end": 254986 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -301286,9 +292944,7 @@ "start": 254987, "end": 254991 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -301472,9 +293128,7 @@ "start": 255106, "end": 255111 }, - "ctxt": 0, - "value": "apply", - "optional": false + "value": "apply" } }, "arguments": [ @@ -301584,9 +293238,7 @@ "start": 255177, "end": 255192 }, - "ctxt": 0, - "value": "__createBinding", - "optional": false + "value": "__createBinding" } } }, @@ -301624,9 +293276,7 @@ "start": 255204, "end": 255210 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -301831,9 +293481,7 @@ "start": 255304, "end": 255318 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -301880,9 +293528,7 @@ "start": 255347, "end": 255357 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -301901,9 +293547,7 @@ "start": 255385, "end": 255388 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" }, "value": { "type": "FunctionExpression", @@ -302317,9 +293961,7 @@ "start": 255642, "end": 255660 }, - "ctxt": 0, - "value": "__setModuleDefault", - "optional": false + "value": "__setModuleDefault" } } }, @@ -302357,9 +293999,7 @@ "start": 255672, "end": 255678 }, - "ctxt": 0, - "value": "create", - "optional": false + "value": "create" } }, "consequent": { @@ -302454,9 +294094,7 @@ "start": 255722, "end": 255736 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -302502,9 +294140,7 @@ "start": 255773, "end": 255783 }, - "ctxt": 0, - "value": "enumerable", - "optional": false + "value": "enumerable" }, "value": { "type": "BooleanLiteral", @@ -302523,9 +294159,7 @@ "start": 255811, "end": 255816 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "Identifier", @@ -302748,9 +294382,7 @@ "start": 255955, "end": 255967 }, - "ctxt": 0, - "value": "__importStar", - "optional": false + "value": "__importStar" } } }, @@ -302837,9 +294469,7 @@ "start": 256013, "end": 256023 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -303061,9 +294691,7 @@ "start": 256185, "end": 256194 }, - "ctxt": 0, - "value": "prototype", - "optional": false + "value": "prototype" } }, "property": { @@ -303072,9 +294700,7 @@ "start": 256195, "end": 256209 }, - "ctxt": 0, - "value": "hasOwnProperty", - "optional": false + "value": "hasOwnProperty" } }, "property": { @@ -303083,9 +294709,7 @@ "start": 256210, "end": 256214 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -303309,9 +294933,7 @@ "start": 256318, "end": 256332 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -303357,9 +294979,7 @@ "start": 256368, "end": 256373 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -303915,9 +295535,7 @@ "start": 256710, "end": 256714 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -303943,9 +295561,7 @@ "start": 256718, "end": 256721 }, - "ctxt": 0, - "value": "map", - "optional": false + "value": "map" } }, "arguments": [ @@ -304257,9 +295873,7 @@ "start": 256868, "end": 256875 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -304383,9 +295997,7 @@ "start": 256928, "end": 256942 }, - "ctxt": 0, - "value": "attributeNames", - "optional": false + "value": "attributeNames" } }, "property": { @@ -304394,9 +296006,7 @@ "start": 256943, "end": 256946 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -304538,9 +296148,7 @@ "start": 257033, "end": 257043 }, - "ctxt": 0, - "value": "emptyAttrs", - "optional": false + "value": "emptyAttrs" } } }, @@ -304573,9 +296181,7 @@ "start": 257050, "end": 257057 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } } @@ -304718,9 +296324,7 @@ "start": 257169, "end": 257183 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } }, "consequent": { @@ -304752,9 +296356,7 @@ "start": 257188, "end": 257197 }, - "ctxt": 0, - "value": "encodeXML", - "optional": false + "value": "encodeXML" } }, "arguments": [ @@ -304803,9 +296405,7 @@ "start": 257205, "end": 257212 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -304868,9 +296468,7 @@ "start": 257256, "end": 257260 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -305412,9 +297010,7 @@ "start": 257623, "end": 257630 }, - "ctxt": 0, - "value": "isArray", - "optional": false + "value": "isArray" } }, "arguments": [ @@ -305456,9 +297052,7 @@ "start": 257639, "end": 257646 }, - "ctxt": 0, - "value": "cheerio", - "optional": false + "value": "cheerio" } } }, @@ -305624,9 +297218,7 @@ "start": 257724, "end": 257730 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -305934,9 +297526,7 @@ "start": 257943, "end": 257947 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "cases": [ @@ -306004,9 +297594,7 @@ "start": 258024, "end": 258032 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } }, @@ -306057,9 +297645,7 @@ "start": 258065, "end": 258074 }, - "ctxt": 0, - "value": "Directive", - "optional": false + "value": "Directive" } }, "consequent": [ @@ -306134,9 +297720,7 @@ "start": 258154, "end": 258161 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } }, "consequent": [ @@ -306211,9 +297795,7 @@ "start": 258239, "end": 258244 }, - "ctxt": 0, - "value": "CDATA", - "optional": false + "value": "CDATA" } }, "consequent": [ @@ -306309,9 +297891,7 @@ "start": 258355, "end": 258360 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "arguments": [ @@ -306832,9 +298412,7 @@ "start": 258680, "end": 258687 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -306890,9 +298468,7 @@ "start": 258727, "end": 258731 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } }, "right": { @@ -306974,9 +298550,7 @@ "start": 258741, "end": 258753 }, - "ctxt": 0, - "value": "elementNames", - "optional": false + "value": "elementNames" } }, "property": { @@ -306985,9 +298559,7 @@ "start": 258754, "end": 258757 }, - "ctxt": 0, - "value": "get", - "optional": false + "value": "get" } }, "arguments": [ @@ -307015,9 +298587,7 @@ "start": 258760, "end": 258764 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -307102,9 +298672,7 @@ "start": 258800, "end": 258804 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -307145,9 +298713,7 @@ "start": 258832, "end": 258838 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -307179,9 +298745,7 @@ "start": 258844, "end": 258847 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -307215,9 +298779,7 @@ "start": 258850, "end": 258856 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "property": { @@ -307226,9 +298788,7 @@ "start": 258857, "end": 258861 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -307351,9 +298911,7 @@ "start": 258936, "end": 258943 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" }, "value": { "type": "BooleanLiteral", @@ -307422,9 +298980,7 @@ "start": 259041, "end": 259048 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -307457,9 +299013,7 @@ "start": 259054, "end": 259057 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -307487,9 +299041,7 @@ "start": 259060, "end": 259064 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -307612,9 +299164,7 @@ "start": 259131, "end": 259138 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" }, "value": { "type": "StringLiteral", @@ -307703,9 +299253,7 @@ "start": 259223, "end": 259227 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -307782,9 +299330,7 @@ "start": 259272, "end": 259279 }, - "ctxt": 0, - "value": "attribs", - "optional": false + "value": "attribs" } } }, @@ -307937,9 +299483,7 @@ "start": 259383, "end": 259391 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -307948,9 +299492,7 @@ "start": 259392, "end": 259398 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -307997,9 +299539,7 @@ "start": 259411, "end": 259418 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "consequent": { @@ -308031,9 +299571,7 @@ "start": 259423, "end": 259438 }, - "ctxt": 0, - "value": "selfClosingTags", - "optional": false + "value": "selfClosingTags" } }, "right": { @@ -308074,9 +299612,7 @@ "start": 259453, "end": 259468 }, - "ctxt": 0, - "value": "selfClosingTags", - "optional": false + "value": "selfClosingTags" } }, "right": { @@ -308108,9 +299644,7 @@ "start": 259474, "end": 259477 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -308138,9 +299672,7 @@ "start": 259480, "end": 259484 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -308194,9 +299726,7 @@ "start": 259517, "end": 259524 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } } }, @@ -308358,9 +299888,7 @@ "start": 259647, "end": 259655 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -308369,9 +299897,7 @@ "start": 259656, "end": 259662 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -308458,9 +299984,7 @@ "start": 259708, "end": 259716 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } } }, @@ -308521,9 +300045,7 @@ "start": 259769, "end": 259776 }, - "ctxt": 0, - "value": "xmlMode", - "optional": false + "value": "xmlMode" } }, "right": { @@ -308562,9 +300084,7 @@ "start": 259783, "end": 259786 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -308592,9 +300112,7 @@ "start": 259789, "end": 259793 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -308680,9 +300198,7 @@ "start": 259836, "end": 259840 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } }, @@ -308828,9 +300344,7 @@ "start": 260000, "end": 260004 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -308975,9 +300489,7 @@ "start": 260092, "end": 260096 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } }, "right": { @@ -309029,9 +300541,7 @@ "start": 260126, "end": 260140 }, - "ctxt": 0, - "value": "decodeEntities", - "optional": false + "value": "decodeEntities" } }, "right": { @@ -309076,9 +300586,7 @@ "start": 260148, "end": 260154 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "right": { @@ -309110,9 +300618,7 @@ "start": 260160, "end": 260163 }, - "ctxt": 0, - "value": "has", - "optional": false + "value": "has" } }, "arguments": [ @@ -309146,9 +300652,7 @@ "start": 260166, "end": 260172 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" } }, "property": { @@ -309157,9 +300661,7 @@ "start": 260173, "end": 260177 }, - "ctxt": 0, - "value": "name", - "optional": false + "value": "name" } } } @@ -309231,9 +300733,7 @@ "start": 260209, "end": 260218 }, - "ctxt": 0, - "value": "encodeXML", - "optional": false + "value": "encodeXML" } }, "arguments": [ @@ -309394,9 +300894,7 @@ "start": 260357, "end": 260365 }, - "ctxt": 0, - "value": "children", - "optional": false + "value": "children" } }, "property": { @@ -309422,9 +300920,7 @@ "start": 260369, "end": 260373 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -309545,9 +301041,7 @@ "start": 260474, "end": 260478 }, - "ctxt": 0, - "value": "data", - "optional": false + "value": "data" } } }, @@ -309678,9 +301172,7 @@ "start": 260586, "end": 260600 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -309726,9 +301218,7 @@ "start": 260636, "end": 260641 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -309843,9 +301333,7 @@ "start": 260722, "end": 260726 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -309887,9 +301375,7 @@ "start": 260742, "end": 260746 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -309932,9 +301418,7 @@ "start": 260765, "end": 260769 }, - "ctxt": 0, - "value": "type", - "optional": false + "value": "type" } }, "right": { @@ -309991,9 +301475,7 @@ "start": 260810, "end": 260815 }, - "ctxt": 0, - "value": "isTag", - "optional": false + "value": "isTag" } }, "right": { @@ -310043,9 +301525,7 @@ "start": 260839, "end": 260843 }, - "ctxt": 0, - "value": "Text", - "optional": false + "value": "Text" } }, "right": { @@ -310094,9 +301574,7 @@ "start": 260868, "end": 260877 }, - "ctxt": 0, - "value": "Directive", - "optional": false + "value": "Directive" } }, "right": { @@ -310145,9 +301623,7 @@ "start": 260907, "end": 260914 }, - "ctxt": 0, - "value": "Comment", - "optional": false + "value": "Comment" } }, "right": { @@ -310196,9 +301672,7 @@ "start": 260942, "end": 260948 }, - "ctxt": 0, - "value": "Script", - "optional": false + "value": "Script" } }, "right": { @@ -310247,9 +301721,7 @@ "start": 260975, "end": 260980 }, - "ctxt": 0, - "value": "Style", - "optional": false + "value": "Style" } }, "right": { @@ -310298,9 +301770,7 @@ "start": 261006, "end": 261009 }, - "ctxt": 0, - "value": "Tag", - "optional": false + "value": "Tag" } }, "right": { @@ -310349,9 +301819,7 @@ "start": 261033, "end": 261038 }, - "ctxt": 0, - "value": "CDATA", - "optional": false + "value": "CDATA" } }, "right": { @@ -310400,9 +301868,7 @@ "start": 261064, "end": 261071 }, - "ctxt": 0, - "value": "Doctype", - "optional": false + "value": "Doctype" } }, "right": { @@ -310594,9 +302060,7 @@ "start": 261189, "end": 261204 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -310689,9 +302153,7 @@ "start": 261253, "end": 261263 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -310720,9 +302182,7 @@ "start": 261292, "end": 261299 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -310786,9 +302246,7 @@ "start": 261355, "end": 261369 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -310834,9 +302292,7 @@ "start": 261405, "end": 261410 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -311241,9 +302697,7 @@ "start": 261575, "end": 261584 }, - "ctxt": 0, - "value": "decodeXML", - "optional": false + "value": "decodeXML" } }, "right": { @@ -311288,9 +302742,7 @@ "start": 261606, "end": 261613 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -311334,9 +302786,7 @@ "start": 261630, "end": 261646 }, - "ctxt": 0, - "value": "decodeHTMLStrict", - "optional": false + "value": "decodeHTMLStrict" } }, "right": { @@ -311381,9 +302831,7 @@ "start": 261668, "end": 261675 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -311509,9 +302957,7 @@ "start": 261753, "end": 261757 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -311537,9 +302983,7 @@ "start": 261761, "end": 261765 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -311876,9 +303320,7 @@ "start": 261996, "end": 262003 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -312125,9 +303567,7 @@ "start": 262152, "end": 262162 }, - "ctxt": 0, - "value": "decodeHTML", - "optional": false + "value": "decodeHTML" } }, "right": { @@ -312224,9 +303664,7 @@ "start": 262210, "end": 262214 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -312254,9 +303692,7 @@ "start": 262217, "end": 262224 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -312269,9 +303705,7 @@ "start": 262226, "end": 262230 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "arguments": [ @@ -312364,9 +303798,7 @@ "start": 262271, "end": 262275 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -312394,9 +303826,7 @@ "start": 262278, "end": 262285 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -312409,9 +303839,7 @@ "start": 262287, "end": 262291 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "arguments": [ @@ -312548,9 +303976,7 @@ "start": 262346, "end": 262352 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } } }, @@ -312928,9 +304354,7 @@ "start": 262619, "end": 262623 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -313049,9 +304473,7 @@ "start": 262708, "end": 262715 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -313152,9 +304574,7 @@ "start": 262784, "end": 262790 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -313379,9 +304799,7 @@ "start": 262939, "end": 262946 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -313578,9 +304996,7 @@ "start": 263105, "end": 263111 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -313666,9 +305082,7 @@ "start": 263156, "end": 263162 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -313733,9 +305147,7 @@ "start": 263179, "end": 263185 }, - "ctxt": 0, - "value": "charAt", - "optional": false + "value": "charAt" } }, "arguments": [ @@ -313808,9 +305220,7 @@ "start": 263237, "end": 263244 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "arguments": [ @@ -313865,9 +305275,7 @@ "start": 263256, "end": 263262 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -313946,9 +305354,7 @@ "start": 263331, "end": 263338 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "arguments": [ @@ -314003,9 +305409,7 @@ "start": 263350, "end": 263356 }, - "ctxt": 0, - "value": "substr", - "optional": false + "value": "substr" } }, "arguments": [ @@ -314106,9 +305510,7 @@ "start": 263419, "end": 263424 }, - "ctxt": 0, - "value": "slice", - "optional": false + "value": "slice" } }, "arguments": [ @@ -314343,9 +305745,7 @@ "start": 263570, "end": 263585 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -314438,9 +305838,7 @@ "start": 263634, "end": 263644 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -314469,9 +305867,7 @@ "start": 263673, "end": 263680 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -314535,9 +305931,7 @@ "start": 263736, "end": 263750 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -314583,9 +305977,7 @@ "start": 263786, "end": 263791 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -314915,9 +306307,7 @@ "start": 264030, "end": 264037 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } }, @@ -314981,9 +306371,7 @@ "start": 264067, "end": 264074 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "property": { @@ -315179,9 +306567,7 @@ "start": 264221, "end": 264233 }, - "ctxt": 0, - "value": "fromCharCode", - "optional": false + "value": "fromCharCode" } }, "arguments": [ @@ -315381,9 +306767,7 @@ "start": 264347, "end": 264359 }, - "ctxt": 0, - "value": "fromCharCode", - "optional": false + "value": "fromCharCode" } }, "arguments": [ @@ -315665,9 +307049,7 @@ "start": 264551, "end": 264566 }, - "ctxt": 0, - "value": "__importDefault", - "optional": false + "value": "__importDefault" } } }, @@ -315760,9 +307142,7 @@ "start": 264615, "end": 264625 }, - "ctxt": 0, - "value": "__esModule", - "optional": false + "value": "__esModule" } } }, @@ -315791,9 +307171,7 @@ "start": 264654, "end": 264661 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" }, "value": { "type": "Identifier", @@ -315857,9 +307235,7 @@ "start": 264717, "end": 264731 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -315905,9 +307281,7 @@ "start": 264767, "end": 264772 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -316082,9 +307456,7 @@ "start": 264863, "end": 264870 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -316195,9 +307567,7 @@ "start": 264930, "end": 264939 }, - "ctxt": 0, - "value": "encodeXML", - "optional": false + "value": "encodeXML" } }, "right": { @@ -316406,9 +307776,7 @@ "start": 265028, "end": 265035 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } } } @@ -316519,9 +307887,7 @@ "start": 265095, "end": 265105 }, - "ctxt": 0, - "value": "encodeHTML", - "optional": false + "value": "encodeHTML" } }, "right": { @@ -316682,9 +308048,7 @@ "start": 265197, "end": 265201 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -316710,9 +308074,7 @@ "start": 265205, "end": 265209 }, - "ctxt": 0, - "value": "sort", - "optional": false + "value": "sort" } }, "arguments": [], @@ -316724,9 +308086,7 @@ "start": 265212, "end": 265218 }, - "ctxt": 0, - "value": "reduce", - "optional": false + "value": "reduce" } }, "arguments": [ @@ -317134,9 +308494,7 @@ "start": 265475, "end": 265479 }, - "ctxt": 0, - "value": "keys", - "optional": false + "value": "keys" } }, "arguments": [ @@ -317162,9 +308520,7 @@ "start": 265483, "end": 265490 }, - "ctxt": 0, - "value": "forEach", - "optional": false + "value": "forEach" } }, "arguments": [ @@ -317255,9 +308611,7 @@ "start": 265536, "end": 265542 }, - "ctxt": 0, - "value": "length", - "optional": false + "value": "length" } }, "right": { @@ -317299,9 +308653,7 @@ "start": 265553, "end": 265557 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -317367,9 +308719,7 @@ "start": 265572, "end": 265576 }, - "ctxt": 0, - "value": "push", - "optional": false + "value": "push" } }, "arguments": [ @@ -317439,9 +308789,7 @@ "start": 265619, "end": 265626 }, - "ctxt": 0, - "value": "unshift", - "optional": false + "value": "unshift" } }, "arguments": [ @@ -317499,9 +308847,7 @@ "start": 265635, "end": 265639 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -317591,9 +308937,7 @@ "start": 265688, "end": 265692 }, - "ctxt": 0, - "value": "join", - "optional": false + "value": "join" } }, "arguments": [ @@ -317848,9 +309192,7 @@ "start": 265887, "end": 265897 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -317875,9 +309217,7 @@ "start": 265901, "end": 265909 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [ @@ -317902,9 +309242,7 @@ "start": 265914, "end": 265925 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -318052,9 +309390,7 @@ "start": 266019, "end": 266029 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -318133,9 +309469,7 @@ "start": 266060, "end": 266070 }, - "ctxt": 0, - "value": "charCodeAt", - "optional": false + "value": "charCodeAt" } }, "arguments": [ @@ -318363,9 +309697,7 @@ "start": 266172, "end": 266180 }, - "ctxt": 0, - "value": "toString", - "optional": false + "value": "toString" } }, "arguments": [ @@ -318390,9 +309722,7 @@ "start": 266185, "end": 266196 }, - "ctxt": 0, - "value": "toUpperCase", - "optional": false + "value": "toUpperCase" } }, "arguments": [], @@ -318589,9 +309919,7 @@ "start": 266327, "end": 266334 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -318713,9 +310041,7 @@ "start": 266414, "end": 266421 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -318754,9 +310080,7 @@ "start": 266441, "end": 266448 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -318979,9 +310303,7 @@ "start": 266606, "end": 266613 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -319020,9 +310342,7 @@ "start": 266637, "end": 266644 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -319061,9 +310381,7 @@ "start": 266664, "end": 266671 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -319139,9 +310457,7 @@ "start": 266723, "end": 266729 }, - "ctxt": 0, - "value": "escape", - "optional": false + "value": "escape" } }, "right": { @@ -319276,9 +310592,7 @@ "start": 266824, "end": 266838 }, - "ctxt": 0, - "value": "defineProperty", - "optional": false + "value": "defineProperty" } }, "arguments": [ @@ -319324,9 +310638,7 @@ "start": 266874, "end": 266879 }, - "ctxt": 0, - "value": "value", - "optional": false + "value": "value" }, "value": { "type": "BooleanLiteral", @@ -319639,9 +310951,7 @@ "start": 267038, "end": 267047 }, - "ctxt": 0, - "value": "decodeXML", - "optional": false + "value": "decodeXML" } }, "alternate": { @@ -319666,9 +310976,7 @@ "start": 267052, "end": 267062 }, - "ctxt": 0, - "value": "decodeHTML", - "optional": false + "value": "decodeHTML" } } } @@ -319733,9 +311041,7 @@ "start": 267095, "end": 267101 }, - "ctxt": 0, - "value": "decode", - "optional": false + "value": "decode" } }, "right": { @@ -319917,9 +311223,7 @@ "start": 267196, "end": 267205 }, - "ctxt": 0, - "value": "decodeXML", - "optional": false + "value": "decodeXML" } }, "alternate": { @@ -319944,9 +311248,7 @@ "start": 267210, "end": 267226 }, - "ctxt": 0, - "value": "decodeHTMLStrict", - "optional": false + "value": "decodeHTMLStrict" } } } @@ -320011,9 +311313,7 @@ "start": 267259, "end": 267271 }, - "ctxt": 0, - "value": "decodeStrict", - "optional": false + "value": "decodeStrict" } }, "right": { @@ -320195,9 +311495,7 @@ "start": 267366, "end": 267375 }, - "ctxt": 0, - "value": "encodeXML", - "optional": false + "value": "encodeXML" } }, "alternate": { @@ -320222,9 +311520,7 @@ "start": 267380, "end": 267390 }, - "ctxt": 0, - "value": "encodeHTML", - "optional": false + "value": "encodeHTML" } } } @@ -320289,9 +311585,7 @@ "start": 267423, "end": 267429 }, - "ctxt": 0, - "value": "encode", - "optional": false + "value": "encode" } }, "right": { @@ -320405,9 +311699,7 @@ "start": 267483, "end": 267492 }, - "ctxt": 0, - "value": "encodeXML", - "optional": false + "value": "encodeXML" } }, "right": { @@ -320432,9 +311724,7 @@ "start": 267497, "end": 267506 }, - "ctxt": 0, - "value": "encodeXML", - "optional": false + "value": "encodeXML" } } } @@ -320474,9 +311764,7 @@ "start": 267522, "end": 267532 }, - "ctxt": 0, - "value": "encodeHTML", - "optional": false + "value": "encodeHTML" } }, "right": { @@ -320501,9 +311789,7 @@ "start": 267537, "end": 267547 }, - "ctxt": 0, - "value": "encodeHTML", - "optional": false + "value": "encodeHTML" } } } @@ -320543,9 +311829,7 @@ "start": 267563, "end": 267569 }, - "ctxt": 0, - "value": "escape", - "optional": false + "value": "escape" } }, "right": { @@ -320570,9 +311854,7 @@ "start": 267574, "end": 267580 }, - "ctxt": 0, - "value": "escape", - "optional": false + "value": "escape" } } } @@ -320612,9 +311894,7 @@ "start": 267596, "end": 267607 }, - "ctxt": 0, - "value": "encodeHTML4", - "optional": false + "value": "encodeHTML4" } }, "right": { @@ -320639,9 +311919,7 @@ "start": 267612, "end": 267622 }, - "ctxt": 0, - "value": "encodeHTML", - "optional": false + "value": "encodeHTML" } } } @@ -320681,9 +311959,7 @@ "start": 267638, "end": 267649 }, - "ctxt": 0, - "value": "encodeHTML5", - "optional": false + "value": "encodeHTML5" } }, "right": { @@ -320708,9 +311984,7 @@ "start": 267654, "end": 267664 }, - "ctxt": 0, - "value": "encodeHTML", - "optional": false + "value": "encodeHTML" } } } @@ -320814,9 +312088,7 @@ "start": 267709, "end": 267718 }, - "ctxt": 0, - "value": "decodeXML", - "optional": false + "value": "decodeXML" } }, "right": { @@ -320841,9 +312113,7 @@ "start": 267723, "end": 267732 }, - "ctxt": 0, - "value": "decodeXML", - "optional": false + "value": "decodeXML" } } } @@ -320883,9 +312153,7 @@ "start": 267748, "end": 267758 }, - "ctxt": 0, - "value": "decodeHTML", - "optional": false + "value": "decodeHTML" } }, "right": { @@ -320910,9 +312178,7 @@ "start": 267763, "end": 267773 }, - "ctxt": 0, - "value": "decodeHTML", - "optional": false + "value": "decodeHTML" } } } @@ -320952,9 +312218,7 @@ "start": 267789, "end": 267805 }, - "ctxt": 0, - "value": "decodeHTMLStrict", - "optional": false + "value": "decodeHTMLStrict" } }, "right": { @@ -320979,9 +312243,7 @@ "start": 267810, "end": 267826 }, - "ctxt": 0, - "value": "decodeHTMLStrict", - "optional": false + "value": "decodeHTMLStrict" } } } @@ -321021,9 +312283,7 @@ "start": 267842, "end": 267853 }, - "ctxt": 0, - "value": "decodeHTML4", - "optional": false + "value": "decodeHTML4" } }, "right": { @@ -321048,9 +312308,7 @@ "start": 267858, "end": 267868 }, - "ctxt": 0, - "value": "decodeHTML", - "optional": false + "value": "decodeHTML" } } } @@ -321090,9 +312348,7 @@ "start": 267884, "end": 267895 }, - "ctxt": 0, - "value": "decodeHTML5", - "optional": false + "value": "decodeHTML5" } }, "right": { @@ -321117,9 +312373,7 @@ "start": 267900, "end": 267910 }, - "ctxt": 0, - "value": "decodeHTML", - "optional": false + "value": "decodeHTML" } } } @@ -321159,9 +312413,7 @@ "start": 267926, "end": 267943 }, - "ctxt": 0, - "value": "decodeHTML4Strict", - "optional": false + "value": "decodeHTML4Strict" } }, "right": { @@ -321186,9 +312438,7 @@ "start": 267948, "end": 267964 }, - "ctxt": 0, - "value": "decodeHTMLStrict", - "optional": false + "value": "decodeHTMLStrict" } } } @@ -321228,9 +312478,7 @@ "start": 267980, "end": 267997 }, - "ctxt": 0, - "value": "decodeHTML5Strict", - "optional": false + "value": "decodeHTML5Strict" } }, "right": { @@ -321255,9 +312503,7 @@ "start": 268002, "end": 268018 }, - "ctxt": 0, - "value": "decodeHTMLStrict", - "optional": false + "value": "decodeHTMLStrict" } } } @@ -321297,9 +312543,7 @@ "start": 268034, "end": 268049 }, - "ctxt": 0, - "value": "decodeXMLStrict", - "optional": false + "value": "decodeXMLStrict" } }, "right": { @@ -321324,9 +312568,7 @@ "start": 268054, "end": 268063 }, - "ctxt": 0, - "value": "decodeXML", - "optional": false + "value": "decodeXML" } } } @@ -321550,9 +312792,7 @@ "start": 268230, "end": 268237 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -321629,9 +312869,7 @@ "start": 268259, "end": 268266 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -321728,9 +312966,7 @@ "start": 268335, "end": 268342 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -321873,9 +313109,7 @@ "start": 268425, "end": 268432 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322034,9 +313268,7 @@ "start": 268543, "end": 268550 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322172,9 +313404,7 @@ "start": 268643, "end": 268650 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322310,9 +313540,7 @@ "start": 268739, "end": 268746 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322448,9 +313676,7 @@ "start": 268866, "end": 268873 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322586,9 +313812,7 @@ "start": 268988, "end": 268995 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322724,9 +313948,7 @@ "start": 269111, "end": 269118 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -322862,9 +314084,7 @@ "start": 269243, "end": 269250 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323000,9 +314220,7 @@ "start": 269362, "end": 269369 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323138,9 +314356,7 @@ "start": 269459, "end": 269466 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323276,9 +314492,7 @@ "start": 269560, "end": 269567 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323414,9 +314628,7 @@ "start": 269657, "end": 269664 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323448,9 +314660,7 @@ "start": 269672, "end": 269677 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -323569,9 +314779,7 @@ "start": 270052, "end": 270059 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323603,9 +314811,7 @@ "start": 270067, "end": 270072 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -323724,9 +314930,7 @@ "start": 303088, "end": 303095 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323758,9 +314962,7 @@ "start": 303103, "end": 303108 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -323879,9 +315081,7 @@ "start": 304540, "end": 304547 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { @@ -323913,9 +315113,7 @@ "start": 304555, "end": 304560 }, - "ctxt": 0, - "value": "parse", - "optional": false + "value": "parse" } }, "arguments": [ @@ -324172,9 +315370,7 @@ "start": 304811, "end": 304818 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } } @@ -324265,9 +315461,7 @@ "start": 304889, "end": 304896 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" }, "value": { "type": "ObjectExpression", @@ -324397,9 +315591,7 @@ "start": 304983, "end": 304987 }, - "ctxt": 0, - "value": "call", - "optional": false + "value": "call" } }, "arguments": [ @@ -324427,9 +315619,7 @@ "start": 304990, "end": 304997 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -324470,9 +315660,7 @@ "start": 305004, "end": 305011 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } }, @@ -324636,9 +315824,7 @@ "start": 305158, "end": 305165 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } } } @@ -324725,9 +315911,7 @@ "start": 305244, "end": 305246 }, - "ctxt": 0, - "value": "ab", - "optional": false + "value": "ab" } }, "right": { @@ -324860,9 +316044,7 @@ "start": 305334, "end": 305341 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/object/getter-prop/input.ts.json b/crates/swc_ecma_parser/tests/typescript/object/getter-prop/input.ts.json index 800f5c99bc78..cc440aa460be 100644 --- a/crates/swc_ecma_parser/tests/typescript/object/getter-prop/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/object/getter-prop/input.ts.json @@ -51,9 +51,7 @@ "start": 23, "end": 28 }, - "ctxt": 0, - "value": "prop1", - "optional": false + "value": "prop1" }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -109,9 +107,7 @@ "start": 75, "end": 80 }, - "ctxt": 0, - "value": "prop2", - "optional": false + "value": "prop2" }, "typeAnnotation": null, "body": { diff --git a/crates/swc_ecma_parser/tests/typescript/object/method-async-generator/input.ts.json b/crates/swc_ecma_parser/tests/typescript/object/method-async-generator/input.ts.json index cba5ea565f80..bb29c9587d6e 100644 --- a/crates/swc_ecma_parser/tests/typescript/object/method-async-generator/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/object/method-async-generator/input.ts.json @@ -47,9 +47,7 @@ "start": 26, "end": 30 }, - "ctxt": 0, - "value": "test", - "optional": false + "value": "test" }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/chaining-off-optionally-chained-keys-named-class-or-function/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/chaining-off-optionally-chained-keys-named-class-or-function/input.ts.json index 767fa5bc9b03..180c602097a6 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/chaining-off-optionally-chained-keys-named-class-or-function/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/chaining-off-optionally-chained-keys-named-class-or-function/input.ts.json @@ -53,9 +53,7 @@ "start": 6, "end": 11 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } } }, @@ -65,9 +63,7 @@ "start": 12, "end": 15 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -120,9 +116,7 @@ "start": 21, "end": 29 }, - "ctxt": 0, - "value": "function", - "optional": false + "value": "function" } } }, @@ -132,9 +126,7 @@ "start": 30, "end": 33 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -200,9 +192,7 @@ "start": 39, "end": 42 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -212,9 +202,7 @@ "start": 44, "end": 49 }, - "ctxt": 0, - "value": "class", - "optional": false + "value": "class" } } }, @@ -224,9 +212,7 @@ "start": 50, "end": 53 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -279,9 +265,7 @@ "start": 59, "end": 67 }, - "ctxt": 0, - "value": "function", - "optional": false + "value": "function" } } }, @@ -291,9 +275,7 @@ "start": 69, "end": 72 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/constructor-call/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/constructor-call/input.ts.json index 60e88c2689a8..b9f82c63fed2 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/constructor-call/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/constructor-call/input.ts.json @@ -64,9 +64,7 @@ "start": 10, "end": 11 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -141,9 +139,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/function-call/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/function-call/input.ts.json index 2b28084b879e..aa99d20ef323 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/function-call/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/function-call/input.ts.json @@ -151,9 +151,7 @@ "start": 28, "end": 32 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } } }, @@ -211,9 +209,7 @@ "start": 41, "end": 45 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } } }, @@ -291,9 +287,7 @@ "start": 57, "end": 61 }, - "ctxt": 0, - "value": "func", - "optional": false + "value": "func" } }, "arguments": [], diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access-bracket/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access-bracket/input.ts.json index 665d7e232a30..100bf4fdee83 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access-bracket/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access-bracket/input.ts.json @@ -300,9 +300,7 @@ "start": 74, "end": 75 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { @@ -366,9 +364,7 @@ "start": 89, "end": 90 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" } }, "property": { diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access/input.ts.json index 25d9cd691740..ba71044ee2f7 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/member-access/input.ts.json @@ -40,9 +40,7 @@ "start": 6, "end": 9 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } } @@ -95,9 +93,7 @@ "start": 16, "end": 19 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } } }, @@ -107,9 +103,7 @@ "start": 21, "end": 24 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } @@ -155,9 +149,7 @@ "start": 30, "end": 33 }, - "ctxt": 0, - "value": "bar", - "optional": false + "value": "bar" } }, "property": { @@ -166,9 +158,7 @@ "start": 35, "end": 38 }, - "ctxt": 0, - "value": "baz", - "optional": false + "value": "baz" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/optioanl-chain-expression/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/optioanl-chain-expression/input.ts.json index ba228ddb0a99..1fb6606ef008 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/optioanl-chain-expression/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/optioanl-chain-expression/input.ts.json @@ -60,9 +60,7 @@ "start": 3, "end": 4 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -71,9 +69,7 @@ "start": 6, "end": 7 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/optional-tagged-template-literals/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/optional-tagged-template-literals/input.ts.json index a9961da95340..d93c3a2154ee 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/optional-tagged-template-literals/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/optional-tagged-template-literals/input.ts.json @@ -47,9 +47,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/parenthised-chain/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/parenthised-chain/input.ts.json index a042ce0076fd..a0aaf8480a16 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/parenthised-chain/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/parenthised-chain/input.ts.json @@ -52,9 +52,7 @@ "start": 5, "end": 6 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -65,9 +63,7 @@ "start": 8, "end": 9 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -125,9 +121,7 @@ "start": 16, "end": 17 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -138,9 +132,7 @@ "start": 19, "end": 20 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "arguments": [], @@ -227,9 +219,7 @@ "start": 29, "end": 30 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } @@ -240,9 +230,7 @@ "start": 33, "end": 34 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -252,9 +240,7 @@ "start": 35, "end": 36 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -264,9 +250,7 @@ "start": 38, "end": 39 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/separated-chaining/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/separated-chaining/input.ts.json index 66302b1a6618..44c0f480a7b6 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/separated-chaining/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/separated-chaining/input.ts.json @@ -92,9 +92,7 @@ "start": 4, "end": 5 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } }, @@ -104,9 +102,7 @@ "start": 6, "end": 7 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } } }, @@ -116,9 +112,7 @@ "start": 8, "end": 9 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -128,9 +122,7 @@ "start": 10, "end": 11 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } }, @@ -140,9 +132,7 @@ "start": 13, "end": 14 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } @@ -220,9 +210,7 @@ "start": 18, "end": 19 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } }, "property": { @@ -231,9 +219,7 @@ "start": 20, "end": 21 }, - "ctxt": 0, - "value": "c", - "optional": false + "value": "c" } }, "property": { @@ -242,9 +228,7 @@ "start": 23, "end": 24 }, - "ctxt": 0, - "value": "d", - "optional": false + "value": "d" } } }, @@ -254,9 +238,7 @@ "start": 25, "end": 26 }, - "ctxt": 0, - "value": "e", - "optional": false + "value": "e" } } }, @@ -266,9 +248,7 @@ "start": 27, "end": 28 }, - "ctxt": 0, - "value": "f", - "optional": false + "value": "f" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/super-method-class/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/super-method-class/input.ts.json index 4e1d94b1f512..39d7f69c2b9c 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/super-method-class/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/super-method-class/input.ts.json @@ -38,9 +38,7 @@ "start": 25, "end": 36 }, - "ctxt": 0, - "value": "constructor", - "optional": false + "value": "constructor" }, "params": [], "body": { @@ -93,9 +91,7 @@ "start": 57, "end": 58 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" } } } diff --git a/crates/swc_ecma_parser/tests/typescript/optional-chaining/type-arguments/input.ts.json b/crates/swc_ecma_parser/tests/typescript/optional-chaining/type-arguments/input.ts.json index b6932e39fdd9..d02152b9e0ec 100644 --- a/crates/swc_ecma_parser/tests/typescript/optional-chaining/type-arguments/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/optional-chaining/type-arguments/input.ts.json @@ -60,9 +60,7 @@ "start": 9, "end": 14 }, - "ctxt": 0, - "value": "inner", - "optional": false + "value": "inner" } }, "property": { @@ -71,9 +69,7 @@ "start": 16, "end": 21 }, - "ctxt": 0, - "value": "greet", - "optional": false + "value": "greet" } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/stack-size/input.ts.json b/crates/swc_ecma_parser/tests/typescript/stack-size/input.ts.json index a4d448da99c1..c98a9a4322e1 100644 --- a/crates/swc_ecma_parser/tests/typescript/stack-size/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/stack-size/input.ts.json @@ -40,9 +40,7 @@ "start": 8, "end": 15 }, - "ctxt": 0, - "value": "exports", - "optional": false + "value": "exports" } }, "right": { diff --git a/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json index caa637c8e349..0fed874430c6 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/object-shorthand/input.ts.json @@ -47,9 +47,7 @@ "start": 19, "end": 22 }, - "ctxt": 0, - "value": "put", - "optional": false + "value": "put" }, "params": [ { diff --git a/crates/swc_ecma_parser/tests/typescript/types/typeof/input.ts.json b/crates/swc_ecma_parser/tests/typescript/types/typeof/input.ts.json index 83c0fe5795f6..fc987e6feb5d 100644 --- a/crates/swc_ecma_parser/tests/typescript/types/typeof/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/types/typeof/input.ts.json @@ -44,6 +44,10 @@ }, "exprName": { "type": "TsQualifiedName", + "span": { + "start": 15, + "end": 18 + }, "left": { "type": "Identifier", "span": { @@ -60,9 +64,7 @@ "start": 17, "end": 18 }, - "ctxt": 0, - "value": "z", - "optional": false + "value": "z" } }, "typeArguments": null diff --git a/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json index 2782fcfd5026..bb7523d4b1bb 100644 --- a/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/variance-annotations/1/input.ts.json @@ -3922,9 +3922,7 @@ "start": 1939, "end": 1940 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -3958,9 +3956,7 @@ "start": 1964, "end": 1965 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5077,9 +5073,7 @@ "start": 2467, "end": 2472 }, - "ctxt": 0, - "value": "child", - "optional": false + "value": "child" }, "value": { "type": "ObjectExpression", @@ -5096,9 +5090,7 @@ "start": 2476, "end": 2477 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5118,9 +5110,7 @@ "start": 2482, "end": 2483 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5140,9 +5130,7 @@ "start": 2488, "end": 2493 }, - "ctxt": 0, - "value": "child", - "optional": false + "value": "child" }, "value": { "type": "NullLiteral", @@ -5160,9 +5148,7 @@ "start": 2501, "end": 2507 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "value": { "type": "NullLiteral", @@ -5183,9 +5169,7 @@ "start": 2517, "end": 2523 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "value": { "type": "NullLiteral", @@ -5314,9 +5298,7 @@ "start": 2695, "end": 2707 }, - "ctxt": 0, - "value": "_storedEvent", - "optional": false + "value": "_storedEvent" }, "value": null, "typeAnnotation": { @@ -5366,9 +5348,7 @@ "start": 2721, "end": 2728 }, - "ctxt": 0, - "value": "_action", - "optional": false + "value": "_action" }, "value": null, "typeAnnotation": { @@ -5444,9 +5424,7 @@ "start": 2756, "end": 2762 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json index 2782fcfd5026..bb7523d4b1bb 100644 --- a/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/variance-annotations/with_jsx/input.tsx.json @@ -3922,9 +3922,7 @@ "start": 1939, "end": 1940 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -3958,9 +3956,7 @@ "start": 1964, "end": 1965 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5077,9 +5073,7 @@ "start": 2467, "end": 2472 }, - "ctxt": 0, - "value": "child", - "optional": false + "value": "child" }, "value": { "type": "ObjectExpression", @@ -5096,9 +5090,7 @@ "start": 2476, "end": 2477 }, - "ctxt": 0, - "value": "a", - "optional": false + "value": "a" }, "value": { "type": "NumericLiteral", @@ -5118,9 +5110,7 @@ "start": 2482, "end": 2483 }, - "ctxt": 0, - "value": "b", - "optional": false + "value": "b" }, "value": { "type": "NumericLiteral", @@ -5140,9 +5130,7 @@ "start": 2488, "end": 2493 }, - "ctxt": 0, - "value": "child", - "optional": false + "value": "child" }, "value": { "type": "NullLiteral", @@ -5160,9 +5148,7 @@ "start": 2501, "end": 2507 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "value": { "type": "NullLiteral", @@ -5183,9 +5169,7 @@ "start": 2517, "end": 2523 }, - "ctxt": 0, - "value": "parent", - "optional": false + "value": "parent" }, "value": { "type": "NullLiteral", @@ -5314,9 +5298,7 @@ "start": 2695, "end": 2707 }, - "ctxt": 0, - "value": "_storedEvent", - "optional": false + "value": "_storedEvent" }, "value": null, "typeAnnotation": { @@ -5366,9 +5348,7 @@ "start": 2721, "end": 2728 }, - "ctxt": 0, - "value": "_action", - "optional": false + "value": "_action" }, "value": null, "typeAnnotation": { @@ -5444,9 +5424,7 @@ "start": 2756, "end": 2762 }, - "ctxt": 0, - "value": "_state", - "optional": false + "value": "_state" }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/typescript/vercel/web-875/input.ts.json b/crates/swc_ecma_parser/tests/typescript/vercel/web-875/input.ts.json index 70a7d5b39672..f1a9ba13fb3d 100644 --- a/crates/swc_ecma_parser/tests/typescript/vercel/web-875/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/vercel/web-875/input.ts.json @@ -186,9 +186,7 @@ "start": 121, "end": 124 }, - "ctxt": 0, - "value": "env", - "optional": false + "value": "env" } }, "property": { @@ -197,9 +195,7 @@ "start": 125, "end": 137 }, - "ctxt": 0, - "value": "NEXT_RUNTIME", - "optional": false + "value": "NEXT_RUNTIME" } }, "right": { @@ -343,9 +339,7 @@ "start": 285, "end": 292 }, - "ctxt": 0, - "value": "default", - "optional": false + "value": "default" } }, "typeAnnotation": { @@ -480,9 +474,7 @@ "start": 395, "end": 413 }, - "ctxt": 0, - "value": "ampOptimizerConfig", - "optional": false + "value": "ampOptimizerConfig" } } } @@ -534,9 +526,7 @@ "start": 447, "end": 464 }, - "ctxt": 0, - "value": "ampSkipValidation", - "optional": false + "value": "ampSkipValidation" } } }, @@ -562,9 +552,7 @@ "start": 479, "end": 491 }, - "ctxt": 0, - "value": "ampValidator", - "optional": false + "value": "ampValidator" } } }, @@ -617,9 +605,7 @@ "start": 532, "end": 544 }, - "ctxt": 0, - "value": "ampValidator", - "optional": false + "value": "ampValidator" } }, "arguments": [ @@ -741,9 +727,7 @@ "start": 657, "end": 660 }, - "ctxt": 0, - "value": "env", - "optional": false + "value": "env" } }, "property": { @@ -752,9 +736,7 @@ "start": 661, "end": 673 }, - "ctxt": 0, - "value": "NEXT_RUNTIME", - "optional": false + "value": "NEXT_RUNTIME" } }, "right": { @@ -789,9 +771,7 @@ "start": 699, "end": 712 }, - "ctxt": 0, - "value": "optimizeFonts", - "optional": false + "value": "optimizeFonts" } } }, @@ -996,9 +976,7 @@ "start": 890, "end": 893 }, - "ctxt": 0, - "value": "env", - "optional": false + "value": "env" } }, "property": { @@ -1007,9 +985,7 @@ "start": 894, "end": 906 }, - "ctxt": 0, - "value": "NEXT_RUNTIME", - "optional": false + "value": "NEXT_RUNTIME" } }, "right": { @@ -1044,9 +1020,7 @@ "start": 932, "end": 943 }, - "ctxt": 0, - "value": "optimizeCss", - "optional": false + "value": "optimizeCss" } } }, @@ -1220,9 +1194,7 @@ "start": 1111, "end": 1118 }, - "ctxt": 0, - "value": "replace", - "optional": false + "value": "replace" } }, "arguments": [ @@ -1278,9 +1250,7 @@ "start": 1184, "end": 1190 }, - "ctxt": 0, - "value": "filter", - "optional": false + "value": "filter" } }, "arguments": [ From 474191f2889985af1a9c8a49e0e21518968c0290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:47:46 +0900 Subject: [PATCH 68/80] Fix --- crates/swc_ecma_utils/src/function/function_wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_utils/src/function/function_wrapper.rs b/crates/swc_ecma_utils/src/function/function_wrapper.rs index dd5fbb126068..240c3784acd8 100644 --- a/crates/swc_ecma_utils/src/function/function_wrapper.rs +++ b/crates/swc_ecma_utils/src/function/function_wrapper.rs @@ -236,7 +236,7 @@ impl FunctionWrapper { arg: Some(Box::new(ref_ident.apply( DUMMY_SP, Box::new(Expr::This(ThisExpr { span: DUMMY_SP })), - vec!["arguments".as_arg()], + vec![quote_ident!("arguments").as_arg()], ))), }); From 8429b9af7928bcc85eb83b1de8a8781990e5575e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:48:56 +0900 Subject: [PATCH 69/80] Fix regression --- crates/swc_compiler_base/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/swc_compiler_base/src/lib.rs b/crates/swc_compiler_base/src/lib.rs index ecf716253915..2def122b13ba 100644 --- a/crates/swc_compiler_base/src/lib.rs +++ b/crates/swc_compiler_base/src/lib.rs @@ -20,7 +20,7 @@ use swc_common::{ }; use swc_config::config_types::BoolOr; pub use swc_config::IsModule; -use swc_ecma_ast::{EsVersion, Ident, Program}; +use swc_ecma_ast::{EsVersion, Ident, IdentName, Program}; use swc_ecma_codegen::{text_writer::WriteJs, Emitter, Node}; use swc_ecma_minifier::js::JsMinifyCommentOption; use swc_ecma_parser::{parse_file_as_module, parse_file_as_program, parse_file_as_script, Syntax}; @@ -409,4 +409,8 @@ impl Visit for IdentCollector { fn visit_ident(&mut self, ident: &Ident) { self.names.insert(ident.span.lo, ident.sym.clone()); } + + fn visit_ident_name(&mut self, ident: &IdentName) { + self.names.insert(ident.span.lo, ident.sym.clone()); + } } From 433268106821c0fa582c58d8a6892fcd798cf9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 11:55:19 +0900 Subject: [PATCH 70/80] Fix ast --- crates/swc_ecma_ast/src/ident.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs index 2c0a3de7e4f7..fa67207b645a 100644 --- a/crates/swc_ecma_ast/src/ident.rs +++ b/crates/swc_ecma_ast/src/ident.rs @@ -369,6 +369,7 @@ impl Ident { #[ast_node("Identifier")] #[derive(Eq, Hash, Default, EqIgnoreSpan)] +#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct IdentName { #[cfg_attr(feature = "__rkyv", omit_bounds)] pub span: Span, From 1fec05e1f58fe18812181debff3f5f6ec9443041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:14:32 +0900 Subject: [PATCH 71/80] LabeledStmt.label --- crates/swc_ecma_ast/src/stmt.rs | 2 +- crates/swc_ecma_visit/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index b1d97563962d..005ed286038c 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -226,7 +226,7 @@ pub struct ReturnStmt { #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] pub struct LabeledStmt { pub span: Span, - pub label: IdentName, + pub label: Ident, pub body: Box, } diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs index ee9c264d1186..57c6d2ce3d33 100644 --- a/crates/swc_ecma_visit/src/lib.rs +++ b/crates/swc_ecma_visit/src/lib.rs @@ -1402,7 +1402,7 @@ define!({ } pub struct LabeledStmt { pub span: Span, - pub label: IdentName, + pub label: Ident, pub body: Box, } pub struct BreakStmt { From 1ba3efc5dcaa9df9665b60545ce60f746bf4e181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:15:02 +0900 Subject: [PATCH 72/80] fix ast --- crates/swc_ecma_ast/src/stmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index 005ed286038c..122f15ccceb4 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -5,7 +5,7 @@ use crate::{ decl::{Decl, VarDecl}, expr::Expr, pat::Pat, - IdentName, Lit, Str, UsingDecl, + Ident, IdentName, Lit, Str, UsingDecl, }; /// Use when only block statements are allowed. From 7746aed50fea21783b22ee6aef54fba2c2f39b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:16:22 +0900 Subject: [PATCH 73/80] Fix more --- crates/swc_ecma_compat_es2015/src/for_of.rs | 2 +- crates/swc_ecma_minifier/src/compress/optimize/mod.rs | 2 +- crates/swc_ecma_minifier/src/compress/pure/dead_code.rs | 2 +- crates/swc_ecma_parser/src/parser/stmt.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/for_of.rs b/crates/swc_ecma_compat_es2015/src/for_of.rs index 9b0a37c34258..d5b3b6ebf4f8 100644 --- a/crates/swc_ecma_compat_es2015/src/for_of.rs +++ b/crates/swc_ecma_compat_es2015/src/for_of.rs @@ -77,7 +77,7 @@ struct ForOf { impl ForOf { fn fold_for_stmt( &mut self, - label: Option, + label: Option, ForOfStmt { span, left, diff --git a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs index 5f00f27d1940..99ec3a05d7e2 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs @@ -2534,7 +2534,7 @@ impl VisitMut for Optimizer<'_> { match s { Stmt::Labeled(LabeledStmt { - label: IdentName { sym, .. }, + label: Ident { sym, .. }, body, .. }) if sym.is_empty() => { diff --git a/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs b/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs index 8ea8ed41f6c3..829a1480123f 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs @@ -150,7 +150,7 @@ impl Pure<'_> { /// Returns [Some] if the whole statement should be replaced fn drop_useless_continue_inner( &mut self, - label: Option, + label: Option, loop_stmt: &mut Stmt, ) -> Option { let body = match loop_stmt { diff --git a/crates/swc_ecma_parser/src/parser/stmt.rs b/crates/swc_ecma_parser/src/parser/stmt.rs index 11e3f1b45440..90511c02954d 100644 --- a/crates/swc_ecma_parser/src/parser/stmt.rs +++ b/crates/swc_ecma_parser/src/parser/stmt.rs @@ -397,7 +397,7 @@ impl<'a, I: Tokens> Parser { let expr = match *expr { Expr::Ident(ident) => { if eat!(self, ':') { - return self.parse_labelled_stmt(ident.into()); + return self.parse_labelled_stmt(ident); } Box::new(Expr::Ident(ident)) } @@ -1126,7 +1126,7 @@ impl<'a, I: Tokens> Parser { }) } - fn parse_labelled_stmt(&mut self, l: IdentName) -> PResult { + fn parse_labelled_stmt(&mut self, l: Ident) -> PResult { let ctx = Context { is_break_allowed: true, allow_using_decl: false, From eddc88a7d8eeffe796fb95f8b68441c911f07f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:16:47 +0900 Subject: [PATCH 74/80] Label --- crates/swc_ecma_ast/src/stmt.rs | 4 ++-- crates/swc_ecma_visit/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index 122f15ccceb4..1183a9c9fa1b 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -236,7 +236,7 @@ pub struct LabeledStmt { pub struct BreakStmt { pub span: Span, #[cfg_attr(feature = "serde-impl", serde(default))] - pub label: Option, + pub label: Option, } #[ast_node("ContinueStatement")] @@ -245,7 +245,7 @@ pub struct BreakStmt { pub struct ContinueStmt { pub span: Span, #[cfg_attr(feature = "serde-impl", serde(default))] - pub label: Option, + pub label: Option, } #[ast_node("IfStatement")] diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs index 57c6d2ce3d33..0d72d783fcdd 100644 --- a/crates/swc_ecma_visit/src/lib.rs +++ b/crates/swc_ecma_visit/src/lib.rs @@ -1407,11 +1407,11 @@ define!({ } pub struct BreakStmt { pub span: Span, - pub label: Option, + pub label: Option, } pub struct ContinueStmt { pub span: Span, - pub label: Option, + pub label: Option, } pub struct IfStmt { pub span: Span, From 1be25365b766a44a08abfc8cf4c6ae7f6383cda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:17:17 +0900 Subject: [PATCH 75/80] Fix more --- crates/swc_ecma_ast/src/stmt.rs | 2 +- crates/swc_ecma_parser/src/parser/ident.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index 1183a9c9fa1b..9031c3a75883 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -5,7 +5,7 @@ use crate::{ decl::{Decl, VarDecl}, expr::Expr, pat::Pat, - Ident, IdentName, Lit, Str, UsingDecl, + Ident, Lit, Str, UsingDecl, }; /// Use when only block statements are allowed. diff --git a/crates/swc_ecma_parser/src/parser/ident.rs b/crates/swc_ecma_parser/src/parser/ident.rs index c08cf9e72ce2..8586272ca057 100644 --- a/crates/swc_ecma_parser/src/parser/ident.rs +++ b/crates/swc_ecma_parser/src/parser/ident.rs @@ -44,7 +44,7 @@ impl Parser { } /// LabelIdentifier - pub(super) fn parse_label_ident(&mut self) -> PResult { + pub(super) fn parse_label_ident(&mut self) -> PResult { let ctx = self.ctx(); Ok(self.parse_ident(!ctx.in_generator, !ctx.in_async)?.into()) From 7e2b6258fe52e6a39594bb378f57294b28044876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:19:18 +0900 Subject: [PATCH 76/80] Fix more --- crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs | 6 +++--- crates/swc_ecma_minifier/src/compress/pure/dead_code.rs | 4 ++-- crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs | 2 +- crates/swc_ecma_parser/src/parser/ident.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs b/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs index a52195e5b9ab..3daed18efd79 100644 --- a/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs @@ -653,8 +653,8 @@ struct FlowHelper<'a> { } enum Label { - Break(IdentName), - Continue(IdentName), + Break(Ident), + Continue(Ident), } impl<'a> FlowHelper<'a> { @@ -667,7 +667,7 @@ impl<'a> FlowHelper<'a> { } } - fn has_outer_label(&self, label: &Option) -> bool { + fn has_outer_label(&self, label: &Option) -> bool { match label { Some(l) => !self.inner_label.contains(&l.sym), None => false, diff --git a/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs b/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs index 829a1480123f..2fdf23ab2fad 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/dead_code.rs @@ -585,7 +585,7 @@ impl Pure<'_> { } } -fn contains_label(node: &N, label: &IdentName) -> bool +fn contains_label(node: &N, label: &Ident) -> bool where for<'aa> N: VisitWith>, { @@ -598,7 +598,7 @@ where } struct LabelFinder<'a> { - label: &'a IdentName, + label: &'a Ident, found: bool, } impl Visit for LabelFinder<'_> { diff --git a/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs b/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs index 95cd5f2b86db..31bc4aa7e38e 100644 --- a/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs +++ b/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs @@ -65,7 +65,7 @@ struct LabelMangler { } impl LabelMangler { - fn mangle(&mut self, label: &mut IdentName) { + fn mangle(&mut self, label: &mut Ident) { let v = self .cache .entry(label.sym.clone()) diff --git a/crates/swc_ecma_parser/src/parser/ident.rs b/crates/swc_ecma_parser/src/parser/ident.rs index 8586272ca057..f34d83995af9 100644 --- a/crates/swc_ecma_parser/src/parser/ident.rs +++ b/crates/swc_ecma_parser/src/parser/ident.rs @@ -47,7 +47,7 @@ impl Parser { pub(super) fn parse_label_ident(&mut self) -> PResult { let ctx = self.ctx(); - Ok(self.parse_ident(!ctx.in_generator, !ctx.in_async)?.into()) + self.parse_ident(!ctx.in_generator, !ctx.in_async) } /// Use this when spec says "IdentifierName". From 6cfcb79857c7307f1578c962b8f280a4cf101882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:20:24 +0900 Subject: [PATCH 77/80] Update test refs --- .../tests/jsx/basic/issue-6522/input.js.json | 4 +- .../span/js/stmt/label.js.span.swc-stderr | 13 ++++ .../tests/tsc/asyncAwait_es2017.json | 8 ++- .../tests/tsc/asyncAwait_es5.json | 8 ++- .../tests/tsc/asyncAwait_es6.json | 8 ++- .../tests/tsc/asyncWithVarShadowing_es6.json | 8 ++- .../tests/tsc/doWhileBreakStatements.json | 56 ++++++++++++---- .../tests/tsc/doWhileContinueStatements.json | 56 ++++++++++++---- .../tests/tsc/emitter.forAwait.json | 16 +++-- .../tests/tsc/forBreakStatements.json | 56 ++++++++++++---- .../tests/tsc/forContinueStatements.json | 56 ++++++++++++---- .../tests/tsc/forInBreakStatements.json | 56 ++++++++++++---- .../tests/tsc/forInContinueStatements.json | 56 ++++++++++++---- .../tests/tsc/parser768531.json | 4 +- .../tests/tsc/parser_breakTarget1.json | 8 ++- .../tests/tsc/parser_breakTarget2.json | 8 ++- .../tests/tsc/parser_breakTarget3.json | 12 +++- .../tests/tsc/parser_breakTarget4.json | 12 +++- .../tests/tsc/parser_continueLabel.json | 8 ++- .../tests/tsc/parser_continueTarget2.json | 8 ++- .../tests/tsc/parser_continueTarget3.json | 12 +++- .../tests/tsc/parser_continueTarget4.json | 12 +++- .../tests/tsc/parser_duplicateLabel3.json | 8 ++- .../tests/tsc/parser_duplicateLabel4.json | 8 ++- .../tests/tsc/switchBreakStatements.json | 56 ++++++++++++---- .../tsc/typeofOperatorWithAnyOtherType.json | 28 ++++++-- .../tsc/typeofOperatorWithBooleanType.json | 24 +++++-- .../tests/tsc/typeofOperatorWithEnumType.json | 8 ++- .../tsc/typeofOperatorWithNumberType.json | 28 ++++++-- .../tsc/typeofOperatorWithStringType.json | 28 ++++++-- .../tests/tsc/whileBreakStatements.json | 56 ++++++++++++---- .../tests/tsc/whileContinueStatements.json | 64 ++++++++++++++----- 32 files changed, 598 insertions(+), 195 deletions(-) diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json index ae413c796ca9..cce9901130a2 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json @@ -548,7 +548,9 @@ "start": 151, "end": 154 }, - "value": "foo" + "ctxt": 0, + "value": "foo", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr b/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr index c0c27514ff59..668c604e1d52 100644 --- a/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr +++ b/crates/swc_ecma_parser/tests/span/js/stmt/label.js.span.swc-stderr @@ -22,6 +22,12 @@ 2 | | break a 3 | `-> } `---- + x Ident + ,-[$DIR/tests/span/js/stmt/label.js:1:1] + 1 | a: while (true) { + : ^ + 2 | break a + `---- x Stmt ,-[$DIR/tests/span/js/stmt/label.js:1:1] 1 | ,-> a: while (true) { @@ -78,3 +84,10 @@ : ^^^^^^^ 3 | } `---- + x Ident + ,-[$DIR/tests/span/js/stmt/label.js:2:1] + 1 | a: while (true) { + 2 | break a + : ^ + 3 | } + `---- diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json index 44bf2456fb28..ed3495037dfe 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es2017.json @@ -2027,7 +2027,9 @@ "start": 999, "end": 1004 }, - "value": "block" + "ctxt": 0, + "value": "block", + "optional": false }, "body": { "type": "BlockStatement", @@ -2072,7 +2074,9 @@ "start": 1039, "end": 1044 }, - "value": "block" + "ctxt": 0, + "value": "block", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json index c5f689c80ec2..b93fdf0cc389 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es5.json @@ -2027,7 +2027,9 @@ "start": 1024, "end": 1029 }, - "value": "block" + "ctxt": 0, + "value": "block", + "optional": false }, "body": { "type": "BlockStatement", @@ -2072,7 +2074,9 @@ "start": 1064, "end": 1069 }, - "value": "block" + "ctxt": 0, + "value": "block", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json index bbec8bc328fb..a854971bcb6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwait_es6.json @@ -2027,7 +2027,9 @@ "start": 996, "end": 1001 }, - "value": "block" + "ctxt": 0, + "value": "block", + "optional": false }, "body": { "type": "BlockStatement", @@ -2072,7 +2074,9 @@ "start": 1036, "end": 1041 }, - "value": "block" + "ctxt": 0, + "value": "block", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json index 92ccc612e3fe..3be9034721ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncWithVarShadowing_es6.json @@ -4674,7 +4674,9 @@ "start": 2379, "end": 2382 }, - "value": "foo" + "ctxt": 0, + "value": "foo", + "optional": false }, "body": { "type": "BlockStatement", @@ -4728,7 +4730,9 @@ "start": 2415, "end": 2418 }, - "value": "foo" + "ctxt": 0, + "value": "foo", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json index 924fe78381a0..e4a152e1eb02 100644 --- a/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/doWhileBreakStatements.json @@ -50,7 +50,9 @@ "start": 92, "end": 95 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -86,7 +88,9 @@ "start": 112, "end": 115 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -105,7 +109,9 @@ "start": 133, "end": 136 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -119,7 +125,9 @@ "start": 138, "end": 143 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -155,7 +163,9 @@ "start": 160, "end": 165 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -175,7 +185,9 @@ "start": 182, "end": 186 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -211,7 +223,9 @@ "start": 197, "end": 201 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -247,7 +261,9 @@ "start": 226, "end": 230 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -292,7 +308,9 @@ "start": 274, "end": 277 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -320,7 +338,9 @@ "start": 292, "end": 295 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -340,7 +360,9 @@ "start": 324, "end": 329 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -396,7 +418,9 @@ "start": 346, "end": 351 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -415,7 +439,9 @@ "start": 394, "end": 399 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -506,7 +532,9 @@ "start": 444, "end": 449 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json index 6265026adf76..80f84744f56d 100644 --- a/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/doWhileContinueStatements.json @@ -50,7 +50,9 @@ "start": 67, "end": 70 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -86,7 +88,9 @@ "start": 90, "end": 93 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -105,7 +109,9 @@ "start": 111, "end": 114 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -119,7 +125,9 @@ "start": 116, "end": 121 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -155,7 +163,9 @@ "start": 141, "end": 146 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -175,7 +185,9 @@ "start": 163, "end": 167 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -211,7 +223,9 @@ "start": 178, "end": 182 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -247,7 +261,9 @@ "start": 210, "end": 214 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -292,7 +308,9 @@ "start": 258, "end": 261 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -320,7 +338,9 @@ "start": 279, "end": 282 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -340,7 +360,9 @@ "start": 311, "end": 316 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -396,7 +418,9 @@ "start": 336, "end": 341 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -415,7 +439,9 @@ "start": 384, "end": 389 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "DoWhileStatement", @@ -506,7 +532,9 @@ "start": 437, "end": 442 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json b/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json index 82abe1eb6496..2fa9726eb05a 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json +++ b/crates/swc_ecma_parser/tests/tsc/emitter.forAwait.json @@ -677,7 +677,9 @@ "start": 581, "end": 586 }, - "value": "outer" + "ctxt": 0, + "value": "outer", + "optional": false }, "body": { "type": "ForOfStatement", @@ -748,7 +750,9 @@ "start": 632, "end": 637 }, - "value": "outer" + "ctxt": 0, + "value": "outer", + "optional": false } } ] @@ -848,7 +852,9 @@ "start": 769, "end": 774 }, - "value": "outer" + "ctxt": 0, + "value": "outer", + "optional": false }, "body": { "type": "ForOfStatement", @@ -919,7 +925,9 @@ "start": 820, "end": 825 }, - "value": "outer" + "ctxt": 0, + "value": "outer", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json index 62ceccac4523..ffd04cfc342e 100644 --- a/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forBreakStatements.json @@ -45,7 +45,9 @@ "start": 87, "end": 90 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "ForStatement", @@ -76,7 +78,9 @@ "start": 114, "end": 117 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -95,7 +99,9 @@ "start": 122, "end": 125 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -109,7 +115,9 @@ "start": 127, "end": 132 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "ForStatement", @@ -140,7 +148,9 @@ "start": 156, "end": 161 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -160,7 +170,9 @@ "start": 166, "end": 170 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "ForStatement", @@ -191,7 +203,9 @@ "start": 188, "end": 192 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "ForStatement", @@ -222,7 +236,9 @@ "start": 224, "end": 228 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -262,7 +278,9 @@ "start": 255, "end": 258 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "ForStatement", @@ -285,7 +303,9 @@ "start": 280, "end": 283 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -305,7 +325,9 @@ "start": 288, "end": 293 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "ForStatement", @@ -346,7 +368,9 @@ "start": 331, "end": 336 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -365,7 +389,9 @@ "start": 339, "end": 344 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "ForStatement", @@ -451,7 +477,9 @@ "start": 397, "end": 402 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json index d0c384e6cc1d..b507f6121c5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json @@ -45,7 +45,9 @@ "start": 62, "end": 65 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "ForStatement", @@ -76,7 +78,9 @@ "start": 92, "end": 95 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -95,7 +99,9 @@ "start": 100, "end": 103 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -109,7 +115,9 @@ "start": 105, "end": 110 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "ForStatement", @@ -140,7 +148,9 @@ "start": 137, "end": 142 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -160,7 +170,9 @@ "start": 147, "end": 151 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "ForStatement", @@ -191,7 +203,9 @@ "start": 169, "end": 173 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "ForStatement", @@ -222,7 +236,9 @@ "start": 208, "end": 212 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -262,7 +278,9 @@ "start": 239, "end": 242 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "ForStatement", @@ -285,7 +303,9 @@ "start": 267, "end": 270 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -305,7 +325,9 @@ "start": 275, "end": 280 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "ForStatement", @@ -346,7 +368,9 @@ "start": 321, "end": 326 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -365,7 +389,9 @@ "start": 329, "end": 334 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "ForStatement", @@ -451,7 +477,9 @@ "start": 390, "end": 395 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json index 46513c8bc40c..a703d5c4e510 100644 --- a/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forInBreakStatements.json @@ -82,7 +82,9 @@ "start": 63, "end": 66 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "ForInStatement", @@ -150,7 +152,9 @@ "start": 97, "end": 100 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -169,7 +173,9 @@ "start": 105, "end": 108 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -183,7 +189,9 @@ "start": 110, "end": 115 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "ForInStatement", @@ -251,7 +259,9 @@ "start": 146, "end": 151 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -271,7 +281,9 @@ "start": 156, "end": 160 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "ForInStatement", @@ -339,7 +351,9 @@ "start": 185, "end": 189 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "ForInStatement", @@ -407,7 +421,9 @@ "start": 228, "end": 232 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -484,7 +500,9 @@ "start": 266, "end": 269 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "ForInStatement", @@ -544,7 +562,9 @@ "start": 298, "end": 301 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -564,7 +584,9 @@ "start": 306, "end": 311 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "ForInStatement", @@ -716,7 +738,9 @@ "start": 373, "end": 378 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -735,7 +759,9 @@ "start": 381, "end": 386 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "ForInStatement", @@ -858,7 +884,9 @@ "start": 446, "end": 451 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json index 5a59d1310a07..6d7364c340a0 100644 --- a/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forInContinueStatements.json @@ -82,7 +82,9 @@ "start": 66, "end": 69 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "ForInStatement", @@ -150,7 +152,9 @@ "start": 103, "end": 106 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -169,7 +173,9 @@ "start": 111, "end": 114 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -183,7 +189,9 @@ "start": 116, "end": 121 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "ForInStatement", @@ -251,7 +259,9 @@ "start": 155, "end": 160 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -271,7 +281,9 @@ "start": 165, "end": 169 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "ForInStatement", @@ -339,7 +351,9 @@ "start": 194, "end": 198 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "ForInStatement", @@ -407,7 +421,9 @@ "start": 240, "end": 244 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -484,7 +500,9 @@ "start": 278, "end": 281 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "ForInStatement", @@ -544,7 +562,9 @@ "start": 313, "end": 316 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -564,7 +584,9 @@ "start": 321, "end": 326 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "ForInStatement", @@ -716,7 +738,9 @@ "start": 391, "end": 396 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -735,7 +759,9 @@ "start": 399, "end": 404 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "ForInStatement", @@ -858,7 +884,9 @@ "start": 467, "end": 472 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser768531.json b/crates/swc_ecma_parser/tests/tsc/parser768531.json index e3fb6f6fe731..e705c0eb5fd0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser768531.json +++ b/crates/swc_ecma_parser/tests/tsc/parser768531.json @@ -25,7 +25,9 @@ "start": 31, "end": 32 }, - "value": "a" + "ctxt": 0, + "value": "a", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json index a0ac00418504..ed28e564eb3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget1.json @@ -17,7 +17,9 @@ "start": 1, "end": 7 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "BreakStatement", @@ -31,7 +33,9 @@ "start": 17, "end": 23 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json index a5dfcb133a37..d1935ee72f28 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget2.json @@ -17,7 +17,9 @@ "start": 1, "end": 7 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "WhileStatement", @@ -53,7 +55,9 @@ "start": 32, "end": 38 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json index 15ff924c4189..0b64109405f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json @@ -17,7 +17,9 @@ "start": 30, "end": 37 }, - "value": "target1" + "ctxt": 0, + "value": "target1", + "optional": false }, "body": { "type": "LabeledStatement", @@ -31,7 +33,9 @@ "start": 39, "end": 46 }, - "value": "target2" + "ctxt": 0, + "value": "target2", + "optional": false }, "body": { "type": "WhileStatement", @@ -67,7 +71,9 @@ "start": 71, "end": 78 }, - "value": "target1" + "ctxt": 0, + "value": "target1", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json index e2de246ad87b..aa5692331280 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_breakTarget4.json @@ -17,7 +17,9 @@ "start": 30, "end": 37 }, - "value": "target1" + "ctxt": 0, + "value": "target1", + "optional": false }, "body": { "type": "LabeledStatement", @@ -31,7 +33,9 @@ "start": 39, "end": 46 }, - "value": "target2" + "ctxt": 0, + "value": "target2", + "optional": false }, "body": { "type": "WhileStatement", @@ -67,7 +71,9 @@ "start": 71, "end": 78 }, - "value": "target2" + "ctxt": 0, + "value": "target2", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json b/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json index 67da5a58e0c4..d51bc9555ec7 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueLabel.json @@ -17,7 +17,9 @@ "start": 1, "end": 7 }, - "value": "label1" + "ctxt": 0, + "value": "label1", + "optional": false }, "body": { "type": "ForStatement", @@ -131,7 +133,9 @@ "start": 51, "end": 57 }, - "value": "label1" + "ctxt": 0, + "value": "label1", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json index 6c5d7f3047e1..e519fb66d380 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget2.json @@ -17,7 +17,9 @@ "start": 1, "end": 7 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "WhileStatement", @@ -53,7 +55,9 @@ "start": 35, "end": 41 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json index 7346acc88c0e..6b4555b81a02 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget3.json @@ -17,7 +17,9 @@ "start": 30, "end": 37 }, - "value": "target1" + "ctxt": 0, + "value": "target1", + "optional": false }, "body": { "type": "LabeledStatement", @@ -31,7 +33,9 @@ "start": 39, "end": 46 }, - "value": "target2" + "ctxt": 0, + "value": "target2", + "optional": false }, "body": { "type": "WhileStatement", @@ -67,7 +71,9 @@ "start": 74, "end": 81 }, - "value": "target1" + "ctxt": 0, + "value": "target1", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json index 7c5c5d7d6a1c..b543abfe5478 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_continueTarget4.json @@ -17,7 +17,9 @@ "start": 30, "end": 37 }, - "value": "target1" + "ctxt": 0, + "value": "target1", + "optional": false }, "body": { "type": "LabeledStatement", @@ -31,7 +33,9 @@ "start": 39, "end": 46 }, - "value": "target2" + "ctxt": 0, + "value": "target2", + "optional": false }, "body": { "type": "WhileStatement", @@ -67,7 +71,9 @@ "start": 74, "end": 81 }, - "value": "target2" + "ctxt": 0, + "value": "target2", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json index 5600e0210faf..51364fd11b27 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel3.json @@ -17,7 +17,9 @@ "start": 30, "end": 36 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "WhileStatement", @@ -81,7 +83,9 @@ "start": 74, "end": 80 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "WhileStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json index 19db8dcc965c..aba0eedf4cbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json +++ b/crates/swc_ecma_parser/tests/tsc/parser_duplicateLabel4.json @@ -17,7 +17,9 @@ "start": 61, "end": 67 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "WhileStatement", @@ -56,7 +58,9 @@ "start": 87, "end": 93 }, - "value": "target" + "ctxt": 0, + "value": "target", + "optional": false }, "body": { "type": "WhileStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json index 4161b56ed0a5..e979ce072a58 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json @@ -61,7 +61,9 @@ "start": 107, "end": 110 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "SwitchStatement", @@ -107,7 +109,9 @@ "start": 154, "end": 157 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -127,7 +131,9 @@ "start": 162, "end": 165 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -141,7 +147,9 @@ "start": 167, "end": 172 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "SwitchStatement", @@ -187,7 +195,9 @@ "start": 216, "end": 221 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -208,7 +218,9 @@ "start": 226, "end": 230 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "SwitchStatement", @@ -254,7 +266,9 @@ "start": 268, "end": 272 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "SwitchStatement", @@ -300,7 +314,9 @@ "start": 340, "end": 344 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -357,7 +373,9 @@ "start": 395, "end": 398 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "SwitchStatement", @@ -403,7 +421,9 @@ "start": 466, "end": 469 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } ] @@ -427,7 +447,9 @@ "start": 484, "end": 489 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "SwitchStatement", @@ -537,7 +559,9 @@ "start": 653, "end": 658 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } }, { @@ -552,7 +576,9 @@ "start": 684, "end": 689 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "SwitchStatement", @@ -653,7 +679,9 @@ "start": 862, "end": 867 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json index b6d28a6b993f..d4891930c7cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json @@ -2440,7 +2440,9 @@ "start": 1477, "end": 1478 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2480,7 +2482,9 @@ "start": 1492, "end": 1493 }, - "value": "x" + "ctxt": 0, + "value": "x", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2520,7 +2524,9 @@ "start": 1508, "end": 1509 }, - "value": "r" + "ctxt": 0, + "value": "r", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2560,7 +2566,9 @@ "start": 1523, "end": 1524 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2615,7 +2623,9 @@ "start": 1541, "end": 1542 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2670,7 +2680,9 @@ "start": 1558, "end": 1559 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2725,7 +2737,9 @@ "start": 1573, "end": 1574 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json index 1df6443ce2fe..253ead609ac2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithBooleanType.json @@ -1249,7 +1249,9 @@ "start": 887, "end": 888 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1289,7 +1291,9 @@ "start": 906, "end": 907 }, - "value": "r" + "ctxt": 0, + "value": "r", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1407,7 +1411,9 @@ "start": 951, "end": 952 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1462,7 +1468,9 @@ "start": 966, "end": 967 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1517,7 +1525,9 @@ "start": 984, "end": 985 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1572,7 +1582,9 @@ "start": 1001, "end": 1002 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json index 447f52bbec66..7036f5f9475c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json @@ -769,7 +769,9 @@ "start": 587, "end": 588 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -809,7 +811,9 @@ "start": 603, "end": 604 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json index 9189a59f4a1b..026ce300b049 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithNumberType.json @@ -1767,7 +1767,9 @@ "start": 1143, "end": 1144 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1807,7 +1809,9 @@ "start": 1161, "end": 1162 }, - "value": "x" + "ctxt": 0, + "value": "x", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1847,7 +1851,9 @@ "start": 1180, "end": 1181 }, - "value": "r" + "ctxt": 0, + "value": "r", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1967,7 +1973,9 @@ "start": 1219, "end": 1220 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2022,7 +2030,9 @@ "start": 1234, "end": 1235 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2077,7 +2087,9 @@ "start": 1252, "end": 1253 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2132,7 +2144,9 @@ "start": 1269, "end": 1270 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json index 701c31b8010f..c49cec6576b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json @@ -1836,7 +1836,9 @@ "start": 1173, "end": 1174 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1876,7 +1878,9 @@ "start": 1191, "end": 1192 }, - "value": "x" + "ctxt": 0, + "value": "x", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -1916,7 +1920,9 @@ "start": 1210, "end": 1211 }, - "value": "r" + "ctxt": 0, + "value": "r", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2036,7 +2042,9 @@ "start": 1251, "end": 1252 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2091,7 +2099,9 @@ "start": 1266, "end": 1267 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2146,7 +2156,9 @@ "start": 1284, "end": 1285 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", @@ -2201,7 +2213,9 @@ "start": 1301, "end": 1302 }, - "value": "z" + "ctxt": 0, + "value": "z", + "optional": false }, "body": { "type": "ExpressionStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json index bac0e25a48b6..530fec785a58 100644 --- a/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/whileBreakStatements.json @@ -50,7 +50,9 @@ "start": 90, "end": 93 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "WhileStatement", @@ -86,7 +88,9 @@ "start": 121, "end": 124 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -105,7 +109,9 @@ "start": 129, "end": 132 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -119,7 +125,9 @@ "start": 134, "end": 139 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "WhileStatement", @@ -155,7 +163,9 @@ "start": 166, "end": 171 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -175,7 +185,9 @@ "start": 176, "end": 180 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "WhileStatement", @@ -211,7 +223,9 @@ "start": 201, "end": 205 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "WhileStatement", @@ -247,7 +261,9 @@ "start": 240, "end": 244 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -292,7 +308,9 @@ "start": 274, "end": 277 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "WhileStatement", @@ -320,7 +338,9 @@ "start": 310, "end": 313 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -340,7 +360,9 @@ "start": 318, "end": 323 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "WhileStatement", @@ -396,7 +418,9 @@ "start": 394, "end": 399 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -415,7 +439,9 @@ "start": 402, "end": 407 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "WhileStatement", @@ -506,7 +532,9 @@ "start": 463, "end": 468 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json b/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json index bbd3e58757b7..099f0a9ac1a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/whileContinueStatements.json @@ -109,7 +109,9 @@ "start": 91, "end": 94 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false }, "body": { "type": "WhileStatement", @@ -145,7 +147,9 @@ "start": 125, "end": 128 }, - "value": "ONE" + "ctxt": 0, + "value": "ONE", + "optional": false } } ] @@ -164,7 +168,9 @@ "start": 133, "end": 136 }, - "value": "TWO" + "ctxt": 0, + "value": "TWO", + "optional": false }, "body": { "type": "LabeledStatement", @@ -178,7 +184,9 @@ "start": 138, "end": 143 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false }, "body": { "type": "WhileStatement", @@ -214,7 +222,9 @@ "start": 173, "end": 178 }, - "value": "THREE" + "ctxt": 0, + "value": "THREE", + "optional": false } } ] @@ -234,7 +244,9 @@ "start": 183, "end": 187 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false }, "body": { "type": "WhileStatement", @@ -270,7 +282,9 @@ "start": 208, "end": 212 }, - "value": "FIVE" + "ctxt": 0, + "value": "FIVE", + "optional": false }, "body": { "type": "WhileStatement", @@ -306,7 +320,9 @@ "start": 250, "end": 254 }, - "value": "FOUR" + "ctxt": 0, + "value": "FOUR", + "optional": false } } ] @@ -351,7 +367,9 @@ "start": 284, "end": 287 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false }, "body": { "type": "WhileStatement", @@ -379,7 +397,9 @@ "start": 323, "end": 326 }, - "value": "SIX" + "ctxt": 0, + "value": "SIX", + "optional": false } } } @@ -399,7 +419,9 @@ "start": 331, "end": 336 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false }, "body": { "type": "WhileStatement", @@ -455,7 +477,9 @@ "start": 410, "end": 415 }, - "value": "SEVEN" + "ctxt": 0, + "value": "SEVEN", + "optional": false } } } @@ -474,7 +498,9 @@ "start": 418, "end": 423 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false }, "body": { "type": "WhileStatement", @@ -565,7 +591,9 @@ "start": 482, "end": 487 }, - "value": "EIGHT" + "ctxt": 0, + "value": "EIGHT", + "optional": false } } ] @@ -584,7 +612,9 @@ "start": 492, "end": 496 }, - "value": "NINE" + "ctxt": 0, + "value": "NINE", + "optional": false }, "body": { "type": "WhileStatement", @@ -642,7 +672,9 @@ "start": 538, "end": 542 }, - "value": "NINE" + "ctxt": 0, + "value": "NINE", + "optional": false } } ] From 3c55f5087ad0e880094ebbd7edf098ca38e559fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:22:18 +0900 Subject: [PATCH 78/80] Update test refs --- .../tests/resolver/issues/2854/1/output.js | 2 +- .../vercel/next/server/render/1/output.js | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/crates/swc_ecma_transforms_base/tests/resolver/issues/2854/1/output.js b/crates/swc_ecma_transforms_base/tests/resolver/issues/2854/1/output.js index 4b921a6ec43a..7fc0017a81f9 100644 --- a/crates/swc_ecma_transforms_base/tests/resolver/issues/2854/1/output.js +++ b/crates/swc_ecma_transforms_base/tests/resolver/issues/2854/1/output.js @@ -2,7 +2,7 @@ export function App__2() { return ; } export function Form__2({ onChange__4 = function() {} }) { - return ; } diff --git a/crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/1/output.js b/crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/1/output.js index a081566a01a8..23c0e7e659c3 100644 --- a/crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/1/output.js +++ b/crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/1/output.js @@ -222,7 +222,7 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, defaultLocale: renderOpts__21.defaultLocale, AppTree: (props__48)=>{ return - + ; }, defaultGetInitialProps: async (docCtx__49)=>{ @@ -251,9 +251,9 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, let head__21 = defaultHead__2(inAmpMode__21); let scriptLoader__21 = {}; const nextExport__21 = !isSSG__21 && (renderOpts__21.nextExport || dev__21 && (isAutoExport__21 || isFallback__21)); - const AppContainer__21 = ({ children__52 })=> - - + + { head__21 = state__53; }, @@ -263,8 +263,8 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, scripts: {}, mountedInstances: new Set() }}> - reactLoadableModules__21.push(moduleName__55)}> - + reactLoadableModules__21.push(moduleName__55)}> + {children__52} @@ -481,7 +481,7 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, if (Document__21.getInitialProps) { const renderPage__111 = (options__112 = {})=>{ if (ctx__21.err && ErrorDebug__21) { - const html__113 = ReactDOMServer__2.renderToString(); + const html__113 = ReactDOMServer__2.renderToString(); return { html__113, head__21 @@ -492,7 +492,7 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, } const { App: EnhancedApp__112, Component: EnhancedComponent__112 } = enhanceComponents__2(options__112, App__21, Component__21); const html__112 = ReactDOMServer__2.renderToString( - + ); return { html__112, @@ -519,8 +519,8 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, styles: docProps__111.styles }; } else { - const content__117 = ctx__21.err && ErrorDebug__21 ? : - + const content__117 = ctx__21.err && ErrorDebug__21 ? : + ; const bodyResult__117 = concurrentFeatures__21 ? await renderToStream__2(content__117, generateStaticHTML__21) : piperFromArray__2([ ReactDOMServer__2.renderToString(content__117) @@ -597,8 +597,8 @@ export async function renderToHTML__2(req__21, res__21, pathname__21, query__21, styles: documentResult__21.styles, useMaybeDeferContent__2 }; - const documentHTML__21 = ReactDOMServer__2.renderToStaticMarkup( - + const documentHTML__21 = ReactDOMServer__2.renderToStaticMarkup( + {documentResult__21.documentElement(htmlProps__21)} ); From c2164daf3b6c14563c24ae45d27da6c6f25ece62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:24:25 +0900 Subject: [PATCH 79/80] Update test refs --- crates/swc_ecma_ast/src/stmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_ast/src/stmt.rs b/crates/swc_ecma_ast/src/stmt.rs index 9031c3a75883..8e0dabab6646 100644 --- a/crates/swc_ecma_ast/src/stmt.rs +++ b/crates/swc_ecma_ast/src/stmt.rs @@ -5,7 +5,7 @@ use crate::{ decl::{Decl, VarDecl}, expr::Expr, pat::Pat, - Ident, Lit, Str, UsingDecl, + Ident, Lit, Str, UsingDecl, }; /// Use when only block statements are allowed. From bc1bbd9b12f52282e5f567ada2302d34bcfc4788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 10 Jul 2024 12:29:01 +0900 Subject: [PATCH 80/80] reset ci