mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Deployment v1
This commit is contained in:
@@ -2,10 +2,12 @@ namespace HaWeb.Models;
|
||||
|
||||
public class SyntaxCheckModel {
|
||||
public string File { get; private set; }
|
||||
public string Commit { get; private set; }
|
||||
public List<SyntaxError>? Errors { get; private set; }
|
||||
|
||||
public SyntaxCheckModel(string file) {
|
||||
public SyntaxCheckModel(string file, string commithash) {
|
||||
File = file;
|
||||
Commit = commithash;
|
||||
}
|
||||
|
||||
public void Log(int? line, int? column, string msg) {
|
||||
@@ -15,6 +17,11 @@ public class SyntaxCheckModel {
|
||||
Errors.Add(new SyntaxError(line, column, msg));
|
||||
}
|
||||
|
||||
public void SortErrors() {
|
||||
if (Errors != null)
|
||||
Errors = Errors.OrderBy(x => x.Line).ToList();
|
||||
}
|
||||
|
||||
public void ResetLog() {
|
||||
Errors = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user