File: Workspace\Solution\TextDifferenceTypes.cs
Web Access
Project: ..\..\..\src\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj (Microsoft.CodeAnalysis.Workspaces)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
#nullable disable
 
using System;
 
namespace Microsoft.CodeAnalysis
{
    /// <summary>
    /// A bitwise combination of the enumeration values to use when computing differences with 
    /// <see cref="IDocumentTextDifferencingService" />. 
    /// </summary>
    /// <remarks>
    /// Since computing differences can be slow with large data sets, you should not use the Character type
    /// unless the given text is relatively small.
    /// </remarks>
    [Flags]
    internal enum TextDifferenceTypes
    {
        /// <summary>
        /// Compute the line difference.
        /// </summary>
        Line = 1,
 
        /// <summary>
        /// Compute the word difference.
        /// </summary>
        Word = 2,
 
        /// <summary>
        /// Compute the character difference.
        /// </summary>
        Character = 4
    }
}