1 type derived from LambdaBody
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
16internal sealed class CSharpLambdaBody(SyntaxNode node) : LambdaBody
53 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)
116protected abstract LambdaBody? FindEnclosingLambdaBody(SyntaxNode encompassingAncestor, SyntaxNode node); 465internal abstract bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out LambdaBody? body1, out LambdaBody? body2); 1012var oldEnclosingLambdaBody = FindEnclosingLambdaBody(oldBody.EncompassingAncestor, oldBody.EncompassingAncestor.FindToken(adjustedOldStatementStart).Parent!); 1013var newEnclosingLambdaBody = FindEnclosingLambdaBody(newBody.EncompassingAncestor, trackedStatement); 1060internal readonly struct ActiveNode(int activeStatementIndex, SyntaxNode oldNode, LambdaBody? enclosingLambdaBody, int statementPart, SyntaxNode? newTrackedNode) 1065public readonly LambdaBody? EnclosingLambdaBody = enclosingLambdaBody; 1079public readonly LambdaBody? NewBody; 1086private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap, LambdaBody? newLambdaBody) 1096public LambdaInfo WithMatch(DeclarationBodyMap match, LambdaBody newLambdaBody) 1141Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null; 1194var oldEnclosingLambdaBody = FindEnclosingLambdaBody(oldMemberBody.EncompassingAncestor, oldStatementSyntax); 1216var newEnclosingLambdaBody = FindEnclosingLambdaBody(newMemberBody.EncompassingAncestor, newStatementSyntax); 1322var oldEnclosingLambdaBody = activeNode.EnclosingLambdaBody; 1576ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas) 1593if (TryGetLambdaBodies(oldNode, out var oldLambdaBody1, out var oldLambdaBody2)) 1598var newLambdaBody1 = oldLambdaBody1.TryGetPartnerLambdaBody(newNode); 1606var newLambdaBody2 = oldLambdaBody2.TryGetPartnerLambdaBody(newNode); 1658LambdaBody oldLambdaBody, 1659LambdaBody newLambdaBody, 1661[Out] Dictionary<LambdaBody, LambdaInfo> activeOrMatchedLambdas) 1793LambdaBody deletedLambdaBody, 1796Dictionary<LambdaBody, LambdaInfo> lambdaInfos) 1798var oldLambdaBody = deletedLambdaBody; 1802var oldParentLambdaBody = FindEnclosingLambdaBody(oldEncompassingAncestor, oldLambda); 4205oldBody is LambdaBody && InGenericLocalContext(oldDeclaration!, oldMemberBody!.RootNodes) || 4206newBody is LambdaBody && InGenericLocalContext(newDeclaration!, newMemberBody!.RootNodes)) && 5715IReadOnlyDictionary<LambdaBody, LambdaInfo>? activeOrMatchedLambdas, 5735var newLambdaBody = newLambdaInfo.NewBody; 5976bool CanAddNewLambda(SyntaxNode newLambda, LambdaBody newLambdaBody1, LambdaBody? newLambdaBody2) 6038private IEnumerable<(SyntaxNode lambda, LambdaBody lambdaBody1, LambdaBody? lambdaBody2)> GetLambdaBodies(MemberBody? body) 6049if (TryGetLambdaBodies(node, out var body1, out var body2)) 6057private IEnumerable<LambdaBody> GetEnclosingLambdaBodies(SyntaxNode encompassingAncestor, SyntaxNode node) 6061var enclosingLambdaBody = FindEnclosingLambdaBody(encompassingAncestor, node); 6132ArrayBuilder<(VariableCaptureKind kind, ISymbol symbol, ArrayBuilder<LambdaBody> capturingLambdas)>? inLambdaCaptures = null; 6144void AddCaptures(LambdaBody lambdaBody) 6150inLambdaCaptures ??= ArrayBuilder<(VariableCaptureKind, ISymbol, ArrayBuilder<LambdaBody>)>.GetInstance(); 6161inLambdaCaptures.Add((key.Kind, capture, ArrayBuilder<LambdaBody>.GetInstance())); 6243LambdaBody lambdaBody, 7065ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas)
EditAndContinue\LambdaBody.cs (2)
14public abstract bool IsSyntaxEquivalentTo(LambdaBody other); 16public abstract LambdaBody? TryGetPartnerLambdaBody(SyntaxNode newLambda);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
514Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null;