1 implementation of ICompilationFactoryService
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (1)
16
internal sealed class CSharpCompilationFactoryService :
ICompilationFactoryService
27 references to ICompilationFactoryService
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (6)
15
[ExportLanguageService(typeof(
ICompilationFactoryService
), LanguageNames.CSharp), Shared]
26
Compilation
ICompilationFactoryService
.CreateCompilation(string assemblyName, CompilationOptions options)
33
Compilation
ICompilationFactoryService
.CreateSubmissionCompilation(string assemblyName, CompilationOptions options, Type? hostObjectType)
42
CompilationOptions
ICompilationFactoryService
.GetDefaultCompilationOptions()
45
CompilationOptions?
ICompilationFactoryService
.TryParsePdbCompilationOptions(IReadOnlyDictionary<string, string> compilationOptionsMetadata)
56
GeneratorDriver
ICompilationFactoryService
.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.CodeAnalysis.Features (7)
AddImport\AbstractAddImportFeatureService.cs (2)
432
var
compilationService = project.Services.GetRequiredService<
ICompilationFactoryService
>();
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
344
var compilationOptions = services.GetRequiredLanguageService<
ICompilationFactoryService
>(fileInfo.LanguageName).GetDefaultCompilationOptions().WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (3)
145
var
compilationFactory = sourceProject.Services.GetRequiredService<
ICompilationFactoryService
>();
310
var compilationOptions = languageServices.GetRequiredService<
ICompilationFactoryService
>().TryParsePdbCompilationOptions(pdbCompilationOptions);
Workspace\MiscellaneousFileUtilities.cs (1)
49
var compilationOptions = languageServices.GetService<
ICompilationFactoryService
>()?.GetDefaultCompilationOptions();
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
413
var
factory = project.Services.GetRequiredService<
ICompilationFactoryService
>();
Workspace\Host\HostLanguageServices.cs (2)
81
internal virtual
ICompilationFactoryService
? CompilationFactory
83
get { return this.GetService<
ICompilationFactoryService
>(); }
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
623
if (projectWithMetadataReference.LanguageServices.GetService<
ICompilationFactoryService
>() != null &&
624
candidateProjectToReference.LanguageServices.GetService<
ICompilationFactoryService
>() == null)
Workspace\Solution\Project.cs (1)
97
public bool SupportsCompilation => this.Services.GetService<
ICompilationFactoryService
>() != null;
Workspace\Solution\ProjectState.cs (3)
194
var
compilationFactory = LanguageServices.GetService<
ICompilationFactoryService
>();
653
public bool SupportsCompilation => this.LanguageServices.GetService<
ICompilationFactoryService
>() != null;
Workspace\Solution\SolutionCompilationState.GeneratorDriverInitializationCache.cs (2)
71
var
compilationFactory = projectState.LanguageServices.GetRequiredService<
ICompilationFactoryService
>();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
662
var
compilationFactory = this.ProjectState.LanguageServices.GetRequiredService<
ICompilationFactoryService
>();