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