Skip to content

Conversation

@simonrozsival
Copy link
Owner

This was a lot more work than I thought it would be. It was hard to get it working with nested Cast(ConditionalAccess(...)) so I made Cast non-nestable. That simplified things significantly.

{
public string PropertyName => MemberName;
public bool IsConditional => false;
public string? PropertyName => MemberName;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Im not sure about nullable string here. Now implementations of IPathPart do not share any functionality. It feels like IPathPart could be a class with enum.

Copy link
Owner Author

Choose a reason for hiding this comment

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

yeah, we could just object[] Path and have a function to do pattern matching to get the property name... but I think we can leave that to some refactoring later (the interface might change again, even though we're getting close to a finish line)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure, we can handle this later

@simonrozsival simonrozsival merged commit c6c7af2 into binding-source-generator Apr 9, 2024
@simonrozsival simonrozsival deleted the implement-setters branch April 9, 2024 07:05
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants