18 references to AddMember
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
607
docEditor.
AddMember
(targetClass, logMethod);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (16)
CodeGeneration\SymbolEditorTests.cs (16)
82
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m")));
114
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.
AddMember
(d, Generator.MethodDeclaration("m")));
118
newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.
AddMember
(d, Generator.MethodDeclaration("m2")));
151
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m")));
155
newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(newSymbol, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m2")));
198
var newSymbolA = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolA, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("ma")));
201
var newSymbolB = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolB, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("mb")));
244
var newSymbolA = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolA, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("ma")));
247
var newSymbolB = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolB, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("mb")));
359
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m")));
396
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m")));
437
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m")));
441
var newSymbol2 = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(newSymbol, location, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m2")));
483
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m")));
488
var newSymbol2 = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(newSymbol, newLocation, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m2")));
533
var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, member, (e, d) => e.
AddMember
(d, e.Generator.MethodDeclaration("m2")));
Microsoft.CodeAnalysis.Features (1)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
162
editor.
AddMember
(type,