Skip to content

Hide synthetic classes created by mixin applications in outline view #3398

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 1 commit into from
Sep 27, 2021

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Sep 27, 2021

Fixes #3388

@@ -161,6 +161,10 @@ class VMServiceObjectNode extends TreeNode<VMServiceObjectNode> {
}

for (final clazz in lib.classes) {
// Don't surface synthetic classes created by mixin applications.
if (clazz.name.contains('&')) {
Copy link
Member

Choose a reason for hiding this comment

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

if class A with B, C exists, will the name be A&B&C, and in that case, wouldn't we still want class A to be surfaced, even though we don't want B or C?

Copy link
Contributor Author

@bkonyi bkonyi Sep 27, 2021

Choose a reason for hiding this comment

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

They actually show up as different classes. In your example, we would currently show the following class entries:

  • A
  • _A&B
  • _A&B&C

@bkonyi bkonyi merged commit a2669d1 into flutter:master Sep 27, 2021
@bkonyi bkonyi deleted the hide_mixins_outline branch September 27, 2021 18:52
kenzieschmoll added a commit to kenzieschmoll/devtools that referenced this pull request Oct 1, 2021
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.

Hide Mixins from Outline view in the debugger
2 participants