49 references to Match
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
EditAndContinue\Helpers\EditAndContinueValidation.cs (1)
30
new[] { new SequencePointUpdates(editScript.
Match
.OldRoot.SyntaxTree.FilePath, lineEdits.ToImmutableArray()) },
EditAndContinue\Helpers\EditingTestBase.cs (4)
101
var oldMethodSource = methodEdits.
Match
.OldRoot.ToFullString();
102
var newMethodSource = methodEdits.
Match
.NewRoot.ToFullString();
189
var decl1 = (MethodDeclarationSyntax)((ClassDeclarationSyntax)((CompilationUnitSyntax)edits.
Match
.OldRoot).Members[0]).Members[0];
192
var decl2 = (MethodDeclarationSyntax)((ClassDeclarationSyntax)((CompilationUnitSyntax)edits.
Match
.NewRoot).Members[0]).Members[0];
EditAndContinue\StatementEditingTests.cs (3)
1159
var actual = ToMatchingPairs(edits.
Match
);
1186
var actual = ToMatchingPairs(edits.
Match
);
8679
var actual = ToMatchingPairs(edits.
Match
);
EditAndContinue\StatementMatchingTests.cs (1)
2528
var match = GetTopEdits(src1, src2).
Match
;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
399
var oldRoot = editScript.
Match
.OldRoot;
409
newSolution = newSolution.WithDocumentSyntaxRoot(oldDocument.Id, editScripts[documentIndex].
Match
.NewRoot, PreservationMode.PreserveIdentity);
Microsoft.CodeAnalysis.Features (32)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (32)
660
AnalyzeUnchangedActiveMemberBodies(diagnostics, syntacticEdits.
Match
, newText, oldActiveStatements, newActiveStatementSpans, newActiveStatements, newExceptionRegions, cancellationToken);
727
ReportTopLevelSyntacticRudeEdits(diagnostics, syntacticEdits.
Match
, edit, editMap);
777
if ((IsCompilationUnitWithGlobalStatements(editScript.
Match
.OldRoot) || IsCompilationUnitWithGlobalStatements(editScript.
Match
.NewRoot)) &&
780
map.Add(editScript.
Match
.OldRoot, EditKind.Update);
781
map.Add(editScript.
Match
.NewRoot, EditKind.Update);
2544
IsPartialEdit(oldContainingType, newContainingType, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? containingTypeSymbolKey : null));
2584
IsPartialEdit(oldType, newType, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? symbolKey : null));
2603
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.Delete, GetDeletedNodeDiagnosticSpan(editScript.
Match
.Matches, oldDeclaration),
2616
? GetDeletedNodeActiveSpan(editScript.
Match
.Matches, oldDeclaration)
2617
: GetDeletedNodeDiagnosticSpan(editScript.
Match
.Matches, oldDeclaration);
2623
newActiveStatements[index] = GetActiveStatementWithSpan(oldActiveStatements[index], editScript.
Match
.NewRoot.SyntaxTree, newSpan, diagnostics, cancellationToken);
2693
var diagnosticSpan = GetDeletedNodeDiagnosticSpan(editScript.
Match
.Matches, oldDeclaration);
2886
AnalyzeSymbolUpdate(oldSymbol, newSymbol, edit.NewNode, newCompilation, editScript.
Match
, capabilities, diagnostics, semanticEdits, syntaxMap, processedSymbols, cancellationToken);
3097
AnalyzeSymbolUpdate(oldSymbol, newSymbol, edit.NewNode, newCompilation, editScript.
Match
, capabilities, diagnostics, semanticEdits, syntaxMap, processedSymbols, cancellationToken);
3120
AnalyzeSymbolUpdate(oldSymbol, newSymbol, edit.NewNode, newCompilation, editScript.
Match
, capabilities, diagnostics, semanticEdits, syntaxMap, processedSymbols, cancellationToken);
3184
partialType: IsPartialEdit(oldSymbol, newSymbol, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? symbolKey : null, processedSymbols,
3198
IsPartialEdit(oldSymbol, newSymbol, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? symbolKey : null));
3236
IsPartialEdit(oldContainingType, newContainingType, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? containingTypeSymbolKey : null));
3291
IsPartialEdit(oldSymbol, newSymbol, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? symbolKey : null));
3299
editScript.
Match
,
3315
editScript.
Match
,
3388
if (editScript.
Match
.TryGetOldNode(containingNode, out var oldNode))
3392
else if (editScript.
Match
.TryGetNewNode(containingNode, out var newNode))
3424
partialType: IsPartialEdit(oldSymbol, newSymbol, editScript.
Match
.OldRoot.SyntaxTree, editScript.
Match
.NewRoot.SyntaxTree) ? symbolKey : null, processedSymbols,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (6)
EditAndContinue\Helpers\EditAndContinueValidation.vb (1)
28
{New SequencePointUpdates(editScript.
Match
.OldRoot.SyntaxTree.FilePath, lineEdits.ToImmutableArray())},
EditAndContinue\Helpers\EditingTestBase.vb (2)
129
Dim oldMethodSource = methodEdits.
Match
.OldRoot.ToFullString()
130
Dim newMethodSource = methodEdits.
Match
.NewRoot.ToFullString()
EditAndContinue\StatementEditingTests.vb (3)
501
Dim actual = ToMatchingPairs(edits.
Match
)
533
Dim actual = ToMatchingPairs(edits.
Match
)
4107
Dim actual = ToMatchingPairs(edits.
Match
)