示例#1
0
 public VsCodeStackFrame(VsFormat format, int threadId, int frameIndex, Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.Messages.StackFrame frame)
     : base(0, new SourceLocation(frame.Name, frame.Source?.Path, frame.Line, frame.Column, frame.EndLine ?? -1, frame.EndColumn ?? -1), GetLanguage(frame.Source?.Path))
 {
     this.format             = format;
     this.threadId           = threadId;
     this.frameIndex         = frameIndex;
     this.fullStackframeText = frame.Name;
 }
示例#2
0
 public VsCodeStackFrame(VsFormat format, int threadId, int frameIndex, VsStackFrame frame)
     : base(0, GetSourceLocation(frame), GetLanguage(frame.Source?.Path))
 {
     this.format             = format;
     this.threadId           = threadId;
     this.frameIndex         = frameIndex;
     this.fullStackframeText = frame.Name;
     this.frameId            = frame.Id;
 }
示例#3
0
 static SourceLocation GetSourceLocation(VsStackFrame frame)
 {
     return(new SourceLocation(frame.Name, frame.Source?.Path, frame.Line, frame.Column, frame.EndLine ?? -1, frame.EndColumn ?? -1, GetHashBytes(frame.Source)));
 }
示例#4
0
        static SourceLocation GetSourceLocation(VsStackFrame frame)
        {
            var sourceLink = GetSourceLink(frame.Source?.VsSourceLinkInfo);

            return(new SourceLocation(frame.Name, frame.Source?.Path, frame.Line, frame.Column, frame.EndLine ?? -1, frame.EndColumn ?? -1, GetHashBytes(frame.Source), sourceLink));
        }