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);
86 references to Match
Microsoft.CodeAnalysis.CSharp.Features (12)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
421protected override Match<SyntaxNode> ComputeTopLevelMatch(SyntaxNode oldCompilationUnit, SyntaxNode newCompilationUnit) 437internal static Match<SyntaxNode> ComputeBodyMatch(SyntaxNode oldBody, SyntaxNode newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches) 1087Match<SyntaxNode> topMatch, 2290private readonly Match<SyntaxNode>? _match; 2302Match<SyntaxNode>? match = null, 2479Match<SyntaxNode> match,
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
38public override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (1)
60public 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)
149public 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)
50public override Match<SyntaxNode>? ComputeSingleRootMatch(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (31)
EditAndContinue\Helpers\EditingTestBase.cs (6)
146var match = SyntaxComparer.TopLevel.ComputeMatch(tree1.GetRoot(), tree2.GetRoot()); 163var match = GetMethodMatch(src1, src2, kind); 167internal static Match<SyntaxNode> GetMethodMatch(string src1, string src2, MethodKind kind = MethodKind.Regular) 172var match = m1.ComputeSingleRootMatch(m2, knownMatches: null); 186var methodMatch = GetMethodMatch(src1, src2, kind); 190public static MatchingPairs ToMatchingPairs(Match<SyntaxNode> match)
EditAndContinue\StatementMatchingTests.cs (25)
42var match = m1.ComputeSingleRootMatch(m2, knownMatches); 84var match = m1.ComputeSingleRootMatch(m2, knownMatches); 129var match = GetMethodMatch(src1, src2); 253var match = GetMethodMatch(src1, src2); 275var match = GetMethodMatch(src1, src2); 308var match = GetMethodMatch(src1, src2); 350var match = GetMethodMatch(src1, src2); 393var match = GetMethodMatch(src1, src2); 443var match = GetMethodMatch(src1, src2); 619var match = GetMethodMatch(src1, src2); 643var match = GetMethodMatch(src1, src2); 672var match = GetMethodMatch(src1, src2); 694var match = GetMethodMatch(src1, src2); 723var match = GetMethodMatch(src1, src2); 864var match = GetMethodMatch(src1, src2); 885var match = GetMethodMatch(src1, src2); 906var match = GetMethodMatch(src1, src2); 927var match = GetMethodMatch(src1, src2); 948var match = GetMethodMatch(src1, src2); 1015var match = GetMethodMatch(src1, src2); 1042var match = GetMethodMatch(src1, src2); 1070var match = GetMethodMatch(src1, src2); 1093var match = GetMethodMatch(src1, src2); 1285var match = GetMethodMatch(src1, src2); 2529var match = GetTopEdits(src1, src2).Match;
Microsoft.CodeAnalysis.Features (17)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (12)
124protected abstract Match<SyntaxNode> ComputeTopLevelMatch(SyntaxNode oldCompilationUnit, SyntaxNode newCompilationUnit); 199Match<SyntaxNode> topMatch, 221Match<SyntaxNode> topMatch, 408internal abstract void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap); 622var topMatch = ComputeTopLevelMatch(oldRoot, newRoot); 783Match<SyntaxNode> topMatch, 940Match<SyntaxNode> topMatch, 2039Match<SyntaxNode> topMatch, 4452/// and therefore not produced by <see cref="GetSymbolEdits(EditKind, SyntaxNode?, SyntaxNode?, SemanticModel?, SemanticModel, Match{SyntaxNode}, IReadOnlyDictionary{SyntaxNode, EditKind}, SymbolInfoCache, CancellationToken)"/> 4827Match<SyntaxNode>? topMatch, 5019private DiagnosticContext CreateDiagnosticContext(ArrayBuilder<RudeEditDiagnostic> diagnostics, ISymbol? oldSymbol, ISymbol? newSymbol, SyntaxNode? newNode, SemanticModel newModel, Match<SyntaxNode>? topMatch, TextSpan diagnosticSpan = default) 5217Match<SyntaxNode> topMatch,
EditAndContinue\DeclarationBody.cs (2)
70var primaryMatch = ComputeSingleRootMatch(newBody, knownMatches); 78public 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)
488internal static IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>> GetMethodMatches(AbstractEditAndContinueAnalyzer analyzer, Match<SyntaxNode> bodyMatch) 508public static MatchingPairs ToMatchingPairs(Match<SyntaxNode> match)
EditAndContinue\EditScriptDescription.cs (1)
19public Match<SyntaxNode> Match => Script.Match;
EditAndContinue\SyntaxMapDescription.cs (3)
16public readonly struct Mapping(ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> nodeSpans, ImmutableArray<TextSpan> newSpans, Match<SyntaxNode>? match) 45public readonly Match<SyntaxNode>? Match; 47public SyntaxMapDescription(string oldSource, string newSource, Match<SyntaxNode>? match = null)
Microsoft.CodeAnalysis.VisualBasic.Features (9)
EditAndContinue\DeclarationBody\FieldOrPropertyDeclarationBody.vb (1)
57Public NotOverridable Overrides Function ComputeSingleRootMatch(newBody As DeclarationBody, knownMatches As IEnumerable(Of KeyValuePair(Of SyntaxNode, SyntaxNode))) As Match(Of SyntaxNode)
EditAndContinue\DeclarationBody\MethodBody.vb (1)
34Public Overrides Function ComputeSingleRootMatch(newBody As DeclarationBody, knownMatches As IEnumerable(Of KeyValuePair(Of SyntaxNode, SyntaxNode))) As Match(Of SyntaxNode)
EditAndContinue\DeclarationBody\VisualBasicLambdaBody.vb (1)
64Public Overrides Function ComputeSingleRootMatch(newBody As DeclarationBody, knownMatches As IEnumerable(Of KeyValuePair(Of SyntaxNode, SyntaxNode))) As Match(Of SyntaxNode)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (6)
207Protected Overrides Function ComputeTopLevelMatch(oldCompilationUnit As SyntaxNode, newCompilationUnit As SyntaxNode) As Match(Of SyntaxNode) 231Private Shared Function GetTopLevelMatch(oldNode As SyntaxNode, newNode As SyntaxNode) As Match(Of SyntaxNode) 754topMatch As Match(Of SyntaxNode), 1705Private ReadOnly _match As Match(Of SyntaxNode) 1716Optional match As Match(Of SyntaxNode) = Nothing, 1905match As Match(Of SyntaxNode),
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (2)
EditAndContinue\Helpers\EditingTestBase.vb (2)
233Friend Shared Function GetMethodMatch(src1 As String, src2 As String, Optional methodKind As MethodKind = MethodKind.Regular) As Match(Of SyntaxNode) 255Public Shared Function ToMatchingPairs(match As Match(Of SyntaxNode)) As MatchingPairs
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)
26var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, 49var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, 75var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot,