5 implementations of RemoveMethod
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationEventSymbol.cs (1)
23public IMethodSymbol? RemoveMethod { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\EventSymbol.cs (1)
48IMethodSymbol? IEventSymbol.RemoveMethod
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedEventSymbol.cs (1)
38public IMethodSymbol? RemoveMethod => _symbol.RemoveMethod;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\EventSymbol.vb (1)
296Private ReadOnly Property IEventSymbol_RemoveMethod As IMethodSymbol Implements IEventSymbol.RemoveMethod
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationEventSymbol.cs (1)
23public IMethodSymbol? RemoveMethod { get; }
39 references to RemoveMethod
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
228var accessor = symbol.AddMethod ?? symbol.RemoveMethod;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
EventGenerator.cs (2)
104var declaration = !info.Context.GenerateMethodBodies || @event.IsAbstract || @event.AddMethod == null || @event.RemoveMethod == null 144GenerateAccessorDeclaration(@event, @event.RemoveMethod, SyntaxKind.RemoveAccessorDeclaration, destination, info),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
EditAndContinue\LineEditTests.cs (3)
1670semanticEdits: new[] { SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.E").RemoveMethod) }); 1712semanticEdits: new[] { SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.E").RemoveMethod) }); 1734semanticEdits: new[] { SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.E").RemoveMethod) });
EditAndContinue\TopLevelEditingTests.cs (7)
6382SemanticEdit(SemanticEditKind.Update, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IEventSymbol>("E").RemoveMethod, preserveLocalVariables: false), 16497SemanticEdit(SemanticEditKind.Update, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IEventSymbol>("E").RemoveMethod) 16540SemanticEdit(SemanticEditKind.Update, c => c.GetMember<INamedTypeSymbol>("S").GetMember<IEventSymbol>("E").RemoveMethod)); 16602SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.F").RemoveMethod) 16631new[] { SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.F").RemoveMethod) }, 16691SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.F").RemoveMethod) 16722SemanticEdit(SemanticEditKind.Update, c => c.GetMember<IEventSymbol>("C.F").RemoveMethod)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\InitOnlyMemberTests.cs (1)
2450Assert.False(eventSymbol.GetPublicSymbol().RemoveMethod.IsInitOnly);
Semantics\ReadOnlyStructsTests.cs (2)
1209Assert.True(getEvent(s1, "E").RemoveMethod.IsReadOnly); 1225Assert.True(getEvent(s2, "E").RemoveMethod.IsReadOnly);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
391Assert.Same(eventSymbol.RemoveMethod, model.GetDeclaredSymbol(accessorList[1]));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
EventGenerator.cs (2)
104var declaration = !info.Context.GenerateMethodBodies || @event.IsAbstract || @event.AddMethod == null || @event.RemoveMethod == null 144GenerateAccessorDeclaration(@event, @event.RemoveMethod, SyntaxKind.RemoveAccessorDeclaration, destination, info),
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (7)
3516AddEdit(eventSymbol.RemoveMethod); 3529if (eventSymbol.RemoveMethod is not null) 3531processedSymbols.Add(eventSymbol.RemoveMethod); 3924oldEvent.RemoveMethod != null && newEvent.RemoveMethod != null && oldEvent.RemoveMethod.IsReadOnly != newEvent.RemoveMethod.IsReadOnly)
ImplementAbstractClass\ImplementAbstractClassData.cs (1)
246removeMethod: GetEventAddOrRemoveMethod(@event, @event.RemoveMethod, throughMember, generator.RemoveEventHandler));
MetadataAsSource\AbstractMetadataAsSourceService.WrappedEventSymbol.cs (1)
38public IMethodSymbol? RemoveMethod => _symbol.RemoveMethod;
PullMemberUp\MembersPuller.cs (2)
241(eventSymbol.RemoveMethod != null && !eventSymbol.RemoveMethod.IsImplicitlyDeclared);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\EventSymbol.vb (1)
296Private ReadOnly Property IEventSymbol_RemoveMethod As IMethodSymbol Implements IEventSymbol.RemoveMethod
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
3111Assert.Equal(handledEvent0.EventSymbol.RemoveMethod, commonEventSymbol.RemoveMethod)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CodeGeneration\EventGenerator.vb (3)
80([event].AddMethod IsNot Nothing OrElse [event].RemoveMethod IsNot Nothing OrElse [event].RaiseMethod IsNot Nothing) Then 96[event].RemoveMethod Is Nothing, 98GenerateStatements([event].RemoveMethod))
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\ExternalElements\ExternalCodeEvent.cs (2)
87if (symbol.RemoveMethod == null) 92return ExternalCodeAccessorFunction.Create(this.State, this.ProjectId, symbol.RemoveMethod, this);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
131eventAccessor = eventSymbol?.RemoveMethod