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