Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Nov 6, 2020
1 parent e9d1025 commit 405a22a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/MIDebugEngine/AD7.Impl/AD7StackFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.MIDebugEngine
{
// Represents a logical stack frame on the thread stack.
// Also implements the IDebugExpressionContext interface, which allows expression evaluation and watch windows.
internal class AD7StackFrame : IDebugStackFrame2, IDebugExpressionContext2
internal sealed class AD7StackFrame : IDebugStackFrame2, IDebugExpressionContext2
{
public AD7Engine Engine { get; private set; }
public AD7Thread Thread { get; private set; }
Expand Down Expand Up @@ -53,11 +53,7 @@ public AD7StackFrame(AD7Engine engine, AD7Thread thread, ThreadContext threadCon
if (_textPosition != null)
{
_documentCxt = new AD7DocumentContext(_textPosition, _codeCxt, this.Engine.DebuggedProcess);

if (_codeCxt != null)
{
_codeCxt.SetDocumentContext(_documentCxt);
}
_codeCxt?.SetDocumentContext(_documentCxt);
}
}

Expand Down

0 comments on commit 405a22a

Please sign in to comment.