3 instantiations of DeclarationBodyMap
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1474return new DeclarationBodyMap(
EditAndContinue\DeclarationBodyMap.cs (2)
37=> new(match.Matches, match.ReverseMatches, ImmutableDictionary<SyntaxNode, SyntaxNode>.Empty); 40=> new(Forward, Reverse, AdditionalReverseMapping.Add(newNode, oldNode));
22 references to DeclarationBodyMap
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\DeclarationBody\InstanceConstructorDeclarationBody.cs (1)
109var map = base.ComputeMap(newBody, knownMatches);
Microsoft.CodeAnalysis.Features (20)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (14)
906public readonly DeclarationBodyMap BodyMap; 910: this(activeNodeIndices, DeclarationBodyMap.Empty, null) 914private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap, LambdaBody? newLambdaBody) 924public LambdaInfo WithMatch(DeclarationBodyMap match, LambdaBody newLambdaBody) 1148DeclarationBodyMap enclosingBodyMap; 1396private DeclarationBodyMap IncludeLambdaBodyMaps( 1397DeclarationBodyMap memberBodyMap, 1401ArrayBuilder<(DeclarationBodyMap map, SyntaxNode? oldLambda)>? lambdaBodyMaps = null; 1404var currentBodyMap = memberBodyMap; 1418lambdaBodyMaps ??= ArrayBuilder<(DeclarationBodyMap, SyntaxNode?)>.GetInstance(); 1480private static DeclarationBodyMap ComputeLambdaBodyMap( 1509private static DeclarationBodyMap ComputeDeclarationBodyMap(DeclarationBody? oldBody, DeclarationBody? newBody, IEnumerable<ActiveNode> activeNodes) 1512: DeclarationBodyMap.Empty; 1516DeclarationBodyMap bodyMap,
EditAndContinue\DeclarationBody.cs (3)
68public virtual DeclarationBodyMap ComputeMap(DeclarationBody newBody, IEnumerable<KeyValuePair<SyntaxNode, SyntaxNode>>? knownMatches) 71return (primaryMatch != null) ? DeclarationBodyMap.FromMatch(primaryMatch) : DeclarationBodyMap.Empty;
EditAndContinue\DeclarationBodyMap.cs (3)
14public static readonly DeclarationBodyMap Empty = new( 36public static DeclarationBodyMap FromMatch(Match<SyntaxNode> match) 39public DeclarationBodyMap WithAdditionalMapping(SyntaxNode oldNode, SyntaxNode newNode)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
491var map = analyzer.GetTestAccessor().IncludeLambdaBodyMaps(DeclarationBodyMap.FromMatch(bodyMatch), [], ref lazyActiveOrMatchedLambdas);