mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-15 01:25:40 -05:00
Initial commit of SqlTools Service API
This commit is contained in:
53
ServiceHost/DebugAdapter/StackFrame.cs
Normal file
53
ServiceHost/DebugAdapter/StackFrame.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
|
||||
{
|
||||
public class StackFrame
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public Source Source { get; set; }
|
||||
|
||||
public int Line { get; set; }
|
||||
|
||||
public int Column { get; set; }
|
||||
|
||||
// /** An identifier for the stack frame. */
|
||||
//id: number;
|
||||
///** The name of the stack frame, typically a method name */
|
||||
//name: string;
|
||||
///** The source of the frame. */
|
||||
//source: Source;
|
||||
///** The line within the file of the frame. */
|
||||
//line: number;
|
||||
///** The column within the line. */
|
||||
//column: number;
|
||||
///** All arguments and variables declared in this stackframe. */
|
||||
//scopes: Scope[];
|
||||
|
||||
#if false
|
||||
public static StackFrame Create(
|
||||
StackFrameDetails stackFrame,
|
||||
int id)
|
||||
{
|
||||
return new StackFrame
|
||||
{
|
||||
Id = id,
|
||||
Name = stackFrame.FunctionName,
|
||||
Line = stackFrame.LineNumber,
|
||||
Column = stackFrame.ColumnNumber,
|
||||
Source = new Source
|
||||
{
|
||||
Path = stackFrame.ScriptPath
|
||||
}
|
||||
};
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user