oxc/crates/oxc_syntax/src
DonIsaac 48821c0110 feat(semantic,syntax): add SymbolFlags::ArrowFunction (#4946)
There are many cases in lint rules where we want to see if a symbol is a
function by checking its SymbolFlags. This is currently not fully possible,
since variables assigned to arrow functions are not distinguished from any other
kind of variable. This PR adds `SymbolFlags::ArrowFunction` for variables that
are initialized to arrow functions. Symbols that are re-assigned to arrow
functions will not have this flag, but this is acceptable for lint rules.
2024-08-18 05:54:23 +00:00
..
class.rs refactor(syntax): inline trivial bitflags methods (#4877) 2024-08-13 12:43:09 +00:00
identifier.rs refactor(parser): make is_identifier methods consistent 2024-01-23 11:05:17 +08:00
keyword.rs fix(syntax): correct is_reserved_keyword_or_global_object's incorrect function calling. (#4484) 2024-07-26 17:20:10 -04: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 fix(syntax): prevent creating invalid u32 IDs (#4675) 2024-08-06 01:04:07 +00:00
number.rs feat(syntax): derive CloneIn for the AST-related items. (#4730) 2024-08-07 17:38:08 +00:00
operator.rs feat(syntax): derive CloneIn for the AST-related items. (#4730) 2024-08-07 17:38:08 +00:00
precedence.rs feat(codegen): implement BinaryExpressionVisitor (#4548) 2024-07-31 12:44:19 +00:00
reference.rs refactor(syntax): inline trivial bitflags methods (#4877) 2024-08-13 12:43:09 +00:00
scope.rs refactor(syntax): inline trivial bitflags methods (#4877) 2024-08-13 12:43:09 +00:00
symbol.rs feat(semantic,syntax): add SymbolFlags::ArrowFunction (#4946) 2024-08-18 05:54:23 +00:00
xml_entities.rs