Skip to content

Commit c44b747

Browse files
committed
C#: Minor code quality improvements.
1 parent 0a16cf6 commit c44b747

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/ql/lib/semmle/code/csharp/internal/Overlay.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private string getLocationFilePath(@location_default loc) {
1616
}
1717

1818
/**
19-
* An abstract base class for all elements that can be discarded from the base.
19+
* A class of elements that can be discarded from the base.
2020
*/
2121
overlay[local]
2222
private class DiscardableEntity extends @locatable {
@@ -52,10 +52,10 @@ private class DiscardableEntity extends @locatable {
5252
}
5353

5454
/** Holds if this element exists in the base variant. */
55-
predicate existsInBase() { not isOverlay() and exists(this) }
55+
predicate existsInBase() { not isOverlay() }
5656

5757
/** Holds if this element exists in the overlay variant. */
58-
predicate existsInOverlay() { isOverlay() and exists(this) }
58+
predicate existsInOverlay() { isOverlay() }
5959

6060
/** Gets a textual representation of this discardable element. */
6161
string toString() { none() }

0 commit comments

Comments
 (0)