refactor implementation to make Label implementations private

This commit is contained in:
Erik Krogh Kristensen
2021-11-22 09:43:13 +01:00
parent 6060f2e3e3
commit e9df860431
4 changed files with 151 additions and 129 deletions

View File

@@ -63,7 +63,8 @@ class Assertion extends Comment {
result = API::root()
or
result =
lookup(i + 1).getASuccessor(any(API::ApiLabel label | label.toString() = getEdgeLabel(i)))
lookup(i + 1)
.getASuccessor(any(API::Label::ApiLabel label | label.toString() = getEdgeLabel(i)))
}
predicate isNegative() { polarity = "!" }
@@ -81,7 +82,7 @@ class Assertion extends Comment {
suffix =
"it does have outgoing edges labelled " +
concat(string lbl |
exists(nd.getASuccessor(any(API::ApiLabel label | label.toString() = lbl)))
exists(nd.getASuccessor(any(API::Label::ApiLabel label | label.toString() = lbl)))
|
lbl, ", "
) + "."