Skip to content

Commit

Permalink
chore(ast): move TSType to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 30, 2024
1 parent 63f36da commit d953c85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/ast/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ pub enum TSType<'a> {
TSObjectKeyword(Box<'a, TSObjectKeyword>) = 7,
TSStringKeyword(Box<'a, TSStringKeyword>) = 8,
TSSymbolKeyword(Box<'a, TSSymbolKeyword>) = 9,
TSThisType(Box<'a, TSThisType>) = 10,
TSUndefinedKeyword(Box<'a, TSUndefinedKeyword>) = 11,
TSUnknownKeyword(Box<'a, TSUnknownKeyword>) = 12,
TSVoidKeyword(Box<'a, TSVoidKeyword>) = 13,
Expand All @@ -165,6 +164,7 @@ pub enum TSType<'a> {
TSNamedTupleMember(Box<'a, TSNamedTupleMember<'a>>) = 24,
TSQualifiedName(Box<'a, TSQualifiedName<'a>>) = 25,
TSTemplateLiteralType(Box<'a, TSTemplateLiteralType<'a>>) = 26,
TSThisType(Box<'a, TSThisType>) = 10,
TSTupleType(Box<'a, TSTupleType<'a>>) = 27,
TSTypeLiteral(Box<'a, TSTypeLiteral<'a>>) = 28,
TSTypeOperatorType(Box<'a, TSTypeOperator<'a>>) = 29,
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_ast/src/generated/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,6 @@ impl<'a> GetSpan for TSType<'a> {
Self::TSObjectKeyword(it) => it.span(),
Self::TSStringKeyword(it) => it.span(),
Self::TSSymbolKeyword(it) => it.span(),
Self::TSThisType(it) => it.span(),
Self::TSUndefinedKeyword(it) => it.span(),
Self::TSUnknownKeyword(it) => it.span(),
Self::TSVoidKeyword(it) => it.span(),
Expand All @@ -1377,6 +1376,7 @@ impl<'a> GetSpan for TSType<'a> {
Self::TSNamedTupleMember(it) => it.span(),
Self::TSQualifiedName(it) => it.span(),
Self::TSTemplateLiteralType(it) => it.span(),
Self::TSThisType(it) => it.span(),
Self::TSTupleType(it) => it.span(),
Self::TSTypeLiteral(it) => it.span(),
Self::TSTypeOperatorType(it) => it.span(),
Expand Down Expand Up @@ -1476,7 +1476,6 @@ impl<'a> GetSpan for TSTupleElement<'a> {
Self::TSObjectKeyword(it) => it.span(),
Self::TSStringKeyword(it) => it.span(),
Self::TSSymbolKeyword(it) => it.span(),
Self::TSThisType(it) => it.span(),
Self::TSUndefinedKeyword(it) => it.span(),
Self::TSUnknownKeyword(it) => it.span(),
Self::TSVoidKeyword(it) => it.span(),
Expand All @@ -1493,6 +1492,7 @@ impl<'a> GetSpan for TSTupleElement<'a> {
Self::TSNamedTupleMember(it) => it.span(),
Self::TSQualifiedName(it) => it.span(),
Self::TSTemplateLiteralType(it) => it.span(),
Self::TSThisType(it) => it.span(),
Self::TSTupleType(it) => it.span(),
Self::TSTypeLiteral(it) => it.span(),
Self::TSTypeOperatorType(it) => it.span(),
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_traverse/src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3840,7 +3840,6 @@ pub(crate) unsafe fn walk_ts_type<'a, Tr: Traverse<'a>>(
TSType::TSSymbolKeyword(node) => {
walk_ts_symbol_keyword(traverser, (&mut **node) as *mut _, ctx)
}
TSType::TSThisType(node) => walk_ts_this_type(traverser, (&mut **node) as *mut _, ctx),
TSType::TSUndefinedKeyword(node) => {
walk_ts_undefined_keyword(traverser, (&mut **node) as *mut _, ctx)
}
Expand Down Expand Up @@ -3881,6 +3880,7 @@ pub(crate) unsafe fn walk_ts_type<'a, Tr: Traverse<'a>>(
TSType::TSTemplateLiteralType(node) => {
walk_ts_template_literal_type(traverser, (&mut **node) as *mut _, ctx)
}
TSType::TSThisType(node) => walk_ts_this_type(traverser, (&mut **node) as *mut _, ctx),
TSType::TSTupleType(node) => walk_ts_tuple_type(traverser, (&mut **node) as *mut _, ctx),
TSType::TSTypeLiteral(node) => {
walk_ts_type_literal(traverser, (&mut **node) as *mut _, ctx)
Expand Down Expand Up @@ -4141,7 +4141,6 @@ pub(crate) unsafe fn walk_ts_tuple_element<'a, Tr: Traverse<'a>>(
| TSTupleElement::TSObjectKeyword(_)
| TSTupleElement::TSStringKeyword(_)
| TSTupleElement::TSSymbolKeyword(_)
| TSTupleElement::TSThisType(_)
| TSTupleElement::TSUndefinedKeyword(_)
| TSTupleElement::TSUnknownKeyword(_)
| TSTupleElement::TSVoidKeyword(_)
Expand All @@ -4158,6 +4157,7 @@ pub(crate) unsafe fn walk_ts_tuple_element<'a, Tr: Traverse<'a>>(
| TSTupleElement::TSNamedTupleMember(_)
| TSTupleElement::TSQualifiedName(_)
| TSTupleElement::TSTemplateLiteralType(_)
| TSTupleElement::TSThisType(_)
| TSTupleElement::TSTupleType(_)
| TSTupleElement::TSTypeLiteral(_)
| TSTupleElement::TSTypeOperatorType(_)
Expand Down

0 comments on commit d953c85

Please sign in to comment.