1 write to NewProjectState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.TranslationAction.cs (1)
31
NewProjectState
= newProjectState;
19 references to NewProjectState
Microsoft.CodeAnalysis.Workspaces (19)
Workspace\Solution\SolutionCompilationState.cs (2)
883
var newProjectState = compilationTranslationAction.
NewProjectState
;
1819
var newProjectState = compilationTranslationAction.
NewProjectState
;
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (17)
63
return new TouchDocumentsAction(priorAction.OldProjectState,
NewProjectState
, priorTouchAction._oldStates, _newStates);
95
return new TouchAdditionalDocumentsAction(priorAction.OldProjectState,
NewProjectState
, priorTouchAction._oldStates, _newStates);
122
RoslynDebug.AssertNotNull(this.
NewProjectState
.CompilationOptions);
123
return Task.FromResult(oldCompilation.WithOptions(this.
NewProjectState
.CompilationOptions));
131
=> generatorDriver.WithUpdatedAnalyzerConfigOptions(
NewProjectState
.ProjectAnalyzerOptions.AnalyzerConfigOptionsProvider);
209
using var _ = ArrayBuilder<SyntaxTree>.GetInstance(this.
NewProjectState
.DocumentStates.Count, out var syntaxTrees);
210
foreach (var documentState in this.
NewProjectState
.DocumentStates.GetStatesInCompilationOrder())
226
RoslynDebug.AssertNotNull(this.
NewProjectState
.ParseOptions);
227
return generatorDriver.WithUpdatedParseOptions(this.
NewProjectState
.ParseOptions);
244
Contract.ThrowIfNull(this.
NewProjectState
.CompilationOptions);
245
return Task.FromResult(oldCompilation.WithOptions(this.
NewProjectState
.CompilationOptions));
266
=> Task.FromResult(oldCompilation.WithAssemblyName(
NewProjectState
.AssemblyName));
366
.ReplaceAdditionalTexts(this.
NewProjectState
.AdditionalDocumentStates.SelectAsArray(static documentState => documentState.AdditionalText))
367
.WithUpdatedParseOptions(this.
NewProjectState
.ParseOptions!)
368
.WithUpdatedAnalyzerConfigOptions(this.
NewProjectState
.ProjectAnalyzerOptions.AnalyzerConfigOptionsProvider)
369
.ReplaceGenerators(GetSourceGenerators(this.
NewProjectState
));
380
? new ReplaceGeneratorDriverAction(priorAction.OldProjectState, this.
NewProjectState
, oldGeneratorDriver)