1 write to SourceText
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
173this.SourceText = text;
13 references to SourceText
Microsoft.Analyzers.Extra.Tests (1)
UsingToStringInLoggersTests.cs (1)
68new[] { Source, generated.generatedSources[0].SourceText.ToString() });
Microsoft.CodeAnalysis (4)
SourceGeneration\RunResults.cs (4)
166/// This contains the original <see cref="SourceText"/> added by the generator, along with the parsed representation of that text in <see cref="SyntaxTree"/>. 178/// The <see cref="SyntaxTree"/> that was produced from parsing the <see cref="GeneratedSourceResult.SourceText"/>. 183/// The <see cref="SourceText"/> that was added by the generator. 188/// An identifier provided by the generator that identifies the added <see cref="SourceText"/>.
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (1)
1512Assert.Equal("// generated", runResults.Results.Single().GeneratedSources.Single().SourceText.ToString());
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (1)
1294Assert.Equal(expectedGeneratedSources, driver.GetRunResult().Results.Single().GeneratedSources.Select(s => (s.HintName, s.SourceText.ToString())));
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
310.WithText(generatedSource.SourceText) 337generatedSource.SourceText,
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
EmitterTests.cs (1)
150var result = r[0].SourceText.ToString();
Microsoft.Gen.Logging.Unit.Tests (1)
ParserTests.cs (1)
683return Verifier.Verify(generatedSources[0].SourceText.ToString())
Microsoft.Gen.Metrics.Unit.Tests (2)
EmitterTests.cs (2)
49var result = r.First(x => x.HintName == "Factory.g.cs").SourceText.ToString(); 52result = r.First(x => x.HintName == "Metrics.g.cs").SourceText.ToString();