16 references to InsertBefore
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
AbstractMoveDeclarationNearReferenceService.cs (1)
136editor.InsertBefore(
AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
710editor.InsertBefore(insertionNode, declarationStatement);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
131editor.InsertBefore(firstStatement, declarationStatement); 137editor.InsertBefore(switchCaseBlock.Parent, declarationStatement);
Microsoft.CodeAnalysis.CSharp.Features (3)
CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
131editor.InsertBefore(firstStatement, declarationStatement); 137editor.InsertBefore(switchCaseBlock.Parent, declarationStatement);
InitializeParameter\InitializeParameterHelpers.cs (1)
89editor.InsertBefore(block.Statements[0], statement);
Microsoft.CodeAnalysis.Features (6)
AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
710editor.InsertBefore(insertionNode, declarationStatement);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
90editor.InsertBefore(namespaceDeclaration, newNamespaceDeclaration);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
128editor.InsertBefore(foreachInfo.ForEachStatement, collectionStatement);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
399callerNodeEditor.InsertBefore(statementContainsInvocation,
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
274editor.InsertBefore(_containerMethod, newMethodNode);
Shared\Utilities\ExtractTypeHelpers.cs (1)
44editor.InsertBefore(typeDeclaration, newTypeNode);
Microsoft.CodeAnalysis.Workspaces (1)
AbstractMoveDeclarationNearReferenceService.cs (1)
136editor.InsertBefore(
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Editing\SyntaxEditorTests.cs (2)
134editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 183editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Z", editor.Generator.TypeExpression(SpecialType.System_Object), Accessibility.Public));