50 references to Insert
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
1370case EditKind.Insert: 2314case EditKind.Insert: 2531GetDiagnosticSpan(newNode, EditKind.Insert), 2533arguments: new[] { GetDisplayName(newNode, EditKind.Insert) }));
Microsoft.CodeAnalysis.Features (32)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (32)
767if (edit.Kind is EditKind.Insert or EditKind.Update) 1059diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.MakeMethodAsyncNotSupportedByRuntime, GetDiagnosticSpan(newDeclaration, EditKind.Insert))); 1063diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.MakeMethodIteratorNotSupportedByRuntime, GetDiagnosticSpan(newDeclaration, EditKind.Insert))); 1552GetDiagnosticSpan(insertedSuspensionPoint, EditKind.Insert), 1554new[] { GetSuspensionPointDisplayName(insertedSuspensionPoint, EditKind.Insert) })); 1729case EditKind.Insert: 1787GetDiagnosticSpan(newNode, EditKind.Insert), 1789new[] { GetDisplayName(newNode, EditKind.Insert) })); 1998Debug.Assert(editMap[newNode] is EditKind.Update or EditKind.Insert); 2513syntacticEditKind = EditKind.Insert; 2770case EditKind.Insert: 2779diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.Insert, GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2780newDeclaration, new[] { GetDisplayName(newDeclaration, EditKind.Insert) })); 2903else if (TryGetAssociatedMemberDeclaration(newDeclaration, EditKind.Insert, out var newAssociatedMemberDeclaration) && 2904HasEdit(editMap, newAssociatedMemberDeclaration, EditKind.Insert)) 2914GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2916arguments: new[] { GetDisplayName(newDeclaration, EditKind.Insert) })); 2926GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2928arguments: new[] { GetDisplayName(newDeclaration, EditKind.Insert) })); 2944GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2946arguments: new[] { GetDisplayName(newDeclaration, EditKind.Insert) })); 2983GetDiagnosticSpan(newDeclaration, EditKind.Insert), 2985arguments: new[] { GetDisplayName(newDeclaration, EditKind.Insert) })); 3005diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertConstructorToTypeWithInitializersWithLambdas, GetDiagnosticSpan(newDeclaration, EditKind.Insert))); 3626builder.Add((oldSymbol: null, newSymbol: newType, EditKind.Insert)); 4719GetDisplayName(syntax, EditKind.Insert), 4959diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertConstructorToTypeWithInitializersWithLambdas, GetDiagnosticSpan(newDeclaration, EditKind.Insert))); 5331diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertNotSupportedByRuntime, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, new string[] { GetDisplayName(newLambda, EditKind.Insert) })); 5339diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.InsertLocalFunctionIntoInterfaceMethod, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, new string[] { GetDisplayName(newLambda, EditKind.Insert) })); 5450errorSpan = GetDiagnosticSpan(GetLambda(lambdaBody), EditKind.Insert);
Microsoft.CodeAnalysis.VisualBasic.Features (6)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (6)
1299Case EditKind.Insert 2187Case EditKind.Insert 2418ElseIf edit.Kind = EditKind.Insert AndAlso 2422If HasEdit(editMap, edit.NewNode.Parent.Parent, EditKind.Insert) Then 2459GetDiagnosticSpan(newNode, EditKind.Insert), 2461arguments:={GetDisplayName(newNode, EditKind.Insert)}))
Microsoft.CodeAnalysis.Workspaces (6)
Differencing\Edit.cs (2)
27Debug.Assert((oldNode == null || oldNode.Equals(null)) == (kind == EditKind.Insert)); 101case EditKind.Insert:
Differencing\EditScript.cs (1)
98edits.Add(new Edit<TNode>(EditKind.Insert, Comparer, oldNode: default, newNode: x));
Differencing\SequenceEdit.cs (3)
33/// The kind of edit: <see cref="EditKind.Delete"/>, <see cref="EditKind.Insert"/>, or <see cref="EditKind.Update"/>. 41return EditKind.Insert; 83case 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: