37 references to Insert
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
1306case EditKind.Insert: 2351case EditKind.Insert: 2557GetDiagnosticSpan(newNode, EditKind.Insert), 2559arguments: [GetDisplayName(newNode, EditKind.Insert)]));
Microsoft.CodeAnalysis.Features (19)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (19)
237AddSymbolEdits(ref result, EditKind.Insert, oldNode: null, oldSymbol: null, newNode, newSymbol, oldModel, newModel, topMatch, editMap, symbolCache, cancellationToken); 749if (edit.Kind is EditKind.Insert or EditKind.Update) 1733case EditKind.Insert: 1800GetDiagnosticSpan(newNode, EditKind.Insert), 1802[GetDisplayName(newNode, EditKind.Insert)])); 2058Debug.Assert(editMap[newNode] is EditKind.Update or EditKind.Insert); 2606syntacticEditKind = EditKind.Insert; 2837case EditKind.Insert: 2884HasEdit(editMap, GetSymbolDeclarationSyntax(newAssociatedMember, cancellationToken), EditKind.Insert); 2912GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2914arguments: [GetDisplayName(newDeclaration, EditKind.Insert)])); 2954GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2956arguments: [GetDisplayName(newDeclaration, EditKind.Insert)])); 3506result.Add((null, newSymbol, EditKind.Insert)); 3880builder.Add((oldSymbol: null, newSymbol: newType, EditKind.Insert)); 5711diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertNotSupportedByRuntime, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, [GetDisplayName(newLambda, EditKind.Insert)])); 5719diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertLocalFunctionIntoInterfaceMethod, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, [GetDisplayName(newLambda, EditKind.Insert)]));
Microsoft.CodeAnalysis.VisualBasic.Features (6)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (6)
806Case EditKind.Insert 1749Case EditKind.Insert 1909ElseIf edit.Kind = EditKind.Insert AndAlso 1913If HasEdit(editMap, edit.NewNode.Parent.Parent, EditKind.Insert) Then 1974GetDiagnosticSpan(newNode, EditKind.Insert), 1976arguments:={GetDisplayName(newNode, EditKind.Insert)}))
Microsoft.CodeAnalysis.Workspaces (6)
Differencing\Edit.cs (2)
24Debug.Assert((oldNode == null || oldNode.Equals(null)) == (kind == EditKind.Insert)); 99case EditKind.Insert:
Differencing\EditScript.cs (1)
95edits.Add(new Edit<TNode>(EditKind.Insert, Comparer, oldNode: default, newNode: x));
Differencing\SequenceEdit.cs (3)
30/// The kind of edit: <see cref="EditKind.Delete"/>, <see cref="EditKind.Insert"/>, or <see cref="EditKind.Update"/>. 38return EditKind.Insert; 80case EditKind.Insert:
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Differencing\LongestCommonSubsequenceTests.cs (2)
52Assert.True(edit.Kind is EditKind.Delete or EditKind.Insert or EditKind.Update); 60case EditKind.Insert: