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