62 references to Update
Microsoft.CodeAnalysis.CSharp.Features (13)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (13)
1159result.Add((oldSymbol, newSymbol, isTypeConstraint ? EditKind.Update : editKind)); 1173result.Add((oldSymbol, newSymbol, EditKind.Update)); 1183case EditKind.Update: 1279result.Add((oldSymbol, newSymbol, EditKind.Update)); 1295result.Add((oldPrimaryConstructor, newPrimaryConstructor, EditKind.Update)); 1305result.Add((oldCopyConstructor, newCopyConstructor, EditKind.Update)); 1345result.Add((oldSymbol, newSymbol, EditKind.Update)); 1352result.Add((oldSymbol, newSymbol, EditKind.Update)); 1360result.Add((oldSymbol, newSymbol, EditKind.Update)); 2351case EditKind.Update: 2638Debug.Assert(edit.Kind != EditKind.Update || edit.OldNode.RawKind == edit.NewNode.RawKind); 2640if (edit.Kind != EditKind.Update || !AreExceptionClausesEquivalent(edit.OldNode, edit.NewNode)) 2895GetDiagnosticSpan(newSwitch, EditKind.Update),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
62var actual = CSharpEditAndContinueAnalyzer.GetDiagnosticSpan(node, EditKind.Update); 100span = CSharpEditAndContinueAnalyzer.TryGetDiagnosticSpanImpl(kind, null, EditKind.Update);
EditAndContinue\TopLevelEditingTests.cs (3)
16753edits.VerifyEdits(EditKind.Reorder, EditKind.Update); 16783edits.VerifyEdits(EditKind.Reorder, EditKind.Update); 16818edits.VerifyEdits(EditKind.Reorder, EditKind.Update);
Microsoft.CodeAnalysis.Features (21)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (21)
242if (editKind == EditKind.Update && GetSemanticallyMatchingNewSymbol(oldSymbol, newSymbol, newModel, symbolCache, cancellationToken) != null) 316internal string GetDisplayName(SyntaxNode node, EditKind editKind = EditKind.Update) 367protected virtual string GetBodyDisplayName(SyntaxNode node, EditKind editKind = EditKind.Update) 752if (edit.Kind is EditKind.Delete or EditKind.Update) 757if (edit.Kind is EditKind.Insert or EditKind.Update) 770map.Add(editScript.Match.OldRoot, EditKind.Update); 771map.Add(editScript.Match.NewRoot, EditKind.Update); 1789GetDiagnosticSpan(newNode, EditKind.Update), 1791[GetDisplayName(newNode, EditKind.Update), oldType.ToDisplayString(), newType.ToDisplayString()])); 1798GetDiagnosticSpan(newNode, EditKind.Update), 1800[GetDisplayName(newNode, EditKind.Update)])); 2065Debug.Assert(editMap[newNode] is EditKind.Update or EditKind.Insert); 2579GetDiagnosticSpan(newTypeDeclaration, EditKind.Update), 2609if (syntacticEditKind == EditKind.Update) 2995case EditKind.Update: 3275var triviaSymbolEdits = GetSymbolEdits(EditKind.Update, oldEditNode, newEditNode, oldModel, newModel, editScript.Match, editMap, symbolCache, cancellationToken); 3517result.Add((oldSymbol, newSymbol, EditKind.Update)); 4945locationNode.Span : analyzer.GetDiagnosticSpan(GetDiagnosticNode(out var distance, cancellationToken), distance > 0 ? EditKind.Delete : EditKind.Update), 4964? analyzer.GetDiagnosticSpan(node, (distance > 0 || kind == RudeEditKind.ChangeImplicitMainReturnType) ? EditKind.Delete : EditKind.Update) 6057return IsGlobalMain(symbol) ? GetDiagnosticSpan(GetSymbolDeclarationSyntax(symbol, cancellationToken), EditKind.Update) : 6058symbol is IParameterSymbol && IsGlobalMain(symbol.ContainingSymbol) ? GetDiagnosticSpan(GetSymbolDeclarationSyntax(symbol.ContainingSymbol, cancellationToken), EditKind.Update) :
Microsoft.CodeAnalysis.VisualBasic.Features (14)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (14)
801result.Add((oldSymbol, newSymbol, If(isTypeConstraint, EditKind.Update, editKind))) 822Case EditKind.Update 830result.Add((oldPropertySymbol, newPropertySymbol, EditKind.Update)) 850result.Add((oldEventSymbol, newEventSymbol, EditKind.Update)) 918If editKind = EditKind.Update OrElse editKind = EditKind.Reorder Then 1472Protected Overrides Function GetBodyDisplayName(node As SyntaxNode, Optional editKind As EditKind = EditKind.Update) As String 1613Return If(editKind = EditKind.Update, VBFeaturesResources.Using_statement, VBFeaturesResources.Using_block) 1616Return If(editKind = EditKind.Update, VBFeaturesResources.With_statement, VBFeaturesResources.With_block) 1619Return If(editKind = EditKind.Update, VBFeaturesResources.SyncLock_statement, VBFeaturesResources.SyncLock_block) 1622Return If(editKind = EditKind.Update, VBFeaturesResources.For_Each_statement, VBFeaturesResources.For_Each_block) 1733arguments:={GetDisplayName(If(_newNode, _oldNode), EditKind.Update)})) 1754Case EditKind.Update 2097Debug.Assert(edit.Kind <> EditKind.Update OrElse edit.OldNode.RawKind = edit.NewNode.RawKind) 2099If edit.Kind <> EditKind.Update OrElse Not AreExceptionHandlingPartsEquivalent(edit.OldNode, edit.NewNode) Then
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (2)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (2)
45Dim actualSpan = VisualBasicEditAndContinueAnalyzer.TryGetDiagnosticSpanImpl(node.Kind, node, EditKind.Update).Value 105span = VisualBasicEditAndContinueAnalyzer.TryGetDiagnosticSpanImpl(k, Nothing, EditKind.Update)
Microsoft.CodeAnalysis.Workspaces (5)
Differencing\Edit.cs (1)
102case EditKind.Update:
Differencing\EditScript.cs (1)
114edits.Add(new Edit<TNode>(EditKind.Update, Comparer, oldNode: w, newNode: x));
Differencing\SequenceEdit.cs (3)
30/// The kind of edit: <see cref="EditKind.Delete"/>, <see cref="EditKind.Insert"/>, or <see cref="EditKind.Update"/>. 46return EditKind.Update; 83case EditKind.Update:
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Differencing\LongestCommonSubsequenceTests.cs (2)
52Assert.True(edit.Kind is EditKind.Delete or EditKind.Insert or EditKind.Update); 65case EditKind.Update: