| File: EnC\EditAndContinueCapabilities.cs | Web Access |
| Project: src\runtime\src\tools\hotreload-delta-gen\Microsoft.DotNet.HotReload.Utils.Generator\Microsoft.DotNet.HotReload.Utils.Generator.csproj (Microsoft.DotNet.HotReload.Utils.Generator) |
using System; namespace Microsoft.DotNet.HotReload.Utils.Generator.EnC; /// Copied from https://github.com/dotnet/roslyn/blob/e8e6d30fe462edd48ce13f6438e91d26876c17bb/src/Features/Core/Portable/EditAndContinue/EditAndContinueCapabilities.cs /// Keep in sync /// <summary> /// The capabilities that the runtime has with respect to edit and continue /// </summary> [Flags] public enum EditAndContinueCapabilities { None = 0, /// <summary> /// Edit and continue is generally available with the set of capabilities that Mono 6, .NET Framework and .NET 5 have in common. /// </summary> Baseline = 1 << 0, /// <summary> /// Adding a static or instance method to an existing type. /// </summary> AddMethodToExistingType = 1 << 1, /// <summary> /// Adding a static field to an existing type. /// </summary> AddStaticFieldToExistingType = 1 << 2, /// <summary> /// Adding an instance field to an existing type. /// </summary> AddInstanceFieldToExistingType = 1 << 3, /// <summary> /// Creating a new type definition. /// </summary> NewTypeDefinition = 1 << 4, /// <summary> /// Adding, updating and deleting of custom attributes (as distinct from pseudo-custom attributes) /// </summary> ChangeCustomAttributes = 1 << 5, /// <summary> /// Whether the runtime supports updating the Param table, and hence related edits (eg parameter renames) /// </summary> UpdateParameters = 1 << 6, /// <summary> /// Adding a static or instance method, property or event to an existing type (without backing fields), such that the method and/or the type are generic. /// </summary> GenericAddMethodToExistingType = 1 << 7, /// <summary> /// Updating an existing static or instance method, property or event (without backing fields) that is generic and/or contained in a generic type. /// </summary> GenericUpdateMethod = 1 << 8, /// <summary> /// Adding a static or instance field to an existing generic type. /// </summary> GenericAddFieldToExistingType = 1 << 9, /// <summary> /// The runtime supports adding to InterfaceImpl table. /// </summary> AddExplicitInterfaceImplementation = 1 << 10, AddFieldRva = 1 << 11, }