Skip to content

Commit 4a25cf9

Browse files
committed
Set name and flags of deleted method, property and event definitions
1 parent f36b19d commit 4a25cf9

File tree

22 files changed

+738
-290
lines changed

22 files changed

+738
-290
lines changed

src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static void CompileMethodBodies(
186186
// Deleted definitions must be emitted before PrivateImplementationDetails are frozen since
187187
// it may add new members to it. All changes to PrivateImplementationDetails are additions,
188188
// so we don't need to create deleted method defs for those.
189-
moduleBeingBuiltOpt.CreateDeletedMethodDefinitions(diagnostics.DiagnosticBag);
189+
moduleBeingBuiltOpt.CreateDeletedMemberDefinitions(diagnostics.DiagnosticBag);
190190

191191
// all threads that were adding methods must be finished now, we can freeze the class:
192192
var privateImplClass = moduleBeingBuiltOpt.FreezePrivateImplementationDetails();

src/Compilers/CSharp/Portable/Symbols/EventSymbol.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
using System.Diagnostics;
88
using System.Diagnostics.CodeAnalysis;
99
using System.Linq;
10+
using Microsoft.CodeAnalysis.Symbols;
1011
using Roslyn.Utilities;
1112

1213
namespace Microsoft.CodeAnalysis.CSharp.Symbols
1314
{
1415
/// <summary>
1516
/// Represents an event.
1617
/// </summary>
17-
internal abstract partial class EventSymbol : Symbol
18+
internal abstract partial class EventSymbol : Symbol, IEventSymbolInternal
1819
{
1920
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2021
// Changes to the public interface of this class should remain synchronized with the VB version.

0 commit comments

Comments
 (0)