Skip to content

Commit 91bd3d1

Browse files
committed
Cache getName to improve performance
1 parent 6405b89 commit 91bd3d1

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
@@ -57,6 +57,7 @@ class Element extends @dotnet_element {
5757
/** An element that has a name. */
5858
class NamedElement extends Element, @dotnet_named_element {
5959
/** Gets the name of this element. */
60+
cached
6061
string getName() { none() }
6162

6263
/** Holds if this element has name 'name'. */

0 commit comments

Comments
 (0)