mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
C#: Cache NamedElement::hasQualifiedName/2
This commit is contained in:
@@ -87,6 +87,7 @@ class NamedElement extends Element, @dotnet_named_element {
|
||||
final predicate hasQualifiedName(string qualifiedName) { qualifiedName = this.getQualifiedName() }
|
||||
|
||||
/** Holds if this element has the qualified name `qualifier`.`name`. */
|
||||
cached
|
||||
predicate hasQualifiedName(string qualifier, string name) {
|
||||
qualifier = "" and name = this.getName()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user