53 references to UsingStatement
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (53)
Parsing\PatternParsingTests.cs (53)
327UsingStatement(@" 446UsingStatement(@" 503UsingStatement(@" 797UsingStatement(@"switch (e) { 935UsingStatement(@"switch (array) { 1457UsingStatement("switch (e) { case B*** C: break; }"); 1509UsingStatement("switch (e) { case B***[] C: break; }"); 1577UsingStatement(@"switch (e) { case nameof n: ; }"); 1620UsingStatement(@"switch (e) { case nameof(n): ; }"); 1671UsingStatement(@"switch (e) { case nameof(n) when true: ; }"); 1732UsingStatement(@"switch (e) { case (((3))): ; }"); 1782UsingStatement(@"switch (e) { case (((3))) when true: ; }"); 2815UsingStatement("switch (e) { case var: break; }"); 2851UsingStatement("if (e is var) {}"); 3059UsingStatement("if (o is (int, int)[]) { }"); 3117UsingStatement("if (o is (int a, int b)[]) { }"); 3177UsingStatement("if (o is (int, int)[] q) { }"); 3242UsingStatement("if (o is (int a, int b)[] q) { }"); 3309UsingStatement("if (o is (Int, Int)[]) { }"); 3367UsingStatement("if (o is (Int a, Int b)[]) { }"); 3427UsingStatement("if (o is (Int, Int)[] q) { }"); 3492UsingStatement("if (o is (Int a, Int b)[] q) { }"); 3559UsingStatement("if (o is (S.Int, S.Int)[]) { }"); 3633UsingStatement("if (o is (S.Int a, S.Int b)[]) { }"); 3709UsingStatement("if (o is (S.Int, S.Int)[] q) { }"); 3790UsingStatement("if (o is (S.Int a, S.Int b)[] q) { }"); 3873UsingStatement("switch (o) { case (int, int)[] q: break; }"); 3944UsingStatement("switch (o) { case (int a, int b)[] q: break; }"); 4017UsingStatement("switch (o) { case (Int, Int)[] q: break; }"); 4088UsingStatement("switch (o) { case (Int a, Int b)[] q: break; }"); 4161UsingStatement("switch (o) { case (S.Int, S.Int)[] q: break; }"); 4248UsingStatement("switch (o) { case (S.Int a, S.Int b)[] q: break; }"); 4337UsingStatement("var x = o is Type (Param: 3, Param2: 4) { Prop : 3 } x;"); 4447UsingStatement("var x = o is (Param: 3, Param2: 4) { Prop : 3 } x;"); 4553UsingStatement("var x = o is Type { Prop : 3 } x;"); 4621UsingStatement("var x = o is { Prop : 3 } x;"); 4685UsingStatement("var x = o is Type (Param: 3, Param2: 4) x;"); 4772UsingStatement("var x = o is (Param: 3, Param2: 4) x;"); 4855UsingStatement("var x = o is Type x;"); 4900UsingStatement("var x = o is Type (Param: 3, Param2: 4) { Prop : 3 };"); 5006UsingStatement("var x = o is (Param: 3, Param2: 4) { Prop : 3 };"); 5108UsingStatement("var x = o is Type { Prop : 3 };"); 5172UsingStatement("var x = o is { Prop : 3 };"); 5232UsingStatement("var x = o is Type (Param: 3, Param2: 4);"); 5315UsingStatement("var x = o is (Param: 3, Param2: 4);"); 5394UsingStatement("Console.Write((t) switch {var x => x});"); 5488UsingStatement("switch(e) { case _: break; }"); 5560UsingStatement("switch(e) { case _ when true: break; }"); 7079UsingStatement( 7196UsingStatement( 7258UsingStatement( 7323UsingStatement( 7380UsingStatement(