Skip to content

Conversation

@weswigham
Copy link
Member

Fixes #15738

I didn't even know it was soft deprecated (or that another option existed) and was using it in the declaration emitter 🤷‍♂

useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
getProgramBuildInfo: returnUndefined
getProgramBuildInfo: returnUndefined,
getSourceFileFromReference: returnUndefined, // TODO: Implement?
Copy link
Member

Choose a reason for hiding this comment

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

Should this be notImplemented. As this is just writing existing texts by updating prepend outputs.

Copy link
Member Author

Choose a reason for hiding this comment

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

notImplemented causes a crash, since the method is actually used in the declaration emitter. Previously it would have relied on getSourceFile which is a returnUndefined, so using returnUndefined means the behavior hasn't changed.

Copy link
Member

@sheetalkamat sheetalkamat Jun 21, 2019

Choose a reason for hiding this comment

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

I see. Then it should be as you have returnUndefined since this emit is not going to recalculate the refs. Also since getSourceFile and getSourceFileByPath are returnUndefined as well. (I meant no TODO needed)

@weswigham weswigham merged commit 1cbace6 into microsoft:master Jun 21, 2019
@weswigham weswigham deleted the remove-secondary-impl branch June 21, 2019 20:26
Copy link

@mjd0 mjd0 left a comment

Choose a reason for hiding this comment

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

1cbace6

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove tryResolveScriptReference

3 participants