Skip to content
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

Add support for "@use with" #728

Merged
merged 4 commits into from
Jun 27, 2019
Merged

Add support for "@use with" #728

merged 4 commits into from
Jun 27, 2019

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jun 21, 2019

@nex3 nex3 requested a review from nshahan June 21, 2019 01:23
Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

My only comments are regarding the wording of the error messages. They feel somewhat vague and lacking the details of the specific symbols. Maybe you want to rely on the user filling in the details from the source span that is printed but I feel like they are more actionable when they are more specific. WDYT?

lib/src/visitor/async_evaluate.dart Show resolved Hide resolved
lib/src/visitor/async_evaluate.dart Show resolved Hide resolved
lib/src/visitor/async_evaluate.dart Show resolved Hide resolved
Copy link
Contributor Author

@nex3 nex3 left a comment

Choose a reason for hiding this comment

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

I generally avoid explicitly writing identifiers that are implicated in errors because, as you say, they're already present in the source spans. I find repeating names multiple times in errors to be more confusing and cluttered than helpful. I'm not sure what you mean by including the identifiers being "more actionable"—can you elaborate?

lib/src/visitor/async_evaluate.dart Show resolved Hide resolved
Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

Sounds good. If you have a consistent pattern for the messages with accompanying source spans then I'm ok with sticking with that. I think I respond better to messages that contain the symbols/names that are causing the problem but I recognize that is subjective. The new source span format is very helpful in drawing attention to where the problem is.

lib/src/visitor/async_evaluate.dart Show resolved Hide resolved
@nex3 nex3 requested a review from nshahan June 26, 2019 21:23
@nex3
Copy link
Contributor Author

nex3 commented Jun 26, 2019

Tests are failing due to an analyzer deprecation that's fixed in #735. I'll have to merge that into feature.use and then merge feature.use into this to fix the issue, but you should be able to review in the meantime.

Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

LGTM assuming Travis passes with the updated error message in the spec.

@nex3 nex3 merged commit 6f89055 into feature.use Jun 27, 2019
@nex3 nex3 deleted the with branch June 27, 2019 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants