45 references to LambdaBody
Microsoft.CodeAnalysis.Features (45)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (43)
116
protected abstract
LambdaBody
? FindEnclosingLambdaBody(SyntaxNode encompassingAncestor, SyntaxNode node);
465
internal abstract bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out
LambdaBody
? body1, out
LambdaBody
? body2);
893
var
oldEnclosingLambdaBody = FindEnclosingLambdaBody(oldBody.EncompassingAncestor, oldBody.EncompassingAncestor.FindToken(adjustedOldStatementStart).Parent!);
894
var
newEnclosingLambdaBody = FindEnclosingLambdaBody(newBody.EncompassingAncestor, trackedStatement);
941
internal readonly struct ActiveNode(int activeStatementIndex, SyntaxNode oldNode,
LambdaBody
? enclosingLambdaBody, int statementPart, SyntaxNode? newTrackedNode)
946
public readonly
LambdaBody
? EnclosingLambdaBody = enclosingLambdaBody;
960
public readonly
LambdaBody
? NewBody;
967
private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap,
LambdaBody
? newLambdaBody)
977
public LambdaInfo WithMatch(DeclarationBodyMap match,
LambdaBody
newLambdaBody)
1022
Dictionary<
LambdaBody
, LambdaInfo>? lazyActiveOrMatchedLambdas = null;
1075
var
oldEnclosingLambdaBody = FindEnclosingLambdaBody(oldMemberBody.EncompassingAncestor, oldStatementSyntax);
1097
var
newEnclosingLambdaBody = FindEnclosingLambdaBody(newMemberBody.EncompassingAncestor, newStatementSyntax);
1457
ref Dictionary<
LambdaBody
, LambdaInfo>? lazyActiveOrMatchedLambdas)
1474
if (TryGetLambdaBodies(oldNode, out
var
oldLambdaBody1, out
var
oldLambdaBody2))
1479
var
newLambdaBody1 = oldLambdaBody1.TryGetPartnerLambdaBody(newNode);
1487
var
newLambdaBody2 = oldLambdaBody2.TryGetPartnerLambdaBody(newNode);
1539
LambdaBody
oldLambdaBody,
1540
LambdaBody
newLambdaBody,
1542
[Out] Dictionary<
LambdaBody
, LambdaInfo> activeOrMatchedLambdas)
1674
LambdaBody
deletedLambdaBody,
1677
Dictionary<
LambdaBody
, LambdaInfo> lambdaInfos)
1679
var
oldLambdaBody = deletedLambdaBody;
1683
var
oldParentLambdaBody = FindEnclosingLambdaBody(oldEncompassingAncestor, oldLambda);
4086
oldBody is
LambdaBody
&& InGenericLocalContext(oldDeclaration!, oldMemberBody!.RootNodes) ||
4087
newBody is
LambdaBody
&& InGenericLocalContext(newDeclaration!, newMemberBody!.RootNodes)) &&
5596
IReadOnlyDictionary<
LambdaBody
, LambdaInfo>? activeOrMatchedLambdas,
5616
var
newLambdaBody = newLambdaInfo.NewBody;
5857
bool CanAddNewLambda(SyntaxNode newLambda,
LambdaBody
newLambdaBody1,
LambdaBody
? newLambdaBody2)
5919
private IEnumerable<(SyntaxNode lambda,
LambdaBody
lambdaBody1,
LambdaBody
? lambdaBody2)> GetLambdaBodies(MemberBody? body)
5930
if (TryGetLambdaBodies(node, out
var
body1, out
var
body2))
5938
private IEnumerable<
LambdaBody
> GetEnclosingLambdaBodies(SyntaxNode encompassingAncestor, SyntaxNode node)
5942
var
enclosingLambdaBody = FindEnclosingLambdaBody(encompassingAncestor, node);
6013
ArrayBuilder<(VariableCaptureKind kind, ISymbol symbol, ArrayBuilder<
LambdaBody
> capturingLambdas)>? inLambdaCaptures = null;
6025
void AddCaptures(
LambdaBody
lambdaBody)
6031
inLambdaCaptures ??= ArrayBuilder<(VariableCaptureKind, ISymbol, ArrayBuilder<
LambdaBody
>)>.GetInstance();
6042
inLambdaCaptures.Add((key.Kind, capture, ArrayBuilder<
LambdaBody
>.GetInstance()));
6124
LambdaBody
lambdaBody,
6946
ref Dictionary<
LambdaBody
, LambdaInfo>? lazyActiveOrMatchedLambdas)
EditAndContinue\LambdaBody.cs (2)
14
public abstract bool IsSyntaxEquivalentTo(
LambdaBody
other);
16
public abstract
LambdaBody
? TryGetPartnerLambdaBody(SyntaxNode newLambda);