mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Similar to #3058 and #3061 it is a continuation of #3047. Handles these enum types: > TSEnumMemberName > Variant sizes: 16, 24, 24, 40 > Unboxed variants: IdentifierName (struct), StringLiteral (struct), NumericLiteral (struct) > Dependents: TSEnumMember (struct) > => Box all variants. > > TSModuleReference > Variant sizes: 16, 32 > Unboxed variants: TSExternalModuleReference (struct) > Dependents: Box<TSModuleReference> in TSImportEqualsDeclaration > => Box all variants. Replace Box<TSModuleReference> with TSModuleReference in TSImportEqualsDeclaration. > > TSTypePredicateName > Variant sizes: 8, 24 > Unboxed variants: IdentifierName (struct), TSThisType (struct) > Dependents: TSTypePredicate (struct) > => Box Identifier variant. Do not box This variant as only 8 bytes (just contains Span). > > TSTypeQueryExprName > Variant sizes: 16, 88 > Unboxed variants: TSImportType (struct) > Dependents: TSTypeQuery (struct) > => Box TSImportType variant. Do not box TSTypeName variant, as is another enum. |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| Cargo.toml | ||
| CHANGELOG.md | ||