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