Skip to content

Fix bug #3737 (exported JSX classes props not validated)#3771

Merged
RyanCavanaugh merged 8 commits into
microsoft:masterfrom
RyanCavanaugh:fix3737
Jul 8, 2015
Merged

Fix bug #3737 (exported JSX classes props not validated)#3771
RyanCavanaugh merged 8 commits into
microsoft:masterfrom
RyanCavanaugh:fix3737

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
Member

No description provided.

@prabirshrestha
Copy link
Copy Markdown
Member

👍 verified with local build. correctly shows the errors now.

Comment thread src/compiler/checker.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not getResolvedSymbol?

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.

getResolvedSymbol was returning the export symbol rather than the class symbol. Is there a better fix?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Gaah, symbol duality. You could try getResolvedSymbol(<Identifier>node.tagName).valueDeclaration.localSymbol

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Or you can modify getLocalSymbolForExportDefault to not worry about export default.

Comment thread src/compiler/checker.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tag

@JsonFreeman
Copy link
Copy Markdown
Contributor

👍

RyanCavanaugh added a commit that referenced this pull request Jul 8, 2015
Fix bug #3737 (exported JSX classes props not validated)
@RyanCavanaugh RyanCavanaugh merged commit 1344b14 into microsoft:master Jul 8, 2015
@RyanCavanaugh RyanCavanaugh deleted the fix3737 branch July 8, 2015 00:54
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

4 participants