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