1 write to _projectState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Project.cs (1)
42
_projectState
= projectState;
36 references to _projectState
Microsoft.CodeAnalysis.Workspaces (36)
Workspace\Solution\Project.cs (36)
45
internal ProjectState State =>
_projectState
;
56
public ProjectId Id =>
_projectState
.Id;
61
public string? FilePath =>
_projectState
.FilePath;
66
public string? OutputFilePath =>
_projectState
.OutputFilePath;
71
public string? OutputRefFilePath =>
_projectState
.OutputRefFilePath;
76
public CompilationOutputInfo CompilationOutputInfo =>
_projectState
.CompilationOutputInfo;
89
public string? DefaultNamespace =>
_projectState
.DefaultNamespace;
104
public HostLanguageServices LanguageServices =>
_projectState
.LanguageServices.HostLanguageServices;
111
public LanguageServices Services =>
_projectState
.LanguageServices;
116
public string Language =>
_projectState
.Language;
121
public string AssemblyName =>
_projectState
.AssemblyName;
126
public string Name =>
_projectState
.Name;
131
public IReadOnlyList<MetadataReference> MetadataReferences =>
_projectState
.MetadataReferences;
136
public IEnumerable<ProjectReference> ProjectReferences =>
_projectState
.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId));
142
public IReadOnlyList<ProjectReference> AllProjectReferences =>
_projectState
.ProjectReferences;
147
public IReadOnlyList<AnalyzerReference> AnalyzerReferences =>
_projectState
.AnalyzerReferences;
152
public AnalyzerOptions AnalyzerOptions =>
_projectState
.AnalyzerOptions;
157
public CompilationOptions? CompilationOptions =>
_projectState
.CompilationOptions;
162
public ParseOptions? ParseOptions =>
_projectState
.ParseOptions;
167
public bool IsSubmission =>
_projectState
.IsSubmission;
172
public bool HasDocuments => !
_projectState
.DocumentStates.IsEmpty;
177
public IReadOnlyList<DocumentId> DocumentIds =>
_projectState
.DocumentStates.Ids;
182
public IReadOnlyList<DocumentId> AdditionalDocumentIds =>
_projectState
.AdditionalDocumentStates.Ids;
187
internal IReadOnlyList<DocumentId> AnalyzerConfigDocumentIds =>
_projectState
.AnalyzerConfigDocumentStates.Ids;
209
=>
_projectState
.DocumentStates.Contains(documentId);
215
=>
_projectState
.AdditionalDocumentStates.Contains(documentId);
221
=>
_projectState
.AnalyzerConfigDocumentStates.Contains(documentId);
447
(documentId, project) => project.
_projectState
.DocumentStates.TryGetState(documentId, out var state) ? new Document(project, state) : null;
450
(documentId, project) => project.
_projectState
.AdditionalDocumentStates.TryGetState(documentId, out var state) ? new AdditionalDocument(project, state) : null;
453
(documentId, project) => project.
_projectState
.AnalyzerConfigDocumentStates.TryGetState(documentId, out var state) ? new AnalyzerConfigDocument(project, state) : null;
475
=> _solution.State.GetCompilationAsync(
_projectState
, cancellationToken);
482
=> _solution.State.HasSuccessfullyLoadedAsync(
_projectState
, cancellationToken);
500
public VersionStamp Version =>
_projectState
.Version;
506
=>
_projectState
.GetLatestDocumentVersionAsync(cancellationToken);
526
=>
_projectState
.GetSemanticVersionAsync(cancellationToken);
787
=>
_projectState
.GetAnalyzerConfigOptions();