projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6592bf8
)
src/Lsp.vala
author
Alan Knowles
<alan@roojs.com>
Sun, 28 Jan 2024 04:52:06 +0000
(12:52 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sun, 28 Jan 2024 04:52:06 +0000
(12:52 +0800)
src/Lsp.vala
patch
|
blob
|
history
diff --git
a/src/Lsp.vala
b/src/Lsp.vala
index
1e6c465
..
7288f72
100644
(file)
--- a/
src/Lsp.vala
+++ b/
src/Lsp.vala
@@
-137,6
+137,9
@@
namespace Lsp {
}
public bool equal_to (Range other) { return this.to_string () == other.to_string (); }
}
public bool equal_to (Range other) { return this.to_string () == other.to_string (); }
+ public bool equals (Range o) {
+ return this.filename == o.filename && this.start == o.start && this.end == o.end;
+ }
public int compare_to (Range other) {
return start.compare_to (other.start);
public int compare_to (Range other) {
return start.compare_to (other.start);
@@
-158,6
+161,7
@@
namespace Lsp {
public bool contains (Position pos) {
return start.compare_to (pos) <= 0 && pos.compare_to (end) <= 0;
}
public bool contains (Position pos) {
return start.compare_to (pos) <= 0 && pos.compare_to (end) <= 0;
}
+
}
public class Diagnostic : Object {
}
public class Diagnostic : Object {
@@
-204,6
+208,10
@@
namespace Lsp {
private set {}
}
private set {}
}
+ public bool equals(Lsp.Diagnostic o) {
+ return this.range.equals(o.range) && this.severity == o.severity && this.message == o.message;
+
+ }
}
/**
}
/**