56 references to UsingStatement
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (56)
Parsing\PatternParsingTests.cs (56)
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: ; }");
2340UsingStatement(@"switch (e) { case",
2854UsingStatement("switch (e) { case var: break; }");
2890UsingStatement("if (e is var) {}");
2920UsingStatement("switch (e) { case var when: break; }",
2971UsingStatement("switch (e) { case K when: break; }",
3098UsingStatement("if (o is (int, int)[]) { }");
3156UsingStatement("if (o is (int a, int b)[]) { }");
3216UsingStatement("if (o is (int, int)[] q) { }");
3281UsingStatement("if (o is (int a, int b)[] q) { }");
3348UsingStatement("if (o is (Int, Int)[]) { }");
3406UsingStatement("if (o is (Int a, Int b)[]) { }");
3466UsingStatement("if (o is (Int, Int)[] q) { }");
3531UsingStatement("if (o is (Int a, Int b)[] q) { }");
3598UsingStatement("if (o is (S.Int, S.Int)[]) { }");
3672UsingStatement("if (o is (S.Int a, S.Int b)[]) { }");
3748UsingStatement("if (o is (S.Int, S.Int)[] q) { }");
3829UsingStatement("if (o is (S.Int a, S.Int b)[] q) { }");
3912UsingStatement("switch (o) { case (int, int)[] q: break; }");
3983UsingStatement("switch (o) { case (int a, int b)[] q: break; }");
4056UsingStatement("switch (o) { case (Int, Int)[] q: break; }");
4127UsingStatement("switch (o) { case (Int a, Int b)[] q: break; }");
4200UsingStatement("switch (o) { case (S.Int, S.Int)[] q: break; }");
4287UsingStatement("switch (o) { case (S.Int a, S.Int b)[] q: break; }");
4376UsingStatement("var x = o is Type (Param: 3, Param2: 4) { Prop : 3 } x;");
4486UsingStatement("var x = o is (Param: 3, Param2: 4) { Prop : 3 } x;");
4592UsingStatement("var x = o is Type { Prop : 3 } x;");
4660UsingStatement("var x = o is { Prop : 3 } x;");
4724UsingStatement("var x = o is Type (Param: 3, Param2: 4) x;");
4811UsingStatement("var x = o is (Param: 3, Param2: 4) x;");
4894UsingStatement("var x = o is Type x;");
4939UsingStatement("var x = o is Type (Param: 3, Param2: 4) { Prop : 3 };");
5045UsingStatement("var x = o is (Param: 3, Param2: 4) { Prop : 3 };");
5147UsingStatement("var x = o is Type { Prop : 3 };");
5211UsingStatement("var x = o is { Prop : 3 };");
5271UsingStatement("var x = o is Type (Param: 3, Param2: 4);");
5354UsingStatement("var x = o is (Param: 3, Param2: 4);");
5433UsingStatement("Console.Write((t) switch {var x => x});");
5527UsingStatement("switch(e) { case _: break; }");
5599UsingStatement("switch(e) { case _ when true: break; }");
7118UsingStatement(
7235UsingStatement(
7297UsingStatement(
7362UsingStatement(
7419UsingStatement(