oxc/crates/oxc_syntax/src
overlookmotel 8fad7dbac3 perf(semantic): reduce AstNodeId to u32 (#4264)
`AstNodeId` was a `usize`. This seems excessive.

Parser has a limit on size of a JS file of 4 GiB. While it is *possible* for a JS file of that size to create an AST with more than `1 << 32` (~4 billion) AST nodes, that would be insanely large.

So make `AstNodeId` `u32` instead.
2024-07-15 04:31:51 +00:00
..
class.rs feat(semantic): add static property, ElementKind::Getter, ElementKind::Setter in ClassTable (#2445) 2024-02-20 13:07:48 +08:00
identifier.rs refactor(parser): make is_identifier methods consistent 2024-01-23 11:05:17 +08:00
keyword.rs feat(syntax): export is_reserved_keyword and is_global_object method (#3384) 2024-05-22 04:58:04 +00:00
lib.rs refactor(syntax): move number related functions to number module (#3130) 2024-04-29 18:54:35 +08:00
module_graph_visitor.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
module_record.rs fix(semantic): export default foo should have ExportLocalName::Default(NameSpan) entry (#3823) 2024-06-22 11:09:23 +00:00
node.rs perf(semantic): reduce AstNodeId to u32 (#4264) 2024-07-15 04:31:51 +00:00
number.rs feat(syntax): add ToJsInt32 trait for f64 (#3132) 2024-04-29 21:13:04 +08:00
operator.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
precedence.rs fix(codegen): add parenthesis in binary expression by precedence (#2067) 2024-01-17 23:01:42 +08:00
reference.rs chore: remove unsafe_code = "warn" rust lint 2024-07-15 10:39:08 +08:00
scope.rs feat(semantic): add ScopeFlags::CatchClause for use in CatchClause (#4205) 2024-07-12 03:47:07 +00:00
symbol.rs chore: remove unsafe_code = "warn" rust lint 2024-07-15 10:39:08 +08:00
xml_entities.rs feat(transformer/jsx): escape xhtml in jsx attributes (#1088) 2023-10-29 15:16:50 +08:00