@@ -764,3 +764,59 @@ TypePattern.cs:
764764# 14| 0: [VariablePatternExpr] Object o
765765# 14| 0: [TypeMention] object
766766# 14| 2: [LocalVariableAccess] access to local variable o
767+ UnaryPattern.cs:
768+ # 3| [Class] UnaryPattern
769+ # 5| 5: [Property] P1
770+ # 5| -1: [TypeMention] int
771+ # 5| 3: [Getter] get_P1
772+ # 5| 4: [Setter] set_P1
773+ #-----| 2: (Parameters)
774+ # 5| 0: [Parameter] value
775+ # 7| 6: [Method] M1
776+ # 7| -1: [TypeMention] bool
777+ #-----| 2: (Parameters)
778+ # 7| 0: [Parameter] c
779+ # 7| -1: [TypeMention] char
780+ # 8| 4: [IsExpr] ... is ...
781+ # 8| 0: [ParameterAccess] access to parameter c
782+ # 8| 1: [NotPatternExpr] not ...
783+ # 8| 0: [CharLiteral,ConstantPatternExpr] a
784+ # 9| 7: [Method] M2
785+ # 9| -1: [TypeMention] bool
786+ #-----| 2: (Parameters)
787+ # 9| 0: [Parameter] c
788+ # 9| -1: [TypeMention] object
789+ # 10| 4: [IsExpr] ... is ...
790+ # 10| 0: [ParameterAccess] access to parameter c
791+ # 10| 1: [NotPatternExpr] not ...
792+ # 10| 0: [ConstantPatternExpr,NullLiteral] null
793+ # 11| 8: [Method] M3
794+ # 11| -1: [TypeMention] bool
795+ #-----| 2: (Parameters)
796+ # 11| 0: [Parameter] c
797+ # 11| -1: [TypeMention] object
798+ # 12| 4: [IsExpr] ... is ...
799+ # 12| 0: [ParameterAccess] access to parameter c
800+ # 12| 1: [NotPatternExpr] not ...
801+ # 12| 0: [RecursivePatternExpr] { ... }
802+ # 12| 0: [LocalVariableDeclExpr] UnaryPattern u
803+ # 12| 1: [TypeAccess] access to type UnaryPattern
804+ # 12| 0: [TypeMention] UnaryPattern
805+ # 12| 3: [PropertyPatternExpr] { ... }
806+ # 12| 0: [ConstantPatternExpr,IntLiteral,LabeledPatternExpr] 1
807+ # 14| 9: [Method] M4
808+ # 14| -1: [TypeMention] string
809+ #-----| 2: (Parameters)
810+ # 14| 0: [Parameter] i
811+ # 14| -1: [TypeMention] int
812+ # 15| 4: [BlockStmt] {...}
813+ # 16| 0: [ReturnStmt] return ...;
814+ # 16| 0: [SwitchExpr] ... switch { ... }
815+ # 16| -1: [ParameterAccess] access to parameter i
816+ # 18| 0: [SwitchCaseExpr] ... => ...
817+ # 18| 0: [NotPatternExpr] not ...
818+ # 18| 0: [ConstantPatternExpr,IntLiteral] 1
819+ # 18| 2: [StringLiteral] "not 1"
820+ # 19| 1: [SwitchCaseExpr] ... => ...
821+ # 19| 0: [DiscardPatternExpr] _
822+ # 19| 2: [StringLiteral] "other"
0 commit comments