401 references to UsingTree
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (401)
Parsing\AsyncStreamsParsingTests.cs (3)
35
UsingTree
(@"
276
UsingTree
(@"
469
UsingTree
(@"
Parsing\DeclarationParsingTests.cs (5)
6544
var tree =
UsingTree
(@"
8189
UsingTree
(@"
8240
UsingTree
(@"
8287
UsingTree
(@"
8362
UsingTree
(@"
Parsing\DeclarationScopeParsingTests.cs (160)
314
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
431
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
1428
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
1562
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
1633
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
1749
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
1875
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
1940
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
1990
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2035
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
2110
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2167
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2191
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2217
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2323
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2429
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2521
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2569
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
2639
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2704
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
2747
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2792
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
2867
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
2922
UsingTree
(source, TestOptions.Regular11,
2974
UsingTree
(source, TestOptions.Regular11,
3043
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
3120
UsingTree
(source, TestOptions.RegularPreview,
3190
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
3319
UsingTree
(source, parseOptions);
3357
UsingTree
(source, TestOptions.Script);
3392
UsingTree
(source, TestOptions.Script,
3448
UsingTree
(source, TestOptions.Script,
3507
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
3574
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
3645
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
3750
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
3855
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
3927
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
4043
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
4152
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4223
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
4321
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4396
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
4498
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4574
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
4677
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4748
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4823
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4899
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
4974
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5045
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5116
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5191
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5267
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5334
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5405
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
5507
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
5609
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
5693
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
5762
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
5832
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5911
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
5982
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
6061
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6182
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
6234
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
6290
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6368
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6436
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
6493
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6594
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6688
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
6744
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6815
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
6875
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
6947
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7008
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
7110
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7166
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7226
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7287
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7347
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7403
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7459
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7519
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7580
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7632
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
7688
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
7766
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
7834
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
7906
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
7976
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8047
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8119
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8186
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8254
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
8310
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
8363
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
8402
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8470
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
8504
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8567
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
8634
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
11451
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
11522
UsingTree
(source, TestOptions.Regular11,
11609
UsingTree
(source, TestOptions.Regular11,
11692
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
11724
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
11812
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
11849
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
11944
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12019
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12074
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12133
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12173
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12230
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12319
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12360
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12416
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12460
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12506
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12548
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12594
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12664
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12731
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12778
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12859
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
12933
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
12979
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
13042
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13092
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
13159
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13210
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
13278
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13324
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13374
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13425
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13475
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13521
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13575
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13621
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13671
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13722
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13764
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
13810
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
13880
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
13950
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
14002
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14072
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14146
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14256
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14373
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14432
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14496
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14564
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14638
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
14686
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14772
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14828
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
14896
UsingTree
(source, TestOptions.Regular.WithLanguageVersion(langVersion),
Parsing\DeconstructionTests.cs (19)
41
var tree =
UsingTree
(@"
115
var tree =
UsingTree
(@"
193
var tree =
UsingTree
(@"
269
var tree =
UsingTree
(@"
357
var tree =
UsingTree
(@"
441
var tree =
UsingTree
(@"
516
var tree =
UsingTree
(@"
592
var tree =
UsingTree
(@"
684
var tree =
UsingTree
(@"
774
var tree =
UsingTree
(@"
887
var tree =
UsingTree
(@"
964
var tree =
UsingTree
(@"
1051
var tree =
UsingTree
(@"
1125
var tree =
UsingTree
(@"
1224
var tree =
UsingTree
(@"
1322
var tree =
UsingTree
(@"
1500
var tree =
UsingTree
(@"
1580
var tree =
UsingTree
(@" (int x, int y) = (1, 2); ", options: TestOptions.Script);
1656
var tree =
UsingTree
(@" foreach ((int x, int y) in new[] { (1, 2) }) { }; ", options: TestOptions.Script);
Parsing\FileModifierParsingTests.cs (1)
34
var tree =
UsingTree
(text, options, expectedParsingDiagnostics);
Parsing\FunctionPointerTests.cs (1)
1705
UsingTree
(@"
Parsing\LambdaReturnTypeParsingTests.cs (2)
4936
UsingTree
(source, TestOptions.Regular9);
4939
UsingTree
(source, TestOptions.Regular10);
Parsing\LocalFunctionParsingTests.cs (8)
356
var tree =
UsingTree
(@"
553
var tree =
UsingTree
(@"
720
UsingTree
(code, TestOptions.Regular9).GetDiagnostics().Verify();
723
UsingTree
(code, TestOptions.Regular8);
806
UsingTree
(code, TestOptions.Regular9).GetDiagnostics().Verify();
809
UsingTree
(code, TestOptions.Regular8);
909
var tree =
UsingTree
(@"
989
var tree =
UsingTree
(@"
Parsing\MemberDeclarationParsingTests.cs (32)
2264
UsingTree
("""
3238
UsingTree
(text, options: options.WithLanguageVersion(version));
3383
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
3511
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
3621
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
3731
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
3787
UsingTree
("public int N::I::operator +(int x, int y) => x + y;", options: options.WithLanguageVersion(LanguageVersion.Preview),
3871
UsingTree
("public int I::operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
3930
UsingTree
("public int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
3985
UsingTree
("public int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
4049
UsingTree
("public int N1::N2::I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
5118
UsingTree
(text, options: options.WithLanguageVersion(version));
5256
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
5377
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
5480
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
5583
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
5638
UsingTree
("int N::I::operator +(int x, int y) => x + y;", options: options.WithLanguageVersion(LanguageVersion.Preview),
5721
UsingTree
("int I::operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
5779
UsingTree
("int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
5833
UsingTree
("int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
5896
UsingTree
("int N1::N2::I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
7030
UsingTree
(text, options: options.WithLanguageVersion(version));
7143
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
7247
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
7351
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
7455
UsingTree
(text, options: options.WithLanguageVersion(version), errors);
7510
UsingTree
("implicit N::I::operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
7576
UsingTree
("explicit I::operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
7634
UsingTree
("implicit I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
7688
UsingTree
("explicit I<T>.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
7751
UsingTree
("implicit N1::N2::I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
8634
UsingTree
(
Parsing\NameParsingTests.cs (1)
931
UsingTree
(source, TestOptions.Regular1,
Parsing\ParsingTests.cs (1)
147
return
UsingTree
(text, options: null, expectedErrors);
Parsing\PatternParsingTests.cs (1)
172
UsingTree
(@"
Parsing\RecordParsing.cs (40)
19
=>
UsingTree
(text, TestOptions.Regular9, expectedErrors);
108
UsingTree
(text, options: TestOptions.Regular8);
2517
UsingTree
(text, options: TestOptions.Regular9,
2527
UsingTree
(text, options: TestOptions.Regular10,
2578
UsingTree
(text, options: TestOptions.Regular10);
2582
UsingTree
(text, options: TestOptions.Regular9);
2585
UsingTree
(text, options: TestOptions.Regular8,
2713
UsingTree
(text, options: TestOptions.Regular10);
2764
UsingTree
(text, options: TestOptions.Regular10);
2777
UsingTree
(text, options: TestOptions.Regular9);
2804
UsingTree
(text, options: TestOptions.Regular8,
2908
UsingTree
(text, options: TestOptions.RegularPreview,
2966
UsingTree
(text, options: TestOptions.RegularPreview,
3058
UsingTree
(text, options: TestOptions.Regular10,
3103
UsingTree
(text, options: TestOptions.Regular9,
3148
UsingTree
(text, options: TestOptions.Regular8);
3168
UsingTree
(text, options: TestOptions.Regular9);
3188
UsingTree
(text, options: TestOptions.Regular10);
3208
UsingTree
(text, options: TestOptions.Regular10,
3253
UsingTree
(text, options: TestOptions.Regular9,
3298
UsingTree
(text, options: TestOptions.RegularPreview,
3390
UsingTree
(text, options: TestOptions.RegularPreview);
3411
UsingTree
(text, options: TestOptions.RegularPreview);
3432
UsingTree
(text, options: TestOptions.RegularPreview);
3452
UsingTree
(text, options: TestOptions.RegularPreview);
3486
UsingTree
(text, options: TestOptions.RegularPreview);
3521
UsingTree
(text, options: TestOptions.RegularPreview);
3542
UsingTree
(text, options: TestOptions.RegularPreview);
3564
UsingTree
(text, options: TestOptions.RegularPreview,
3596
UsingTree
(text, options: TestOptions.RegularPreview,
3647
UsingTree
(text, options: TestOptions.RegularPreview);
3658
UsingTree
(text, options: TestOptions.Regular8,
3694
UsingTree
(text, options: TestOptions.Regular9);
3719
UsingTree
(text, options: TestOptions.RegularPreview);
3723
UsingTree
(text, options: TestOptions.Regular8);
3767
UsingTree
(text, options: TestOptions.Regular9);
3792
UsingTree
(text, options: TestOptions.RegularPreview,
3840
UsingTree
(text, options: TestOptions.RegularPreview,
3903
UsingTree
(text, options: TestOptions.RegularPreview);
3946
UsingTree
(text, options: TestOptions.RegularPreview);
Parsing\ScriptParsingTests.cs (92)
2612
var tree =
UsingTree
(@"a * b;", TestOptions.Script);
2642
var tree =
UsingTree
(@"a * b", TestOptions.Script);
2675
var tree =
UsingTree
(@"a<t>.n * f(x)", TestOptions.Script);
2811
var tree =
UsingTree
(@"T ? a;", TestOptions.Script);
2841
var tree =
UsingTree
(@"T ? b, c = 1;", TestOptions.Script);
2884
var tree =
UsingTree
(@"T ? b = d => { };", TestOptions.Script);
2931
var tree =
UsingTree
(@"T ? b = x ? y : z;", TestOptions.Script);
2981
var tree =
UsingTree
(@"T ? a,", TestOptions.Script,
3023
var tree =
UsingTree
(@"T ? a = 1,", TestOptions.Script,
3074
var tree =
UsingTree
(@"T ? a {", TestOptions.Script,
3105
var tree =
UsingTree
(@"T ? a.b {", TestOptions.Script,
3144
var tree =
UsingTree
(@"T ? a<T>.b {", TestOptions.Script,
3192
var tree =
UsingTree
(@"T ? a<T?>.b<S>.c {", TestOptions.Script,
3263
var tree =
UsingTree
(@"T ? a() {", TestOptions.Script,
3299
var tree =
UsingTree
(@"T ? a() where", TestOptions.Script,
3356
var tree =
UsingTree
(@"T ? a(T b", TestOptions.Script,
3399
var tree =
UsingTree
(@"T ? a.b(T c", TestOptions.Script,
3450
var tree =
UsingTree
(@"T ? a<A>.b<B>(C c", TestOptions.Script,
3519
var tree =
UsingTree
(@"T ? a([Attr]C c", TestOptions.Script,
3574
var tree =
UsingTree
(@"T ? a([Attr(a = b)]c", TestOptions.Script,
3652
var tree =
UsingTree
(@"T ? a(out C c", TestOptions.Script,
3696
var tree =
UsingTree
(@"T ? a(C[] a", TestOptions.Script,
3751
var tree =
UsingTree
(@"T ? a(params", TestOptions.Script,
3801
var tree =
UsingTree
(@"T ? a(out T ? b", TestOptions.Script,
3849
var tree =
UsingTree
(@"T ? a(ref T ? b", TestOptions.Script,
3897
var tree =
UsingTree
(@"T ? a(params T ? b", TestOptions.Script,
3945
var tree =
UsingTree
(@"T ? a([Attr]T ? b", TestOptions.Script,
4004
var tree =
UsingTree
(@"T ? a(T ? b,", TestOptions.Script,
4066
var tree =
UsingTree
(@"T ? a(T ? b)", TestOptions.Script,
4110
var tree =
UsingTree
(@"T ? a(T c)", TestOptions.Script,
4150
var tree =
UsingTree
(@"T ? a(this c d", TestOptions.Script,
4194
var tree =
UsingTree
(@"T ? a(ref out T a", TestOptions.Script,
4239
var tree =
UsingTree
(@"T ? a(int a", TestOptions.Script,
4282
var tree =
UsingTree
(@"T ? a(ref int a", TestOptions.Script,
4326
var tree =
UsingTree
(@"T ? a(T a =", TestOptions.Script,
4380
var tree =
UsingTree
(@"T ? a(T[,] a", TestOptions.Script,
4499
var tree =
UsingTree
(@"T ? m(a < b, c > d)", TestOptions.Script,
4555
var tree =
UsingTree
(@"T ? 1", TestOptions.Script,
4596
var tree =
UsingTree
(@"T ? a", TestOptions.Script,
4637
var tree =
UsingTree
(@"T ? a.", TestOptions.Script,
4689
var tree =
UsingTree
(@"T ? a[", TestOptions.Script,
4741
var tree =
UsingTree
(@"T ? a<", TestOptions.Script,
4793
var tree =
UsingTree
(@"T ? a<b", TestOptions.Script,
4842
var tree =
UsingTree
(@"T ? a<b>", TestOptions.Script,
4892
var tree =
UsingTree
(@"T ? a<b,c>", TestOptions.Script,
4947
var tree =
UsingTree
(@"T ? a<b>.", TestOptions.Script,
5008
var tree =
UsingTree
(@"T ? a<b>.c", TestOptions.Script,
5066
var tree =
UsingTree
(@"T ? a<b>.c(", TestOptions.Script,
5135
var tree =
UsingTree
(@"T ? a(", TestOptions.Script,
5187
var tree =
UsingTree
(@"T ? a.b(", TestOptions.Script,
5247
var tree =
UsingTree
(@"T ? m(c", TestOptions.Script,
5306
var tree =
UsingTree
(@"T ? m(c,", TestOptions.Script,
5376
var tree =
UsingTree
(@"T ? m(c:", TestOptions.Script,
5446
var tree =
UsingTree
(@"T ? m(c?", TestOptions.Script,
5527
var tree =
UsingTree
(@"T ? m(c? a", TestOptions.Script,
5605
var tree =
UsingTree
(@"T ? m(c? a =", TestOptions.Script,
5694
var tree =
UsingTree
(@"T ? m(c? a = b ?", TestOptions.Script,
5802
var tree =
UsingTree
(@"T ? m()", TestOptions.Script,
5851
var tree =
UsingTree
(@"T ? m(a)", TestOptions.Script,
5907
var tree =
UsingTree
(@"T ? m();", TestOptions.Script,
5956
var tree =
UsingTree
(@"T ? m(a);", TestOptions.Script,
6012
var tree =
UsingTree
(@"T ? m(x: 1", TestOptions.Script,
6079
var tree =
UsingTree
(@"T ? m(x: 1, y: a ? b : c)", TestOptions.Script,
6172
var tree =
UsingTree
(@"T ? u => { } : v => { }", TestOptions.Script);
6225
var tree =
UsingTree
(@"T ? u => (d ? e => 1 : f => 2)(3) : c => 2", TestOptions.Script);
6325
var tree =
UsingTree
(@"T ? a ?", TestOptions.Script,
6388
var tree =
UsingTree
(@"T ? a =", TestOptions.Script,
6440
var tree =
UsingTree
(@"T ? a = b", TestOptions.Script,
6489
var tree =
UsingTree
(@"T ? a = b : ", TestOptions.Script,
6535
var tree =
UsingTree
(@"T ? m(out c", TestOptions.Script,
6595
var tree =
UsingTree
(@"T ? m(ref c", TestOptions.Script,
6655
var tree =
UsingTree
(@"T ? m(ref out", TestOptions.Script,
6733
var tree =
UsingTree
(@"T ? m(ref out c", TestOptions.Script,
6808
var tree =
UsingTree
(@"T ? m(this", TestOptions.Script,
6867
var tree =
UsingTree
(@"T ? m(this.", TestOptions.Script,
6937
var tree =
UsingTree
(@"T ? m(this<", TestOptions.Script,
7007
var tree =
UsingTree
(@"T ? m(this[", TestOptions.Script,
7077
var tree =
UsingTree
(@"T ? m(this a", TestOptions.Script,
7147
var tree =
UsingTree
(@"T ? m(this(", TestOptions.Script,
7217
var tree =
UsingTree
(@"T ? m(T[", TestOptions.Script,
7287
var tree =
UsingTree
(@"T ? m(T[1", TestOptions.Script,
7364
var tree =
UsingTree
(@"T ? m(T[1]", TestOptions.Script,
7438
var tree =
UsingTree
(@"T ? a(T ? a =", TestOptions.Script,
7527
var tree =
UsingTree
(@"T ? a(T)", TestOptions.Script,
7583
var tree =
UsingTree
(@"T ? a(ref int.MaxValue)", TestOptions.Script,
7648
var tree =
UsingTree
(@"T ? a(ref a,", TestOptions.Script,
7719
var tree =
UsingTree
(@"T ? a(,", TestOptions.Script,
7792
var tree =
UsingTree
(@"T ? a(T ? b[1] : b[2])", TestOptions.Script,
7965
var tree =
UsingTree
(@"T ? m(a < b, c > d) :", TestOptions.Script,
8360
var tree =
UsingTree
(@"from", TestOptions.Script);
8382
var tree =
UsingTree
(@"from c", TestOptions.Script,
9177
var tree =
UsingTree
("a < b,c.", TestOptions.Script,
Parsing\SeparatedSyntaxListParsingTests.cs (2)
315
var tree =
UsingTree
(@"
735
var tree =
UsingTree
(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
Parsing\TopLevelStatementsParsingTests.cs (2)
1621
var tree =
UsingTree
(test, TestOptions.RegularPreview.WithLanguageVersion(version));
3214
UsingTree
(test, TestOptions.Regular8,
Parsing\ValueTupleTests.cs (7)
28
var tree =
UsingTree
(@"
112
var tree =
UsingTree
(@"
226
var tree =
UsingTree
(@"
330
var tree =
UsingTree
(@"
436
var tree =
UsingTree
(@"
502
UsingTree
(@"
609
UsingTree
(@"
Syntax\SyntaxTreeTests.cs (24)
340
UsingTree
(test, TestOptions.Regular10);
375
UsingTree
(test, TestOptions.Regular9);
399
UsingTree
(test, TestOptions.Regular10);
447
UsingTree
(test, TestOptions.Regular9);
481
UsingTree
(test, TestOptions.Regular10);
517
UsingTree
(test, TestOptions.Regular9);
542
UsingTree
(test, TestOptions.Regular10);
591
UsingTree
(test, TestOptions.Regular9);
626
UsingTree
(test, TestOptions.RegularPreview);
672
UsingTree
(test, TestOptions.Regular9);
704
UsingTree
(test, TestOptions.RegularPreview);
763
UsingTree
(test, TestOptions.Regular9);
808
UsingTree
(test, TestOptions.RegularPreview,
839
UsingTree
(test, TestOptions.RegularPreview,
873
UsingTree
(test, TestOptions.RegularPreview,
914
UsingTree
(test, TestOptions.RegularPreview);
948
UsingTree
(test, TestOptions.Regular,
975
UsingTree
(test, TestOptions.RegularPreview,
1003
UsingTree
(test, TestOptions.Regular,
1039
UsingTree
(test, TestOptions.RegularPreview,
1080
UsingTree
(test, TestOptions.RegularPreview,
1121
UsingTree
(test, TestOptions.RegularPreview);
1177
UsingTree
(test, TestOptions.RegularPreview);
1249
UsingTree
(test, TestOptions.RegularPreview);