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