예제 #1
0
파일: Utility.cs 프로젝트: xserve98/Mond
        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);
        }
예제 #2
0
        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);
        }