37 references to Insert
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
1314case EditKind.Insert: 2359case EditKind.Insert: 2565GetDiagnosticSpan(newNode, EditKind.Insert), 2567arguments: [GetDisplayName(newNode, EditKind.Insert)]));
Microsoft.CodeAnalysis.Features (19)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (19)
245AddSymbolEdits(ref result, EditKind.Insert, oldNode: null, oldSymbol: null, newNode, newSymbol, oldModel, newModel, topMatch, editMap, symbolCache, cancellationToken); 757if (edit.Kind is EditKind.Insert or EditKind.Update) 1740case EditKind.Insert: 1807GetDiagnosticSpan(newNode, EditKind.Insert), 1809[GetDisplayName(newNode, EditKind.Insert)])); 2065Debug.Assert(editMap[newNode] is EditKind.Update or EditKind.Insert); 2613syntacticEditKind = EditKind.Insert; 2844case EditKind.Insert: 2891HasEdit(editMap, GetSymbolDeclarationSyntax(newAssociatedMember, cancellationToken), EditKind.Insert); 2919GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2921arguments: [GetDisplayName(newDeclaration, EditKind.Insert)])); 2961GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2963arguments: [GetDisplayName(newDeclaration, EditKind.Insert)])); 3513result.Add((null, newSymbol, EditKind.Insert)); 3887builder.Add((oldSymbol: null, newSymbol: newType, EditKind.Insert)); 5718diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertNotSupportedByRuntime, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, [GetDisplayName(newLambda, EditKind.Insert)])); 5726diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertLocalFunctionIntoInterfaceMethod, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, [GetDisplayName(newLambda, EditKind.Insert)]));
Microsoft.CodeAnalysis.VisualBasic.Features (6)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (6)
819Case EditKind.Insert 1762Case EditKind.Insert 1922ElseIf edit.Kind = EditKind.Insert AndAlso 1926If HasEdit(editMap, edit.NewNode.Parent.Parent, EditKind.Insert) Then 1987GetDiagnosticSpan(newNode, EditKind.Insert), 1989arguments:={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: