From f7f005a4e7218b3f3bb04d1991c4ffb462bcfd6f Mon Sep 17 00:00:00 2001 From: Dunqing Date: Wed, 17 Jul 2024 08:35:14 +0800 Subject: [PATCH] fix(semantic): incorrect resolve references for TSTypeQuery --- .../oxc_semantic/tests/fixtures/typescript-eslint/README.md | 1 - tasks/coverage/transformer_typescript.snap | 4 +++- tasks/transform_conformance/babel.snap.md | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 crates/oxc_semantic/tests/fixtures/typescript-eslint/README.md diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/README.md b/crates/oxc_semantic/tests/fixtures/typescript-eslint/README.md deleted file mode 100644 index 0941baecb0aae..0000000000000 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/README.md +++ /dev/null @@ -1 +0,0 @@ -These fixtures were copied from https://github.com/typescript-eslint/typescript-eslint/tree/a5b652da1ebb09ecbca8f4b032bf05ebc0e03dc9/packages/scope-manager/tests/fixtures. We used them to test out semantic [ScopeTree](../../src/scope.rs) and [SymbolTable](../../src/symbol.rs) \ No newline at end of file diff --git a/tasks/coverage/transformer_typescript.snap b/tasks/coverage/transformer_typescript.snap index 94311ce35a448..61250e368a477 100644 --- a/tasks/coverage/transformer_typescript.snap +++ b/tasks/coverage/transformer_typescript.snap @@ -2,8 +2,10 @@ commit: d8086f14 transformer_typescript Summary: AST Parsed : 6456/6456 (100.00%) -Positive Passed: 6452/6456 (99.94%) +Positive Passed: 6450/6456 (99.91%) Mismatch: "compiler/constEnumNamespaceReferenceCausesNoImport2.ts" Mismatch: "compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts" +Mismatch: "conformance/dynamicImport/importCallExpressionReturnPromiseOfAny.ts" Mismatch: "conformance/externalModules/typeOnly/exportDeclaration.ts" +Mismatch: "conformance/externalModules/typeOnly/namespaceImportTypeQuery2.ts" Mismatch: "conformance/jsx/inline/inlineJsxAndJsxFragPragmaOverridesCompilerOptions.tsx" diff --git a/tasks/transform_conformance/babel.snap.md b/tasks/transform_conformance/babel.snap.md index 962d2d27ba8ec..d4bb055b52117 100644 --- a/tasks/transform_conformance/babel.snap.md +++ b/tasks/transform_conformance/babel.snap.md @@ -1,6 +1,6 @@ commit: 12619ffe -Passed: 473/927 +Passed: 472/927 # All Passed: * babel-preset-react @@ -445,13 +445,14 @@ Passed: 473/927 * opts/optimizeConstEnums/input.ts * opts/rewriteImportExtensions/input.ts -# babel-plugin-transform-typescript (129/151) +# babel-plugin-transform-typescript (128/151) * class/accessor-allowDeclareFields-false/input.ts * class/accessor-allowDeclareFields-true/input.ts * enum/mix-references/input.ts * enum/ts5.0-const-foldable/input.ts * exports/declared-types/input.ts * exports/interface/input.ts +* imports/elide-typeof/input.ts * imports/elision-locations/input.ts * imports/only-remove-type-imports/input.ts * imports/type-only-export-specifier-2/input.ts