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

feat: Add support for nested types Cecil and Sre #122

Merged
merged 9 commits into from
Sep 14, 2024

Conversation

workgroupengineering
Copy link
Contributor

Continuous of #54

Adds support for nested types specified with a + to the Cecil and Sre backend.

Closes #54

Fixes AvaloniaUI/Avalonia#2725

@workgroupengineering
Copy link
Contributor Author

Can anyone review? Please

}

var resolved = tref?.Resolve();
if (resolved?.IsNestedPrivate == false)
Copy link
Owner

Choose a reason for hiding this comment

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

We probably need to examine the entire chain, e. g.

class Foo
{
  class NestedPrivate
  {
     public class NestedPublic {}
  }
}

would pass the current check.

Copy link
Collaborator

@maxkatz6 maxkatz6 left a comment

Choose a reason for hiding this comment

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

I am going to merge this PR for 11.2, since it works well on current Avalonia and tests are passing in both repos.

@maxkatz6 maxkatz6 merged commit ab84721 into kekekeks:master Sep 14, 2024
3 checks passed
@workgroupengineering workgroupengineering deleted the features/nested-types branch September 15, 2024 19:15
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.

Support nested types in DataTemplate.DataType
4 participants