|
// 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.Collections.Immutable;
namespace Microsoft.CodeAnalysis.SolutionCrawler;
internal readonly partial struct InvocationReasons
{
public static readonly InvocationReasons DocumentAdded =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.DocumentAdded,
PredefinedInvocationReasons.SyntaxChanged,
PredefinedInvocationReasons.SemanticChanged));
public static readonly InvocationReasons DocumentRemoved =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.DocumentRemoved,
PredefinedInvocationReasons.SyntaxChanged,
PredefinedInvocationReasons.SemanticChanged,
PredefinedInvocationReasons.HighPriority));
public static readonly InvocationReasons ProjectParseOptionChanged =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.ProjectParseOptionsChanged,
PredefinedInvocationReasons.SyntaxChanged,
PredefinedInvocationReasons.SemanticChanged));
public static readonly InvocationReasons ProjectConfigurationChanged =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.ProjectConfigurationChanged,
PredefinedInvocationReasons.SyntaxChanged,
PredefinedInvocationReasons.SemanticChanged));
public static readonly InvocationReasons SolutionRemoved =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.SolutionRemoved,
PredefinedInvocationReasons.DocumentRemoved));
public static readonly InvocationReasons DocumentOpened =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.DocumentOpened,
PredefinedInvocationReasons.HighPriority));
public static readonly InvocationReasons DocumentClosed =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.DocumentClosed,
PredefinedInvocationReasons.HighPriority));
public static readonly InvocationReasons DocumentChanged =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.SyntaxChanged,
PredefinedInvocationReasons.SemanticChanged));
public static readonly InvocationReasons AdditionalDocumentChanged =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.SyntaxChanged,
PredefinedInvocationReasons.SemanticChanged));
public static readonly InvocationReasons SyntaxChanged =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.SyntaxChanged));
public static readonly InvocationReasons SemanticChanged =
new(
ImmutableHashSet.Create<string>(
PredefinedInvocationReasons.SemanticChanged));
public static readonly InvocationReasons Reanalyze =
new(PredefinedInvocationReasons.Reanalyze);
public static readonly InvocationReasons ReanalyzeHighPriority =
Reanalyze.With(PredefinedInvocationReasons.HighPriority);
public static readonly InvocationReasons ActiveDocumentSwitched =
new(PredefinedInvocationReasons.ActiveDocumentSwitched);
}
|