557 references to SyntaxTrees
AnalyzerRunner (1)
BuildValidator (1)
IdeCoreBenchmarks (2)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.Http.Extensions.Tests (3)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (247)
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();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (107)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (13)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (54)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (13)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (39)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
System.Windows.Forms.PrivateSourceGenerators.Tests (1)