17 references to MemberBody
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
EditAndContinue\Helpers\EditingTestBase.cs (3)
217
var
body = SyntaxUtilities.TryGetDeclarationBody(declaration, symbol: null);
249
var
oldBody = SyntaxUtilities.TryGetDeclarationBody(oldDeclaration, symbol: null);
253
var
newBody = SyntaxUtilities.TryGetDeclarationBody(newDeclaration, symbol: null);
Microsoft.CodeAnalysis.Features (14)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (8)
97
/// <paramref name="node"/> node itself may represent a <see cref="
MemberBody
"/> that doesn't belong to the <paramref name="symbol"/>.
104
internal abstract
MemberBody
? TryGetDeclarationBody(SyntaxNode node, ISymbol? symbol);
454
internal bool ContainsLambda(
MemberBody
body)
824
var
oldBody = TryGetDeclarationBody(oldMemberDeclaration, symbol: null);
825
var
newBody = TryGetDeclarationBody(newMemberDeclaration, symbol: null);
947
MemberBody
? oldMemberBody,
948
MemberBody
? newMemberBody,
1330
private static bool TryGetTrackedStatement(ImmutableArray<ActiveStatementLineSpan> activeStatementSpans, ActiveStatementId id, SourceText text,
MemberBody
body, [NotNullWhen(true)] out SyntaxNode? trackedStatement, out int trackedStatementPart)
EditAndContinue\AbstractSimpleMemberBody.cs (1)
13
internal abstract class AbstractSimpleMemberBody(SyntaxNode node) :
MemberBody
EditAndContinue\DeclarationBody.cs (2)
51
/// <see cref="SyntaxNode"/> that includes all active tokens (<see cref="
MemberBody
.GetActiveTokens()"/>)
52
/// and its span covers the entire <see cref="
MemberBody
.Envelope"/>.
EditAndContinue\MemberBody.cs (3)
15
/// A minimal span that contains all possible breakpoint spans of <see cref="
MemberBody
"/>.
20
/// True if <paramref name="span"/> belongs to the <see cref="
MemberBody
"/>.
49
public abstract SyntaxNode FindStatementAndPartner(TextSpan span,
MemberBody
? partnerDeclarationBody, out SyntaxNode? partnerStatement, out int statementPart);