@@ -348,3 +348,52 @@ TypeParameterNullability.cs:
348348# 24| -1: [TypeMention] T?
349349# 24| 1: [TypeMention] T
350350# 24| 4: [BlockStmt] {...}
351+ TypePattern.cs:
352+ # 3| [Class] TypePattern
353+ # 5| 5: [Method] M1
354+ # 5| -1: [TypeMention] object
355+ #-----| 2: (Parameters)
356+ # 5| 0: [Parameter] o1
357+ # 5| -1: [TypeMention] object
358+ # 5| 1: [Parameter] o2
359+ # 5| -1: [TypeMention] object
360+ # 6| 4: [BlockStmt] {...}
361+ # 7| 0: [LocalVariableDeclStmt] ... ...;
362+ # 7| 0: [LocalVariableDeclAndInitExpr] (Object,Object) t = ...
363+ # 7| -1: [TypeMention] (object, object)
364+ # 7| 0: [LocalVariableAccess] access to local variable t
365+ # 7| 1: [TupleExpr] (..., ...)
366+ # 7| 0: [ParameterAccess] access to parameter o1
367+ # 7| 1: [ParameterAccess] access to parameter o2
368+ # 8| 1: [IfStmt] if (...) ...
369+ # 8| 0: [IsExpr] ... is ...
370+ # 8| 0: [LocalVariableAccess] access to local variable t
371+ # 8| 1: [RecursivePatternExpr] { ... }
372+ # 8| 2: [PositionalPatternExpr] ( ... )
373+ # 8| 0: [TypeAccessPatternExpr] access to type Int32
374+ # 8| 0: [TypeMention] int
375+ # 8| 1: [TypeAccessPatternExpr] access to type String
376+ # 8| 0: [TypeMention] string
377+ # 8| 1: [BlockStmt] {...}
378+ # 9| 2: [ReturnStmt] return ...;
379+ # 9| 0: [SwitchExpr] ... switch { ... }
380+ # 9| -1: [ParameterAccess] access to parameter o1
381+ # 11| 0: [SwitchCaseExpr] ... => ...
382+ # 11| 0: [TypeAccessPatternExpr] access to type Int32
383+ # 11| 0: [TypeMention] int
384+ # 11| 2: [CastExpr] (...) ...
385+ # 11| 1: [IntLiteral] 1
386+ # 12| 1: [SwitchCaseExpr] ... => ...
387+ # 12| 0: [VariablePatternExpr] Double d
388+ # 12| 0: [TypeMention] double
389+ # 12| 2: [CastExpr] (...) ...
390+ # 12| 1: [LocalVariableAccess] access to local variable d
391+ # 13| 2: [SwitchCaseExpr] ... => ...
392+ # 13| 0: [TypeAccessPatternExpr] access to type String
393+ # 13| 0: [TypeMention] string
394+ # 13| 2: [CastExpr] (...) ...
395+ # 13| 1: [IntLiteral] 3
396+ # 14| 3: [SwitchCaseExpr] ... => ...
397+ # 14| 0: [VariablePatternExpr] Object o
398+ # 14| 0: [TypeMention] object
399+ # 14| 2: [LocalVariableAccess] access to local variable o
0 commit comments