564 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 (251)
SourceGeneration\GeneratorDriverTests.cs (102)
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();
1538var syntaxTree = compilation.SyntaxTrees.Single();
1586Assert.Single(compilation.SyntaxTrees);
1615Assert.Single(compilation.SyntaxTrees);
1648Assert.Single(compilation.SyntaxTrees);
1669Assert.Single(compilation.SyntaxTrees);
1676Assert.Equal(2, outputCompilation.SyntaxTrees.Count());
1731Assert.Single(compilation.SyntaxTrees);
1775Assert.Single(compilation.SyntaxTrees);
1994Assert.Single(compilation.SyntaxTrees);
2030Assert.Single(compilation.SyntaxTrees);
2216compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), CSharpSyntaxTree.ParseText(source, parseOptions));
2278compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), CSharpSyntaxTree.ParseText(source, parseOptions));
2292Assert.Single(compilation.SyntaxTrees);
2421compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source, parseOptions));
2435Assert.Single(compilation.SyntaxTrees);
2480var c2 = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText("class E{}", parseOptions));
2507Assert.Single(compilation.SyntaxTrees);
2549Assert.Single(compilation.SyntaxTrees);
2589Assert.Single(compilation.SyntaxTrees);
2617Assert.Single(compilation.SyntaxTrees);
2680Assert.Single(compilation.SyntaxTrees);
2718Assert.True(compilation.SyntaxTrees.Contains(node.SyntaxTree));
2746Assert.Single(compilation.SyntaxTrees);
2829Assert.Single(compilation.SyntaxTrees);
3016Assert.Single(compilation.SyntaxTrees);
3211Assert.Single(compilation.SyntaxTrees);
3277Assert.Single(compilation.SyntaxTrees);
3323Assert.Single(compilation.SyntaxTrees);
3359Assert.Single(compilation.SyntaxTrees);
3411Assert.Single(compilation.SyntaxTrees);
3779var validSyntaxTree = comp.SyntaxTrees.Single();
3840var validSyntaxTree = ctx.Compilation.SyntaxTrees.Single();
3873var syntaxTree = comp.SyntaxTrees.Single();
3905var syntaxTree = comp.SyntaxTrees.Single();
3936var syntaxTree = ctx.Compilation.SyntaxTrees.Single();
3965var syntaxTree = ctx.Compilation.SyntaxTrees.Single();
3997var syntaxTree = comp.SyntaxTrees.Single();
4027var syntaxTree = ctx.Compilation.SyntaxTrees.Single();
4138Assert.Single(compilation.SyntaxTrees);
4436var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4437var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4481var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator();
4482var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator();
4505var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4506var 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 (56)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (13)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (39)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
System.Windows.Forms.PrivateSourceGenerators.Tests (1)