Skip to content

Improve diagnostic messages for imported helpers #12305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 30, 2016

Conversation

rbuckton
Copy link
Member

This PR improves the diagnostic messages for imported helpers, changes how imported helpers are checked, and removes NodeFlags enum members related to emit helpers that are no longer needed.

// cc: @vladima, @mhegazy

@@ -1023,6 +1023,10 @@
"category": "Error",
"code": 2342
},
"This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'.": {
Copy link
Member

Choose a reason for hiding this comment

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

member named '{1}'

Copy link
Member Author

Choose a reason for hiding this comment

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

This follows the same pattern as 2305: "Module '{0}' has no exported member '{1}'."

@DanielRosenwasser
Copy link
Member

Looks good otherwise, just need merge conflicts addressed

@rbuckton rbuckton merged commit 7a42000 into master Nov 30, 2016
@rbuckton rbuckton deleted the improveImportHelpersDiagnostics branch November 30, 2016 20:45
@mhegazy mhegazy mentioned this pull request Dec 1, 2016
@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.

3 participants