-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EnC refactoring: Align wrappers with contracts better (#67967)
- Loading branch information
Showing
15 changed files
with
116 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...eatures/Core/Portable/EditAndContinue/Contracts/EditAndContinue/ManagedHotReloadUpdate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// 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. | ||
|
||
using System.Runtime.Serialization; | ||
using System; | ||
using System.Collections.Immutable; | ||
|
||
namespace Microsoft.CodeAnalysis.EditAndContinue.Contracts; | ||
|
||
[DataContract] | ||
internal readonly struct ManagedHotReloadUpdate | ||
{ | ||
[DataMember(Name = "module")] | ||
public Guid Module { get; } | ||
|
||
[DataMember(Name = "moduleName")] | ||
public string ModuleName { get; } | ||
|
||
[DataMember(Name = "ilDelta")] | ||
public ImmutableArray<byte> ILDelta { get; } | ||
|
||
[DataMember(Name = "metadataDelta")] | ||
public ImmutableArray<byte> MetadataDelta { get; } | ||
|
||
[DataMember(Name = "pdbDelta")] | ||
public ImmutableArray<byte> PdbDelta { get; } | ||
|
||
[DataMember(Name = "updatedTypes")] | ||
public ImmutableArray<int> UpdatedTypes { get; } | ||
|
||
[DataMember(Name = "requiredCapabilities")] | ||
public ImmutableArray<string> RequiredCapabilities { get; } | ||
|
||
[DataMember(Name = "updatedMethods")] | ||
public ImmutableArray<int> UpdatedMethods { get; } | ||
|
||
[DataMember(Name = "sequencePoints")] | ||
public ImmutableArray<SequencePointUpdates> SequencePoints { get; } | ||
|
||
[DataMember(Name = "activeStatements")] | ||
public ImmutableArray<ManagedActiveStatementUpdate> ActiveStatements { get; } | ||
|
||
[DataMember(Name = "exceptionRegions")] | ||
public ImmutableArray<ManagedExceptionRegionUpdate> ExceptionRegions { get; } | ||
|
||
public ManagedHotReloadUpdate( | ||
Guid module, | ||
string moduleName, | ||
ImmutableArray<byte> ilDelta, | ||
ImmutableArray<byte> metadataDelta, | ||
ImmutableArray<byte> pdbDelta, | ||
ImmutableArray<int> updatedTypes, | ||
ImmutableArray<string> requiredCapabilities, | ||
ImmutableArray<int> updatedMethods, | ||
ImmutableArray<SequencePointUpdates> sequencePoints, | ||
ImmutableArray<ManagedActiveStatementUpdate> activeStatements, | ||
ImmutableArray<ManagedExceptionRegionUpdate> exceptionRegions) | ||
{ | ||
Module = module; | ||
ModuleName = moduleName; | ||
ILDelta = ilDelta; | ||
MetadataDelta = metadataDelta; | ||
PdbDelta = pdbDelta; | ||
SequencePoints = sequencePoints; | ||
UpdatedMethods = updatedMethods; | ||
UpdatedTypes = updatedTypes; | ||
ActiveStatements = activeStatements; | ||
ExceptionRegions = exceptionRegions; | ||
RequiredCapabilities = requiredCapabilities; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters