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 '_i' to import prefixes #160

Merged
merged 2 commits into from
Nov 14, 2017
Merged

Add '_i' to import prefixes #160

merged 2 commits into from
Nov 14, 2017

Conversation

natebosch
Copy link
Member

This matches old behavior and is a little more clear than just a digit.
This will also satisfy the lint on the latest SDK. See
dart-lang/linter#684 (comment)

This matches old behavior and is a little more clear than just a digit.
This will also satisfy the lint on the latest SDK. See
dart-lang/linter#684 (comment)
@natebosch
Copy link
Member Author

ping @matanlurey - is this worth getting in?

@matanlurey
Copy link
Contributor

Sorry I missed this.

Would you consider this a breaking change? Should it be opt-in for now?

Otherwise many golden file tests will fail, for example.

@natebosch

@natebosch
Copy link
Member Author

Yeah I have some golden tests that I expect to start failing after this change.

I personally wouldn't consider that breaking - I think its a test that is (perhaps necessarily) relying on an implementation detail and so I'd expect it to be brittle.

I'd rather not make it an option. The API to enable it becomes another part of the public surface area which is broken if/when we remove the option, and we deal with higher complexity in the mean time.

I don't have strong opinions here. I know we've had customers who want these generated files to follow that lint rule, but I'd be fine with either of:
1 - push it and break brittle tests
2 - hold off until 3.0 and ship it then

@matanlurey
Copy link
Contributor

It doesn't bother me either way.

We should document that the Allocator doesn't guarantee and output as part of this PR then?

@natebosch

@natebosch
Copy link
Member Author

Added a note in the Doc comment for Allocator.simplePrefixing

@natebosch natebosch merged commit dd2180c into master Nov 14, 2017
@natebosch natebosch deleted the natebosch_import-prefixes branch November 14, 2017 22:28
@matanlurey
Copy link
Contributor

@natebosch Let me know if you want a release this week.

@natebosch
Copy link
Member Author

No rush - this change was a "may as well do it while it's on my mind" rather than a "I need this right now".

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.

None yet

3 participants