Skip to content

Add pattern matching in If Statements - #11

Open
Gallimathias wants to merge 1 commit into
stablefrom
work/patternMatching
Open

Add pattern matching in If Statements#11
Gallimathias wants to merge 1 commit into
stablefrom
work/patternMatching

Conversation

@Gallimathias

Copy link
Copy Markdown
Member
  • Add overloadings with patterns in the if statement class
  • Add pattern as a new supported thing

* Add overloadings with patterns in the if statement class
* Add pattern as a new supported thing
@Gallimathias Gallimathias self-assigned this Jan 9, 2022
@Gallimathias
Gallimathias marked this pull request as ready for review January 9, 2022 18:56

@jvbsl jvbsl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a to do something like this as well?

if (o is string { Length: > 2} )


namespace VaVare.Generators.Common.Patterns
{
public class DeclarationPattern : Pattern

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Imho DesignationPattern would be a better name

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.

2 participants