1 write to State
Microsoft.CodeAnalysis.Workspaces (1)
190 references to State
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.Features (59)
Microsoft.CodeAnalysis.Features.UnitTests (6)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (8)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (81)
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (3)
39=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
45=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
51=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (3)
47=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
53=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
59=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
Workspace\Solution\Project.cs (41)
56public ProjectId Id => State.Id;
61public string? FilePath => State.FilePath;
66public string? OutputFilePath => State.OutputFilePath;
71public string? OutputRefFilePath => State.OutputRefFilePath;
76public CompilationOutputInfo CompilationOutputInfo => State.CompilationOutputInfo;
89public string? DefaultNamespace => State.DefaultNamespace;
104public HostLanguageServices LanguageServices => State.LanguageServices.HostLanguageServices;
111public LanguageServices Services => State.LanguageServices;
116public string Language => State.Language;
121public string AssemblyName => State.AssemblyName;
126public string Name => State.Name;
131public IReadOnlyList<MetadataReference> MetadataReferences => State.MetadataReferences;
136public IEnumerable<ProjectReference> ProjectReferences => State.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId));
142public IReadOnlyList<ProjectReference> AllProjectReferences => State.ProjectReferences;
147public IReadOnlyList<AnalyzerReference> AnalyzerReferences => State.AnalyzerReferences;
152public AnalyzerOptions AnalyzerOptions => State.ProjectAnalyzerOptions;
157public AnalyzerOptions HostAnalyzerOptions => State.HostAnalyzerOptions;
162public CompilationOptions? CompilationOptions => State.CompilationOptions;
167public ParseOptions? ParseOptions => State.ParseOptions;
172public bool IsSubmission => State.IsSubmission;
177public bool HasDocuments => !State.DocumentStates.IsEmpty;
182public IReadOnlyList<DocumentId> DocumentIds => State.DocumentStates.Ids;
187public IReadOnlyList<DocumentId> AdditionalDocumentIds => State.AdditionalDocumentStates.Ids;
192internal IReadOnlyList<DocumentId> AnalyzerConfigDocumentIds => State.AnalyzerConfigDocumentStates.Ids;
214=> State.DocumentStates.Contains(documentId);
220=> State.AdditionalDocumentStates.Contains(documentId);
226=> State.AnalyzerConfigDocumentStates.Contains(documentId);
318var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(this.State, cancellationToken).ConfigureAwait(false);
350var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(State, cancellationToken).ConfigureAwait(false);
394return Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(this.State, cancellationToken);
399return Solution.CompilationState.GetSourceGeneratorRunResultAsync(this.State, cancellationToken);
497(documentId, project) => project.State.DocumentStates.TryGetState(documentId, out var state) ? new Document(project, state) : null;
500(documentId, project) => project.State.AdditionalDocumentStates.TryGetState(documentId, out var state) ? new AdditionalDocument(project, state) : null;
503(documentId, project) => project.State.AnalyzerConfigDocumentStates.TryGetState(documentId, out var state) ? new AnalyzerConfigDocument(project, state) : null;
525=> Solution.CompilationState.GetCompilationAsync(State, cancellationToken);
532=> Solution.CompilationState.HasSuccessfullyLoadedAsync(State, cancellationToken);
550public VersionStamp Version => State.Version;
556=> State.GetLatestDocumentVersionAsync(cancellationToken);
576=> State.GetSemanticVersionAsync(cancellationToken);
825=> State.GetAnalyzerConfigOptions();
838var documentId = await State.GetDocumentIdAsync(contentHash, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.VisualStudio.LanguageServices (5)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
Roslyn.VisualStudio.Next.UnitTests (12)