Skip to content

Conversation

sheetalkamat
Copy link
Member

Found this while porting tsc -b tests
9851d23

@Copilot Copilot AI review requested due to automatic review settings August 14, 2025 23:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the getSymbolAtLocation function for import calls, specifically addressing an issue found while porting TypeScript build tests. The change ensures that module resolution symbols are properly returned when analyzing dynamic import expressions and import type declarations.

Key Changes

  • Updated symbol resolution logic for import call expressions to correctly identify and return module symbols
  • Modified how the TypeScript compiler Go port handles module symbol resolution during type checking

Reviewed Changes

Copilot reviewed 201 out of 201 changed files in this pull request and generated no comments.

Show a summary per file
File Description
testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js Baseline test data for TypeScript build system showing error reporting changes
testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js Baseline test data for transitive module type inference
testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js Baseline test data for transitive module type inference with isolated modules enabled
testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols.diff Symbol table differences for CommonJS module syntax restrictions
testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols Updated symbol table baseline for CommonJS module syntax
Various nodeModules*.symbols.diff and nodeModules*.symbols files Symbol table updates for Node.js module resolution across different module types (node16, node18, nodenext)

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yess, awesome, thanks.

@jakebailey
Copy link
Member

Seems like an LS test is failing; might be one that needs to be skipped?

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM though hopefully people don't see the panic that often.

@sheetalkamat sheetalkamat enabled auto-merge August 14, 2025 23:41
@sheetalkamat sheetalkamat added this pull request to the merge queue Aug 14, 2025
Merged via the queue into main with commit 916b357 Aug 14, 2025
22 checks passed
@sheetalkamat sheetalkamat deleted the importCall branch August 14, 2025 23:51
andrewbranch pushed a commit to andrewbranch/typescript-go that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants