FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't error when calling `resolveEntityName` by gabritto · Pull Request #53441 · microsoft/TypeScript · GitHub

Don't error when calling resolveEntityName - #53441

Merged
Gabriela Araujo Britto (gabritto) merged 3 commits into
mainfrom
gabritto/issue53247
Mar 23, 2023
Merged

Don't error when calling resolveEntityName#53441
Gabriela Araujo Britto (gabritto) merged 3 commits into
mainfrom
gabritto/issue53247

Conversation

Copy link
Copy Markdown
Member

Fixes #53247.

Copy link
Copy Markdown
Member Author

TypeScript Bot (typescript-bot) commented Mar 22, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the diff-based user code test suite on this PR at ed815a1. You can monitor the build here.

Update: The results are in!

TypeScript Bot (typescript-bot) commented Mar 22, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the parallelized Definitely Typed test suite on this PR at ed815a1. You can monitor the build here.

Update: The results are in!

TypeScript Bot (typescript-bot) commented Mar 22, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the diff-based top-repos suite on this PR at ed815a1. You can monitor the build here.

Update: The results are in!

Comment thread src/compiler/checker.ts

meaning |= SymbolFlags.Alias;
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(name, meaning) : undefined;
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(name, meaning, /*ignoreErrors*/ true) : undefined;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It's my understanding that we expect that this resolveEntityName call might fail, judging from the if statement below and the rest of the code (and an earlier resolve call that also ignores errors)`, so we shouldn't report errors here.

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the user test suite comparing main and refs/pull/53441/merge:

Everything looks good!

Comment on lines +13 to +17
//// const x = Foo.makeFoo<{}>; //// Cannot find name 'Foo'.ts(2304)
//// //// 'Foo' only refers to a type, but
//// //// is being used as a namespace here.ts(2702)

//// x({}); // 👍 `const x: <{}>(context: {}) => <T>(value: T) => Foo<T, {}>`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think the comments are helpful for the issue, but are confusing here for the test case.

Copy link
Copy Markdown
Member

getSymbolAtLocation is supposed to be language servicey. Unfortunately

  1. we use it elsewhere in the checker, so some real-world tests might catch something and are worth running.
  2. we don't have real world language service consistency tests. :(

least we can do is test for stability/speed in the language service.

TypeScript Bot (@typescript-bot) user test tsserver
TypeScript Bot (@typescript-bot) test tsserver top100

TypeScript Bot (typescript-bot) commented Mar 22, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the diff-based user code test suite (tsserver) on this PR at ed815a1. You can monitor the build here.

Update: The results are in!

TypeScript Bot (typescript-bot) commented Mar 22, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the diff-based top-repos suite (tsserver) on this PR at ed815a1. You can monitor the build here.

Update: The results are in!

Copy link
Copy Markdown
Contributor

Daniel Rosenwasser (@DanielRosenwasser) Here are the results of running the user test suite comparing main and refs/pull/53441/merge:

Everything looks good!

Copy link
Copy Markdown
Contributor

Hey Gabriela Araujo Britto (@gabritto), the results of running the DT tests are ready.
Everything looks the same!
You can check the log here.

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the top-repos suite comparing main and refs/pull/53441/merge:

Everything looks good!

Copy link
Copy Markdown
Contributor

Daniel Rosenwasser (@DanielRosenwasser) Here are the results of running the top-repos suite comparing main and refs/pull/53441/merge:

Everything looks good!

Gabriela Araujo Britto (gabritto) deleted the gabritto/issue53247 branch March 23, 2023 17:49
Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instantiation Expressions from generic class static member

4 participants


Back | FazBrowse Home | New Git URL