src/Palete/CompileError.vala
authorAlan <alan@roojs.com>
Thu, 11 Jan 2024 10:20:26 +0000 (18:20 +0800)
committerAlan <alan@roojs.com>
Thu, 11 Jan 2024 10:20:26 +0000 (18:20 +0800)
src/Palete/CompileError.vala

index 97c2cb8..707e23a 100644 (file)
@@ -20,17 +20,7 @@ namespace Palete {
                public string msg;
                public  int line { get; set; default = -1; }
 
-               public CompileError.new_line(CompileError? parent, int line, string msg) 
-               {
-                       this.lines = new GLib.ListStore(typeof(CompileError));
-                       this.parent = parent;
-                       this.line = line;
-                       this.msg = msg;
-                       this.file = parent.file;
-                       this.category = parent.category;
-                        
                
-               }
                public CompileError.new_jserror(JsRender.JsRender file, string category, int line, string msg) 
                {
                        this.lines = new GLib.ListStore(typeof(CompileError));
@@ -61,7 +51,18 @@ namespace Palete {
                        this.title =  file.relpath + " (" + lines.get_n_items().to_string() + ")";
                }
 
-
+/*
+               public CompileError.new_line(CompileError? parent, int line, string msg) 
+               {
+                       this.lines = new GLib.ListStore(typeof(CompileError));
+                       this.parent = parent;
+                       this.line = line;
+                       this.msg = msg;
+                       this.file = parent.file;
+                       this.category = parent.category;
+                        
+               
+               }
                public CompileError.new_file(JsRender.JsRender file, Json.Object jlines, string category) 
                {
                        this.file = file;