3436 references to SyntaxTrees
Microsoft.CodeAnalysis.CSharp (20)
Compilation\CSharpCompilation.cs (15)
1072foreach (var tree in SyntaxTrees) 1097foreach (var tree in SyntaxTrees) 1124foreach (var tree in SyntaxTrees) 2549binderFactories = new WeakReference<BinderFactory>[this.SyntaxTrees.Length]; 2605if (_lazyCompilationUnitCompletedTrees.Count == this.SyntaxTrees.Length) 2730foreach (var tree in this.SyntaxTrees) 2925var syntaxTrees = this.SyntaxTrees; 2988if (EventQueue != null && SyntaxTrees.Length == 0) 3120foreach (var otherTree in SyntaxTrees) 3181if (updated.Count == SyntaxTrees.Length) 3607return visitor.CheckDuplicateFilePathsAndFree(SyntaxTrees, GlobalNamespace); 3884foreach (var syntaxTree in this.SyntaxTrees) 3935return this.SyntaxTrees; 4676bool value = SyntaxTrees.FirstOrDefault()?.Options?.Features?.ContainsKey("nullablePublicOnly") == true; 4783CSharpSyntaxTree? firstTree = (CSharpSyntaxTree?)SyntaxTrees.FirstOrDefault();
Compiler\DocumentationCommentCompiler.cs (1)
124foreach (SyntaxTree tree in compilation.SyntaxTrees)
FlowAnalysis\NullableWalker.cs (1)
1554return compilation.SyntaxTrees.Any(static tree => ((CSharpSyntaxTree)tree).IsNullableAnalysisEnabled(new Text.TextSpan(0, tree.Length)) == true);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1236var syntaxTrees = DeclaringCompilation.SyntaxTrees;
Symbols\Source\SourceModuleSymbol.cs (1)
600var options = (CSharpParseOptions?)compilation.SyntaxTrees.FirstOrDefault()?.Options;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
252compilation.SyntaxTrees.Any(static tree => ((CSharpSyntaxTree)tree).IsNullableAnalysisEnabled(new TextSpan(0, tree.Length)) == true);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTestBase.cs (1)
250foreach (var tree in comp.SyntaxTrees)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (251)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
8745var tree = comp.SyntaxTrees.Single(); 8811var tree = comp.SyntaxTrees.Single();
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
893var tree = compilation.SyntaxTrees.Single(); 945var tree = compilation.SyntaxTrees.Single();
CodeGen\CodeGenAwaitForeachTests.cs (31)
934var tree = comp.SyntaxTrees.Single(); 1659var tree = comp.SyntaxTrees.Single(); 1719var tree = comp.SyntaxTrees.Single(); 1863var tree = comp.SyntaxTrees.Single(); 1900var tree = comp.SyntaxTrees.Single(); 1940var tree = comp.SyntaxTrees.Single(); 1977var tree = comp.SyntaxTrees.Single(); 2011var tree = comp.SyntaxTrees.Single(); 2967var tree = comp.SyntaxTrees.Single(); 3032var tree = comp.SyntaxTrees.First(); 3117var tree = comp.SyntaxTrees.First(); 3235var tree = comp.SyntaxTrees.First(); 3290var tree = comp.SyntaxTrees.Single(); 3348var tree = comp.SyntaxTrees.Single(); 3544var tree = comp.SyntaxTrees.Single(); 3592var tree = comp.SyntaxTrees.Single(); 3713var tree = comp.SyntaxTrees.First(); 4237var tree = comp.SyntaxTrees.Single(); 4460var tree = comp.SyntaxTrees.Single(); 4534var tree = comp.SyntaxTrees.Single(); 4644var tree = comp.SyntaxTrees.Single(); 4743var tree = comp.SyntaxTrees.Single(); 5047var tree = comp.SyntaxTrees.Single(); 5128var tree = comp.SyntaxTrees.Single(); 5354var tree = comp.SyntaxTrees.Single(); 6437var tree = comp.SyntaxTrees.Single(); 9105var tree = comp.SyntaxTrees.First(); 9181var tree = comp.SyntaxTrees.First(); 9259var tree = comp.SyntaxTrees.First(); 9320var tree = comp.SyntaxTrees.First(); 9391var tree = comp.SyntaxTrees.First();
CodeGen\CodeGenCheckedTests.cs (2)
2913var tree = comp.SyntaxTrees.Single(); 2945var tree = comp.SyntaxTrees.Single();
CodeGen\CodeGenDeconstructTests.cs (81)
93var tree = compilation.SyntaxTrees.First(); 309var tree = comp.SyntaxTrees.First(); 1364var tree = compilation.SyntaxTrees.First(); 1421var tree = compilation.SyntaxTrees.First(); 1465var tree = comp.SyntaxTrees.First(); 1506var tree = comp.SyntaxTrees.First(); 1559var tree = comp.SyntaxTrees.First(); 1666var tree = compilation.SyntaxTrees.First(); 2685var tree = compilation.SyntaxTrees.First(); 3127var tree = compilation.SyntaxTrees.First(); 3175var tree = compilation.SyntaxTrees.First(); 3239var tree = compilation.SyntaxTrees.First(); 3277var tree = compilation.SyntaxTrees.First(); 3327var tree = compilation.SyntaxTrees.First(); 3365var tree = compilation.SyntaxTrees.First(); 3440var tree = compilation.SyntaxTrees.First(); 3476var tree = compilation.SyntaxTrees.First(); 3541var tree = compilation.SyntaxTrees.First(); 3687var tree = compilation.SyntaxTrees.First(); 3732var tree = compilation.SyntaxTrees.First(); 3789var tree = compilation.SyntaxTrees.First(); 3839var tree = compilation.SyntaxTrees.First(); 3885var tree = compilation.SyntaxTrees.First(); 3929var tree = compilation.SyntaxTrees.First(); 3975var tree = compilation.SyntaxTrees.First(); 4024var tree = compilation.SyntaxTrees.First(); 4130var tree = compilation.SyntaxTrees.First(); 4215var tree = compilation.SyntaxTrees.First(); 4326var tree = compilation.SyntaxTrees.First(); 4402var tree = compilation.SyntaxTrees.First(); 4435var tree = compilation.SyntaxTrees.First(); 4589var tree = compilation.SyntaxTrees.First(); 5000var nodes = comp.SyntaxTrees[0].GetCompilationUnitRoot().DescendantNodesAndSelf(); 5018var tree = compilation.SyntaxTrees.First(); 5123var nodes = comp.SyntaxTrees[0].GetCompilationUnitRoot().DescendantNodesAndSelf(); 5170var tree = compilation.SyntaxTrees.First(); 5307var tree = compilation.SyntaxTrees.First(); 5343var tree = compilation.SyntaxTrees.First(); 5398var tree = comp.SyntaxTrees.First(); 5431var tree = comp.SyntaxTrees.First(); 5469var tree = comp.SyntaxTrees.First(); 5501var tree = comp.SyntaxTrees.First(); 5532var tree = comp.SyntaxTrees.First(); 5561var tree = comp.SyntaxTrees.First(); 5601var tree = comp.SyntaxTrees.First(); 5640var tree = comp.SyntaxTrees.First(); 5684var tree = comp.SyntaxTrees.First(); 5723var tree = comp.SyntaxTrees.First(); 5765var tree = comp.SyntaxTrees.First(); 5801var tree = comp.SyntaxTrees.First(); 5851var tree = comp.SyntaxTrees.First(); 5905var tree = comp.SyntaxTrees.First(); 5996var tree = comp.SyntaxTrees.First(); 6028var tree = comp.SyntaxTrees.First(); 6081var tree = comp.SyntaxTrees.First(); 6130var tree = comp.SyntaxTrees.First(); 6179var tree = comp.SyntaxTrees.First(); 6209var tree = comp.SyntaxTrees.First(); 6251var tree = comp.SyntaxTrees.First(); 6302var tree = comp.SyntaxTrees.First(); 6334var tree = comp.SyntaxTrees.First(); 6364var tree = comp.SyntaxTrees.First(); 6391var tree = comp.SyntaxTrees.First(); 6436var tree = compilation.SyntaxTrees.First(); 6559var tree = comp.SyntaxTrees.First(); 6857var tree = compilation.SyntaxTrees.First(); 6929var tree = compilation.SyntaxTrees.First(); 6972var tree = comp.SyntaxTrees.First(); 7065var tree = comp.SyntaxTrees.Single(); 7120var tree = compilation.SyntaxTrees.First(); 7173var tree = compilation.SyntaxTrees.First(); 7228var tree = compilation.SyntaxTrees.First(); 7266var tree = compilation.SyntaxTrees.First(); 7303var tree = compilation.SyntaxTrees.First(); 7351var tree = compilation.SyntaxTrees.First(); 7390var tree = compilation.SyntaxTrees.First(); 7426var tree = compilation.SyntaxTrees.First(); 7503var tree = compilation.SyntaxTrees.First(); 7560var tree = compilation.SyntaxTrees.First(); 8357var tree = comp.SyntaxTrees.Single(); 9008var tree = comp.SyntaxTrees.First();
CodeGen\CodeGenExprLambdaTests.cs (2)
1847var tree = comp.SyntaxTrees.Single(); 1884var tree = comp.SyntaxTrees.Single();
CodeGen\CodeGenForEachTests.cs (1)
1756var tree = comp.SyntaxTrees.Single();
CodeGen\CodeGenFunctionPointersTests.cs (20)
3059var syntaxTree = comp.SyntaxTrees[0]; 3111var syntaxTree = comp.SyntaxTrees[0]; 3336var syntaxTree = comp.SyntaxTrees[0]; 3407var syntaxTree = comp.SyntaxTrees[0]; 3454var syntaxTree = comp.SyntaxTrees[0]; 3565var tree = comp.SyntaxTrees[0]; 3617var tree = comp.SyntaxTrees[0]; 3668var tree = comp.SyntaxTrees[0]; 3707var tree = comp.SyntaxTrees[0]; 4112var syntaxTree = comp.SyntaxTrees[0]; 4914var syntaxTree = comp.SyntaxTrees[0]; 7412var tree = comp.SyntaxTrees[0]; 7514var tree = comp.SyntaxTrees[0]; 7570var tree = allInCoreLib.SyntaxTrees[0]; 7590tree = comp1.SyntaxTrees[0]; 7639var tree = allInCoreLib.SyntaxTrees[0]; 7659tree = comp1.SyntaxTrees[0]; 7726var tree = comp1.SyntaxTrees[0]; 7744tree = comp2.SyntaxTrees[0]; 10801var tree = comp.SyntaxTrees[0];
CodeGen\CodeGenInterpolatedString.cs (1)
36var tree = comp.SyntaxTrees.Single();
CodeGen\CodeGenLocalFunctionTests.cs (2)
144var tree = comp.SyntaxTrees.Single(); 6160var tree = comp.SyntaxTrees[0];
CodeGen\CodeGenOperators.cs (2)
5694var tree = compilation.SyntaxTrees.Single(); 5732var tree = compilation.SyntaxTrees.Single();
CodeGen\CodeGenRefLocalTests.cs (3)
4030var tree = comp.SyntaxTrees.Single(); 4067var tree = comp.SyntaxTrees.Single(); 4101var tree = comp.SyntaxTrees.Single();
CodeGen\CodeGenTupleEqualityTests.cs (33)
767var tree = comp.SyntaxTrees.First(); 789var tree = comp.SyntaxTrees[0]; 851var tree = comp.SyntaxTrees[0]; 899var tree = comp.SyntaxTrees[0]; 948var tree = comp.SyntaxTrees[0]; 998var tree = comp.SyntaxTrees[0]; 1052var tree = comp.SyntaxTrees[0]; 1086var tree = comp.SyntaxTrees[0]; 1118var tree = comp.SyntaxTrees[0]; 1149var tree = comp.SyntaxTrees[0]; 1209var tree = comp.SyntaxTrees[0]; 1309var tree = comp.SyntaxTrees[0]; 1395var tree = comp.SyntaxTrees[0]; 1460var tree = comp.SyntaxTrees[0]; 1493var tree = comp.SyntaxTrees[0]; 1554var tree = comp.SyntaxTrees[0]; 1591var tree = comp.SyntaxTrees[0]; 1616var tree = comp.SyntaxTrees[0]; 1671var tree = comp.SyntaxTrees[0]; 1773var tree = comp.SyntaxTrees[0]; 1915var tree = comp.SyntaxTrees[0]; 2570var tree = comp.SyntaxTrees.First(); 2638var tree = comp.SyntaxTrees.First(); 3275var tree = comp.SyntaxTrees.First(); 3681var tree = comp.SyntaxTrees.First(); 3805var tree = comp.SyntaxTrees.First(); 3908var tree = comp.SyntaxTrees.First(); 4033var tree = comp.SyntaxTrees.First(); 4080var tree = comp.SyntaxTrees.First(); 4181var tree = comp.SyntaxTrees[0]; 4274var tree = comp.SyntaxTrees.First(); 5119var tree = comp.SyntaxTrees.First(); 5155var tree = comp.SyntaxTrees.First();
CodeGen\CodeGenTupleTest.cs (62)
3216var tree = compilation.SyntaxTrees.First(); 3249var tree = compilation.SyntaxTrees.First(); 3462var tree = compilation.SyntaxTrees.First(); 3633var tree = compilation.SyntaxTrees.First(); 3684var tree = compilation.SyntaxTrees.First(); 3930var tree = compilation.SyntaxTrees.First(); 3987var tree = compilation.SyntaxTrees.First(); 4020var tree = compilation.SyntaxTrees.First(); 4152var tree = compilation.SyntaxTrees.First(); 4837var tree = comp.SyntaxTrees.Single(); 5073var tree = comp.SyntaxTrees.Single(); 5117var tree = comp.SyntaxTrees.Single(); 5158var tree = comp.SyntaxTrees.Single(); 5202var tree = comp.SyntaxTrees.Single(); 7495var tree = comp.SyntaxTrees.Single(); 7528var tree = comp.SyntaxTrees.Single(); 7565var tree = comp.SyntaxTrees.Single(); 7628var tree = comp.SyntaxTrees.Single(); 9852var tree = comp.SyntaxTrees.First(); 9903var tree = comp.SyntaxTrees.First(); 9945var tree = comp.SyntaxTrees.First(); 9991var tree = comp.SyntaxTrees.First(); 10057var tree = comp.SyntaxTrees.First(); 10096var tree = comp.SyntaxTrees.First(); 10130var tree = comp.SyntaxTrees.First(); 12690var tree = c.SyntaxTrees.Single(); 13971var tree = c.SyntaxTrees.Single(); 14242var tree = c.SyntaxTrees.Single(); 16537var tree = comp.SyntaxTrees.Single(); 19227var tree = comp.SyntaxTrees.First(); 19289var tree = comp.SyntaxTrees.First(); 19392var tree = comp.SyntaxTrees.First(); 19423var tree = comp.SyntaxTrees.First(); 19477var tree = comp.SyntaxTrees.First(); 19535var tree = comp.SyntaxTrees.First(); 19658var tree = comp.SyntaxTrees.First(); 19702var tree = comp.SyntaxTrees.First(); 19733var tree = comp.SyntaxTrees.First(); 20355var tree = comp.SyntaxTrees.First(); 21348var tree = comp.SyntaxTrees.First(); 22853var tree = compilation.SyntaxTrees.First(); 24178var tree = compilation.SyntaxTrees.First(); 24257var tree = comp.SyntaxTrees.Single(); 24320var tree = comp.SyntaxTrees.Single(); 24384var tree = comp.SyntaxTrees.Single(); 24457var tree = comp.SyntaxTrees.Single(); 24530var tree = comp.SyntaxTrees.Single(); 24604var tree = comp.SyntaxTrees.Single(); 25022var tree = comp.SyntaxTrees.Single(); 25050var tree = comp.SyntaxTrees.Single(); 25081var tree = comp.SyntaxTrees.Single(); 25701var tree = comp.SyntaxTrees.Single(); 25772var tree = comp.SyntaxTrees.Single(); 25837var tree = comp.SyntaxTrees.Single(); 25879var tree = comp.SyntaxTrees.Single(); 25909var tree = comp.SyntaxTrees.Single(); 26220var tree = comp.SyntaxTrees[0]; 26293var tree = comp.SyntaxTrees.First(); 26326var tree = comp.SyntaxTrees.First(); 26359var tree = comp.SyntaxTrees.First(); 26392var tree = comp.SyntaxTrees.First(); 27565var tree = comp.SyntaxTrees.Single();
CodeGen\ForeachTest.cs (1)
1685var tree = comp.SyntaxTrees[0];
CodeGen\IndexAndRangeTests.cs (2)
30var syntaxTree = comp.SyntaxTrees[0]; 3856var tree = comp.SyntaxTrees.First();
CodeGen\PatternTests.cs (3)
5001var tree = compilation.SyntaxTrees[0]; 5127var tree = compilation.SyntaxTrees[0]; 5276var tree = compilation.SyntaxTrees[0];
Emit\EntryPointTests.cs (1)
1597var model = compilation.GetSemanticModel(compilation.SyntaxTrees[0]);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (34)
CodeGen\IndexAndRangeTests.cs (18)
89var tree = comp.SyntaxTrees.Single(); 330var tree = comp.SyntaxTrees.Single(); 417var tree = comp.SyntaxTrees.Single(); 504var tree = comp.SyntaxTrees.Single(); 622var tree = comp.SyntaxTrees.Single(); 1571var tree = comp.SyntaxTrees.Single(); 1806var tree = comp.SyntaxTrees.Single(); 2261var tree = comp.SyntaxTrees.Single(); 2676var tree = comp.SyntaxTrees.First(); 2839var tree = comp.SyntaxTrees.First(); 3017var tree = comp.SyntaxTrees.Single(); 3131var tree = comp.SyntaxTrees.Single(); 3302var tree = comp.SyntaxTrees.First(); 3453var tree = comp.SyntaxTrees.First(); 3639var tree = comp.SyntaxTrees.First(); 3729var tree = comp.SyntaxTrees.First(); 3815var tree = comp.SyntaxTrees.First(); 3888var tree = comp.SyntaxTrees.First();
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
266var previousParseOptions = (CSharpParseOptions)compilation.SyntaxTrees.FirstOrDefault()?.Options;
Emit\NumericIntPtrTests.cs (15)
697var tree = comp.SyntaxTrees[0]; 1915var tree = comp.SyntaxTrees[0]; 1967var tree = comp.SyntaxTrees[0]; 6007var tree = comp.SyntaxTrees[0]; 6243var tree = comp.SyntaxTrees[0]; 6616var tree = comp.SyntaxTrees[0]; 6850var tree = comp.SyntaxTrees[0]; 8124var tree = comp.SyntaxTrees[0]; 10545var tree = comp.SyntaxTrees[0]; 10684var tree = comp.SyntaxTrees[0]; 11171var tree = comp.SyntaxTrees.Single(); 11194var tree = comp.SyntaxTrees.Single(); 11222var tree = comp.SyntaxTrees.Single(); 11247var tree = comp.SyntaxTrees.Single(); 11292var tree = comp.SyntaxTrees.Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1136)
Attributes\AttributeTests.cs (12)
705var tree = comp.SyntaxTrees[0]; 746var tree = comp.SyntaxTrees[0]; 810var tree = comp.SyntaxTrees[0]; 852var tree = comp.SyntaxTrees[0]; 893var tree = comp.SyntaxTrees[0]; 932var tree = comp.SyntaxTrees[0]; 1374source.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, source.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true); 5715var model = cm.GetSemanticModel(cm.SyntaxTrees[0]); 5718var m = (ExpressionSyntax)cm.SyntaxTrees[0].GetCompilationUnitRoot().FindToken(index).Parent.Parent; 7534var tree = compilation.SyntaxTrees.Single(); 7575var tree = compilation.SyntaxTrees.Single(); 11634var tree = comp.SyntaxTrees[0];
Attributes\AttributeTests_RefReadOnly.cs (4)
1376var tree = compilation.SyntaxTrees.Single(); 1418var tree = compilation.SyntaxTrees.Single(); 1447var tree = compilation.SyntaxTrees.Single(); 1474var tree = compilation.SyntaxTrees.Single();
Attributes\AttributeTests_WellKnownAttributes.cs (6)
9547var tree = comp.SyntaxTrees.Single(); 9596var tree = comp.SyntaxTrees.Single(); 9652var tree = comp2.SyntaxTrees.Single(); 11396var tree = comp.SyntaxTrees[0]; 11421var tree = comp.SyntaxTrees[0]; 11452var tree = comp.SyntaxTrees[0];
Diagnostics\DiagnosticAnalyzerTests.cs (13)
1012var treeInAnotherCompilation = anotherCompilation.SyntaxTrees.Single(); 1102var treeInAnotherCompilation = compilation.SyntaxTrees.Single(); 1591AddExpectedNonLocalDiagnostic(builder, GeneratedCodeAnalyzer.Summary, "PartialType(IsGeneratedCode:False)", $"{compilation.SyntaxTrees[0].FilePath}(IsGeneratedCode:False)"); 3345var tree1 = compilation.SyntaxTrees[0]; 3681var tree1 = compilation.SyntaxTrees[0]; 3748var tree = compilation.SyntaxTrees[0]; 3810var tree = compilation.SyntaxTrees[0]; 4150var tree = compilation.SyntaxTrees[0]; 4183var tree1 = compilation.SyntaxTrees[0]; 4192var tree2 = compilation.SyntaxTrees[1]; 4193var tree3 = compilation.SyntaxTrees[2]; 4255var tree = compilation.SyntaxTrees[0]; 4309var tree = compilation.SyntaxTrees[0];
Diagnostics\DiagnosticSuppressorTests.cs (1)
716var tree = compilation.SyntaxTrees[0];
Diagnostics\GetDiagnosticsTests.cs (15)
44var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 79var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 94var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 560ImmutableDictionary<object, AnalyzerConfigOptions>.Empty.Add(compilation.SyntaxTrees.Single(), analyzerConfigOptions), 670var tree = compilation.SyntaxTrees.First(); 723var tree = compilation.SyntaxTrees.First(); 741var tree = compilation.SyntaxTrees.First(); 778var syntaxTree = compilation.SyntaxTrees[0]; 835var syntaxTree = compilation.SyntaxTrees[0]; 1057var syntaxTree = compilation.SyntaxTrees[0]; 1121var tree1 = compilation.SyntaxTrees[0]; 1122var tree2 = compilation.SyntaxTrees[1]; 1514var tree1 = compilation.SyntaxTrees[0]; 1515var tree2 = compilation.SyntaxTrees[1]; 1696var tree = compilation.SyntaxTrees[0];
FieldKeywordTests.cs (6)
1273var tree = comp.SyntaxTrees.Single(); 1331var tree = comp.SyntaxTrees.Single(); 9449var actualValues = getInitializerValues(comp, comp.SyntaxTrees[reverseOrder ? 1 : 0]); 9460actualValues = getInitializerValues(comp, comp.SyntaxTrees[reverseOrder ? 0 : 1]); 10488var tree = comp.SyntaxTrees.Single(); 10522var tree = comp.SyntaxTrees.Single();
FirstClassSpanTests.cs (3)
2820var tree = comp.SyntaxTrees.Single(); 2853var tree = comp.SyntaxTrees.Single(); 4998var tree = comp.SyntaxTrees.Single();
FlowAnalysis\FlowDiagnosticTests.cs (1)
868comp.SyntaxTrees[0].GetDiagnostics().Verify(
FlowAnalysis\FlowTestBase.cs (4)
120var tree = comp.SyntaxTrees[0]; 141var tree = comp.SyntaxTrees[0]; 173var tree = comp.SyntaxTrees[0]; 194var tree = comp.SyntaxTrees[0];
FlowAnalysis\FlowTests.cs (1)
5839var tree = compilation.SyntaxTrees[0];
FlowAnalysis\RegionAnalysisTests.cs (16)
3101var semanticModel = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 3102var statement = compilation.SyntaxTrees[0].GetCompilationUnitRoot().DescendantNodesAndSelf().OfType<StatementSyntax>().First(); 4425var tree = compilation.SyntaxTrees.First(); 4523var tree = compilation.SyntaxTrees[0]; 5532var tree = comp.SyntaxTrees.Single(); 5576var tree = comp.SyntaxTrees.Single(); 6214var tree = comp.SyntaxTrees.Single(); 6312var tree = compilation.SyntaxTrees[0]; 6351var tree = compilation.SyntaxTrees[0]; 6378var tree = compilation.SyntaxTrees[0]; 6416var tree = compilation.SyntaxTrees[0]; 6444var tree = compilation.SyntaxTrees[0]; 6479var tree = compilation.SyntaxTrees[0]; 7905var tree = compilation.SyntaxTrees[0]; 8097var tree = compilation.SyntaxTrees[0]; 8125var tree = compilation.SyntaxTrees[0];
OverloadResolutionPriorityTests.cs (8)
442var tree = comp.SyntaxTrees[0]; 698var tree = comp3.SyntaxTrees[0]; 758var tree = comp3.SyntaxTrees[0]; 806var tree = comp3.SyntaxTrees[0]; 977var tree = comp.SyntaxTrees[0]; 2219var tree = comp.SyntaxTrees[0]; 2317var tree = comp.SyntaxTrees[0]; 2489var tree = comp.SyntaxTrees[0];
RefReadonlyParameterTests.cs (3)
1523var tree = comp.SyntaxTrees[0]; 7100var tree = comp.SyntaxTrees.Single(); 7128var tree = comp.SyntaxTrees.Single();
RefStructInterfacesTests.cs (65)
6627var tree = comp.SyntaxTrees.Single(); 6764var tree = comp.SyntaxTrees.Single(); 6880var tree = comp.SyntaxTrees.Single(); 7012var tree = comp.SyntaxTrees.Single(); 7141var tree = comp.SyntaxTrees.Single(); 7471var tree = comp.SyntaxTrees.Single(); 7661var tree = comp.SyntaxTrees.Single(); 7880var tree = comp.SyntaxTrees.Single(); 8074var tree = comp.SyntaxTrees.Single(); 8267var tree = comp.SyntaxTrees.Single(); 8440var tree = comp.SyntaxTrees.Single(); 8546var tree = comp.SyntaxTrees.Single(); 8930var tree = comp.SyntaxTrees.Single(); 9134var tree = comp.SyntaxTrees.Single(); 9330var tree = comp.SyntaxTrees.Single(); 9498var tree = comp.SyntaxTrees.Single(); 9713var tree = comp.SyntaxTrees.Single(); 9934var tree = comp.SyntaxTrees.Single(); 10149var tree = comp.SyntaxTrees.Single(); 10346var tree = comp.SyntaxTrees.Single(); 10441var tree = comp.SyntaxTrees.Single(); 10541var tree = comp.SyntaxTrees.Single(); 10738var tree = comp.SyntaxTrees.Single(); 10978var tree = comp.SyntaxTrees.Single(); 11197var tree = comp.SyntaxTrees.Single(); 11421var tree = comp.SyntaxTrees.Single(); 11604var tree = comp.SyntaxTrees.Single(); 11699var tree = comp.SyntaxTrees.Single(); 12147var tree = comp1.SyntaxTrees.Single(); 12415var tree = comp1.SyntaxTrees.Single(); 12660var tree = comp1.SyntaxTrees.Single(); 12923var tree = comp1.SyntaxTrees.Single(); 13190var tree = comp1.SyntaxTrees.Single(); 13452var tree = comp1.SyntaxTrees.Single(); 14150var tree = comp.SyntaxTrees.Single(); 14491var tree = comp.SyntaxTrees.Single(); 14853var tree = comp.SyntaxTrees.Single(); 15204var tree = comp.SyntaxTrees.Single(); 15552var tree = comp.SyntaxTrees.Single(); 15731var tree = comp.SyntaxTrees.Single(); 15986var tree = comp.SyntaxTrees.Single(); 16757var tree = comp.SyntaxTrees.Single(); 16822var tree = comp.SyntaxTrees.Single(); 16887var tree = comp.SyntaxTrees.Single(); 16971var tree = comp.SyntaxTrees.Single(); 17059var tree = comp.SyntaxTrees.Single(); 17152var tree = comp.SyntaxTrees.Single(); 17249var tree = comp.SyntaxTrees.Single(); 17333var tree = comp.SyntaxTrees.Single(); 17654var tree = comp.SyntaxTrees.Single(); 17851var tree = comp.SyntaxTrees.Single(); 18074var tree = comp.SyntaxTrees.Single(); 18274var tree = comp.SyntaxTrees.Single(); 18475var tree = comp.SyntaxTrees.Single(); 18651var tree = comp.SyntaxTrees.Single(); 18759var tree = comp.SyntaxTrees.Single(); 19127var tree = comp.SyntaxTrees.Single(); 19298var tree = comp.SyntaxTrees.Single(); 19471var tree = comp.SyntaxTrees.Single(); 19623var tree = comp.SyntaxTrees.Single(); 19861var tree = comp.SyntaxTrees.Single(); 19965var tree = comp.SyntaxTrees.Single(); 21235var tree = comp2.SyntaxTrees.Single(); 21303var tree = comp.SyntaxTrees.Single(); 21705var tree = comp.SyntaxTrees.Single();
Semantics\CollectionExpressionTests.cs (58)
199var tree = comp.SyntaxTrees[0]; 234var tree = comp.SyntaxTrees[0]; 4769var tree = comp.SyntaxTrees.First(); 7533var tree = comp.SyntaxTrees[0]; 8256var tree = comp.SyntaxTrees[0]; 8327var tree = comp.SyntaxTrees[0]; 8411var tree = comp.SyntaxTrees[0]; 8496var tree = comp.SyntaxTrees[0]; 14232var tree = comp.SyntaxTrees.First(); 14308var tree = comp.SyntaxTrees.First(); 14381var tree = comp.SyntaxTrees.First(); 14443var tree = comp.SyntaxTrees.First(); 14567var tree = comp.SyntaxTrees.First(); 14650var tree = comp.SyntaxTrees.First(); 14739var tree = comp.SyntaxTrees.First(); 15078var tree = comp.SyntaxTrees[0]; 26012var tree = comp.SyntaxTrees[0]; 26138var tree = comp.SyntaxTrees[0]; 26252var tree = comp.SyntaxTrees[0]; 26310var tree = comp.SyntaxTrees[0]; 26381var tree = comp.SyntaxTrees[0]; 26463var tree = comp.SyntaxTrees[0]; 26529var tree = comp.SyntaxTrees[0]; 26590var tree = comp.SyntaxTrees[0]; 26660var tree = comp.SyntaxTrees[0]; 26835var tree = comp.SyntaxTrees[0]; 26900var tree = comp.SyntaxTrees[0]; 26956var tree = comp.SyntaxTrees[0]; 28618var tree = comp.SyntaxTrees.First(); 28662var tree = comp.SyntaxTrees.First(); 28708var tree = comp.SyntaxTrees.First(); 28752var tree = comp.SyntaxTrees.First(); 28795var tree = comp.SyntaxTrees.First(); 28838var tree = comp.SyntaxTrees.First(); 28877var tree = comp.SyntaxTrees.First(); 28910var tree = comp.SyntaxTrees.First(); 28944var tree = comp.SyntaxTrees.First(); 28997var tree = comp.SyntaxTrees.First(); 29063var tree = comp.SyntaxTrees.First(); 29124var tree = comp.SyntaxTrees.First(); 29200var tree = comp.SyntaxTrees.First(); 29243var tree = comp.SyntaxTrees.First(); 29290var tree = comp.SyntaxTrees.First(); 31479var tree = comp.SyntaxTrees.Single(); 31527var tree = comp.SyntaxTrees.Single(); 31585var tree = comp.SyntaxTrees.Single(); 31683var tree = comp.SyntaxTrees.Single(); 32297var tree = comp.SyntaxTrees.First(); 32333var tree = comp.SyntaxTrees.First(); 32365var tree = comp.SyntaxTrees.First(); 32393var tree = comp.SyntaxTrees.First(); 32435var tree = comp.SyntaxTrees.First(); 32480var tree = comp.SyntaxTrees.First(); 32544var tree = comp.SyntaxTrees.First(); 32640var tree = comp.SyntaxTrees.First(); 33035var tree = comp.SyntaxTrees.First(); 33463var tree = compilation.SyntaxTrees[0]; 33504var tree = compilation.SyntaxTrees[0];
Semantics\InlineArrayTests.cs (16)
2356var tree = comp.SyntaxTrees.First(); 2391var tree = comp.SyntaxTrees.First(); 2425var tree = comp.SyntaxTrees.First(); 2505var tree = comp.SyntaxTrees.First(); 6030var tree = comp.SyntaxTrees.First(); 6196var tree = comp.SyntaxTrees.First(); 8115var tree = comp.SyntaxTrees.First(); 8832var tree = comp.SyntaxTrees.First(); 9200var tree = comp.SyntaxTrees.First(); 10544var tree = comp.SyntaxTrees.First(); 11288var tree = comp.SyntaxTrees.First(); 15205var tree = comp.SyntaxTrees.First(); 16492var tree = comp.SyntaxTrees.First(); 18580var tree = comp.SyntaxTrees.First(); 18906var tree = comp.SyntaxTrees.First(); 19243var tree = comp.SyntaxTrees.First();
Semantics\OutVarTests.cs (461)
56var tree = compilation.SyntaxTrees.Single(); 100var tree = compilation.SyntaxTrees.Single(); 123tree = compilation.SyntaxTrees.Single(); 178Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 216var tree = compilation.SyntaxTrees.Single(); 269var tree = compilation.SyntaxTrees.Single(); 332var tree = compilation.SyntaxTrees.Single(); 386Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 423Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 461Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 499Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 537Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 575Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 622Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 659Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 697Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 737Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 776Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 816Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any()); 907var tree = compilation.SyntaxTrees.Single(); 1404var tree = compilation.SyntaxTrees.Single(); 1462var tree = compilation.SyntaxTrees.Single(); 1496var tree = compilation.SyntaxTrees.Single(); 1531var tree = compilation.SyntaxTrees.Single(); 1565var tree = compilation.SyntaxTrees.Single(); 1599var tree = compilation.SyntaxTrees.Single(); 1639var tree = compilation.SyntaxTrees.Single(); 1677var tree = compilation.SyntaxTrees.Single(); 1714var tree = compilation.SyntaxTrees.Single(); 1750var tree = compilation.SyntaxTrees.Single(); 1883var tree = compilation.SyntaxTrees.Single(); 2004var tree = compilation.SyntaxTrees.Single(); 2114var tree = compilation.SyntaxTrees.Single(); 2225var tree = compilation.SyntaxTrees.Single(); 2335var tree = compilation.SyntaxTrees.Single(); 2470var tree = compilation.SyntaxTrees.Single(); 2637var tree = compilation.SyntaxTrees.Single(); 2854var tree = compilation.SyntaxTrees.Single(); 2949var tree = compilation.SyntaxTrees.Single(); 3201var tree = compilation.SyntaxTrees.Single(); 3303var tree = compilation.SyntaxTrees.Single(); 3375var tree = compilation.SyntaxTrees.Single(); 3427var tree = compilation.SyntaxTrees.Single(); 3461var tree = compilation.SyntaxTrees.Single(); 3502var tree = compilation.SyntaxTrees.Single(); 3643var tree = compilation.SyntaxTrees.Single(); 3864var tree = compilation.SyntaxTrees.Single(); 3961var tree = compilation.SyntaxTrees.Single(); 3997var tree = compilation.SyntaxTrees.Single(); 4052var tree = compilation.SyntaxTrees.Single(); 4096var tree = compilation.SyntaxTrees.Single(); 4147var tree = compilation.SyntaxTrees.Single(); 4207var tree = compilation.SyntaxTrees.Single(); 4273var tree = compilation.SyntaxTrees.Single(); 4496var tree = compilation.SyntaxTrees.Single(); 4675var tree = compilation.SyntaxTrees.Single(); 4916var tree = compilation.SyntaxTrees.Single(); 5018var tree = compilation.SyntaxTrees.Single(); 5065var tree = compilation.SyntaxTrees.Single(); 5103var tree = compilation.SyntaxTrees.Single(); 5180var tree = compilation.SyntaxTrees.Single(); 5283var tree = compilation.SyntaxTrees.Single(); 5410var tree = compilation.SyntaxTrees.Single(); 5512var tree = compilation.SyntaxTrees.Single(); 5576var tree = compilation.SyntaxTrees.Single(); 5708var tree = compilation.SyntaxTrees.Single(); 5748var tree = compilation.SyntaxTrees.Single(); 5909var tree = compilation.SyntaxTrees.Single(); 6050var tree = compilation.SyntaxTrees.Single(); 6327var tree = compilation.SyntaxTrees.Single(); 6562var tree = compilation.SyntaxTrees.Single(); 6818var tree = compilation.SyntaxTrees.Single(); 7064var tree = compilation.SyntaxTrees.Single(); 7302var tree = compilation.SyntaxTrees.Single(); 7624var tree = compilation.SyntaxTrees.Single(); 7773var tree = compilation.SyntaxTrees.Single(); 7833var tree = compilation.SyntaxTrees.Single(); 7895var tree = compilation.SyntaxTrees.Single(); 7961var tree = compilation.SyntaxTrees.Single(); 8025var tree = compilation.SyntaxTrees.Single(); 8092var tree = compilation.SyntaxTrees.Single(); 8154var tree = compilation.SyntaxTrees.Single(); 8209var tree = compilation.SyntaxTrees.Single(); 8387var tree = compilation.SyntaxTrees.Single(); 8487var tree = compilation.SyntaxTrees.Single(); 8659var tree = compilation.SyntaxTrees.Single(); 8761var tree = compilation.SyntaxTrees.Single(); 8797var tree = compilation.SyntaxTrees.Single(); 8869var tree = compilation.SyntaxTrees.Single(); 8919var tree = compilation.SyntaxTrees.Single(); 9161var tree = compilation.SyntaxTrees.Single(); 9263var tree = compilation.SyntaxTrees.Single(); 9334var tree = compilation.SyntaxTrees.Single(); 9427var tree = compilation.SyntaxTrees.Single(); 9507var tree = compilation.SyntaxTrees.Single(); 9583var tree = compilation.SyntaxTrees.Single(); 9636var tree = compilation.SyntaxTrees.Single(); 9693var tree = compilation.SyntaxTrees.Single(); 9758var tree = compilation.SyntaxTrees.Single(); 9815var tree = compilation.SyntaxTrees.Single(); 9890var tree = compilation.SyntaxTrees.Single(); 9985var tree = compilation.SyntaxTrees.Single(); 10067var tree = compilation.SyntaxTrees.Single(); 10148var tree = compilation.SyntaxTrees.Single(); 10204var tree = compilation.SyntaxTrees.Single(); 10260var tree = compilation.SyntaxTrees.Single(); 10327var tree = compilation.SyntaxTrees.Single(); 10386var tree = compilation.SyntaxTrees.Single(); 10458var tree = compilation.SyntaxTrees.Single(); 10542var tree = compilation.SyntaxTrees.Single(); 10720var tree = compilation.SyntaxTrees.Single(); 10817var tree = compilation.SyntaxTrees.Single(); 10853var tree = compilation.SyntaxTrees.Single(); 10908var tree = compilation.SyntaxTrees.Single(); 10958var tree = compilation.SyntaxTrees.Single(); 11046var tree = compilation.SyntaxTrees.Single(); 11183var tree = compilation.SyntaxTrees.Single(); 11265var tree = compilation.SyntaxTrees.Single(); 11334var tree = compilation.SyntaxTrees.Single(); 11427var tree = compilation.SyntaxTrees.Single(); 11467var tree = compilation.SyntaxTrees.Single(); 11715var tree = compilation.SyntaxTrees.Single(); 11972var tree = compilation.SyntaxTrees.Single(); 12124var tree = compilation.SyntaxTrees.Single(); 12274var tree = compilation.SyntaxTrees.Single(); 12351var tree = compilation.SyntaxTrees.Single(); 12420var tree = compilation.SyntaxTrees.Single(); 12496var tree = compilation.SyntaxTrees.Single(); 12658var tree = compilation.SyntaxTrees.Single(); 12778var tree = compilation.SyntaxTrees.Single(); 12865var tree = compilation.SyntaxTrees.Single(); 12920var tree = compilation.SyntaxTrees.Single(); 12962var tree = compilation.SyntaxTrees.Single(); 13017var tree = compilation.SyntaxTrees.Single(); 13201var tree = compilation.SyntaxTrees.Single(); 13295var tree = compilation.SyntaxTrees.Single(); 13333var tree = compilation.SyntaxTrees.Single(); 13385var tree = compilation.SyntaxTrees.Single(); 13439var tree = compilation.SyntaxTrees.Single(); 13605var tree = compilation.SyntaxTrees.Single(); 13696var tree = compilation.SyntaxTrees.Single(); 13732var tree = compilation.SyntaxTrees.Single(); 13796var tree = compilation.SyntaxTrees.Single(); 13846var tree = compilation.SyntaxTrees.Single(); 14127var tree = compilation.SyntaxTrees.Single(); 14256var tree = compilation.SyntaxTrees.Single(); 14303var tree = compilation.SyntaxTrees.Single(); 14352var tree = compilation.SyntaxTrees.Single(); 14394var tree = compilation.SyntaxTrees.Single(); 14436var tree = compilation.SyntaxTrees.Single(); 14481var tree = compilation.SyntaxTrees.Single(); 14523var tree = compilation.SyntaxTrees.Single(); 14568var tree = compilation.SyntaxTrees.Single(); 14617var tree = compilation.SyntaxTrees.Single(); 14671var tree = compilation.SyntaxTrees.Single(); 14730var tree = compilation.SyntaxTrees.Single(); 14777var tree = compilation.SyntaxTrees.Single(); 14827var tree = compilation.SyntaxTrees.Single(); 14942var tree = compilation.SyntaxTrees.Single(); 15122var tree = compilation.SyntaxTrees.Single(); 15215var tree = compilation.SyntaxTrees.Single(); 15253var tree = compilation.SyntaxTrees.Single(); 15311var tree = compilation.SyntaxTrees.Single(); 15369var tree = compilation.SyntaxTrees.Single(); 15530var tree = compilation.SyntaxTrees.Single(); 15743var tree = compilation.SyntaxTrees.Single(); 15956var tree = compilation.SyntaxTrees.Single(); 16071var tree = compilation.SyntaxTrees.Single(); 16158var tree = compilation.SyntaxTrees.Single(); 16399var tree = compilation.SyntaxTrees.Single(); 16495var tree = compilation.SyntaxTrees.Single(); 16531var tree = compilation.SyntaxTrees.Single(); 16588var tree = compilation.SyntaxTrees.Single(); 16642var tree = compilation.SyntaxTrees.Single(); 16702var tree = compilation.SyntaxTrees.Single(); 16762var tree = compilation.SyntaxTrees.Single(); 16825var tree = compilation.SyntaxTrees.Single(); 16959var tree = compilation.SyntaxTrees.Single(); 17051var tree = compilation.SyntaxTrees.Single(); 17090var tree = compilation.SyntaxTrees.Single(); 17148var tree = compilation.SyntaxTrees.Single(); 17202var tree = compilation.SyntaxTrees.Single(); 17386var tree = compilation.SyntaxTrees.Single(); 17488var tree = compilation.SyntaxTrees.Single(); 17526var tree = compilation.SyntaxTrees.Single(); 17589var tree = compilation.SyntaxTrees.Single(); 17642var tree = compilation.SyntaxTrees.Single(); 17677var tree = compilation.SyntaxTrees.Single(); 17710var tree = compilation.SyntaxTrees.Single(); 17743var tree = compilation.SyntaxTrees.Single(); 17782var tree = compilation.SyntaxTrees.Single(); 17829var tree = compilation.SyntaxTrees.Single(); 17859var tree = compilation.SyntaxTrees.Single(); 17890var tree = compilation.SyntaxTrees.Single(); 17919var tree = compilation.SyntaxTrees.Single(); 17951var tree = compilation.SyntaxTrees.Single(); 17993var tree = compilation.SyntaxTrees.Single(); 18030var tree = compilation.SyntaxTrees.Single(); 18067var tree = compilation.SyntaxTrees.Single(); 18102var tree = compilation.SyntaxTrees.Single(); 18141var tree = compilation.SyntaxTrees.Single(); 18182var tree = compilation.SyntaxTrees.Single(); 18225var tree = compilation.SyntaxTrees.Single(); 18268var tree = compilation.SyntaxTrees.Single(); 18307var tree = compilation.SyntaxTrees.Single(); 18348var tree = compilation.SyntaxTrees.Single(); 18383var tree = compilation.SyntaxTrees.Single(); 18429var tree = compilation.SyntaxTrees.Single(); 18493var tree = compilation.SyntaxTrees.Single(); 18542var tree = compilation.SyntaxTrees.Single(); 18587var tree = compilation.SyntaxTrees.Single(); 18639var tree = compilation.SyntaxTrees.Single(); 18683var tree = compilation.SyntaxTrees.Single(); 18725var tree = compilation.SyntaxTrees.Single(); 18779var tree = compilation.SyntaxTrees.Single(); 18872var tree = compilation.SyntaxTrees.Single(); 18916var tree = compilation.SyntaxTrees.Single(); 18958var tree = compilation.SyntaxTrees.Single(); 19011var tree = compilation.SyntaxTrees.Single(); 19056var tree = compilation.SyntaxTrees.Single(); 19099var tree = compilation.SyntaxTrees.Single(); 19153var tree = compilation.SyntaxTrees.Single(); 19202var tree = compilation.SyntaxTrees.Single(); 19249var tree = compilation.SyntaxTrees.Single(); 19287var tree = compilation.SyntaxTrees.Single(); 19328var tree = compilation.SyntaxTrees.Single(); 19362var tree = compilation.SyntaxTrees.Single(); 19423var tree = compilation.SyntaxTrees.Single(); 19468var tree = compilation.SyntaxTrees.Single(); 19506var tree = compilation.SyntaxTrees.Single(); 19545var tree = compilation.SyntaxTrees.Single(); 19589var tree = compilation.SyntaxTrees.Single(); 19658var tree = compilation.SyntaxTrees.Single(); 19686var tree = compilation.SyntaxTrees.Single(); 19729var tree = compilation.SyntaxTrees.Single(); 19767var tree = compilation.SyntaxTrees.Single(); 19840var tree = compilation.SyntaxTrees.Single(); 19873var tree = compilation.SyntaxTrees.Single(); 19906var tree = compilation.SyntaxTrees.Single(); 19941var tree = compilation.SyntaxTrees.Single(); 19976var tree = compilation.SyntaxTrees.Single(); 20014var tree = compilation.SyntaxTrees.Single(); 20046var tree = compilation.SyntaxTrees.Single(); 20220var tree = compilation.SyntaxTrees.Single(); 20248var tree = compilation.SyntaxTrees.Single(); 20356var tree = compilation.SyntaxTrees[0]; 20613var tree = compilation.SyntaxTrees.Single(); 20656var tree = compilation.SyntaxTrees.Single(); 20658Assert.Equal(1, compilation.SyntaxTrees[0].GetRoot().DescendantNodesAndSelf().OfType<DeclarationExpressionSyntax>().Count()); 20773var tree = compilation.SyntaxTrees.Single(); 20826var tree = compilation.SyntaxTrees.Single(); 20917var tree = compilation.SyntaxTrees.Single(); 21036var tree = compilation.SyntaxTrees.Single(); 21131var tree = compilation.SyntaxTrees.Single(); 21235var tree = compilation.SyntaxTrees.Single(); 21292var tree = compilation.SyntaxTrees.Single(); 21360var tree = compilation.SyntaxTrees.Single(); 21410var tree = compilation.SyntaxTrees.Single(); 21644var tree = compilation.SyntaxTrees.Single(); 21817var tree = compilation.SyntaxTrees.Single(); 22011var tree = compilation.SyntaxTrees.Single(); 22138var tree = compilation.SyntaxTrees.Single(); 22236var tree = compilation.SyntaxTrees.Single(); 22424var tree = compilation.SyntaxTrees.Single(); 22579var tree = compilation.SyntaxTrees.Single(); 22658var tree = compilation.SyntaxTrees.Single(); 22781var tree = compilation.SyntaxTrees.Single(); 22863var tree = compilation.SyntaxTrees.Single(); 22947var tree = compilation.SyntaxTrees.Single(); 23014var tree = compilation.SyntaxTrees.Single(); 23053var tree = compilation.SyntaxTrees.Single(); 23209var tree = compilation.SyntaxTrees.Single(); 23303var tree = compilation.SyntaxTrees.Single(); 23393var tree = compilation.SyntaxTrees.Single(); 23441var tree = compilation.SyntaxTrees.Single(); 23474var tree = compilation.SyntaxTrees.Single(); 23525var tree = compilation.SyntaxTrees.Single(); 23669var tree = compilation.SyntaxTrees.Single(); 23767var tree = compilation.SyntaxTrees.Single(); 23865var tree = compilation.SyntaxTrees.Single(); 24007var tree = compilation.SyntaxTrees.Single(); 24111var tree = compilation.SyntaxTrees.Single(); 24206var tree = compilation.SyntaxTrees.Single(); 24294var tree = compilation.SyntaxTrees.Single(); 24400var tree = compilation.SyntaxTrees.Single(); 24493var tree = compilation.SyntaxTrees.Single(); 24524var tree = compilation.SyntaxTrees.Single(); 24726var tree = compilation.SyntaxTrees.Single(); 24985var tree = compilation.SyntaxTrees.Single(); 25176var tree = compilation.SyntaxTrees.Single(); 25289var tree = compilation.SyntaxTrees.Single(); 25388var tree = compilation.SyntaxTrees.Single(); 25567var tree = compilation.SyntaxTrees.Single(); 25611var tree = compilation.SyntaxTrees.Single(); 25692var tree = compilation.SyntaxTrees.Single(); 25736var tree = compilation.SyntaxTrees.Single(); 25791var tree = compilation.SyntaxTrees.Single(); 25872var tree = compilation.SyntaxTrees.Single(); 25932var tree = compilation.SyntaxTrees.Single(); 26029var tree = compilation.SyntaxTrees.Single(); 26086var tree = compilation.SyntaxTrees.Single(); 26153var tree = compilation.SyntaxTrees.Single(); 26201var tree = compilation.SyntaxTrees.Single(); 26282var tree = compilation.SyntaxTrees.Single(); 26329var tree = compilation.SyntaxTrees.Single(); 26424var tree = compilation.SyntaxTrees.Single(); 26472var tree = compilation.SyntaxTrees.Single(); 26556var tree = compilation.SyntaxTrees.Single(); 26616var tree = compilation.SyntaxTrees.Single(); 26700var tree = compilation.SyntaxTrees.Single(); 26760var tree = compilation.SyntaxTrees.Single(); 26821var tree = compilation.SyntaxTrees.Single(); 26891var tree = compilation.SyntaxTrees.Single(); 26935var tree = compilation.SyntaxTrees.Single(); 27021var tree = compilation.SyntaxTrees.Single(); 27066var tree = compilation.SyntaxTrees.Single(); 27158var tree = compilation.SyntaxTrees.Single(); 27212var tree = compilation.SyntaxTrees.Single(); 27311var tree = compilation.SyntaxTrees.Single(); 27365var tree = compilation.SyntaxTrees.Single(); 27434var tree = compilation.SyntaxTrees.Single(); 27511var tree = compilation.SyntaxTrees.Single(); 27584var tree = compilation.SyntaxTrees.Single(); 27688var tree = compilation.SyntaxTrees.Single(); 27761var tree = compilation.SyntaxTrees.Single(); 27824var tree = compilation.SyntaxTrees.Single(); 27901var tree = compilation.SyntaxTrees.Single(); 27974var tree = compilation.SyntaxTrees.Single(); 28079var tree = compilation.SyntaxTrees.Single(); 28152var tree = compilation.SyntaxTrees.Single(); 28225var tree = compilation.SyntaxTrees.Single(); 28300var tree = compilation.SyntaxTrees.Single(); 28354var tree = compilation.SyntaxTrees.Single(); 28451var tree = compilation.SyntaxTrees.Single(); 28505var tree = compilation.SyntaxTrees.Single(); 28572var tree = compilation.SyntaxTrees.Single(); 28620var tree = compilation.SyntaxTrees.Single(); 28704var tree = compilation.SyntaxTrees.Single(); 28765var tree = compilation.SyntaxTrees.Single(); 28872var tree = compilation.SyntaxTrees.Single(); 28928var tree = compilation.SyntaxTrees.Single(); 29023var tree = compilation.SyntaxTrees.Single(); 29079var tree = compilation.SyntaxTrees.Single(); 29144var tree = compilation.SyntaxTrees.Single(); 29230var tree = compilation.SyntaxTrees.Single(); 29297var tree = compilation.SyntaxTrees.Single(); 29406var tree = compilation.SyntaxTrees.Single(); 29473var tree = compilation.SyntaxTrees.Single(); 29546var tree = compilation.SyntaxTrees.Single(); 29595var tree = compilation.SyntaxTrees.Single(); 29693var tree = compilation.SyntaxTrees.Single(); 29769var tree = compilation.SyntaxTrees.Single(); 29894var tree = compilation.SyntaxTrees.Single(); 29970var tree = compilation.SyntaxTrees.Single(); 30048var tree = compilation.SyntaxTrees.Single(); 30134var tree = compilation.SyntaxTrees.Single(); 30195var tree = compilation.SyntaxTrees.Single(); 30306var tree = compilation.SyntaxTrees.Single(); 30367var tree = compilation.SyntaxTrees.Single(); 30431var tree = compilation.SyntaxTrees.Single(); 30486var tree = compilation.SyntaxTrees.Single(); 30530var tree = compilation.SyntaxTrees.Single(); 30574var tree = compilation.SyntaxTrees.Single(); 30615var tree = compilation.SyntaxTrees.Single(); 30695var tree = compilation.SyntaxTrees.Single(); 30764var tree = compilation.SyntaxTrees.Single(); 30866var tree = compilation.SyntaxTrees.Single(); 30935var tree = compilation.SyntaxTrees.Single(); 30999var tree = compilation.SyntaxTrees.Single(); 31054var tree = compilation.SyntaxTrees.Single(); 31098var tree = compilation.SyntaxTrees.Single(); 31142var tree = compilation.SyntaxTrees.Single(); 31226var tree = compilation.SyntaxTrees.Single(); 31285var tree = compilation.SyntaxTrees.Single(); 31399var tree = compilation.SyntaxTrees.Single(); 31458var tree = compilation.SyntaxTrees.Single(); 31527var tree = compilation.SyntaxTrees.Single(); 31582var tree = compilation.SyntaxTrees.Single(); 31626var tree = compilation.SyntaxTrees.Single(); 31670var tree = compilation.SyntaxTrees.Single(); 31711var tree = compilation.SyntaxTrees.Single(); 31765var tree = compilation.SyntaxTrees.Single(); 31799var tree = compilation.SyntaxTrees.Single(); 31852var tree = compilation.SyntaxTrees.Single(); 31892var tree = compilation.SyntaxTrees.Single(); 31942var tree = compilation.SyntaxTrees.Single(); 31976var tree = compilation.SyntaxTrees.Single(); 32032var tree = compilation.SyntaxTrees.Single(); 32072var tree = compilation.SyntaxTrees.Single(); 32117var tree = compilation.SyntaxTrees.Single(); 32161var tree = compilation.SyntaxTrees.Single(); 32195var tree = compilation.SyntaxTrees.Single(); 32229var tree = compilation.SyntaxTrees.Single(); 32269var tree = compilation.SyntaxTrees.Single(); 32309var tree = compilation.SyntaxTrees.Single(); 32327tree = compilation.SyntaxTrees.Single(); 32364var tree = compilation.SyntaxTrees.Single(); 32380tree = compilation.SyntaxTrees.Single(); 32433var tree = compilation.SyntaxTrees.Single(); 32480var tree = compilation.SyntaxTrees.Single(); 32546var tree = compilation.SyntaxTrees.Single(); 32574var tree = compilation.SyntaxTrees.Single(); 32602var tree = compilation.SyntaxTrees.Single(); 32628var tree = compilation.SyntaxTrees.Single(); 32666var tree = compilation.SyntaxTrees.Single(); 32702var tree = compilation.SyntaxTrees.Single(); 32946var tree = compilation.SyntaxTrees.Single(); 33060var tree = comp.SyntaxTrees.Single(); 33129var tree = comp.SyntaxTrees.Single(); 33174var tree = comp.SyntaxTrees.Single(); 33238var tree = comp.SyntaxTrees.Single(); 33504var tree = comp.SyntaxTrees[0]; 33545var tree = comp.SyntaxTrees[0]; 33608var tree = compilation.SyntaxTrees[0]; 33691var tree = compilation.SyntaxTrees[0]; 33779var tree = compilation.SyntaxTrees.Single(); 33877var tree = compilation.SyntaxTrees.Single(); 33976var tree = compilation.SyntaxTrees.Single(); 34074var tree = compilation.SyntaxTrees.Single(); 34147var tree = compilation.SyntaxTrees.Single(); 34203var tree = compilation.SyntaxTrees.Single(); 34269var tree = compilation.SyntaxTrees.Single(); 34396var tree = compilation.SyntaxTrees.Single(); 34487var tree = compilation.SyntaxTrees.Single(); 34594var tree = compilation.SyntaxTrees.Single(); 34715var tree = compilation.SyntaxTrees.Single(); 34755var tree = compilation.SyntaxTrees[0]; 34831var tree = compilation.SyntaxTrees[0]; 34886var tree = compilation.SyntaxTrees[0]; 34940var tree = compilation.SyntaxTrees[0]; 34998var tree = compilation.SyntaxTrees[0]; 35048var tree = compilation.SyntaxTrees[0]; 35102var tree = compilation.SyntaxTrees[0]; 35142var tree = compilation.SyntaxTrees[0]; 35176var tree = compilation.SyntaxTrees.First(); 35215var tree = compilation.SyntaxTrees.First(); 35259var tree = compilation.SyntaxTrees.First(); 35290var tree = compilation.SyntaxTrees.First(); 35329var tree = compilation.SyntaxTrees.First(); 35361var tree = compilation.SyntaxTrees.First(); 35397var tree = compilation.SyntaxTrees.First(); 35436var tree = compilation.SyntaxTrees.First(); 35466var tree = compilation.SyntaxTrees.First(); 35503var tree = compilation.SyntaxTrees.First(); 35555var tree = compilation.SyntaxTrees.Single(); 35660var tree = comp.SyntaxTrees.Single(); 35695var tree = comp.SyntaxTrees.Single(); 35774var tree = compilation.SyntaxTrees.Single(); 35816var tree = compilation.SyntaxTrees.Single(); 35845var tree = compilation.SyntaxTrees.Single(); 35891var tree = compilation.SyntaxTrees.Single(); 35979var tree = compilation.SyntaxTrees.Single(); 36119var tree = compilation.SyntaxTrees.Single(); 36227var tree = compilation.SyntaxTrees.Single(); 36320var tree = compilation.SyntaxTrees.Single(); 36359var tree = comp.SyntaxTrees.Single(); 36405var tree = comp.SyntaxTrees.Single(); 36445var tree = comp.SyntaxTrees.Single(); 36487var tree = comp.SyntaxTrees.Single(); 36522var tree = comp.SyntaxTrees.Single(); 36560var tree = comp.SyntaxTrees.Single();
Semantics\ParamsCollectionTests.cs (19)
118var tree = comp.SyntaxTrees.Single(); 217var tree = comp.SyntaxTrees.Single(); 333var tree = comp.SyntaxTrees.Single(); 516var tree = comp.SyntaxTrees.Single(); 661var tree = comp.SyntaxTrees.Single(); 1405var tree = comp.SyntaxTrees.Single(); 2529var tree = comp.SyntaxTrees.Single(); 2665var tree = comp.SyntaxTrees.Single(); 2754var tree = comp.SyntaxTrees.Single(); 2788tree = comp.SyntaxTrees.Single(); 2952var tree = comp.SyntaxTrees.Single(); 2983tree = comp.SyntaxTrees.Single(); 3595var tree = comp.SyntaxTrees.Single(); 3885var tree = comp.SyntaxTrees.Single(); 4337var tree = comp2.SyntaxTrees.Single(); 5891var tree = comp.SyntaxTrees.Single(); 5973var tree = comp.SyntaxTrees.Single(); 9070var tree = comp.SyntaxTrees.Single(); 12532var tree = comp.SyntaxTrees.Single();
Semantics\PatternMatchingTests.cs (53)
692var tree = compilation.SyntaxTrees.Single(); 736var tree = compilation.SyntaxTrees.Single(); 776var tree = compilation.SyntaxTrees.Single(); 842var tree = compilation.SyntaxTrees.Single(); 889var tree = compilation.SyntaxTrees.Single(); 1151var tree = compilation.SyntaxTrees.Single(); 1220var tree = compilation.SyntaxTrees.Single(); 1270var tree = compilation.SyntaxTrees.Single(); 1314var tree = compilation.SyntaxTrees.Single(); 1429var tree = compilation.SyntaxTrees.Single(); 1479var tree = compilation.SyntaxTrees.Single(); 1536var tree = compilation.SyntaxTrees.Single(); 1588var tree = compilation.SyntaxTrees.Single(); 1653var tree = compilation.SyntaxTrees.Single(); 1730var tree = compilation.SyntaxTrees.Single(); 1783var tree = compilation.SyntaxTrees.Single(); 1827var tree = compilation.SyntaxTrees.Single(); 1881var tree = compilation.SyntaxTrees.Single(); 1935var tree = compilation.SyntaxTrees.Single(); 1992var tree = compilation.SyntaxTrees.Single(); 2030var tree = compilation.SyntaxTrees.Single(); 2076var tree = compilation.SyntaxTrees.Single(); 2130var tree = compilation.SyntaxTrees.Single(); 2178var tree = compilation.SyntaxTrees.Single(); 2234var tree = compilation.SyntaxTrees.Single(); 2294var tree = compilation.SyntaxTrees.Single(); 2352var tree = compilation.SyntaxTrees.Single(); 2413var tree = compilation.SyntaxTrees.Single(); 2458var tree = compilation.SyntaxTrees.Single(); 2497var tree = compilation.SyntaxTrees.Single(); 2541var tree = compilation.SyntaxTrees.Single(); 2613var tree = compilation.SyntaxTrees.Single(); 2661var tree = compilation.SyntaxTrees.Single(); 2699var tree = compilation.SyntaxTrees.Single(); 2744var tree = compilation.SyntaxTrees.Single(); 2788var tree = compilation.SyntaxTrees.Single(); 2840var tree = compilation.SyntaxTrees.Single(); 2882var tree = compilation.SyntaxTrees.Single(); 3037var tree = compilation.SyntaxTrees.Single(); 3084var tree = compilation.SyntaxTrees.Single(); 3263var tree = compilation.SyntaxTrees[0]; 3441var tree = compilation.SyntaxTrees[0]; 3477var tree = compilation.SyntaxTrees.Single(); 3576var tree = compilation.SyntaxTrees.Single(); 4247var tree = compilation.SyntaxTrees.Single(); 4288var tree = compilation.SyntaxTrees.Single(); 4789var tree = compilation.SyntaxTrees.Single(); 4827var tree = compilation.SyntaxTrees.Single(); 6572var tree = compilation.SyntaxTrees.Single(); 11363var tree = comp.SyntaxTrees.Single(); 11387var tree = comp.SyntaxTrees.Single(); 11408var tree = comp.SyntaxTrees.Single(); 11465var tree = comp.SyntaxTrees.Single();
Semantics\PatternMatchingTests_Global.cs (123)
76var tree = compilation.SyntaxTrees.Single(); 120var tree = compilation.SyntaxTrees.Single(); 198var tree = compilation.SyntaxTrees.Single(); 242var tree = compilation.SyntaxTrees.Single(); 292var tree = compilation.SyntaxTrees.Single(); 368var tree = compilation.SyntaxTrees.Single(); 428var tree = compilation.SyntaxTrees.Single(); 520var tree = compilation.SyntaxTrees.Single(); 577var tree = compilation.SyntaxTrees.Single(); 639var tree = compilation.SyntaxTrees.Single(); 681var tree = compilation.SyntaxTrees.Single(); 757var tree = compilation.SyntaxTrees.Single(); 804var tree = compilation.SyntaxTrees.Single(); 894var tree = compilation.SyntaxTrees.Single(); 942var tree = compilation.SyntaxTrees.Single(); 1021var tree = compilation.SyntaxTrees.Single(); 1074var tree = compilation.SyntaxTrees.Single(); 1153var tree = compilation.SyntaxTrees.Single(); 1206var tree = compilation.SyntaxTrees.Single(); 1262var tree = compilation.SyntaxTrees.Single(); 1327var tree = compilation.SyntaxTrees.Single(); 1371var tree = compilation.SyntaxTrees.Single(); 1452var tree = compilation.SyntaxTrees.Single(); 1497var tree = compilation.SyntaxTrees.Single(); 1584var tree = compilation.SyntaxTrees.Single(); 1638var tree = compilation.SyntaxTrees.Single(); 1732var tree = compilation.SyntaxTrees.Single(); 1786var tree = compilation.SyntaxTrees.Single(); 1850var tree = compilation.SyntaxTrees.Single(); 1924var tree = compilation.SyntaxTrees.Single(); 1994var tree = compilation.SyntaxTrees.Single(); 2095var tree = compilation.SyntaxTrees.Single(); 2165var tree = compilation.SyntaxTrees.Single(); 2224var tree = compilation.SyntaxTrees.Single(); 2298var tree = compilation.SyntaxTrees.Single(); 2368var tree = compilation.SyntaxTrees.Single(); 2470var tree = compilation.SyntaxTrees.Single(); 2540var tree = compilation.SyntaxTrees.Single(); 2609var tree = compilation.SyntaxTrees.Single(); 2679var tree = compilation.SyntaxTrees.Single(); 2733var tree = compilation.SyntaxTrees.Single(); 2825var tree = compilation.SyntaxTrees.Single(); 2879var tree = compilation.SyntaxTrees.Single(); 2941var tree = compilation.SyntaxTrees.Single(); 2987var tree = compilation.SyntaxTrees.Single(); 3068var tree = compilation.SyntaxTrees.Single(); 3127var tree = compilation.SyntaxTrees.Single(); 3227var tree = compilation.SyntaxTrees.Single(); 3283var tree = compilation.SyntaxTrees.Single(); 3373var tree = compilation.SyntaxTrees.Single(); 3429var tree = compilation.SyntaxTrees.Single(); 3489var tree = compilation.SyntaxTrees.Single(); 3570var tree = compilation.SyntaxTrees.Single(); 3637var tree = compilation.SyntaxTrees.Single(); 3741var tree = compilation.SyntaxTrees.Single(); 3808var tree = compilation.SyntaxTrees.Single(); 3872var tree = compilation.SyntaxTrees.Single(); 3966var tree = compilation.SyntaxTrees.Single(); 4042var tree = compilation.SyntaxTrees.Single(); 4164var tree = compilation.SyntaxTrees.Single(); 4240var tree = compilation.SyntaxTrees.Single(); 4311var tree = compilation.SyntaxTrees.Single(); 4392var tree = compilation.SyntaxTrees.Single(); 4453var tree = compilation.SyntaxTrees.Single(); 4559var tree = compilation.SyntaxTrees.Single(); 4620var tree = compilation.SyntaxTrees.Single(); 4675var tree = compilation.SyntaxTrees.Single(); 4721var tree = compilation.SyntaxTrees.Single(); 4760var tree = compilation.SyntaxTrees.Single(); 4799var tree = compilation.SyntaxTrees.Single(); 4831var tree = compilation.SyntaxTrees.Single(); 4906var tree = compilation.SyntaxTrees.Single(); 4975var tree = compilation.SyntaxTrees.Single(); 5072var tree = compilation.SyntaxTrees.Single(); 5141var tree = compilation.SyntaxTrees.Single(); 5196var tree = compilation.SyntaxTrees.Single(); 5242var tree = compilation.SyntaxTrees.Single(); 5281var tree = compilation.SyntaxTrees.Single(); 5320var tree = compilation.SyntaxTrees.Single(); 5399var tree = compilation.SyntaxTrees.Single(); 5475var tree = compilation.SyntaxTrees.Single(); 5584var tree = compilation.SyntaxTrees.Single(); 5660var tree = compilation.SyntaxTrees.Single(); 5725var tree = compilation.SyntaxTrees.Single(); 5776var tree = compilation.SyntaxTrees.Single(); 5815var tree = compilation.SyntaxTrees.Single(); 5854var tree = compilation.SyntaxTrees.Single(); 5891var tree = compilation.SyntaxTrees.Single(); 5937var tree = compilation.SyntaxTrees.Single(); 5975var tree = compilation.SyntaxTrees.Single(); 6025var tree = compilation.SyntaxTrees.Single(); 6062var tree = compilation.SyntaxTrees.Single(); 6109var tree = compilation.SyntaxTrees.Single(); 6141var tree = compilation.SyntaxTrees.Single(); 6195var tree = compilation.SyntaxTrees.Single(); 6233var tree = compilation.SyntaxTrees.Single(); 6268var tree = compilation.SyntaxTrees.Single(); 6297var tree = compilation.SyntaxTrees.Single(); 6319var tree = compilation.SyntaxTrees.Single(); 6348var tree = compilation.SyntaxTrees.Single(); 6372var tree = compilation.SyntaxTrees.Single(); 6395var tree = compilation.SyntaxTrees.Single(); 6512var tree = compilation.SyntaxTrees.Single(); 6600var tree = compilation.SyntaxTrees.Single(); 6684var tree = compilation.SyntaxTrees.Single(); 6727var tree = compilation.SyntaxTrees.Single(); 6760var tree = compilation.SyntaxTrees.Single(); 6802var tree = compilation.SyntaxTrees.Single(); 6940var tree = compilation.SyntaxTrees.Single(); 7038var tree = compilation.SyntaxTrees.Single(); 7130var tree = compilation.SyntaxTrees.Single(); 7257var tree = compilation.SyntaxTrees.Single(); 7361var tree = compilation.SyntaxTrees.Single(); 7450var tree = compilation.SyntaxTrees.Single(); 7526var tree = compilation.SyntaxTrees.Single(); 7620var tree = compilation.SyntaxTrees.Single(); 7707var tree = compilation.SyntaxTrees.Single(); 7732var tree = compilation.SyntaxTrees.Single(); 7928var tree = compilation.SyntaxTrees.Single(); 8187var tree = compilation.SyntaxTrees.Single(); 8372var tree = compilation.SyntaxTrees.Single(); 8479var tree = compilation.SyntaxTrees.Single(); 8578var tree = compilation.SyntaxTrees.Single();
Semantics\PatternMatchingTests_ListPatterns.cs (10)
3317var tree = compilation.SyntaxTrees.First(); 3617var tree = compilation.SyntaxTrees[0]; 3674var tree = compilation.SyntaxTrees[0]; 3718var tree = compilation.SyntaxTrees.First(); 4083var tree = compilation.SyntaxTrees.First(); 4170var tree = compilation.SyntaxTrees.First(); 4247var tree = compilation.SyntaxTrees.First(); 4361var tree = compilation.SyntaxTrees.First(); 4403var tree = compilation.SyntaxTrees.Single(); 4554var tree = compilation.SyntaxTrees.First();
Semantics\PatternMatchingTests_Scope.cs (121)
202var tree = compilation.SyntaxTrees.Single(); 283var tree = compilation.SyntaxTrees.Single(); 329var tree = compilation.SyntaxTrees.Single(); 370var tree = compilation.SyntaxTrees.Single(); 400var tree = compilation.SyntaxTrees.Single(); 587var tree = compilation.SyntaxTrees.Single(); 675var tree = compilation.SyntaxTrees.Single(); 705var tree = compilation.SyntaxTrees.Single(); 857var tree = compilation.SyntaxTrees.Single(); 944var tree = compilation.SyntaxTrees.Single(); 974var tree = compilation.SyntaxTrees.Single(); 1155var tree = compilation.SyntaxTrees.Single(); 1248var tree = compilation.SyntaxTrees.Single(); 1278var tree = compilation.SyntaxTrees.Single(); 1518var tree = compilation.SyntaxTrees.Single(); 1818var tree = compilation.SyntaxTrees.Single(); 2069var tree = compilation.SyntaxTrees.Single(); 2215var tree = compilation.SyntaxTrees.Single(); 2351var tree = compilation.SyntaxTrees.Single(); 2416var tree = compilation.SyntaxTrees.Single(); 2479var tree = compilation.SyntaxTrees.Single(); 2549var tree = compilation.SyntaxTrees.Single(); 2705var tree = compilation.SyntaxTrees.Single(); 2788var tree = compilation.SyntaxTrees.Single(); 2984var tree = compilation.SyntaxTrees.Single(); 3153var tree = compilation.SyntaxTrees.Single(); 3268var tree = compilation.SyntaxTrees.Single(); 3357var tree = compilation.SyntaxTrees.Single(); 3445var tree = compilation.SyntaxTrees.Single(); 3532var tree = compilation.SyntaxTrees.Single(); 3608var tree = compilation.SyntaxTrees.Single(); 3705var tree = compilation.SyntaxTrees.Single(); 3796var tree = compilation.SyntaxTrees.Single(); 3886var tree = compilation.SyntaxTrees.Single(); 3978var tree = compilation.SyntaxTrees.Single(); 4074var tree = compilation.SyntaxTrees.Single(); 4220var tree = compilation.SyntaxTrees.Single(); 4502var tree = compilation.SyntaxTrees.Single(); 4902var tree = compilation.SyntaxTrees.Single(); 5211var tree = compilation.SyntaxTrees.Single(); 5304var tree = compilation.SyntaxTrees.Single(); 5334var tree = compilation.SyntaxTrees.Single(); 5499var tree = compilation.SyntaxTrees.Single(); 5706var tree = compilation.SyntaxTrees.Single(); 5913var tree = compilation.SyntaxTrees.Single(); 6022var tree = compilation.SyntaxTrees.Single(); 6103var tree = compilation.SyntaxTrees.Single(); 6186var tree = compilation.SyntaxTrees.Single(); 6273var tree = compilation.SyntaxTrees.Single(); 6347var tree = compilation.SyntaxTrees.Single(); 6417var tree = compilation.SyntaxTrees.Single(); 6464var tree = compilation.SyntaxTrees.Single(); 6517var tree = compilation.SyntaxTrees.Single(); 6587var tree = compilation.SyntaxTrees.Single(); 6676var tree = compilation.SyntaxTrees.Single(); 6752var tree = compilation.SyntaxTrees.Single(); 6827var tree = compilation.SyntaxTrees.Single(); 6877var tree = compilation.SyntaxTrees.Single(); 6927var tree = compilation.SyntaxTrees.Single(); 7084var tree = compilation.SyntaxTrees.Single(); 7174var tree = compilation.SyntaxTrees.Single(); 7204var tree = compilation.SyntaxTrees.Single(); 7406var tree = compilation.SyntaxTrees.Single(); 7497var tree = compilation.SyntaxTrees.Single(); 7527var tree = compilation.SyntaxTrees.Single(); 7721var tree = compilation.SyntaxTrees.Single(); 7950var tree = compilation.SyntaxTrees.Single(); 8200var tree = compilation.SyntaxTrees.Single(); 8440var tree = compilation.SyntaxTrees.Single(); 8672var tree = compilation.SyntaxTrees.Single(); 8988var tree = compilation.SyntaxTrees.Single(); 9131var tree = compilation.SyntaxTrees.Single(); 9303var tree = compilation.SyntaxTrees.Single(); 9512var tree = compilation.SyntaxTrees.Single(); 9603var tree = compilation.SyntaxTrees.Single(); 9633var tree = compilation.SyntaxTrees.Single(); 9798var tree = compilation.SyntaxTrees.Single(); 9927var tree = compilation.SyntaxTrees.Single(); 10075var tree = compilation.SyntaxTrees.Single(); 10163var tree = compilation.SyntaxTrees.Single(); 10196var tree = compilation.SyntaxTrees.Single(); 10365var tree = compilation.SyntaxTrees.Single(); 10586var tree = compilation.SyntaxTrees.Single(); 10682var tree = compilation.SyntaxTrees.Single(); 10712var tree = compilation.SyntaxTrees.Single(); 10999var tree = compilation.SyntaxTrees.Single(); 11129var tree = compilation.SyntaxTrees.Single(); 11177var tree = compilation.SyntaxTrees.Single(); 11227var tree = compilation.SyntaxTrees.Single(); 11270var tree = compilation.SyntaxTrees.Single(); 11313var tree = compilation.SyntaxTrees.Single(); 11359var tree = compilation.SyntaxTrees.Single(); 11402var tree = compilation.SyntaxTrees.Single(); 11448var tree = compilation.SyntaxTrees.Single(); 11494var tree = compilation.SyntaxTrees.Single(); 11546var tree = compilation.SyntaxTrees.Single(); 11609var tree = compilation.SyntaxTrees.Single(); 11664var tree = compilation.SyntaxTrees.Single(); 11724var tree = compilation.SyntaxTrees.Single(); 11804var tree = compilation.SyntaxTrees.Single(); 11901var tree = compilation.SyntaxTrees.Single(); 11990var tree = compilation.SyntaxTrees.Single(); 12088var tree = compilation.SyntaxTrees.Single(); 12139var tree = compilation.SyntaxTrees.Single(); 12201var tree = compilation.SyntaxTrees.Single(); 12245var tree = compilation.SyntaxTrees.Single(); 12474var tree = compilation.SyntaxTrees.Single(); 12641var tree = compilation.SyntaxTrees.Single(); 12832var tree = compilation.SyntaxTrees.Single(); 12953var tree = compilation.SyntaxTrees.Single(); 13045var tree = compilation.SyntaxTrees.Single(); 13227var tree = compilation.SyntaxTrees.Single(); 13370var tree = compilation.SyntaxTrees.Single(); 13444var tree = compilation.SyntaxTrees.Single(); 13532var tree = compilation.SyntaxTrees.Single(); 13609var tree = compilation.SyntaxTrees.Single(); 13688var tree = compilation.SyntaxTrees.Single(); 13755var tree = compilation.SyntaxTrees.Single(); 13785var tree = compilation.SyntaxTrees.Single(); 13820var tree = comp.SyntaxTrees.First(); 14017var tree = compilation.SyntaxTrees.Single();
Semantics\PatternMatchingTests2.cs (8)
719var tree = compilation.SyntaxTrees[0]; 2018var tree = compilation.SyntaxTrees[0]; 2059var tree = compilation.SyntaxTrees[0]; 2157var tree = compilation.SyntaxTrees[0]; 2249var tree = compilation.SyntaxTrees[0]; 2293var tree = compilation.SyntaxTrees[0]; 2339var tree = compilation.SyntaxTrees[0]; 2869var tree = comp.SyntaxTrees[0];
Semantics\PatternMatchingTests3.cs (12)
46var tree = compilation.SyntaxTrees[0]; 106var tree = compilation.SyntaxTrees[0]; 157var tree = compilation.SyntaxTrees[0]; 202var tree = compilation.SyntaxTrees[0]; 253var tree = compilation.SyntaxTrees[0]; 296var tree = compilation.SyntaxTrees[0]; 343var tree = compilation.SyntaxTrees[0]; 1610var tree = compilation.SyntaxTrees.Single(); 1886var tree = compilation.SyntaxTrees.Single(); 1934var tree = compilation.SyntaxTrees.Single(); 4104var tree = compilation.SyntaxTrees[0]; 4331var tree = compilation.SyntaxTrees[0];
Semantics\PatternMatchingTests4.cs (13)
1008var tree = compilation.SyntaxTrees[0]; 4016var tree = comp.SyntaxTrees.Single(); 4085var tree = comp.SyntaxTrees.Single(); 4158var tree = comp.SyntaxTrees.First(); 4230var tree = comp.SyntaxTrees.First(); 4274var tree = comp.SyntaxTrees.First(); 4321var tree = comp.SyntaxTrees.First(); 4403var tree = comp.SyntaxTrees.First(); 4485var tree = comp.SyntaxTrees.First(); 4567var tree = comp.SyntaxTrees.First(); 4649var tree = comp.SyntaxTrees.First(); 4733var tree = comp.SyntaxTrees.First(); 4826var tree = comp.SyntaxTrees.First();
Semantics\PatternMatchingTests5.cs (9)
425var tree = comp.SyntaxTrees.Single(); 562var tree = comp.SyntaxTrees.Single(); 793var tree = comp.SyntaxTrees.Single(); 839var tree = comp.SyntaxTrees.Single(); 893var tree = comp.SyntaxTrees.Single(); 1103var tree = compilation.SyntaxTrees[0]; 1183var tree = compilation.SyntaxTrees[0]; 1234var tree = compilation.SyntaxTrees[0]; 1286var tree = compilation.SyntaxTrees[0];
Semantics\PatternSwitchTests.cs (5)
1513var tree = compilation.SyntaxTrees.Single(); 1896var tree = compilation.SyntaxTrees.Single(); 1931var tree = compilation.SyntaxTrees.Single(); 3250var tree = compilation.SyntaxTrees[0]; 3281var tree = compilation.SyntaxTrees[0];
Semantics\PrimaryConstructorTests.cs (37)
418var tree = comp.SyntaxTrees[0]; 959var tree = comp.SyntaxTrees[0]; 1001var tree = comp.SyntaxTrees[0]; 1069var tree = comp.SyntaxTrees.First(); 1291var tree = comp.SyntaxTrees.First(); 1362var tree = comp.SyntaxTrees.First(); 1408var tree = comp.SyntaxTrees.First(); 1464var tree = comp.SyntaxTrees.First(); 1523var tree = comp.SyntaxTrees.First(); 1612var tree = comp.SyntaxTrees.First(); 1811var tree = comp.SyntaxTrees.First(); 1851var tree = comp.SyntaxTrees.First(); 1894var tree = comp.SyntaxTrees.First(); 1964var tree = comp.SyntaxTrees.First(); 2111var tree = comp.SyntaxTrees.First(); 2293var tree = comp.SyntaxTrees.First(); 2422var tree = comp.SyntaxTrees.First(); 2470var tree = comp.SyntaxTrees.First(); 2638var tree = comp.SyntaxTrees.First(); 2676var tree = comp.SyntaxTrees.First(); 2713var tree = comp.SyntaxTrees.First(); 2749var tree = comp.SyntaxTrees.First(); 6089var tree = comp.SyntaxTrees.Single(); 6830var tree = comp.SyntaxTrees[0]; 6856var tree = comp.SyntaxTrees[0]; 7792var tree = comp.SyntaxTrees.Single(); 8754var tree = comp.SyntaxTrees[0]; 9160var tree = comp.SyntaxTrees[0]; 19771var tree = comp.SyntaxTrees[0]; 20596var tree = comp.SyntaxTrees.Single(); 20629var tree = comp.SyntaxTrees.Single(); 20673var tree = comp.SyntaxTrees.Single(); 20720var tree = comp.SyntaxTrees.Single(); 20770var tree = comp.SyntaxTrees.Single(); 21627var tree = comp.SyntaxTrees[1]; 22194comp.GetSemanticModel(comp.SyntaxTrees[0]).GetDiagnostics().Verify( 22200comp.GetSemanticModel(comp.SyntaxTrees[1]).GetDiagnostics().Verify();
Semantics\RecordTests.cs (33)
280var tree = comp.SyntaxTrees.First(); 446var tree = comp.SyntaxTrees[0]; 478var tree = comp.SyntaxTrees[0]; 1815var root = comp.SyntaxTrees[0].GetRoot(); 2487var tree = comp.SyntaxTrees[0]; 8087var tree = comp.SyntaxTrees.First(); 8600var tree = comp.SyntaxTrees[0]; 8715var tree = comp.SyntaxTrees[0]; 8860var tree = comp.SyntaxTrees[0]; 21141var tree = comp.SyntaxTrees.First(); 21365var tree = comp.SyntaxTrees.First(); 21436var tree = comp.SyntaxTrees.First(); 21482var tree = comp.SyntaxTrees.First(); 21538var tree = comp.SyntaxTrees.First(); 21597var tree = comp.SyntaxTrees.First(); 21686var tree = comp.SyntaxTrees.First(); 21885var tree = comp.SyntaxTrees.First(); 21922var tree = comp.SyntaxTrees.First(); 21962var tree = comp.SyntaxTrees.First(); 21997var tree = comp.SyntaxTrees.First(); 22076var tree = comp.SyntaxTrees.First(); 22223var tree = comp.SyntaxTrees.First(); 22405var tree = comp.SyntaxTrees.First(); 22914var tree = comp.SyntaxTrees.First(); 23368var tree = comp.SyntaxTrees.First(); 24640var tree = comp.SyntaxTrees.First(); 24675var tree = comp.SyntaxTrees.First(); 24709var tree = comp.SyntaxTrees.First(); 24744var tree = comp.SyntaxTrees.First(); 28185var tree = comp.SyntaxTrees.Single(); 28342var tree = comp.SyntaxTrees.Single(); 30369var tree = comp.SyntaxTrees[0]; 30393var tree = comp.SyntaxTrees[0];
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (3)
EndToEndTests.cs (3)
489var tree = comp.SyntaxTrees.Single(); 609var tree = comp.SyntaxTrees[0]; 864var tree = comp.SyntaxTrees[0];
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (86)
IOperation\IOperationTests.cs (11)
181var m = comp.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<BlockSyntax>().Single(); 412var tree = compilation.SyntaxTrees.Single(); 460var tree = compilation.SyntaxTrees.Single(); 490var tree = compilation.SyntaxTrees[0]; 508var tree = compilation.SyntaxTrees.Single(); 524var tree = compilation.SyntaxTrees[0]; 554var tree = comp.SyntaxTrees.Single(); 586var tree = compilation.SyntaxTrees[0]; 614var tree = compilation.SyntaxTrees[0]; 661var syntaxTree = compilation.SyntaxTrees[0]; 710var tree = comp.SyntaxTrees[0];
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (4)
406var syntaxTree = compilation.SyntaxTrees[0]; 486var syntaxTree = compilation.SyntaxTrees[0]; 845var tree = compilation.SyntaxTrees.Single(); 900var tree = compilation.SyntaxTrees.Single();
IOperation\IOperationTests_ICoalesceAssignmentOperation.cs (1)
252var tree = comp.SyntaxTrees[0];
IOperation\IOperationTests_ICoalesceOperation.cs (11)
35var tree = compilation.SyntaxTrees.Single(); 146var tree = compilation.SyntaxTrees.Single(); 261var tree = compilation.SyntaxTrees.Single(); 376var tree = compilation.SyntaxTrees.Single(); 492var tree = compilation.SyntaxTrees.Single(); 605var tree = compilation.SyntaxTrees.Single(); 720var tree = compilation.SyntaxTrees.Single(); 836var tree = compilation.SyntaxTrees.Single(); 950var tree = compilation.SyntaxTrees.Single(); 1052var tree = compilation.SyntaxTrees.Single(); 1167var tree = compilation.SyntaxTrees.Single();
IOperation\IOperationTests_IConstructorBodyOperation.cs (19)
37var tree = compilation.SyntaxTrees.Single(); 66var tree = compilation.SyntaxTrees.Single(); 122var tree = compilation.SyntaxTrees.Single(); 188var tree = compilation.SyntaxTrees.Single(); 256var tree = compilation.SyntaxTrees.Single(); 322var tree = compilation.SyntaxTrees.Single(); 397var tree = compilation.SyntaxTrees.Single(); 484var tree = compilation.SyntaxTrees.Single(); 513var tree = compilation.SyntaxTrees.Single(); 588var tree = compilation.SyntaxTrees.Single(); 650var tree = compilation.SyntaxTrees.Single(); 720var tree = compilation.SyntaxTrees.Single(); 795var tree = compilation.SyntaxTrees.Single(); 864var tree = compilation.SyntaxTrees.Single(); 954var tree = compilation.SyntaxTrees.Single(); 1069var tree = compilation.SyntaxTrees.Single(); 1089var tree = compilation.SyntaxTrees.Single(); 1122var tree = compilation.SyntaxTrees.Single(); 1160var tree = compilation.SyntaxTrees.Single();
IOperation\IOperationTests_IConversionExpression.cs (1)
5289var tree = compilation.SyntaxTrees[0];
IOperation\IOperationTests_IFieldReferenceExpression.cs (1)
704var syntaxTree = comp.SyntaxTrees[0];
IOperation\IOperationTests_IFixedStatement.cs (1)
691var tree = comp.SyntaxTrees[0];
IOperation\IOperationTests_ILocalFunctionStatement.cs (2)
1791var tree = compilation.SyntaxTrees.Single(); 1846var tree = compilation.SyntaxTrees.Single();
IOperation\IOperationTests_IMethodBodyOperation.cs (27)
32var tree = compilation.SyntaxTrees.Single(); 55var tree = compilation.SyntaxTrees.Single(); 108var tree = compilation.SyntaxTrees.Single(); 170var tree = compilation.SyntaxTrees.Single(); 242var tree = compilation.SyntaxTrees.Single(); 284var tree = compilation.SyntaxTrees.Single(); 332var tree = compilation.SyntaxTrees.Single(); 399var tree = compilation.SyntaxTrees.Single(); 443var tree = compilation.SyntaxTrees.Single(); 505var tree = compilation.SyntaxTrees.Single(); 559var tree = compilation.SyntaxTrees.Single(); 580var tree = compilation.SyntaxTrees.Single(); 612var tree = compilation.SyntaxTrees.Single(); 656var tree = compilation.SyntaxTrees.Single(); 701var tree = compilation.SyntaxTrees.Single(); 722var tree = compilation.SyntaxTrees.Single(); 754var tree = compilation.SyntaxTrees.Single(); 798var tree = compilation.SyntaxTrees.Single(); 843var tree = compilation.SyntaxTrees.Single(); 864var tree = compilation.SyntaxTrees.Single(); 896var tree = compilation.SyntaxTrees.Single(); 937var tree = compilation.SyntaxTrees.Single(); 975var tree = compilation.SyntaxTrees.Single(); 999var tree = compilation.SyntaxTrees.Single(); 1034var tree = compilation.SyntaxTrees.Single(); 1079var tree = compilation.SyntaxTrees.Single(); 1121var tree = compilation.SyntaxTrees.Single();
IOperation\IOperationTests_IObjectCreationExpression.cs (7)
782var m1 = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Single(); 1069var main = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Single(); 1295var m1 = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Single(); 1574var main = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Single(); 2276var m = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Single(); 2400var m = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Single(m => m.Identifier.ValueText == "M"); 15543VerifyFlowGraph(comp, comp.SyntaxTrees[0].GetRoot(), expectedFlowGraph);
IOperation\IOperationTests_ISymbolInitializer.cs (1)
32var tree = compilation.SyntaxTrees.Single();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1125)
Semantics\AnonymousFunctionTests.cs (2)
978var syntaxTree = compilation.SyntaxTrees.Single(); 1012var syntaxTree = compilation.SyntaxTrees.Single();
Semantics\AwaitExpressionTests.cs (4)
81var tree = csCompilation.SyntaxTrees.Single(); 272var semanticModel = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 273var decl = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().AsSingleton(); 292var tree = comp.SyntaxTrees[0];
Semantics\BetterCandidates.cs (8)
1086var model = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 1087var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1163var model = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 1164var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1211var model = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 1212var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1264var model = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 1265var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray();
Semantics\BindingTests.cs (18)
2363var tree = comp.SyntaxTrees[0]; 2382var tree = comp.SyntaxTrees[0]; 2719var tree = compilation.SyntaxTrees.Single(); 2775var tree = compilation.SyntaxTrees.Single(); 2830var tree = compilation.SyntaxTrees.Single(); 2886var tree = compilation.SyntaxTrees[0]; 2923var tree = comp.SyntaxTrees[0]; 2965var tree = comp.SyntaxTrees[0]; 3034var tree = comp.SyntaxTrees[0]; 3114var tree = comp.SyntaxTrees[0]; 3187var tree = comp.SyntaxTrees[0]; 3272var tree = comp.SyntaxTrees[0]; 3377var tree = comp.SyntaxTrees[0]; 3729var tree = comp.SyntaxTrees[0]; 3910var tree = comp.SyntaxTrees[0]; 3936var tree = compilation.SyntaxTrees.Single(); 3983var tree = comp.SyntaxTrees[0]; 4024var tree = comp.SyntaxTrees[0];
Semantics\ColorColorTests.cs (5)
1812var syntaxTree = comp.SyntaxTrees[0]; 1880var tree = compilation.SyntaxTrees[0]; 1937var tree = compilation.SyntaxTrees[0]; 1994var tree = compilation.SyntaxTrees[0]; 2044var tree = compilation.SyntaxTrees[0];
Semantics\ConditionalOperatorTests.cs (3)
1345var tree = compilation.SyntaxTrees.Single(); 1399var tree = compilation.SyntaxTrees.Single(); 1446var tree = compilation.SyntaxTrees.Single();
Semantics\ConstantTests.cs (3)
3519var tree = comp.SyntaxTrees[0]; 4079var tree = comp.SyntaxTrees.Single(); 4100var tree = comp.SyntaxTrees.Single();
Semantics\DeconstructionTests.cs (26)
3763var tree = compilation.SyntaxTrees.First(); 3941var tree = comp.SyntaxTrees.First(); 4167var tree = comp.SyntaxTrees.First(); 4235var tree = comp.SyntaxTrees.First(); 4370var tree = comp.SyntaxTrees.First(); 4504var tree = comp.SyntaxTrees.First(); 4662var tree = comp.SyntaxTrees.First(); 4720var tree = comp1.SyntaxTrees.Single(); 4756var tree = comp.SyntaxTrees.First(); 4834var tree = comp.SyntaxTrees.First(); 4939var tree = comp.SyntaxTrees.First(); 4985var tree = comp.SyntaxTrees.First(); 5043var tree = comp.SyntaxTrees.First(); 5129var tree = comp1.SyntaxTrees.First(); 5184var tree = comp.SyntaxTrees.First(); 5328var tree = comp.SyntaxTrees.First(); 5475var tree = comp.SyntaxTrees.First(); 5652var tree = comp.SyntaxTrees.First(); 5762var tree = comp.SyntaxTrees.First(); 5875var tree = comp.SyntaxTrees.First(); 5984var tree = comp.SyntaxTrees[0]; 6027var tree = comp.SyntaxTrees[0]; 6067var tree = comp.SyntaxTrees[0]; 6109var tree = comp.SyntaxTrees[0]; 6149var tree = comp.SyntaxTrees[0]; 6552var tree = comp.SyntaxTrees[0];
Semantics\DelegateTypeTests.cs (58)
747var tree = comp.SyntaxTrees[0]; 793var tree = comp.SyntaxTrees[0]; 893var tree = comp.SyntaxTrees[0]; 936var tree = comp.SyntaxTrees[0]; 994var tree = comp.SyntaxTrees[0]; 1034var tree = comp.SyntaxTrees[0]; 1209var tree = comp.SyntaxTrees[0]; 1245var tree = comp.SyntaxTrees[0]; 1330var tree = comp.SyntaxTrees[0]; 1370var tree = comp.SyntaxTrees[0]; 1413var tree = comp.SyntaxTrees[0]; 1457var tree = comp.SyntaxTrees[0]; 1552var tree = comp.SyntaxTrees[0]; 1632var tree = comp.SyntaxTrees[0]; 1682var tree = comp.SyntaxTrees[0]; 1732var tree = comp.SyntaxTrees[0]; 1782var tree = comp.SyntaxTrees[0]; 1832var tree = comp.SyntaxTrees[0]; 1882var tree = comp.SyntaxTrees[0]; 1932var tree = comp.SyntaxTrees[0]; 1978var tree = comp.SyntaxTrees[0]; 2026var tree = comp.SyntaxTrees[0]; 2080var tree = comp.SyntaxTrees[0]; 2145var tree = comp.SyntaxTrees[0]; 2207var tree = comp.SyntaxTrees[0]; 2266var tree = comp.SyntaxTrees[0]; 2315var tree = comp.SyntaxTrees[0]; 2354var tree = comp.SyntaxTrees[0]; 2397var tree = comp.SyntaxTrees[0]; 2449var tree = comp.SyntaxTrees[0]; 2490var tree = comp.SyntaxTrees[0]; 2538var tree = comp.SyntaxTrees[0]; 2590var tree = comp.SyntaxTrees[0]; 2636var tree = comp.SyntaxTrees[0]; 2684var tree = comp.SyntaxTrees[0]; 2731var tree = comp.SyntaxTrees[0]; 2777var tree = comp.SyntaxTrees[0]; 2828var tree = comp.SyntaxTrees[0]; 2856var tree = comp.SyntaxTrees[0]; 2887var tree = comp.SyntaxTrees[0]; 2915var tree = comp.SyntaxTrees[0]; 2946var tree = comp.SyntaxTrees[0]; 2979var tree = comp.SyntaxTrees[0]; 3010var tree = comp.SyntaxTrees[0]; 3041var tree = comp.SyntaxTrees[0]; 3076var tree = comp.SyntaxTrees[0]; 3559var tree = comp.SyntaxTrees[0]; 3601var tree = comp.SyntaxTrees[0]; 8026var tree = comp.SyntaxTrees[0]; 8049var tree = comp.SyntaxTrees[0]; 10384var tree = comp.SyntaxTrees[0]; 11082var tree = comp.SyntaxTrees[0]; 11168var tree = comp.SyntaxTrees[0]; 12107var syntaxTree = comp.SyntaxTrees[0]; 14698var tree = comp.SyntaxTrees[0]; 14744var tree = comp.SyntaxTrees[0]; 19757var tree = comp.SyntaxTrees.Single(); 19799var tree = comp.SyntaxTrees.Single();
Semantics\DynamicTests.cs (110)
4975var tree = comp1.SyntaxTrees.Single(); 5058tree = comp3.SyntaxTrees.Single(); 5099var tree = comp1.SyntaxTrees.Single(); 5181tree = comp3.SyntaxTrees.Single(); 5222var tree = comp1.SyntaxTrees.Single(); 5305tree = comp3.SyntaxTrees.Single(); 5340var tree = comp1.SyntaxTrees.Single(); 5381var tree = comp1.SyntaxTrees.Single(); 5425var tree = comp1.SyntaxTrees.Single(); 5469var tree = comp1.SyntaxTrees.Single(); 5513var tree = comp1.SyntaxTrees.Single(); 5577var tree = comp.SyntaxTrees.Single(); 5615var tree = comp.SyntaxTrees.Single(); 5654var tree = comp.SyntaxTrees.Single(); 5690var tree = comp.SyntaxTrees.Single(); 5731var tree = comp1.SyntaxTrees.Single(); 5776var tree = comp1.SyntaxTrees.Single(); 5821var tree = comp1.SyntaxTrees.Single(); 5866var tree = comp1.SyntaxTrees.Single(); 5934var tree = comp.SyntaxTrees.Single(); 5973var tree = comp.SyntaxTrees.Single(); 6021var tree = comp.SyntaxTrees.Single(); 6103tree = comp3.SyntaxTrees.Single(); 6144var tree = comp.SyntaxTrees.Single(); 6226tree = comp3.SyntaxTrees.Single(); 6264var tree = comp.SyntaxTrees.Single(); 6346tree = comp3.SyntaxTrees.Single(); 6376var tree = comp1.SyntaxTrees.Single(); 6418var tree = comp1.SyntaxTrees.Single(); 6465var tree = comp1.SyntaxTrees.Single(); 6509var tree = comp1.SyntaxTrees.Single(); 6551var tree = comp.SyntaxTrees.Single(); 6605var tree = comp.SyntaxTrees.Single(); 6670var tree = comp.SyntaxTrees.Single(); 6735tree = comp3.SyntaxTrees.Single(); 6779var tree = comp.SyntaxTrees.Single(); 6844tree = comp3.SyntaxTrees.Single(); 6889var tree = comp.SyntaxTrees.Single(); 6955tree = comp3.SyntaxTrees.Single(); 6990var tree = comp.SyntaxTrees.Single(); 7058var tree = comp.SyntaxTrees.Single(); 7117tree = comp3.SyntaxTrees.Single(); 7161var tree = comp.SyntaxTrees.Single(); 7229tree = comp3.SyntaxTrees.Single(); 7274var tree = comp.SyntaxTrees.Single(); 7345tree = comp3.SyntaxTrees.Single(); 7390var tree = comp.SyntaxTrees.Single(); 7462tree = comp3.SyntaxTrees.Single(); 7503var tree = comp.SyntaxTrees.Single(); 7580var tree = comp.SyntaxTrees.Single(); 7641tree = comp3.SyntaxTrees.Single(); 7685var tree = comp.SyntaxTrees.Single(); 7747tree = comp3.SyntaxTrees.Single(); 7791var tree = comp.SyntaxTrees.Single(); 7853tree = comp3.SyntaxTrees.Single(); 7894var tree = comp.SyntaxTrees.Single(); 7966var tree = comp.SyntaxTrees.Single(); 8028tree = comp3.SyntaxTrees.Single(); 8072var tree = comp.SyntaxTrees.Single(); 8134tree = comp3.SyntaxTrees.Single(); 8177var tree = comp.SyntaxTrees.Single(); 8238tree = comp3.SyntaxTrees.Single(); 8282var tree = comp.SyntaxTrees.Single(); 8347tree = comp3.SyntaxTrees.Single(); 8391var tree = comp.SyntaxTrees.Single(); 8456tree = comp3.SyntaxTrees.Single(); 8500var tree = comp.SyntaxTrees.Single(); 8565tree = comp3.SyntaxTrees.Single(); 8610var tree = comp.SyntaxTrees.Single(); 8676tree = comp3.SyntaxTrees.Single(); 8723var tree = comp.SyntaxTrees.Single(); 8792var tree = comp.SyntaxTrees.Single(); 8860var tree = comp.SyntaxTrees.Single(); 8923var tree = comp.SyntaxTrees.Single(); 9013var tree = comp.SyntaxTrees.Single(); 9104var tree = comp.SyntaxTrees.Single(); 9194var tree = comp.SyntaxTrees.Single(); 9250var tree = comp.SyntaxTrees.Single(); 9311var tree = comp.SyntaxTrees.Single(); 9432var tree = comp.SyntaxTrees.Single(); 9552var tree = comp.SyntaxTrees.Single(); 9666var tree = comp.SyntaxTrees.Single(); 9777var tree = comp.SyntaxTrees.Single(); 9888var tree = comp.SyntaxTrees.Single(); 10008var tree = comp.SyntaxTrees.Single(); 10091tree = comp3.SyntaxTrees.Single(); 10136var tree = comp.SyntaxTrees.Single(); 10219tree = comp3.SyntaxTrees.Single(); 10264var tree = comp.SyntaxTrees.Single(); 10347tree = comp3.SyntaxTrees.Single(); 10418var tree = comp.SyntaxTrees.Single(); 10499tree = comp3.SyntaxTrees.Single(); 10552var tree = comp.SyntaxTrees.Single(); 10646tree = comp3.SyntaxTrees.Single(); 10700var tree = comp.SyntaxTrees.Single(); 10796tree = comp3.SyntaxTrees.Single(); 10970var tree = comp.SyntaxTrees.Single(); 11062tree = comp3.SyntaxTrees.Single(); 11099var tree = comp.SyntaxTrees.Single(); 11183var tree = comp.SyntaxTrees.Single(); 11261var tree = comp.SyntaxTrees.Single(); 11316var tree = comp1.SyntaxTrees.Single(); 11369var tree = comp1.SyntaxTrees.Single(); 11416var tree = comp1.SyntaxTrees.Single(); 11449var tree = comp1.SyntaxTrees.Single(); 11493var tree = comp.SyntaxTrees.Single(); 11534var tree = comp1.SyntaxTrees.Single(); 11583var tree = comp.SyntaxTrees.Single(); 11635var tree = comp.SyntaxTrees.Single(); 11679var tree = comp1.SyntaxTrees.Single();
Semantics\ExpressionBodiedMemberTests.cs (17)
38var tree = comp.SyntaxTrees[0]; 423var tree = comp.SyntaxTrees[0]; 472var tree = comp.SyntaxTrees[0]; 503var tree = comp.SyntaxTrees[0]; 532var tree = comp.SyntaxTrees[0]; 572var tree = comp.SyntaxTrees[0]; 615var tree = comp.SyntaxTrees[0]; 646var tree = comp.SyntaxTrees[0]; 677var tree = comp.SyntaxTrees[0]; 708var tree = comp.SyntaxTrees[0]; 739var tree = comp.SyntaxTrees[0]; 774var tree = comp.SyntaxTrees[0]; 805var tree = comp.SyntaxTrees[0]; 836var tree = comp.SyntaxTrees[0]; 871var tree = comp.SyntaxTrees[0]; 910var tree = comp.SyntaxTrees[0]; 1018var tree = comp.SyntaxTrees[0];
Semantics\FieldInitializerBindingTests.cs (1)
246var syntaxTree = compilation.SyntaxTrees.First();
Semantics\ForEachTests.cs (6)
2126var tree = comp.SyntaxTrees.Single(); 2178var tree = comp.SyntaxTrees.Single(); 2882var tree = comp.SyntaxTrees.Single(); 3324var tree = comp.SyntaxTrees.Single(); 3358var tree = comp.SyntaxTrees.Single(); 3420var tree = compilation.SyntaxTrees.Single();
Semantics\FunctionPointerTests.cs (45)
198var tree = comp.SyntaxTrees[0]; 290var tree = comp.SyntaxTrees[0]; 348var tree = comp.SyntaxTrees[0]; 399var tree = comp.SyntaxTrees[0]; 451var tree = comp.SyntaxTrees[0]; 499var tree = comp.SyntaxTrees[0]; 597var tree = comp.SyntaxTrees[0]; 836var tree = comp.SyntaxTrees[0]; 879var tree = comp.SyntaxTrees[0]; 939var tree = comp.SyntaxTrees[0]; 975var tree = comp.SyntaxTrees[0]; 1043var tree = comp.SyntaxTrees[0]; 1123var tree = comp.SyntaxTrees[0]; 1268var tree = comp.SyntaxTrees[0]; 1363var tree = comp.SyntaxTrees[0]; 1504var tree = comp.SyntaxTrees[0]; 1561var tree = comp.SyntaxTrees[0]; 1612var tree = comp.SyntaxTrees[0]; 1660var tree = comp.SyntaxTrees[0]; 1693var tree = comp.SyntaxTrees[0]; 1726var tree = comp.SyntaxTrees[0]; 1772var tree = comp.SyntaxTrees[0]; 1820var tree = comp.SyntaxTrees[0]; 1853var tree = comp.SyntaxTrees[0]; 1886var tree = comp.SyntaxTrees[0]; 1933var tree = comp.SyntaxTrees[0]; 2052var tree = comp.SyntaxTrees[0]; 2085var tree = comp.SyntaxTrees[0]; 2222var tree = comp.SyntaxTrees[0]; 2279var tree = comp.SyntaxTrees[0]; 2352var tree = comp.SyntaxTrees[0]; 2426var tree = comp.SyntaxTrees[0]; 2494var tree = comp.SyntaxTrees[0]; 2591var tree = comp.SyntaxTrees[0]; 2664var tree = comp.SyntaxTrees[0]; 3175var tree = comp.SyntaxTrees[0]; 3294var tree = comp.SyntaxTrees[0]; 3373var syntaxTree = comp.SyntaxTrees[0]; 3430var syntaxTree = comp.SyntaxTrees[0]; 3472var syntaxTree = comp.SyntaxTrees[0]; 3525var syntaxTree = comp.SyntaxTrees[0]; 3579var syntaxTree = comp.SyntaxTrees[0]; 3674var syntaxTree = comp.SyntaxTrees[0]; 3802var syntaxTree = comp.SyntaxTrees[0]; 3947var syntaxTree = comp.SyntaxTrees[0];
Semantics\FuzzTests.cs (1)
51var tree = compilation.SyntaxTrees[0];
Semantics\GenericConstraintsTests.cs (5)
2875var tree = compilation.SyntaxTrees.Single(); 3137var tree = compilation.SyntaxTrees.Single(); 3167var tree = compilation.SyntaxTrees.Single(); 3193var tree = compilation.SyntaxTrees.Single(); 3222var tree = compilation.SyntaxTrees.Single();
Semantics\GlobalUsingDirectiveTests.cs (96)
2216comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).Verify(expected); 2219comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDeclarationDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).Verify(expected); 2301comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2308comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2338comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2341comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2344comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2635comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2642comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2671comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2674comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2677comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2789comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2796comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2825comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2828comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify(expected); 2831comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).Verify( 2906comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected2); 2907comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected3); 2910comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected3); 2911comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected2); 2914comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected3); 2915comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected2); 2918comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected1); 2992comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected2); 2993comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected3); 2996comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected3); 2997comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected2); 3000comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected3); 3001comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected2); 3004comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected1); 3078comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected2); 3079comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected3); 3082comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected3); 3083comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected2); 3086comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected3); 3087comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected2); 3090comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected1); 3245comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected1); 3248comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDiagnostics().Verify(expected2); 3251comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected0); 3256comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics(TextSpan.FromBounds(20, comp2.SyntaxTrees[0].Length - 1)).Verify( 3264comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics(TextSpan.FromBounds(20, comp2.SyntaxTrees[1].Length - 1)).Verify( 3272comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDiagnostics(TextSpan.FromBounds(20, comp2.SyntaxTrees[2].Length - 1)).Verify( 3285comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected1); 3286AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees); 3287comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected1); 3288AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees); 3290comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDiagnostics().Verify(expected2); 3291AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1], comp2.SyntaxTrees[2] }, comp2.UsageOfUsingsRecordedInTrees); 3292comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDiagnostics().Verify(expected2); 3293AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1], comp2.SyntaxTrees[2] }, comp2.UsageOfUsingsRecordedInTrees); 3295comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected0); 3297comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected0); 3302comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected1); 3303AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees); 3305comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected0); 3308comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDiagnostics().Verify(expected2); 3313comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDiagnostics().Verify(expected0); 3316comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDiagnostics().Verify(expected1); 3319comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDiagnostics().Verify(expected2); 3840var tree = comp.SyntaxTrees[0]; 3866tree = comp.SyntaxTrees[0]; 3888tree = comp.SyntaxTrees[1]; 3897tree = comp.SyntaxTrees[0]; 3916tree = comp.SyntaxTrees[1]; 3930tree = comp.SyntaxTrees[0]; 3950tree = comp.SyntaxTrees[0]; 3966tree = comp.SyntaxTrees[1]; 3975tree = comp.SyntaxTrees[0]; 3988tree = comp.SyntaxTrees[1]; 4002tree = comp.SyntaxTrees[0]; 4022tree = comp.SyntaxTrees[0]; 4038tree = comp.SyntaxTrees[1]; 4047tree = comp.SyntaxTrees[0]; 4060tree = comp.SyntaxTrees[1]; 4074tree = comp.SyntaxTrees[0]; 4088tree = comp.SyntaxTrees[0]; 4098tree = comp.SyntaxTrees[1]; 4109tree = comp.SyntaxTrees[0]; 4131tree = comp.SyntaxTrees[0]; 4147tree = comp.SyntaxTrees[0]; 4242var tree = comp.SyntaxTrees[0]; 4250tree = comp.SyntaxTrees[0]; 4278tree = comp.SyntaxTrees[0]; 4286tree = comp.SyntaxTrees[0]; 4294tree = comp.SyntaxTrees[0]; 4302tree = comp.SyntaxTrees[0]; 4314tree = comp.SyntaxTrees[0]; 4977var tree = comp.SyntaxTrees[0]; 4982tree = comp.SyntaxTrees[1];
Semantics\ImplicitObjectCreationTests.cs (23)
54var tree = comp.SyntaxTrees.First(); 129var tree = comp.SyntaxTrees.First(); 176var tree = comp.SyntaxTrees.First(); 226var tree = comp.SyntaxTrees.First(); 840var tree = comp.SyntaxTrees.First(); 881var tree = comp.SyntaxTrees.First(); 1704var tree = comp.SyntaxTrees.First(); 1864var tree = comp.SyntaxTrees.First(); 1894var tree = comp.SyntaxTrees.First(); 1924var tree = comp.SyntaxTrees.First(); 1976var tree = comp.SyntaxTrees.First(); 2034var tree = comp.SyntaxTrees.First(); 2069var tree = comp.SyntaxTrees.First(); 2123var tree = comp.SyntaxTrees.First(); 2215var tree = comp.SyntaxTrees.First(); 2512var tree = comp.SyntaxTrees.First(); 2563var tree = comp.SyntaxTrees.First(); 2920var tree = comp.SyntaxTrees.First(); 3213var tree = comp.SyntaxTrees.First(); 4155var tree = comp.SyntaxTrees.First(); 4182var tree = comp.SyntaxTrees.First(); 4528var tree = compilation.SyntaxTrees.Single(); 4571var tree = compilation.SyntaxTrees.Single();
Semantics\ImportsTests.cs (1)
112var tree = comp.SyntaxTrees.Single();
Semantics\IndexAndRangeTests.cs (9)
895var tree = compilation.SyntaxTrees.Single(); 915var tree = compilation.SyntaxTrees.Single(); 936var tree = compilation.SyntaxTrees.Single(); 1119var tree = compilation.SyntaxTrees.Single(); 1248var tree = compilation.SyntaxTrees.Single(); 1281var tree = compilation.SyntaxTrees.Single(); 1314var tree = compilation.SyntaxTrees.Single(); 1338var tree = compilation.SyntaxTrees.Single(); 1381var tree = compilation.SyntaxTrees.Single();
Semantics\InitOnlyMemberTests.cs (4)
2517var tree = comp.SyntaxTrees[0]; 3136var tree = compilation.SyntaxTrees[0]; 3189var tree = comp.SyntaxTrees[0]; 4140var tree = comp.SyntaxTrees[0];
Semantics\InteractiveSemanticModelTests.cs (2)
39var tree = compilation.SyntaxTrees[0]; 358var tree = compilation.SyntaxTrees[0];
Semantics\InteractiveUsingTests.cs (1)
115var tree = sub4.SyntaxTrees.Single();
Semantics\InterpolationTests.cs (2)
4597var tree = comp.SyntaxTrees[0]; 4823var tree = comp.SyntaxTrees[0];
Semantics\IteratorTests.cs (5)
457var tree = comp.SyntaxTrees[0]; 480var tree = comp.SyntaxTrees[0]; 577var tree = comp.SyntaxTrees.Single(); 608var tree = comp.SyntaxTrees[0]; 646var tree = comp.SyntaxTrees[0];
Semantics\LambdaDiscardParametersTests.cs (7)
67var tree = comp.SyntaxTrees.Single(); 384var tree = comp.SyntaxTrees[0]; 416var tree = comp.SyntaxTrees.Single(); 446var tree = comp.SyntaxTrees.Single(); 480var tree = comp.SyntaxTrees.Single(); 511var tree = comp.SyntaxTrees.Single(); 565var tree = comp.SyntaxTrees.Single();
Semantics\LambdaTests.cs (53)
938var tree = compilation.SyntaxTrees.Single(); 1030var tree = compilation.SyntaxTrees.Single(); 1084var tree = compilation.SyntaxTrees.Single(); 1119var tree = compilation.SyntaxTrees.Single(); 1512var tree = compilation.SyntaxTrees.Single(); 1547var tree = compilation.SyntaxTrees.Single(); 1581var tree = compilation.SyntaxTrees.Single(); 1613var tree = compilation.SyntaxTrees.Single(); 1976var tree = compilation.SyntaxTrees[0]; 2118var tree = compilation.SyntaxTrees[0]; 2164var tree = compilation.SyntaxTrees[0]; 2210var tree = compilation.SyntaxTrees[0]; 2256var tree = compilation.SyntaxTrees[0]; 2302var tree = compilation.SyntaxTrees[0]; 2332var tree = compilation.SyntaxTrees[0]; 2359var tree = compilation.SyntaxTrees[0]; 2413var tree = compilation.SyntaxTrees[0]; 2459var tree = compilation.SyntaxTrees[0]; 2505var tree = compilation.SyntaxTrees[0]; 2538var tree = compilation.SyntaxTrees[0]; 2571var tree = compilation.SyntaxTrees[0]; 2608var tree = compilation.SyntaxTrees[0]; 2660var tree = compilation.SyntaxTrees[0]; 3610var tree = comp.SyntaxTrees[0]; 3891var tree = comp.SyntaxTrees[0]; 3935var tree = comp.SyntaxTrees.Single(); 3975var tree = comp.SyntaxTrees.Single(); 4091var tree = comp.SyntaxTrees[0]; 4120var tree = comp.SyntaxTrees[0]; 4155var tree = comp.SyntaxTrees[0]; 4183var tree = comp.SyntaxTrees[0]; 4210var tree = comp.SyntaxTrees[0]; 4785var tree = comp.SyntaxTrees[0]; 4870var tree = comp.SyntaxTrees[0]; 4925var tree = comp.SyntaxTrees[0]; 4952var tree = comp.SyntaxTrees[0]; 4980var tree = comp.SyntaxTrees[0]; 5026var tree = comp.SyntaxTrees[0]; 5634var tree = comp.SyntaxTrees[0]; 6507var tree = comp.SyntaxTrees.Single(); 6817var tree = comp.SyntaxTrees.Single(); 6846var tree = comp.SyntaxTrees.Single(); 6895var tree = comp.SyntaxTrees[0]; 7010var syntaxTree = comp.SyntaxTrees[0]; 7104var syntaxTree = comp.SyntaxTrees[0]; 7634var tree = comp.SyntaxTrees[0]; 8008var tree = comp.SyntaxTrees[0]; 8056var tree = comp.SyntaxTrees[0]; 8080var tree = comp.SyntaxTrees.Single(); 8116var tree = comp.SyntaxTrees.Single(); 8153var tree = comp.SyntaxTrees.Single(); 8358var tree = comp.SyntaxTrees[0]; 8391var tree = comp.SyntaxTrees[0];
Semantics\LocalFunctionTests.cs (40)
490var tree = comp.SyntaxTrees.Single(); 538var tree = comp.SyntaxTrees.Single(); 615var tree = comp.SyntaxTrees.Single(); 668var tree = comp.SyntaxTrees.Single(); 722var tree = comp.SyntaxTrees.Single(); 802var tree = comp.SyntaxTrees.Single(); 849var tree = comp.SyntaxTrees.Single(); 967var tree = comp.SyntaxTrees.Single(); 1019var tree = comp.SyntaxTrees.Single(); 1057var tree = comp.SyntaxTrees.Single(); 2371var tree = comp.SyntaxTrees.Single(); 2585var tree = comp.SyntaxTrees[0]; 4684var tree = compilation.SyntaxTrees[0]; 4722var tree = compilation.SyntaxTrees[0]; 4959var tree = compilation.SyntaxTrees.Single(); 5102var tree = comp.SyntaxTrees.Single(); 6358var tree = comp.SyntaxTrees[0]; 6379var tree = comp.SyntaxTrees[0]; 6407var tree = comp.SyntaxTrees[0]; 6443var tree = comp.SyntaxTrees[0]; 6487var tree = comp.SyntaxTrees[0]; 6534var tree = comp.SyntaxTrees[0]; 7036var tree = comp.SyntaxTrees[0]; 7096var tree = comp.SyntaxTrees[0]; 7342var tree = comp.SyntaxTrees.Single(); 7430var tree = comp.SyntaxTrees.Single(); 7495var tree = comp.SyntaxTrees.Single(); 7519tree = comp.SyntaxTrees.Single(); 7569var tree = comp.SyntaxTrees.Single(); 7637var tree = comp.SyntaxTrees.First(); 8682var tree = comp.SyntaxTrees.First(); 8735var tree = comp.SyntaxTrees.Single(); 8777var tree = comp.SyntaxTrees.Single(); 8925var tree = comp.SyntaxTrees.Single(); 9429var tree = comp.SyntaxTrees.Single(); 9550var tree = comp.SyntaxTrees.First(); 9747var tree = comp.SyntaxTrees.Single(); 10170var tree = comp.SyntaxTrees.First(); 10382var tree = compilation.SyntaxTrees[0]; 10426var tree = comp.SyntaxTrees.Single();
Semantics\LockTests.cs (7)
42var tree = compilation.SyntaxTrees.Single(); 486var tree = compilation.SyntaxTrees.Single(); 548var tree = compilation.SyntaxTrees.Single(); 572var tree = compilation.SyntaxTrees.Single(); 602var tree = compilation.SyntaxTrees.Single(); 626var tree = compilation.SyntaxTrees.Single(); 696var tree = compilation.SyntaxTrees.Single();
Semantics\LookupPositionTests.cs (3)
2271var tree = compilation.SyntaxTrees.Single(); 2299var tree = compilation.SyntaxTrees.Single(); 3117var tree = compilation.SyntaxTrees[0];
Semantics\LookupTests.cs (18)
28var tree = compilation.SyntaxTrees.Single(); 425var tree = comp.SyntaxTrees.Single(); 581var tree = comp.SyntaxTrees.Single(); 1499var tree = compilation.SyntaxTrees[0]; 1560var tree = compilation.SyntaxTrees[0]; 1592var tree = compilation.SyntaxTrees[0]; 1640var tree = compilation.SyntaxTrees[0]; 1667var tree = compilation.SyntaxTrees[0]; 1722var tree = comp.SyntaxTrees.Single(); 1756var tree = comp.SyntaxTrees.Single(); 1787var tree = comp.SyntaxTrees.Single(); 1819var tree = comp.SyntaxTrees.Single(); 1980var tree = comp.SyntaxTrees.Single(); 2011var tree = comp.SyntaxTrees.Single(); 2041var tree = comp.SyntaxTrees.Single(); 2071var tree = comp.SyntaxTrees.Single(); 2097var tree = comp.SyntaxTrees.Single(); 2120var tree = comp.SyntaxTrees.Single();
Semantics\MethodTypeInferenceTests.cs (8)
699var tree = comp.SyntaxTrees.Single(); 754var tree = comp.SyntaxTrees.Single(); 800var tree = comp.SyntaxTrees.Single(); 1044var tree = comp.SyntaxTrees.Single(); 1074var tree = comp.SyntaxTrees.Single(); 1116var tree = compilation.SyntaxTrees.Single(); 1157var tree = compilation.SyntaxTrees.Single(); 1198var tree = compilation.SyntaxTrees.Single();
Semantics\NameOfTests.cs (14)
683var tree = compilation.SyntaxTrees[0]; 709var tree = compilation.SyntaxTrees[0]; 744var tree = compilation.SyntaxTrees[0]; 791var tree = compilation.SyntaxTrees[0]; 828var tree = compilation.SyntaxTrees[0]; 864var tree = compilation.SyntaxTrees[0]; 910var tree = compilation.SyntaxTrees[0]; 943var tree = compilation.SyntaxTrees[0]; 974var tree = comp.SyntaxTrees.Single(); 1046var tree = comp.SyntaxTrees.Single(); 1128var tree = comp.SyntaxTrees.Single(); 1209var tree = comp.SyntaxTrees.Single(); 1420var tree = compilation.SyntaxTrees[0]; 3038var tree = compilation.SyntaxTrees.Single();
Semantics\NativeIntegerTests.cs (19)
1787var tree = comp.SyntaxTrees[0]; 2344var tree = comp.SyntaxTrees[0]; 2464var tree = compB.SyntaxTrees[0]; 3633var tree = comp.SyntaxTrees[0]; 4073var tree = comp.SyntaxTrees.Single(); 4116var tree = comp.SyntaxTrees[0]; 6059var tree = comp.SyntaxTrees[0]; 6107var tree = comp.SyntaxTrees[0]; 9493var tree = comp.SyntaxTrees[0]; 9728var tree = comp.SyntaxTrees[0]; 10102var tree = comp.SyntaxTrees[0]; 10329var tree = comp.SyntaxTrees[0]; 12379var tree = comp.SyntaxTrees[0]; 15315var tree = comp.SyntaxTrees.Single(); 15336var tree = comp.SyntaxTrees.Single(); 15359var tree = comp.SyntaxTrees.Single(); 15387var tree = comp.SyntaxTrees.Single(); 15410var tree = comp.SyntaxTrees.Single(); 15440var tree = comp.SyntaxTrees.Single();
Semantics\NonTrailingNamedArgumentsTests.cs (11)
365var tree = comp.SyntaxTrees.First(); 421var tree = comp.SyntaxTrees.First(); 453var tree = comp.SyntaxTrees.First(); 482var tree = comp.SyntaxTrees.First(); 532var tree = comp.SyntaxTrees.First(); 567var tree = comp.SyntaxTrees.First(); 596var tree = comp.SyntaxTrees.First(); 650var tree = comp.SyntaxTrees.First(); 677var tree = comp.SyntaxTrees.First(); 708var tree = comp.SyntaxTrees.First(); 981var tree = comp.SyntaxTrees.First();
Semantics\NullableContextTests.cs (16)
64var syntaxTree = comp.SyntaxTrees[0]; 97var syntaxTree1 = comp.SyntaxTrees[0]; 99var syntaxTree2 = comp.SyntaxTrees[1]; 348var syntaxTree = comp.SyntaxTrees[0]; 387var syntaxTree = comp.SyntaxTrees[0]; 422var syntaxTree = comp.SyntaxTrees[0]; 578var tree = (CSharpSyntaxTree)comp.SyntaxTrees[0]; 730var tree = (CSharpSyntaxTree)comp.SyntaxTrees[0]; 1769var syntaxTree = comp.SyntaxTrees[0]; 1839var syntaxTree = comp.SyntaxTrees[0]; 1876var syntaxTree = comp.SyntaxTrees[0]; 1925var syntaxTree = comp.SyntaxTrees[0]; 1967var syntaxTree = comp.SyntaxTrees[0]; 2007var syntaxTree = comp.SyntaxTrees[0]; 2046var syntaxTree = comp.SyntaxTrees[0]; 2226var syntaxTree = comp.SyntaxTrees[0];
Semantics\NullableConversionTests.cs (1)
803var syntaxTree = compilation.SyntaxTrees.First();
Semantics\NullableReferenceTypesTests.cs (114)
1751var tree = comp.SyntaxTrees.Single(); 1785var tree = comp.SyntaxTrees.Single(); 1838var tree = comp.SyntaxTrees.Single(); 1865var tree = comp.SyntaxTrees.Single(); 1890var tree = comp.SyntaxTrees.Single(); 1960var tree = comp.SyntaxTrees.Single(); 2273var tree = comp.SyntaxTrees.Single(); 2312var tree = comp.SyntaxTrees.Single(); 2345var tree = comp.SyntaxTrees.Single(); 2378var tree = comp.SyntaxTrees.Single(); 2477var tree = comp.SyntaxTrees.Single(); 3332var tree = compilation.SyntaxTrees[0]; 3691var tree = comp.SyntaxTrees[0]; 4524var tree = comp.SyntaxTrees.Single(); 4560var tree = comp.SyntaxTrees.Single(); 4592var tree = comp.SyntaxTrees.Single(); 5168var syntaxTree = comp.SyntaxTrees[0]; 10532var tree = compilation.SyntaxTrees.Single(); 13509var tree = compilation.SyntaxTrees[0]; 34981var tree = compilation.SyntaxTrees.First(); 34998var tree = compilation.SyntaxTrees.First(); 56074var tree = comp.SyntaxTrees.Single(); 56104var tree = comp.SyntaxTrees.Single(); 56137var tree = comp.SyntaxTrees.Single(); 56174var tree = comp.SyntaxTrees.Single(); 56209var tree = comp.SyntaxTrees.Single(); 56243var tree = comp.SyntaxTrees.Single(); 56274var tree = comp.SyntaxTrees.Single(); 56302var tree = comp.SyntaxTrees.Single(); 56341var tree = comp.SyntaxTrees.Single(); 56375var tree = comp.SyntaxTrees.Single(); 56406var tree = comp.SyntaxTrees.Single(); 56435var tree = comp.SyntaxTrees.Single(); 56470var tree = comp.SyntaxTrees.Single(); 56506var tree = comp.SyntaxTrees.Single(); 56585var tree = comp.SyntaxTrees.Single(); 56617var tree = comp.SyntaxTrees.Single(); 59015var tree = comp.SyntaxTrees[0]; 59049var tree = comp.SyntaxTrees[0]; 59077var tree = comp.SyntaxTrees[0]; 59109var tree = comp.SyntaxTrees[0]; 59138var tree = comp.SyntaxTrees[0]; 59171var tree = comp.SyntaxTrees[0]; 59203var tree = comp.SyntaxTrees[0]; 59236var tree = comp.SyntaxTrees[0]; 59270var tree = comp.SyntaxTrees[0]; 59296var tree = comp.SyntaxTrees[0]; 59325var tree = comp.SyntaxTrees[0]; 59354var tree = comp.SyntaxTrees[0]; 62838var syntaxTree = comp.SyntaxTrees.Single(); 65887var tree1 = comp1.SyntaxTrees.Single(); 71250var tree = comp.SyntaxTrees[0]; 71286var tree = comp.SyntaxTrees[0]; 71327var tree = comp.SyntaxTrees[0]; 71364var tree = comp.SyntaxTrees[0]; 71401var tree = comp.SyntaxTrees[0]; 71436var tree = comp.SyntaxTrees[0]; 71469var tree = comp.SyntaxTrees[0]; 71506var tree = comp.SyntaxTrees[0]; 71779var tree = comp.SyntaxTrees.Single(); 71872var tree = comp.SyntaxTrees.Single(); 71919var tree = comp.SyntaxTrees.Single(); 71958var tree = comp.SyntaxTrees.Single(); 73759var tree = comp.SyntaxTrees.Single(); 81257var tree = comp.SyntaxTrees[0]; 94279var syntaxTree = comp.SyntaxTrees[0]; 97754var tree = comp.SyntaxTrees.First(); 99083var tree = comp.SyntaxTrees.First(); 111767var tree = comp.SyntaxTrees.First(); 111821var tree = comp.SyntaxTrees.First(); 113190var tree = comp.SyntaxTrees.First(); 113591var tree = comp.SyntaxTrees.Single(); 113622var tree = comp.SyntaxTrees.Single(); 113800var tree = comp.SyntaxTrees.Single(); 114025var tree = comp.SyntaxTrees.Single(); 145374var tree = comp.SyntaxTrees.Single(); 145415var tree = comp.SyntaxTrees.Single(); 145455var tree = comp.SyntaxTrees.Single(); 145493var tree = comp.SyntaxTrees.Single(); 145531var tree = comp.SyntaxTrees.Single(); 145570var tree = comp.SyntaxTrees.Single(); 145603var tree = comp.SyntaxTrees.Single(); 145635var tree = comp.SyntaxTrees.Single(); 145674var tree = comp.SyntaxTrees.Single(); 145950var tree = comp.SyntaxTrees.Single(); 145981var tree = comp.SyntaxTrees.Single(); 146014var tree = comp.SyntaxTrees.Single(); 146297var tree = comp.SyntaxTrees.Single(); 146336var tree = comp.SyntaxTrees.Single(); 146376var tree = comp.SyntaxTrees.Single(); 146415var tree = comp.SyntaxTrees.Single(); 146450var tree = comp.SyntaxTrees.Single(); 154799var tree = comp.SyntaxTrees[0]; 154867var tree = comp.SyntaxTrees[0]; 155995var tree = comp.SyntaxTrees.Single(); 156744var tree = comp.SyntaxTrees.Single(); 157579var tree = comp.SyntaxTrees.Single(); 157627var tree = comp.SyntaxTrees.Single(); 158059var tree = comp.SyntaxTrees.Single(); 158095var tree = comp.SyntaxTrees.Single(); 158190var tree = comp.SyntaxTrees.Single(); 158228var tree = comp.SyntaxTrees.Single(); 158269var tree = comp.SyntaxTrees.Single(); 158309var tree = comp.SyntaxTrees.Single(); 158343var tree = comp.SyntaxTrees.Single(); 158380var tree = comp.SyntaxTrees.Single(); 158475var tree = comp.SyntaxTrees.Single(); 158523var tree = comp.SyntaxTrees.Single(); 158565var tree = comp.SyntaxTrees.Single(); 158602var tree = comp.SyntaxTrees.Single(); 158813var tree = comp.SyntaxTrees.Single(); 160688var tree = comp.SyntaxTrees.Single(); 161238var syntaxTree = comp.SyntaxTrees.Single(); 161284var syntaxTree = comp.SyntaxTrees.Single();
Semantics\NullCoalesceAssignmentTests.cs (5)
35var syntaxTree = comp.SyntaxTrees.Single(); 73var syntaxTree = comp.SyntaxTrees.Single(); 116var syntaxTree = comp.SyntaxTrees.Single(); 155var syntaxTree = comp.SyntaxTrees.Single(); 181var syntaxTree = comp.SyntaxTrees.Single();
Semantics\ObjectAndCollectionInitializerTests.cs (17)
3468var tree = compilation.SyntaxTrees.Single(); 3516var tree = compilation.SyntaxTrees.Single(); 3573var tree = compilation.SyntaxTrees.Single(); 3609var tree = compilation.SyntaxTrees.Single(); 3646var tree = compilation.SyntaxTrees.Single(); 3687var tree = compilation.SyntaxTrees.Single(); 3737var tree = compilation.SyntaxTrees.Single(); 3781var tree = compilation.SyntaxTrees.Single(); 3812var syntax = comp.SyntaxTrees[0]; 3835var syntax = comp.SyntaxTrees[0]; 3859var syntax = comp.SyntaxTrees[0]; 3932var tree = compilation.SyntaxTrees.Single(); 4014var tree = compilation.SyntaxTrees.Single(); 4056var tree = compilation.SyntaxTrees.Single(); 4134var tree = compilation.SyntaxTrees.Single(); 4224var tree = comp.SyntaxTrees.Single(); 4278var tree = comp.SyntaxTrees.Single();
Semantics\OperatorTests.cs (18)
44var tree = compilation.SyntaxTrees.Single(); 2982var tree = compilation.SyntaxTrees.Single(); 6936var tree = comp.SyntaxTrees.Single(); 7053var tree = comp.SyntaxTrees.Single(); 7208var tree = comp.SyntaxTrees.Single(); 7328var tree = comp.SyntaxTrees[0]; 7485var tree = compilation.SyntaxTrees.Single(); 7701var tree = compilation.SyntaxTrees.Single(); 7854var tree = compilation.SyntaxTrees.Single(); 8014var tree = compilation.SyntaxTrees.Single(); 8551var tree = compilation.SyntaxTrees.Single(); 8586var tree = compilation.SyntaxTrees.Single(); 8630var tree = compilation.SyntaxTrees.Single(); 8680var tree = compilation.SyntaxTrees.Single(); 8754var tree = compilation.SyntaxTrees.Single(); 8811var tree = compilation.SyntaxTrees[0]; 11336var tree = compilation.SyntaxTrees.Single(); 11415var tree = comp.SyntaxTrees[0];
Semantics\OverloadResolutionPerfTests.cs (2)
980var tree = comp.SyntaxTrees.Single(); 1058var tree = comp.SyntaxTrees.Single();
Semantics\OverloadResolutionTests.cs (12)
7146var tree = comp.SyntaxTrees.Single(); 7256var tree = comp.SyntaxTrees.Single(); 7430var tree = comp.SyntaxTrees.Single(); 7471var tree = comp.SyntaxTrees.Single(); 9068var tree = compilation.SyntaxTrees.Single(); 9416var tree = comp.SyntaxTrees.Single(); 11752verify(comp, comp.SyntaxTrees[2]); 11758verify(comp, comp.SyntaxTrees[0]); 11801verify(comp, comp.SyntaxTrees[2]); 11807verify(comp, comp.SyntaxTrees[0]); 11851verify(comp, comp.SyntaxTrees[2]); 11857verify(comp, comp.SyntaxTrees[0]);
Semantics\QueryTests.cs (31)
1451var tree = compilation.SyntaxTrees[0]; 1660var tree = compilation.SyntaxTrees[0]; 1720var tree = compilation.SyntaxTrees[0]; 1758var tree = compilation.SyntaxTrees[0]; 2174var tree = compilation.SyntaxTrees[0]; 2204var tree = compilation.SyntaxTrees[0]; 2230var tree = compilation.SyntaxTrees[0]; 2269var tree = compilation.SyntaxTrees[0]; 2297var tree = compilation.SyntaxTrees[0]; 2322var tree = compilation.SyntaxTrees[0]; 2354var tree = compilation.SyntaxTrees[0]; 2381var tree = compilation.SyntaxTrees[0]; 2425var tree = compilation.SyntaxTrees[0]; 2481var tree = compilation.SyntaxTrees[0]; 2519var tree = compilation.SyntaxTrees[0]; 2545var tree = compilation.SyntaxTrees[0]; 2580var tree = compilation.SyntaxTrees[0]; 2660var tree = compilation.SyntaxTrees[0]; 2688var tree = compilation.SyntaxTrees[0]; 2714var tree = compilation.SyntaxTrees[0]; 2740var tree = compilation.SyntaxTrees[0]; 2895var tree = compilation.SyntaxTrees[0]; 2928var tree = compilation.SyntaxTrees[0]; 3132var tree = compilation.SyntaxTrees.First(); 3160var tree = compilation.SyntaxTrees.First(); 3373var tree = compilation.SyntaxTrees[0]; 3418var tree = compilation.SyntaxTrees[0]; 3462var tree = compilation.SyntaxTrees[0]; 3509var tree = compilation.SyntaxTrees[0]; 3548var tree = compilation.SyntaxTrees[0]; 3596var tree = compilation.SyntaxTrees[0];
Semantics\RawInterpolationTests_Handler.cs (2)
2898var tree = comp.SyntaxTrees[0]; 3124var tree = comp.SyntaxTrees[0];
Semantics\RecordStructTests.cs (20)
532var tree = comp.SyntaxTrees.First(); 552var tree = comp.SyntaxTrees.First(); 572var tree = comp.SyntaxTrees.First(); 594var tree = comp.SyntaxTrees.First(); 2305var tree = comp.SyntaxTrees.Single(); 2329var tree = comp.SyntaxTrees.Single(); 2591var tree = comp.SyntaxTrees.First(); 2626var tree = comp.SyntaxTrees.First(); 2660var tree = comp.SyntaxTrees.First(); 2695var tree = comp.SyntaxTrees.First(); 3241var tree = comp.SyntaxTrees.Single(); 3283var tree = comp.SyntaxTrees.Single(); 3331var tree = comp.SyntaxTrees.Single(); 3382var tree = comp.SyntaxTrees.Single(); 5847var tree = comp.SyntaxTrees[0]; 5889var tree = comp.SyntaxTrees[0]; 6923var tree = comp.SyntaxTrees.First(); 7604var tree = comp.SyntaxTrees.First(); 8809var tree = comp.SyntaxTrees.Single(); 10768var tree = comp.SyntaxTrees.First();
Semantics\RefEscapingTests.cs (2)
5714var tree = compilation.SyntaxTrees[0]; 5814var tree = compilation.SyntaxTrees[0];
Semantics\RefExtensionMethodsTests.cs (4)
2142var tree = comp.SyntaxTrees.Single(); 2161var tree = comp.SyntaxTrees.Single(); 2180var tree = comp.SyntaxTrees.Single(); 2199var tree = comp.SyntaxTrees.Single();
Semantics\RefFieldTests.cs (57)
11023var tree = comp.SyntaxTrees[0]; 11097var tree = comp.SyntaxTrees[0]; 11219var tree = comp.SyntaxTrees[0]; 11387var tree = comp.SyntaxTrees[0]; 11979var tree = comp.SyntaxTrees[0]; 12059var tree = comp.SyntaxTrees[0]; 12128var tree = comp.SyntaxTrees[0]; 12196var tree = comp.SyntaxTrees[0]; 12378var tree = comp.SyntaxTrees[0]; 12565var tree = comp.SyntaxTrees[0]; 12791var tree = comp.SyntaxTrees[0]; 12974var tree = comp.SyntaxTrees[0]; 13149var tree = comp.SyntaxTrees[0]; 13204var tree = comp.SyntaxTrees[0]; 13263var tree = comp.SyntaxTrees[0]; 13306var tree = comp.SyntaxTrees[0]; 13335var tree = comp.SyntaxTrees[0]; 13360var tree = comp.SyntaxTrees[0]; 13380var tree = comp.SyntaxTrees[0]; 13402var tree = comp.SyntaxTrees[0]; 13437var tree = comp.SyntaxTrees[0]; 13501var tree = comp.SyntaxTrees[0]; 13577var tree = comp.SyntaxTrees[0]; 13648var tree = comp.SyntaxTrees[0]; 13712var tree = comp.SyntaxTrees[0]; 14353var tree = comp.SyntaxTrees[0]; 14395var tree = comp.SyntaxTrees[0]; 14520var tree = comp.SyntaxTrees[0]; 14596var tree = comp.SyntaxTrees[0]; 14841var tree = comp.SyntaxTrees[0]; 15049var tree = comp.SyntaxTrees[0]; 15075var tree = comp.SyntaxTrees[0]; 15130var tree = comp.SyntaxTrees[0]; 16548var tree = comp.SyntaxTrees.Single(); 16589var tree = comp.SyntaxTrees.Single(); 16628var tree = comp.SyntaxTrees.Single(); 16724var tree = comp.SyntaxTrees.Single(); 16771var syntaxTree = comp.SyntaxTrees[0]; 17944var tree = comp.SyntaxTrees[0]; 22829var tree = comp.SyntaxTrees[0]; 22897var tree = comp.SyntaxTrees[0]; 23899var tree = comp.SyntaxTrees[0]; 23935var tree = comp.SyntaxTrees[0]; 23972var tree = comp.SyntaxTrees[0]; 24739var tree = comp.SyntaxTrees[0]; 26784var tree = comp.SyntaxTrees[0]; 26836var tree = comp.SyntaxTrees[0]; 26888var tree = comp.SyntaxTrees[0]; 27045var tree = comp.SyntaxTrees[0]; 27135var tree = comp.SyntaxTrees[0]; 27255var tree = comp.SyntaxTrees[0]; 27356var tree = comp.SyntaxTrees[0]; 27401var tree = comp.SyntaxTrees[0]; 27461var tree = comp.SyntaxTrees[0]; 27691var tree = comp.SyntaxTrees[0]; 27739var tree = comp.SyntaxTrees[0]; 28829var tree = comp.SyntaxTrees[0];
Semantics\RefLocalsAndReturnsTests.cs (10)
4749var tree = compilation.SyntaxTrees.Single(); 4777var tree = compilation.SyntaxTrees.Single(); 4805var tree = compilation.SyntaxTrees.Single(); 4833var tree = compilation.SyntaxTrees.Single(); 4861var tree = compilation.SyntaxTrees.Single(); 4889var tree = compilation.SyntaxTrees.Single(); 4923var tree = compilation.SyntaxTrees.Single(); 5208var tree = comp.SyntaxTrees[0]; 5252var tree = comp.SyntaxTrees[0]; 5291var tree = comp.SyntaxTrees[0];
Semantics\ScriptSemanticsTests.cs (4)
236var tree = compilation.SyntaxTrees.Single(); 509var model = submission.GetSemanticModel(submission.SyntaxTrees.Single()); 553var tree = compilation.SyntaxTrees.Single(); 589var tree = compilation.SyntaxTrees.Single();
Semantics\SemanticErrorTests.cs (4)
7487var tree = compilation.SyntaxTrees.Single(); 13326var tree = compilation2.SyntaxTrees.Single(); 16645compilation.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, compilation.SyntaxTrees.Single(), filterSpanWithinTree: null, includeEarlierStages: true).Verify(expected); 24223var tree = compilation.SyntaxTrees.Single();
Semantics\StackAllocInitializerTests.cs (9)
364var tree = comp.SyntaxTrees.Single(); 440var tree = comp.SyntaxTrees.Single(); 1042var tree = comp.SyntaxTrees.Single(); 1144var tree = comp.SyntaxTrees.Single(); 2356var tree = comp.SyntaxTrees.Single(); 2462var tree = comp.SyntaxTrees.Single(); 2562var tree = comp.SyntaxTrees.Single(); 2646var tree = comp.SyntaxTrees.Single(); 2716var tree = comp.SyntaxTrees[0];
Semantics\StackAllocSpanExpressionsTests.cs (2)
50var tree = comp.SyntaxTrees.Single(); 124var tree = comp.SyntaxTrees.Single();
Semantics\StructConstructorTests.cs (3)
1048var tree = comp.SyntaxTrees.Single(); 1143var tree = comp.SyntaxTrees.Single(); 1240var tree = comp.SyntaxTrees.Single();
Semantics\SuppressAccessibilityChecksTests.cs (3)
46var syntaxTree = compilationB.SyntaxTrees[0]; 166var syntaxTree = compilationB.SyntaxTrees[0]; 211var tree = compilation.SyntaxTrees[0];
Semantics\TargetTypedConditionalOperatorTests.cs (2)
666var tree = comp.SyntaxTrees[0]; 687var tree = comp.SyntaxTrees[0];
Semantics\TargetTypedDefaultTests.cs (32)
40var tree = comp.SyntaxTrees.First(); 140var tree = comp.SyntaxTrees.First(); 192var tree = comp.SyntaxTrees.First(); 240var tree = comp.SyntaxTrees.First(); 277var tree = comp.SyntaxTrees.First(); 322var tree = comp.SyntaxTrees.First(); 516var tree = comp.SyntaxTrees.First(); 562var tree = comp.SyntaxTrees.First(); 605var tree = comp.SyntaxTrees.First(); 663var tree = comp.SyntaxTrees.First(); 744var tree = comp.SyntaxTrees.First(); 833var tree = comp.SyntaxTrees.First(); 862var tree = comp.SyntaxTrees.First(); 1138var tree = comp.SyntaxTrees.First(); 1253var tree = comp.SyntaxTrees.First(); 1627var tree = comp.SyntaxTrees.First(); 1732var tree = comp.SyntaxTrees.First(); 1798var tree = comp.SyntaxTrees.First(); 1869var tree = comp.SyntaxTrees.First(); 1907var tree = comp.SyntaxTrees.First(); 2086var tree = comp.SyntaxTrees.First(); 2329var tree = comp.SyntaxTrees.First(); 2410var tree = comp.SyntaxTrees.First(); 2453var tree = comp.SyntaxTrees.First(); 2479var tree = comp.SyntaxTrees.First(); 3053var tree = comp.SyntaxTrees.First(); 3340var tree = comp.SyntaxTrees.Last(); 3379var tree = comp.SyntaxTrees.First(); 3510var tree = comp.SyntaxTrees.First(); 3572var tree = comp.SyntaxTrees.First(); 3669var tree = comp.SyntaxTrees.First(); 3709var tree = comp.SyntaxTrees.First();
Semantics\TopLevelStatementsTests.cs (57)
181verifyModel(comp, comp.SyntaxTrees[0]); 184verifyModel(comp, comp.SyntaxTrees[0], nullableEnabled: true); 291verifyModel(comp, comp.SyntaxTrees[0], comp.SyntaxTrees[1]); 306verifyModel(comp, comp.SyntaxTrees[1], comp.SyntaxTrees[0]); 309verifyModel(comp, comp.SyntaxTrees[0], comp.SyntaxTrees[1], nullableEnabled: true); 372var isInvalid = comp.SyntaxTrees[1] == tree2 ? ", IsInvalid" : ""; 453verifyModel(comp, comp.SyntaxTrees[0], comp.SyntaxTrees[1]); 474verifyModel(comp, comp.SyntaxTrees[1], comp.SyntaxTrees[0]); 528var tree1 = comp.SyntaxTrees[0]; 566verifyModel(comp, comp.SyntaxTrees[0]); 696var tree = comp.SyntaxTrees.Single(); 869var tree1 = comp.SyntaxTrees[0]; 875var tree2 = comp.SyntaxTrees[1]; 983var tree1 = comp.SyntaxTrees[0]; 1038var tree1 = comp.SyntaxTrees[0]; 1405var tree2 = comp.SyntaxTrees[1]; 1423tree2 = comp.SyntaxTrees[0]; 1519var tree = comp.SyntaxTrees.Single(); 1589var tree = comp.SyntaxTrees[0]; 1683var tree1 = comp.SyntaxTrees[0]; 1713var tree = comp.SyntaxTrees[0]; 1856var tree1 = comp.SyntaxTrees[0]; 1879var tree2 = comp.SyntaxTrees[1]; 2082var tree1 = comp.SyntaxTrees[0]; 2246var tree1 = comp.SyntaxTrees[0]; 2264var tree2 = comp.SyntaxTrees[1]; 2424var tree1 = comp.SyntaxTrees[0]; 2916var tree1 = comp.SyntaxTrees[0]; 2939var tree2 = comp.SyntaxTrees[1]; 3939var tree = comp.SyntaxTrees[0]; 4088var tree = comp.SyntaxTrees[1]; 4213var tree = comp.SyntaxTrees.Single(); 4508var tree1 = comp.SyntaxTrees[0]; 4514var tree2 = comp.SyntaxTrees[1]; 4572var tree1 = comp.SyntaxTrees[0]; 4621var tree1 = comp.SyntaxTrees[0]; 4891var tree = comp.SyntaxTrees.Single(); 4948var tree1 = comp.SyntaxTrees[0]; 4954var tree2 = comp.SyntaxTrees[1]; 4976var tree = comp.SyntaxTrees.Single(); 6027var tree1 = comp.SyntaxTrees[0]; 6231var syntaxTree = comp.SyntaxTrees.Single(); 6275var syntaxTree = comp.SyntaxTrees.Single(); 6315var syntaxTree1 = comp.SyntaxTrees.Single(); 6365var syntaxTree1 = comp.SyntaxTrees.First(); 6367var syntaxTree2 = comp.SyntaxTrees[1]; 8576var tree = comp.SyntaxTrees.Single(); 8649var tree = comp.SyntaxTrees.Single(); 8671var tree = comp.SyntaxTrees.Single(); 8693var tree = comp.SyntaxTrees.Single(); 9676var tree = compilation.SyntaxTrees[0]; 9701var tree = compilation.SyntaxTrees[0];
Semantics\TryCatchTests.cs (1)
42var tree = compilation.SyntaxTrees.Single();
Semantics\TypeOfTests.cs (1)
31var tree = compilation.SyntaxTrees[0];
Semantics\UninitializedNonNullableFieldTests.cs (10)
2465comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true) 2468comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[1], filterSpanWithinTree: null, includeEarlierStages: true) 2495comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true) 2501comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[1], filterSpanWithinTree: null, includeEarlierStages: true) 2533comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true) 2536comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[1], filterSpanWithinTree: null, includeEarlierStages: true) 2559comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true) 2565comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[1], filterSpanWithinTree: null, includeEarlierStages: true) 2597comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true) 2600comp.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp.SyntaxTrees[1], filterSpanWithinTree: null, includeEarlierStages: true)
Semantics\UnsafeTests.cs (27)
5196var tree = compilation.SyntaxTrees.Single(); 5380var tree = compilation.SyntaxTrees.Single(); 7254var tree = compilation.SyntaxTrees.Single(); 7291var tree = compilation.SyntaxTrees.Single(); 7320var tree = compilation.SyntaxTrees.Single(); 7358var tree = compilation.SyntaxTrees.Single(); 7401var tree = compilation.SyntaxTrees.Single(); 7532var tree = compilation.SyntaxTrees.Single(); 7842var tree = compilation.SyntaxTrees.Single(); 7909var tree = compilation.SyntaxTrees.Single(); 8155var tree = compilation.SyntaxTrees.Single(); 8222var tree = compilation.SyntaxTrees.Single(); 8280var tree = compilation.SyntaxTrees.Single(); 8340var tree = compilation.SyntaxTrees.Single(); 8376var tree = compilation.SyntaxTrees.Single(); 8852var tree = compilation.SyntaxTrees.Single(); 8906var tree = compilation.SyntaxTrees.Single(); 9318var tree = compilation.SyntaxTrees.Single(); 10174var tree = compilation.SyntaxTrees.Single(); 10215var tree = compilation.SyntaxTrees.Single(); 10287var tree = compilation.SyntaxTrees.Single(); 10623var tree = compilation.SyntaxTrees.Single(); 10685var tree = compilation.SyntaxTrees.Single(); 10745var tree = compilation.SyntaxTrees.Single(); 11302var tree = compilation.SyntaxTrees.Single(); 11834var tree = comp.SyntaxTrees.Single(); 11874var tree = compilation.SyntaxTrees.Single();
Semantics\UsingStatementTests.cs (7)
57var tree = compilation.SyntaxTrees.Single(); 1338var tree = compilation.SyntaxTrees.Single(); 1373var tree = compilation.SyntaxTrees.Single(); 1850var tree = compilation.SyntaxTrees.Single(); 1862var tree = compilation.SyntaxTrees.Single(); 1878var tree = compilation.SyntaxTrees.Single(); 1892var tree = compilation.SyntaxTrees.Single();
Semantics\Utf8StringsLiteralsTests.cs (14)
2968var tree = comp.SyntaxTrees.Single(); 2996var tree = comp.SyntaxTrees.Single(); 3024var tree = comp.SyntaxTrees.Single(); 3052var tree = comp.SyntaxTrees.Single(); 3080var tree = comp.SyntaxTrees.Single(); 3108var tree = comp.SyntaxTrees.Single(); 3136var tree = comp.SyntaxTrees.Single(); 3164var tree = comp.SyntaxTrees.Single(); 3192var tree = comp.SyntaxTrees.Single(); 3220var tree = comp.SyntaxTrees.Single(); 3248var tree = comp.SyntaxTrees.Single(); 3276var tree = comp.SyntaxTrees.Single(); 3304var tree = comp.SyntaxTrees.Single(); 4078var tree = comp.SyntaxTrees.Single();
SourceGeneration\GeneratorDriverTests.cs (1)
1350var syntaxTree = compilation.SyntaxTrees.Single();
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (2)
1332Assert.Single(compilation.SyntaxTrees); 1378Assert.Single(compilation.SyntaxTrees);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (755)
Compilation\CompilationAPITests.cs (39)
362Assert.NotEqual(default, comp.SyntaxTrees); 364Assert.Equal(1, comp.SyntaxTrees.Length); 793Assert.Equal(5, comp.SyntaxTrees.Length); 795Assert.Equal(1, comp.SyntaxTrees.Length); 799Assert.Equal(1, comp.SyntaxTrees.Length); 803Assert.Equal(2, comp.SyntaxTrees.Length); 804Assert.Contains(t1, comp.SyntaxTrees); 805Assert.False(comp.SyntaxTrees.Contains(SyntaxFactory.ParseSyntaxTree(s1))); 808Assert.Equal(3, comp.SyntaxTrees.Length); 812Assert.Equal(3, comp.SyntaxTrees.Length); 816Assert.Equal(4, comp.SyntaxTrees.Length); 822Assert.Throws<ArgumentException>(() => comp.ReplaceSyntaxTree(t1, comp.SyntaxTrees[0])); 826Assert.Equal(4, comp.SyntaxTrees.Length); 830Assert.Equal(4, comp.SyntaxTrees.Length); 838Assert.True(comp.SyntaxTrees.Contains(t1)); 848Assert.Equal(0, compCollection.SyntaxTrees.Length); 850Assert.Equal(0, compCollection.SyntaxTrees.Length); 856Assert.Equal(0, compCollection.SyntaxTrees.Length); 858Assert.Equal(0, compCollection.SyntaxTrees.Length); 867Assert.Equal(0, compCollection.SyntaxTrees.Length); 869Assert.Equal(0, compCollection.SyntaxTrees.Length); 878Assert.Equal(0, compCollection.SyntaxTrees.Length); 880Assert.Equal(0, compCollection.SyntaxTrees.Length); 920Assert.Throws<ArgumentException>(() => comp.ReplaceSyntaxTree(comp.SyntaxTrees[0], withExpressionRootTree)); 940Assert.Equal(1, comp.SyntaxTrees.Length); 945Assert.Equal(2, comp.SyntaxTrees.Length); 951Assert.Equal(0, comp.SyntaxTrees.Length); 960Assert.Equal(1, comp.SyntaxTrees.Length); 973Assert.Equal(1, comp1.SyntaxTrees.Length); 1488Assert.Equal(0, comp.SyntaxTrees.Length); 1490Assert.Equal(0, comp.SyntaxTrees.Length); 1499Assert.False(comp.SyntaxTrees.Contains(null)); 1557Assert.Equal(0, comp.SyntaxTrees.Length); 1582Assert.Equal(0, comp.SyntaxTrees.Length); 1939var tree2 = compilation.SyntaxTrees[1]; //tree for empty file 1953var tree2 = compilation.SyntaxTrees[1]; //tree for empty file 2839var syntaxTree = compilation.SyntaxTrees.Single(); 2874var syntaxTree = compilation.SyntaxTrees.Single(); 2906var syntaxTree = compilation.SyntaxTrees.Single();
Compilation\GetSemanticInfoBrokenCodeTests.cs (4)
197var tree = comp.SyntaxTrees.Single(); 221var tree = comp.SyntaxTrees.Single(); 264var tree = comp.SyntaxTrees.Single(); 297var tree = comp.SyntaxTrees.Single();
Compilation\GetSemanticInfoTests.cs (40)
972var tree = compilation.SyntaxTrees[0]; 996var tree = compilation.SyntaxTrees[0]; 1044var tree = compilation.SyntaxTrees[0]; 2476var tree = comp.SyntaxTrees.Single(); 2563var tree = compilation.SyntaxTrees.Single(); 3463var tree = compilation.SyntaxTrees.Single(); 3517var tree = compilation.SyntaxTrees.Single(); 3549var tree = compilation.SyntaxTrees.Single(); 3577var tree = compilation.SyntaxTrees.Single(); 3604var tree = compilation.SyntaxTrees.Single(); 3629var tree = compilation.SyntaxTrees.Single(); 3662var tree = compilation.SyntaxTrees.Single(); 3698var tree = compilation.SyntaxTrees.Single(); 3754var tree = compilation.SyntaxTrees.Single(); 3815var tree = compilation.SyntaxTrees.Single(); 3869var tree = compilation.SyntaxTrees.Single(); 3949var tree = compilation.SyntaxTrees.Single(); 3995var tree = compilation.SyntaxTrees.Single(); 4104var tree = comp.SyntaxTrees.Single(); 4159var tree = comp.SyntaxTrees.Single(); 4208var tree = compilation.SyntaxTrees.Single(); 4238var tree = compilation.SyntaxTrees.Single(); 4268var tree = compilation.SyntaxTrees.Single(); 4289var tree = compilation.SyntaxTrees.Single(); 4319var tree = compilation.SyntaxTrees.Single(); 4352var tree = compilation.SyntaxTrees.Single(); 4373var tree = compilation.SyntaxTrees.Single(); 4397var tree = compilation.SyntaxTrees.Single(); 4586var tree = compilation.SyntaxTrees.Single(); 4638var tree = compilation.SyntaxTrees.Single(); 4749var tree = comp.SyntaxTrees.Single(); 4782var tree = comp.SyntaxTrees.Single(); 4825var tree = comp.SyntaxTrees.Single(); 4871var tree = comp.SyntaxTrees.Single(); 4907var tree = comp.SyntaxTrees.Single(); 5475var tree = comp.SyntaxTrees.Single(); 5911var tree = comp.SyntaxTrees.Single(); 5984var tree = comp.SyntaxTrees.Single(); 6008var tree = compilation.SyntaxTrees.Single(); 6043var tree = comp.SyntaxTrees[0];
Compilation\GetUnusedImportDirectivesTests.cs (2)
423var tree = comp.SyntaxTrees[0]; 451var tree = comp.SyntaxTrees[0];
Compilation\LoadDirectiveTests.cs (18)
24Assert.Single(compilation.SyntaxTrees); 37Assert.Single(compilation.SyntaxTrees); 56Assert.Equal(2, compilation.SyntaxTrees.Length); 80var external1 = compilation.SyntaxTrees.Last(); 84Assert.Equal(3, compilation.SyntaxTrees.Length); 95Assert.Equal(3, compilation.SyntaxTrees.Length); 107Assert.Equal(3, compilation.SyntaxTrees.Length); 118Assert.Equal(external4, compilation.SyntaxTrees.Single()); 131Assert.Single(compilation.SyntaxTrees); 147Assert.Single(compilation.SyntaxTrees); 159Assert.Equal(2, compilation.SyntaxTrees.Length); 163compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Last(), newTree); 165Assert.Equal(2, compilation.SyntaxTrees.Length); 170Assert.Empty(compilation.SyntaxTrees); 179Assert.Equal(3, compilation.SyntaxTrees.Length); 183compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Last(), newTree); 185Assert.Equal(3, compilation.SyntaxTrees.Length); 190Assert.Empty(compilation.SyntaxTrees);
Compilation\ReferenceManagerTests.cs (2)
1771var tree1 = comp1.SyntaxTrees.Single(); 1821var tree1 = comp1.SyntaxTrees.Single();
Compilation\SemanticModelAPITests.cs (92)
40var tree = comp.SyntaxTrees[0]; 107SyntaxTree tree = comp.SyntaxTrees[0]; 134var tree = comp.SyntaxTrees[0]; 173var tree = comp.SyntaxTrees.Single(); 200var tree = comp.SyntaxTrees.Single(); 232var tree = comp.SyntaxTrees.Single(); 1262var tree = comp2.SyntaxTrees.Single(); 1303var tree = comp.SyntaxTrees.Single(); 1335var tree = comp.SyntaxTrees.Single(); 1387var tree = comp.SyntaxTrees.Single(); 1407var tree = compilation.SyntaxTrees[0]; 1451var tree = compilation.SyntaxTrees[0]; 1497var tree = compilation.SyntaxTrees[0]; 1546var tree = compilation.SyntaxTrees[0]; 1585var tree = compilation.SyntaxTrees[0]; 1625var tree = compilation.SyntaxTrees[0]; 1643var tree = compilation.SyntaxTrees[0]; 1661var tree = compilation.SyntaxTrees[0]; 1774var tree = compilation.SyntaxTrees[0]; 1825var tree = compilation.SyntaxTrees[0]; 1875var tree = compilation.SyntaxTrees[0]; 1914var tree = compilation.SyntaxTrees[0]; 1951var tree = compilation.SyntaxTrees[0]; 1988var tree = compilation.SyntaxTrees[0]; 2017var tree = comp.SyntaxTrees.Single(); 2138var tree = comp.SyntaxTrees.Single(); 2167var tree = compilation.SyntaxTrees[0]; 2212var tree = compilation.SyntaxTrees[0]; 2254var tree = compilation.SyntaxTrees[0]; 2307var tree = comp.SyntaxTrees.Single(); 2346var tree = compilation.SyntaxTrees[0]; 2371var semanticModel = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 2384var semanticModel = compilation.GetSemanticModel(compilation.SyntaxTrees[0]); 2441var tree = compilation.SyntaxTrees[0]; 2483var tree = compilation.SyntaxTrees[0]; 2528var tree = compilation.SyntaxTrees[0]; 2559var tree = compilation.SyntaxTrees[0]; 2631var tree = compilation.SyntaxTrees[0]; 2668var tree = compilation.SyntaxTrees[0]; 2759var tree = compilation.SyntaxTrees[0]; 2795var tree = compilation.SyntaxTrees[0]; 2810var tree = compilation.SyntaxTrees[0]; 2829var tree = compilation.SyntaxTrees[0]; 2859var tree = compilation.SyntaxTrees[0]; 2889var tree = compilation.SyntaxTrees[0]; 2918var tree = compilation.SyntaxTrees[0]; 2958var tree = compilation.SyntaxTrees[0]; 3003var tree = compilation.SyntaxTrees[0]; 3084var tree = compilation.SyntaxTrees[0]; 3124var tree = comp.SyntaxTrees.Single(); 3154var tree = comp.SyntaxTrees.Single(); 3189var tree = comp.SyntaxTrees.Single(); 3219var tree = comp.SyntaxTrees.Single(); 3256var tree = comp.SyntaxTrees.Single(); 3297var tree = comp.SyntaxTrees.Single(); 3338var tree = comp.SyntaxTrees.Single(); 3372var tree = comp.SyntaxTrees.Single(); 3414var tree = comp.SyntaxTrees.Single(); 3455var tree = comp.SyntaxTrees.Single(); 3496var tree = comp.SyntaxTrees.Single(); 3521var tree = compilation.SyntaxTrees.Single(); 3542var tree = compilation.SyntaxTrees.Single(); 3581var tree = comp.SyntaxTrees.Single(); 3783var tree = comp.SyntaxTrees[0]; 3816var tree = comp.SyntaxTrees.Single(); 3843var tree = comp.SyntaxTrees.Single(); 3871var tree = comp.SyntaxTrees.Single(); 4028var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4055var tree = compilation.SyntaxTrees.Single(); 4084var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4104var tree = comp.SyntaxTrees.Single(); 4141var tree = comp.SyntaxTrees.Single(); 4184var tree = comp.SyntaxTrees.Single(); 4208var tree = comp.SyntaxTrees.Single(); 4236var tree = comp.SyntaxTrees.Single(); 4274var tree = comp.SyntaxTrees.Single(); 4326var tree = comp.SyntaxTrees.Single(); 4368var tree = compilation.SyntaxTrees[0]; 4423var syntaxTree = comp.SyntaxTrees[0]; 4456var tree = comp.SyntaxTrees.Single(); 4473var tree = comp.SyntaxTrees.Single(); 4537var tree = comp.SyntaxTrees.Single(); 4610var tree = compilation.SyntaxTrees.Single(); 4624var tree = compilation.SyntaxTrees.Single(); 4643var tree = compilation.SyntaxTrees.Single(); 4660var tree = compilation.SyntaxTrees.Single(); 4675var tree = compilation.SyntaxTrees.Single(); 4691var tree = compilation.SyntaxTrees.Single(); 4707var tree = compilation.SyntaxTrees.Single(); 4726var tree = compilation.SyntaxTrees.Single(); 4742var tree = compilation.SyntaxTrees.Single(); 4757var tree = compilation.SyntaxTrees.Single();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (139)
36var tree = comp.SyntaxTrees.Single(); 58var tree = comp.SyntaxTrees.Single(); 77var tree = compilation.SyntaxTrees[0]; 102var tree = compilation.SyntaxTrees[0]; 122var tree = compilation.SyntaxTrees[0]; 145var tree = compilation.SyntaxTrees[0]; 167var tree = compilation.SyntaxTrees[0]; 187var tree = compilation.SyntaxTrees[0]; 208var tree = compilation.SyntaxTrees[0]; 231var tree = compilation.SyntaxTrees[0]; 255var tree = compilation.SyntaxTrees[0]; 275var tree = compilation.SyntaxTrees[0]; 298var tree = compilation.SyntaxTrees[0]; 329var tree = compilation.SyntaxTrees[0]; 378var tree = compilation.SyntaxTrees[0]; 404var tree = compilation.SyntaxTrees[0]; 427var tree = compilation.SyntaxTrees[0]; 448var tree = compilation.SyntaxTrees[0]; 470var tree = compilation.SyntaxTrees[0]; 495var tree = compilation.SyntaxTrees[0]; 517var tree = compilation.SyntaxTrees[0]; 539var tree = compilation.SyntaxTrees[0]; 565var tree = compilation.SyntaxTrees[0]; 587var tree = compilation.SyntaxTrees[0]; 615dynamic tree = compilation.SyntaxTrees[0]; 643var tree = compilation.SyntaxTrees[0]; 668var tree = compilation.SyntaxTrees[0]; 713dynamic tree = compilation.SyntaxTrees[0]; 746dynamic tree = compilation.SyntaxTrees[0]; 774var tree = compilation.SyntaxTrees[0]; 796var tree = compilation.SyntaxTrees[0]; 820var tree = compilation.SyntaxTrees[0]; 836var tree = compilation.SyntaxTrees[0]; 856var tree = compilation.SyntaxTrees[0]; 880var tree = compilation.SyntaxTrees[0]; 900var tree = compilation.SyntaxTrees[0]; 935var tree = compilation.SyntaxTrees[0]; 1003var tree = compilation.SyntaxTrees[0]; 1030var tree = compilation.SyntaxTrees.Single(); 1051var tree = compilation.SyntaxTrees.Single(); 1080var tree = compilation.SyntaxTrees.Single(); 1121var tree = compilation.SyntaxTrees.Single(); 1170var tree = compilation.SyntaxTrees.Single(); 1207var tree = compilation.SyntaxTrees.Single(); 1243var tree = compilation.SyntaxTrees.Single(); 1277var tree = compilation.SyntaxTrees.Single(); 1327var tree = compilation.SyntaxTrees.Single(); 1377var tree = compilation.SyntaxTrees.Single(); 1430var tree = compilation.SyntaxTrees.Single(); 1479var tree = compilation.SyntaxTrees.Single(); 1527var tree = compilation.SyntaxTrees.Single(); 1590var tree = compilation.SyntaxTrees.Single(); 1624var tree = compilation.SyntaxTrees.Single(); 1662var tree = compilation.SyntaxTrees.Single(); 1866var tree = compilation.SyntaxTrees.Single(); 2003var tree = compilation.SyntaxTrees.Single(); 2047var tree = compilation.SyntaxTrees.Single(); 2077var tree = compilation.SyntaxTrees.Single(); 2164var tree = compilation.SyntaxTrees.Single(); 2249var tree = compilation.SyntaxTrees[0]; 2285var tree = compilation.SyntaxTrees[0]; 2322var tree = compilation.SyntaxTrees[0]; 2358var tree = compilation.SyntaxTrees[0]; 2394var tree = compilation.SyntaxTrees[0]; 2424var tree = compilation.SyntaxTrees[0]; 2456var tree = compilation.SyntaxTrees[0]; 2493var tree = compilation.SyntaxTrees[0]; 2530var tree = compilation.SyntaxTrees[0]; 2561var tree = compilation.SyntaxTrees[0]; 2590var tree = compilation.SyntaxTrees[0]; 2615var tree = compilation.SyntaxTrees[0]; 2640var tree = compilation.SyntaxTrees[0]; 2670var tree = compilation.SyntaxTrees[0]; 2698var tree = compilation.SyntaxTrees[0]; 2809var tree = compilation.SyntaxTrees[0]; 2839var tree = compilation.SyntaxTrees[0]; 3041var tree = compilation.SyntaxTrees[0]; 3174var tree = compilation.SyntaxTrees.Single(); 3210var tree = compilation.SyntaxTrees[0]; 3263var tree = compilation.SyntaxTrees[0]; 3310var tree = compilation.SyntaxTrees[0]; 3337var tree = compilation.SyntaxTrees[0]; 3363var tree = compilation.SyntaxTrees[0]; 3380var tree = compilation.SyntaxTrees[0]; 3404var tree = compilation.SyntaxTrees[0]; 3425var tree = compilation.SyntaxTrees[0]; 3444var tree = compilation.SyntaxTrees[0]; 3474var tree = compilation.SyntaxTrees[0]; 3497var tree = compilation.SyntaxTrees[0]; 3525var tree = compilation.SyntaxTrees[0]; 3562var tree = compilation.SyntaxTrees[0]; 3583var tree = compilation.SyntaxTrees[0]; 3608var tree = compilation.SyntaxTrees[0]; 3630var tree = compilation.SyntaxTrees[0]; 3666var tree = compilation.SyntaxTrees[0]; 3683var tree = compilation.SyntaxTrees[0]; 3708var tree = compilation.SyntaxTrees[0]; 3787var tree = compilation.SyntaxTrees[0]; 3805var tree = compilation.SyntaxTrees[0]; 3824var tree = compilation.SyntaxTrees[0]; 3845var tree = compilation.SyntaxTrees[0]; 3865var tree = compilation.SyntaxTrees[0]; 4124var tree = comp.SyntaxTrees.Single(); 4142tree = comp.SyntaxTrees.Single(); 4166var tree = compilation.SyntaxTrees.Single(); 4244var tree = compilation.SyntaxTrees.Single(); 4413var tree = compilation.SyntaxTrees[0]; 4602var tree = compilation.SyntaxTrees.Single(); 4690var tree = compilation.SyntaxTrees[0]; 4705var tree = compilation.SyntaxTrees[0]; 4720var tree = compilation.SyntaxTrees[0]; 4740var tree = compilation.SyntaxTrees.Single(); 4766var tree = compilation.SyntaxTrees.Single(); 4796var tree = compilation.SyntaxTrees[0]; 4819var tree = compilation.SyntaxTrees[0]; 4842var tree = compilation.SyntaxTrees[0]; 4865var tree = compilation.SyntaxTrees[0]; 4888var tree = compilation.SyntaxTrees[0]; 4911var tree = compilation.SyntaxTrees[0]; 4934var tree = compilation.SyntaxTrees[0]; 4957var tree = compilation.SyntaxTrees[0]; 4992var tree = compilation.SyntaxTrees[0]; 5038var tree = compilation.SyntaxTrees[0]; 5087var tree = compilation.SyntaxTrees[0]; 5110var tree = compilation.SyntaxTrees[0]; 5123var tree = compilation.SyntaxTrees[0]; 5170var tree = compilation.SyntaxTrees.Single(); 5203var tree = comp.SyntaxTrees.Single(); 5220var tree = comp.SyntaxTrees[0]; 5241var tree = comp.SyntaxTrees[0]; 5262var tree = comp.SyntaxTrees[0]; 5300var tree = comp.SyntaxTrees[0]; 5351var tree = comp.SyntaxTrees[0]; 5395var tree = comp.SyntaxTrees[0]; 5443var tree = comp.SyntaxTrees[0]; 5486var tree = comp.SyntaxTrees[0]; 5537var tree = comp.SyntaxTrees[0]; 5581var tree = comp.SyntaxTrees[0]; 5629var tree = comp.SyntaxTrees[0];
Compilation\SemanticModelGetSemanticInfoTests.cs (13)
1662var tree = compilation.SyntaxTrees[0]; 8266var tree = compilation.SyntaxTrees.Single(); 8431var tree = compilation.SyntaxTrees.Single(); 8455var tree = compilation.SyntaxTrees.Single(); 14483var tree = compilation.SyntaxTrees.First(); 14653var tree = comp.SyntaxTrees.Single(); 14736var tree = compilation.SyntaxTrees[i]; 14786SyntaxTree tree = compilation.SyntaxTrees.Single(); 14882SyntaxTree tree = compilation.SyntaxTrees.Single(); 14993SyntaxTree tree = compilation.SyntaxTrees.Single(); 15052var tree = compilation.SyntaxTrees.First(); 15371var tree = compilation.SyntaxTrees[0]; 15432var tree = compilation.SyntaxTrees[0];
DocumentationComments\CrefTests.cs (49)
304var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 1814var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 2942var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 2964var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 2996var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3071var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3096var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3123var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3154var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3177var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3200var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3223var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3247var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3271var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3295var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3319var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3342var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 3369var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4556var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4574var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4592var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4609var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4645var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4697var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4753var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4819var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4908var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5044var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5175var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5197var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5283var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5309var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5335var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5361var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5423var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5511var tree = compilation.SyntaxTrees.Single(); 5556var tree = compilation.SyntaxTrees.Single(); 5656var tree = compilation.SyntaxTrees.Single(); 5695var tree = compilation.SyntaxTrees.Single(); 5714var tree = compilation.SyntaxTrees.Single(); 5747var tree = compilation.SyntaxTrees.Single(); 5790var tree = compilation.SyntaxTrees.Single(); 6275var tree = compilation.SyntaxTrees[0]; 6616return compilation.SyntaxTrees.SelectMany(tree => 6670var tree = compilation.SyntaxTrees[0]; 6701var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 6744var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 6894var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 7063var model = comp.GetSemanticModel(comp.SyntaxTrees.Single());
DocumentationComments\DocumentationCommentIDTests.cs (4)
29var tree = comp.SyntaxTrees.Single(); 142var tree = comp.SyntaxTrees.Single(); 163var tree = comp.SyntaxTrees.Single(); 307var tree = comp.SyntaxTrees.Single();
DocumentationComments\ParameterTests.cs (25)
34var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 57var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 81var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 105var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 134var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 159var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 184var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 205var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 226var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 247var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 272var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 298var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 326var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 349var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 373var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 404var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 431var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 458var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 485var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 512var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 539var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 690var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 740var tree = compilation.SyntaxTrees.Single(); 787var tree = compilation.SyntaxTrees.Single(); 839return compilation.SyntaxTrees.SelectMany(tree =>
SymbolDisplay\SymbolDisplayTests.cs (26)
3589var tree = comp.SyntaxTrees.First(); 5620var tree = comp.SyntaxTrees.Single(); 6060var tree = comp.SyntaxTrees.First(); 6608var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 6685var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 6747var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 6780var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 6841var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 6874var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 6919var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7037var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7075var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7113var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7173var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7245var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7505var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7658var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 7908var tree = compilation.SyntaxTrees[0]; 8001var tree = compilation.SyntaxTrees[0]; 8061var tree = compilation.SyntaxTrees[0]; 8093var tree = compilation.SyntaxTrees[0]; 8397var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 8448var semanticModel = comp.GetSemanticModel(comp.SyntaxTrees.Single()); 8873var tree = comp.SyntaxTrees[0]; 8929var tree = comp.SyntaxTrees[0]; 9022var tree = comp.SyntaxTrees.First();
Symbols\AnonymousTypesSemanticsTests.cs (1)
2048var tree = compilation.SyntaxTrees[0];
Symbols\AnonymousTypesSymbolTests.cs (1)
1476var model = compilation.GetSemanticModel(compilation.SyntaxTrees[0]);
Symbols\AssemblyAndNamespaceTests.cs (1)
330var tree = compilation.SyntaxTrees[0];
Symbols\CheckedUserDefinedOperatorsTests.cs (5)
7207var tree = compilation1.SyntaxTrees.Single(); 7279var tree = compilation1.SyntaxTrees.Single(); 7350var tree = compilation1.SyntaxTrees.Single(); 7423var tree = compilation1.SyntaxTrees.Single(); 7487var tree = compilation1.SyntaxTrees.Single();
Symbols\CompilationCreationTests.cs (1)
37ImmutableArray<SyntaxTree> actualSyntaxTrees = compilation.SyntaxTrees;
Symbols\ConversionTests.cs (11)
451var tree = comp.SyntaxTrees.Single(); 482var tree = comp.SyntaxTrees.Single(); 517var tree = comp.SyntaxTrees.Single(); 553var tree = comp.SyntaxTrees.Single(); 589var tree = comp.SyntaxTrees.Single(); 623var tree = comp.SyntaxTrees.Single(); 658var tree = comp.SyntaxTrees.Single(); 683var tree = comp.SyntaxTrees.Single(); 714var tree = comp.SyntaxTrees.Single(); 740var tree = comp.SyntaxTrees.Single(); 763var tree = comp.SyntaxTrees.Single();
Symbols\CorLibrary\CorTypes.cs (2)
293var tree = comp.SyntaxTrees.Single(); 358var tree = comp1.SyntaxTrees.Single();
Symbols\CovariantReturnTests.cs (3)
376foreach (var tree in comp.SyntaxTrees) 451return comp.AddSyntaxTrees(CSharpSyntaxTree.ParseText(assignments, (CSharpParseOptions)comp.SyntaxTrees[0].Options, path: "assignments.cs", encoding: Encoding.UTF8)); 510var parseOptions = (CSharpParseOptions)comp.SyntaxTrees[0].Options;
Symbols\EnumTests.cs (1)
351var tree = comp.SyntaxTrees[0];
Symbols\ExtensionMethodTests.cs (8)
225var syntaxTree = compilation.SyntaxTrees.Single(); 2724var tree = compilation.SyntaxTrees[0]; 3136var tree = comp.SyntaxTrees[0]; 3775var syntaxTree = compilation.SyntaxTrees.Single(); 3863var tree = compilation.SyntaxTrees.Single(); 3910var tree = compilation.SyntaxTrees.Single(); 3955var tree = compilation.SyntaxTrees.Single(); 4005var tree = compilation.SyntaxTrees.Single();
Symbols\FunctionPointerTypeSymbolTests.cs (16)
49var syntaxTree = comp.SyntaxTrees[0]; 122var syntaxTree = comp.SyntaxTrees[0]; 202var syntaxTree = comp.SyntaxTrees[0]; 269var syntaxTree = comp.SyntaxTrees[0]; 337var syntaxTree = comp.SyntaxTrees[0]; 403var syntaxTree = comp.SyntaxTrees[0]; 483var syntaxTree = comp.SyntaxTrees[0]; 600var syntaxTree = comp.SyntaxTrees[0]; 682var syntaxTree = comp.SyntaxTrees[0]; 1145var syntaxTree = comp.SyntaxTrees[0]; 1256var syntaxTree = comp.SyntaxTrees[0]; 1313var syntaxTree = compilation.SyntaxTrees[0]; 1424var syntaxTree = comp.SyntaxTrees[0]; 1682var syntaxTree = comp.SyntaxTrees[0]; 1793var syntaxTree = comp.SyntaxTrees[0]; 1923var syntaxTree = comp.SyntaxTrees[0];
Symbols\GenericConstraintTests.cs (2)
7391var tree = comp.SyntaxTrees.Single(); 7416var tree = comp.SyntaxTrees.Single();
Symbols\ImplicitClassTests.cs (2)
70var tree = c.SyntaxTrees.Single(); 113var tree = comp.SyntaxTrees.Single();
Symbols\IndexerTests.cs (1)
2842var tree = comp2.SyntaxTrees[0];
Symbols\LocalFunctionTests.cs (4)
32var tree = compilation.SyntaxTrees[0]; 53var tree = compilation.SyntaxTrees[0]; 74var tree = compilation.SyntaxTrees[0]; 97var tree = compilation.SyntaxTrees[0];
Symbols\LookupSymbolsInfoTests.cs (1)
93var tree = compilation.SyntaxTrees.Single();
Symbols\Metadata\MetadataTypeTests.cs (1)
362var oldTree = comp.SyntaxTrees.First();
Symbols\RelaxedShiftOperatorTests.cs (6)
100var tree = compilation1.SyntaxTrees.Single(); 144var tree = compilation1.SyntaxTrees.Single(); 188var tree = compilation1.SyntaxTrees.Single(); 232var tree = compilation1.SyntaxTrees.Single(); 276var tree = compilation1.SyntaxTrees.Single(); 320var tree = compilation1.SyntaxTrees.Single();
Symbols\RequiredMembersTests.cs (1)
6954var tree = comp.SyntaxTrees[0];
Symbols\Source\BaseClassTests.cs (1)
2029var tree = comp.SyntaxTrees[0];
Symbols\Source\ClsComplianceTests.cs (1)
3461var tree = comp.SyntaxTrees.Single();
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
738Assert.Equal(new[] { source0, source1, source2, source3 }, comp0.SyntaxTrees);
Symbols\Source\DelegateTests.cs (2)
734var syntaxTree = comp.SyntaxTrees.Single(); 761var syntaxTree = comp.SyntaxTrees.Single();
Symbols\Source\EnumTests.cs (1)
955var tree = compilation.SyntaxTrees[0];
Symbols\Source\EventTests.cs (2)
432var tree = compilation.SyntaxTrees.First(); 478var tree = compilation.SyntaxTrees.First();
Symbols\Source\ExternAliasTests.cs (2)
404var targets = comp3.SyntaxTrees.AsParallel().Select(tree => 430var targets = comp3.SyntaxTrees.AsParallel().Select(tree =>
Symbols\Source\FileModifierTests.cs (51)
1212var tree = comp.SyntaxTrees[0]; 1220tree = comp.SyntaxTrees[1]; 1229Assert.Equal(comp.SyntaxTrees[0], cs[0].DeclaringSyntaxReferences.Single().SyntaxTree); 1230Assert.Equal(comp.SyntaxTrees[1], cs[1].DeclaringSyntaxReferences.Single().SyntaxTree); 1300Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[0].SyntaxTree); 1301Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[1].SyntaxTree); 1358Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[0].SyntaxTree); 1359Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[1].SyntaxTree); 1363Assert.Equal(comp.SyntaxTrees[2], c1.DeclaringSyntaxReferences.Single().SyntaxTree); 1365var tree = comp.SyntaxTrees[2]; 1421Assert.Equal(comp.SyntaxTrees[0], c0.DeclaringSyntaxReferences.Single().SyntaxTree); 1428Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[0].SyntaxTree); 1429Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[1].SyntaxTree); 1431var tree = comp.SyntaxTrees[1]; 1483Assert.Equal(comp.SyntaxTrees[0], c0.DeclaringSyntaxReferences.Single().SyntaxTree); 1487Assert.Equal(comp.SyntaxTrees[1], c1.DeclaringSyntaxReferences.Single().SyntaxTree); 1489var tree = comp.SyntaxTrees[1]; 1543Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[0].SyntaxTree); 1544Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[1].SyntaxTree); 1548Assert.Equal(comp.SyntaxTrees[1], c1.DeclaringSyntaxReferences.Single().SyntaxTree); 1567Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[0].SyntaxTree); 1568Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[1].SyntaxTree); 1569Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[2].SyntaxTree); 1615Assert.Equal(comp.SyntaxTrees[0], c0.DeclaringSyntaxReferences.Single().SyntaxTree); 1621Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[0].SyntaxTree); 1622Assert.Equal(comp.SyntaxTrees[1], syntaxReferences[1].SyntaxTree); 1637Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[0].SyntaxTree); 1638Assert.Equal(comp.SyntaxTrees[0], syntaxReferences[1].SyntaxTree); 1642Assert.Equal(comp.SyntaxTrees[1], c1.DeclaringSyntaxReferences.Single().SyntaxTree); 1787var tree = comp.SyntaxTrees[0]; 1793tree = comp.SyntaxTrees[1]; 1801Assert.Equal(comp.SyntaxTrees[0], cs[0].DeclaringSyntaxReferences.Single().SyntaxTree); 1802Assert.Equal(comp.SyntaxTrees[1], cs[1].DeclaringSyntaxReferences.Single().SyntaxTree); 1861var tree = comp.SyntaxTrees[0]; 1869tree = comp.SyntaxTrees[1]; 1876Assert.Equal(comp.SyntaxTrees[0], cs[0].DeclaringSyntaxReferences.Single().SyntaxTree); 1877Assert.Equal(comp.SyntaxTrees[1], cs[1].DeclaringSyntaxReferences.Single().SyntaxTree); 2594var tree = comp.SyntaxTrees[1]; 2634var tree = comp.SyntaxTrees[1]; 3503var tree = comp.SyntaxTrees[0]; 3554var tree = comp.SyntaxTrees[0]; 3610var tree = compilation.SyntaxTrees[1]; 3640var tree = compilation.SyntaxTrees[0]; 3710var tree = compilation.SyntaxTrees[1]; 3772var tree = compilation.SyntaxTrees[0]; 3813var tree = compilation.SyntaxTrees[1]; 3976var tree = comp.SyntaxTrees[0]; 4121var tree = comp.SyntaxTrees[0]; 4408var tree = comp.SyntaxTrees[0]; 4452var tree = comp.SyntaxTrees[0]; 4475var tree = comp.SyntaxTrees[0];
Symbols\Source\MethodTests.cs (6)
235var tree = comp.SyntaxTrees.Single(); 263var tree = comp.SyntaxTrees.Single(); 288var tree = comp.SyntaxTrees.Single().GetRoot(); 309var tree = comp.SyntaxTrees.Single().GetRoot(); 2537var syntax = comp.SyntaxTrees[0]; 2568var syntax = comp.SyntaxTrees[0];
Symbols\Source\NullablePublicAPITests.cs (105)
51var syntaxTree = comp.SyntaxTrees[0]; 85var syntaxTree = comp.SyntaxTrees[0]; 568var syntaxTree = comp.SyntaxTrees[0]; 943var syntaxTree = comp.SyntaxTrees[0]; 1000var syntaxTree = comp.SyntaxTrees[0]; 1092var syntaxTree = comp.SyntaxTrees[0]; 1119var syntaxTree = comp.SyntaxTrees[0]; 1259var syntaxTree = comp.SyntaxTrees[0]; 1357var syntaxTree = comp.SyntaxTrees[0]; 1437var syntaxTree = comp.SyntaxTrees[0]; 1509var syntaxTree = comp.SyntaxTrees[0]; 1565var syntaxTree = comp.SyntaxTrees[0]; 1622var syntaxTree = comp.SyntaxTrees[0]; 1665var syntaxTree = comp.SyntaxTrees[0]; 1708var syntaxTree = comp.SyntaxTrees[0]; 1769var tree = (CSharpSyntaxTree)comp.SyntaxTrees.Single(); 1847var syntaxTree = comp.SyntaxTrees[0]; 1890var syntaxTree = comp.SyntaxTrees[0]; 1935var syntaxTree = comp.SyntaxTrees[0]; 1982var syntaxTree = comp.SyntaxTrees[0]; 2043var syntaxTree = comp.SyntaxTrees[0]; 2086var syntaxTree = comp.SyntaxTrees[0]; 2129var syntaxTree = comp.SyntaxTrees[0]; 2172var syntaxTree = comp.SyntaxTrees[0]; 2214var syntaxTree = comp.SyntaxTrees[0]; 2244var syntaxTree = comp.SyntaxTrees[0]; 2279var syntaxTree = comp.SyntaxTrees[0]; 2323var syntaxTree = comp.SyntaxTrees[0]; 2364var syntaxTree = comp.SyntaxTrees[0]; 2409var syntaxTree = comp.SyntaxTrees[0]; 2449var syntaxTree = comp.SyntaxTrees[0]; 2497var syntaxTree = comp.SyntaxTrees[0]; 2542var syntaxTree = comp.SyntaxTrees[0]; 2591var syntaxTree = comp.SyntaxTrees[0]; 2625var syntaxTree = comp.SyntaxTrees[0]; 2659var syntaxTree = comp.SyntaxTrees[0]; 2697var syntaxTree = comp.SyntaxTrees[0]; 2733var syntaxTree = comp.SyntaxTrees[0]; 2779var syntaxTree = comp.SyntaxTrees[0]; 2822var syntaxTree = comp.SyntaxTrees[0]; 2871var syntaxTree = comp.SyntaxTrees[0]; 2912var syntaxTree = comp.SyntaxTrees[0]; 2953var syntaxTree = comp.SyntaxTrees[0]; 2995var syntaxTree = comp.SyntaxTrees[0]; 3037var syntaxTree = comp.SyntaxTrees[0]; 3097var syntaxTree = comp.SyntaxTrees[0]; 3144var syntaxTree = comp.SyntaxTrees[0]; 3189var syntaxTree = comp.SyntaxTrees[0]; 3254var syntaxTree = comp.SyntaxTrees[0]; 3306var syntaxTree = comp.SyntaxTrees[0]; 3355var syntaxTree = comp.SyntaxTrees[0]; 3402var syntaxTree = comp.SyntaxTrees[0]; 3447var syntaxTree = comp.SyntaxTrees[0]; 3484var syntaxTree = comp.SyntaxTrees[0]; 3533var syntaxTree = comp.SyntaxTrees[0]; 3594var syntaxTree = comp.SyntaxTrees[0]; 3657var syntaxTree = comp.SyntaxTrees[0]; 3695var tree = comp.SyntaxTrees[0]; 3730var tree = comp.SyntaxTrees[0]; 3765var syntaxTree = comp.SyntaxTrees[0]; 3804var syntaxTree = comp.SyntaxTrees[0]; 3850var syntaxTree = comp.SyntaxTrees[0]; 3909var syntaxTree = comp.SyntaxTrees[0]; 3974var syntaxTree = comp.SyntaxTrees[0]; 4043var syntaxTree = comp.SyntaxTrees[0]; 4110var syntaxTree = comp.SyntaxTrees[0]; 4173var syntaxTree = comp.SyntaxTrees[0]; 4207var syntaxTree = comp.SyntaxTrees[0]; 4240var syntaxTree = comp.SyntaxTrees[0]; 4268var syntaxTree = comp.SyntaxTrees[0]; 4302var syntaxTree = comp.SyntaxTrees[0]; 4333var tree = comp.SyntaxTrees[0]; 4363var tree = comp.SyntaxTrees[0]; 4391var tree = comp.SyntaxTrees[0]; 4419var tree = comp.SyntaxTrees[0]; 4449var tree = comp.SyntaxTrees[0]; 4479var tree = comp.SyntaxTrees[0]; 4509var tree = comp.SyntaxTrees[0]; 4541var tree = comp.SyntaxTrees[0]; 4574var tree = comp.SyntaxTrees[0]; 4602var tree = comp.SyntaxTrees[0]; 4635var tree = comp.SyntaxTrees[0]; 4666var tree = comp.SyntaxTrees[0]; 4697var tree = comp.SyntaxTrees[0]; 4727var tree = comp.SyntaxTrees[0]; 4778var syntaxTree = comp.SyntaxTrees[0]; 4813var tree = comp.SyntaxTrees.Single(); 4899var tree = comp.SyntaxTrees.Single(); 4932var tree = comp.SyntaxTrees[0]; 4964var tree = comp.SyntaxTrees[0]; 5007var tree = comp.SyntaxTrees[0]; 5046var tree = comp.SyntaxTrees[0]; 5064SyntaxTree tree = comp.SyntaxTrees[0]; 5100var tree = comp.SyntaxTrees.Single(); 5132var tree = comp.SyntaxTrees.Single(); 5160var tree = comp.SyntaxTrees.Single(); 5195var tree = comp.SyntaxTrees.Single(); 5230var tree = comp.SyntaxTrees.Single(); 5251var tree = comp.SyntaxTrees[0]; 5274var tree = comp.SyntaxTrees[0]; 5306var tree = comp.SyntaxTrees[0]; 5329var tree = comp.SyntaxTrees[0]; 5351var tree = comp.SyntaxTrees[0]; 5396var tree = comp.SyntaxTrees[0]; 5453var tree = comp.SyntaxTrees[0];
Symbols\Source\UpdatedContainingSymbolAndNullableAnntotationTests.cs (1)
33var syntaxTree = comp.SyntaxTrees[0];
Symbols\Source\UsingAliasTests.cs (2)
695var tree = compilation.SyntaxTrees.Single(); 738var tree = compilation.SyntaxTrees.Single();
Symbols\StaticAbstractMembersInInterfacesTests.cs (26)
8451var tree = compilation1.SyntaxTrees.Single(); 9039var tree = compilation1.SyntaxTrees.Single(); 9354var tree = compilation1.SyntaxTrees.Single(); 9753var tree = compilation1.SyntaxTrees.Single(); 10750var tree = compilation1.SyntaxTrees.Single(); 10943var tree = compilation1.SyntaxTrees.Single(); 11133var tree = compilation1.SyntaxTrees.Single(); 11327var tree = compilation1.SyntaxTrees.Single(); 11581var tree = compilation1.SyntaxTrees.Single(); 11958var tree = compilation1.SyntaxTrees.Single(); 12137var tree = compilation1.SyntaxTrees.Single(); 13178var tree = compilation1.SyntaxTrees.Single(); 13264var tree = compilation1.SyntaxTrees.Single(); 13386var tree = compilation1.SyntaxTrees.Single(); 14087var tree = compilation1.SyntaxTrees.Single(); 14712var tree = compilation1.SyntaxTrees.Single(); 15118var tree = compilation1.SyntaxTrees.Single(); 15386var tree = compilation1.SyntaxTrees.Single(); 19558var tree = compilation1.SyntaxTrees.Single(); 19641var tree = compilation1.SyntaxTrees.Single(); 19733var tree = compilation1.SyntaxTrees.Single(); 19822var tree = compilation1.SyntaxTrees.Single(); 28771var tree = compilation1.SyntaxTrees.Single(); 30278var tree = compilation1.SyntaxTrees.Single(); 30469var tree = compilation1.SyntaxTrees.Single(); 30935var tree = compilation1.SyntaxTrees.Single();
Symbols\SymbolEqualityTests.cs (18)
38var tree = comp.SyntaxTrees[0]; 81var tree = comp.SyntaxTrees[0]; 121var tree = comp.SyntaxTrees[0]; 162var tree = comp.SyntaxTrees[0]; 409var syntaxTree = comp.SyntaxTrees[0]; 447var syntaxTree = comp.SyntaxTrees[0]; 478var syntaxTree = comp.SyntaxTrees[0]; 521var syntaxTree = comp.SyntaxTrees[0]; 552var syntaxTree = comp.SyntaxTrees[0]; 588var syntaxTree = comp.SyntaxTrees[0]; 622var syntaxTree = comp.SyntaxTrees[0]; 671var syntaxTree = comp.SyntaxTrees[0]; 723var syntaxTree = comp.SyntaxTrees[0]; 773var syntaxTree = comp.SyntaxTrees[0]; 824var syntaxTree = comp.SyntaxTrees[0]; 885var syntaxTree = comp.SyntaxTrees[0]; 932var syntaxTree = comp.SyntaxTrees[0]; 959var syntaxTree = comp.SyntaxTrees[0];
Symbols\SymbolErrorTests.cs (1)
21953comp2.GetDiagnosticsForSyntaxTree(CompilationStage.Compile, comp2.SyntaxTrees[0], filterSpanWithinTree: null, includeEarlierStages: true).Verify(
Symbols\SymbolExtensionTests.cs (5)
100var tree = compilation.SyntaxTrees.Single(); 118var tree = compilation.SyntaxTrees.Single(); 136var tree = compilation.SyntaxTrees.Single(); 155var tree = compilation.SyntaxTrees.Single(); 250var tree = compilation.SyntaxTrees.Single();
Symbols\UnsignedRightShiftTests.cs (9)
121var tree = compilation1.SyntaxTrees.Single(); 624var tree = compilation1.SyntaxTrees.Single(); 1174var tree = compilation1.SyntaxTrees.Single(); 1582var tree = compilation1.SyntaxTrees.Single(); 1981var tree = compilation1.SyntaxTrees.Single(); 2233var tree = compilation1.SyntaxTrees.Single(); 2375var tree = compilation1.SyntaxTrees.Single(); 2509var tree = compilation1.SyntaxTrees.Single(); 2606var tree = compilation1.SyntaxTrees.Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Diagnostics\LineSpanDirectiveTests.cs (1)
571var tree = comp.SyntaxTrees[0];
IncrementalParsing\IncrementalParsingTests.cs (1)
2898var oldTree = comp.SyntaxTrees.First();
LexicalAndXml\XmlDocCommentTests.cs (3)
3211filterTree: comp.SyntaxTrees[0]); 3227filterTree: comp.SyntaxTrees[0], 3240filterTree: comp.SyntaxTrees[1]);
Syntax\FieldAndValueKeywordTests.cs (1)
1275var syntaxTree = comp.SyntaxTrees[0];
Microsoft.CodeAnalysis.CSharp.Test.Utilities (14)
CompilationTestUtils.cs (1)
446foreach (var syntaxTree in compilation.SyntaxTrees)
CSharpTestBase.cs (9)
1411var trees = compilation.SyntaxTrees; 1651return new Tuple<TNode, SemanticModel>(node, compilation.GetSemanticModel(compilation.SyntaxTrees[treeIndex])); 1662return new Tuple<IList<TNode>, SemanticModel>(nodes, compilation.GetSemanticModel(compilation.SyntaxTrees[treeIndex])); 1670Assert.True(compilation.SyntaxTrees.Length > treeIndex, "Compilation has enough trees"); 1671var tree = compilation.SyntaxTrees[treeIndex]; 1691Assert.True(compilation.SyntaxTrees.Length > treeIndex, "Compilation has enough trees"); 1692var tree = compilation.SyntaxTrees[treeIndex]; 2026var tree = compilation.SyntaxTrees[0]; 2092var tree = compilation.SyntaxTrees[0];
SemanticModelTestBase.cs (4)
97var tree = compilation.SyntaxTrees[0]; 128var tree = compilation.SyntaxTrees[0]; 138var tree = compilation.SyntaxTrees[0]; 154var tree = compilation.SyntaxTrees[0];
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
CodeGen\WinMdEventTests.cs (1)
669var tree = comp.SyntaxTrees[0];
CodeGen\WinRTCollectionTests.cs (1)
7421var tree = comp.SyntaxTrees.Single();
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpRebuildTests.cs (1)
37.SyntaxTrees
Microsoft.CodeAnalysis.UnitTests (1)
Symbols\DocumentationCommentIdTests.cs (1)
174var tree = comp.SyntaxTrees.Single();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
1395For Each item In csComp.SyntaxTrees