88 references to EditAndContinueCapabilities
Microsoft.CodeAnalysis.Features (82)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
518
AsyncLazy<
EditAndContinueCapabilities
> lazyCapabilities,
604
if (!capabilities.Grant(
EditAndContinueCapabilities
.Baseline))
EditAndContinue\DocumentAnalysisResults.cs (8)
83
/// <see cref="
EditAndContinueCapabilities
.None"/> if the document does not have valid changes.
85
public
EditAndContinueCapabilities
RequiredCapabilities { get; }
116
EditAndContinueCapabilities
requiredCapabilities,
132
Debug.Assert(requiredCapabilities ==
EditAndContinueCapabilities
.None);
144
Debug.Assert(requiredCapabilities ==
EditAndContinueCapabilities
.None);
160
Debug.Assert(requiredCapabilities !=
EditAndContinueCapabilities
.None);
201
EditAndContinueCapabilities
.None,
220
EditAndContinueCapabilities
.None,
EditAndContinue\EditAndContinueCapabilities.cs (46)
77
public static
EditAndContinueCapabilities
Parse(ImmutableArray<string> capabilities)
79
var
caps =
EditAndContinueCapabilities
.None;
85
nameof(
EditAndContinueCapabilities
.Baseline) =>
EditAndContinueCapabilities
.Baseline,
86
nameof(
EditAndContinueCapabilities
.AddMethodToExistingType) =>
EditAndContinueCapabilities
.AddMethodToExistingType,
87
nameof(
EditAndContinueCapabilities
.AddStaticFieldToExistingType) =>
EditAndContinueCapabilities
.AddStaticFieldToExistingType,
88
nameof(
EditAndContinueCapabilities
.AddInstanceFieldToExistingType) =>
EditAndContinueCapabilities
.AddInstanceFieldToExistingType,
89
nameof(
EditAndContinueCapabilities
.NewTypeDefinition) =>
EditAndContinueCapabilities
.NewTypeDefinition,
90
nameof(
EditAndContinueCapabilities
.ChangeCustomAttributes) =>
EditAndContinueCapabilities
.ChangeCustomAttributes,
91
nameof(
EditAndContinueCapabilities
.UpdateParameters) =>
EditAndContinueCapabilities
.UpdateParameters,
92
nameof(
EditAndContinueCapabilities
.GenericAddMethodToExistingType) =>
EditAndContinueCapabilities
.GenericAddMethodToExistingType,
93
nameof(
EditAndContinueCapabilities
.GenericUpdateMethod) =>
EditAndContinueCapabilities
.GenericUpdateMethod,
94
nameof(
EditAndContinueCapabilities
.GenericAddFieldToExistingType) =>
EditAndContinueCapabilities
.GenericAddFieldToExistingType,
95
nameof(
EditAndContinueCapabilities
.AddExplicitInterfaceImplementation) =>
EditAndContinueCapabilities
.AddExplicitInterfaceImplementation,
98
"AddDefinitionToExistingType" =>
EditAndContinueCapabilities
.AddMethodToExistingType |
EditAndContinueCapabilities
.AddStaticFieldToExistingType |
EditAndContinueCapabilities
.AddInstanceFieldToExistingType,
100
_ =>
EditAndContinueCapabilities
.None
107
public static ImmutableArray<string> ToStringArray(this
EditAndContinueCapabilities
capabilities)
111
if (capabilities.HasFlag(
EditAndContinueCapabilities
.Baseline))
112
builder.Add(nameof(
EditAndContinueCapabilities
.Baseline));
114
if (capabilities.HasFlag(
EditAndContinueCapabilities
.AddMethodToExistingType))
115
builder.Add(nameof(
EditAndContinueCapabilities
.AddMethodToExistingType));
117
if (capabilities.HasFlag(
EditAndContinueCapabilities
.AddStaticFieldToExistingType))
118
builder.Add(nameof(
EditAndContinueCapabilities
.AddStaticFieldToExistingType));
120
if (capabilities.HasFlag(
EditAndContinueCapabilities
.AddInstanceFieldToExistingType))
121
builder.Add(nameof(
EditAndContinueCapabilities
.AddInstanceFieldToExistingType));
123
if (capabilities.HasFlag(
EditAndContinueCapabilities
.NewTypeDefinition))
124
builder.Add(nameof(
EditAndContinueCapabilities
.NewTypeDefinition));
126
if (capabilities.HasFlag(
EditAndContinueCapabilities
.ChangeCustomAttributes))
127
builder.Add(nameof(
EditAndContinueCapabilities
.ChangeCustomAttributes));
129
if (capabilities.HasFlag(
EditAndContinueCapabilities
.UpdateParameters))
130
builder.Add(nameof(
EditAndContinueCapabilities
.UpdateParameters));
132
if (capabilities.HasFlag(
EditAndContinueCapabilities
.AddExplicitInterfaceImplementation))
133
builder.Add(nameof(
EditAndContinueCapabilities
.AddExplicitInterfaceImplementation));
EditAndContinue\EditAndContinueCapabilitiesGrantor.cs (6)
10
internal sealed class EditAndContinueCapabilitiesGrantor(
EditAndContinueCapabilities
availableCapabilities)
12
private readonly
EditAndContinueCapabilities
_availableCapabilities = availableCapabilities;
14
public
EditAndContinueCapabilities
GrantedCapabilities { get; private set; } = 0;
16
public bool Grant(
EditAndContinueCapabilities
capabilities)
24
if (!Grant(
EditAndContinueCapabilities
.NewTypeDefinition))
29
if (type.HasExplicitlyImplementedInterfaceMember() && !Grant(
EditAndContinueCapabilities
.AddExplicitInterfaceImplementation))
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (2)
24
internal sealed class EditAndContinueDocumentAnalysesCache(AsyncLazy<ActiveStatementsMap> baseActiveStatements, AsyncLazy<
EditAndContinueCapabilities
> capabilities)
29
private readonly AsyncLazy<
EditAndContinueCapabilities
> _capabilities = capabilities;
EditAndContinue\EditSession.cs (7)
69
internal readonly AsyncLazy<
EditAndContinueCapabilities
> Capabilities;
130
if (!capabilities.HasFlag(
EditAndContinueCapabilities
.NewTypeDefinition))
232
private async Task<
EditAndContinueCapabilities
> GetCapabilitiesAsync(CancellationToken cancellationToken)
241
return
EditAndContinueCapabilities
.Baseline;
625
var
requiredCapabilities =
EditAndContinueCapabilities
.None;
996
var isAddedSymbolPredicate = capabilities.HasFlag(
EditAndContinueCapabilities
.GenericAddMethodToExistingType) ?
EditAndContinue\EditSessionTelemetry.cs (5)
22
public readonly
EditAndContinueCapabilities
Capabilities = telemetry._capabilities;
53
private
EditAndContinueCapabilities
_capabilities;
69
_capabilities =
EditAndContinueCapabilities
.None;
140
public void LogRuntimeCapabilities(
EditAndContinueCapabilities
capabilities)
144
Debug.Assert(_capabilities ==
EditAndContinueCapabilities
.None || _capabilities == capabilities);
EditAndContinue\IEditAndContinueAnalyzer.cs (1)
21
AsyncLazy<
EditAndContinueCapabilities
> lazyCapabilities,
EditAndContinue\ProjectChanges.cs (3)
37
public readonly
EditAndContinueCapabilities
RequiredCapabilities;
44
EditAndContinueCapabilities
requiredCapabilities)
49
Debug.Assert(requiredCapabilities !=
EditAndContinueCapabilities
.None);
EditAndContinue\TraceLog.cs (2)
81
EnumType.EditAndContinueCapabilities => (
EditAndContinueCapabilities
)Int32,
95
public static implicit operator Arg(
EditAndContinueCapabilities
value) => new((int)value, s_EditAndContinueCapabilities);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
135
var
actualRequiredCapabilities = EditAndContinueCapabilities.None;
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\EditAndContinueCapabilitiesTests.cs (5)
18
var
service = EditAndContinueCapabilitiesParser.Parse(capabilities);
29
var
service = EditAndContinueCapabilitiesParser.Parse(capabilities);
39
var
service = EditAndContinueCapabilitiesParser.Parse(capabilities);
50
var
service = EditAndContinueCapabilitiesParser.Parse(capabilities);
63
var
service = EditAndContinueCapabilitiesParser.Parse(capabilities);