Skip to content

Fix for importing modules from definitions#493

Merged
mhegazy merged 2 commits into
microsoft:masterfrom
RReverser:patch-1
Sep 3, 2014
Merged

Fix for importing modules from definitions#493
mhegazy merged 2 commits into
microsoft:masterfrom
RReverser:patch-1

Conversation

@RReverser
Copy link
Copy Markdown
Contributor

Please see #492 for bug description.

Removed assertion in getSourceFile since processSourceFile obviously expects findSourceFile to return falsy value from findSourceFile (which is wrapper around getSourceFile result) when file is not found, and not to fail in that case.

@RReverser RReverser changed the title Fixes #492 Fix for importing modules from definitions Aug 20, 2014
Comment thread src/services/services.ts Outdated
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.

I believe CompilerHosts interact with the compiler itself, where we entirely avoid the use of null. This should be undefined.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@DanielRosenwasser Ok, changed.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Aug 27, 2014

Thanks @RReverser. we will you to fill out the Contributor License Agreement (CLA). Download the agreement (Microsoft Contribution License Agreement.docx), sign, scan, and email it back to cla@microsoft.com.

see https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md for more details

Conflicts:
	src/services/services.ts
@RReverser
Copy link
Copy Markdown
Contributor Author

@mhegazy Did that and rebased patch on top of current master.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Sep 3, 2014

Thanks @RReverser!

mhegazy added a commit that referenced this pull request Sep 3, 2014
Fix for importing modules from definitions
@mhegazy mhegazy merged commit 755fce2 into microsoft:master Sep 3, 2014
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
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.

3 participants