/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
namespace dnSpy.Contracts.Debugger.CallStack.TextEditor {
///
/// Creates stack frame spans in s
///
public abstract class DbgStackFrameTextViewMarker {
///
/// Called when there's new frames. It's always called before .
/// The first frame (if it exists) should not be marked by this class.
///
/// New frames. These frames are owned by the caller and should not be closed by the callee.
public abstract void OnNewFrames(ReadOnlyCollection frames);
///
/// Returns spans of the active statements set by .
/// It shouldn't return duplicate spans.
/// The first frame (if it exists) should not be marked by this class.
///
/// Text view
/// Spans
///
public abstract IEnumerable GetFrameSpans(ITextView textView, NormalizedSnapshotSpanCollection spans);
}
}