558 references to SyntaxTrees
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
394var newCompilation = compilation.RemoveAllSyntaxTrees().AddSyntaxTrees(compilation.SyntaxTrees);
BuildValidator (1)
CompilationDiff.cs (1)
303foreach (var tree in compilation.SyntaxTrees)
IdeCoreBenchmarks (2)
IncrementalSourceGeneratorBenchmarks.cs (2)
151Console.WriteLine("Syntax tree count: " + compilation.SyntaxTrees.Count()); 158var syntaxTree = compilation.SyntaxTrees.Single(t => t.FilePath.Contains("AbstractCaseCorrectionService"));
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
269var allNodes = comp.SyntaxTrees.SelectMany(s => s.GetRoot().DescendantNodes());
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
70.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), syntaxTree); 134foreach (var syntaxTree in compilation.SyntaxTrees) 360var generatedSyntaxTree = compilation.SyntaxTrees.Last();
Microsoft.AspNetCore.Http.Microbenchmarks (3)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
70.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), syntaxTree); 134foreach (var syntaxTree in compilation.SyntaxTrees) 360var generatedSyntaxTree = compilation.SyntaxTrees.Last();
Microsoft.CodeAnalysis (9)
CommandLine\CommonCompiler.cs (3)
435foreach (var tree in compilation.SyntaxTrees) 1081compilation.SyntaxTrees, 1154var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList();
Compilation\DeterministicKeyBuilder.cs (1)
330compilation.SyntaxTrees.SelectAsArray(static x => SyntaxTreeKey.Create(x)),
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
970compilation.SyntaxTrees.IsEmpty()) 976foreach (var tree in compilation.SyntaxTrees)
PEWriter\MetadataWriter.cs (1)
1790foreach (var tree in Module.CommonCompilation.SyntaxTrees)
PEWriter\MetadataWriter.PortablePdb.cs (1)
891WriteValue(CompilationOptionNames.SourceFileCount, module.CommonCompilation.SyntaxTrees.Count().ToString());
SourceGeneration\Nodes\SharedInputNodes.cs (1)
26public static readonly InputNode<SyntaxTree> SyntaxTrees = new InputNode<SyntaxTree>(b => b.Compilation.SyntaxTrees.ToImmutableArray());
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
127var tree = compilation.SyntaxTrees.FirstOrDefault(tree => !GeneratedCodeUtilities.IsGeneratedCode(tree, IsRegularCommentOrDocComment, context.CancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
121if (syntaxTree != null && Contains(compilation.SyntaxTrees, syntaxTree))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
158return compilation.SyntaxTrees.Contains(locations.First().SourceTree);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
305var tree = comp.SyntaxTrees.Single(); 10407var syntaxTreeInput = ctx.CompilationProvider.Select((c, _) => c.SyntaxTrees.First()); 14681var classOptions = gc.AnalyzerConfigOptions.GetOptions(gc.Compilation.SyntaxTrees.First());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (1)
257var model = comp40.GetSemanticModel(comp40.SyntaxTrees.First());
SymbolKey\SymbolKeyTests.cs (1)
292var tree = bodyCompilation.SyntaxTrees.Single();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
CodeGen\CodeGenDeconstructTests.cs (5)
253var tree = comp.Compilation.SyntaxTrees.First(); 1109var tree = comp.Compilation.SyntaxTrees.First(); 2285var tree = comp.Compilation.SyntaxTrees.First(); 8584var tree = compilation.SyntaxTrees.Single(); 8628var tree = compilation.SyntaxTrees.Single();
CodeGen\CodeGenLocalFunctionTests.cs (3)
5745var syntaxTree = comp.SyntaxTrees.Single(); 5820var syntaxTree = comp.SyntaxTrees.Single(); 5895var syntaxTree = comp.SyntaxTrees.Single();
CodeGen\CodeGenOperators.cs (1)
5406var tree = result.Compilation.SyntaxTrees.Single();
CodeGen\CodeGenTupleEqualityTests.cs (3)
358var tree = comp.Compilation.SyntaxTrees.First(); 679var tree = comp.Compilation.SyntaxTrees.First(); 710var tree = comp.Compilation.SyntaxTrees.First();
CodeGen\CodeGenTupleTest.cs (1)
14430var tree = comp.SyntaxTrees.Single();
CodeGen\ObjectAndCollectionInitializerTests.cs (2)
1105var tree = comp.SyntaxTrees.Single(); 3587var tree = comp.SyntaxTrees.First();
Emit\DeterministicTests.cs (1)
438var trees = cv.Compilation.SyntaxTrees.ToArray();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
49var firstSyntaxTree = (CSharpSyntaxTree)compilation.SyntaxTrees.FirstOrDefault();
PDB\PDBTests.cs (1)
97Assert.Single(compilation.SyntaxTrees);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
5765var tree = compilation.SyntaxTrees.Single();
Diagnostics\DiagnosticAnalyzerTests.cs (2)
1708var files = compilation.SyntaxTrees.Select(t => t.FilePath).ToImmutableArray(); 1723for (int i = 0; i < compilation.SyntaxTrees.Count(); i++)
Diagnostics\GetDiagnosticsTests.cs (1)
606ImmutableDictionary<object, AnalyzerConfigOptions>.Empty.Add(compilation.SyntaxTrees.Single(), analyzerConfigOptions),
FlowAnalysis\RegionAnalysisTests.cs (1)
5619var tree = comp.SyntaxTrees.Single();
Semantics\OutVarTests.cs (1)
32975var tree = comp.Compilation.SyntaxTrees.Single();
Semantics\PatternMatchingTestBase.cs (1)
458var tree = comp.SyntaxTrees.First();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
799Assert.Single(compilation.SyntaxTrees);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
InteractiveSessionTests.cs (1)
1179var tree = compilation.SyntaxTrees.Single();
ScriptTests.cs (2)
67Assert.Equal(state.Script.Code, compilation.SyntaxTrees.First().GetText().ToString()); 75Assert.Equal(state.Script.SourceText, compilation.SyntaxTrees.First().GetText());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (247)
Semantics\AccessCheckTests.cs (2)
741var tree = c.SyntaxTrees.First(); 895var tree = c1.SyntaxTrees.First();
Semantics\DeconstructionTests.cs (1)
1837var tree = comp.Compilation.SyntaxTrees.First();
Semantics\DynamicTests.cs (5)
3857var tree = verifier.Compilation.SyntaxTrees.Single(); 3890var tree = verifier.Compilation.SyntaxTrees.Single(); 3918var tree = verifier.Compilation.SyntaxTrees.Single(); 3946var tree = verifier.Compilation.SyntaxTrees.Single(); 3997var tree = verifier.Compilation.SyntaxTrees.Single();
Semantics\InteractiveUsingTests.cs (3)
85var tree = sub.SyntaxTrees.Single(); 582var tree = comp.SyntaxTrees.Single(); 592var tree = comp.SyntaxTrees.Single();
Semantics\LocalFunctionTests.cs (2)
1762var tree = comp.SyntaxTrees.First(); 1837var tree = comp.SyntaxTrees.First();
Semantics\NonTrailingNamedArgumentsTests.cs (4)
43var tree = verifier.Compilation.SyntaxTrees.First(); 391var tree = verifier.Compilation.SyntaxTrees.First(); 742var tree = verifier.Compilation.SyntaxTrees.First(); 774var tree = verifier.Compilation.SyntaxTrees.First();
Semantics\TopLevelStatementsTests.cs (2)
6084var syntaxTree = comp.SyntaxTrees.Single(); 6156var syntaxTree = comp.SyntaxTrees.Single();
SourceGeneration\GeneratorDriverTests.cs (99)
38Assert.Single(compilation.SyntaxTrees); 44Assert.Single(outputCompilation.SyntaxTrees); 58Assert.Single(compilation.SyntaxTrees); 80Assert.Single(compilation.SyntaxTrees); 101Assert.Single(compilation.SyntaxTrees); 130Assert.Single(compilation.SyntaxTrees); 137Assert.Equal(2, outputCompilation.SyntaxTrees.Count()); 220Assert.Single(compilation.SyntaxTrees); 229Assert.Equal(2, outputCompilation1.SyntaxTrees.Count()); 230Assert.Equal(2, outputCompilation2.SyntaxTrees.Count()); 231Assert.Equal(2, outputCompilation3.SyntaxTrees.Count()); 256Assert.Single(compilation.SyntaxTrees); 277Assert.Single(compilation.SyntaxTrees); 300Assert.Single(compilation.SyntaxTrees); 308Assert.Single(outputCompilation.SyntaxTrees); 321Assert.Single(compilation.SyntaxTrees); 344Assert.Single(compilation.SyntaxTrees); 355Assert.Equal(2, outputCompilation.SyntaxTrees.Count()); 378Assert.Single(compilation.SyntaxTrees); 405Assert.Single(compilation.SyntaxTrees); 430Assert.Single(compilation.SyntaxTrees); 456Assert.Single(compilation.SyntaxTrees); 473Assert.Equal(2, outputCompilation.SyntaxTrees.Count()); 485Assert.Single(compilation.SyntaxTrees); 512Assert.Equal(1, outputCompilation.SyntaxTrees.Count()); 524Assert.Single(compilation.SyntaxTrees); 533Assert.Equal(3, outputCompilation.SyntaxTrees.Count()); 535var filePaths = outputCompilation.SyntaxTrees.Skip(1).Select(t => t.FilePath).ToArray(); 584Assert.Single(compilation.SyntaxTrees); 614Assert.Single(compilation.SyntaxTrees); 659Assert.Single(compilation.SyntaxTrees); 706Assert.Single(compilation.SyntaxTrees); 742Assert.Single(compilation.SyntaxTrees); 778Assert.Single(compilation.SyntaxTrees); 800Assert.Single(compilation.SyntaxTrees); 825Assert.Single(compilation.SyntaxTrees); 853Assert.Single(compilation.SyntaxTrees); 885Assert.Single(compilation.SyntaxTrees); 898Assert.Equal(2, outputCompilation.SyntaxTrees.Count()); 911Assert.Single(compilation.SyntaxTrees); 938Assert.Single(compilation.SyntaxTrees); 966Assert.Single(compilation.SyntaxTrees); 998Assert.Single(compilation.SyntaxTrees); 1012Assert.Single(compilation.SyntaxTrees); 1027Assert.Single(compilation.SyntaxTrees); 1047Assert.Single(compilation.SyntaxTrees); 1061Assert.Single(compilation.SyntaxTrees); 1088Assert.Single(compilation.SyntaxTrees); 1133Assert.Single(compilation.SyntaxTrees); 1161Assert.Single(compilation.SyntaxTrees); 1259Assert.Single(compilation.SyntaxTrees); 1271c.ReportDiagnostic(d.WithLocation(Location.Create(c.Compilation.SyntaxTrees.First(), l))); 1388Assert.Single(compilation.SyntaxTrees); 1423Assert.Single(compilation.SyntaxTrees); 1445Assert.Single(compilation.SyntaxTrees); 1470Assert.Single(compilation.SyntaxTrees); 1496var syntaxTree = compilation.SyntaxTrees.Single(); 1538Assert.Single(compilation.SyntaxTrees); 1567Assert.Single(compilation.SyntaxTrees); 1600Assert.Single(compilation.SyntaxTrees); 1621Assert.Single(compilation.SyntaxTrees); 1628Assert.Equal(2, outputCompilation.SyntaxTrees.Count()); 1683Assert.Single(compilation.SyntaxTrees); 1727Assert.Single(compilation.SyntaxTrees); 1946Assert.Single(compilation.SyntaxTrees); 1982Assert.Single(compilation.SyntaxTrees); 2168compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), CSharpSyntaxTree.ParseText(source, parseOptions)); 2230compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), CSharpSyntaxTree.ParseText(source, parseOptions)); 2244Assert.Single(compilation.SyntaxTrees); 2373compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source, parseOptions)); 2387Assert.Single(compilation.SyntaxTrees); 2432var c2 = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText("class E{}", parseOptions)); 2459Assert.Single(compilation.SyntaxTrees); 2487Assert.Single(compilation.SyntaxTrees); 2550Assert.Single(compilation.SyntaxTrees); 2588Assert.True(compilation.SyntaxTrees.Contains(node.SyntaxTree)); 2616Assert.Single(compilation.SyntaxTrees); 2699Assert.Single(compilation.SyntaxTrees); 2886Assert.Single(compilation.SyntaxTrees); 3081Assert.Single(compilation.SyntaxTrees); 3147Assert.Single(compilation.SyntaxTrees); 3193Assert.Single(compilation.SyntaxTrees); 3229Assert.Single(compilation.SyntaxTrees); 3281Assert.Single(compilation.SyntaxTrees); 3649var validSyntaxTree = comp.SyntaxTrees.Single(); 3710var validSyntaxTree = ctx.Compilation.SyntaxTrees.Single(); 3743var syntaxTree = comp.SyntaxTrees.Single(); 3775var syntaxTree = comp.SyntaxTrees.Single(); 3806var syntaxTree = ctx.Compilation.SyntaxTrees.Single(); 3835var syntaxTree = ctx.Compilation.SyntaxTrees.Single(); 3867var syntaxTree = comp.SyntaxTrees.Single(); 3897var syntaxTree = ctx.Compilation.SyntaxTrees.Single(); 4008Assert.Single(compilation.SyntaxTrees); 4306var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator(); 4307var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator(); 4351var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator(); 4352var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator(); 4375var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator(); 4376var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (52)
70Assert.Single(compilation.SyntaxTrees); 112Assert.Single(compilation.SyntaxTrees); 149Assert.Single(compilation.SyntaxTrees); 179Assert.Single(compilation.SyntaxTrees); 192step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Single())); 209Assert.Single(compilation.SyntaxTrees); 222step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Single())); 249step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.First())); 276step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Last())); 304step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.First()), 305step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Last())); 322Assert.Single(compilation.SyntaxTrees); 358Assert.Single(compilation.SyntaxTrees); 397Assert.Single(compilation.SyntaxTrees); 426Assert.Single(compilation.SyntaxTrees); 459Assert.Single(compilation.SyntaxTrees); 492Assert.Single(compilation.SyntaxTrees); 524Assert.Single(compilation.SyntaxTrees); 556Assert.Single(compilation.SyntaxTrees); 587Assert.Single(compilation.SyntaxTrees); 618Assert.Single(compilation.SyntaxTrees); 651Assert.Single(compilation.SyntaxTrees); 682Assert.Single(compilation.SyntaxTrees); 711Assert.Single(compilation.SyntaxTrees); 745Assert.Single(compilation.SyntaxTrees); 774Assert.Single(compilation.SyntaxTrees); 811Assert.Single(compilation.SyntaxTrees); 848Assert.Single(compilation.SyntaxTrees); 885Assert.Single(compilation.SyntaxTrees); 922Assert.Single(compilation.SyntaxTrees); 959Assert.Single(compilation.SyntaxTrees); 995Assert.Single(compilation.SyntaxTrees); 1022Assert.Single(compilation.SyntaxTrees); 1059Assert.Single(compilation.SyntaxTrees); 1097Assert.Single(compilation.SyntaxTrees); 1135Assert.Single(compilation.SyntaxTrees); 1173Assert.Single(compilation.SyntaxTrees); 1211Assert.Single(compilation.SyntaxTrees); 1416Assert.Single(compilation.SyntaxTrees); 1463Assert.Single(compilation.SyntaxTrees); 1510Assert.Single(compilation.SyntaxTrees); 1525driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From("")))); 1553Assert.Single(compilation.SyntaxTrees); 1567driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1601Assert.Single(compilation.SyntaxTrees); 1615driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1668driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1713Assert.Single(compilation.SyntaxTrees); 1728compilation.SyntaxTrees.First(), 1729compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1780compilation.SyntaxTrees.First(), 1781compilation.SyntaxTrees.First().WithChangedText(SourceText.From("""
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (43)
41Assert.Single(compilation.SyntaxTrees); 73Assert.Single(compilation.SyntaxTrees); 99Assert.Single(compilation.SyntaxTrees); 124Assert.Single(compilation.SyntaxTrees); 149Assert.Single(compilation.SyntaxTrees); 177Assert.Single(compilation.SyntaxTrees); 209Assert.Single(compilation.SyntaxTrees); 241Assert.Single(compilation.SyntaxTrees); 275Assert.Single(compilation.SyntaxTrees); 308Assert.Single(compilation.SyntaxTrees); 334Assert.Single(compilation.SyntaxTrees); 360Assert.Single(compilation.SyntaxTrees); 386Assert.Single(compilation.SyntaxTrees); 419Assert.Single(compilation.SyntaxTrees); 447Assert.Single(compilation.SyntaxTrees); 475Assert.Single(compilation.SyntaxTrees); 502Assert.Single(compilation.SyntaxTrees); 533Assert.Single(compilation.SyntaxTrees); 566Assert.Single(compilation.SyntaxTrees); 598Assert.Single(compilation.SyntaxTrees); 630Assert.Single(compilation.SyntaxTrees); 658Assert.Single(compilation.SyntaxTrees); 686Assert.Single(compilation.SyntaxTrees); 714Assert.Single(compilation.SyntaxTrees); 797Assert.Single(compilation.SyntaxTrees); 828Assert.Single(compilation.SyntaxTrees); 1004Assert.Single(compilation.SyntaxTrees); 1044Assert.Single(compilation.SyntaxTrees); 1106driver = driver.RunGenerators(compilation.RemoveSyntaxTrees(compilation.SyntaxTrees.Last())); 1159compilation.SyntaxTrees.Last(), 1160compilation.SyntaxTrees.Last().WithChangedText(SourceText.From(""" 1209compilation.SyntaxTrees.Last(), 1210compilation.SyntaxTrees.Last().WithChangedText(SourceText.From(""" 1265compilation.SyntaxTrees.First(), 1266compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1318compilation.SyntaxTrees.First())); 1376compilation.SyntaxTrees.First())); 1423compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1468compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1520compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1571compilation.SyntaxTrees.First().WithChangedText(SourceText.From(""" 1632compilation.SyntaxTrees.Last(), 1633compilation.SyntaxTrees.Last().WithChangedText(SourceText.From("""
SourceGeneration\SyntaxAwareGeneratorTests.cs (34)
36Assert.Single(compilation.SyntaxTrees); 62Assert.Single(compilation.SyntaxTrees); 87Assert.Single(compilation.SyntaxTrees); 113Assert.Single(compilation.SyntaxTrees); 138Assert.Single(compilation.SyntaxTrees); 165Assert.Single(compilation.SyntaxTrees); 237Assert.Single(compilation.SyntaxTrees); 276Assert.Single(compilation.SyntaxTrees); 317Assert.Single(compilation.SyntaxTrees); 373Assert.Single(compilation.SyntaxTrees); 415Assert.Single(compilation.SyntaxTrees); 457Assert.Equal(2, compilation.SyntaxTrees.Count()); 499Assert.Single(compilation.SyntaxTrees); 553Assert.Single(compilation.SyntaxTrees); 583Assert.Single(compilation.SyntaxTrees); 621Assert.Single(compilation.SyntaxTrees); 675Assert.Single(compilation.SyntaxTrees); 732Assert.Single(compilation.SyntaxTrees); 773Assert.Single(compilation.SyntaxTrees); 820Assert.Single(compilation.SyntaxTrees); 1122compilation = compilation.RemoveSyntaxTrees(compilation.SyntaxTrees.Last()); 1190compilation = compilation.RemoveSyntaxTrees(compilation.SyntaxTrees.Last()); 1248var firstTree = compilation.SyntaxTrees.First(); 1426var firstTree = compilation.SyntaxTrees.First(); 1427var lastTree = compilation.SyntaxTrees.Last(); 1537compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source2, parseOptions)); 1650compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source2, parseOptions)); 1853Assert.Single(compilation.SyntaxTrees); 1894Assert.Single(compilation.SyntaxTrees); 1935Assert.Single(compilation.SyntaxTrees); 1984Assert.Single(compilation.SyntaxTrees); 2010Assert.Single(compilation.SyntaxTrees); 2048Assert.Single(compilation.SyntaxTrees); 2082Assert.Single(compilation.SyntaxTrees);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (107)
Compilation\GetSemanticInfoBrokenCodeTests.cs (1)
242var tree = comp.SyntaxTrees.Single();
Compilation\GetSemanticInfoTests.cs (18)
2925var tree = comp.SyntaxTrees.Single(); 3017var tree = comp.SyntaxTrees.Single(); 3782var tree = compilation.SyntaxTrees.Single(); 3843var tree = compilation.SyntaxTrees.Single(); 3909var tree = compilation.SyntaxTrees.Single(); 4035var tree = comp.SyntaxTrees.Single(); 4433var tree = compilation.SyntaxTrees.Single(); 4487var tree = compilation.SyntaxTrees.Single(); 4532var tree = compilation.SyntaxTrees.Single(); 4671var tree = comp.SyntaxTrees.Single(); 4716var tree = comp.SyntaxTrees.Single(); 5400var tree = compilation.SyntaxTrees.Single(); 5518var tree = comp.SyntaxTrees.Single(); 5532var tree = comp.SyntaxTrees.Single(); 5579var tree = comp.SyntaxTrees.Single(); 5617var tree = comp.SyntaxTrees.Single(); 5664var tree = comp.SyntaxTrees.Single(); 5717var tree = comp.SyntaxTrees.Single();
Compilation\SemanticModelAPITests.cs (6)
1229var tree = comp.SyntaxTrees.Single(); 1358var tree = comp.SyntaxTrees.Single(); 1725var tree = comp.SyntaxTrees.Single(); 2069var tree = comp.SyntaxTrees.Single(); 3738var tree = comp.SyntaxTrees.Single(); 3902var tree = comp.SyntaxTrees.Single();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (23)
1706var tree = compilation.SyntaxTrees.Single(); 1810var tree = compilation.SyntaxTrees.Single(); 1932var tree = compilation.SyntaxTrees.Single(); 1972tree = compilation.SyntaxTrees.Single(); 2782var tree = compilation.SyntaxTrees.First(); 2903var tree = compilation.SyntaxTrees.First(); 2933var tree = compilation.SyntaxTrees.First(); 2965var tree = compilation.SyntaxTrees.First(); 3014var tree = compilation.SyntaxTrees.First(); 3071var tree = compilation.SyntaxTrees.First(); 3107var tree = comp.SyntaxTrees.First(); 3137var tree = compilation.SyntaxTrees.First(); 3233var tree = compilation.SyntaxTrees.First(); 3736var tree = compilation.SyntaxTrees.First(); 3748var tree2 = compilation.SyntaxTrees.ElementAt(1); 3996var tree = compilation.SyntaxTrees.Single(); 4085var tree = compilation.SyntaxTrees.Single(); 4437var tree = compilation.SyntaxTrees.Single(); 4468var tree = compilation.SyntaxTrees.Single(); 4499var tree = compilation.SyntaxTrees.Single(); 4533var tree = compilation.SyntaxTrees.Single(); 4570var tree = compilation.SyntaxTrees.Single(); 4651var tree = compilation.SyntaxTrees.Single();
Compilation\SemanticModelGetSemanticInfoTests.cs (10)
1113var tree = compilation.SyntaxTrees.First(); 1147tree = compilation.SyntaxTrees.First(); 1177tree = compilation.SyntaxTrees.First(); 1207tree = compilation.SyntaxTrees.First(); 1233tree = compilation.SyntaxTrees.First(); 1260tree = compilation.SyntaxTrees.First(); 1288tree = compilation.SyntaxTrees.First(); 1315tree = compilation.SyntaxTrees.First(); 1356tree = compilation.SyntaxTrees.First(); 1394tree = compilation.SyntaxTrees.First();
Compilation\UsedAssembliesTests.cs (1)
135var tree = comp.SyntaxTrees.Single();
DocumentationComments\CrefTests.cs (30)
905var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 1001var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 1100var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4785var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4847var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4874var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4935var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 4977var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5009var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5086var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5138var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5400var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5443var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5469var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5491var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 5593var tree = compilation.SyntaxTrees.Single(); 5623var tree = compilation.SyntaxTrees.Single(); 6104var tree = compilation.SyntaxTrees.Single(); 6139var tree = compilation.SyntaxTrees.Single(); 6182var tree = compilation.SyntaxTrees.Single(); 6210var tree = compilation.SyntaxTrees.Single(); 6240var tree = compilation.SyntaxTrees.Single(); 6325var tree = compilation.SyntaxTrees.First(); 6424var tree = comp.SyntaxTrees.Single(); 6462var tree = comp.SyntaxTrees.Single(); 6496var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 6531var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 6558var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 6580var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 6603var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single());
DocumentationComments\ParameterTests.cs (3)
566var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 594var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single()); 643var model = compilation.GetSemanticModel(compilation.SyntaxTrees.Single());
SymbolDisplay\SymbolDisplayTests.cs (1)
5595var model = comp.GetSemanticModel(comp.SyntaxTrees.First());
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1004var syntaxTree = compilation.SyntaxTrees.Single();
Symbols\ConversionTests.cs (3)
2066var tree = comp.SyntaxTrees.Single(); 2136var tree = comp.SyntaxTrees.Single(); 2170var tree = comp.SyntaxTrees.Single();
Symbols\DestructorTests.cs (1)
404var tree = compilation.SyntaxTrees.Single();
Symbols\ExtensionMethodTests.cs (2)
2950var tree = compilation.SyntaxTrees.Single(); 3008var tree = compilation.SyntaxTrees.Single();
Symbols\MethodEqualityTests.cs (1)
205var tree = comp.SyntaxTrees.Single();
Symbols\Source\BaseClassTests.cs (2)
269var tree = comp.SyntaxTrees.First(); 306var tree = comp.SyntaxTrees.First();
Symbols\Source\EventTests.cs (1)
303var semanticModel = compVerifier.Compilation.GetSemanticModel(compVerifier.Compilation.SyntaxTrees.Single());
Symbols\Source\ExternAliasTests.cs (1)
475var tree = comp.SyntaxTrees.Single();
Symbols\Source\NullablePublicAPITests.cs (1)
1207var syntaxTree = comp.SyntaxTrees.First();
Symbols\TypeTests.cs (1)
1851var tree = compilation.SyntaxTrees.Single();
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
4989var tree = compilation.SyntaxTrees.Single();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeFixes\CodeFixServiceTests.cs (1)
613foreach (var tree in context.Compilation.SyntaxTrees)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
858var generator = new DiagnosticProducingGenerator(c => Location.Create(c.Compilation.SyntaxTrees.Single(), new TextSpan(0, 10))); 925context.RegisterCompilationAction(c => c.ReportDiagnostic(Diagnostic.Create(s_compilationRule, c.Compilation.SyntaxTrees.First().GetRoot().GetLocation()))); 941context.RegisterCompilationAction(c => c.ReportDiagnostic(Diagnostic.Create(s_compilationRule, c.Compilation.SyntaxTrees.First().GetRoot().GetLocation())));
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
127var tree = compilation.SyntaxTrees.FirstOrDefault(tree => !GeneratedCodeUtilities.IsGeneratedCode(tree, IsRegularCommentOrDocComment, context.CancellationToken));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
414foreach (var syntaxTree in context.Compilation.SyntaxTrees)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
Diagnostics\NonLocalDiagnosticTests.cs (2)
89foreach (var tree in compilation.SyntaxTrees) 102foreach (var tree in compilation.SyntaxTrees)
Diagnostics\PullDiagnosticTests.cs (3)
678var generator = new DiagnosticProducingGenerator(context => Location.Create(context.Compilation.SyntaxTrees.Single(), new TextSpan(0, 10))); 1324var generator = new DiagnosticProducingGenerator(context => Location.Create(context.Compilation.SyntaxTrees.Single(), new TextSpan(0, 10))); 1345context.Compilation.SyntaxTrees.Single(),
Microsoft.CodeAnalysis.Rebuild (1)
CompilationFactory.cs (1)
84var embeddedTexts = rebuildCompilation.SyntaxTrees
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CompilationRebuildArtifactResolver.cs (1)
30.SyntaxTrees
RoundTripUtil.cs (2)
71Assert.True(original.SyntaxTrees.All(x => !string.IsNullOrEmpty(x.FilePath))); 94original.SyntaxTrees.SelectAsArray(x => compilationFactory.CreateSyntaxTree(x.FilePath, x.GetText())),
Microsoft.CodeAnalysis.Test.Utilities (13)
Compilation\CompilationExtensions.cs (2)
201SyntaxTree tree = compilation.SyntaxTrees.First(); 287foreach (var tree in compilation.SyntaxTrees)
Compilation\IRuntimeEnvironment.cs (1)
251var embeddedTexts = compilation.SyntaxTrees
CompilationVerifier.cs (1)
647ILValidation.GetSequencePointMarkers(xmlMethod, id => _compilation.SyntaxTrees.Single(tree => tree.FilePath == documentMap[id]).GetText()) :
Diagnostics\CommonDiagnosticAnalyzers.cs (9)
105var tree = compilation.SyntaxTrees.First(); 183var tree = compilation.SyntaxTrees.First(); 260var tree = compilation.SyntaxTrees.First(); 313var tree = compilation.SyntaxTrees.First(); 1079foreach (var tree in context.Compilation.SyntaxTrees) 1833if (_treeCallbackSet.Count != endContext.Compilation.SyntaxTrees.Count()) 2827var index = compilation.SyntaxTrees.IndexOf(tree) + 1; 2834var index = compilation.SyntaxTrees.IndexOf(analyzedTree) + 1; 2835foreach (var tree in compilation.SyntaxTrees)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
132Dim tree = comp.SyntaxTrees.Single()
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
ScriptTests.vb (1)
64Assert.Equal(script.Code, compilation.SyntaxTrees.First().GetText().ToString())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (54)
Diagnostics\DiagnosticAnalyzerTests.vb (2)
1169Dim files = compilation.SyntaxTrees.Select(Function(t) t.FilePath).ToImmutableArray() 1184For i As Integer = 0 To compilation.SyntaxTrees.Count() - 1
SourceGeneration\GeneratorDriverTests.vb (18)
35Assert.Equal(2, outputCompilation.SyntaxTrees.Count()) 73Assert.Equal(2, outputCompilation.SyntaxTrees.Count()) 303Dim syntaxTree = VisualBasicSyntaxTree.ParseText(comp.SyntaxTrees.Single().GetText(), parseOptions, path:="/detached") 333Dim validSyntaxTree = comp.SyntaxTrees.Single() 365Dim syntaxTree = VisualBasicSyntaxTree.ParseText(ctx.Compilation.SyntaxTrees.Single().GetText(), parseOptions, path:="/detached") 394Dim validSyntaxTree = ctx.Compilation.SyntaxTrees.Single() 425Dim syntaxTree = comp.SyntaxTrees.Single() 455Dim syntaxTree = comp.SyntaxTrees.Single() 486Dim syntaxTree = ctx.Compilation.SyntaxTrees.Single() 515Dim syntaxTree = ctx.Compilation.SyntaxTrees.Single() 545Dim syntaxTree = comp.SyntaxTrees.Single() 575Dim syntaxTree = ctx.Compilation.SyntaxTrees.Single() 607Assert.Equal(1, outputCompilation.SyntaxTrees.Count()) 625Assert.Equal(1, outputCompilation.SyntaxTrees.Count()) 642Assert.Single(compilation.SyntaxTrees) 650Assert.Single(compilation.SyntaxTrees) 667Assert.Single(compilation.SyntaxTrees) 675c.ReportDiagnostic(diag.WithLocation(CodeAnalysis.Location.Create(c.Compilation.SyntaxTrees.First(), location)))
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (34)
76Assert.Single(compilation.SyntaxTrees) 117Assert.Single(compilation.SyntaxTrees) 160Assert.Single(compilation.SyntaxTrees) 188Assert.Single(compilation.SyntaxTrees) 201Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First)) 217Assert.Single(compilation.SyntaxTrees) 230Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First)) 256Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First), 257Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.Last)) 274Assert.Single(compilation.SyntaxTrees) 303Assert.Single(compilation.SyntaxTrees) 332Assert.Single(compilation.SyntaxTrees) 361Assert.Single(compilation.SyntaxTrees) 392Assert.Single(compilation.SyntaxTrees) 435Assert.Single(compilation.SyntaxTrees) 476Assert.Single(compilation.SyntaxTrees) 516Assert.Single(compilation.SyntaxTrees) 555Assert.Single(compilation.SyntaxTrees) 594Assert.Single(compilation.SyntaxTrees) 634Assert.Single(compilation.SyntaxTrees) 891Assert.Single(compilation.SyntaxTrees) 938Assert.Single(compilation.SyntaxTrees) 985Assert.Single(compilation.SyntaxTrees) 1000driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From("")))) 1028Assert.Single(compilation.SyntaxTrees) 1042driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From(" 1077Assert.Single(compilation.SyntaxTrees) 1091driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From(" 1144driver = driver.RunGenerators(compilation.AddSyntaxTrees(compilation.SyntaxTrees.First().WithChangedText(SourceText.From(" 1188Assert.Single(compilation.SyntaxTrees) 1203compilation.SyntaxTrees.First(), 1204compilation.SyntaxTrees.First().WithChangedText(SourceText.From(" 1257compilation.SyntaxTrees.First(), 1258compilation.SyntaxTrees.First().WithChangedText(SourceText.From("
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (13)
CompilationTestUtils.vb (6)
425Dim trees = If(fileName Is Nothing, compilation.SyntaxTrees, compilation.SyntaxTrees.Where(Function(t) t.FilePath = fileName)) 461Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 505Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 623Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 688Return (From t In compilation.SyntaxTrees Where t.FilePath = name).First()
SemanticModelTestBase.vb (7)
29Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 48Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 70Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 96Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 103Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 120Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = filename).Single() 129Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = filename).Single()
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
3859Dim declCU = comp.SyntaxTrees.First().GetRoot()
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
121if (syntaxTree != null && Contains(compilation.SyntaxTrees, syntaxTree))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
158return compilation.SyntaxTrees.Contains(locations.First().SourceTree);
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
105Contract.ThrowIfTrue(this.CompilationWithoutGeneratedDocuments.SyntaxTrees.Contains(generatedDocument.GetSyntaxTree(CancellationToken.None))); 205Contract.ThrowIfTrue(compilationWithoutGeneratedDocuments.SyntaxTrees.Contains(generatedDocument.GetSyntaxTree(CancellationToken.None)));
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
977foreach (var tree in compilation.SyntaxTrees)
Microsoft.CodeAnalysis.Workspaces.UnitTests (39)
SolutionTests\SolutionTests.cs (18)
338var tree = compilation.SyntaxTrees.Single(); 2699Assert.Empty((await finalProject.GetCompilationAsync()).SyntaxTrees); 2877var trees = compilation.SyntaxTrees.ToList(); 3485Assert.Equal(1, compilation.SyntaxTrees.Count()); 3925var syntaxTree = compilation.SyntaxTrees.Single(); 4081var tree = Assert.Single((await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4106var tree = Assert.Single((await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4275var singleTree = Assert.Single((await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4344Assert.Contains(await frozenDocument.GetSyntaxTreeAsync(), (await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4570return solution.GetProject(pid).GetCompilationAsync().Result.SyntaxTrees.ToImmutableArray(); 5587Assert.Empty(frozenCompilation.SyntaxTrees); 5606Assert.Single(frozenCompilation.SyntaxTrees); 5631Assert.Single(frozenCompilation1.SyntaxTrees); 5635Assert.Empty(frozenCompilation2.SyntaxTrees); 5658Assert.Single(frozenCompilation1.SyntaxTrees); 5665Assert.Empty(frozenCompilation2.SyntaxTrees); 5688Assert.Single(frozenCompilation1.SyntaxTrees); 5695Assert.Single(frozenCompilation2.SyntaxTrees);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
845onExecute: context => noTreesPassed = context.Compilation.SyntaxTrees.Any()));
SymbolKeyTests.cs (20)
318TestRoundTrip(GetAllSymbols(compilation.GetSemanticModel(compilation.SyntaxTrees.Single())), compilation); 618var tree = compilation.SyntaxTrees.First(); 654var tree = compilation.SyntaxTrees.First(); 676var tree = compilation.SyntaxTrees.First(); 701var tree = compilation.SyntaxTrees.First(); 719var tree = compilation.SyntaxTrees.First(); 737var tree = compilation.SyntaxTrees.First(); 757var tree = compilation.SyntaxTrees.First(); 780var tree = compilation.SyntaxTrees.First(); 823var tree = compilation.SyntaxTrees.First(); 837var tree = compilation.SyntaxTrees.First(); 981compilation.GetSemanticModel(compilation.SyntaxTrees.Single()), 1022compilation1.GetSemanticModel(compilation1.SyntaxTrees.Single()), 1059compilation1.GetSemanticModel(compilation1.SyntaxTrees.Single()), 1092compilation1.GetSemanticModel(compilation1.SyntaxTrees.Single()), 1127compilation1.GetSemanticModel(compilation1.SyntaxTrees.Single()), 1174compilation2.GetSemanticModel(compilation2.SyntaxTrees.Single()), 1221compilation2.GetSemanticModel(compilation2.SyntaxTrees.Single()), 1273var tree = compilation1.SyntaxTrees.Single(); 1415var syntaxTree = compilation.SyntaxTrees.Single();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3043var tree = compilation.SyntaxTrees.FirstOrDefault();
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
3653Dim tree = compilation.SyntaxTrees.FirstOrDefault()
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
100.SelectMany((compilation, cancellationToken) => compilation.SyntaxTrees
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
311string output = outputCompilation.SyntaxTrees.Skip(2).First().ToString();