-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Test plan for "extended property patterns" #52468
Comments
Is this the right thing to do if we had nullable value types? In this case |
We shouldn't represent these any differently in the operation tree from nested property patterns. It's a shorthand for writing, but the semantics are exactly the same as if the user wrote it out the long way. Thus, the IOperation tree should be identical. If a user cares about the syntax form used to write out the pattern, they can go back to syntax at that point. |
Championed issue: dotnet/csharplang#4394
Spec: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-10.0/extended-property-patterns.md
Initial PR: #52139
Compilers
{ Prop1: { Prop2: pattern } }
translation, seeExtendedPropertyPatterns_IOperation_*
,ExtendedPropertyPatterns_IOperationOnMissing
)GetSymbolInfo
,GetTypeInfo
, seeExtendedPropertyPatterns_SymbolInfo_*
)OtherComparisonsAsPureNullTests_ExtendedProperties_PureNullTest
)ExtendedPropertyPatterns_Explainer
)ExtendedPropertyPatterns_05
)ExtendedPropertyPatterns_ExpressionColonIn*
)ExtendedPropertyPatterns_Inaccessible*
)ExtendedPropertyPatterns_ExpressionTree
)TestNormalizeExtendedPropertyPattern
)ExtendedPropertyPatterns_Obsolete*
)switch
expressionIDE
CompletionOnListPattern_FirstNested
and test above)RenameExtendedProperty
)ExtendedPropertyPattern_Before
andExtendedPropertyPattern_After
)TestEnumInPatterns_SwitchStatement_ExtendedPropertyPattern
)TestPropertyPatternInCasePattern2
){ A.B: MissingConstant$$ }
(seeTestConstantPatternInExtendedPropertyPattern
)is { P1: { P2: ... } }
=>is { P1.P2: ... }
) (issue Offer to refactor into extended property pattern #55545)The text was updated successfully, but these errors were encountered: