Skip to content

Clarify code checking for UMD exports... - #9897

Merged
3 commits merged into
masterfrom
umd_export
Sep 14, 2016
Merged

Clarify code checking for UMD exports... #9897
3 commits merged into
masterfrom
umd_export

Conversation

@ghost

Copy link
Copy Markdown

…and eagerly return undefined rather than continuing on to the for loop.

Comment threadsrc/compiler/checker.ts Outdated
const parentSymbol = getParentOfSymbol(symbol);
if (parentSymbol) {
if (parentSymbol.flags & SymbolFlags.ValueModule && parentSymbol.valueDeclaration.kind === SyntaxKind.SourceFile) {
const symbolFile = <SourceFile> parentSymbol.valueDeclaration;

@DanielRosenwasserDaniel Rosenwasser (DanielRosenwasser)Jul 22, 2016

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.

No space after type assertions (Wesley Wigham (@weswigham) can you write this rule? 😄 )

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 could. ;)

@ghostghost assigned Yui (yuit)Sep 13, 2016
@mhegazy

Copy link
Copy Markdown
Contributor

👍

@ghost
ghost merged commit f00d3fc into masterSep 14, 2016
@ghost
ghost deleted the umd_export branch September 14, 2016 13:25
@microsoftMicrosoft (microsoft) locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
Sign up for freeto 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.

5 participants

@mhegazy@DanielRosenwasser@weswigham@yuit@msftclas