mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(semantic): incorrect reference flag (#2057)
This commit is contained in:
parent
3413bb3884
commit
24ac957660
2 changed files with 4 additions and 4 deletions
|
|
@ -478,7 +478,7 @@ impl<'a> SemanticBuilder<'a> {
|
|||
self.make_all_namespaces_valuelike();
|
||||
self.in_type_definition = true;
|
||||
}
|
||||
AstKind::TSTypeAnnotation(_) => {
|
||||
AstKind::TSTypeParameterInstantiation(_) | AstKind::TSTypeAnnotation(_) => {
|
||||
self.in_type_definition = true;
|
||||
}
|
||||
AstKind::TSEnumMember(enum_member) => {
|
||||
|
|
@ -553,6 +553,7 @@ impl<'a> SemanticBuilder<'a> {
|
|||
| AstKind::TSTypeAliasDeclaration(_)
|
||||
| AstKind::TSInterfaceDeclaration(_)
|
||||
| AstKind::TSModuleDeclaration(_)
|
||||
| AstKind::TSTypeParameterInstantiation(_)
|
||||
| AstKind::TSTypeAnnotation(_) => {
|
||||
self.in_type_definition = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Passed: 311/1179
|
||||
Passed: 312/1179
|
||||
|
||||
# All Passed:
|
||||
* babel-plugin-transform-numeric-separator
|
||||
|
|
@ -832,7 +832,7 @@ Passed: 311/1179
|
|||
* general/function-duplicate-name/input.js
|
||||
* general/object/input.js
|
||||
|
||||
# babel-plugin-transform-typescript (80/158)
|
||||
# babel-plugin-transform-typescript (81/158)
|
||||
* class/abstract-class-decorated/input.ts
|
||||
* class/abstract-class-decorated-method/input.ts
|
||||
* class/abstract-class-decorated-parameter/input.ts
|
||||
|
|
@ -857,7 +857,6 @@ Passed: 311/1179
|
|||
* function/overloads-exports/input.mjs
|
||||
* imports/elide-injected/input.ts
|
||||
* imports/elide-no-import-specifiers/input.ts
|
||||
* imports/elision-locations/input.ts
|
||||
* imports/enum-id/input.ts
|
||||
* imports/enum-value/input.ts
|
||||
* imports/import-named-type/input.ts
|
||||
|
|
|
|||
Loading…
Reference in a new issue