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

Format "super." parameters. #1097

Merged
merged 2 commits into from
Mar 3, 2022
Merged

Format "super." parameters. #1097

merged 2 commits into from
Mar 3, 2022

Conversation

munificent
Copy link
Member

Fix #1091.

@@ -2528,6 +2528,21 @@ class SourceVisitor extends ThrowingAstVisitor {
token(node.superKeyword);
}

@override
void visitSuperFormalParameter(SuperFormalParameter node) {
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 is virtually identical to the code for visitFieldFormalParameter() (this. parameters), which is to be expected. Unfortunately, I couldn't easily hoist it out to something reusable because FieldFormalParameter and SuperFormalParameter don't define their fields on any shared base class.

# Conflicts:
#	CHANGELOG.md
@munificent munificent merged commit 7adb2db into master Mar 3, 2022
@munificent munificent deleted the super-parameters branch March 3, 2022 23:41
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.

dart_style implementation for super-initializer parameters
2 participants