コード例 #1
0
        private static async Task <VersionStamp> ComputeTopLevelChangeTextVersionAsync(
            VersionStamp oldVersion,
            TextDocumentState newDocument,
            CancellationToken cancellationToken
            )
        {
            var newVersion = await newDocument
                             .GetTopLevelChangeTextVersionAsync(cancellationToken)
                             .ConfigureAwait(false);

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