diff --git a/crates/oxc_ast/src/generated/assert_layouts.rs b/crates/oxc_ast/src/generated/assert_layouts.rs index b39e5050a7b643..b2f9d5bca78965 100644 --- a/crates/oxc_ast/src/generated/assert_layouts.rs +++ b/crates/oxc_ast/src/generated/assert_layouts.rs @@ -1139,12 +1139,12 @@ const _: () = { assert!(offset_of!(NumericLiteral, span) == 0usize); assert!(offset_of!(NumericLiteral, value) == 8usize); assert!(offset_of!(NumericLiteral, raw) == 16usize); - assert!(offset_of!(NumericLiteral, base) == 32usize); + assert!(offset_of!(NumericLiteral, base) == 24usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(BigIntLiteral, span) == 0usize); assert!(offset_of!(BigIntLiteral, raw) == 8usize); - assert!(offset_of!(BigIntLiteral, base) == 24usize); + assert!(offset_of!(BigIntLiteral, base) == 16usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(RegExpLiteral, span) == 0usize); @@ -1153,7 +1153,7 @@ const _: () = { assert!(size_of::() == 12usize); assert!(align_of::() == 4usize); assert!(offset_of!(RegExp, pattern) == 0usize); - assert!(offset_of!(RegExp, flags) == 16usize); + assert!(offset_of!(RegExp, flags) == 8usize); assert!(size_of::() == 0usize); assert!(align_of::() == 1usize); assert!(size_of::() == 16usize); @@ -1164,10 +1164,10 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(Program, span) == 0usize); assert!(offset_of!(Program, source_type) == 8usize); - assert!(offset_of!(Program, hashbang) == 16usize); - assert!(offset_of!(Program, directives) == 40usize); - assert!(offset_of!(Program, body) == 72usize); - assert!(offset_of!(Program, scope_id) == 104usize); + assert!(offset_of!(Program, hashbang) == 12usize); + assert!(offset_of!(Program, directives) == 28usize); + assert!(offset_of!(Program, body) == 44usize); + assert!(offset_of!(Program, scope_id) == 60usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 16usize); @@ -1178,13 +1178,13 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(IdentifierReference, span) == 0usize); assert!(offset_of!(IdentifierReference, name) == 8usize); - assert!(offset_of!(IdentifierReference, reference_id) == 24usize); - assert!(offset_of!(IdentifierReference, reference_flag) == 28usize); + assert!(offset_of!(IdentifierReference, reference_id) == 16usize); + assert!(offset_of!(IdentifierReference, reference_flag) == 20usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(BindingIdentifier, span) == 0usize); assert!(offset_of!(BindingIdentifier, name) == 8usize); - assert!(offset_of!(BindingIdentifier, symbol_id) == 24usize); + assert!(offset_of!(BindingIdentifier, symbol_id) == 16usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(LabelIdentifier, span) == 0usize); @@ -1196,7 +1196,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(ArrayExpression, span) == 0usize); assert!(offset_of!(ArrayExpression, elements) == 8usize); - assert!(offset_of!(ArrayExpression, trailing_comma) == 40usize); + assert!(offset_of!(ArrayExpression, trailing_comma) == 24usize); assert!(size_of::() == 12usize); assert!(align_of::() == 4usize); assert!(size_of::() == 8usize); @@ -1206,19 +1206,19 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(ObjectExpression, span) == 0usize); assert!(offset_of!(ObjectExpression, properties) == 8usize); - assert!(offset_of!(ObjectExpression, trailing_comma) == 40usize); + assert!(offset_of!(ObjectExpression, trailing_comma) == 24usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(ObjectProperty, span) == 0usize); assert!(offset_of!(ObjectProperty, kind) == 8usize); - assert!(offset_of!(ObjectProperty, key) == 16usize); - assert!(offset_of!(ObjectProperty, value) == 32usize); - assert!(offset_of!(ObjectProperty, init) == 48usize); - assert!(offset_of!(ObjectProperty, method) == 64usize); - assert!(offset_of!(ObjectProperty, shorthand) == 65usize); - assert!(offset_of!(ObjectProperty, computed) == 66usize); + assert!(offset_of!(ObjectProperty, key) == 12usize); + assert!(offset_of!(ObjectProperty, value) == 20usize); + assert!(offset_of!(ObjectProperty, init) == 28usize); + assert!(offset_of!(ObjectProperty, method) == 36usize); + assert!(offset_of!(ObjectProperty, shorthand) == 37usize); + assert!(offset_of!(ObjectProperty, computed) == 38usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 1usize); @@ -1227,60 +1227,60 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TemplateLiteral, span) == 0usize); assert!(offset_of!(TemplateLiteral, quasis) == 8usize); - assert!(offset_of!(TemplateLiteral, expressions) == 40usize); + assert!(offset_of!(TemplateLiteral, expressions) == 24usize); assert!(size_of::() == 60usize); assert!(align_of::() == 4usize); assert!(offset_of!(TaggedTemplateExpression, span) == 0usize); assert!(offset_of!(TaggedTemplateExpression, tag) == 8usize); - assert!(offset_of!(TaggedTemplateExpression, quasi) == 24usize); - assert!(offset_of!(TaggedTemplateExpression, type_parameters) == 96usize); + assert!(offset_of!(TaggedTemplateExpression, quasi) == 16usize); + assert!(offset_of!(TaggedTemplateExpression, type_parameters) == 56usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(TemplateElement, span) == 0usize); assert!(offset_of!(TemplateElement, tail) == 8usize); - assert!(offset_of!(TemplateElement, value) == 16usize); + assert!(offset_of!(TemplateElement, value) == 12usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(TemplateElementValue, raw) == 0usize); - assert!(offset_of!(TemplateElementValue, cooked) == 16usize); + assert!(offset_of!(TemplateElementValue, cooked) == 8usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(ComputedMemberExpression, span) == 0usize); assert!(offset_of!(ComputedMemberExpression, object) == 8usize); - assert!(offset_of!(ComputedMemberExpression, expression) == 24usize); - assert!(offset_of!(ComputedMemberExpression, optional) == 40usize); + assert!(offset_of!(ComputedMemberExpression, expression) == 16usize); + assert!(offset_of!(ComputedMemberExpression, optional) == 24usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(StaticMemberExpression, span) == 0usize); assert!(offset_of!(StaticMemberExpression, object) == 8usize); - assert!(offset_of!(StaticMemberExpression, property) == 24usize); - assert!(offset_of!(StaticMemberExpression, optional) == 48usize); + assert!(offset_of!(StaticMemberExpression, property) == 16usize); + assert!(offset_of!(StaticMemberExpression, optional) == 32usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(PrivateFieldExpression, span) == 0usize); assert!(offset_of!(PrivateFieldExpression, object) == 8usize); - assert!(offset_of!(PrivateFieldExpression, field) == 24usize); - assert!(offset_of!(PrivateFieldExpression, optional) == 48usize); + assert!(offset_of!(PrivateFieldExpression, field) == 16usize); + assert!(offset_of!(PrivateFieldExpression, optional) == 32usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(CallExpression, span) == 0usize); assert!(offset_of!(CallExpression, arguments) == 8usize); - assert!(offset_of!(CallExpression, callee) == 40usize); - assert!(offset_of!(CallExpression, type_parameters) == 56usize); - assert!(offset_of!(CallExpression, optional) == 64usize); + assert!(offset_of!(CallExpression, callee) == 24usize); + assert!(offset_of!(CallExpression, type_parameters) == 32usize); + assert!(offset_of!(CallExpression, optional) == 36usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(NewExpression, span) == 0usize); assert!(offset_of!(NewExpression, callee) == 8usize); - assert!(offset_of!(NewExpression, arguments) == 24usize); - assert!(offset_of!(NewExpression, type_parameters) == 56usize); + assert!(offset_of!(NewExpression, arguments) == 16usize); + assert!(offset_of!(NewExpression, type_parameters) == 32usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(MetaProperty, span) == 0usize); assert!(offset_of!(MetaProperty, meta) == 8usize); - assert!(offset_of!(MetaProperty, property) == 32usize); + assert!(offset_of!(MetaProperty, property) == 24usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(SpreadElement, span) == 0usize); @@ -1292,42 +1292,42 @@ const _: () = { assert!(offset_of!(UpdateExpression, span) == 0usize); assert!(offset_of!(UpdateExpression, operator) == 8usize); assert!(offset_of!(UpdateExpression, prefix) == 9usize); - assert!(offset_of!(UpdateExpression, argument) == 16usize); + assert!(offset_of!(UpdateExpression, argument) == 12usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(UnaryExpression, span) == 0usize); assert!(offset_of!(UnaryExpression, operator) == 8usize); - assert!(offset_of!(UnaryExpression, argument) == 16usize); + assert!(offset_of!(UnaryExpression, argument) == 12usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(BinaryExpression, span) == 0usize); assert!(offset_of!(BinaryExpression, left) == 8usize); - assert!(offset_of!(BinaryExpression, operator) == 24usize); - assert!(offset_of!(BinaryExpression, right) == 32usize); + assert!(offset_of!(BinaryExpression, operator) == 16usize); + assert!(offset_of!(BinaryExpression, right) == 20usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(PrivateInExpression, span) == 0usize); assert!(offset_of!(PrivateInExpression, left) == 8usize); - assert!(offset_of!(PrivateInExpression, operator) == 32usize); - assert!(offset_of!(PrivateInExpression, right) == 40usize); + assert!(offset_of!(PrivateInExpression, operator) == 24usize); + assert!(offset_of!(PrivateInExpression, right) == 28usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(LogicalExpression, span) == 0usize); assert!(offset_of!(LogicalExpression, left) == 8usize); - assert!(offset_of!(LogicalExpression, operator) == 24usize); - assert!(offset_of!(LogicalExpression, right) == 32usize); + assert!(offset_of!(LogicalExpression, operator) == 16usize); + assert!(offset_of!(LogicalExpression, right) == 20usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(ConditionalExpression, span) == 0usize); assert!(offset_of!(ConditionalExpression, test) == 8usize); - assert!(offset_of!(ConditionalExpression, consequent) == 24usize); - assert!(offset_of!(ConditionalExpression, alternate) == 40usize); + assert!(offset_of!(ConditionalExpression, consequent) == 16usize); + assert!(offset_of!(ConditionalExpression, alternate) == 24usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(AssignmentExpression, span) == 0usize); assert!(offset_of!(AssignmentExpression, operator) == 8usize); - assert!(offset_of!(AssignmentExpression, left) == 16usize); - assert!(offset_of!(AssignmentExpression, right) == 32usize); + assert!(offset_of!(AssignmentExpression, left) == 12usize); + assert!(offset_of!(AssignmentExpression, right) == 20usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 8usize); @@ -1338,13 +1338,13 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(ArrayAssignmentTarget, span) == 0usize); assert!(offset_of!(ArrayAssignmentTarget, elements) == 8usize); - assert!(offset_of!(ArrayAssignmentTarget, rest) == 40usize); - assert!(offset_of!(ArrayAssignmentTarget, trailing_comma) == 64usize); + assert!(offset_of!(ArrayAssignmentTarget, rest) == 24usize); + assert!(offset_of!(ArrayAssignmentTarget, trailing_comma) == 40usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(ObjectAssignmentTarget, span) == 0usize); assert!(offset_of!(ObjectAssignmentTarget, properties) == 8usize); - assert!(offset_of!(ObjectAssignmentTarget, rest) == 40usize); + assert!(offset_of!(ObjectAssignmentTarget, rest) == 24usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(AssignmentTargetRest, span) == 0usize); @@ -1355,19 +1355,19 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(AssignmentTargetWithDefault, span) == 0usize); assert!(offset_of!(AssignmentTargetWithDefault, binding) == 8usize); - assert!(offset_of!(AssignmentTargetWithDefault, init) == 24usize); + assert!(offset_of!(AssignmentTargetWithDefault, init) == 16usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(AssignmentTargetPropertyIdentifier, span) == 0usize); assert!(offset_of!(AssignmentTargetPropertyIdentifier, binding) == 8usize); - assert!(offset_of!(AssignmentTargetPropertyIdentifier, init) == 40usize); + assert!(offset_of!(AssignmentTargetPropertyIdentifier, init) == 32usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(AssignmentTargetPropertyProperty, span) == 0usize); assert!(offset_of!(AssignmentTargetPropertyProperty, name) == 8usize); - assert!(offset_of!(AssignmentTargetPropertyProperty, binding) == 24usize); + assert!(offset_of!(AssignmentTargetPropertyProperty, binding) == 16usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(SequenceExpression, span) == 0usize); @@ -1395,7 +1395,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(Directive, span) == 0usize); assert!(offset_of!(Directive, expression) == 8usize); - assert!(offset_of!(Directive, directive) == 32usize); + assert!(offset_of!(Directive, directive) == 24usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(Hashbang, span) == 0usize); @@ -1404,29 +1404,29 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(BlockStatement, span) == 0usize); assert!(offset_of!(BlockStatement, body) == 8usize); - assert!(offset_of!(BlockStatement, scope_id) == 40usize); + assert!(offset_of!(BlockStatement, scope_id) == 24usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(VariableDeclaration, span) == 0usize); assert!(offset_of!(VariableDeclaration, kind) == 8usize); - assert!(offset_of!(VariableDeclaration, declarations) == 16usize); - assert!(offset_of!(VariableDeclaration, declare) == 48usize); + assert!(offset_of!(VariableDeclaration, declarations) == 12usize); + assert!(offset_of!(VariableDeclaration, declare) == 28usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(VariableDeclarator, span) == 0usize); assert!(offset_of!(VariableDeclarator, kind) == 8usize); - assert!(offset_of!(VariableDeclarator, id) == 16usize); - assert!(offset_of!(VariableDeclarator, init) == 48usize); - assert!(offset_of!(VariableDeclarator, definite) == 64usize); + assert!(offset_of!(VariableDeclarator, id) == 12usize); + assert!(offset_of!(VariableDeclarator, init) == 28usize); + assert!(offset_of!(VariableDeclarator, definite) == 36usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(UsingDeclaration, span) == 0usize); assert!(offset_of!(UsingDeclaration, is_await) == 8usize); - assert!(offset_of!(UsingDeclaration, declarations) == 16usize); + assert!(offset_of!(UsingDeclaration, declarations) == 12usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(offset_of!(EmptyStatement, span) == 0usize); @@ -1438,45 +1438,45 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(IfStatement, span) == 0usize); assert!(offset_of!(IfStatement, test) == 8usize); - assert!(offset_of!(IfStatement, consequent) == 24usize); - assert!(offset_of!(IfStatement, alternate) == 40usize); + assert!(offset_of!(IfStatement, consequent) == 16usize); + assert!(offset_of!(IfStatement, alternate) == 24usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(DoWhileStatement, span) == 0usize); assert!(offset_of!(DoWhileStatement, body) == 8usize); - assert!(offset_of!(DoWhileStatement, test) == 24usize); + assert!(offset_of!(DoWhileStatement, test) == 16usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(WhileStatement, span) == 0usize); assert!(offset_of!(WhileStatement, test) == 8usize); - assert!(offset_of!(WhileStatement, body) == 24usize); + assert!(offset_of!(WhileStatement, body) == 16usize); assert!(size_of::() == 44usize); assert!(align_of::() == 4usize); assert!(offset_of!(ForStatement, span) == 0usize); assert!(offset_of!(ForStatement, init) == 8usize); - assert!(offset_of!(ForStatement, test) == 24usize); - assert!(offset_of!(ForStatement, update) == 40usize); - assert!(offset_of!(ForStatement, body) == 56usize); - assert!(offset_of!(ForStatement, scope_id) == 72usize); + assert!(offset_of!(ForStatement, test) == 16usize); + assert!(offset_of!(ForStatement, update) == 24usize); + assert!(offset_of!(ForStatement, body) == 32usize); + assert!(offset_of!(ForStatement, scope_id) == 40usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(ForInStatement, span) == 0usize); assert!(offset_of!(ForInStatement, left) == 8usize); - assert!(offset_of!(ForInStatement, right) == 24usize); - assert!(offset_of!(ForInStatement, body) == 40usize); - assert!(offset_of!(ForInStatement, scope_id) == 56usize); + assert!(offset_of!(ForInStatement, right) == 16usize); + assert!(offset_of!(ForInStatement, body) == 24usize); + assert!(offset_of!(ForInStatement, scope_id) == 32usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(ForOfStatement, span) == 0usize); assert!(offset_of!(ForOfStatement, r#await) == 8usize); - assert!(offset_of!(ForOfStatement, left) == 16usize); - assert!(offset_of!(ForOfStatement, right) == 32usize); - assert!(offset_of!(ForOfStatement, body) == 48usize); - assert!(offset_of!(ForOfStatement, scope_id) == 64usize); + assert!(offset_of!(ForOfStatement, left) == 12usize); + assert!(offset_of!(ForOfStatement, right) == 20usize); + assert!(offset_of!(ForOfStatement, body) == 28usize); + assert!(offset_of!(ForOfStatement, scope_id) == 36usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(ContinueStatement, span) == 0usize); @@ -1493,23 +1493,23 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(WithStatement, span) == 0usize); assert!(offset_of!(WithStatement, object) == 8usize); - assert!(offset_of!(WithStatement, body) == 24usize); + assert!(offset_of!(WithStatement, body) == 16usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(SwitchStatement, span) == 0usize); assert!(offset_of!(SwitchStatement, discriminant) == 8usize); - assert!(offset_of!(SwitchStatement, cases) == 24usize); - assert!(offset_of!(SwitchStatement, scope_id) == 56usize); + assert!(offset_of!(SwitchStatement, cases) == 16usize); + assert!(offset_of!(SwitchStatement, scope_id) == 32usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(SwitchCase, span) == 0usize); assert!(offset_of!(SwitchCase, test) == 8usize); - assert!(offset_of!(SwitchCase, consequent) == 24usize); + assert!(offset_of!(SwitchCase, consequent) == 16usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(LabeledStatement, span) == 0usize); assert!(offset_of!(LabeledStatement, label) == 8usize); - assert!(offset_of!(LabeledStatement, body) == 32usize); + assert!(offset_of!(LabeledStatement, body) == 24usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(ThrowStatement, span) == 0usize); @@ -1518,14 +1518,14 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TryStatement, span) == 0usize); assert!(offset_of!(TryStatement, block) == 8usize); - assert!(offset_of!(TryStatement, handler) == 16usize); - assert!(offset_of!(TryStatement, finalizer) == 24usize); + assert!(offset_of!(TryStatement, handler) == 12usize); + assert!(offset_of!(TryStatement, finalizer) == 16usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(CatchClause, span) == 0usize); assert!(offset_of!(CatchClause, param) == 8usize); - assert!(offset_of!(CatchClause, body) == 48usize); - assert!(offset_of!(CatchClause, scope_id) == 56usize); + assert!(offset_of!(CatchClause, body) == 32usize); + assert!(offset_of!(CatchClause, scope_id) == 36usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(CatchParameter, span) == 0usize); @@ -1536,32 +1536,32 @@ const _: () = { assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(BindingPattern, kind) == 0usize); - assert!(offset_of!(BindingPattern, type_annotation) == 16usize); - assert!(offset_of!(BindingPattern, optional) == 24usize); + assert!(offset_of!(BindingPattern, type_annotation) == 8usize); + assert!(offset_of!(BindingPattern, optional) == 12usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(AssignmentPattern, span) == 0usize); assert!(offset_of!(AssignmentPattern, left) == 8usize); - assert!(offset_of!(AssignmentPattern, right) == 40usize); + assert!(offset_of!(AssignmentPattern, right) == 24usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(ObjectPattern, span) == 0usize); assert!(offset_of!(ObjectPattern, properties) == 8usize); - assert!(offset_of!(ObjectPattern, rest) == 40usize); + assert!(offset_of!(ObjectPattern, rest) == 24usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(BindingProperty, span) == 0usize); assert!(offset_of!(BindingProperty, key) == 8usize); - assert!(offset_of!(BindingProperty, value) == 24usize); - assert!(offset_of!(BindingProperty, shorthand) == 56usize); - assert!(offset_of!(BindingProperty, computed) == 57usize); + assert!(offset_of!(BindingProperty, value) == 16usize); + assert!(offset_of!(BindingProperty, shorthand) == 32usize); + assert!(offset_of!(BindingProperty, computed) == 33usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(ArrayPattern, span) == 0usize); assert!(offset_of!(ArrayPattern, elements) == 8usize); - assert!(offset_of!(ArrayPattern, rest) == 40usize); + assert!(offset_of!(ArrayPattern, rest) == 24usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(BindingRestElement, span) == 0usize); @@ -1570,68 +1570,68 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(Function, r#type) == 0usize); assert!(offset_of!(Function, span) == 4usize); - assert!(offset_of!(Function, id) == 16usize); - assert!(offset_of!(Function, generator) == 48usize); - assert!(offset_of!(Function, r#async) == 49usize); - assert!(offset_of!(Function, declare) == 50usize); - assert!(offset_of!(Function, type_parameters) == 56usize); - assert!(offset_of!(Function, this_param) == 64usize); - assert!(offset_of!(Function, params) == 104usize); - assert!(offset_of!(Function, return_type) == 112usize); - assert!(offset_of!(Function, body) == 120usize); - assert!(offset_of!(Function, scope_id) == 128usize); + assert!(offset_of!(Function, id) == 12usize); + assert!(offset_of!(Function, generator) == 32usize); + assert!(offset_of!(Function, r#async) == 33usize); + assert!(offset_of!(Function, declare) == 34usize); + assert!(offset_of!(Function, type_parameters) == 36usize); + assert!(offset_of!(Function, this_param) == 40usize); + assert!(offset_of!(Function, params) == 68usize); + assert!(offset_of!(Function, return_type) == 72usize); + assert!(offset_of!(Function, body) == 76usize); + assert!(offset_of!(Function, scope_id) == 80usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(FormalParameters, span) == 0usize); assert!(offset_of!(FormalParameters, kind) == 8usize); - assert!(offset_of!(FormalParameters, items) == 16usize); - assert!(offset_of!(FormalParameters, rest) == 48usize); + assert!(offset_of!(FormalParameters, items) == 12usize); + assert!(offset_of!(FormalParameters, rest) == 28usize); assert!(size_of::() == 44usize); assert!(align_of::() == 4usize); assert!(offset_of!(FormalParameter, span) == 0usize); assert!(offset_of!(FormalParameter, decorators) == 8usize); - assert!(offset_of!(FormalParameter, pattern) == 40usize); - assert!(offset_of!(FormalParameter, accessibility) == 72usize); - assert!(offset_of!(FormalParameter, readonly) == 73usize); - assert!(offset_of!(FormalParameter, r#override) == 74usize); + assert!(offset_of!(FormalParameter, pattern) == 24usize); + assert!(offset_of!(FormalParameter, accessibility) == 40usize); + assert!(offset_of!(FormalParameter, readonly) == 41usize); + assert!(offset_of!(FormalParameter, r#override) == 42usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(FunctionBody, span) == 0usize); assert!(offset_of!(FunctionBody, directives) == 8usize); - assert!(offset_of!(FunctionBody, statements) == 40usize); + assert!(offset_of!(FunctionBody, statements) == 24usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(ArrowFunctionExpression, span) == 0usize); assert!(offset_of!(ArrowFunctionExpression, expression) == 8usize); assert!(offset_of!(ArrowFunctionExpression, r#async) == 9usize); - assert!(offset_of!(ArrowFunctionExpression, type_parameters) == 16usize); - assert!(offset_of!(ArrowFunctionExpression, params) == 24usize); - assert!(offset_of!(ArrowFunctionExpression, return_type) == 32usize); - assert!(offset_of!(ArrowFunctionExpression, body) == 40usize); - assert!(offset_of!(ArrowFunctionExpression, scope_id) == 48usize); + assert!(offset_of!(ArrowFunctionExpression, type_parameters) == 12usize); + assert!(offset_of!(ArrowFunctionExpression, params) == 16usize); + assert!(offset_of!(ArrowFunctionExpression, return_type) == 20usize); + assert!(offset_of!(ArrowFunctionExpression, body) == 24usize); + assert!(offset_of!(ArrowFunctionExpression, scope_id) == 28usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(YieldExpression, span) == 0usize); assert!(offset_of!(YieldExpression, delegate) == 8usize); - assert!(offset_of!(YieldExpression, argument) == 16usize); + assert!(offset_of!(YieldExpression, argument) == 12usize); assert!(size_of::() == 92usize); assert!(align_of::() == 4usize); assert!(offset_of!(Class, r#type) == 0usize); assert!(offset_of!(Class, span) == 4usize); - assert!(offset_of!(Class, decorators) == 16usize); - assert!(offset_of!(Class, id) == 48usize); - assert!(offset_of!(Class, type_parameters) == 80usize); - assert!(offset_of!(Class, super_class) == 88usize); - assert!(offset_of!(Class, super_type_parameters) == 104usize); - assert!(offset_of!(Class, implements) == 112usize); - assert!(offset_of!(Class, body) == 144usize); - assert!(offset_of!(Class, r#abstract) == 152usize); - assert!(offset_of!(Class, declare) == 153usize); - assert!(offset_of!(Class, scope_id) == 156usize); + assert!(offset_of!(Class, decorators) == 12usize); + assert!(offset_of!(Class, id) == 28usize); + assert!(offset_of!(Class, type_parameters) == 48usize); + assert!(offset_of!(Class, super_class) == 52usize); + assert!(offset_of!(Class, super_type_parameters) == 60usize); + assert!(offset_of!(Class, implements) == 64usize); + assert!(offset_of!(Class, body) == 80usize); + assert!(offset_of!(Class, r#abstract) == 84usize); + assert!(offset_of!(Class, declare) == 85usize); + assert!(offset_of!(Class, scope_id) == 88usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 24usize); @@ -1644,33 +1644,33 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(MethodDefinition, r#type) == 0usize); assert!(offset_of!(MethodDefinition, span) == 4usize); - assert!(offset_of!(MethodDefinition, decorators) == 16usize); - assert!(offset_of!(MethodDefinition, key) == 48usize); - assert!(offset_of!(MethodDefinition, value) == 64usize); - assert!(offset_of!(MethodDefinition, kind) == 72usize); - assert!(offset_of!(MethodDefinition, computed) == 73usize); - assert!(offset_of!(MethodDefinition, r#static) == 74usize); - assert!(offset_of!(MethodDefinition, r#override) == 75usize); - assert!(offset_of!(MethodDefinition, optional) == 76usize); - assert!(offset_of!(MethodDefinition, accessibility) == 77usize); + assert!(offset_of!(MethodDefinition, decorators) == 12usize); + assert!(offset_of!(MethodDefinition, key) == 28usize); + assert!(offset_of!(MethodDefinition, value) == 36usize); + assert!(offset_of!(MethodDefinition, kind) == 40usize); + assert!(offset_of!(MethodDefinition, computed) == 41usize); + assert!(offset_of!(MethodDefinition, r#static) == 42usize); + assert!(offset_of!(MethodDefinition, r#override) == 43usize); + assert!(offset_of!(MethodDefinition, optional) == 44usize); + assert!(offset_of!(MethodDefinition, accessibility) == 45usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 60usize); assert!(align_of::() == 4usize); assert!(offset_of!(PropertyDefinition, r#type) == 0usize); assert!(offset_of!(PropertyDefinition, span) == 4usize); - assert!(offset_of!(PropertyDefinition, decorators) == 16usize); - assert!(offset_of!(PropertyDefinition, key) == 48usize); - assert!(offset_of!(PropertyDefinition, value) == 64usize); - assert!(offset_of!(PropertyDefinition, computed) == 80usize); - assert!(offset_of!(PropertyDefinition, r#static) == 81usize); - assert!(offset_of!(PropertyDefinition, declare) == 82usize); - assert!(offset_of!(PropertyDefinition, r#override) == 83usize); - assert!(offset_of!(PropertyDefinition, optional) == 84usize); - assert!(offset_of!(PropertyDefinition, definite) == 85usize); - assert!(offset_of!(PropertyDefinition, readonly) == 86usize); - assert!(offset_of!(PropertyDefinition, type_annotation) == 88usize); - assert!(offset_of!(PropertyDefinition, accessibility) == 96usize); + assert!(offset_of!(PropertyDefinition, decorators) == 12usize); + assert!(offset_of!(PropertyDefinition, key) == 28usize); + assert!(offset_of!(PropertyDefinition, value) == 36usize); + assert!(offset_of!(PropertyDefinition, computed) == 44usize); + assert!(offset_of!(PropertyDefinition, r#static) == 45usize); + assert!(offset_of!(PropertyDefinition, declare) == 46usize); + assert!(offset_of!(PropertyDefinition, r#override) == 47usize); + assert!(offset_of!(PropertyDefinition, optional) == 48usize); + assert!(offset_of!(PropertyDefinition, definite) == 49usize); + assert!(offset_of!(PropertyDefinition, readonly) == 50usize); + assert!(offset_of!(PropertyDefinition, type_annotation) == 52usize); + assert!(offset_of!(PropertyDefinition, accessibility) == 56usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 1usize); @@ -1683,7 +1683,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(StaticBlock, span) == 0usize); assert!(offset_of!(StaticBlock, body) == 8usize); - assert!(offset_of!(StaticBlock, scope_id) == 40usize); + assert!(offset_of!(StaticBlock, scope_id) == 24usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 1usize); @@ -1692,31 +1692,31 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(AccessorProperty, r#type) == 0usize); assert!(offset_of!(AccessorProperty, span) == 4usize); - assert!(offset_of!(AccessorProperty, decorators) == 16usize); - assert!(offset_of!(AccessorProperty, key) == 48usize); - assert!(offset_of!(AccessorProperty, value) == 64usize); - assert!(offset_of!(AccessorProperty, computed) == 80usize); - assert!(offset_of!(AccessorProperty, r#static) == 81usize); + assert!(offset_of!(AccessorProperty, decorators) == 12usize); + assert!(offset_of!(AccessorProperty, key) == 28usize); + assert!(offset_of!(AccessorProperty, value) == 36usize); + assert!(offset_of!(AccessorProperty, computed) == 44usize); + assert!(offset_of!(AccessorProperty, r#static) == 45usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(ImportExpression, span) == 0usize); assert!(offset_of!(ImportExpression, source) == 8usize); - assert!(offset_of!(ImportExpression, arguments) == 24usize); + assert!(offset_of!(ImportExpression, arguments) == 16usize); assert!(size_of::() == 84usize); assert!(align_of::() == 4usize); assert!(offset_of!(ImportDeclaration, span) == 0usize); assert!(offset_of!(ImportDeclaration, specifiers) == 8usize); - assert!(offset_of!(ImportDeclaration, source) == 40usize); - assert!(offset_of!(ImportDeclaration, with_clause) == 64usize); - assert!(offset_of!(ImportDeclaration, import_kind) == 128usize); + assert!(offset_of!(ImportDeclaration, source) == 24usize); + assert!(offset_of!(ImportDeclaration, with_clause) == 40usize); + assert!(offset_of!(ImportDeclaration, import_kind) == 80usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 60usize); assert!(align_of::() == 4usize); assert!(offset_of!(ImportSpecifier, span) == 0usize); assert!(offset_of!(ImportSpecifier, imported) == 8usize); - assert!(offset_of!(ImportSpecifier, local) == 48usize); - assert!(offset_of!(ImportSpecifier, import_kind) == 80usize); + assert!(offset_of!(ImportSpecifier, local) == 36usize); + assert!(offset_of!(ImportSpecifier, import_kind) == 56usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(ImportDefaultSpecifier, span) == 0usize); @@ -1729,40 +1729,40 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(WithClause, span) == 0usize); assert!(offset_of!(WithClause, attributes_keyword) == 8usize); - assert!(offset_of!(WithClause, with_entries) == 32usize); + assert!(offset_of!(WithClause, with_entries) == 24usize); assert!(size_of::() == 44usize); assert!(align_of::() == 4usize); assert!(offset_of!(ImportAttribute, span) == 0usize); assert!(offset_of!(ImportAttribute, key) == 8usize); - assert!(offset_of!(ImportAttribute, value) == 40usize); + assert!(offset_of!(ImportAttribute, value) == 28usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(size_of::() == 92usize); assert!(align_of::() == 4usize); assert!(offset_of!(ExportNamedDeclaration, span) == 0usize); assert!(offset_of!(ExportNamedDeclaration, declaration) == 8usize); - assert!(offset_of!(ExportNamedDeclaration, specifiers) == 24usize); - assert!(offset_of!(ExportNamedDeclaration, source) == 56usize); - assert!(offset_of!(ExportNamedDeclaration, export_kind) == 80usize); - assert!(offset_of!(ExportNamedDeclaration, with_clause) == 88usize); + assert!(offset_of!(ExportNamedDeclaration, specifiers) == 16usize); + assert!(offset_of!(ExportNamedDeclaration, source) == 32usize); + assert!(offset_of!(ExportNamedDeclaration, export_kind) == 48usize); + assert!(offset_of!(ExportNamedDeclaration, with_clause) == 52usize); assert!(size_of::() == 44usize); assert!(align_of::() == 4usize); assert!(offset_of!(ExportDefaultDeclaration, span) == 0usize); assert!(offset_of!(ExportDefaultDeclaration, declaration) == 8usize); - assert!(offset_of!(ExportDefaultDeclaration, exported) == 24usize); + assert!(offset_of!(ExportDefaultDeclaration, exported) == 16usize); assert!(size_of::() == 96usize); assert!(align_of::() == 4usize); assert!(offset_of!(ExportAllDeclaration, span) == 0usize); assert!(offset_of!(ExportAllDeclaration, exported) == 8usize); - assert!(offset_of!(ExportAllDeclaration, source) == 48usize); - assert!(offset_of!(ExportAllDeclaration, with_clause) == 72usize); - assert!(offset_of!(ExportAllDeclaration, export_kind) == 136usize); + assert!(offset_of!(ExportAllDeclaration, source) == 36usize); + assert!(offset_of!(ExportAllDeclaration, with_clause) == 52usize); + assert!(offset_of!(ExportAllDeclaration, export_kind) == 92usize); assert!(size_of::() == 68usize); assert!(align_of::() == 4usize); assert!(offset_of!(ExportSpecifier, span) == 0usize); assert!(offset_of!(ExportSpecifier, local) == 8usize); - assert!(offset_of!(ExportSpecifier, exported) == 48usize); - assert!(offset_of!(ExportSpecifier, export_kind) == 88usize); + assert!(offset_of!(ExportSpecifier, exported) == 36usize); + assert!(offset_of!(ExportSpecifier, export_kind) == 64usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 28usize); @@ -1771,20 +1771,20 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSThisParameter, span) == 0usize); assert!(offset_of!(TSThisParameter, this) == 8usize); - assert!(offset_of!(TSThisParameter, type_annotation) == 32usize); + assert!(offset_of!(TSThisParameter, type_annotation) == 24usize); assert!(size_of::() == 52usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSEnumDeclaration, span) == 0usize); assert!(offset_of!(TSEnumDeclaration, id) == 8usize); - assert!(offset_of!(TSEnumDeclaration, members) == 40usize); - assert!(offset_of!(TSEnumDeclaration, r#const) == 72usize); - assert!(offset_of!(TSEnumDeclaration, declare) == 73usize); - assert!(offset_of!(TSEnumDeclaration, scope_id) == 76usize); + assert!(offset_of!(TSEnumDeclaration, members) == 28usize); + assert!(offset_of!(TSEnumDeclaration, r#const) == 44usize); + assert!(offset_of!(TSEnumDeclaration, declare) == 45usize); + assert!(offset_of!(TSEnumDeclaration, scope_id) == 48usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSEnumMember, span) == 0usize); assert!(offset_of!(TSEnumMember, id) == 8usize); - assert!(offset_of!(TSEnumMember, initializer) == 24usize); + assert!(offset_of!(TSEnumMember, initializer) == 16usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 16usize); @@ -1803,10 +1803,10 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSConditionalType, span) == 0usize); assert!(offset_of!(TSConditionalType, check_type) == 8usize); - assert!(offset_of!(TSConditionalType, extends_type) == 24usize); - assert!(offset_of!(TSConditionalType, true_type) == 40usize); - assert!(offset_of!(TSConditionalType, false_type) == 56usize); - assert!(offset_of!(TSConditionalType, scope_id) == 72usize); + assert!(offset_of!(TSConditionalType, extends_type) == 16usize); + assert!(offset_of!(TSConditionalType, true_type) == 24usize); + assert!(offset_of!(TSConditionalType, false_type) == 32usize); + assert!(offset_of!(TSConditionalType, scope_id) == 40usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSUnionType, span) == 0usize); @@ -1823,7 +1823,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeOperator, span) == 0usize); assert!(offset_of!(TSTypeOperator, operator) == 8usize); - assert!(offset_of!(TSTypeOperator, type_annotation) == 16usize); + assert!(offset_of!(TSTypeOperator, type_annotation) == 12usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 16usize); @@ -1834,7 +1834,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSIndexedAccessType, span) == 0usize); assert!(offset_of!(TSIndexedAccessType, object_type) == 8usize); - assert!(offset_of!(TSIndexedAccessType, index_type) == 24usize); + assert!(offset_of!(TSIndexedAccessType, index_type) == 16usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTupleType, span) == 0usize); @@ -1843,8 +1843,8 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSNamedTupleMember, span) == 0usize); assert!(offset_of!(TSNamedTupleMember, element_type) == 8usize); - assert!(offset_of!(TSNamedTupleMember, label) == 24usize); - assert!(offset_of!(TSNamedTupleMember, optional) == 48usize); + assert!(offset_of!(TSNamedTupleMember, label) == 16usize); + assert!(offset_of!(TSNamedTupleMember, optional) == 32usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSOptionalType, span) == 0usize); @@ -1901,14 +1901,14 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeReference, span) == 0usize); assert!(offset_of!(TSTypeReference, type_name) == 8usize); - assert!(offset_of!(TSTypeReference, type_parameters) == 24usize); + assert!(offset_of!(TSTypeReference, type_parameters) == 16usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSQualifiedName, span) == 0usize); assert!(offset_of!(TSQualifiedName, left) == 8usize); - assert!(offset_of!(TSQualifiedName, right) == 24usize); + assert!(offset_of!(TSQualifiedName, right) == 16usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeParameterInstantiation, span) == 0usize); @@ -1917,11 +1917,11 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeParameter, span) == 0usize); assert!(offset_of!(TSTypeParameter, name) == 8usize); - assert!(offset_of!(TSTypeParameter, constraint) == 40usize); - assert!(offset_of!(TSTypeParameter, default) == 56usize); - assert!(offset_of!(TSTypeParameter, r#in) == 72usize); - assert!(offset_of!(TSTypeParameter, out) == 73usize); - assert!(offset_of!(TSTypeParameter, r#const) == 74usize); + assert!(offset_of!(TSTypeParameter, constraint) == 28usize); + assert!(offset_of!(TSTypeParameter, default) == 36usize); + assert!(offset_of!(TSTypeParameter, r#in) == 44usize); + assert!(offset_of!(TSTypeParameter, out) == 45usize); + assert!(offset_of!(TSTypeParameter, r#const) == 46usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeParameterDeclaration, span) == 0usize); @@ -1930,26 +1930,26 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeAliasDeclaration, span) == 0usize); assert!(offset_of!(TSTypeAliasDeclaration, id) == 8usize); - assert!(offset_of!(TSTypeAliasDeclaration, type_parameters) == 40usize); - assert!(offset_of!(TSTypeAliasDeclaration, type_annotation) == 48usize); - assert!(offset_of!(TSTypeAliasDeclaration, declare) == 64usize); - assert!(offset_of!(TSTypeAliasDeclaration, scope_id) == 68usize); + assert!(offset_of!(TSTypeAliasDeclaration, type_parameters) == 28usize); + assert!(offset_of!(TSTypeAliasDeclaration, type_annotation) == 32usize); + assert!(offset_of!(TSTypeAliasDeclaration, declare) == 40usize); + assert!(offset_of!(TSTypeAliasDeclaration, scope_id) == 44usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSClassImplements, span) == 0usize); assert!(offset_of!(TSClassImplements, expression) == 8usize); - assert!(offset_of!(TSClassImplements, type_parameters) == 24usize); + assert!(offset_of!(TSClassImplements, type_parameters) == 16usize); assert!(size_of::() == 60usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSInterfaceDeclaration, span) == 0usize); assert!(offset_of!(TSInterfaceDeclaration, id) == 8usize); - assert!(offset_of!(TSInterfaceDeclaration, extends) == 40usize); - assert!(offset_of!(TSInterfaceDeclaration, type_parameters) == 72usize); - assert!(offset_of!(TSInterfaceDeclaration, body) == 80usize); - assert!(offset_of!(TSInterfaceDeclaration, declare) == 88usize); - assert!(offset_of!(TSInterfaceDeclaration, scope_id) == 92usize); + assert!(offset_of!(TSInterfaceDeclaration, extends) == 28usize); + assert!(offset_of!(TSInterfaceDeclaration, type_parameters) == 44usize); + assert!(offset_of!(TSInterfaceDeclaration, body) == 48usize); + assert!(offset_of!(TSInterfaceDeclaration, declare) == 52usize); + assert!(offset_of!(TSInterfaceDeclaration, scope_id) == 56usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSInterfaceBody, span) == 0usize); @@ -1960,70 +1960,70 @@ const _: () = { assert!(offset_of!(TSPropertySignature, computed) == 8usize); assert!(offset_of!(TSPropertySignature, optional) == 9usize); assert!(offset_of!(TSPropertySignature, readonly) == 10usize); - assert!(offset_of!(TSPropertySignature, key) == 16usize); - assert!(offset_of!(TSPropertySignature, type_annotation) == 32usize); + assert!(offset_of!(TSPropertySignature, key) == 12usize); + assert!(offset_of!(TSPropertySignature, type_annotation) == 20usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSIndexSignature, span) == 0usize); assert!(offset_of!(TSIndexSignature, parameters) == 8usize); - assert!(offset_of!(TSIndexSignature, type_annotation) == 40usize); - assert!(offset_of!(TSIndexSignature, readonly) == 48usize); + assert!(offset_of!(TSIndexSignature, type_annotation) == 24usize); + assert!(offset_of!(TSIndexSignature, readonly) == 28usize); assert!(size_of::() == 48usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSCallSignatureDeclaration, span) == 0usize); assert!(offset_of!(TSCallSignatureDeclaration, this_param) == 8usize); - assert!(offset_of!(TSCallSignatureDeclaration, params) == 48usize); - assert!(offset_of!(TSCallSignatureDeclaration, return_type) == 56usize); - assert!(offset_of!(TSCallSignatureDeclaration, type_parameters) == 64usize); + assert!(offset_of!(TSCallSignatureDeclaration, params) == 36usize); + assert!(offset_of!(TSCallSignatureDeclaration, return_type) == 40usize); + assert!(offset_of!(TSCallSignatureDeclaration, type_parameters) == 44usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 64usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSMethodSignature, span) == 0usize); assert!(offset_of!(TSMethodSignature, key) == 8usize); - assert!(offset_of!(TSMethodSignature, computed) == 24usize); - assert!(offset_of!(TSMethodSignature, optional) == 25usize); - assert!(offset_of!(TSMethodSignature, kind) == 26usize); - assert!(offset_of!(TSMethodSignature, this_param) == 32usize); - assert!(offset_of!(TSMethodSignature, params) == 72usize); - assert!(offset_of!(TSMethodSignature, return_type) == 80usize); - assert!(offset_of!(TSMethodSignature, type_parameters) == 88usize); - assert!(offset_of!(TSMethodSignature, scope_id) == 96usize); + assert!(offset_of!(TSMethodSignature, computed) == 16usize); + assert!(offset_of!(TSMethodSignature, optional) == 17usize); + assert!(offset_of!(TSMethodSignature, kind) == 18usize); + assert!(offset_of!(TSMethodSignature, this_param) == 20usize); + assert!(offset_of!(TSMethodSignature, params) == 48usize); + assert!(offset_of!(TSMethodSignature, return_type) == 52usize); + assert!(offset_of!(TSMethodSignature, type_parameters) == 56usize); + assert!(offset_of!(TSMethodSignature, scope_id) == 60usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSConstructSignatureDeclaration, span) == 0usize); assert!(offset_of!(TSConstructSignatureDeclaration, params) == 8usize); - assert!(offset_of!(TSConstructSignatureDeclaration, return_type) == 16usize); - assert!(offset_of!(TSConstructSignatureDeclaration, type_parameters) == 24usize); - assert!(offset_of!(TSConstructSignatureDeclaration, scope_id) == 32usize); + assert!(offset_of!(TSConstructSignatureDeclaration, return_type) == 12usize); + assert!(offset_of!(TSConstructSignatureDeclaration, type_parameters) == 16usize); + assert!(offset_of!(TSConstructSignatureDeclaration, scope_id) == 20usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSIndexSignatureName, span) == 0usize); assert!(offset_of!(TSIndexSignatureName, name) == 8usize); - assert!(offset_of!(TSIndexSignatureName, type_annotation) == 24usize); + assert!(offset_of!(TSIndexSignatureName, type_annotation) == 16usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSInterfaceHeritage, span) == 0usize); assert!(offset_of!(TSInterfaceHeritage, expression) == 8usize); - assert!(offset_of!(TSInterfaceHeritage, type_parameters) == 24usize); + assert!(offset_of!(TSInterfaceHeritage, type_parameters) == 16usize); assert!(size_of::() == 28usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTypePredicate, span) == 0usize); assert!(offset_of!(TSTypePredicate, parameter_name) == 8usize); - assert!(offset_of!(TSTypePredicate, asserts) == 24usize); - assert!(offset_of!(TSTypePredicate, type_annotation) == 32usize); + assert!(offset_of!(TSTypePredicate, asserts) == 20usize); + assert!(offset_of!(TSTypePredicate, type_annotation) == 24usize); assert!(size_of::() == 12usize); assert!(align_of::() == 4usize); assert!(size_of::() == 44usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSModuleDeclaration, span) == 0usize); assert!(offset_of!(TSModuleDeclaration, id) == 8usize); - assert!(offset_of!(TSModuleDeclaration, body) == 40usize); - assert!(offset_of!(TSModuleDeclaration, kind) == 56usize); - assert!(offset_of!(TSModuleDeclaration, declare) == 57usize); - assert!(offset_of!(TSModuleDeclaration, scope_id) == 60usize); + assert!(offset_of!(TSModuleDeclaration, body) == 28usize); + assert!(offset_of!(TSModuleDeclaration, kind) == 36usize); + assert!(offset_of!(TSModuleDeclaration, declare) == 37usize); + assert!(offset_of!(TSModuleDeclaration, scope_id) == 40usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 20usize); @@ -2034,7 +2034,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSModuleBlock, span) == 0usize); assert!(offset_of!(TSModuleBlock, directives) == 8usize); - assert!(offset_of!(TSModuleBlock, body) == 40usize); + assert!(offset_of!(TSModuleBlock, body) == 24usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeLiteral, span) == 0usize); @@ -2047,17 +2047,17 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeQuery, span) == 0usize); assert!(offset_of!(TSTypeQuery, expr_name) == 8usize); - assert!(offset_of!(TSTypeQuery, type_parameters) == 24usize); + assert!(offset_of!(TSTypeQuery, type_parameters) == 16usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 56usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSImportType, span) == 0usize); assert!(offset_of!(TSImportType, is_type_of) == 8usize); - assert!(offset_of!(TSImportType, parameter) == 16usize); - assert!(offset_of!(TSImportType, qualifier) == 32usize); - assert!(offset_of!(TSImportType, attributes) == 48usize); - assert!(offset_of!(TSImportType, type_parameters) == 88usize); + assert!(offset_of!(TSImportType, parameter) == 12usize); + assert!(offset_of!(TSImportType, qualifier) == 20usize); + assert!(offset_of!(TSImportType, attributes) == 28usize); + assert!(offset_of!(TSImportType, type_parameters) == 52usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSImportAttributes, span) == 0usize); @@ -2066,60 +2066,60 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSImportAttribute, span) == 0usize); assert!(offset_of!(TSImportAttribute, name) == 8usize); - assert!(offset_of!(TSImportAttribute, value) == 40usize); + assert!(offset_of!(TSImportAttribute, value) == 28usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(size_of::() == 48usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSFunctionType, span) == 0usize); assert!(offset_of!(TSFunctionType, this_param) == 8usize); - assert!(offset_of!(TSFunctionType, params) == 48usize); - assert!(offset_of!(TSFunctionType, return_type) == 56usize); - assert!(offset_of!(TSFunctionType, type_parameters) == 64usize); + assert!(offset_of!(TSFunctionType, params) == 36usize); + assert!(offset_of!(TSFunctionType, return_type) == 40usize); + assert!(offset_of!(TSFunctionType, type_parameters) == 44usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSConstructorType, span) == 0usize); assert!(offset_of!(TSConstructorType, r#abstract) == 8usize); - assert!(offset_of!(TSConstructorType, params) == 16usize); - assert!(offset_of!(TSConstructorType, return_type) == 24usize); - assert!(offset_of!(TSConstructorType, type_parameters) == 32usize); + assert!(offset_of!(TSConstructorType, params) == 12usize); + assert!(offset_of!(TSConstructorType, return_type) == 16usize); + assert!(offset_of!(TSConstructorType, type_parameters) == 20usize); assert!(size_of::() == 36usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSMappedType, span) == 0usize); assert!(offset_of!(TSMappedType, type_parameter) == 8usize); - assert!(offset_of!(TSMappedType, name_type) == 16usize); - assert!(offset_of!(TSMappedType, type_annotation) == 32usize); - assert!(offset_of!(TSMappedType, optional) == 48usize); - assert!(offset_of!(TSMappedType, readonly) == 49usize); - assert!(offset_of!(TSMappedType, scope_id) == 52usize); + assert!(offset_of!(TSMappedType, name_type) == 12usize); + assert!(offset_of!(TSMappedType, type_annotation) == 20usize); + assert!(offset_of!(TSMappedType, optional) == 28usize); + assert!(offset_of!(TSMappedType, readonly) == 29usize); + assert!(offset_of!(TSMappedType, scope_id) == 32usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTemplateLiteralType, span) == 0usize); assert!(offset_of!(TSTemplateLiteralType, quasis) == 8usize); - assert!(offset_of!(TSTemplateLiteralType, types) == 40usize); + assert!(offset_of!(TSTemplateLiteralType, types) == 24usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSAsExpression, span) == 0usize); assert!(offset_of!(TSAsExpression, expression) == 8usize); - assert!(offset_of!(TSAsExpression, type_annotation) == 24usize); + assert!(offset_of!(TSAsExpression, type_annotation) == 16usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSSatisfiesExpression, span) == 0usize); assert!(offset_of!(TSSatisfiesExpression, expression) == 8usize); - assert!(offset_of!(TSSatisfiesExpression, type_annotation) == 24usize); + assert!(offset_of!(TSSatisfiesExpression, type_annotation) == 16usize); assert!(size_of::() == 24usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSTypeAssertion, span) == 0usize); assert!(offset_of!(TSTypeAssertion, expression) == 8usize); - assert!(offset_of!(TSTypeAssertion, type_annotation) == 24usize); + assert!(offset_of!(TSTypeAssertion, type_annotation) == 16usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(TSImportEqualsDeclaration, span) == 0usize); assert!(offset_of!(TSImportEqualsDeclaration, id) == 8usize); - assert!(offset_of!(TSImportEqualsDeclaration, module_reference) == 40usize); - assert!(offset_of!(TSImportEqualsDeclaration, import_kind) == 56usize); + assert!(offset_of!(TSImportEqualsDeclaration, module_reference) == 28usize); + assert!(offset_of!(TSImportEqualsDeclaration, import_kind) == 36usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 24usize); @@ -2146,19 +2146,19 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(TSInstantiationExpression, span) == 0usize); assert!(offset_of!(TSInstantiationExpression, expression) == 8usize); - assert!(offset_of!(TSInstantiationExpression, type_parameters) == 24usize); + assert!(offset_of!(TSInstantiationExpression, type_parameters) == 16usize); assert!(size_of::() == 1usize); assert!(align_of::() == 1usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSDocNullableType, span) == 0usize); assert!(offset_of!(JSDocNullableType, type_annotation) == 8usize); - assert!(offset_of!(JSDocNullableType, postfix) == 24usize); + assert!(offset_of!(JSDocNullableType, postfix) == 16usize); assert!(size_of::() == 20usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSDocNonNullableType, span) == 0usize); assert!(offset_of!(JSDocNonNullableType, type_annotation) == 8usize); - assert!(offset_of!(JSDocNonNullableType, postfix) == 24usize); + assert!(offset_of!(JSDocNonNullableType, postfix) == 16usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSDocUnknownType, span) == 0usize); @@ -2166,15 +2166,15 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(JSXElement, span) == 0usize); assert!(offset_of!(JSXElement, opening_element) == 8usize); - assert!(offset_of!(JSXElement, closing_element) == 16usize); - assert!(offset_of!(JSXElement, children) == 24usize); + assert!(offset_of!(JSXElement, closing_element) == 12usize); + assert!(offset_of!(JSXElement, children) == 16usize); assert!(size_of::() == 40usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSXOpeningElement, span) == 0usize); assert!(offset_of!(JSXOpeningElement, self_closing) == 8usize); - assert!(offset_of!(JSXOpeningElement, name) == 16usize); - assert!(offset_of!(JSXOpeningElement, attributes) == 32usize); - assert!(offset_of!(JSXOpeningElement, type_parameters) == 64usize); + assert!(offset_of!(JSXOpeningElement, name) == 12usize); + assert!(offset_of!(JSXOpeningElement, attributes) == 20usize); + assert!(offset_of!(JSXOpeningElement, type_parameters) == 36usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSXClosingElement, span) == 0usize); @@ -2197,12 +2197,12 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(JSXNamespacedName, span) == 0usize); assert!(offset_of!(JSXNamespacedName, namespace) == 8usize); - assert!(offset_of!(JSXNamespacedName, property) == 32usize); + assert!(offset_of!(JSXNamespacedName, property) == 24usize); assert!(size_of::() == 32usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSXMemberExpression, span) == 0usize); assert!(offset_of!(JSXMemberExpression, object) == 8usize); - assert!(offset_of!(JSXMemberExpression, property) == 24usize); + assert!(offset_of!(JSXMemberExpression, property) == 16usize); assert!(size_of::() == 8usize); assert!(align_of::() == 4usize); assert!(size_of::() == 20usize); @@ -2220,7 +2220,7 @@ const _: () = { assert!(align_of::() == 4usize); assert!(offset_of!(JSXAttribute, span) == 0usize); assert!(offset_of!(JSXAttribute, name) == 8usize); - assert!(offset_of!(JSXAttribute, value) == 24usize); + assert!(offset_of!(JSXAttribute, value) == 16usize); assert!(size_of::() == 16usize); assert!(align_of::() == 4usize); assert!(offset_of!(JSXSpreadAttribute, span) == 0usize); diff --git a/tasks/ast_codegen/src/generators/assert_layouts.rs b/tasks/ast_codegen/src/generators/assert_layouts.rs index 8fac98436e6975..c078075aed46ae 100644 --- a/tasks/ast_codegen/src/generators/assert_layouts.rs +++ b/tasks/ast_codegen/src/generators/assert_layouts.rs @@ -82,7 +82,7 @@ fn assert_type(ty: &Type, def: &TypeDef) -> (TokenStream, TokenStream) { assert_size_align(ty, def.size_32, def.align_32), ty, &def.fields, - def.offsets_64.as_deref(), + def.offsets_32.as_deref(), ), ), TypeDef::Enum(def) => (