Skip to content

Commit d5163ca

Browse files
committed
C#: Cache NamedElement::hasQualifiedName/2
1 parent eca11f1 commit d5163ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/src/semmle/code/dotnet/Element.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class NamedElement extends Element, @dotnet_named_element {
8787
final predicate hasQualifiedName(string qualifiedName) { qualifiedName = this.getQualifiedName() }
8888

8989
/** Holds if this element has the qualified name `qualifier`.`name`. */
90+
cached
9091
predicate hasQualifiedName(string qualifier, string name) {
9192
qualifier = "" and name = this.getName()
9293
}

0 commit comments

Comments
 (0)