示例#1
0
 public Task <ImmutableArray <ActiveStatementTrackingSpan> > GetLatestSpansAsync(Document document, ITextSnapshot snapshot, CancellationToken cancellationToken)
 => _session?.GetLatestSpansAsync(document, snapshot, cancellationToken) ?? Task.FromResult(ImmutableArray <ActiveStatementTrackingSpan> .Empty);
 public Task <ImmutableArray <ActiveStatementTrackingSpan> > GetLatestSpansAsync(Document document, ITextSnapshot snapshot, CancellationToken cancellationToken)
 => _session?.GetLatestSpansAsync(document, snapshot, cancellationToken) ?? SpecializedTasks.EmptyImmutableArray <ActiveStatementTrackingSpan>();