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 'late' as a feature for final variables #2071

Merged
merged 9 commits into from
Nov 14, 2019

Conversation

jcollins-g
Copy link
Contributor

Dartdoc will now add this to the feature list and display it as part of the API, where appropriate. @scheglov's comment in #2069 made me reconsider the value of showing late, as previously all final variables were always initialized.

Also added tests for isFinal in the base case, this was barely touched previously.

Screenshots of the new feature flag:

Screen Shot 2019-11-13 at 3 58 53 PM
Screen Shot 2019-11-13 at 3 59 46 PM

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Nov 14, 2019
@@ -92,6 +92,12 @@ class Field extends ModelElement
return field.isFinal;
}

@override
bool get isLate {
if (isFinal) return field.isLate;
Copy link
Member

Choose a reason for hiding this comment

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

Consider return isFinal && field.isLate;

Copy link
Contributor Author

@jcollins-g jcollins-g Nov 14, 2019

Choose a reason for hiding this comment

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

changed to bool get isLate => isFinal && field.isLate;

@jcollins-g jcollins-g merged commit d5f90cf into master Nov 14, 2019
@jcollins-g jcollins-g deleted the qol-tooling-changes+late branch April 27, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants