private static async Task <VersionStamp> ComputeTopLevelChangeTextVersionAsync( VersionStamp oldVersion, TextDocumentState newDocument, CancellationToken cancellationToken ) { var newVersion = await newDocument .GetTopLevelChangeTextVersionAsync(cancellationToken) .ConfigureAwait(false); return(newVersion.GetNewerVersion(oldVersion)); }
/// <summary> /// Gets the version of the document's top level signature. /// </summary> internal Task <VersionStamp> GetTopLevelChangeTextVersionAsync(CancellationToken cancellationToken = default) { return(State.GetTopLevelChangeTextVersionAsync(cancellationToken)); }
private static async Task<VersionStamp> ComputeTopLevelChangeTextVersionAsync(VersionStamp oldVersion, TextDocumentState newDocument, CancellationToken cancellationToken) { var newVersion = await newDocument.GetTopLevelChangeTextVersionAsync(cancellationToken).ConfigureAwait(false); return newVersion.GetNewerVersion(oldVersion); }