public static MondValue JsonCallStackEntry(int programId, MondDebugContext.CallStackEntry callStackEntry) { var obj = new MondValue(MondValueType.Object); obj["ProgramId"] = programId; obj["FileName"] = callStackEntry.FileName; obj["Function"] = callStackEntry.Function; obj["LineNumber"] = callStackEntry.LineNumber; obj["ColumnNumber"] = callStackEntry.ColumnNumber; return(obj); }
public static MondValue JsonCallStackEntry(int programId, MondDebugContext.CallStackEntry callStackEntry) { var obj = MondValue.Object(); obj["programId"] = programId; obj["address"] = callStackEntry.Address; obj["fileName"] = callStackEntry.FileName; obj["function"] = callStackEntry.Function; obj["line"] = callStackEntry.StartLineNumber; obj["column"] = callStackEntry.StartColumnNumber; obj["endLine"] = callStackEntry.EndLineNumber ?? MondValue.Undefined; obj["endColumn"] = callStackEntry.EndColumnNumber ?? MondValue.Undefined; return(obj); }