diff --git a/crates/oxc_allocator/src/generated/assert_layouts.rs b/crates/oxc_allocator/src/generated/assert_layouts.rs index 9cbb0cc09248a..5710f63c789aa 100644 --- a/crates/oxc_allocator/src/generated/assert_layouts.rs +++ b/crates/oxc_allocator/src/generated/assert_layouts.rs @@ -12,8 +12,8 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(FixedSizeAllocatorMetadata, id) == 8); assert!(offset_of!(FixedSizeAllocatorMetadata, alloc_ptr) == 0); + assert!(offset_of!(FixedSizeAllocatorMetadata, id) == 8); assert!(offset_of!(FixedSizeAllocatorMetadata, is_double_owned) == 12); }; @@ -22,8 +22,8 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(FixedSizeAllocatorMetadata, id) == 4); assert!(offset_of!(FixedSizeAllocatorMetadata, alloc_ptr) == 0); + assert!(offset_of!(FixedSizeAllocatorMetadata, id) == 4); assert!(offset_of!(FixedSizeAllocatorMetadata, is_double_owned) == 8); }; diff --git a/crates/oxc_ast/src/generated/assert_layouts.rs b/crates/oxc_ast/src/generated/assert_layouts.rs index fd7a295fb9432..7c9f3c8f29786 100644 --- a/crates/oxc_ast/src/generated/assert_layouts.rs +++ b/crates/oxc_ast/src/generated/assert_layouts.rs @@ -12,15 +12,15 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 144); assert!(align_of::() == 8); - assert!(offset_of!(Program, node_id) == 128); assert!(offset_of!(Program, span) == 0); - assert!(offset_of!(Program, source_type) == 136); assert!(offset_of!(Program, source_text) == 8); assert!(offset_of!(Program, comments) == 24); assert!(offset_of!(Program, hashbang) == 48); assert!(offset_of!(Program, directives) == 80); assert!(offset_of!(Program, body) == 104); + assert!(offset_of!(Program, node_id) == 128); assert!(offset_of!(Program, scope_id) == 132); + assert!(offset_of!(Program, source_type) == 136); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -28,45 +28,45 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(IdentifierName, node_id) == 24); assert!(offset_of!(IdentifierName, span) == 0); assert!(offset_of!(IdentifierName, name) == 8); + assert!(offset_of!(IdentifierName, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(IdentifierReference, node_id) == 24); assert!(offset_of!(IdentifierReference, span) == 0); assert!(offset_of!(IdentifierReference, name) == 8); + assert!(offset_of!(IdentifierReference, node_id) == 24); assert!(offset_of!(IdentifierReference, reference_id) == 28); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(BindingIdentifier, node_id) == 24); assert!(offset_of!(BindingIdentifier, span) == 0); assert!(offset_of!(BindingIdentifier, name) == 8); + assert!(offset_of!(BindingIdentifier, node_id) == 24); assert!(offset_of!(BindingIdentifier, symbol_id) == 28); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(LabelIdentifier, node_id) == 24); assert!(offset_of!(LabelIdentifier, span) == 0); assert!(offset_of!(LabelIdentifier, name) == 8); + assert!(offset_of!(LabelIdentifier, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(ThisExpression, node_id) == 8); assert!(offset_of!(ThisExpression, span) == 0); + assert!(offset_of!(ThisExpression, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(ArrayExpression, node_id) == 32); assert!(offset_of!(ArrayExpression, span) == 0); assert!(offset_of!(ArrayExpression, elements) == 8); + assert!(offset_of!(ArrayExpression, node_id) == 32); assert!(size_of::() == 24); assert!(align_of::() == 8); @@ -74,15 +74,15 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(Elision, node_id) == 8); assert!(offset_of!(Elision, span) == 0); + assert!(offset_of!(Elision, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(ObjectExpression, node_id) == 32); assert!(offset_of!(ObjectExpression, span) == 0); assert!(offset_of!(ObjectExpression, properties) == 8); + assert!(offset_of!(ObjectExpression, node_id) == 32); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -90,11 +90,11 @@ const _: () = { // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ObjectProperty, node_id) == 40); assert!(offset_of!(ObjectProperty, span) == 0); - assert!(offset_of!(ObjectProperty, kind) == 44); assert!(offset_of!(ObjectProperty, key) == 8); assert!(offset_of!(ObjectProperty, value) == 24); + assert!(offset_of!(ObjectProperty, node_id) == 40); + assert!(offset_of!(ObjectProperty, kind) == 44); assert!(offset_of!(ObjectProperty, method) == 45); assert!(offset_of!(ObjectProperty, shorthand) == 46); assert!(offset_of!(ObjectProperty, computed) == 47); @@ -108,26 +108,26 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TemplateLiteral, node_id) == 56); assert!(offset_of!(TemplateLiteral, span) == 0); assert!(offset_of!(TemplateLiteral, quasis) == 8); assert!(offset_of!(TemplateLiteral, expressions) == 32); + assert!(offset_of!(TemplateLiteral, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 104); assert!(align_of::() == 8); - assert!(offset_of!(TaggedTemplateExpression, node_id) == 96); assert!(offset_of!(TaggedTemplateExpression, span) == 0); assert!(offset_of!(TaggedTemplateExpression, tag) == 8); assert!(offset_of!(TaggedTemplateExpression, type_arguments) == 24); assert!(offset_of!(TaggedTemplateExpression, quasi) == 32); + assert!(offset_of!(TaggedTemplateExpression, node_id) == 96); // Padding: 2 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TemplateElement, node_id) == 40); assert!(offset_of!(TemplateElement, span) == 0); assert!(offset_of!(TemplateElement, value) == 8); + assert!(offset_of!(TemplateElement, node_id) == 40); assert!(offset_of!(TemplateElement, tail) == 44); assert!(offset_of!(TemplateElement, lone_surrogates) == 45); @@ -143,65 +143,65 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ComputedMemberExpression, node_id) == 40); assert!(offset_of!(ComputedMemberExpression, span) == 0); assert!(offset_of!(ComputedMemberExpression, object) == 8); assert!(offset_of!(ComputedMemberExpression, expression) == 24); + assert!(offset_of!(ComputedMemberExpression, node_id) == 40); assert!(offset_of!(ComputedMemberExpression, optional) == 44); // Padding: 3 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(StaticMemberExpression, node_id) == 56); assert!(offset_of!(StaticMemberExpression, span) == 0); assert!(offset_of!(StaticMemberExpression, object) == 8); assert!(offset_of!(StaticMemberExpression, property) == 24); + assert!(offset_of!(StaticMemberExpression, node_id) == 56); assert!(offset_of!(StaticMemberExpression, optional) == 60); // Padding: 3 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(PrivateFieldExpression, node_id) == 56); assert!(offset_of!(PrivateFieldExpression, span) == 0); assert!(offset_of!(PrivateFieldExpression, object) == 8); assert!(offset_of!(PrivateFieldExpression, field) == 24); + assert!(offset_of!(PrivateFieldExpression, node_id) == 56); assert!(offset_of!(PrivateFieldExpression, optional) == 60); // Padding: 2 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(CallExpression, node_id) == 56); assert!(offset_of!(CallExpression, span) == 0); assert!(offset_of!(CallExpression, callee) == 8); assert!(offset_of!(CallExpression, type_arguments) == 24); assert!(offset_of!(CallExpression, arguments) == 32); + assert!(offset_of!(CallExpression, node_id) == 56); assert!(offset_of!(CallExpression, optional) == 60); assert!(offset_of!(CallExpression, pure) == 61); // Padding: 3 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(NewExpression, node_id) == 56); assert!(offset_of!(NewExpression, span) == 0); assert!(offset_of!(NewExpression, callee) == 8); assert!(offset_of!(NewExpression, type_arguments) == 24); assert!(offset_of!(NewExpression, arguments) == 32); + assert!(offset_of!(NewExpression, node_id) == 56); assert!(offset_of!(NewExpression, pure) == 60); // Padding: 4 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(MetaProperty, node_id) == 72); assert!(offset_of!(MetaProperty, span) == 0); assert!(offset_of!(MetaProperty, meta) == 8); assert!(offset_of!(MetaProperty, property) == 40); + assert!(offset_of!(MetaProperty, node_id) == 72); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(SpreadElement, node_id) == 24); assert!(offset_of!(SpreadElement, span) == 0); assert!(offset_of!(SpreadElement, argument) == 8); + assert!(offset_of!(SpreadElement, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -209,63 +209,63 @@ const _: () = { // Padding: 2 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(UpdateExpression, node_id) == 24); assert!(offset_of!(UpdateExpression, span) == 0); + assert!(offset_of!(UpdateExpression, argument) == 8); + assert!(offset_of!(UpdateExpression, node_id) == 24); assert!(offset_of!(UpdateExpression, operator) == 28); assert!(offset_of!(UpdateExpression, prefix) == 29); - assert!(offset_of!(UpdateExpression, argument) == 8); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(UnaryExpression, node_id) == 24); assert!(offset_of!(UnaryExpression, span) == 0); - assert!(offset_of!(UnaryExpression, operator) == 28); assert!(offset_of!(UnaryExpression, argument) == 8); + assert!(offset_of!(UnaryExpression, node_id) == 24); + assert!(offset_of!(UnaryExpression, operator) == 28); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(BinaryExpression, node_id) == 40); assert!(offset_of!(BinaryExpression, span) == 0); assert!(offset_of!(BinaryExpression, left) == 8); - assert!(offset_of!(BinaryExpression, operator) == 44); assert!(offset_of!(BinaryExpression, right) == 24); + assert!(offset_of!(BinaryExpression, node_id) == 40); + assert!(offset_of!(BinaryExpression, operator) == 44); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(PrivateInExpression, node_id) == 56); assert!(offset_of!(PrivateInExpression, span) == 0); assert!(offset_of!(PrivateInExpression, left) == 8); assert!(offset_of!(PrivateInExpression, right) == 40); + assert!(offset_of!(PrivateInExpression, node_id) == 56); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(LogicalExpression, node_id) == 40); assert!(offset_of!(LogicalExpression, span) == 0); assert!(offset_of!(LogicalExpression, left) == 8); - assert!(offset_of!(LogicalExpression, operator) == 44); assert!(offset_of!(LogicalExpression, right) == 24); + assert!(offset_of!(LogicalExpression, node_id) == 40); + assert!(offset_of!(LogicalExpression, operator) == 44); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(ConditionalExpression, node_id) == 56); assert!(offset_of!(ConditionalExpression, span) == 0); assert!(offset_of!(ConditionalExpression, test) == 8); assert!(offset_of!(ConditionalExpression, consequent) == 24); assert!(offset_of!(ConditionalExpression, alternate) == 40); + assert!(offset_of!(ConditionalExpression, node_id) == 56); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(AssignmentExpression, node_id) == 40); assert!(offset_of!(AssignmentExpression, span) == 0); - assert!(offset_of!(AssignmentExpression, operator) == 44); assert!(offset_of!(AssignmentExpression, left) == 8); assert!(offset_of!(AssignmentExpression, right) == 24); + assert!(offset_of!(AssignmentExpression, node_id) == 40); + assert!(offset_of!(AssignmentExpression, operator) == 44); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -279,25 +279,25 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ArrayAssignmentTarget, node_id) == 40); assert!(offset_of!(ArrayAssignmentTarget, span) == 0); assert!(offset_of!(ArrayAssignmentTarget, elements) == 8); assert!(offset_of!(ArrayAssignmentTarget, rest) == 32); + assert!(offset_of!(ArrayAssignmentTarget, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ObjectAssignmentTarget, node_id) == 40); assert!(offset_of!(ObjectAssignmentTarget, span) == 0); assert!(offset_of!(ObjectAssignmentTarget, properties) == 8); assert!(offset_of!(ObjectAssignmentTarget, rest) == 32); + assert!(offset_of!(ObjectAssignmentTarget, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(AssignmentTargetRest, node_id) == 24); assert!(offset_of!(AssignmentTargetRest, span) == 0); assert!(offset_of!(AssignmentTargetRest, target) == 8); + assert!(offset_of!(AssignmentTargetRest, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -305,10 +305,10 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(AssignmentTargetWithDefault, node_id) == 40); assert!(offset_of!(AssignmentTargetWithDefault, span) == 0); assert!(offset_of!(AssignmentTargetWithDefault, binding) == 8); assert!(offset_of!(AssignmentTargetWithDefault, init) == 24); + assert!(offset_of!(AssignmentTargetWithDefault, node_id) == 40); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -316,46 +316,46 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(AssignmentTargetPropertyIdentifier, node_id) == 56); assert!(offset_of!(AssignmentTargetPropertyIdentifier, span) == 0); assert!(offset_of!(AssignmentTargetPropertyIdentifier, binding) == 8); assert!(offset_of!(AssignmentTargetPropertyIdentifier, init) == 40); + assert!(offset_of!(AssignmentTargetPropertyIdentifier, node_id) == 56); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(AssignmentTargetPropertyProperty, node_id) == 40); assert!(offset_of!(AssignmentTargetPropertyProperty, span) == 0); assert!(offset_of!(AssignmentTargetPropertyProperty, name) == 8); assert!(offset_of!(AssignmentTargetPropertyProperty, binding) == 24); + assert!(offset_of!(AssignmentTargetPropertyProperty, node_id) == 40); assert!(offset_of!(AssignmentTargetPropertyProperty, computed) == 44); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(SequenceExpression, node_id) == 32); assert!(offset_of!(SequenceExpression, span) == 0); assert!(offset_of!(SequenceExpression, expressions) == 8); + assert!(offset_of!(SequenceExpression, node_id) == 32); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(Super, node_id) == 8); assert!(offset_of!(Super, span) == 0); + assert!(offset_of!(Super, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(AwaitExpression, node_id) == 24); assert!(offset_of!(AwaitExpression, span) == 0); assert!(offset_of!(AwaitExpression, argument) == 8); + assert!(offset_of!(AwaitExpression, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(ChainExpression, node_id) == 24); assert!(offset_of!(ChainExpression, span) == 0); assert!(offset_of!(ChainExpression, expression) == 8); + assert!(offset_of!(ChainExpression, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -363,9 +363,9 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(ParenthesizedExpression, node_id) == 24); assert!(offset_of!(ParenthesizedExpression, span) == 0); assert!(offset_of!(ParenthesizedExpression, expression) == 8); + assert!(offset_of!(ParenthesizedExpression, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -373,24 +373,24 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(Directive, node_id) == 72); assert!(offset_of!(Directive, span) == 0); assert!(offset_of!(Directive, expression) == 8); assert!(offset_of!(Directive, directive) == 56); + assert!(offset_of!(Directive, node_id) == 72); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(Hashbang, node_id) == 24); assert!(offset_of!(Hashbang, span) == 0); assert!(offset_of!(Hashbang, value) == 8); + assert!(offset_of!(Hashbang, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(BlockStatement, node_id) == 32); assert!(offset_of!(BlockStatement, span) == 0); assert!(offset_of!(BlockStatement, body) == 8); + assert!(offset_of!(BlockStatement, node_id) == 32); assert!(offset_of!(BlockStatement, scope_id) == 36); assert!(size_of::() == 16); @@ -399,10 +399,10 @@ const _: () = { // Padding: 2 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(VariableDeclaration, node_id) == 32); assert!(offset_of!(VariableDeclaration, span) == 0); - assert!(offset_of!(VariableDeclaration, kind) == 36); assert!(offset_of!(VariableDeclaration, declarations) == 8); + assert!(offset_of!(VariableDeclaration, node_id) == 32); + assert!(offset_of!(VariableDeclaration, kind) == 36); assert!(offset_of!(VariableDeclaration, declare) == 37); assert!(size_of::() == 1); @@ -411,61 +411,61 @@ const _: () = { // Padding: 2 bytes assert!(size_of::() == 56); assert!(align_of::() == 8); - assert!(offset_of!(VariableDeclarator, node_id) == 48); assert!(offset_of!(VariableDeclarator, span) == 0); - assert!(offset_of!(VariableDeclarator, kind) == 52); assert!(offset_of!(VariableDeclarator, id) == 8); assert!(offset_of!(VariableDeclarator, type_annotation) == 24); assert!(offset_of!(VariableDeclarator, init) == 32); + assert!(offset_of!(VariableDeclarator, node_id) == 48); + assert!(offset_of!(VariableDeclarator, kind) == 52); assert!(offset_of!(VariableDeclarator, definite) == 53); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(EmptyStatement, node_id) == 8); assert!(offset_of!(EmptyStatement, span) == 0); + assert!(offset_of!(EmptyStatement, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(ExpressionStatement, node_id) == 24); assert!(offset_of!(ExpressionStatement, span) == 0); assert!(offset_of!(ExpressionStatement, expression) == 8); + assert!(offset_of!(ExpressionStatement, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(IfStatement, node_id) == 56); assert!(offset_of!(IfStatement, span) == 0); assert!(offset_of!(IfStatement, test) == 8); assert!(offset_of!(IfStatement, consequent) == 24); assert!(offset_of!(IfStatement, alternate) == 40); + assert!(offset_of!(IfStatement, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(DoWhileStatement, node_id) == 40); assert!(offset_of!(DoWhileStatement, span) == 0); assert!(offset_of!(DoWhileStatement, body) == 8); assert!(offset_of!(DoWhileStatement, test) == 24); + assert!(offset_of!(DoWhileStatement, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(WhileStatement, node_id) == 40); assert!(offset_of!(WhileStatement, span) == 0); assert!(offset_of!(WhileStatement, test) == 8); assert!(offset_of!(WhileStatement, body) == 24); + assert!(offset_of!(WhileStatement, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(ForStatement, node_id) == 72); assert!(offset_of!(ForStatement, span) == 0); assert!(offset_of!(ForStatement, init) == 8); assert!(offset_of!(ForStatement, test) == 24); assert!(offset_of!(ForStatement, update) == 40); assert!(offset_of!(ForStatement, body) == 56); + assert!(offset_of!(ForStatement, node_id) == 72); assert!(offset_of!(ForStatement, scope_id) == 76); assert!(size_of::() == 16); @@ -474,11 +474,11 @@ const _: () = { // Padding: 0 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(ForInStatement, node_id) == 56); assert!(offset_of!(ForInStatement, span) == 0); assert!(offset_of!(ForInStatement, left) == 8); assert!(offset_of!(ForInStatement, right) == 24); assert!(offset_of!(ForInStatement, body) == 40); + assert!(offset_of!(ForInStatement, node_id) == 56); assert!(offset_of!(ForInStatement, scope_id) == 60); assert!(size_of::() == 16); @@ -487,107 +487,107 @@ const _: () = { // Padding: 7 bytes assert!(size_of::() == 72); assert!(align_of::() == 8); - assert!(offset_of!(ForOfStatement, node_id) == 56); assert!(offset_of!(ForOfStatement, span) == 0); - assert!(offset_of!(ForOfStatement, r#await) == 64); assert!(offset_of!(ForOfStatement, left) == 8); assert!(offset_of!(ForOfStatement, right) == 24); assert!(offset_of!(ForOfStatement, body) == 40); + assert!(offset_of!(ForOfStatement, node_id) == 56); assert!(offset_of!(ForOfStatement, scope_id) == 60); + assert!(offset_of!(ForOfStatement, r#await) == 64); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ContinueStatement, node_id) == 40); assert!(offset_of!(ContinueStatement, span) == 0); assert!(offset_of!(ContinueStatement, label) == 8); + assert!(offset_of!(ContinueStatement, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(BreakStatement, node_id) == 40); assert!(offset_of!(BreakStatement, span) == 0); assert!(offset_of!(BreakStatement, label) == 8); + assert!(offset_of!(BreakStatement, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(ReturnStatement, node_id) == 24); assert!(offset_of!(ReturnStatement, span) == 0); assert!(offset_of!(ReturnStatement, argument) == 8); + assert!(offset_of!(ReturnStatement, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(WithStatement, node_id) == 40); assert!(offset_of!(WithStatement, span) == 0); assert!(offset_of!(WithStatement, object) == 8); assert!(offset_of!(WithStatement, body) == 24); + assert!(offset_of!(WithStatement, node_id) == 40); assert!(offset_of!(WithStatement, scope_id) == 44); // Padding: 0 bytes assert!(size_of::() == 56); assert!(align_of::() == 8); - assert!(offset_of!(SwitchStatement, node_id) == 48); assert!(offset_of!(SwitchStatement, span) == 0); assert!(offset_of!(SwitchStatement, discriminant) == 8); assert!(offset_of!(SwitchStatement, cases) == 24); + assert!(offset_of!(SwitchStatement, node_id) == 48); assert!(offset_of!(SwitchStatement, scope_id) == 52); // Padding: 4 bytes assert!(size_of::() == 56); assert!(align_of::() == 8); - assert!(offset_of!(SwitchCase, node_id) == 48); assert!(offset_of!(SwitchCase, span) == 0); assert!(offset_of!(SwitchCase, test) == 8); assert!(offset_of!(SwitchCase, consequent) == 24); + assert!(offset_of!(SwitchCase, node_id) == 48); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(LabeledStatement, node_id) == 56); assert!(offset_of!(LabeledStatement, span) == 0); assert!(offset_of!(LabeledStatement, label) == 8); assert!(offset_of!(LabeledStatement, body) == 40); + assert!(offset_of!(LabeledStatement, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(ThrowStatement, node_id) == 24); assert!(offset_of!(ThrowStatement, span) == 0); assert!(offset_of!(ThrowStatement, argument) == 8); + assert!(offset_of!(ThrowStatement, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TryStatement, node_id) == 32); assert!(offset_of!(TryStatement, span) == 0); assert!(offset_of!(TryStatement, block) == 8); assert!(offset_of!(TryStatement, handler) == 16); assert!(offset_of!(TryStatement, finalizer) == 24); + assert!(offset_of!(TryStatement, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(CatchClause, node_id) == 56); assert!(offset_of!(CatchClause, span) == 0); assert!(offset_of!(CatchClause, param) == 8); assert!(offset_of!(CatchClause, body) == 48); + assert!(offset_of!(CatchClause, node_id) == 56); assert!(offset_of!(CatchClause, scope_id) == 60); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(CatchParameter, node_id) == 32); assert!(offset_of!(CatchParameter, span) == 0); assert!(offset_of!(CatchParameter, pattern) == 8); assert!(offset_of!(CatchParameter, type_annotation) == 24); + assert!(offset_of!(CatchParameter, node_id) == 32); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(DebuggerStatement, node_id) == 8); assert!(offset_of!(DebuggerStatement, span) == 0); + assert!(offset_of!(DebuggerStatement, node_id) == 8); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -595,60 +595,60 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(AssignmentPattern, node_id) == 40); assert!(offset_of!(AssignmentPattern, span) == 0); assert!(offset_of!(AssignmentPattern, left) == 8); assert!(offset_of!(AssignmentPattern, right) == 24); + assert!(offset_of!(AssignmentPattern, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ObjectPattern, node_id) == 40); assert!(offset_of!(ObjectPattern, span) == 0); assert!(offset_of!(ObjectPattern, properties) == 8); assert!(offset_of!(ObjectPattern, rest) == 32); + assert!(offset_of!(ObjectPattern, node_id) == 40); // Padding: 2 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(BindingProperty, node_id) == 40); assert!(offset_of!(BindingProperty, span) == 0); assert!(offset_of!(BindingProperty, key) == 8); assert!(offset_of!(BindingProperty, value) == 24); + assert!(offset_of!(BindingProperty, node_id) == 40); assert!(offset_of!(BindingProperty, shorthand) == 44); assert!(offset_of!(BindingProperty, computed) == 45); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ArrayPattern, node_id) == 40); assert!(offset_of!(ArrayPattern, span) == 0); assert!(offset_of!(ArrayPattern, elements) == 8); assert!(offset_of!(ArrayPattern, rest) == 32); + assert!(offset_of!(ArrayPattern, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(BindingRestElement, node_id) == 24); assert!(offset_of!(BindingRestElement, span) == 0); assert!(offset_of!(BindingRestElement, argument) == 8); + assert!(offset_of!(BindingRestElement, node_id) == 24); // Padding: 2 bytes assert!(size_of::() == 96); assert!(align_of::() == 8); - assert!(offset_of!(Function, node_id) == 80); assert!(offset_of!(Function, span) == 0); - assert!(offset_of!(Function, r#type) == 88); assert!(offset_of!(Function, id) == 8); - assert!(offset_of!(Function, generator) == 89); - assert!(offset_of!(Function, r#async) == 90); - assert!(offset_of!(Function, declare) == 91); assert!(offset_of!(Function, type_parameters) == 40); assert!(offset_of!(Function, this_param) == 48); assert!(offset_of!(Function, params) == 56); assert!(offset_of!(Function, return_type) == 64); assert!(offset_of!(Function, body) == 72); + assert!(offset_of!(Function, node_id) == 80); assert!(offset_of!(Function, scope_id) == 84); + assert!(offset_of!(Function, r#type) == 88); + assert!(offset_of!(Function, generator) == 89); + assert!(offset_of!(Function, r#async) == 90); + assert!(offset_of!(Function, declare) == 91); assert!(offset_of!(Function, pure) == 92); assert!(offset_of!(Function, pife) == 93); @@ -658,21 +658,21 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(FormalParameters, node_id) == 40); assert!(offset_of!(FormalParameters, span) == 0); - assert!(offset_of!(FormalParameters, kind) == 44); assert!(offset_of!(FormalParameters, items) == 8); assert!(offset_of!(FormalParameters, rest) == 32); + assert!(offset_of!(FormalParameters, node_id) == 40); + assert!(offset_of!(FormalParameters, kind) == 44); // Padding: 0 bytes assert!(size_of::() == 72); assert!(align_of::() == 8); - assert!(offset_of!(FormalParameter, node_id) == 64); assert!(offset_of!(FormalParameter, span) == 0); assert!(offset_of!(FormalParameter, decorators) == 8); assert!(offset_of!(FormalParameter, pattern) == 32); assert!(offset_of!(FormalParameter, type_annotation) == 48); assert!(offset_of!(FormalParameter, initializer) == 56); + assert!(offset_of!(FormalParameter, node_id) == 64); assert!(offset_of!(FormalParameter, optional) == 68); assert!(offset_of!(FormalParameter, accessibility) == 69); assert!(offset_of!(FormalParameter, readonly) == 70); @@ -684,49 +684,47 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(FormalParameterRest, node_id) == 72); assert!(offset_of!(FormalParameterRest, span) == 0); assert!(offset_of!(FormalParameterRest, decorators) == 8); assert!(offset_of!(FormalParameterRest, rest) == 32); assert!(offset_of!(FormalParameterRest, type_annotation) == 64); + assert!(offset_of!(FormalParameterRest, node_id) == 72); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(FunctionBody, node_id) == 56); assert!(offset_of!(FunctionBody, span) == 0); assert!(offset_of!(FunctionBody, directives) == 8); assert!(offset_of!(FunctionBody, statements) == 32); + assert!(offset_of!(FunctionBody, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 56); assert!(align_of::() == 8); - assert!(offset_of!(ArrowFunctionExpression, node_id) == 40); assert!(offset_of!(ArrowFunctionExpression, span) == 0); - assert!(offset_of!(ArrowFunctionExpression, expression) == 48); - assert!(offset_of!(ArrowFunctionExpression, r#async) == 49); assert!(offset_of!(ArrowFunctionExpression, type_parameters) == 8); assert!(offset_of!(ArrowFunctionExpression, params) == 16); assert!(offset_of!(ArrowFunctionExpression, return_type) == 24); assert!(offset_of!(ArrowFunctionExpression, body) == 32); + assert!(offset_of!(ArrowFunctionExpression, node_id) == 40); assert!(offset_of!(ArrowFunctionExpression, scope_id) == 44); + assert!(offset_of!(ArrowFunctionExpression, expression) == 48); + assert!(offset_of!(ArrowFunctionExpression, r#async) == 49); assert!(offset_of!(ArrowFunctionExpression, pure) == 50); assert!(offset_of!(ArrowFunctionExpression, pife) == 51); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(YieldExpression, node_id) == 24); assert!(offset_of!(YieldExpression, span) == 0); - assert!(offset_of!(YieldExpression, delegate) == 28); assert!(offset_of!(YieldExpression, argument) == 8); + assert!(offset_of!(YieldExpression, node_id) == 24); + assert!(offset_of!(YieldExpression, delegate) == 28); // Padding: 5 bytes assert!(size_of::() == 144); assert!(align_of::() == 8); - assert!(offset_of!(Class, node_id) == 128); assert!(offset_of!(Class, span) == 0); - assert!(offset_of!(Class, r#type) == 136); assert!(offset_of!(Class, decorators) == 8); assert!(offset_of!(Class, id) == 32); assert!(offset_of!(Class, type_parameters) == 64); @@ -734,9 +732,11 @@ const _: () = { assert!(offset_of!(Class, super_type_arguments) == 88); assert!(offset_of!(Class, implements) == 96); assert!(offset_of!(Class, body) == 120); + assert!(offset_of!(Class, node_id) == 128); + assert!(offset_of!(Class, scope_id) == 132); + assert!(offset_of!(Class, r#type) == 136); assert!(offset_of!(Class, r#abstract) == 137); assert!(offset_of!(Class, declare) == 138); - assert!(offset_of!(Class, scope_id) == 132); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -744,9 +744,9 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(ClassBody, node_id) == 32); assert!(offset_of!(ClassBody, span) == 0); assert!(offset_of!(ClassBody, body) == 8); + assert!(offset_of!(ClassBody, node_id) == 32); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -754,12 +754,12 @@ const _: () = { // Padding: 5 bytes assert!(size_of::() == 72); assert!(align_of::() == 8); - assert!(offset_of!(MethodDefinition, node_id) == 56); assert!(offset_of!(MethodDefinition, span) == 0); - assert!(offset_of!(MethodDefinition, r#type) == 60); assert!(offset_of!(MethodDefinition, decorators) == 8); assert!(offset_of!(MethodDefinition, key) == 32); assert!(offset_of!(MethodDefinition, value) == 48); + assert!(offset_of!(MethodDefinition, node_id) == 56); + assert!(offset_of!(MethodDefinition, r#type) == 60); assert!(offset_of!(MethodDefinition, kind) == 61); assert!(offset_of!(MethodDefinition, computed) == 62); assert!(offset_of!(MethodDefinition, r#static) == 63); @@ -773,13 +773,13 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 88); assert!(align_of::() == 8); - assert!(offset_of!(PropertyDefinition, node_id) == 72); assert!(offset_of!(PropertyDefinition, span) == 0); - assert!(offset_of!(PropertyDefinition, r#type) == 76); assert!(offset_of!(PropertyDefinition, decorators) == 8); assert!(offset_of!(PropertyDefinition, key) == 32); assert!(offset_of!(PropertyDefinition, type_annotation) == 48); assert!(offset_of!(PropertyDefinition, value) == 56); + assert!(offset_of!(PropertyDefinition, node_id) == 72); + assert!(offset_of!(PropertyDefinition, r#type) == 76); assert!(offset_of!(PropertyDefinition, computed) == 77); assert!(offset_of!(PropertyDefinition, r#static) == 78); assert!(offset_of!(PropertyDefinition, declare) == 79); @@ -798,16 +798,16 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(PrivateIdentifier, node_id) == 24); assert!(offset_of!(PrivateIdentifier, span) == 0); assert!(offset_of!(PrivateIdentifier, name) == 8); + assert!(offset_of!(PrivateIdentifier, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(StaticBlock, node_id) == 32); assert!(offset_of!(StaticBlock, span) == 0); assert!(offset_of!(StaticBlock, body) == 8); + assert!(offset_of!(StaticBlock, node_id) == 32); assert!(offset_of!(StaticBlock, scope_id) == 36); assert!(size_of::() == 16); @@ -819,13 +819,13 @@ const _: () = { // Padding: 6 bytes assert!(size_of::() == 88); assert!(align_of::() == 8); - assert!(offset_of!(AccessorProperty, node_id) == 72); assert!(offset_of!(AccessorProperty, span) == 0); - assert!(offset_of!(AccessorProperty, r#type) == 76); assert!(offset_of!(AccessorProperty, decorators) == 8); assert!(offset_of!(AccessorProperty, key) == 32); assert!(offset_of!(AccessorProperty, type_annotation) == 48); assert!(offset_of!(AccessorProperty, value) == 56); + assert!(offset_of!(AccessorProperty, node_id) == 72); + assert!(offset_of!(AccessorProperty, r#type) == 76); assert!(offset_of!(AccessorProperty, computed) == 77); assert!(offset_of!(AccessorProperty, r#static) == 78); assert!(offset_of!(AccessorProperty, r#override) == 79); @@ -835,21 +835,21 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ImportExpression, node_id) == 40); assert!(offset_of!(ImportExpression, span) == 0); assert!(offset_of!(ImportExpression, source) == 8); assert!(offset_of!(ImportExpression, options) == 24); + assert!(offset_of!(ImportExpression, node_id) == 40); assert!(offset_of!(ImportExpression, phase) == 44); // Padding: 2 bytes assert!(size_of::() == 96); assert!(align_of::() == 8); - assert!(offset_of!(ImportDeclaration, node_id) == 88); assert!(offset_of!(ImportDeclaration, span) == 0); assert!(offset_of!(ImportDeclaration, specifiers) == 8); assert!(offset_of!(ImportDeclaration, source) == 32); - assert!(offset_of!(ImportDeclaration, phase) == 92); assert!(offset_of!(ImportDeclaration, with_clause) == 80); + assert!(offset_of!(ImportDeclaration, node_id) == 88); + assert!(offset_of!(ImportDeclaration, phase) == 92); assert!(offset_of!(ImportDeclaration, import_kind) == 93); assert!(size_of::() == 1); @@ -861,33 +861,33 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 104); assert!(align_of::() == 8); - assert!(offset_of!(ImportSpecifier, node_id) == 96); assert!(offset_of!(ImportSpecifier, span) == 0); assert!(offset_of!(ImportSpecifier, imported) == 8); assert!(offset_of!(ImportSpecifier, local) == 64); + assert!(offset_of!(ImportSpecifier, node_id) == 96); assert!(offset_of!(ImportSpecifier, import_kind) == 100); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ImportDefaultSpecifier, node_id) == 40); assert!(offset_of!(ImportDefaultSpecifier, span) == 0); assert!(offset_of!(ImportDefaultSpecifier, local) == 8); + assert!(offset_of!(ImportDefaultSpecifier, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(ImportNamespaceSpecifier, node_id) == 40); assert!(offset_of!(ImportNamespaceSpecifier, span) == 0); assert!(offset_of!(ImportNamespaceSpecifier, local) == 8); + assert!(offset_of!(ImportNamespaceSpecifier, node_id) == 40); // Padding: 3 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(WithClause, node_id) == 32); assert!(offset_of!(WithClause, span) == 0); - assert!(offset_of!(WithClause, keyword) == 36); assert!(offset_of!(WithClause, with_entries) == 8); + assert!(offset_of!(WithClause, node_id) == 32); + assert!(offset_of!(WithClause, keyword) == 36); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -895,10 +895,10 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 120); assert!(align_of::() == 8); - assert!(offset_of!(ImportAttribute, node_id) == 112); assert!(offset_of!(ImportAttribute, span) == 0); assert!(offset_of!(ImportAttribute, key) == 8); assert!(offset_of!(ImportAttribute, value) == 64); + assert!(offset_of!(ImportAttribute, node_id) == 112); assert!(size_of::() == 56); assert!(align_of::() == 8); @@ -906,38 +906,38 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 112); assert!(align_of::() == 8); - assert!(offset_of!(ExportNamedDeclaration, node_id) == 104); assert!(offset_of!(ExportNamedDeclaration, span) == 0); assert!(offset_of!(ExportNamedDeclaration, declaration) == 8); assert!(offset_of!(ExportNamedDeclaration, specifiers) == 24); assert!(offset_of!(ExportNamedDeclaration, source) == 48); - assert!(offset_of!(ExportNamedDeclaration, export_kind) == 108); assert!(offset_of!(ExportNamedDeclaration, with_clause) == 96); + assert!(offset_of!(ExportNamedDeclaration, node_id) == 104); + assert!(offset_of!(ExportNamedDeclaration, export_kind) == 108); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(ExportDefaultDeclaration, node_id) == 24); assert!(offset_of!(ExportDefaultDeclaration, span) == 0); assert!(offset_of!(ExportDefaultDeclaration, declaration) == 8); + assert!(offset_of!(ExportDefaultDeclaration, node_id) == 24); // Padding: 3 bytes assert!(size_of::() == 128); assert!(align_of::() == 8); - assert!(offset_of!(ExportAllDeclaration, node_id) == 120); assert!(offset_of!(ExportAllDeclaration, span) == 0); assert!(offset_of!(ExportAllDeclaration, exported) == 8); assert!(offset_of!(ExportAllDeclaration, source) == 64); assert!(offset_of!(ExportAllDeclaration, with_clause) == 112); + assert!(offset_of!(ExportAllDeclaration, node_id) == 120); assert!(offset_of!(ExportAllDeclaration, export_kind) == 124); // Padding: 3 bytes assert!(size_of::() == 128); assert!(align_of::() == 8); - assert!(offset_of!(ExportSpecifier, node_id) == 120); assert!(offset_of!(ExportSpecifier, span) == 0); assert!(offset_of!(ExportSpecifier, local) == 8); assert!(offset_of!(ExportSpecifier, exported) == 64); + assert!(offset_of!(ExportSpecifier, node_id) == 120); assert!(offset_of!(ExportSpecifier, export_kind) == 124); assert!(size_of::() == 16); @@ -949,58 +949,58 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 72); assert!(align_of::() == 8); - assert!(offset_of!(V8IntrinsicExpression, node_id) == 64); assert!(offset_of!(V8IntrinsicExpression, span) == 0); assert!(offset_of!(V8IntrinsicExpression, name) == 8); assert!(offset_of!(V8IntrinsicExpression, arguments) == 40); + assert!(offset_of!(V8IntrinsicExpression, node_id) == 64); // Padding: 3 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(BooleanLiteral, node_id) == 8); assert!(offset_of!(BooleanLiteral, span) == 0); + assert!(offset_of!(BooleanLiteral, node_id) == 8); assert!(offset_of!(BooleanLiteral, value) == 12); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(NullLiteral, node_id) == 8); assert!(offset_of!(NullLiteral, span) == 0); + assert!(offset_of!(NullLiteral, node_id) == 8); // Padding: 3 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(NumericLiteral, node_id) == 32); assert!(offset_of!(NumericLiteral, span) == 0); assert!(offset_of!(NumericLiteral, value) == 8); assert!(offset_of!(NumericLiteral, raw) == 16); + assert!(offset_of!(NumericLiteral, node_id) == 32); assert!(offset_of!(NumericLiteral, base) == 36); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(StringLiteral, node_id) == 40); assert!(offset_of!(StringLiteral, span) == 0); assert!(offset_of!(StringLiteral, value) == 8); assert!(offset_of!(StringLiteral, raw) == 24); + assert!(offset_of!(StringLiteral, node_id) == 40); assert!(offset_of!(StringLiteral, lone_surrogates) == 44); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(BigIntLiteral, node_id) == 40); assert!(offset_of!(BigIntLiteral, span) == 0); assert!(offset_of!(BigIntLiteral, value) == 8); assert!(offset_of!(BigIntLiteral, raw) == 24); + assert!(offset_of!(BigIntLiteral, node_id) == 40); assert!(offset_of!(BigIntLiteral, base) == 44); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(RegExpLiteral, node_id) == 56); assert!(offset_of!(RegExpLiteral, span) == 0); assert!(offset_of!(RegExpLiteral, regex) == 8); assert!(offset_of!(RegExpLiteral, raw) == 40); + assert!(offset_of!(RegExpLiteral, node_id) == 56); // Padding: 7 bytes assert!(size_of::() == 32); @@ -1021,48 +1021,48 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 56); assert!(align_of::() == 8); - assert!(offset_of!(JSXElement, node_id) == 48); assert!(offset_of!(JSXElement, span) == 0); assert!(offset_of!(JSXElement, opening_element) == 8); assert!(offset_of!(JSXElement, children) == 16); assert!(offset_of!(JSXElement, closing_element) == 40); + assert!(offset_of!(JSXElement, node_id) == 48); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(JSXOpeningElement, node_id) == 56); assert!(offset_of!(JSXOpeningElement, span) == 0); assert!(offset_of!(JSXOpeningElement, name) == 8); assert!(offset_of!(JSXOpeningElement, type_arguments) == 24); assert!(offset_of!(JSXOpeningElement, attributes) == 32); + assert!(offset_of!(JSXOpeningElement, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(JSXClosingElement, node_id) == 24); assert!(offset_of!(JSXClosingElement, span) == 0); assert!(offset_of!(JSXClosingElement, name) == 8); + assert!(offset_of!(JSXClosingElement, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 72); assert!(align_of::() == 8); - assert!(offset_of!(JSXFragment, node_id) == 64); assert!(offset_of!(JSXFragment, span) == 0); assert!(offset_of!(JSXFragment, opening_fragment) == 8); assert!(offset_of!(JSXFragment, children) == 24); assert!(offset_of!(JSXFragment, closing_fragment) == 48); + assert!(offset_of!(JSXFragment, node_id) == 64); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(JSXOpeningFragment, node_id) == 8); assert!(offset_of!(JSXOpeningFragment, span) == 0); + assert!(offset_of!(JSXOpeningFragment, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(JSXClosingFragment, node_id) == 8); assert!(offset_of!(JSXClosingFragment, span) == 0); + assert!(offset_of!(JSXClosingFragment, node_id) == 8); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1070,18 +1070,18 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(JSXNamespacedName, node_id) == 72); assert!(offset_of!(JSXNamespacedName, span) == 0); assert!(offset_of!(JSXNamespacedName, namespace) == 8); assert!(offset_of!(JSXNamespacedName, name) == 40); + assert!(offset_of!(JSXNamespacedName, node_id) == 72); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(JSXMemberExpression, node_id) == 56); assert!(offset_of!(JSXMemberExpression, span) == 0); assert!(offset_of!(JSXMemberExpression, object) == 8); assert!(offset_of!(JSXMemberExpression, property) == 24); + assert!(offset_of!(JSXMemberExpression, node_id) == 56); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1089,9 +1089,9 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(JSXExpressionContainer, node_id) == 32); assert!(offset_of!(JSXExpressionContainer, span) == 0); assert!(offset_of!(JSXExpressionContainer, expression) == 8); + assert!(offset_of!(JSXExpressionContainer, node_id) == 32); assert!(size_of::() == 24); assert!(align_of::() == 8); @@ -1099,8 +1099,8 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(JSXEmptyExpression, node_id) == 8); assert!(offset_of!(JSXEmptyExpression, span) == 0); + assert!(offset_of!(JSXEmptyExpression, node_id) == 8); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1108,17 +1108,17 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(JSXAttribute, node_id) == 40); assert!(offset_of!(JSXAttribute, span) == 0); assert!(offset_of!(JSXAttribute, name) == 8); assert!(offset_of!(JSXAttribute, value) == 24); + assert!(offset_of!(JSXAttribute, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(JSXSpreadAttribute, node_id) == 24); assert!(offset_of!(JSXSpreadAttribute, span) == 0); assert!(offset_of!(JSXSpreadAttribute, argument) == 8); + assert!(offset_of!(JSXSpreadAttribute, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1129,9 +1129,9 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(JSXIdentifier, node_id) == 24); assert!(offset_of!(JSXIdentifier, span) == 0); assert!(offset_of!(JSXIdentifier, name) == 8); + assert!(offset_of!(JSXIdentifier, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1139,51 +1139,51 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(JSXSpreadChild, node_id) == 24); assert!(offset_of!(JSXSpreadChild, span) == 0); assert!(offset_of!(JSXSpreadChild, expression) == 8); + assert!(offset_of!(JSXSpreadChild, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(JSXText, node_id) == 40); assert!(offset_of!(JSXText, span) == 0); assert!(offset_of!(JSXText, value) == 8); assert!(offset_of!(JSXText, raw) == 24); + assert!(offset_of!(JSXText, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSThisParameter, node_id) == 24); assert!(offset_of!(TSThisParameter, span) == 0); assert!(offset_of!(TSThisParameter, this_span) == 8); assert!(offset_of!(TSThisParameter, type_annotation) == 16); + assert!(offset_of!(TSThisParameter, node_id) == 24); // Padding: 2 bytes assert!(size_of::() == 88); assert!(align_of::() == 8); - assert!(offset_of!(TSEnumDeclaration, node_id) == 80); assert!(offset_of!(TSEnumDeclaration, span) == 0); assert!(offset_of!(TSEnumDeclaration, id) == 8); assert!(offset_of!(TSEnumDeclaration, body) == 40); + assert!(offset_of!(TSEnumDeclaration, node_id) == 80); assert!(offset_of!(TSEnumDeclaration, r#const) == 84); assert!(offset_of!(TSEnumDeclaration, declare) == 85); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSEnumBody, node_id) == 32); assert!(offset_of!(TSEnumBody, span) == 0); assert!(offset_of!(TSEnumBody, members) == 8); + assert!(offset_of!(TSEnumBody, node_id) == 32); assert!(offset_of!(TSEnumBody, scope_id) == 36); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSEnumMember, node_id) == 40); assert!(offset_of!(TSEnumMember, span) == 0); assert!(offset_of!(TSEnumMember, id) == 8); assert!(offset_of!(TSEnumMember, initializer) == 24); + assert!(offset_of!(TSEnumMember, node_id) == 40); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1191,16 +1191,16 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeAnnotation, node_id) == 24); assert!(offset_of!(TSTypeAnnotation, span) == 0); assert!(offset_of!(TSTypeAnnotation, type_annotation) == 8); + assert!(offset_of!(TSTypeAnnotation, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSLiteralType, node_id) == 24); assert!(offset_of!(TSLiteralType, span) == 0); assert!(offset_of!(TSLiteralType, literal) == 8); + assert!(offset_of!(TSLiteralType, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1211,42 +1211,42 @@ const _: () = { // Padding: 0 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(TSConditionalType, node_id) == 72); assert!(offset_of!(TSConditionalType, span) == 0); assert!(offset_of!(TSConditionalType, check_type) == 8); assert!(offset_of!(TSConditionalType, extends_type) == 24); assert!(offset_of!(TSConditionalType, true_type) == 40); assert!(offset_of!(TSConditionalType, false_type) == 56); + assert!(offset_of!(TSConditionalType, node_id) == 72); assert!(offset_of!(TSConditionalType, scope_id) == 76); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSUnionType, node_id) == 32); assert!(offset_of!(TSUnionType, span) == 0); assert!(offset_of!(TSUnionType, types) == 8); + assert!(offset_of!(TSUnionType, node_id) == 32); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSIntersectionType, node_id) == 32); assert!(offset_of!(TSIntersectionType, span) == 0); assert!(offset_of!(TSIntersectionType, types) == 8); + assert!(offset_of!(TSIntersectionType, node_id) == 32); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSParenthesizedType, node_id) == 24); assert!(offset_of!(TSParenthesizedType, span) == 0); assert!(offset_of!(TSParenthesizedType, type_annotation) == 8); + assert!(offset_of!(TSParenthesizedType, node_id) == 24); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeOperator, node_id) == 24); assert!(offset_of!(TSTypeOperator, span) == 0); - assert!(offset_of!(TSTypeOperator, operator) == 28); assert!(offset_of!(TSTypeOperator, type_annotation) == 8); + assert!(offset_of!(TSTypeOperator, node_id) == 24); + assert!(offset_of!(TSTypeOperator, operator) == 28); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -1254,47 +1254,47 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSArrayType, node_id) == 24); assert!(offset_of!(TSArrayType, span) == 0); assert!(offset_of!(TSArrayType, element_type) == 8); + assert!(offset_of!(TSArrayType, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSIndexedAccessType, node_id) == 40); assert!(offset_of!(TSIndexedAccessType, span) == 0); assert!(offset_of!(TSIndexedAccessType, object_type) == 8); assert!(offset_of!(TSIndexedAccessType, index_type) == 24); + assert!(offset_of!(TSIndexedAccessType, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSTupleType, node_id) == 32); assert!(offset_of!(TSTupleType, span) == 0); assert!(offset_of!(TSTupleType, element_types) == 8); + assert!(offset_of!(TSTupleType, node_id) == 32); // Padding: 3 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSNamedTupleMember, node_id) == 56); assert!(offset_of!(TSNamedTupleMember, span) == 0); assert!(offset_of!(TSNamedTupleMember, label) == 8); assert!(offset_of!(TSNamedTupleMember, element_type) == 40); + assert!(offset_of!(TSNamedTupleMember, node_id) == 56); assert!(offset_of!(TSNamedTupleMember, optional) == 60); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSOptionalType, node_id) == 24); assert!(offset_of!(TSOptionalType, span) == 0); assert!(offset_of!(TSOptionalType, type_annotation) == 8); + assert!(offset_of!(TSOptionalType, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSRestType, node_id) == 24); assert!(offset_of!(TSRestType, span) == 0); assert!(offset_of!(TSRestType, type_annotation) == 8); + assert!(offset_of!(TSRestType, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1302,94 +1302,94 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSAnyKeyword, node_id) == 8); assert!(offset_of!(TSAnyKeyword, span) == 0); + assert!(offset_of!(TSAnyKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSStringKeyword, node_id) == 8); assert!(offset_of!(TSStringKeyword, span) == 0); + assert!(offset_of!(TSStringKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSBooleanKeyword, node_id) == 8); assert!(offset_of!(TSBooleanKeyword, span) == 0); + assert!(offset_of!(TSBooleanKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSNumberKeyword, node_id) == 8); assert!(offset_of!(TSNumberKeyword, span) == 0); + assert!(offset_of!(TSNumberKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSNeverKeyword, node_id) == 8); assert!(offset_of!(TSNeverKeyword, span) == 0); + assert!(offset_of!(TSNeverKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSIntrinsicKeyword, node_id) == 8); assert!(offset_of!(TSIntrinsicKeyword, span) == 0); + assert!(offset_of!(TSIntrinsicKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSUnknownKeyword, node_id) == 8); assert!(offset_of!(TSUnknownKeyword, span) == 0); + assert!(offset_of!(TSUnknownKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSNullKeyword, node_id) == 8); assert!(offset_of!(TSNullKeyword, span) == 0); + assert!(offset_of!(TSNullKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSUndefinedKeyword, node_id) == 8); assert!(offset_of!(TSUndefinedKeyword, span) == 0); + assert!(offset_of!(TSUndefinedKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSVoidKeyword, node_id) == 8); assert!(offset_of!(TSVoidKeyword, span) == 0); + assert!(offset_of!(TSVoidKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSSymbolKeyword, node_id) == 8); assert!(offset_of!(TSSymbolKeyword, span) == 0); + assert!(offset_of!(TSSymbolKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSThisType, node_id) == 8); assert!(offset_of!(TSThisType, span) == 0); + assert!(offset_of!(TSThisType, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSObjectKeyword, node_id) == 8); assert!(offset_of!(TSObjectKeyword, span) == 0); + assert!(offset_of!(TSObjectKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(TSBigIntKeyword, node_id) == 8); assert!(offset_of!(TSBigIntKeyword, span) == 0); + assert!(offset_of!(TSBigIntKeyword, node_id) == 8); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeReference, node_id) == 32); assert!(offset_of!(TSTypeReference, span) == 0); assert!(offset_of!(TSTypeReference, type_name) == 8); assert!(offset_of!(TSTypeReference, type_arguments) == 24); + assert!(offset_of!(TSTypeReference, node_id) == 32); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1397,26 +1397,26 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSQualifiedName, node_id) == 56); assert!(offset_of!(TSQualifiedName, span) == 0); assert!(offset_of!(TSQualifiedName, left) == 8); assert!(offset_of!(TSQualifiedName, right) == 24); + assert!(offset_of!(TSQualifiedName, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeParameterInstantiation, node_id) == 32); assert!(offset_of!(TSTypeParameterInstantiation, span) == 0); assert!(offset_of!(TSTypeParameterInstantiation, params) == 8); + assert!(offset_of!(TSTypeParameterInstantiation, node_id) == 32); // Padding: 1 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeParameter, node_id) == 72); assert!(offset_of!(TSTypeParameter, span) == 0); assert!(offset_of!(TSTypeParameter, name) == 8); assert!(offset_of!(TSTypeParameter, constraint) == 40); assert!(offset_of!(TSTypeParameter, default) == 56); + assert!(offset_of!(TSTypeParameter, node_id) == 72); assert!(offset_of!(TSTypeParameter, r#in) == 76); assert!(offset_of!(TSTypeParameter, out) == 77); assert!(offset_of!(TSTypeParameter, r#const) == 78); @@ -1424,20 +1424,20 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeParameterDeclaration, node_id) == 32); assert!(offset_of!(TSTypeParameterDeclaration, span) == 0); assert!(offset_of!(TSTypeParameterDeclaration, params) == 8); + assert!(offset_of!(TSTypeParameterDeclaration, node_id) == 32); // Padding: 7 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeAliasDeclaration, node_id) == 64); assert!(offset_of!(TSTypeAliasDeclaration, span) == 0); assert!(offset_of!(TSTypeAliasDeclaration, id) == 8); assert!(offset_of!(TSTypeAliasDeclaration, type_parameters) == 40); assert!(offset_of!(TSTypeAliasDeclaration, type_annotation) == 48); - assert!(offset_of!(TSTypeAliasDeclaration, declare) == 72); + assert!(offset_of!(TSTypeAliasDeclaration, node_id) == 64); assert!(offset_of!(TSTypeAliasDeclaration, scope_id) == 68); + assert!(offset_of!(TSTypeAliasDeclaration, declare) == 72); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -1445,40 +1445,40 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSClassImplements, node_id) == 32); assert!(offset_of!(TSClassImplements, span) == 0); assert!(offset_of!(TSClassImplements, expression) == 8); assert!(offset_of!(TSClassImplements, type_arguments) == 24); + assert!(offset_of!(TSClassImplements, node_id) == 32); // Padding: 7 bytes assert!(size_of::() == 96); assert!(align_of::() == 8); - assert!(offset_of!(TSInterfaceDeclaration, node_id) == 80); assert!(offset_of!(TSInterfaceDeclaration, span) == 0); assert!(offset_of!(TSInterfaceDeclaration, id) == 8); assert!(offset_of!(TSInterfaceDeclaration, type_parameters) == 40); assert!(offset_of!(TSInterfaceDeclaration, extends) == 48); assert!(offset_of!(TSInterfaceDeclaration, body) == 72); - assert!(offset_of!(TSInterfaceDeclaration, declare) == 88); + assert!(offset_of!(TSInterfaceDeclaration, node_id) == 80); assert!(offset_of!(TSInterfaceDeclaration, scope_id) == 84); + assert!(offset_of!(TSInterfaceDeclaration, declare) == 88); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSInterfaceBody, node_id) == 32); assert!(offset_of!(TSInterfaceBody, span) == 0); assert!(offset_of!(TSInterfaceBody, body) == 8); + assert!(offset_of!(TSInterfaceBody, node_id) == 32); // Padding: 1 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSPropertySignature, node_id) == 32); assert!(offset_of!(TSPropertySignature, span) == 0); + assert!(offset_of!(TSPropertySignature, key) == 8); + assert!(offset_of!(TSPropertySignature, type_annotation) == 24); + assert!(offset_of!(TSPropertySignature, node_id) == 32); assert!(offset_of!(TSPropertySignature, computed) == 36); assert!(offset_of!(TSPropertySignature, optional) == 37); assert!(offset_of!(TSPropertySignature, readonly) == 38); - assert!(offset_of!(TSPropertySignature, key) == 8); - assert!(offset_of!(TSPropertySignature, type_annotation) == 24); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1486,22 +1486,22 @@ const _: () = { // Padding: 2 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSIndexSignature, node_id) == 40); assert!(offset_of!(TSIndexSignature, span) == 0); assert!(offset_of!(TSIndexSignature, parameters) == 8); assert!(offset_of!(TSIndexSignature, type_annotation) == 32); + assert!(offset_of!(TSIndexSignature, node_id) == 40); assert!(offset_of!(TSIndexSignature, readonly) == 44); assert!(offset_of!(TSIndexSignature, r#static) == 45); // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSCallSignatureDeclaration, node_id) == 40); assert!(offset_of!(TSCallSignatureDeclaration, span) == 0); assert!(offset_of!(TSCallSignatureDeclaration, type_parameters) == 8); assert!(offset_of!(TSCallSignatureDeclaration, this_param) == 16); assert!(offset_of!(TSCallSignatureDeclaration, params) == 24); assert!(offset_of!(TSCallSignatureDeclaration, return_type) == 32); + assert!(offset_of!(TSCallSignatureDeclaration, node_id) == 40); assert!(offset_of!(TSCallSignatureDeclaration, scope_id) == 44); assert!(size_of::() == 1); @@ -1510,52 +1510,52 @@ const _: () = { // Padding: 5 bytes assert!(size_of::() == 72); assert!(align_of::() == 8); - assert!(offset_of!(TSMethodSignature, node_id) == 56); assert!(offset_of!(TSMethodSignature, span) == 0); assert!(offset_of!(TSMethodSignature, key) == 8); - assert!(offset_of!(TSMethodSignature, computed) == 64); - assert!(offset_of!(TSMethodSignature, optional) == 65); - assert!(offset_of!(TSMethodSignature, kind) == 66); assert!(offset_of!(TSMethodSignature, type_parameters) == 24); assert!(offset_of!(TSMethodSignature, this_param) == 32); assert!(offset_of!(TSMethodSignature, params) == 40); assert!(offset_of!(TSMethodSignature, return_type) == 48); + assert!(offset_of!(TSMethodSignature, node_id) == 56); assert!(offset_of!(TSMethodSignature, scope_id) == 60); + assert!(offset_of!(TSMethodSignature, computed) == 64); + assert!(offset_of!(TSMethodSignature, optional) == 65); + assert!(offset_of!(TSMethodSignature, kind) == 66); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSConstructSignatureDeclaration, node_id) == 32); assert!(offset_of!(TSConstructSignatureDeclaration, span) == 0); assert!(offset_of!(TSConstructSignatureDeclaration, type_parameters) == 8); assert!(offset_of!(TSConstructSignatureDeclaration, params) == 16); assert!(offset_of!(TSConstructSignatureDeclaration, return_type) == 24); + assert!(offset_of!(TSConstructSignatureDeclaration, node_id) == 32); assert!(offset_of!(TSConstructSignatureDeclaration, scope_id) == 36); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSIndexSignatureName, node_id) == 32); assert!(offset_of!(TSIndexSignatureName, span) == 0); assert!(offset_of!(TSIndexSignatureName, name) == 8); assert!(offset_of!(TSIndexSignatureName, type_annotation) == 24); + assert!(offset_of!(TSIndexSignatureName, node_id) == 32); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSInterfaceHeritage, node_id) == 32); assert!(offset_of!(TSInterfaceHeritage, span) == 0); assert!(offset_of!(TSInterfaceHeritage, expression) == 8); assert!(offset_of!(TSInterfaceHeritage, type_arguments) == 24); + assert!(offset_of!(TSInterfaceHeritage, node_id) == 32); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSTypePredicate, node_id) == 40); assert!(offset_of!(TSTypePredicate, span) == 0); assert!(offset_of!(TSTypePredicate, parameter_name) == 8); - assert!(offset_of!(TSTypePredicate, asserts) == 44); assert!(offset_of!(TSTypePredicate, type_annotation) == 32); + assert!(offset_of!(TSTypePredicate, node_id) == 40); + assert!(offset_of!(TSTypePredicate, asserts) == 44); assert!(size_of::() == 24); assert!(align_of::() == 8); @@ -1563,13 +1563,13 @@ const _: () = { // Padding: 6 bytes assert!(size_of::() == 96); assert!(align_of::() == 8); - assert!(offset_of!(TSModuleDeclaration, node_id) == 80); assert!(offset_of!(TSModuleDeclaration, span) == 0); assert!(offset_of!(TSModuleDeclaration, id) == 8); assert!(offset_of!(TSModuleDeclaration, body) == 64); + assert!(offset_of!(TSModuleDeclaration, node_id) == 80); + assert!(offset_of!(TSModuleDeclaration, scope_id) == 84); assert!(offset_of!(TSModuleDeclaration, kind) == 88); assert!(offset_of!(TSModuleDeclaration, declare) == 89); - assert!(offset_of!(TSModuleDeclaration, scope_id) == 84); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -1583,42 +1583,42 @@ const _: () = { // Padding: 7 bytes assert!(size_of::() == 96); assert!(align_of::() == 8); - assert!(offset_of!(TSGlobalDeclaration, node_id) == 80); assert!(offset_of!(TSGlobalDeclaration, span) == 0); assert!(offset_of!(TSGlobalDeclaration, global_span) == 8); assert!(offset_of!(TSGlobalDeclaration, body) == 16); - assert!(offset_of!(TSGlobalDeclaration, declare) == 88); + assert!(offset_of!(TSGlobalDeclaration, node_id) == 80); assert!(offset_of!(TSGlobalDeclaration, scope_id) == 84); + assert!(offset_of!(TSGlobalDeclaration, declare) == 88); // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSModuleBlock, node_id) == 56); assert!(offset_of!(TSModuleBlock, span) == 0); assert!(offset_of!(TSModuleBlock, directives) == 8); assert!(offset_of!(TSModuleBlock, body) == 32); + assert!(offset_of!(TSModuleBlock, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeLiteral, node_id) == 32); assert!(offset_of!(TSTypeLiteral, span) == 0); assert!(offset_of!(TSTypeLiteral, members) == 8); + assert!(offset_of!(TSTypeLiteral, node_id) == 32); // Padding: 4 bytes assert!(size_of::() == 24); assert!(align_of::() == 8); - assert!(offset_of!(TSInferType, node_id) == 16); assert!(offset_of!(TSInferType, span) == 0); assert!(offset_of!(TSInferType, type_parameter) == 8); + assert!(offset_of!(TSInferType, node_id) == 16); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeQuery, node_id) == 32); assert!(offset_of!(TSTypeQuery, span) == 0); assert!(offset_of!(TSTypeQuery, expr_name) == 8); assert!(offset_of!(TSTypeQuery, type_arguments) == 24); + assert!(offset_of!(TSTypeQuery, node_id) == 32); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1626,12 +1626,12 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 96); assert!(align_of::() == 8); - assert!(offset_of!(TSImportType, node_id) == 88); assert!(offset_of!(TSImportType, span) == 0); assert!(offset_of!(TSImportType, source) == 8); assert!(offset_of!(TSImportType, options) == 56); assert!(offset_of!(TSImportType, qualifier) == 64); assert!(offset_of!(TSImportType, type_arguments) == 80); + assert!(offset_of!(TSImportType, node_id) == 88); assert!(size_of::() == 16); assert!(align_of::() == 8); @@ -1639,45 +1639,45 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSImportTypeQualifiedName, node_id) == 56); assert!(offset_of!(TSImportTypeQualifiedName, span) == 0); assert!(offset_of!(TSImportTypeQualifiedName, left) == 8); assert!(offset_of!(TSImportTypeQualifiedName, right) == 24); + assert!(offset_of!(TSImportTypeQualifiedName, node_id) == 56); // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSFunctionType, node_id) == 40); assert!(offset_of!(TSFunctionType, span) == 0); assert!(offset_of!(TSFunctionType, type_parameters) == 8); assert!(offset_of!(TSFunctionType, this_param) == 16); assert!(offset_of!(TSFunctionType, params) == 24); assert!(offset_of!(TSFunctionType, return_type) == 32); + assert!(offset_of!(TSFunctionType, node_id) == 40); assert!(offset_of!(TSFunctionType, scope_id) == 44); // Padding: 7 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSConstructorType, node_id) == 32); assert!(offset_of!(TSConstructorType, span) == 0); - assert!(offset_of!(TSConstructorType, r#abstract) == 40); assert!(offset_of!(TSConstructorType, type_parameters) == 8); assert!(offset_of!(TSConstructorType, params) == 16); assert!(offset_of!(TSConstructorType, return_type) == 24); + assert!(offset_of!(TSConstructorType, node_id) == 32); assert!(offset_of!(TSConstructorType, scope_id) == 36); + assert!(offset_of!(TSConstructorType, r#abstract) == 40); // Padding: 6 bytes assert!(size_of::() == 104); assert!(align_of::() == 8); - assert!(offset_of!(TSMappedType, node_id) == 88); assert!(offset_of!(TSMappedType, span) == 0); assert!(offset_of!(TSMappedType, key) == 8); assert!(offset_of!(TSMappedType, constraint) == 40); assert!(offset_of!(TSMappedType, name_type) == 56); assert!(offset_of!(TSMappedType, type_annotation) == 72); + assert!(offset_of!(TSMappedType, node_id) == 88); + assert!(offset_of!(TSMappedType, scope_id) == 92); assert!(offset_of!(TSMappedType, optional) == 96); assert!(offset_of!(TSMappedType, readonly) == 97); - assert!(offset_of!(TSMappedType, scope_id) == 92); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -1685,42 +1685,42 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSTemplateLiteralType, node_id) == 56); assert!(offset_of!(TSTemplateLiteralType, span) == 0); assert!(offset_of!(TSTemplateLiteralType, quasis) == 8); assert!(offset_of!(TSTemplateLiteralType, types) == 32); + assert!(offset_of!(TSTemplateLiteralType, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSAsExpression, node_id) == 40); assert!(offset_of!(TSAsExpression, span) == 0); assert!(offset_of!(TSAsExpression, expression) == 8); assert!(offset_of!(TSAsExpression, type_annotation) == 24); + assert!(offset_of!(TSAsExpression, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSSatisfiesExpression, node_id) == 40); assert!(offset_of!(TSSatisfiesExpression, span) == 0); assert!(offset_of!(TSSatisfiesExpression, expression) == 8); assert!(offset_of!(TSSatisfiesExpression, type_annotation) == 24); + assert!(offset_of!(TSSatisfiesExpression, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSTypeAssertion, node_id) == 40); assert!(offset_of!(TSTypeAssertion, span) == 0); assert!(offset_of!(TSTypeAssertion, type_annotation) == 8); assert!(offset_of!(TSTypeAssertion, expression) == 24); + assert!(offset_of!(TSTypeAssertion, node_id) == 40); // Padding: 3 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSImportEqualsDeclaration, node_id) == 56); assert!(offset_of!(TSImportEqualsDeclaration, span) == 0); assert!(offset_of!(TSImportEqualsDeclaration, id) == 8); assert!(offset_of!(TSImportEqualsDeclaration, module_reference) == 40); + assert!(offset_of!(TSImportEqualsDeclaration, node_id) == 56); assert!(offset_of!(TSImportEqualsDeclaration, import_kind) == 60); assert!(size_of::() == 16); @@ -1729,45 +1729,45 @@ const _: () = { // Padding: 4 bytes assert!(size_of::() == 64); assert!(align_of::() == 8); - assert!(offset_of!(TSExternalModuleReference, node_id) == 56); assert!(offset_of!(TSExternalModuleReference, span) == 0); assert!(offset_of!(TSExternalModuleReference, expression) == 8); + assert!(offset_of!(TSExternalModuleReference, node_id) == 56); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSNonNullExpression, node_id) == 24); assert!(offset_of!(TSNonNullExpression, span) == 0); assert!(offset_of!(TSNonNullExpression, expression) == 8); + assert!(offset_of!(TSNonNullExpression, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(Decorator, node_id) == 24); assert!(offset_of!(Decorator, span) == 0); assert!(offset_of!(Decorator, expression) == 8); + assert!(offset_of!(Decorator, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(TSExportAssignment, node_id) == 24); assert!(offset_of!(TSExportAssignment, span) == 0); assert!(offset_of!(TSExportAssignment, expression) == 8); + assert!(offset_of!(TSExportAssignment, node_id) == 24); // Padding: 4 bytes assert!(size_of::() == 48); assert!(align_of::() == 8); - assert!(offset_of!(TSNamespaceExportDeclaration, node_id) == 40); assert!(offset_of!(TSNamespaceExportDeclaration, span) == 0); assert!(offset_of!(TSNamespaceExportDeclaration, id) == 8); + assert!(offset_of!(TSNamespaceExportDeclaration, node_id) == 40); // Padding: 4 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); - assert!(offset_of!(TSInstantiationExpression, node_id) == 32); assert!(offset_of!(TSInstantiationExpression, span) == 0); assert!(offset_of!(TSInstantiationExpression, expression) == 8); assert!(offset_of!(TSInstantiationExpression, type_arguments) == 24); + assert!(offset_of!(TSInstantiationExpression, node_id) == 32); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -1775,24 +1775,24 @@ const _: () = { // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(JSDocNullableType, node_id) == 24); assert!(offset_of!(JSDocNullableType, span) == 0); assert!(offset_of!(JSDocNullableType, type_annotation) == 8); + assert!(offset_of!(JSDocNullableType, node_id) == 24); assert!(offset_of!(JSDocNullableType, postfix) == 28); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(JSDocNonNullableType, node_id) == 24); assert!(offset_of!(JSDocNonNullableType, span) == 0); assert!(offset_of!(JSDocNonNullableType, type_annotation) == 8); + assert!(offset_of!(JSDocNonNullableType, node_id) == 24); assert!(offset_of!(JSDocNonNullableType, postfix) == 28); // Padding: 4 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); - assert!(offset_of!(JSDocUnknownType, node_id) == 8); assert!(offset_of!(JSDocUnknownType, span) == 0); + assert!(offset_of!(JSDocUnknownType, node_id) == 8); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -1823,15 +1823,15 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 96); assert!(align_of::() == 4); - assert!(offset_of!(Program, node_id) == 84); assert!(offset_of!(Program, span) == 0); - assert!(offset_of!(Program, source_type) == 92); assert!(offset_of!(Program, source_text) == 8); assert!(offset_of!(Program, comments) == 16); assert!(offset_of!(Program, hashbang) == 32); assert!(offset_of!(Program, directives) == 52); assert!(offset_of!(Program, body) == 68); + assert!(offset_of!(Program, node_id) == 84); assert!(offset_of!(Program, scope_id) == 88); + assert!(offset_of!(Program, source_type) == 92); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -1839,45 +1839,45 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(IdentifierName, node_id) == 20); assert!(offset_of!(IdentifierName, span) == 0); assert!(offset_of!(IdentifierName, name) == 8); + assert!(offset_of!(IdentifierName, node_id) == 20); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(IdentifierReference, node_id) == 20); assert!(offset_of!(IdentifierReference, span) == 0); assert!(offset_of!(IdentifierReference, name) == 8); + assert!(offset_of!(IdentifierReference, node_id) == 20); assert!(offset_of!(IdentifierReference, reference_id) == 24); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(BindingIdentifier, node_id) == 20); assert!(offset_of!(BindingIdentifier, span) == 0); assert!(offset_of!(BindingIdentifier, name) == 8); + assert!(offset_of!(BindingIdentifier, node_id) == 20); assert!(offset_of!(BindingIdentifier, symbol_id) == 24); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(LabelIdentifier, node_id) == 20); assert!(offset_of!(LabelIdentifier, span) == 0); assert!(offset_of!(LabelIdentifier, name) == 8); + assert!(offset_of!(LabelIdentifier, node_id) == 20); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(ThisExpression, node_id) == 8); assert!(offset_of!(ThisExpression, span) == 0); + assert!(offset_of!(ThisExpression, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(ArrayExpression, node_id) == 24); assert!(offset_of!(ArrayExpression, span) == 0); assert!(offset_of!(ArrayExpression, elements) == 8); + assert!(offset_of!(ArrayExpression, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 4); @@ -1885,15 +1885,15 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(Elision, node_id) == 8); assert!(offset_of!(Elision, span) == 0); + assert!(offset_of!(Elision, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(ObjectExpression, node_id) == 24); assert!(offset_of!(ObjectExpression, span) == 0); assert!(offset_of!(ObjectExpression, properties) == 8); + assert!(offset_of!(ObjectExpression, node_id) == 24); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -1901,11 +1901,11 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ObjectProperty, node_id) == 24); assert!(offset_of!(ObjectProperty, span) == 0); - assert!(offset_of!(ObjectProperty, kind) == 28); assert!(offset_of!(ObjectProperty, key) == 8); assert!(offset_of!(ObjectProperty, value) == 16); + assert!(offset_of!(ObjectProperty, node_id) == 24); + assert!(offset_of!(ObjectProperty, kind) == 28); assert!(offset_of!(ObjectProperty, method) == 29); assert!(offset_of!(ObjectProperty, shorthand) == 30); assert!(offset_of!(ObjectProperty, computed) == 31); @@ -1919,26 +1919,26 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TemplateLiteral, node_id) == 40); assert!(offset_of!(TemplateLiteral, span) == 0); assert!(offset_of!(TemplateLiteral, quasis) == 8); assert!(offset_of!(TemplateLiteral, expressions) == 24); + assert!(offset_of!(TemplateLiteral, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 68); assert!(align_of::() == 4); - assert!(offset_of!(TaggedTemplateExpression, node_id) == 64); assert!(offset_of!(TaggedTemplateExpression, span) == 0); assert!(offset_of!(TaggedTemplateExpression, tag) == 8); assert!(offset_of!(TaggedTemplateExpression, type_arguments) == 16); assert!(offset_of!(TaggedTemplateExpression, quasi) == 20); + assert!(offset_of!(TaggedTemplateExpression, node_id) == 64); // Padding: 2 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(TemplateElement, node_id) == 24); assert!(offset_of!(TemplateElement, span) == 0); assert!(offset_of!(TemplateElement, value) == 8); + assert!(offset_of!(TemplateElement, node_id) == 24); assert!(offset_of!(TemplateElement, tail) == 28); assert!(offset_of!(TemplateElement, lone_surrogates) == 29); @@ -1954,65 +1954,65 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ComputedMemberExpression, node_id) == 24); assert!(offset_of!(ComputedMemberExpression, span) == 0); assert!(offset_of!(ComputedMemberExpression, object) == 8); assert!(offset_of!(ComputedMemberExpression, expression) == 16); + assert!(offset_of!(ComputedMemberExpression, node_id) == 24); assert!(offset_of!(ComputedMemberExpression, optional) == 28); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(StaticMemberExpression, node_id) == 40); assert!(offset_of!(StaticMemberExpression, span) == 0); assert!(offset_of!(StaticMemberExpression, object) == 8); assert!(offset_of!(StaticMemberExpression, property) == 16); + assert!(offset_of!(StaticMemberExpression, node_id) == 40); assert!(offset_of!(StaticMemberExpression, optional) == 44); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(PrivateFieldExpression, node_id) == 40); assert!(offset_of!(PrivateFieldExpression, span) == 0); assert!(offset_of!(PrivateFieldExpression, object) == 8); assert!(offset_of!(PrivateFieldExpression, field) == 16); + assert!(offset_of!(PrivateFieldExpression, node_id) == 40); assert!(offset_of!(PrivateFieldExpression, optional) == 44); // Padding: 2 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(CallExpression, node_id) == 36); assert!(offset_of!(CallExpression, span) == 0); assert!(offset_of!(CallExpression, callee) == 8); assert!(offset_of!(CallExpression, type_arguments) == 16); assert!(offset_of!(CallExpression, arguments) == 20); + assert!(offset_of!(CallExpression, node_id) == 36); assert!(offset_of!(CallExpression, optional) == 40); assert!(offset_of!(CallExpression, pure) == 41); // Padding: 3 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(NewExpression, node_id) == 36); assert!(offset_of!(NewExpression, span) == 0); assert!(offset_of!(NewExpression, callee) == 8); assert!(offset_of!(NewExpression, type_arguments) == 16); assert!(offset_of!(NewExpression, arguments) == 20); + assert!(offset_of!(NewExpression, node_id) == 36); assert!(offset_of!(NewExpression, pure) == 40); // Padding: 0 bytes assert!(size_of::() == 60); assert!(align_of::() == 4); - assert!(offset_of!(MetaProperty, node_id) == 56); assert!(offset_of!(MetaProperty, span) == 0); assert!(offset_of!(MetaProperty, meta) == 8); assert!(offset_of!(MetaProperty, property) == 32); + assert!(offset_of!(MetaProperty, node_id) == 56); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(SpreadElement, node_id) == 16); assert!(offset_of!(SpreadElement, span) == 0); assert!(offset_of!(SpreadElement, argument) == 8); + assert!(offset_of!(SpreadElement, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2020,63 +2020,63 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 2 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(UpdateExpression, node_id) == 16); assert!(offset_of!(UpdateExpression, span) == 0); + assert!(offset_of!(UpdateExpression, argument) == 8); + assert!(offset_of!(UpdateExpression, node_id) == 16); assert!(offset_of!(UpdateExpression, operator) == 20); assert!(offset_of!(UpdateExpression, prefix) == 21); - assert!(offset_of!(UpdateExpression, argument) == 8); // Padding: 3 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(UnaryExpression, node_id) == 16); assert!(offset_of!(UnaryExpression, span) == 0); - assert!(offset_of!(UnaryExpression, operator) == 20); assert!(offset_of!(UnaryExpression, argument) == 8); + assert!(offset_of!(UnaryExpression, node_id) == 16); + assert!(offset_of!(UnaryExpression, operator) == 20); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(BinaryExpression, node_id) == 24); assert!(offset_of!(BinaryExpression, span) == 0); assert!(offset_of!(BinaryExpression, left) == 8); - assert!(offset_of!(BinaryExpression, operator) == 28); assert!(offset_of!(BinaryExpression, right) == 16); + assert!(offset_of!(BinaryExpression, node_id) == 24); + assert!(offset_of!(BinaryExpression, operator) == 28); // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(PrivateInExpression, node_id) == 40); assert!(offset_of!(PrivateInExpression, span) == 0); assert!(offset_of!(PrivateInExpression, left) == 8); assert!(offset_of!(PrivateInExpression, right) == 32); + assert!(offset_of!(PrivateInExpression, node_id) == 40); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(LogicalExpression, node_id) == 24); assert!(offset_of!(LogicalExpression, span) == 0); assert!(offset_of!(LogicalExpression, left) == 8); - assert!(offset_of!(LogicalExpression, operator) == 28); assert!(offset_of!(LogicalExpression, right) == 16); + assert!(offset_of!(LogicalExpression, node_id) == 24); + assert!(offset_of!(LogicalExpression, operator) == 28); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(ConditionalExpression, node_id) == 32); assert!(offset_of!(ConditionalExpression, span) == 0); assert!(offset_of!(ConditionalExpression, test) == 8); assert!(offset_of!(ConditionalExpression, consequent) == 16); assert!(offset_of!(ConditionalExpression, alternate) == 24); + assert!(offset_of!(ConditionalExpression, node_id) == 32); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(AssignmentExpression, node_id) == 24); assert!(offset_of!(AssignmentExpression, span) == 0); - assert!(offset_of!(AssignmentExpression, operator) == 28); assert!(offset_of!(AssignmentExpression, left) == 8); assert!(offset_of!(AssignmentExpression, right) == 16); + assert!(offset_of!(AssignmentExpression, node_id) == 24); + assert!(offset_of!(AssignmentExpression, operator) == 28); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2090,25 +2090,25 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ArrayAssignmentTarget, node_id) == 28); assert!(offset_of!(ArrayAssignmentTarget, span) == 0); assert!(offset_of!(ArrayAssignmentTarget, elements) == 8); assert!(offset_of!(ArrayAssignmentTarget, rest) == 24); + assert!(offset_of!(ArrayAssignmentTarget, node_id) == 28); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ObjectAssignmentTarget, node_id) == 28); assert!(offset_of!(ObjectAssignmentTarget, span) == 0); assert!(offset_of!(ObjectAssignmentTarget, properties) == 8); assert!(offset_of!(ObjectAssignmentTarget, rest) == 24); + assert!(offset_of!(ObjectAssignmentTarget, node_id) == 28); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(AssignmentTargetRest, node_id) == 16); assert!(offset_of!(AssignmentTargetRest, span) == 0); assert!(offset_of!(AssignmentTargetRest, target) == 8); + assert!(offset_of!(AssignmentTargetRest, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2116,10 +2116,10 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(AssignmentTargetWithDefault, node_id) == 24); assert!(offset_of!(AssignmentTargetWithDefault, span) == 0); assert!(offset_of!(AssignmentTargetWithDefault, binding) == 8); assert!(offset_of!(AssignmentTargetWithDefault, init) == 16); + assert!(offset_of!(AssignmentTargetWithDefault, node_id) == 24); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2127,46 +2127,46 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(AssignmentTargetPropertyIdentifier, node_id) == 44); assert!(offset_of!(AssignmentTargetPropertyIdentifier, span) == 0); assert!(offset_of!(AssignmentTargetPropertyIdentifier, binding) == 8); assert!(offset_of!(AssignmentTargetPropertyIdentifier, init) == 36); + assert!(offset_of!(AssignmentTargetPropertyIdentifier, node_id) == 44); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(AssignmentTargetPropertyProperty, node_id) == 24); assert!(offset_of!(AssignmentTargetPropertyProperty, span) == 0); assert!(offset_of!(AssignmentTargetPropertyProperty, name) == 8); assert!(offset_of!(AssignmentTargetPropertyProperty, binding) == 16); + assert!(offset_of!(AssignmentTargetPropertyProperty, node_id) == 24); assert!(offset_of!(AssignmentTargetPropertyProperty, computed) == 28); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(SequenceExpression, node_id) == 24); assert!(offset_of!(SequenceExpression, span) == 0); assert!(offset_of!(SequenceExpression, expressions) == 8); + assert!(offset_of!(SequenceExpression, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(Super, node_id) == 8); assert!(offset_of!(Super, span) == 0); + assert!(offset_of!(Super, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(AwaitExpression, node_id) == 16); assert!(offset_of!(AwaitExpression, span) == 0); assert!(offset_of!(AwaitExpression, argument) == 8); + assert!(offset_of!(AwaitExpression, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(ChainExpression, node_id) == 16); assert!(offset_of!(ChainExpression, span) == 0); assert!(offset_of!(ChainExpression, expression) == 8); + assert!(offset_of!(ChainExpression, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2174,9 +2174,9 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(ParenthesizedExpression, node_id) == 16); assert!(offset_of!(ParenthesizedExpression, span) == 0); assert!(offset_of!(ParenthesizedExpression, expression) == 8); + assert!(offset_of!(ParenthesizedExpression, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2184,24 +2184,24 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 52); assert!(align_of::() == 4); - assert!(offset_of!(Directive, node_id) == 48); assert!(offset_of!(Directive, span) == 0); assert!(offset_of!(Directive, expression) == 8); assert!(offset_of!(Directive, directive) == 40); + assert!(offset_of!(Directive, node_id) == 48); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(Hashbang, node_id) == 16); assert!(offset_of!(Hashbang, span) == 0); assert!(offset_of!(Hashbang, value) == 8); + assert!(offset_of!(Hashbang, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(BlockStatement, node_id) == 24); assert!(offset_of!(BlockStatement, span) == 0); assert!(offset_of!(BlockStatement, body) == 8); + assert!(offset_of!(BlockStatement, node_id) == 24); assert!(offset_of!(BlockStatement, scope_id) == 28); assert!(size_of::() == 8); @@ -2210,10 +2210,10 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 2 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(VariableDeclaration, node_id) == 24); assert!(offset_of!(VariableDeclaration, span) == 0); - assert!(offset_of!(VariableDeclaration, kind) == 28); assert!(offset_of!(VariableDeclaration, declarations) == 8); + assert!(offset_of!(VariableDeclaration, node_id) == 24); + assert!(offset_of!(VariableDeclaration, kind) == 28); assert!(offset_of!(VariableDeclaration, declare) == 29); assert!(size_of::() == 1); @@ -2222,61 +2222,61 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 2 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(VariableDeclarator, node_id) == 28); assert!(offset_of!(VariableDeclarator, span) == 0); - assert!(offset_of!(VariableDeclarator, kind) == 32); assert!(offset_of!(VariableDeclarator, id) == 8); assert!(offset_of!(VariableDeclarator, type_annotation) == 16); assert!(offset_of!(VariableDeclarator, init) == 20); + assert!(offset_of!(VariableDeclarator, node_id) == 28); + assert!(offset_of!(VariableDeclarator, kind) == 32); assert!(offset_of!(VariableDeclarator, definite) == 33); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(EmptyStatement, node_id) == 8); assert!(offset_of!(EmptyStatement, span) == 0); + assert!(offset_of!(EmptyStatement, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(ExpressionStatement, node_id) == 16); assert!(offset_of!(ExpressionStatement, span) == 0); assert!(offset_of!(ExpressionStatement, expression) == 8); + assert!(offset_of!(ExpressionStatement, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(IfStatement, node_id) == 32); assert!(offset_of!(IfStatement, span) == 0); assert!(offset_of!(IfStatement, test) == 8); assert!(offset_of!(IfStatement, consequent) == 16); assert!(offset_of!(IfStatement, alternate) == 24); + assert!(offset_of!(IfStatement, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(DoWhileStatement, node_id) == 24); assert!(offset_of!(DoWhileStatement, span) == 0); assert!(offset_of!(DoWhileStatement, body) == 8); assert!(offset_of!(DoWhileStatement, test) == 16); + assert!(offset_of!(DoWhileStatement, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(WhileStatement, node_id) == 24); assert!(offset_of!(WhileStatement, span) == 0); assert!(offset_of!(WhileStatement, test) == 8); assert!(offset_of!(WhileStatement, body) == 16); + assert!(offset_of!(WhileStatement, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(ForStatement, node_id) == 40); assert!(offset_of!(ForStatement, span) == 0); assert!(offset_of!(ForStatement, init) == 8); assert!(offset_of!(ForStatement, test) == 16); assert!(offset_of!(ForStatement, update) == 24); assert!(offset_of!(ForStatement, body) == 32); + assert!(offset_of!(ForStatement, node_id) == 40); assert!(offset_of!(ForStatement, scope_id) == 44); assert!(size_of::() == 8); @@ -2285,11 +2285,11 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 4); - assert!(offset_of!(ForInStatement, node_id) == 32); assert!(offset_of!(ForInStatement, span) == 0); assert!(offset_of!(ForInStatement, left) == 8); assert!(offset_of!(ForInStatement, right) == 16); assert!(offset_of!(ForInStatement, body) == 24); + assert!(offset_of!(ForInStatement, node_id) == 32); assert!(offset_of!(ForInStatement, scope_id) == 36); assert!(size_of::() == 8); @@ -2298,107 +2298,107 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(ForOfStatement, node_id) == 32); assert!(offset_of!(ForOfStatement, span) == 0); - assert!(offset_of!(ForOfStatement, r#await) == 40); assert!(offset_of!(ForOfStatement, left) == 8); assert!(offset_of!(ForOfStatement, right) == 16); assert!(offset_of!(ForOfStatement, body) == 24); + assert!(offset_of!(ForOfStatement, node_id) == 32); assert!(offset_of!(ForOfStatement, scope_id) == 36); + assert!(offset_of!(ForOfStatement, r#await) == 40); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(ContinueStatement, node_id) == 32); assert!(offset_of!(ContinueStatement, span) == 0); assert!(offset_of!(ContinueStatement, label) == 8); + assert!(offset_of!(ContinueStatement, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(BreakStatement, node_id) == 32); assert!(offset_of!(BreakStatement, span) == 0); assert!(offset_of!(BreakStatement, label) == 8); + assert!(offset_of!(BreakStatement, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(ReturnStatement, node_id) == 16); assert!(offset_of!(ReturnStatement, span) == 0); assert!(offset_of!(ReturnStatement, argument) == 8); + assert!(offset_of!(ReturnStatement, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(WithStatement, node_id) == 24); assert!(offset_of!(WithStatement, span) == 0); assert!(offset_of!(WithStatement, object) == 8); assert!(offset_of!(WithStatement, body) == 16); + assert!(offset_of!(WithStatement, node_id) == 24); assert!(offset_of!(WithStatement, scope_id) == 28); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 4); - assert!(offset_of!(SwitchStatement, node_id) == 32); assert!(offset_of!(SwitchStatement, span) == 0); assert!(offset_of!(SwitchStatement, discriminant) == 8); assert!(offset_of!(SwitchStatement, cases) == 16); + assert!(offset_of!(SwitchStatement, node_id) == 32); assert!(offset_of!(SwitchStatement, scope_id) == 36); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(SwitchCase, node_id) == 32); assert!(offset_of!(SwitchCase, span) == 0); assert!(offset_of!(SwitchCase, test) == 8); assert!(offset_of!(SwitchCase, consequent) == 16); + assert!(offset_of!(SwitchCase, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(LabeledStatement, node_id) == 40); assert!(offset_of!(LabeledStatement, span) == 0); assert!(offset_of!(LabeledStatement, label) == 8); assert!(offset_of!(LabeledStatement, body) == 32); + assert!(offset_of!(LabeledStatement, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(ThrowStatement, node_id) == 16); assert!(offset_of!(ThrowStatement, span) == 0); assert!(offset_of!(ThrowStatement, argument) == 8); + assert!(offset_of!(ThrowStatement, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TryStatement, node_id) == 20); assert!(offset_of!(TryStatement, span) == 0); assert!(offset_of!(TryStatement, block) == 8); assert!(offset_of!(TryStatement, handler) == 12); assert!(offset_of!(TryStatement, finalizer) == 16); + assert!(offset_of!(TryStatement, node_id) == 20); // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(CatchClause, node_id) == 36); assert!(offset_of!(CatchClause, span) == 0); assert!(offset_of!(CatchClause, param) == 8); assert!(offset_of!(CatchClause, body) == 32); + assert!(offset_of!(CatchClause, node_id) == 36); assert!(offset_of!(CatchClause, scope_id) == 40); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(CatchParameter, node_id) == 20); assert!(offset_of!(CatchParameter, span) == 0); assert!(offset_of!(CatchParameter, pattern) == 8); assert!(offset_of!(CatchParameter, type_annotation) == 16); + assert!(offset_of!(CatchParameter, node_id) == 20); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(DebuggerStatement, node_id) == 8); assert!(offset_of!(DebuggerStatement, span) == 0); + assert!(offset_of!(DebuggerStatement, node_id) == 8); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2406,60 +2406,60 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(AssignmentPattern, node_id) == 24); assert!(offset_of!(AssignmentPattern, span) == 0); assert!(offset_of!(AssignmentPattern, left) == 8); assert!(offset_of!(AssignmentPattern, right) == 16); + assert!(offset_of!(AssignmentPattern, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ObjectPattern, node_id) == 28); assert!(offset_of!(ObjectPattern, span) == 0); assert!(offset_of!(ObjectPattern, properties) == 8); assert!(offset_of!(ObjectPattern, rest) == 24); + assert!(offset_of!(ObjectPattern, node_id) == 28); // Padding: 2 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(BindingProperty, node_id) == 24); assert!(offset_of!(BindingProperty, span) == 0); assert!(offset_of!(BindingProperty, key) == 8); assert!(offset_of!(BindingProperty, value) == 16); + assert!(offset_of!(BindingProperty, node_id) == 24); assert!(offset_of!(BindingProperty, shorthand) == 28); assert!(offset_of!(BindingProperty, computed) == 29); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ArrayPattern, node_id) == 28); assert!(offset_of!(ArrayPattern, span) == 0); assert!(offset_of!(ArrayPattern, elements) == 8); assert!(offset_of!(ArrayPattern, rest) == 24); + assert!(offset_of!(ArrayPattern, node_id) == 28); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(BindingRestElement, node_id) == 16); assert!(offset_of!(BindingRestElement, span) == 0); assert!(offset_of!(BindingRestElement, argument) == 8); + assert!(offset_of!(BindingRestElement, node_id) == 16); // Padding: 2 bytes assert!(size_of::() == 72); assert!(align_of::() == 4); - assert!(offset_of!(Function, node_id) == 56); assert!(offset_of!(Function, span) == 0); - assert!(offset_of!(Function, r#type) == 64); assert!(offset_of!(Function, id) == 8); - assert!(offset_of!(Function, generator) == 65); - assert!(offset_of!(Function, r#async) == 66); - assert!(offset_of!(Function, declare) == 67); assert!(offset_of!(Function, type_parameters) == 36); assert!(offset_of!(Function, this_param) == 40); assert!(offset_of!(Function, params) == 44); assert!(offset_of!(Function, return_type) == 48); assert!(offset_of!(Function, body) == 52); + assert!(offset_of!(Function, node_id) == 56); assert!(offset_of!(Function, scope_id) == 60); + assert!(offset_of!(Function, r#type) == 64); + assert!(offset_of!(Function, generator) == 65); + assert!(offset_of!(Function, r#async) == 66); + assert!(offset_of!(Function, declare) == 67); assert!(offset_of!(Function, pure) == 68); assert!(offset_of!(Function, pife) == 69); @@ -2469,21 +2469,21 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(FormalParameters, node_id) == 28); assert!(offset_of!(FormalParameters, span) == 0); - assert!(offset_of!(FormalParameters, kind) == 32); assert!(offset_of!(FormalParameters, items) == 8); assert!(offset_of!(FormalParameters, rest) == 24); + assert!(offset_of!(FormalParameters, node_id) == 28); + assert!(offset_of!(FormalParameters, kind) == 32); // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(FormalParameter, node_id) == 40); assert!(offset_of!(FormalParameter, span) == 0); assert!(offset_of!(FormalParameter, decorators) == 8); assert!(offset_of!(FormalParameter, pattern) == 24); assert!(offset_of!(FormalParameter, type_annotation) == 32); assert!(offset_of!(FormalParameter, initializer) == 36); + assert!(offset_of!(FormalParameter, node_id) == 40); assert!(offset_of!(FormalParameter, optional) == 44); assert!(offset_of!(FormalParameter, accessibility) == 45); assert!(offset_of!(FormalParameter, readonly) == 46); @@ -2495,49 +2495,47 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 52); assert!(align_of::() == 4); - assert!(offset_of!(FormalParameterRest, node_id) == 48); assert!(offset_of!(FormalParameterRest, span) == 0); assert!(offset_of!(FormalParameterRest, decorators) == 8); assert!(offset_of!(FormalParameterRest, rest) == 24); assert!(offset_of!(FormalParameterRest, type_annotation) == 44); + assert!(offset_of!(FormalParameterRest, node_id) == 48); // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(FunctionBody, node_id) == 40); assert!(offset_of!(FunctionBody, span) == 0); assert!(offset_of!(FunctionBody, directives) == 8); assert!(offset_of!(FunctionBody, statements) == 24); + assert!(offset_of!(FunctionBody, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(ArrowFunctionExpression, node_id) == 24); assert!(offset_of!(ArrowFunctionExpression, span) == 0); - assert!(offset_of!(ArrowFunctionExpression, expression) == 32); - assert!(offset_of!(ArrowFunctionExpression, r#async) == 33); assert!(offset_of!(ArrowFunctionExpression, type_parameters) == 8); assert!(offset_of!(ArrowFunctionExpression, params) == 12); assert!(offset_of!(ArrowFunctionExpression, return_type) == 16); assert!(offset_of!(ArrowFunctionExpression, body) == 20); + assert!(offset_of!(ArrowFunctionExpression, node_id) == 24); assert!(offset_of!(ArrowFunctionExpression, scope_id) == 28); + assert!(offset_of!(ArrowFunctionExpression, expression) == 32); + assert!(offset_of!(ArrowFunctionExpression, r#async) == 33); assert!(offset_of!(ArrowFunctionExpression, pure) == 34); assert!(offset_of!(ArrowFunctionExpression, pife) == 35); // Padding: 3 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(YieldExpression, node_id) == 16); assert!(offset_of!(YieldExpression, span) == 0); - assert!(offset_of!(YieldExpression, delegate) == 20); assert!(offset_of!(YieldExpression, argument) == 8); + assert!(offset_of!(YieldExpression, node_id) == 16); + assert!(offset_of!(YieldExpression, delegate) == 20); // Padding: 1 bytes assert!(size_of::() == 100); assert!(align_of::() == 4); - assert!(offset_of!(Class, node_id) == 88); assert!(offset_of!(Class, span) == 0); - assert!(offset_of!(Class, r#type) == 96); assert!(offset_of!(Class, decorators) == 8); assert!(offset_of!(Class, id) == 24); assert!(offset_of!(Class, type_parameters) == 52); @@ -2545,9 +2543,11 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(offset_of!(Class, super_type_arguments) == 64); assert!(offset_of!(Class, implements) == 68); assert!(offset_of!(Class, body) == 84); + assert!(offset_of!(Class, node_id) == 88); + assert!(offset_of!(Class, scope_id) == 92); + assert!(offset_of!(Class, r#type) == 96); assert!(offset_of!(Class, r#abstract) == 97); assert!(offset_of!(Class, declare) == 98); - assert!(offset_of!(Class, scope_id) == 92); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -2555,9 +2555,9 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(ClassBody, node_id) == 24); assert!(offset_of!(ClassBody, span) == 0); assert!(offset_of!(ClassBody, body) == 8); + assert!(offset_of!(ClassBody, node_id) == 24); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2565,12 +2565,12 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 1 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(MethodDefinition, node_id) == 36); assert!(offset_of!(MethodDefinition, span) == 0); - assert!(offset_of!(MethodDefinition, r#type) == 40); assert!(offset_of!(MethodDefinition, decorators) == 8); assert!(offset_of!(MethodDefinition, key) == 24); assert!(offset_of!(MethodDefinition, value) == 32); + assert!(offset_of!(MethodDefinition, node_id) == 36); + assert!(offset_of!(MethodDefinition, r#type) == 40); assert!(offset_of!(MethodDefinition, kind) == 41); assert!(offset_of!(MethodDefinition, computed) == 42); assert!(offset_of!(MethodDefinition, r#static) == 43); @@ -2584,13 +2584,13 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 60); assert!(align_of::() == 4); - assert!(offset_of!(PropertyDefinition, node_id) == 44); assert!(offset_of!(PropertyDefinition, span) == 0); - assert!(offset_of!(PropertyDefinition, r#type) == 48); assert!(offset_of!(PropertyDefinition, decorators) == 8); assert!(offset_of!(PropertyDefinition, key) == 24); assert!(offset_of!(PropertyDefinition, type_annotation) == 32); assert!(offset_of!(PropertyDefinition, value) == 36); + assert!(offset_of!(PropertyDefinition, node_id) == 44); + assert!(offset_of!(PropertyDefinition, r#type) == 48); assert!(offset_of!(PropertyDefinition, computed) == 49); assert!(offset_of!(PropertyDefinition, r#static) == 50); assert!(offset_of!(PropertyDefinition, declare) == 51); @@ -2609,16 +2609,16 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(PrivateIdentifier, node_id) == 20); assert!(offset_of!(PrivateIdentifier, span) == 0); assert!(offset_of!(PrivateIdentifier, name) == 8); + assert!(offset_of!(PrivateIdentifier, node_id) == 20); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(StaticBlock, node_id) == 24); assert!(offset_of!(StaticBlock, span) == 0); assert!(offset_of!(StaticBlock, body) == 8); + assert!(offset_of!(StaticBlock, node_id) == 24); assert!(offset_of!(StaticBlock, scope_id) == 28); assert!(size_of::() == 8); @@ -2630,13 +2630,13 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 2 bytes assert!(size_of::() == 56); assert!(align_of::() == 4); - assert!(offset_of!(AccessorProperty, node_id) == 44); assert!(offset_of!(AccessorProperty, span) == 0); - assert!(offset_of!(AccessorProperty, r#type) == 48); assert!(offset_of!(AccessorProperty, decorators) == 8); assert!(offset_of!(AccessorProperty, key) == 24); assert!(offset_of!(AccessorProperty, type_annotation) == 32); assert!(offset_of!(AccessorProperty, value) == 36); + assert!(offset_of!(AccessorProperty, node_id) == 44); + assert!(offset_of!(AccessorProperty, r#type) == 48); assert!(offset_of!(AccessorProperty, computed) == 49); assert!(offset_of!(AccessorProperty, r#static) == 50); assert!(offset_of!(AccessorProperty, r#override) == 51); @@ -2646,21 +2646,21 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(ImportExpression, node_id) == 24); assert!(offset_of!(ImportExpression, span) == 0); assert!(offset_of!(ImportExpression, source) == 8); assert!(offset_of!(ImportExpression, options) == 16); + assert!(offset_of!(ImportExpression, node_id) == 24); assert!(offset_of!(ImportExpression, phase) == 28); // Padding: 2 bytes assert!(size_of::() == 68); assert!(align_of::() == 4); - assert!(offset_of!(ImportDeclaration, node_id) == 60); assert!(offset_of!(ImportDeclaration, span) == 0); assert!(offset_of!(ImportDeclaration, specifiers) == 8); assert!(offset_of!(ImportDeclaration, source) == 24); - assert!(offset_of!(ImportDeclaration, phase) == 64); assert!(offset_of!(ImportDeclaration, with_clause) == 56); + assert!(offset_of!(ImportDeclaration, node_id) == 60); + assert!(offset_of!(ImportDeclaration, phase) == 64); assert!(offset_of!(ImportDeclaration, import_kind) == 65); assert!(size_of::() == 1); @@ -2672,33 +2672,33 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 80); assert!(align_of::() == 4); - assert!(offset_of!(ImportSpecifier, node_id) == 72); assert!(offset_of!(ImportSpecifier, span) == 0); assert!(offset_of!(ImportSpecifier, imported) == 8); assert!(offset_of!(ImportSpecifier, local) == 44); + assert!(offset_of!(ImportSpecifier, node_id) == 72); assert!(offset_of!(ImportSpecifier, import_kind) == 76); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 4); - assert!(offset_of!(ImportDefaultSpecifier, node_id) == 36); assert!(offset_of!(ImportDefaultSpecifier, span) == 0); assert!(offset_of!(ImportDefaultSpecifier, local) == 8); + assert!(offset_of!(ImportDefaultSpecifier, node_id) == 36); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 4); - assert!(offset_of!(ImportNamespaceSpecifier, node_id) == 36); assert!(offset_of!(ImportNamespaceSpecifier, span) == 0); assert!(offset_of!(ImportNamespaceSpecifier, local) == 8); + assert!(offset_of!(ImportNamespaceSpecifier, node_id) == 36); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(WithClause, node_id) == 24); assert!(offset_of!(WithClause, span) == 0); - assert!(offset_of!(WithClause, keyword) == 28); assert!(offset_of!(WithClause, with_entries) == 8); + assert!(offset_of!(WithClause, node_id) == 24); + assert!(offset_of!(WithClause, keyword) == 28); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -2706,10 +2706,10 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 80); assert!(align_of::() == 4); - assert!(offset_of!(ImportAttribute, node_id) == 76); assert!(offset_of!(ImportAttribute, span) == 0); assert!(offset_of!(ImportAttribute, key) == 8); assert!(offset_of!(ImportAttribute, value) == 44); + assert!(offset_of!(ImportAttribute, node_id) == 76); assert!(size_of::() == 36); assert!(align_of::() == 4); @@ -2717,38 +2717,38 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 76); assert!(align_of::() == 4); - assert!(offset_of!(ExportNamedDeclaration, node_id) == 68); assert!(offset_of!(ExportNamedDeclaration, span) == 0); assert!(offset_of!(ExportNamedDeclaration, declaration) == 8); assert!(offset_of!(ExportNamedDeclaration, specifiers) == 16); assert!(offset_of!(ExportNamedDeclaration, source) == 32); - assert!(offset_of!(ExportNamedDeclaration, export_kind) == 72); assert!(offset_of!(ExportNamedDeclaration, with_clause) == 64); + assert!(offset_of!(ExportNamedDeclaration, node_id) == 68); + assert!(offset_of!(ExportNamedDeclaration, export_kind) == 72); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(ExportDefaultDeclaration, node_id) == 16); assert!(offset_of!(ExportDefaultDeclaration, span) == 0); assert!(offset_of!(ExportDefaultDeclaration, declaration) == 8); + assert!(offset_of!(ExportDefaultDeclaration, node_id) == 16); // Padding: 3 bytes assert!(size_of::() == 88); assert!(align_of::() == 4); - assert!(offset_of!(ExportAllDeclaration, node_id) == 80); assert!(offset_of!(ExportAllDeclaration, span) == 0); assert!(offset_of!(ExportAllDeclaration, exported) == 8); assert!(offset_of!(ExportAllDeclaration, source) == 44); assert!(offset_of!(ExportAllDeclaration, with_clause) == 76); + assert!(offset_of!(ExportAllDeclaration, node_id) == 80); assert!(offset_of!(ExportAllDeclaration, export_kind) == 84); // Padding: 3 bytes assert!(size_of::() == 88); assert!(align_of::() == 4); - assert!(offset_of!(ExportSpecifier, node_id) == 80); assert!(offset_of!(ExportSpecifier, span) == 0); assert!(offset_of!(ExportSpecifier, local) == 8); assert!(offset_of!(ExportSpecifier, exported) == 44); + assert!(offset_of!(ExportSpecifier, node_id) == 80); assert!(offset_of!(ExportSpecifier, export_kind) == 84); assert!(size_of::() == 8); @@ -2760,58 +2760,58 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 52); assert!(align_of::() == 4); - assert!(offset_of!(V8IntrinsicExpression, node_id) == 48); assert!(offset_of!(V8IntrinsicExpression, span) == 0); assert!(offset_of!(V8IntrinsicExpression, name) == 8); assert!(offset_of!(V8IntrinsicExpression, arguments) == 32); + assert!(offset_of!(V8IntrinsicExpression, node_id) == 48); // Padding: 3 bytes assert!(size_of::() == 16); assert!(align_of::() == 4); - assert!(offset_of!(BooleanLiteral, node_id) == 8); assert!(offset_of!(BooleanLiteral, span) == 0); + assert!(offset_of!(BooleanLiteral, node_id) == 8); assert!(offset_of!(BooleanLiteral, value) == 12); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(NullLiteral, node_id) == 8); assert!(offset_of!(NullLiteral, span) == 0); + assert!(offset_of!(NullLiteral, node_id) == 8); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 8); - assert!(offset_of!(NumericLiteral, node_id) == 24); assert!(offset_of!(NumericLiteral, span) == 0); assert!(offset_of!(NumericLiteral, value) == 8); assert!(offset_of!(NumericLiteral, raw) == 16); + assert!(offset_of!(NumericLiteral, node_id) == 24); assert!(offset_of!(NumericLiteral, base) == 28); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(StringLiteral, node_id) == 24); assert!(offset_of!(StringLiteral, span) == 0); assert!(offset_of!(StringLiteral, value) == 8); assert!(offset_of!(StringLiteral, raw) == 16); + assert!(offset_of!(StringLiteral, node_id) == 24); assert!(offset_of!(StringLiteral, lone_surrogates) == 28); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(BigIntLiteral, node_id) == 24); assert!(offset_of!(BigIntLiteral, span) == 0); assert!(offset_of!(BigIntLiteral, value) == 8); assert!(offset_of!(BigIntLiteral, raw) == 16); + assert!(offset_of!(BigIntLiteral, node_id) == 24); assert!(offset_of!(BigIntLiteral, base) == 28); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(RegExpLiteral, node_id) == 32); assert!(offset_of!(RegExpLiteral, span) == 0); assert!(offset_of!(RegExpLiteral, regex) == 8); assert!(offset_of!(RegExpLiteral, raw) == 24); + assert!(offset_of!(RegExpLiteral, node_id) == 32); // Padding: 3 bytes assert!(size_of::() == 16); @@ -2832,48 +2832,48 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(JSXElement, node_id) == 32); assert!(offset_of!(JSXElement, span) == 0); assert!(offset_of!(JSXElement, opening_element) == 8); assert!(offset_of!(JSXElement, children) == 12); assert!(offset_of!(JSXElement, closing_element) == 28); + assert!(offset_of!(JSXElement, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 4); - assert!(offset_of!(JSXOpeningElement, node_id) == 36); assert!(offset_of!(JSXOpeningElement, span) == 0); assert!(offset_of!(JSXOpeningElement, name) == 8); assert!(offset_of!(JSXOpeningElement, type_arguments) == 16); assert!(offset_of!(JSXOpeningElement, attributes) == 20); + assert!(offset_of!(JSXOpeningElement, node_id) == 36); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(JSXClosingElement, node_id) == 16); assert!(offset_of!(JSXClosingElement, span) == 0); assert!(offset_of!(JSXClosingElement, name) == 8); + assert!(offset_of!(JSXClosingElement, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 52); assert!(align_of::() == 4); - assert!(offset_of!(JSXFragment, node_id) == 48); assert!(offset_of!(JSXFragment, span) == 0); assert!(offset_of!(JSXFragment, opening_fragment) == 8); assert!(offset_of!(JSXFragment, children) == 20); assert!(offset_of!(JSXFragment, closing_fragment) == 36); + assert!(offset_of!(JSXFragment, node_id) == 48); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(JSXOpeningFragment, node_id) == 8); assert!(offset_of!(JSXOpeningFragment, span) == 0); + assert!(offset_of!(JSXOpeningFragment, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(JSXClosingFragment, node_id) == 8); assert!(offset_of!(JSXClosingFragment, span) == 0); + assert!(offset_of!(JSXClosingFragment, node_id) == 8); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2881,18 +2881,18 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 52); assert!(align_of::() == 4); - assert!(offset_of!(JSXNamespacedName, node_id) == 48); assert!(offset_of!(JSXNamespacedName, span) == 0); assert!(offset_of!(JSXNamespacedName, namespace) == 8); assert!(offset_of!(JSXNamespacedName, name) == 28); + assert!(offset_of!(JSXNamespacedName, node_id) == 48); // Padding: 0 bytes assert!(size_of::() == 40); assert!(align_of::() == 4); - assert!(offset_of!(JSXMemberExpression, node_id) == 36); assert!(offset_of!(JSXMemberExpression, span) == 0); assert!(offset_of!(JSXMemberExpression, object) == 8); assert!(offset_of!(JSXMemberExpression, property) == 16); + assert!(offset_of!(JSXMemberExpression, node_id) == 36); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2900,9 +2900,9 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(JSXExpressionContainer, node_id) == 24); assert!(offset_of!(JSXExpressionContainer, span) == 0); assert!(offset_of!(JSXExpressionContainer, expression) == 8); + assert!(offset_of!(JSXExpressionContainer, node_id) == 24); assert!(size_of::() == 16); assert!(align_of::() == 4); @@ -2910,8 +2910,8 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(JSXEmptyExpression, node_id) == 8); assert!(offset_of!(JSXEmptyExpression, span) == 0); + assert!(offset_of!(JSXEmptyExpression, node_id) == 8); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2919,17 +2919,17 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(JSXAttribute, node_id) == 24); assert!(offset_of!(JSXAttribute, span) == 0); assert!(offset_of!(JSXAttribute, name) == 8); assert!(offset_of!(JSXAttribute, value) == 16); + assert!(offset_of!(JSXAttribute, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(JSXSpreadAttribute, node_id) == 16); assert!(offset_of!(JSXSpreadAttribute, span) == 0); assert!(offset_of!(JSXSpreadAttribute, argument) == 8); + assert!(offset_of!(JSXSpreadAttribute, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2940,9 +2940,9 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(JSXIdentifier, node_id) == 16); assert!(offset_of!(JSXIdentifier, span) == 0); assert!(offset_of!(JSXIdentifier, name) == 8); + assert!(offset_of!(JSXIdentifier, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -2950,51 +2950,51 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(JSXSpreadChild, node_id) == 16); assert!(offset_of!(JSXSpreadChild, span) == 0); assert!(offset_of!(JSXSpreadChild, expression) == 8); + assert!(offset_of!(JSXSpreadChild, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(JSXText, node_id) == 24); assert!(offset_of!(JSXText, span) == 0); assert!(offset_of!(JSXText, value) == 8); assert!(offset_of!(JSXText, raw) == 16); + assert!(offset_of!(JSXText, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSThisParameter, node_id) == 20); assert!(offset_of!(TSThisParameter, span) == 0); assert!(offset_of!(TSThisParameter, this_span) == 8); assert!(offset_of!(TSThisParameter, type_annotation) == 16); + assert!(offset_of!(TSThisParameter, node_id) == 20); // Padding: 2 bytes assert!(size_of::() == 76); assert!(align_of::() == 4); - assert!(offset_of!(TSEnumDeclaration, node_id) == 68); assert!(offset_of!(TSEnumDeclaration, span) == 0); assert!(offset_of!(TSEnumDeclaration, id) == 8); assert!(offset_of!(TSEnumDeclaration, body) == 36); + assert!(offset_of!(TSEnumDeclaration, node_id) == 68); assert!(offset_of!(TSEnumDeclaration, r#const) == 72); assert!(offset_of!(TSEnumDeclaration, declare) == 73); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(TSEnumBody, node_id) == 24); assert!(offset_of!(TSEnumBody, span) == 0); assert!(offset_of!(TSEnumBody, members) == 8); + assert!(offset_of!(TSEnumBody, node_id) == 24); assert!(offset_of!(TSEnumBody, scope_id) == 28); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSEnumMember, node_id) == 24); assert!(offset_of!(TSEnumMember, span) == 0); assert!(offset_of!(TSEnumMember, id) == 8); assert!(offset_of!(TSEnumMember, initializer) == 16); + assert!(offset_of!(TSEnumMember, node_id) == 24); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3002,16 +3002,16 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeAnnotation, node_id) == 16); assert!(offset_of!(TSTypeAnnotation, span) == 0); assert!(offset_of!(TSTypeAnnotation, type_annotation) == 8); + assert!(offset_of!(TSTypeAnnotation, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSLiteralType, node_id) == 16); assert!(offset_of!(TSLiteralType, span) == 0); assert!(offset_of!(TSLiteralType, literal) == 8); + assert!(offset_of!(TSLiteralType, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3022,42 +3022,42 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(TSConditionalType, node_id) == 40); assert!(offset_of!(TSConditionalType, span) == 0); assert!(offset_of!(TSConditionalType, check_type) == 8); assert!(offset_of!(TSConditionalType, extends_type) == 16); assert!(offset_of!(TSConditionalType, true_type) == 24); assert!(offset_of!(TSConditionalType, false_type) == 32); + assert!(offset_of!(TSConditionalType, node_id) == 40); assert!(offset_of!(TSConditionalType, scope_id) == 44); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSUnionType, node_id) == 24); assert!(offset_of!(TSUnionType, span) == 0); assert!(offset_of!(TSUnionType, types) == 8); + assert!(offset_of!(TSUnionType, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSIntersectionType, node_id) == 24); assert!(offset_of!(TSIntersectionType, span) == 0); assert!(offset_of!(TSIntersectionType, types) == 8); + assert!(offset_of!(TSIntersectionType, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSParenthesizedType, node_id) == 16); assert!(offset_of!(TSParenthesizedType, span) == 0); assert!(offset_of!(TSParenthesizedType, type_annotation) == 8); + assert!(offset_of!(TSParenthesizedType, node_id) == 16); // Padding: 3 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeOperator, node_id) == 16); assert!(offset_of!(TSTypeOperator, span) == 0); - assert!(offset_of!(TSTypeOperator, operator) == 20); assert!(offset_of!(TSTypeOperator, type_annotation) == 8); + assert!(offset_of!(TSTypeOperator, node_id) == 16); + assert!(offset_of!(TSTypeOperator, operator) == 20); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -3065,47 +3065,47 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSArrayType, node_id) == 16); assert!(offset_of!(TSArrayType, span) == 0); assert!(offset_of!(TSArrayType, element_type) == 8); + assert!(offset_of!(TSArrayType, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSIndexedAccessType, node_id) == 24); assert!(offset_of!(TSIndexedAccessType, span) == 0); assert!(offset_of!(TSIndexedAccessType, object_type) == 8); assert!(offset_of!(TSIndexedAccessType, index_type) == 16); + assert!(offset_of!(TSIndexedAccessType, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSTupleType, node_id) == 24); assert!(offset_of!(TSTupleType, span) == 0); assert!(offset_of!(TSTupleType, element_types) == 8); + assert!(offset_of!(TSTupleType, node_id) == 24); // Padding: 3 bytes assert!(size_of::() == 48); assert!(align_of::() == 4); - assert!(offset_of!(TSNamedTupleMember, node_id) == 40); assert!(offset_of!(TSNamedTupleMember, span) == 0); assert!(offset_of!(TSNamedTupleMember, label) == 8); assert!(offset_of!(TSNamedTupleMember, element_type) == 32); + assert!(offset_of!(TSNamedTupleMember, node_id) == 40); assert!(offset_of!(TSNamedTupleMember, optional) == 44); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSOptionalType, node_id) == 16); assert!(offset_of!(TSOptionalType, span) == 0); assert!(offset_of!(TSOptionalType, type_annotation) == 8); + assert!(offset_of!(TSOptionalType, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSRestType, node_id) == 16); assert!(offset_of!(TSRestType, span) == 0); assert!(offset_of!(TSRestType, type_annotation) == 8); + assert!(offset_of!(TSRestType, node_id) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3113,94 +3113,94 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSAnyKeyword, node_id) == 8); assert!(offset_of!(TSAnyKeyword, span) == 0); + assert!(offset_of!(TSAnyKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSStringKeyword, node_id) == 8); assert!(offset_of!(TSStringKeyword, span) == 0); + assert!(offset_of!(TSStringKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSBooleanKeyword, node_id) == 8); assert!(offset_of!(TSBooleanKeyword, span) == 0); + assert!(offset_of!(TSBooleanKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSNumberKeyword, node_id) == 8); assert!(offset_of!(TSNumberKeyword, span) == 0); + assert!(offset_of!(TSNumberKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSNeverKeyword, node_id) == 8); assert!(offset_of!(TSNeverKeyword, span) == 0); + assert!(offset_of!(TSNeverKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSIntrinsicKeyword, node_id) == 8); assert!(offset_of!(TSIntrinsicKeyword, span) == 0); + assert!(offset_of!(TSIntrinsicKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSUnknownKeyword, node_id) == 8); assert!(offset_of!(TSUnknownKeyword, span) == 0); + assert!(offset_of!(TSUnknownKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSNullKeyword, node_id) == 8); assert!(offset_of!(TSNullKeyword, span) == 0); + assert!(offset_of!(TSNullKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSUndefinedKeyword, node_id) == 8); assert!(offset_of!(TSUndefinedKeyword, span) == 0); + assert!(offset_of!(TSUndefinedKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSVoidKeyword, node_id) == 8); assert!(offset_of!(TSVoidKeyword, span) == 0); + assert!(offset_of!(TSVoidKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSSymbolKeyword, node_id) == 8); assert!(offset_of!(TSSymbolKeyword, span) == 0); + assert!(offset_of!(TSSymbolKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSThisType, node_id) == 8); assert!(offset_of!(TSThisType, span) == 0); + assert!(offset_of!(TSThisType, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSObjectKeyword, node_id) == 8); assert!(offset_of!(TSObjectKeyword, span) == 0); + assert!(offset_of!(TSObjectKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(TSBigIntKeyword, node_id) == 8); assert!(offset_of!(TSBigIntKeyword, span) == 0); + assert!(offset_of!(TSBigIntKeyword, node_id) == 8); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeReference, node_id) == 20); assert!(offset_of!(TSTypeReference, span) == 0); assert!(offset_of!(TSTypeReference, type_name) == 8); assert!(offset_of!(TSTypeReference, type_arguments) == 16); + assert!(offset_of!(TSTypeReference, node_id) == 20); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3208,26 +3208,26 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TSQualifiedName, node_id) == 40); assert!(offset_of!(TSQualifiedName, span) == 0); assert!(offset_of!(TSQualifiedName, left) == 8); assert!(offset_of!(TSQualifiedName, right) == 16); + assert!(offset_of!(TSQualifiedName, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeParameterInstantiation, node_id) == 24); assert!(offset_of!(TSTypeParameterInstantiation, span) == 0); assert!(offset_of!(TSTypeParameterInstantiation, params) == 8); + assert!(offset_of!(TSTypeParameterInstantiation, node_id) == 24); // Padding: 1 bytes assert!(size_of::() == 60); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeParameter, node_id) == 52); assert!(offset_of!(TSTypeParameter, span) == 0); assert!(offset_of!(TSTypeParameter, name) == 8); assert!(offset_of!(TSTypeParameter, constraint) == 36); assert!(offset_of!(TSTypeParameter, default) == 44); + assert!(offset_of!(TSTypeParameter, node_id) == 52); assert!(offset_of!(TSTypeParameter, r#in) == 56); assert!(offset_of!(TSTypeParameter, out) == 57); assert!(offset_of!(TSTypeParameter, r#const) == 58); @@ -3235,20 +3235,20 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeParameterDeclaration, node_id) == 24); assert!(offset_of!(TSTypeParameterDeclaration, span) == 0); assert!(offset_of!(TSTypeParameterDeclaration, params) == 8); + assert!(offset_of!(TSTypeParameterDeclaration, node_id) == 24); // Padding: 3 bytes assert!(size_of::() == 60); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeAliasDeclaration, node_id) == 48); assert!(offset_of!(TSTypeAliasDeclaration, span) == 0); assert!(offset_of!(TSTypeAliasDeclaration, id) == 8); assert!(offset_of!(TSTypeAliasDeclaration, type_parameters) == 36); assert!(offset_of!(TSTypeAliasDeclaration, type_annotation) == 40); - assert!(offset_of!(TSTypeAliasDeclaration, declare) == 56); + assert!(offset_of!(TSTypeAliasDeclaration, node_id) == 48); assert!(offset_of!(TSTypeAliasDeclaration, scope_id) == 52); + assert!(offset_of!(TSTypeAliasDeclaration, declare) == 56); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -3256,40 +3256,40 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSClassImplements, node_id) == 20); assert!(offset_of!(TSClassImplements, span) == 0); assert!(offset_of!(TSClassImplements, expression) == 8); assert!(offset_of!(TSClassImplements, type_arguments) == 16); + assert!(offset_of!(TSClassImplements, node_id) == 20); // Padding: 3 bytes assert!(size_of::() == 72); assert!(align_of::() == 4); - assert!(offset_of!(TSInterfaceDeclaration, node_id) == 60); assert!(offset_of!(TSInterfaceDeclaration, span) == 0); assert!(offset_of!(TSInterfaceDeclaration, id) == 8); assert!(offset_of!(TSInterfaceDeclaration, type_parameters) == 36); assert!(offset_of!(TSInterfaceDeclaration, extends) == 40); assert!(offset_of!(TSInterfaceDeclaration, body) == 56); - assert!(offset_of!(TSInterfaceDeclaration, declare) == 68); + assert!(offset_of!(TSInterfaceDeclaration, node_id) == 60); assert!(offset_of!(TSInterfaceDeclaration, scope_id) == 64); + assert!(offset_of!(TSInterfaceDeclaration, declare) == 68); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSInterfaceBody, node_id) == 24); assert!(offset_of!(TSInterfaceBody, span) == 0); assert!(offset_of!(TSInterfaceBody, body) == 8); + assert!(offset_of!(TSInterfaceBody, node_id) == 24); // Padding: 1 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSPropertySignature, node_id) == 20); assert!(offset_of!(TSPropertySignature, span) == 0); + assert!(offset_of!(TSPropertySignature, key) == 8); + assert!(offset_of!(TSPropertySignature, type_annotation) == 16); + assert!(offset_of!(TSPropertySignature, node_id) == 20); assert!(offset_of!(TSPropertySignature, computed) == 24); assert!(offset_of!(TSPropertySignature, optional) == 25); assert!(offset_of!(TSPropertySignature, readonly) == 26); - assert!(offset_of!(TSPropertySignature, key) == 8); - assert!(offset_of!(TSPropertySignature, type_annotation) == 16); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3297,22 +3297,22 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 2 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(TSIndexSignature, node_id) == 28); assert!(offset_of!(TSIndexSignature, span) == 0); assert!(offset_of!(TSIndexSignature, parameters) == 8); assert!(offset_of!(TSIndexSignature, type_annotation) == 24); + assert!(offset_of!(TSIndexSignature, node_id) == 28); assert!(offset_of!(TSIndexSignature, readonly) == 32); assert!(offset_of!(TSIndexSignature, r#static) == 33); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(TSCallSignatureDeclaration, node_id) == 24); assert!(offset_of!(TSCallSignatureDeclaration, span) == 0); assert!(offset_of!(TSCallSignatureDeclaration, type_parameters) == 8); assert!(offset_of!(TSCallSignatureDeclaration, this_param) == 12); assert!(offset_of!(TSCallSignatureDeclaration, params) == 16); assert!(offset_of!(TSCallSignatureDeclaration, return_type) == 20); + assert!(offset_of!(TSCallSignatureDeclaration, node_id) == 24); assert!(offset_of!(TSCallSignatureDeclaration, scope_id) == 28); assert!(size_of::() == 1); @@ -3321,52 +3321,52 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 1 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TSMethodSignature, node_id) == 32); assert!(offset_of!(TSMethodSignature, span) == 0); assert!(offset_of!(TSMethodSignature, key) == 8); - assert!(offset_of!(TSMethodSignature, computed) == 40); - assert!(offset_of!(TSMethodSignature, optional) == 41); - assert!(offset_of!(TSMethodSignature, kind) == 42); assert!(offset_of!(TSMethodSignature, type_parameters) == 16); assert!(offset_of!(TSMethodSignature, this_param) == 20); assert!(offset_of!(TSMethodSignature, params) == 24); assert!(offset_of!(TSMethodSignature, return_type) == 28); + assert!(offset_of!(TSMethodSignature, node_id) == 32); assert!(offset_of!(TSMethodSignature, scope_id) == 36); + assert!(offset_of!(TSMethodSignature, computed) == 40); + assert!(offset_of!(TSMethodSignature, optional) == 41); + assert!(offset_of!(TSMethodSignature, kind) == 42); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSConstructSignatureDeclaration, node_id) == 20); assert!(offset_of!(TSConstructSignatureDeclaration, span) == 0); assert!(offset_of!(TSConstructSignatureDeclaration, type_parameters) == 8); assert!(offset_of!(TSConstructSignatureDeclaration, params) == 12); assert!(offset_of!(TSConstructSignatureDeclaration, return_type) == 16); + assert!(offset_of!(TSConstructSignatureDeclaration, node_id) == 20); assert!(offset_of!(TSConstructSignatureDeclaration, scope_id) == 24); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSIndexSignatureName, node_id) == 20); assert!(offset_of!(TSIndexSignatureName, span) == 0); assert!(offset_of!(TSIndexSignatureName, name) == 8); assert!(offset_of!(TSIndexSignatureName, type_annotation) == 16); + assert!(offset_of!(TSIndexSignatureName, node_id) == 20); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSInterfaceHeritage, node_id) == 20); assert!(offset_of!(TSInterfaceHeritage, span) == 0); assert!(offset_of!(TSInterfaceHeritage, expression) == 8); assert!(offset_of!(TSInterfaceHeritage, type_arguments) == 16); + assert!(offset_of!(TSInterfaceHeritage, node_id) == 20); // Padding: 3 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(TSTypePredicate, node_id) == 28); assert!(offset_of!(TSTypePredicate, span) == 0); assert!(offset_of!(TSTypePredicate, parameter_name) == 8); - assert!(offset_of!(TSTypePredicate, asserts) == 32); assert!(offset_of!(TSTypePredicate, type_annotation) == 24); + assert!(offset_of!(TSTypePredicate, node_id) == 28); + assert!(offset_of!(TSTypePredicate, asserts) == 32); assert!(size_of::() == 16); assert!(align_of::() == 4); @@ -3374,13 +3374,13 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 2 bytes assert!(size_of::() == 64); assert!(align_of::() == 4); - assert!(offset_of!(TSModuleDeclaration, node_id) == 52); assert!(offset_of!(TSModuleDeclaration, span) == 0); assert!(offset_of!(TSModuleDeclaration, id) == 8); assert!(offset_of!(TSModuleDeclaration, body) == 44); + assert!(offset_of!(TSModuleDeclaration, node_id) == 52); + assert!(offset_of!(TSModuleDeclaration, scope_id) == 56); assert!(offset_of!(TSModuleDeclaration, kind) == 60); assert!(offset_of!(TSModuleDeclaration, declare) == 61); - assert!(offset_of!(TSModuleDeclaration, scope_id) == 56); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -3394,42 +3394,42 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 72); assert!(align_of::() == 4); - assert!(offset_of!(TSGlobalDeclaration, node_id) == 60); assert!(offset_of!(TSGlobalDeclaration, span) == 0); assert!(offset_of!(TSGlobalDeclaration, global_span) == 8); assert!(offset_of!(TSGlobalDeclaration, body) == 16); - assert!(offset_of!(TSGlobalDeclaration, declare) == 68); + assert!(offset_of!(TSGlobalDeclaration, node_id) == 60); assert!(offset_of!(TSGlobalDeclaration, scope_id) == 64); + assert!(offset_of!(TSGlobalDeclaration, declare) == 68); // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TSModuleBlock, node_id) == 40); assert!(offset_of!(TSModuleBlock, span) == 0); assert!(offset_of!(TSModuleBlock, directives) == 8); assert!(offset_of!(TSModuleBlock, body) == 24); + assert!(offset_of!(TSModuleBlock, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeLiteral, node_id) == 24); assert!(offset_of!(TSTypeLiteral, span) == 0); assert!(offset_of!(TSTypeLiteral, members) == 8); + assert!(offset_of!(TSTypeLiteral, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 16); assert!(align_of::() == 4); - assert!(offset_of!(TSInferType, node_id) == 12); assert!(offset_of!(TSInferType, span) == 0); assert!(offset_of!(TSInferType, type_parameter) == 8); + assert!(offset_of!(TSInferType, node_id) == 12); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeQuery, node_id) == 20); assert!(offset_of!(TSTypeQuery, span) == 0); assert!(offset_of!(TSTypeQuery, expr_name) == 8); assert!(offset_of!(TSTypeQuery, type_arguments) == 16); + assert!(offset_of!(TSTypeQuery, node_id) == 20); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3437,12 +3437,12 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 60); assert!(align_of::() == 4); - assert!(offset_of!(TSImportType, node_id) == 56); assert!(offset_of!(TSImportType, span) == 0); assert!(offset_of!(TSImportType, source) == 8); assert!(offset_of!(TSImportType, options) == 40); assert!(offset_of!(TSImportType, qualifier) == 44); assert!(offset_of!(TSImportType, type_arguments) == 52); + assert!(offset_of!(TSImportType, node_id) == 56); assert!(size_of::() == 8); assert!(align_of::() == 4); @@ -3450,45 +3450,45 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TSImportTypeQualifiedName, node_id) == 40); assert!(offset_of!(TSImportTypeQualifiedName, span) == 0); assert!(offset_of!(TSImportTypeQualifiedName, left) == 8); assert!(offset_of!(TSImportTypeQualifiedName, right) == 16); + assert!(offset_of!(TSImportTypeQualifiedName, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(TSFunctionType, node_id) == 24); assert!(offset_of!(TSFunctionType, span) == 0); assert!(offset_of!(TSFunctionType, type_parameters) == 8); assert!(offset_of!(TSFunctionType, this_param) == 12); assert!(offset_of!(TSFunctionType, params) == 16); assert!(offset_of!(TSFunctionType, return_type) == 20); + assert!(offset_of!(TSFunctionType, node_id) == 24); assert!(offset_of!(TSFunctionType, scope_id) == 28); // Padding: 3 bytes assert!(size_of::() == 32); assert!(align_of::() == 4); - assert!(offset_of!(TSConstructorType, node_id) == 20); assert!(offset_of!(TSConstructorType, span) == 0); - assert!(offset_of!(TSConstructorType, r#abstract) == 28); assert!(offset_of!(TSConstructorType, type_parameters) == 8); assert!(offset_of!(TSConstructorType, params) == 12); assert!(offset_of!(TSConstructorType, return_type) == 16); + assert!(offset_of!(TSConstructorType, node_id) == 20); assert!(offset_of!(TSConstructorType, scope_id) == 24); + assert!(offset_of!(TSConstructorType, r#abstract) == 28); // Padding: 2 bytes assert!(size_of::() == 72); assert!(align_of::() == 4); - assert!(offset_of!(TSMappedType, node_id) == 60); assert!(offset_of!(TSMappedType, span) == 0); assert!(offset_of!(TSMappedType, key) == 8); assert!(offset_of!(TSMappedType, constraint) == 36); assert!(offset_of!(TSMappedType, name_type) == 44); assert!(offset_of!(TSMappedType, type_annotation) == 52); + assert!(offset_of!(TSMappedType, node_id) == 60); + assert!(offset_of!(TSMappedType, scope_id) == 64); assert!(offset_of!(TSMappedType, optional) == 68); assert!(offset_of!(TSMappedType, readonly) == 69); - assert!(offset_of!(TSMappedType, scope_id) == 64); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -3496,42 +3496,42 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TSTemplateLiteralType, node_id) == 40); assert!(offset_of!(TSTemplateLiteralType, span) == 0); assert!(offset_of!(TSTemplateLiteralType, quasis) == 8); assert!(offset_of!(TSTemplateLiteralType, types) == 24); + assert!(offset_of!(TSTemplateLiteralType, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSAsExpression, node_id) == 24); assert!(offset_of!(TSAsExpression, span) == 0); assert!(offset_of!(TSAsExpression, expression) == 8); assert!(offset_of!(TSAsExpression, type_annotation) == 16); + assert!(offset_of!(TSAsExpression, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSSatisfiesExpression, node_id) == 24); assert!(offset_of!(TSSatisfiesExpression, span) == 0); assert!(offset_of!(TSSatisfiesExpression, expression) == 8); assert!(offset_of!(TSSatisfiesExpression, type_annotation) == 16); + assert!(offset_of!(TSSatisfiesExpression, node_id) == 24); // Padding: 0 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); - assert!(offset_of!(TSTypeAssertion, node_id) == 24); assert!(offset_of!(TSTypeAssertion, span) == 0); assert!(offset_of!(TSTypeAssertion, type_annotation) == 8); assert!(offset_of!(TSTypeAssertion, expression) == 16); + assert!(offset_of!(TSTypeAssertion, node_id) == 24); // Padding: 3 bytes assert!(size_of::() == 52); assert!(align_of::() == 4); - assert!(offset_of!(TSImportEqualsDeclaration, node_id) == 44); assert!(offset_of!(TSImportEqualsDeclaration, span) == 0); assert!(offset_of!(TSImportEqualsDeclaration, id) == 8); assert!(offset_of!(TSImportEqualsDeclaration, module_reference) == 36); + assert!(offset_of!(TSImportEqualsDeclaration, node_id) == 44); assert!(offset_of!(TSImportEqualsDeclaration, import_kind) == 48); assert!(size_of::() == 8); @@ -3540,45 +3540,45 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(TSExternalModuleReference, node_id) == 40); assert!(offset_of!(TSExternalModuleReference, span) == 0); assert!(offset_of!(TSExternalModuleReference, expression) == 8); + assert!(offset_of!(TSExternalModuleReference, node_id) == 40); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSNonNullExpression, node_id) == 16); assert!(offset_of!(TSNonNullExpression, span) == 0); assert!(offset_of!(TSNonNullExpression, expression) == 8); + assert!(offset_of!(TSNonNullExpression, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(Decorator, node_id) == 16); assert!(offset_of!(Decorator, span) == 0); assert!(offset_of!(Decorator, expression) == 8); + assert!(offset_of!(Decorator, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 20); assert!(align_of::() == 4); - assert!(offset_of!(TSExportAssignment, node_id) == 16); assert!(offset_of!(TSExportAssignment, span) == 0); assert!(offset_of!(TSExportAssignment, expression) == 8); + assert!(offset_of!(TSExportAssignment, node_id) == 16); // Padding: 0 bytes assert!(size_of::() == 36); assert!(align_of::() == 4); - assert!(offset_of!(TSNamespaceExportDeclaration, node_id) == 32); assert!(offset_of!(TSNamespaceExportDeclaration, span) == 0); assert!(offset_of!(TSNamespaceExportDeclaration, id) == 8); + assert!(offset_of!(TSNamespaceExportDeclaration, node_id) == 32); // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(TSInstantiationExpression, node_id) == 20); assert!(offset_of!(TSInstantiationExpression, span) == 0); assert!(offset_of!(TSInstantiationExpression, expression) == 8); assert!(offset_of!(TSInstantiationExpression, type_arguments) == 16); + assert!(offset_of!(TSInstantiationExpression, node_id) == 20); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -3586,24 +3586,24 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(JSDocNullableType, node_id) == 16); assert!(offset_of!(JSDocNullableType, span) == 0); assert!(offset_of!(JSDocNullableType, type_annotation) == 8); + assert!(offset_of!(JSDocNullableType, node_id) == 16); assert!(offset_of!(JSDocNullableType, postfix) == 20); // Padding: 3 bytes assert!(size_of::() == 24); assert!(align_of::() == 4); - assert!(offset_of!(JSDocNonNullableType, node_id) == 16); assert!(offset_of!(JSDocNonNullableType, span) == 0); assert!(offset_of!(JSDocNonNullableType, type_annotation) == 8); + assert!(offset_of!(JSDocNonNullableType, node_id) == 16); assert!(offset_of!(JSDocNonNullableType, postfix) == 20); // Padding: 0 bytes assert!(size_of::() == 12); assert!(align_of::() == 4); - assert!(offset_of!(JSDocUnknownType, node_id) == 8); assert!(offset_of!(JSDocUnknownType, span) == 0); + assert!(offset_of!(JSDocUnknownType, node_id) == 8); assert!(size_of::() == 1); assert!(align_of::() == 1); diff --git a/crates/oxc_linter/src/generated/assert_layouts.rs b/crates/oxc_linter/src/generated/assert_layouts.rs index da0d76330e9d8..b5773d88ab450 100644 --- a/crates/oxc_linter/src/generated/assert_layouts.rs +++ b/crates/oxc_linter/src/generated/assert_layouts.rs @@ -13,11 +13,11 @@ const _: () = { assert!(size_of::() == 16); assert!(align_of::() == 4); assert!(offset_of!(RawTransferMetadata2, data_offset) == 0); + assert!(offset_of!(RawTransferMetadata2, tokens_offset) == 4); + assert!(offset_of!(RawTransferMetadata2, tokens_len) == 8); assert!(offset_of!(RawTransferMetadata2, is_ts) == 12); assert!(offset_of!(RawTransferMetadata2, is_jsx) == 13); assert!(offset_of!(RawTransferMetadata2, has_bom) == 14); - assert!(offset_of!(RawTransferMetadata2, tokens_offset) == 4); - assert!(offset_of!(RawTransferMetadata2, tokens_len) == 8); }; #[cfg(target_pointer_width = "32")] @@ -26,11 +26,11 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(size_of::() == 16); assert!(align_of::() == 4); assert!(offset_of!(RawTransferMetadata2, data_offset) == 0); + assert!(offset_of!(RawTransferMetadata2, tokens_offset) == 4); + assert!(offset_of!(RawTransferMetadata2, tokens_len) == 8); assert!(offset_of!(RawTransferMetadata2, is_ts) == 12); assert!(offset_of!(RawTransferMetadata2, is_jsx) == 13); assert!(offset_of!(RawTransferMetadata2, has_bom) == 14); - assert!(offset_of!(RawTransferMetadata2, tokens_offset) == 4); - assert!(offset_of!(RawTransferMetadata2, tokens_len) == 8); }; #[cfg(not(any(target_pointer_width = "64", target_pointer_width = "32")))] diff --git a/crates/oxc_regular_expression/src/generated/assert_layouts.rs b/crates/oxc_regular_expression/src/generated/assert_layouts.rs index 4719ad8d29ae4..e8a1af10190df 100644 --- a/crates/oxc_regular_expression/src/generated/assert_layouts.rs +++ b/crates/oxc_regular_expression/src/generated/assert_layouts.rs @@ -43,8 +43,8 @@ const _: () = { assert!(size_of::() == 48); assert!(align_of::() == 8); assert!(offset_of!(LookAroundAssertion, span) == 0); - assert!(offset_of!(LookAroundAssertion, kind) == 40); assert!(offset_of!(LookAroundAssertion, body) == 8); + assert!(offset_of!(LookAroundAssertion, kind) == 40); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -55,15 +55,15 @@ const _: () = { assert!(offset_of!(Quantifier, span) == 0); assert!(offset_of!(Quantifier, min) == 8); assert!(offset_of!(Quantifier, max) == 16); - assert!(offset_of!(Quantifier, greedy) == 48); assert!(offset_of!(Quantifier, body) == 32); + assert!(offset_of!(Quantifier, greedy) == 48); // Padding: 3 bytes assert!(size_of::() == 16); assert!(align_of::() == 8); assert!(offset_of!(Character, span) == 0); - assert!(offset_of!(Character, kind) == 12); assert!(offset_of!(Character, value) == 8); + assert!(offset_of!(Character, kind) == 12); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -81,10 +81,10 @@ const _: () = { assert!(size_of::() == 48); assert!(align_of::() == 8); assert!(offset_of!(UnicodePropertyEscape, span) == 0); - assert!(offset_of!(UnicodePropertyEscape, negative) == 40); - assert!(offset_of!(UnicodePropertyEscape, strings) == 41); assert!(offset_of!(UnicodePropertyEscape, name) == 8); assert!(offset_of!(UnicodePropertyEscape, value) == 24); + assert!(offset_of!(UnicodePropertyEscape, negative) == 40); + assert!(offset_of!(UnicodePropertyEscape, strings) == 41); // Padding: 0 bytes assert!(size_of::() == 8); @@ -95,10 +95,10 @@ const _: () = { assert!(size_of::() == 40); assert!(align_of::() == 8); assert!(offset_of!(CharacterClass, span) == 0); + assert!(offset_of!(CharacterClass, body) == 8); assert!(offset_of!(CharacterClass, negative) == 32); assert!(offset_of!(CharacterClass, strings) == 33); assert!(offset_of!(CharacterClass, kind) == 34); - assert!(offset_of!(CharacterClass, body) == 8); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -117,15 +117,15 @@ const _: () = { assert!(size_of::() == 40); assert!(align_of::() == 8); assert!(offset_of!(ClassStringDisjunction, span) == 0); - assert!(offset_of!(ClassStringDisjunction, strings) == 32); assert!(offset_of!(ClassStringDisjunction, body) == 8); + assert!(offset_of!(ClassStringDisjunction, strings) == 32); // Padding: 7 bytes assert!(size_of::() == 40); assert!(align_of::() == 8); assert!(offset_of!(ClassString, span) == 0); - assert!(offset_of!(ClassString, strings) == 32); assert!(offset_of!(ClassString, body) == 8); + assert!(offset_of!(ClassString, strings) == 32); // Padding: 0 bytes assert!(size_of::() == 56); @@ -201,8 +201,8 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(size_of::() == 36); assert!(align_of::() == 4); assert!(offset_of!(LookAroundAssertion, span) == 0); - assert!(offset_of!(LookAroundAssertion, kind) == 32); assert!(offset_of!(LookAroundAssertion, body) == 8); + assert!(offset_of!(LookAroundAssertion, kind) == 32); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -213,15 +213,15 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(offset_of!(Quantifier, span) == 0); assert!(offset_of!(Quantifier, min) == 8); assert!(offset_of!(Quantifier, max) == 16); - assert!(offset_of!(Quantifier, greedy) == 44); assert!(offset_of!(Quantifier, body) == 32); + assert!(offset_of!(Quantifier, greedy) == 44); // Padding: 3 bytes assert!(size_of::() == 16); assert!(align_of::() == 4); assert!(offset_of!(Character, span) == 0); - assert!(offset_of!(Character, kind) == 12); assert!(offset_of!(Character, value) == 8); + assert!(offset_of!(Character, kind) == 12); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -239,10 +239,10 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(size_of::() == 28); assert!(align_of::() == 4); assert!(offset_of!(UnicodePropertyEscape, span) == 0); - assert!(offset_of!(UnicodePropertyEscape, negative) == 24); - assert!(offset_of!(UnicodePropertyEscape, strings) == 25); assert!(offset_of!(UnicodePropertyEscape, name) == 8); assert!(offset_of!(UnicodePropertyEscape, value) == 16); + assert!(offset_of!(UnicodePropertyEscape, negative) == 24); + assert!(offset_of!(UnicodePropertyEscape, strings) == 25); // Padding: 0 bytes assert!(size_of::() == 8); @@ -253,10 +253,10 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(size_of::() == 28); assert!(align_of::() == 4); assert!(offset_of!(CharacterClass, span) == 0); + assert!(offset_of!(CharacterClass, body) == 8); assert!(offset_of!(CharacterClass, negative) == 24); assert!(offset_of!(CharacterClass, strings) == 25); assert!(offset_of!(CharacterClass, kind) == 26); - assert!(offset_of!(CharacterClass, body) == 8); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -275,15 +275,15 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(size_of::() == 28); assert!(align_of::() == 4); assert!(offset_of!(ClassStringDisjunction, span) == 0); - assert!(offset_of!(ClassStringDisjunction, strings) == 24); assert!(offset_of!(ClassStringDisjunction, body) == 8); + assert!(offset_of!(ClassStringDisjunction, strings) == 24); // Padding: 3 bytes assert!(size_of::() == 28); assert!(align_of::() == 4); assert!(offset_of!(ClassString, span) == 0); - assert!(offset_of!(ClassString, strings) == 24); assert!(offset_of!(ClassString, body) == 8); + assert!(offset_of!(ClassString, strings) == 24); // Padding: 0 bytes assert!(size_of::() == 40); diff --git a/crates/oxc_syntax/src/generated/assert_layouts.rs b/crates/oxc_syntax/src/generated/assert_layouts.rs index e12f61cba2ad9..bc03beeed2420 100644 --- a/crates/oxc_syntax/src/generated/assert_layouts.rs +++ b/crates/oxc_syntax/src/generated/assert_layouts.rs @@ -24,8 +24,8 @@ const _: () = { // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 8); - assert!(offset_of!(NameSpan, name) == 8); assert!(offset_of!(NameSpan, span) == 0); + assert!(offset_of!(NameSpan, name) == 8); // Padding: 7 bytes assert!(size_of::() == 96); @@ -42,8 +42,8 @@ const _: () = { // Padding: 7 bytes assert!(size_of::() == 144); assert!(align_of::() == 8); - assert!(offset_of!(ExportEntry, statement_span) == 8); assert!(offset_of!(ExportEntry, span) == 0); + assert!(offset_of!(ExportEntry, statement_span) == 8); assert!(offset_of!(ExportEntry, module_request) == 16); assert!(offset_of!(ExportEntry, import_name) == 40); assert!(offset_of!(ExportEntry, export_name) == 72); @@ -112,8 +112,8 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 16); assert!(align_of::() == 4); - assert!(offset_of!(NameSpan, name) == 8); assert!(offset_of!(NameSpan, span) == 0); + assert!(offset_of!(NameSpan, name) == 8); // Padding: 3 bytes assert!(size_of::() == 64); @@ -130,8 +130,8 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 3 bytes assert!(size_of::() == 96); assert!(align_of::() == 4); - assert!(offset_of!(ExportEntry, statement_span) == 8); assert!(offset_of!(ExportEntry, span) == 0); + assert!(offset_of!(ExportEntry, statement_span) == 8); assert!(offset_of!(ExportEntry, module_request) == 16); assert!(offset_of!(ExportEntry, import_name) == 32); assert!(offset_of!(ExportEntry, export_name) == 52); diff --git a/napi/parser/src/generated/assert_layouts.rs b/napi/parser/src/generated/assert_layouts.rs index 71e7a6fec3015..8e1f6e3a76b4c 100644 --- a/napi/parser/src/generated/assert_layouts.rs +++ b/napi/parser/src/generated/assert_layouts.rs @@ -21,20 +21,20 @@ const _: () = { assert!(size_of::() == 16); assert!(align_of::() == 4); assert!(offset_of!(RawTransferMetadata, data_offset) == 0); + assert!(offset_of!(RawTransferMetadata, tokens_offset) == 4); + assert!(offset_of!(RawTransferMetadata, tokens_len) == 8); assert!(offset_of!(RawTransferMetadata, is_ts) == 12); assert!(offset_of!(RawTransferMetadata, is_jsx) == 13); assert!(offset_of!(RawTransferMetadata, has_bom) == 14); - assert!(offset_of!(RawTransferMetadata, tokens_offset) == 4); - assert!(offset_of!(RawTransferMetadata, tokens_len) == 8); // Padding: 7 bytes assert!(size_of::() == 80); assert!(align_of::() == 8); - assert!(offset_of!(Error, severity) == 72); assert!(offset_of!(Error, message) == 0); assert!(offset_of!(Error, labels) == 16); assert!(offset_of!(Error, help_message) == 40); assert!(offset_of!(Error, codeframe) == 56); + assert!(offset_of!(Error, severity) == 72); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -42,17 +42,17 @@ const _: () = { // Padding: 0 bytes assert!(size_of::() == 24); assert!(align_of::() == 8); - assert!(offset_of!(ErrorLabel, message) == 8); assert!(offset_of!(ErrorLabel, span) == 0); + assert!(offset_of!(ErrorLabel, message) == 8); // Padding: 7 bytes assert!(size_of::() == 104); assert!(align_of::() == 8); - assert!(offset_of!(EcmaScriptModule, has_module_syntax) == 96); assert!(offset_of!(EcmaScriptModule, static_imports) == 0); assert!(offset_of!(EcmaScriptModule, static_exports) == 24); assert!(offset_of!(EcmaScriptModule, dynamic_imports) == 48); assert!(offset_of!(EcmaScriptModule, import_metas) == 72); + assert!(offset_of!(EcmaScriptModule, has_module_syntax) == 96); // Padding: 0 bytes assert!(size_of::() == 56); @@ -82,20 +82,20 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { assert!(size_of::() == 16); assert!(align_of::() == 4); assert!(offset_of!(RawTransferMetadata, data_offset) == 0); + assert!(offset_of!(RawTransferMetadata, tokens_offset) == 4); + assert!(offset_of!(RawTransferMetadata, tokens_len) == 8); assert!(offset_of!(RawTransferMetadata, is_ts) == 12); assert!(offset_of!(RawTransferMetadata, is_jsx) == 13); assert!(offset_of!(RawTransferMetadata, has_bom) == 14); - assert!(offset_of!(RawTransferMetadata, tokens_offset) == 4); - assert!(offset_of!(RawTransferMetadata, tokens_len) == 8); // Padding: 3 bytes assert!(size_of::() == 44); assert!(align_of::() == 4); - assert!(offset_of!(Error, severity) == 40); assert!(offset_of!(Error, message) == 0); assert!(offset_of!(Error, labels) == 8); assert!(offset_of!(Error, help_message) == 24); assert!(offset_of!(Error, codeframe) == 32); + assert!(offset_of!(Error, severity) == 40); assert!(size_of::() == 1); assert!(align_of::() == 1); @@ -103,17 +103,17 @@ const _: () = if cfg!(target_family = "wasm") || align_of::() == 8 { // Padding: 0 bytes assert!(size_of::() == 16); assert!(align_of::() == 4); - assert!(offset_of!(ErrorLabel, message) == 8); assert!(offset_of!(ErrorLabel, span) == 0); + assert!(offset_of!(ErrorLabel, message) == 8); // Padding: 3 bytes assert!(size_of::() == 68); assert!(align_of::() == 4); - assert!(offset_of!(EcmaScriptModule, has_module_syntax) == 64); assert!(offset_of!(EcmaScriptModule, static_imports) == 0); assert!(offset_of!(EcmaScriptModule, static_exports) == 16); assert!(offset_of!(EcmaScriptModule, dynamic_imports) == 32); assert!(offset_of!(EcmaScriptModule, import_metas) == 48); + assert!(offset_of!(EcmaScriptModule, has_module_syntax) == 64); // Padding: 0 bytes assert!(size_of::() == 40); diff --git a/tasks/ast_tools/src/generators/assert_layouts.rs b/tasks/ast_tools/src/generators/assert_layouts.rs index b476f08d83b72..c9e5a851ad2f5 100644 --- a/tasks/ast_tools/src/generators/assert_layouts.rs +++ b/tasks/ast_tools/src/generators/assert_layouts.rs @@ -11,6 +11,7 @@ use std::{ sync::atomic, }; +use itertools::Itertools; use phf_codegen::Map as PhfMapGen; use proc_macro2::TokenStream; use quote::quote; @@ -21,8 +22,8 @@ use crate::{ AST_MACROS_CRATE_PATH, Codegen, Generator, output::{Output, output_path}, schema::{ - Def, Discriminant, EnumDef, PointerKind, PrimitiveDef, Schema, StructDef, TypeDef, TypeId, - Visibility, + Def, Discriminant, EnumDef, FieldDef, PointerKind, PrimitiveDef, Schema, StructDef, + TypeDef, TypeId, Visibility, extensions::layout::{GetLayout, GetOffset, Layout, Niche, Offset, PlatformLayout}, }, utils::{format_cow, number_lit}, @@ -578,6 +579,7 @@ fn generate_layout_assertions_for_struct<'s>( ) { fn r#gen( struct_def: &StructDef, + fields: &[&FieldDef], is_64: bool, struct_ident: &Ident, schema: &Schema, @@ -595,7 +597,7 @@ fn generate_layout_assertions_for_struct<'s>( let size_align_assertions = generate_size_align_assertions(layout, struct_ident); - let offset_asserts = struct_def.fields.iter().filter_map(|field| { + let offset_asserts = fields.iter().map(|&field| { if struct_def.is_foreign || field.visibility == Visibility::Private { // Cannot create assertions for private fields (cant access them) // or foreign types (we don't know what fields they have) @@ -617,12 +619,17 @@ fn generate_layout_assertions_for_struct<'s>( } } + // Sort fields in offset order. + // `sort_by` not `sort_unstable_by` to maintain original field order for ZST fields. + let mut fields = struct_def.fields.iter().collect_vec(); + fields.sort_by(|f1, f2| f1.offset.offset_64.cmp(&f2.offset.offset_64)); + let (assertions_64, assertions_32) = assertions.entry(struct_def.file(schema).krate()).or_default(); let ident = struct_def.ident(); - assertions_64.extend(r#gen(struct_def, true, &ident, schema)); - assertions_32.extend(r#gen(struct_def, false, &ident, schema)); + assertions_64.extend(r#gen(struct_def, &fields, true, &ident, schema)); + assertions_32.extend(r#gen(struct_def, &fields, false, &ident, schema)); } /// Generate layout assertions for an enum.