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