2 instantiations of Match
Microsoft.CodeAnalysis.Workspaces (2)
Differencing\TreeComparer.cs (2)
32=> new Match<TNode>(oldRoot, newRoot, this, knownMatches: null).GetTreeEdits(); 38=> new(oldRoot, newRoot, this, knownMatches);
75 references to Match
Microsoft.CodeAnalysis.CSharp.Features (12)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
397protected override Match<SyntaxNode> ComputeTopLevelMatch(SyntaxNode oldCompilationUnit, SyntaxNode newCompilationUnit) 413internal static Match<SyntaxNode> ComputeBodyMatch(SyntaxNode oldBody, SyntaxNode newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches) 1074Match<SyntaxNode> topMatch, 2288private readonly Match<SyntaxNode>? _match; 2300Match<SyntaxNode>? match = null, 2487Match<SyntaxNode> match,
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
39public override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (1)
65public override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
EditAndContinue\DeclarationBody\InstanceConstructorDeclarationBody.cs (1)
102public sealed override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (1)
150public sealed override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
EditAndContinue\DeclarationBody\SimpleMemberBody.cs (1)
30public override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
EditAndContinue\DeclarationBody\TopLevelCodeDeclarationBody.cs (1)
55public override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (31)
EditAndContinue\Helpers\EditingTestBase.cs (6)
158var match = SyntaxComparer.TopLevel.ComputeMatch(tree1.GetRoot(), tree2.GetRoot()); 175var match = GetMethodMatch(src1, src2, kind); 179internal static Match<SyntaxNode> GetMethodMatch(string src1, string src2, MethodKind kind = MethodKind.Regular) 184var match = m1.ComputeSingleRootMatch(m2, knownMatches: null); 198var methodMatch = GetMethodMatch(src1, src2, kind); 203public static MatchingPairs ToMatchingPairs(Match<SyntaxNode> match)
EditAndContinue\StatementMatchingTests.cs (25)
45var match = m1.ComputeSingleRootMatch(m2, knownMatches); 87var match = m1.ComputeSingleRootMatch(m2, knownMatches); 133var match = GetMethodMatch(src1, src2); 259var match = GetMethodMatch(src1, src2); 281var match = GetMethodMatch(src1, src2); 314var match = GetMethodMatch(src1, src2); 356var match = GetMethodMatch(src1, src2); 399var match = GetMethodMatch(src1, src2); 449var match = GetMethodMatch(src1, src2); 625var match = GetMethodMatch(src1, src2); 649var match = GetMethodMatch(src1, src2); 678var match = GetMethodMatch(src1, src2); 700var match = GetMethodMatch(src1, src2); 729var match = GetMethodMatch(src1, src2); 870var match = GetMethodMatch(src1, src2); 891var match = GetMethodMatch(src1, src2); 912var match = GetMethodMatch(src1, src2); 933var match = GetMethodMatch(src1, src2); 954var match = GetMethodMatch(src1, src2); 1021var match = GetMethodMatch(src1, src2); 1048var match = GetMethodMatch(src1, src2); 1076var match = GetMethodMatch(src1, src2); 1099var match = GetMethodMatch(src1, src2); 1291var match = GetMethodMatch(src1, src2); 2538var match = GetTopEdits(src1, src2).Match;
Microsoft.CodeAnalysis.Features (17)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (12)
118protected abstract Match<SyntaxNode> ComputeTopLevelMatch(SyntaxNode oldCompilationUnit, SyntaxNode newCompilationUnit); 193Match<SyntaxNode> topMatch, 215Match<SyntaxNode> topMatch, 397internal abstract void ReportTopLevelSyntacticRudeEdits(RudeEditDiagnosticsBuilder diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap); 611var topMatch = ComputeTopLevelMatch(oldRoot, newRoot); 945Match<SyntaxNode> topMatch, 1110Match<SyntaxNode> topMatch, 2216Match<SyntaxNode> topMatch, 4731/// and therefore not produced by <see cref="GetSymbolEdits(EditKind, SyntaxNode?, SyntaxNode?, DocumentSemanticModel, DocumentSemanticModel, Match{SyntaxNode}, IReadOnlyDictionary{SyntaxNode, EditKind}, SymbolInfoCache, CancellationToken)"/> 5106Match<SyntaxNode>? topMatch, 5313Match<SyntaxNode>? topMatch, 5512Match<SyntaxNode> topMatch,
EditAndContinue\DeclarationBody.cs (2)
71var primaryMatch = ComputeSingleRootMatch(newBody, knownMatches); 79public abstract Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches);
EditAndContinue\DeclarationBodyMap.cs (1)
36public static DeclarationBodyMap FromMatch(Match<SyntaxNode> match)
EditAndContinue\Utilities\BidirectionalMap.cs (2)
68public BidirectionalMap<T> WithMatch(Match<T> match) 71public static BidirectionalMap<T> FromMatch(Match<T> match)
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\EditAndContinueTestVerifier.cs (2)
512internal static IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>> GetMethodMatches(AbstractEditAndContinueAnalyzer analyzer, Match<SyntaxNode> bodyMatch) 532public static MatchingPairs ToMatchingPairs(Match<SyntaxNode> match)
EditAndContinue\EditScriptDescription.cs (1)
20public Match<SyntaxNode> Match => Script.Match;
EditAndContinue\SyntaxMapDescription.cs (3)
15public readonly struct Mapping(ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> nodeSpans, ImmutableArray<TextSpan> newSpans, Match<SyntaxNode>? match) 44public readonly Match<SyntaxNode>? Match; 46public SyntaxMapDescription(string oldSource, string newSource, Match<SyntaxNode>? match = null)
Microsoft.CodeAnalysis.Workspaces (6)
Differencing\EditScript.cs (3)
18internal EditScript(Match<TNode> match) 31public Match<TNode> Match { get; } 210var lcs = new Match<TNode>.LongestCommonSubsequence(Match);
Differencing\Match.LongestCommonSubsequence.cs (2)
16private readonly Match<TNode> _match; 18internal LongestCommonSubsequence(Match<TNode> match)
Differencing\TreeComparer.cs (1)
37public Match<TNode> ComputeMatch(TNode oldRoot, TNode newRoot, IEnumerable<KeyValuePair<TNode, TNode>>? knownMatches = null)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Differencing\MatchTests.cs (3)
24var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, 47var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, 73var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot,