oxc/crates/oxc_syntax/src
Dunqing e4ed41d4fa refactor(semantic): change the reference flag to ReferenceFlags::Type if it is used within a TSTypeQuery (#5444)
So far, the `ReferenceFlags::TSTypeQuery` only used indicates it is referenced by `TSTypeQuery` that we can confirm the reference should be regarded as a type reference, namely `ReferenceFlags::Type`.

This PR adds a `ReferenceFlags::ValueAsType` instead of `ReferenceFlags::TSTypeQuery`.  The new flag has the same behavior as the previous one. But it looks more general and is not only used in `TSTypeQuery`. But now it is a temporary flag. We use it to resolve the symbol correctly and replace `ReferenceFlags::ValueAsTyoe` with `ReferenceFlags::Type` after resolved.

Also, this change eliminates the inconsistency in behavior between the `Reference::is_type` and `ReferenceFlags::is_type` methods.
2024-09-05 01:50:20 +00:00
..
generated feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
class.rs refactor(syntax): inline trivial bitflags methods (#4877) 2024-08-13 12:43:09 +00:00
identifier.rs perf(syntax): further optimize is_identifier_name (#5426) 2024-09-03 13:48:36 +00: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 feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00: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(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
operator.rs feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
precedence.rs feat(codegen): implement BinaryExpressionVisitor (#4548) 2024-07-31 12:44:19 +00:00
reference.rs refactor(semantic): change the reference flag to ReferenceFlags::Type if it is used within a TSTypeQuery (#5444) 2024-09-05 01:50:20 +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