395 references to UsingTree
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (395)
Parsing\AnonymousFunctionParsingTests.cs (23)
35
UsingTree
(test);
136
UsingTree
(test);
233
UsingTree
(test);
334
UsingTree
(test);
435
UsingTree
(test);
539
UsingTree
(test);
645
UsingTree
(test);
788
UsingTree
(test);
2454
UsingTree
(test);
2602
UsingTree
(test);
2750
UsingTree
(test);
2901
UsingTree
(test);
3012
UsingTree
(test);
3160
UsingTree
(test);
3275
UsingTree
(test);
3428
UsingTree
(test);
3581
UsingTree
(test);
3738
UsingTree
(test);
3858
UsingTree
(test);
4015
UsingTree
(test);
4139
UsingTree
(test);
4301
UsingTree
(test);
4463
UsingTree
(test);
Parsing\AsyncParsingTests.cs (17)
40
UsingTree
(@"
81
UsingTree
(@"
121
UsingTree
(@"
161
UsingTree
(@"
201
UsingTree
(@"
242
UsingTree
(@"
285
UsingTree
(
971
UsingTree
(@"
1016
UsingTree
(@"
1062
UsingTree
(@"
1154
UsingTree
(@"
1193
UsingTree
(@"
2394
UsingTree
(test);
2431
UsingTree
("class async { async async { get; } }").GetDiagnostics().Verify();
2484
UsingTree
(text);
2534
UsingTree
("interface async { async this[async i] { get; } }").GetDiagnostics().Verify();
2600
UsingTree
(test);
Parsing\AsyncStreamsParsingTests.cs (1)
113
UsingTree
(@"
Parsing\AwaitParsingTests.cs (4)
30
UsingTree
(@"
95
UsingTree
(@"
159
UsingTree
(@"
332
UsingTree
(@"
Parsing\CollectionExpressionParsingTests.cs (107)
50
UsingTree
("_ = [A, B].C();");
113
UsingTree
("[A, B].C();");
317
UsingTree
("[return: A, B] void F() { }");
444
UsingTree
("[method: A, B] void F() { }");
577
UsingTree
("[return: A] void F() { }");
696
UsingTree
("_ = [A, B]?.C();");
763
UsingTree
("[A, B]?.C();");
822
UsingTree
("_ = [A, B]->C();");
885
UsingTree
("[A, B]->C();");
940
UsingTree
("[A] [B].C();");
1002
UsingTree
(
1113
UsingTree
("_ = [A, B] is [A, B];");
1184
UsingTree
("_ = [A, B] with { };");
1240
UsingTree
("_ = [A, B] switch { _ => M() };");
1313
UsingTree
(
1379
UsingTree
("""
1474
UsingTree
("_ = [A, B] + [C, D];");
1545
UsingTree
("_ = [];");
1577
UsingTree
("_ = [[]];");
5695
UsingTree
("var x = (A<B>)[1];");
6205
UsingTree
("await [A];");
6240
UsingTree
(@"
6305
UsingTree
(@"
7947
UsingTree
("""
8092
UsingTree
("""
8245
UsingTree
("""
8849
UsingTree
("""
8927
UsingTree
("""
9005
UsingTree
("""
9087
UsingTree
("""
9169
UsingTree
("""
9218
UsingTree
("""
9267
UsingTree
("""
9320
UsingTree
("""
9373
UsingTree
("""
9467
UsingTree
("""
9532
UsingTree
("""
9626
UsingTree
("""
9691
UsingTree
("""
9785
UsingTree
("""
9850
UsingTree
("""
9944
UsingTree
("""
10009
UsingTree
("""
10080
UsingTree
("""
10122
UsingTree
("""
10197
UsingTree
("""
10243
UsingTree
("""
10329
UsingTree
("""
10386
UsingTree
("""
10461
UsingTree
("""
10507
UsingTree
("""
10589
UsingTree
("""
10805
UsingTree
("""
10895
UsingTree
("""
10956
UsingTree
("""
11061
UsingTree
("""
11137
UsingTree
("""
11227
UsingTree
("""
11489
UsingTree
("""
11587
UsingTree
("""
11656
UsingTree
("""
11742
UsingTree
("""
11799
UsingTree
("""
11900
UsingTree
("""
11972
UsingTree
("""
12132
UsingTree
("""
12191
UsingTree
("""
12221
UsingTree
("""
12280
UsingTree
("""
12310
UsingTree
("""
12381
UsingTree
("""
12415
UsingTree
("""
12482
UsingTree
("""
12549
UsingTree
("""
12632
UsingTree
("""
12729
UsingTree
("""
13980
UsingTree
("""
14090
UsingTree
("""
14172
UsingTree
("""
14289
UsingTree
("""
14378
UsingTree
("""
14510
UsingTree
("""
14614
UsingTree
("""
14746
UsingTree
("""
14850
UsingTree
("""
14983
UsingTree
("""
15088
UsingTree
("""
15209
UsingTree
("""
15302
UsingTree
("""
15442
UsingTree
("""
15554
UsingTree
("""
15645
UsingTree
("""
15708
UsingTree
("""
15811
UsingTree
("""
15886
UsingTree
("""
15993
UsingTree
("""
16072
UsingTree
("""
16187
UsingTree
("""
16274
UsingTree
("""
16394
UsingTree
("""
16486
UsingTree
("""
16593
UsingTree
("""
16672
UsingTree
("""
16777
UsingTree
("""
16854
UsingTree
("class C { public ReadOnlySpan<byte> B => [0, 1, 2, 3, 4, 5, 6, 7]; }");
16964
UsingTree
("class C { public ReadOnlySpan<byte> B => [true: A] () => { }; }");
17036
UsingTree
("class C { public bool[] B => [true]; }");
Parsing\DeclarationParsingTests.cs (23)
5996
UsingTree
(@"
6055
UsingTree
(@"
6395
UsingTree
(@"
9124
UsingTree
(text);
9145
UsingTree
(text);
9177
UsingTree
(text);
9217
UsingTree
(text);
9254
UsingTree
(text);
9379
UsingTree
(text);
9402
UsingTree
(text);
9508
UsingTree
(text);
9542
UsingTree
(text);
9584
UsingTree
(text);
9623
UsingTree
(text);
9678
UsingTree
(text);
9727
UsingTree
(text);
9750
UsingTree
(text);
9784
UsingTree
(text);
9811
UsingTree
(text);
10363
UsingTree
(text);
10603
UsingTree
(text);
10647
UsingTree
(text);
10744
UsingTree
(text);
Parsing\DeconstructionTests.cs (10)
1407
var tree =
UsingTree
(@"
1755
var tree =
UsingTree
(@"
2407
var tree =
UsingTree
(@"void M() { var (x, _) = e; }");
2472
var tree =
UsingTree
(@"void M() { (var x, var _) = e; }");
2550
var tree =
UsingTree
(@"void M() { M(out var _); }");
2613
var tree =
UsingTree
(@"void M() { M(out int _); }");
2676
var tree =
UsingTree
(@"void M() { if (e is int _) {} }");
2738
var tree =
UsingTree
(@"void M() { if (e is var _) {} }");
2797
var tree =
UsingTree
(@"void M() { switch (e) { case int _: break; } }");
2865
var tree =
UsingTree
(@"void M() { switch (e) { case var _: break; } }");
Parsing\ExpressionParsingTests.cs (13)
1459
UsingTree
($"""
1643
UsingTree
($"new scoped();");
1723
UsingTree
($"new partial[1];");
1803
UsingTree
($"new partial();");
3064
UsingTree
(@"
3835
var tree =
UsingTree
(text);
3925
var tree =
UsingTree
(text);
4016
var tree =
UsingTree
(text);
4103
var tree =
UsingTree
(text);
4197
var tree =
UsingTree
(text);
4500
var tree =
UsingTree
(text);
4591
var tree =
UsingTree
(text);
4684
var tree =
UsingTree
(text);
Parsing\FileModifierParsingTests.cs (1)
3655
UsingTree
("""
Parsing\LambdaAttributeParsingTests.cs (4)
3713
UsingTree
("""
3911
UsingTree
("""
4025
UsingTree
("""
4137
UsingTree
("""
Parsing\LambdaReturnTypeParsingTests.cs (2)
2765
UsingTree
(source);
2826
UsingTree
(source);
Parsing\LocalFunctionParsingTests.cs (1)
628
UsingTree
(@"
Parsing\MemberDeclarationParsingTests.cs (3)
10167
UsingTree
(@"
12100
UsingTree
(text);
12162
UsingTree
(text);
Parsing\NameParsingTests.cs (4)
834
UsingTree
(source);
1037
UsingTree
(source);
1162
UsingTree
(source);
1291
UsingTree
(source);
Parsing\NullableParsingTests.cs (1)
1324
UsingTree
(
Parsing\ParserRegressionTests.cs (1)
263
UsingTree
(source);
Parsing\ScriptParsingTests.cs (41)
133
UsingTree
(@"
311
UsingTree
(@"new[] { 1 };");
344
UsingTree
(@"new { a = 1 };");
383
UsingTree
(@"new T[5];");
421
UsingTree
(@"new int[] { }.Clone();");
480
UsingTree
("new void Goo() { }");
510
var tree =
UsingTree
(@"
538
UsingTree
("new int[] Goo();");
576
var tree =
UsingTree
(@"
603
var tree =
UsingTree
(@"
643
var tree =
UsingTree
(@"
686
var tree =
UsingTree
("new partial " + typeName + " Goo();");
713
var tree =
UsingTree
(@"
742
var tree =
UsingTree
(@"
779
UsingTree
("new int Goo();");
805
var tree =
UsingTree
(@"
850
var tree =
UsingTree
(@"
909
var tree =
UsingTree
(@"
973
var tree =
UsingTree
("new " + modifier + @" T Goo;");
1001
var tree =
UsingTree
(@"
1021
var tree =
UsingTree
(@"
1052
var tree =
UsingTree
(source);
1080
var tree =
UsingTree
(source);
1106
var tree =
UsingTree
(@"
1202
var tree =
UsingTree
(@"
1227
var tree =
UsingTree
(@"
1255
var tree =
UsingTree
(@"
1286
var tree =
UsingTree
(@"
1331
var tree =
UsingTree
(@"
1413
var tree =
UsingTree
(@"
1450
var tree =
UsingTree
(@"
1492
var tree =
UsingTree
(@"
1524
var tree =
UsingTree
(@"
1563
var tree =
UsingTree
(@"
1604
var tree =
UsingTree
(@"
1651
var tree =
UsingTree
(@"
1914
var tree =
UsingTree
(@"
1989
var tree =
UsingTree
(@"
2476
var tree =
UsingTree
(@"
8042
var tree =
UsingTree
(@"
8449
var tree =
UsingTree
(@"from x;");
Parsing\StatementAttributeParsingTests.cs (72)
22
var test =
UsingTree
(@"
88
var test =
UsingTree
(@"
153
var test =
UsingTree
(@"
240
var test =
UsingTree
(@"
334
var test =
UsingTree
(@"
419
var test =
UsingTree
(@"
504
var test =
UsingTree
(@"
570
var test =
UsingTree
(@"
639
var test =
UsingTree
(@"
713
var test =
UsingTree
(@"
865
var test =
UsingTree
(@"
940
var test =
UsingTree
(@"
1018
var test =
UsingTree
(@"
1092
var test =
UsingTree
(@"
1194
var test =
UsingTree
(@"
1328
var test =
UsingTree
(@"
1404
var test =
UsingTree
(@"
1490
var test =
UsingTree
(@"
1574
var test =
UsingTree
(@"
1693
var test =
UsingTree
(@"
1763
var test =
UsingTree
(@"
1833
var test =
UsingTree
(@"
1903
var test =
UsingTree
(@"
2085
var test =
UsingTree
(@"
2161
var test =
UsingTree
(@"
2237
var test =
UsingTree
(@"
2313
var test =
UsingTree
(@"
2646
var test =
UsingTree
(@"
2725
var test =
UsingTree
(@"
2913
var test =
UsingTree
(@"
3101
var test =
UsingTree
(@"
3180
var test =
UsingTree
(@"
3422
var test =
UsingTree
(@"
3504
var test =
UsingTree
(@"
3586
var test =
UsingTree
(@"
3676
var test =
UsingTree
(@"
3757
var test =
UsingTree
(@"
3831
var test =
UsingTree
(@"
3924
var test =
UsingTree
(@"
4007
var test =
UsingTree
(@"
4092
var test =
UsingTree
(@"
4177
var test =
UsingTree
(@"
4259
var test =
UsingTree
(@"
4336
var test =
UsingTree
(@"
4424
var test =
UsingTree
(@"
4513
var test =
UsingTree
(@"
4610
var test =
UsingTree
(@"
4688
var test =
UsingTree
(@"
4763
var test =
UsingTree
(@"
4858
var test =
UsingTree
(@"
4957
var test =
UsingTree
(@"
5034
var test =
UsingTree
(@"
5106
var test =
UsingTree
(@"
5194
var test =
UsingTree
(@"
5272
var test =
UsingTree
(@"
5358
var test =
UsingTree
(@"
5435
var test =
UsingTree
(@"
5611
var test =
UsingTree
(@"
5729
var test =
UsingTree
(@"
5835
var test =
UsingTree
(@"
5934
var test =
UsingTree
(@"
6030
var test =
UsingTree
(@"
6122
var test =
UsingTree
(@"
6200
var test =
UsingTree
(@"
6292
var test =
UsingTree
(@"
6370
var test =
UsingTree
(@"
6449
var test =
UsingTree
(@"
6536
var test =
UsingTree
(@"
6780
var tree =
UsingTree
(@"
7134
var test =
UsingTree
(@"
7235
var test =
UsingTree
(@"
7343
var test =
UsingTree
(@"
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
34
var tree =
UsingTree
(source);
Parsing\SwitchExpressionParsingTests.cs (1)
1770
UsingTree
("""
Parsing\TopLevelStatementsParsingTests.cs (12)
466
UsingTree
(test);
1107
UsingTree
(test);
1826
UsingTree
(test);
2093
UsingTree
(test);
2117
UsingTree
(test);
2140
UsingTree
(test);
2171
UsingTree
(test);
2202
UsingTree
(test);
2673
UsingTree
(test);
2919
UsingTree
(test);
2961
UsingTree
(test);
3148
UsingTree
(test);
Parsing\TypeArgumentListParsingTests.cs (7)
689
UsingTree
(@"
1872
UsingTree
(@"
2270
UsingTree
(@"
2371
UsingTree
(@"
2480
UsingTree
(@"
2581
UsingTree
(@"
2699
UsingTree
(@"
Parsing\UsingDirectiveParsingTests.cs (46)
349
UsingTree
(text);
604
UsingTree
(text);
658
UsingTree
(text);
708
UsingTree
(text);
770
UsingTree
(text);
830
UsingTree
(text);
900
UsingTree
(text);
937
UsingTree
(text);
974
UsingTree
(text);
1018
UsingTree
(text);
1063
UsingTree
(text);
1107
UsingTree
(text);
1155
UsingTree
(text);
1230
UsingTree
(text);
1303
UsingTree
(text);
1378
UsingTree
(text);
1465
UsingTree
(text);
1544
UsingTree
(text);
1604
UsingTree
(text);
1707
UsingTree
(text);
1806
UsingTree
(text);
1847
UsingTree
(text);
1897
UsingTree
(text);
1944
UsingTree
(text);
2022
UsingTree
(text);
2095
UsingTree
(text);
2172
UsingTree
(text);
2247
UsingTree
(text);
2547
UsingTree
(text);
2585
UsingTree
(text);
2682
UsingTree
(text);
2827
UsingTree
(text);
2951
UsingTree
(text);
3055
UsingTree
(text);
3146
UsingTree
(text);
3210
UsingTree
(text);
3274
UsingTree
(text);
3347
UsingTree
(text);
3635
UsingTree
(text);
3785
UsingTree
(text);
4539
UsingTree
(text);
4579
UsingTree
(text);
4781
UsingTree
(text);
4862
UsingTree
(text);
5096
UsingTree
(text);
5176
UsingTree
(text);