23 references to BreakpointSpans
Microsoft.CodeAnalysis.CSharp.Features (23)
Debugging\CSharpBreakpointResolutionService.cs (1)
36if (tree == null || !BreakpointSpans.TryGetBreakpointSpan(tree, textSpan.Start, cancellationToken, out var span))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
594=> BreakpointSpans.TryGetClosestBreakpointSpan(token.Parent!, token.SpanStart, minLength: token.Span.Length, out span); 625return BreakpointSpans.TryGetClosestBreakpointSpan(node, doStatement.WhileKeyword.SpanStart, minLength, out span); 636BreakpointSpans.TryGetClosestBreakpointSpan(node, propertyDeclaration.Initializer.SpanStart, minLength, out span)) 664span = BreakpointSpans.CreateSpanForImplicitPrimaryConstructorInitializer(typeDeclaration); 669span = BreakpointSpans.CreateSpanForCopyConstructor((RecordDeclarationSyntax)node); 676return BreakpointSpans.TryGetClosestBreakpointSpan(node, node.SpanStart, minLength, out span);
EditAndContinue\DeclarationBody\CopyConstructorDeclarationBody.cs (2)
35=> BreakpointSpans.CreateSpanForCopyConstructor(recordDeclaration); 50=> BreakpointSpans.GetActiveTokensForCopyConstructor(recordDeclaration, getDescendantTokens);
EditAndContinue\DeclarationBody\ExplicitAutoPropertyAccessorDeclarationBody.cs (2)
30=> BreakpointSpans.CreateSpanForAutoPropertyAccessor(accessor); 33=> BreakpointSpans.GetActiveTokensForAutoPropertyAccessor(accessor, getDescendantTokens);
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (2)
42return BreakpointSpans.CreateSpanForVariableDeclarator(variableDeclarator, fieldDeclaration.Modifiers, fieldDeclaration.SemicolonToken); 52return BreakpointSpans.GetActiveTokensForVariableDeclarator(variableDeclarator, fieldDeclaration.Modifiers, fieldDeclaration.SemicolonToken, getDescendantTokens);
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithExplicitInitializerDeclarationBody.cs (2)
35=> BreakpointSpans.CreateSpanForExplicitConstructorInitializer(Initializer); 44=> BreakpointSpans.GetActiveTokensForExplicitConstructorInitializer(Initializer, getDescendantTokens).Concat(getDescendantTokens(Body));
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithImplicitInitializerDeclarationBody.cs (2)
29=> BreakpointSpans.CreateSpanForImplicitConstructorInitializer(Constructor); 38=> BreakpointSpans.GetActiveTokensForImplicitConstructorInitializer(Constructor, getDescendantTokens).Concat(getDescendantTokens(Body));
EditAndContinue\DeclarationBody\PrimaryConstructorWithExplicitInitializerDeclarationBody.cs (2)
31=> BreakpointSpans.CreateSpanForExplicitPrimaryConstructorInitializer(Initializer); 37=> BreakpointSpans.GetActiveTokensForExplicitPrimaryConstructorInitializer(Initializer, getDescendantTokens);
EditAndContinue\DeclarationBody\PrimaryConstructorWithImplicitInitializerDeclarationBody.cs (2)
31=> BreakpointSpans.CreateSpanForImplicitPrimaryConstructorInitializer(TypeDeclaration); 37=> BreakpointSpans.GetActiveTokensForImplicitPrimaryConstructorInitializer(TypeDeclaration, getDescendantTokens);
EditAndContinue\DeclarationBody\RecordParameterDeclarationBody.cs (2)
24=> BreakpointSpans.CreateSpanForRecordParameter(parameter); 30=> BreakpointSpans.GetActiveTokensForRecordParameter(parameter, getDescendantTokens);