26 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)
577=> BreakpointSpans.TryGetClosestBreakpointSpan(token.Parent!, token.SpanStart, minLength: token.Span.Length, out span); 608return BreakpointSpans.TryGetClosestBreakpointSpan(node, doStatement.WhileKeyword.SpanStart, minLength, out span); 619BreakpointSpans.TryGetClosestBreakpointSpan(node, propertyDeclaration.Initializer.SpanStart, minLength, out span)) 647span = BreakpointSpans.CreateSpanForImplicitPrimaryConstructorInitializer(typeDeclaration); 652span = BreakpointSpans.CreateSpanForCopyConstructor((RecordDeclarationSyntax)node); 659return BreakpointSpans.TryGetClosestBreakpointSpan(node, node.SpanStart, minLength, out span);
EditAndContinue\DeclarationBody\CopyConstructorDeclarationBody.cs (2)
36=> BreakpointSpans.CreateSpanForCopyConstructor(recordDeclaration); 51=> BreakpointSpans.GetActiveTokensForCopyConstructor(recordDeclaration, getDescendantTokens);
EditAndContinue\DeclarationBody\ExplicitAutoPropertyAccessorDeclarationBody.cs (2)
30=> BreakpointSpans.CreateSpanForAutoPropertyAccessor(accessor); 33=> BreakpointSpans.GetActiveTokensForAutoPropertyAccessor(accessor, getDescendantTokens);
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (2)
43return BreakpointSpans.CreateSpanForVariableDeclarator(variableDeclarator, fieldDeclaration.Modifiers, fieldDeclaration.SemicolonToken); 53return 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);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EditAndContinue\BreakpointSpansTests.cs (2)
41var hasBreakpoint = BreakpointSpans.TryGetBreakpointSpan( 98if (BreakpointSpans.TryGetClosestBreakpointSpan(root, p, minLength: 0, out var span) && span.Start > lastSpan.Start)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorBreakpointSpans.cs (1)
14=> BreakpointSpans.TryGetBreakpointSpan(tree, position, cancellationToken, out breakpointSpan);