1 write to GeneratedSources
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
94this.GeneratedSources = generatedSources;
35 references to GeneratedSources
Microsoft.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
197return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 228return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
197return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 228return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.CodeAnalysis (4)
SourceGeneration\RunResults.cs (4)
61/// This is equivalent to the union of all <see cref="GeneratedSourceResult.SyntaxTree"/>s in each <see cref="GeneratorRunResult.GeneratedSources"/> in each <see cref="Results"/> 69ImmutableInterlocked.InterlockedInitialize(ref _lazyGeneratedTrees, Results.Where(r => !r.GeneratedSources.IsDefaultOrEmpty).SelectMany(r => r.GeneratedSources.Select(g => g.SyntaxTree)).ToImmutableArray()); 135/// diagnostic indicating that the generator failed. Generally <see cref="GeneratedSources"/> will be empty
Microsoft.CodeAnalysis.Workspaces (5)
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
61_producedFilesByGenerator.AddDataPoint(GetTelemetryKey(generatorResult.Generator, getAnalyzerReference), generatorResult.GeneratedSources.Length);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (4)
342runResult.Results.Sum(r => r.GeneratedSources.IsDefaultOrEmpty ? 0 : r.GeneratedSources.Length); 356foreach (var generatedSource in generatorResult.GeneratedSources) 496if (!priorRunResult.Results.Any(r => r.Generator == context.Generator && !r.GeneratedSources.IsDefault))
Microsoft.Gen.BuildMetadata.Unit.Tests (4)
GeneratorTests.cs (1)
115return (diagnostics, runResult.Results[0].GeneratedSources);
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.Logging.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.Metrics.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.MetricsReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);