1 type derived from LambdaBody
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
16internal sealed class CSharpLambdaBody(SyntaxNode node) : LambdaBody
52 references to LambdaBody
Microsoft.CodeAnalysis.CSharp.Features (6)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
381protected override LambdaBody? FindEnclosingLambdaBody(SyntaxNode encompassingAncestor, SyntaxNode node) 1471internal override bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out LambdaBody? body1, out LambdaBody? body2)
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (2)
55public override LambdaBody? TryGetPartnerLambdaBody(SyntaxNode newLambda) 64public override bool IsSyntaxEquivalentTo(LambdaBody other)
EditAndContinue\SyntaxUtilities.cs (1)
18public static LambdaBody CreateLambdaBody(SyntaxNode node)
Microsoft.CodeAnalysis.Features (46)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (44)
121protected abstract LambdaBody? FindEnclosingLambdaBody(SyntaxNode encompassingAncestor, SyntaxNode node); 470internal abstract bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out LambdaBody? body1, out LambdaBody? body2); 1017var oldEnclosingLambdaBody = FindEnclosingLambdaBody(oldBody.EncompassingAncestor, oldBody.EncompassingAncestor.FindToken(adjustedOldStatementStart).Parent!); 1018var newEnclosingLambdaBody = FindEnclosingLambdaBody(newBody.EncompassingAncestor, trackedStatement); 1065internal readonly struct ActiveNode(int activeStatementIndex, SyntaxNode oldNode, LambdaBody? enclosingLambdaBody, int statementPart, SyntaxNode? newTrackedNode) 1070public readonly LambdaBody? EnclosingLambdaBody = enclosingLambdaBody; 1084public readonly LambdaBody? NewBody; 1091private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap, LambdaBody? newLambdaBody) 1101public LambdaInfo WithMatch(DeclarationBodyMap match, LambdaBody newLambdaBody) 1146Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null; 1199var oldEnclosingLambdaBody = FindEnclosingLambdaBody(oldMemberBody.EncompassingAncestor, oldStatementSyntax); 1221var newEnclosingLambdaBody = FindEnclosingLambdaBody(newMemberBody.EncompassingAncestor, newStatementSyntax); 1327var oldEnclosingLambdaBody = activeNode.EnclosingLambdaBody; 1581ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas) 1598if (TryGetLambdaBodies(oldNode, out var oldLambdaBody1, out var oldLambdaBody2)) 1603var newLambdaBody1 = oldLambdaBody1.TryGetPartnerLambdaBody(newNode); 1611var newLambdaBody2 = oldLambdaBody2.TryGetPartnerLambdaBody(newNode); 1663LambdaBody oldLambdaBody, 1664LambdaBody newLambdaBody, 1666[Out] Dictionary<LambdaBody, LambdaInfo> activeOrMatchedLambdas) 1798LambdaBody deletedLambdaBody, 1801Dictionary<LambdaBody, LambdaInfo> lambdaInfos) 1803var oldLambdaBody = deletedLambdaBody; 1807var oldParentLambdaBody = FindEnclosingLambdaBody(oldEncompassingAncestor, oldLambda); 4304oldBody is LambdaBody && InGenericLocalContext(oldDeclaration!, oldMemberBody!.RootNodes) || 4305newBody is LambdaBody && InGenericLocalContext(newDeclaration!, newMemberBody!.RootNodes)) && 5838IReadOnlyDictionary<LambdaBody, LambdaInfo>? activeOrMatchedLambdas, 5858var newLambdaBody = newLambdaInfo.NewBody; 6099bool CanAddNewLambda(SyntaxNode newLambda, LambdaBody newLambdaBody1, LambdaBody? newLambdaBody2) 6161private IEnumerable<(SyntaxNode lambda, LambdaBody lambdaBody1, LambdaBody? lambdaBody2)> GetLambdaBodies(MemberBody? body) 6172if (TryGetLambdaBodies(node, out var body1, out var body2)) 6180private IEnumerable<LambdaBody> GetEnclosingLambdaBodies(SyntaxNode encompassingAncestor, SyntaxNode node) 6184var enclosingLambdaBody = FindEnclosingLambdaBody(encompassingAncestor, node); 6255ArrayBuilder<(VariableCaptureKind kind, ISymbol symbol, ArrayBuilder<LambdaBody> capturingLambdas)>? inLambdaCaptures = null; 6267void AddCaptures(LambdaBody lambdaBody) 6273inLambdaCaptures ??= ArrayBuilder<(VariableCaptureKind, ISymbol, ArrayBuilder<LambdaBody>)>.GetInstance(); 6284inLambdaCaptures.Add((key.Kind, capture, ArrayBuilder<LambdaBody>.GetInstance())); 6366LambdaBody lambdaBody, 7192ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas)
EditAndContinue\LambdaBody.cs (2)
14public abstract bool IsSyntaxEquivalentTo(LambdaBody other); 16public abstract LambdaBody? TryGetPartnerLambdaBody(SyntaxNode newLambda);