71 references to Update
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
64
var actual = CSharpEditAndContinueAnalyzer.GetDiagnosticSpan(node, EditKind.
Update
);
102
span = CSharpEditAndContinueAnalyzer.TryGetDiagnosticSpanImpl(kind, null, EditKind.
Update
);
Microsoft.CodeAnalysis.CSharp.Features (17)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (17)
731
GetDiagnosticSpan(newNode, EditKind.
Update
),
1267
return new OneOrMany<(ISymbol?, ISymbol?, EditKind)>((oldSymbol.ContainingSymbol, newSymbol.ContainingSymbol, EditKind.
Update
));
1273
return new OneOrMany<(ISymbol?, ISymbol?, EditKind)>((oldSymbol, newSymbol, EditKind.
Update
));
1286
case EditKind.
Update
:
1357
return OneOrMany.Create((oldModel.GetDeclaredSymbol(oldVariables[0], cancellationToken), newModel.GetDeclaredSymbol(newVariables[0], cancellationToken), EditKind.
Update
));
1362
select (oldModel.GetDeclaredSymbol(oldVariable, cancellationToken), newModel.GetDeclaredSymbol(newVariable, cancellationToken), EditKind.
Update
);
1399
return OneOrMany.Create(ImmutableArray.Create((oldSymbol, newSymbol, EditKind.
Update
)));
1405
return OneOrMany.Create(ImmutableArray.Create((oldSymbol, newSymbol, EditKind.
Update
)));
2306
case EditKind.
Update
:
2471
var classifier = new EditClassifier(this, diagnostics, oldNode: null, newMember, EditKind.
Update
, span: span);
2603
Debug.Assert(edit.Kind != EditKind.
Update
|| edit.OldNode.RawKind == edit.NewNode.RawKind);
2605
if (edit.Kind != EditKind.
Update
|| !AreExceptionClausesEquivalent(edit.OldNode, edit.NewNode))
2730
GetDiagnosticSpan(newForEachStatement, EditKind.
Update
),
2732
new[] { GetDisplayName(newForEachStatement, EditKind.
Update
) }));
2744
GetDiagnosticSpan(newLocalDeclaration, EditKind.
Update
),
2746
new[] { GetDisplayName(newLocalDeclaration, EditKind.
Update
) }));
2942
GetDiagnosticSpan(newSwitch, EditKind.
Update
),
Microsoft.CodeAnalysis.Features (29)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (29)
325
internal string GetDisplayName(SyntaxNode node, EditKind editKind = EditKind.
Update
)
372
protected virtual string GetBodyDisplayName(SyntaxNode node, EditKind editKind = EditKind.
Update
)
762
if (edit.Kind is EditKind.Delete or EditKind.
Update
)
767
if (edit.Kind is EditKind.Insert or EditKind.
Update
)
780
map.Add(editScript.Match.OldRoot, EditKind.
Update
);
781
map.Add(editScript.Match.NewRoot, EditKind.
Update
);
995
ReportMemberBodyUpdateRudeEdits(diagnostics, newDeclaration, GetDiagnosticSpan(newDeclaration, EditKind.
Update
));
1239
var bodySpan = GetBodyDiagnosticSpan(newBody, EditKind.
Update
);
1512
GetBodyDiagnosticSpan(newBody, EditKind.
Update
)));
1521
GetBodyDiagnosticSpan(newBody, EditKind.
Update
),
1531
GetBodyDiagnosticSpan(newBody, EditKind.
Update
),
1778
GetDiagnosticSpan(newNode, EditKind.
Update
),
1780
new[] { GetDisplayName(newNode, EditKind.
Update
) }));
1998
Debug.Assert(editMap[newNode] is EditKind.
Update
or EditKind.Insert);
2486
GetDiagnosticSpan(newTypeDeclaration, EditKind.
Update
),
2509
if (syntacticEditKind == EditKind.
Update
)
3030
case EditKind.
Update
:
3053
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.Update, GetDiagnosticSpan(newDeclaration, EditKind.
Update
),
3054
newDeclaration, new[] { GetDisplayName(newDeclaration, EditKind.
Update
) }));
3207
foreach (var (oldSymbol, newSymbol, editKind) in GetSymbolEdits(EditKind.
Update
, oldEditNode, newEditNode, oldModel, newModel, editMap, cancellationToken))
4381
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.ChangingNonCustomAttribute, GetDiagnosticSpan(node, EditKind.
Update
), node, new[]
4597
GetDiagnosticSpan(newNode, EditKind.
Update
),
4605
var span = (rudeEdit == RudeEditKind.ChangeImplicitMainReturnType) ? GetGlobalStatementDiagnosticSpan(node) : GetDiagnosticSpan(node, EditKind.
Update
);
4720
GetDisplayName(TryGetContainingTypeDeclaration(syntax)!, EditKind.
Update
)
4988
GetDiagnosticSpan(newDeclaration, EditKind.
Update
),
5165
GetDiagnosticSpan(newQueryClause, EditKind.
Update
),
5167
new[] { GetDisplayName(newQueryClause, EditKind.
Update
) }));
5270
diagnostics.Add(new RudeEditDiagnostic(rudeEdit, GetDiagnosticSpan(GetLambda(newLambdaBody), EditKind.
Update
), null, arguments));
5986
GetBodyDiagnosticSpan(newBody, EditKind.
Update
),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (2)
51
Dim actualSpan = VisualBasicEditAndContinueAnalyzer.TryGetDiagnosticSpanImpl(node.Kind, node, EditKind.
Update
).Value
111
span = VisualBasicEditAndContinueAnalyzer.TryGetDiagnosticSpanImpl(k, Nothing, EditKind.
Update
)
Microsoft.CodeAnalysis.VisualBasic.Features (14)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (14)
1291
Return OneOrMany.Create((oldSymbols(0).ContainingSymbol, newSymbols(0).ContainingSymbol, EditKind.
Update
))
1306
Case EditKind.
Update
1370
If editKind = EditKind.
Update
Then
1893
Protected Overrides Function GetBodyDisplayName(node As SyntaxNode, Optional editKind As EditKind = EditKind.
Update
) As String
2034
Return If(editKind = EditKind.
Update
, VBFeaturesResources.Using_statement, VBFeaturesResources.Using_block)
2037
Return If(editKind = EditKind.
Update
, VBFeaturesResources.With_statement, VBFeaturesResources.With_block)
2040
Return If(editKind = EditKind.
Update
, VBFeaturesResources.SyncLock_statement, VBFeaturesResources.SyncLock_block)
2043
Return If(editKind = EditKind.
Update
, VBFeaturesResources.For_Each_statement, VBFeaturesResources.For_Each_block)
2150
ReportError(kind, {GetDisplayName(If(_newNode, _oldNode), EditKind.
Update
)})
2158
_diagnostics.Add(New RudeEditDiagnostic(kind, GetDiagnosticSpan(spanNode, _kind), displayNode, {GetDisplayName(displayNode, EditKind.
Update
)}))
2179
Case EditKind.
Update
2435
Dim classifier = New EditClassifier(Me, diagnostics, Nothing, newMember, EditKind.
Update
, span:=span)
2575
Debug.Assert(edit.Kind <> EditKind.
Update
OrElse edit.OldNode.RawKind = edit.NewNode.RawKind)
2577
If edit.Kind <> EditKind.
Update
OrElse Not AreExceptionHandlingPartsEquivalent(edit.OldNode, edit.NewNode) Then
Microsoft.CodeAnalysis.Workspaces (5)
Differencing\Edit.cs (1)
104
case EditKind.
Update
:
Differencing\EditScript.cs (1)
117
edits.Add(new Edit<TNode>(EditKind.
Update
, Comparer, oldNode: w, newNode: x));
Differencing\SequenceEdit.cs (3)
33
/// The kind of edit: <see cref="EditKind.Delete"/>, <see cref="EditKind.Insert"/>, or <see cref="EditKind.
Update
"/>.
49
return EditKind.
Update
;
86
case EditKind.
Update
:
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Differencing\LongestCommonSubsequenceTests.cs (2)
52
Assert.True(edit.Kind is EditKind.Delete or EditKind.Insert or EditKind.
Update
);
65
case EditKind.
Update
: