27 references to DocumentState
Microsoft.CodeAnalysis.CSharp.Features (1)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
84var parseOptions = document.DocumentState.ParseOptions!;
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\ActiveStatementTrackingService.cs (1)
167if (!designTimeDocument.DocumentState.SupportsEditAndContinue())
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
94_documentsWithChangedLoaderByPath.Add(oldDocument.FilePath, (oldDocument.DocumentState, oldSolutionVersion));
Microsoft.CodeAnalysis.Features (5)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
91Contract.ThrowIfNull(document.DocumentState.ParseOptions);
EditAndContinue\ActiveStatementsMap.cs (1)
174var oldTree = await oldDocument.DocumentState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\CommittedSolution.cs (1)
238if (!document.DocumentState.SupportsEditAndContinue())
EditAndContinue\DebuggingSession.cs (1)
471if (!document.DocumentState.SupportsEditAndContinue())
Workspace\CompileTimeSolutionProvider.cs (1)
185if (!IsRazorDesignTimeDocument(designTimeDocument.DocumentState))
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LanguageServerWorkspace.cs (1)
114if (document is not null && (document.DocumentState.Attributes.DesignTimeOnly || !PathUtilities.IsAbsolute(filePath)))
Microsoft.CodeAnalysis.Workspaces (12)
Workspace\Solution\Document.cs (9)
55public SourceCodeKind SourceCodeKind => DocumentState.SourceCodeKind; 66DocumentState.SourceCodeKind != otherDocument.SourceCodeKind; 87if (!DocumentState.TryGetSyntaxTree(out syntaxTree)) 124=> DocumentState.TryGetTopLevelChangeTextVersion(out version); 142public bool SupportsSyntaxTree => DocumentState.SupportsSyntaxTree; 194return DocumentState.GetSyntaxTreeAsync(cancellationToken).AsTask().AsNullable(); 204return DocumentState.GetSyntaxTree(cancellationToken); 616return await provider.GetOptionsAsync(DocumentState, cancellationToken).ConfigureAwait(false); 620=> this.DocumentState.GetContentHashAsync(cancellationToken);
Workspace\Workspace.cs (3)
360relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.DocumentState)); 1340newSolution = newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.DocumentState); 1676new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionTests.cs (4)
276Assert.Equal(SourceCodeKind.Script, document1.DocumentState.ParseOptions?.Kind); 280Assert.Equal(SourceCodeKind.Regular, document2.DocumentState.ParseOptions?.Kind); 4935Assert.Null(document1.DocumentState.ParseOptions); 4939Assert.Null(document2.DocumentState.ParseOptions);
Roslyn.VisualStudio.Next.UnitTests (2)
Services\ServiceHubServicesTests.cs (2)
500Assert.Equal(localDoc.DocumentState.Id, remoteDoc.DocumentState.Id);